lizhijie429/dsh-task-notifier ↗★ 0

@lizhijie429/dsh-task-notifier

DSH Host plugin: monitor agent turn status, send OS notifications (Windows toasts branded with the DSH icon), and auto-continue after exhausted model-request retries.

パッケージ
@lizhijie429/dsh-task-notifier
互換性
未検証
Harness ピア範囲
>=0.2.1-0 <0.3.0
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/11/03

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lizhijie429/dsh-task-notifier

ドキュメント

README 全文を読む ↗

配置参考

字段默认值说明
notifyOnStartfalseturn/start 时通知(开始刷屏,默认关)
notifyOnCompletetrueturn/end 且 reason.kind 为 completed/max-tokens 时通知
notifyOnErrortrueerror/blocked/interrupted 时通知
notifyOnAbortfalse用户取消(aborted)时是否通知
notifyOnStepfalse每步(step/start)通知,调试用
notifySubagentsfalse是否通知子代理会话(默认只通知主会话)
channelautoauto/windows/macos/linux/log/none
titlePrefixDSH通知标题前缀(≤60 字符,超出截断并告警)
windowsAppIdDSH.TaskNotifierWindows Toast 的 AppUserModelID(决定通知中的应用名/图标)
windowsAppNameDSHWindows Toast 显示的应用名
maxBodyChars240正文裁剪长度(60–2000)
includePreviewfalse是否在通知里附模型输出预览(默认关,避免锁屏泄露内容)
logFile/state/task-notifier.logJSONL 调试日志;相对路径按插件目录解析;256KB 轮转为 .1
autoContinue.enabledtrue是否允许自动继续
autoContinue.message继续自动发送的用户消息内容
autoContinue.maxAttempts3每个任务最多自动继续次数(硬上限 50)
autoContinue.cooldownMs5000两次自动继续之间的最小间隔;0 表示立即
autoContinue.requireRetryExhaustedtrue只对“模型请求重试预算耗尽”的失败自动继续
autoContinue.respectProviderRetryAftertrue若失败带 providerRetryAfterMs,至少等待该时长再继续(>120s 则跳过)
autoContinue.retryableCodesEMPTY_RESPONSE,RATE_LIMIT,SERVER,TIMEOUT,TRANSPORT视为可重试的失败码

非法配置不会抛错:逐项回退默认值,既写 Host 日志,也作为 config.warning 事件写进调试日志,并汇总到 plugin.mounted 的 warnings 字段;未知配置键(手写 patch 拼写错误)同样会告警,不再静默失效。