chintoleung/dsh-ping ↗★ 0

dsh-ping

Minimal DSH observer plugin: Telegram ping when a question/approval is waiting or a turn completes. Notification-only — no answering surface, no tools, no state. 适合需要离线挂机运行任务的用户,通过Telegram机器人实时接收状态提醒。

패키지
dsh-ping
호환성
미검증
버전
0.1.1
라이선스
MIT
최근 업데이트
2026. 9. 23.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chintoleung/dsh-ping

Configuration

All keys optional; shown with defaults and bounds:

- id: dsh-ping
  config:
    telegram:
      botToken: !!js "process.env.DSH_PING_TG_TOKEN || ''"
      chatId: !!js "process.env.DSH_PING_TG_CHAT || ''"
    events:
      question: true
      approval: true
      turnEnd: true
      agentError: false
    debounceMs: 1000      # turn/end trailing debounce; 0 = immediate, max 3600000.
                          # Invalid values (non-numeric/NaN/±Infinity) fall back to the default.
    excerptChars: 80      # payload excerpt cap inside ping text; clamped to [20, 2048].
                          # Assembled messages are additionally capped at Telegram's 4,096-char limit.

配置

全部键可选;以下为默认值与边界:

- id: dsh-ping
  config:
    telegram:
      botToken: !!js "process.env.DSH_PING_TG_TOKEN || ''"
      chatId: !!js "process.env.DSH_PING_TG_CHAT || ''"
    events:
      question: true
      approval: true
      turnEnd: true
      agentError: false
    debounceMs: 1000      # turn/end 尾随去抖;0 = 立即,上限 3600000。
                          # 非法值(非数值/NaN/±Infinity)回退为默认值。
    excerptChars: 80      # 通知内文摘要上限;钳制在 [20, 2048]。
                          # 组装后的消息再按 Telegram 4,096 字符上限封顶。