LapStdy/dsh-dingtalk-notify ↗★ 0
dsh-dingtalk-notify
DSH 钉钉群通知插件:AI 需要你选择/审批、或一轮任务完成时推送到钉钉群,自带设置面板(详细度、门控、@、免打扰、诊断)。DingTalk group-robot notifications for DeepSeek Harness — ping your phone when the agent needs your input or finishes a turn, with a settings panel in the DSH UI. 适合需要手机端实时接收Agent审批请求和任务状态提醒的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LapStdy/dsh-dingtalk-notify配置项
~/.dsh/dingtalk-notify/config.json,首次启动自动生成模板:
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关 |
webhook | "" | 机器人 Webhook 地址(必填) |
secret | "" | 加签密钥 SECxxx;用「自定义关键词」模式则留空 |
detailLevel | detailed | brief 简洁(一句话)/ detailed 详细(问题正文、选项、工具名、用时) |
gating | away | away / mobileOnly / always |
presenceTtlSeconds | 300 | 心跳有效期(60–3600 秒) |
notifyOnQuestion | true | 需要你选择时通知 |
notifyOnApproval | true | 需要你审批时通知 |
notifyOnTurnEnd | true | 任务完成时通知 |
notifyOnError | true | 轮次失败时通知 |
notifyOnAbort | false | 轮次被中断时通知 |
minTurnSeconds | 5 | 短于此秒数的轮次不发;0 = 每轮都发 |
includeSubagents | false | 子任务的轮次也发 |
atMobiles | [] | 要 @ 的手机号(正文会自动补 @手机号 文本,否则钉钉不会真的 @) |
atAll | false | @ 所有人 |
dndEnabled | false | 免打扰时段开关 |
dndFrom / dndTo | 23:30 / 07:30 | 免打扰区间,可跨零点 |
dndExceptErrors | true | 免打扰时段内出错仍通知 |
mergeWindowSeconds | 3 | 同一轮同类提醒合并窗口;0 = 不合并 |
retryOnFail | true | 失败自动重试一次;被限流则冷却 60 秒 |
maxMessagesPerMinute | 18 | 每分钟上限(钉钉官方 20) |
发送诊断日志:~/.dsh/dingtalk-notify/log.ndjson,每行一条 JSON(sent / skip / error)。面板的「诊断」区也能看最近 20 条决策和跳过原因。
