dsh-notify-cues
根据会话结束原因发送Windows通知 适合在后台运行长任务、需要即时获取状态反馈的Windows用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:3332210/dsh-notify-cues說明文件
閱讀完整 README ↗配置
配置文件在 ~/.dsh/dsh-notify-cues.json,可以在设置页改,也可以手改。每次通知都重新读取,所以手改立刻生效。
| 字段 | 默认 | 含义 |
|---|---|---|
notifications | true | 总开关:不出声、不弹通知、不闪任务栏 |
flash | true | 任务栏闪烁 |
flashCount | 3 | 开场闪几次 |
flashTimeout | 500 | 每闪一下的间隔毫秒数 |
flashAfter | holdUntilFocused | stop · holdUntilFocused · keepFlashing |
toast | true | 系统通知弹窗 |
volume | 1 | 提示音音量,0.1–1.0 |
quietOnForeground | true | 只静默你正在读的那一个会话 |
alwaysNotifyAttention | true | 提问与审批不受上面那条限制 |
dedupMs | 1500 | 同情形去重窗口 |
per..enabled | true | 单个情形开关 |
per..toast | true | 单个情形是否弹通知 |
per..sound | 同情形名 | 音色名、ding、none,或 .wav 路径 |
情形键名:completed、interrupted、error、max-tokens、blocked、attention。
HTTP 接口
仅接受同源请求(校验 Sec-Fetch-Site,跨站返回 403)。
| 端点 | 方法 | 用途 |
|---|---|---|
/dsh-notify-cues/config | GET/POST | 读取 / 局部更新配置 |
/dsh-notify-cues/presence | GET/POST | 浏览器状态:{visible, focused, viewedSessionId} |
/dsh-notify-cues/test?scene= | GET | 立刻发一条该情形的真实通知 |
/dsh-notify-cues/keys | GET | 情形名与音色名清单 |