@dsh-external/dsh-notifier
DSH 任务提醒插件:任务结束/审批/提问/出错时提供网页 toast、跨窗口系统弹窗及通知中心提醒;支持在设置页自定义弹窗样式、主题、宽度与系统级开关。
AI 分析
核心用途是为 DSH 的各种任务状态提供多渠道通知提醒。适合运行长时间任务、需要即时获取审批或报错通知的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:nanami-0713/dsh-notifier说明文档
阅读完整 README ↗配置
推荐:设置页可视化配置。打开左下角「设置 → 提醒通知」,切换预设或修改任意字段都会实时生效,并自动保存到:
~/.dsh/plugins/dsh-notifier/config.json
配置通过同源 API 读写:GET/PUT /api/dsh-notifier/config。
兼容:loader 配置。插件仍接受 config / patch 里的部署默认配置,全部有默认值:
| 字段 | 默认 | 说明 |
|---|---|---|
preset | default | 内置预设:default / top-light / focus / native-only |
toast.enabled | true | 是否在 DSH 网页内显示 toast |
toast.position | bottom-right | bottom-right / bottom-left / top-right / top-left |
toast.theme | dark | 深色 / 浅色卡片 |
toast.width | 380 | 弹窗宽度 px(320–560) |
toast.radius | 14 | 卡片圆角 px(6–20) |
toast.sound | true | 提示音 |
toast.durationSeconds | 6 | 普通提示停留秒数(4–30) |
toast.errorDurationSeconds | 10 | 错误提示停留秒数(4–30) |
toast.maxCount | 6 | 同屏最多卡片数(1–10) |
floating | true | 跨窗口系统弹窗(macOS Swift notifier / Windows PowerShell WScript.Shell.Popup / Linux zenity) |
desktop | true | 系统通知中心横幅 |
webUrl | $DSH_WEB_URL 或 http://127.0.0.1:3080 | 悬浮面板「去处理 / 查看会话」按钮打开的地址 |
bridgeUrl | 空(关闭) | dsh-remote bridge 地址(如 http://127.0.0.1:8787),配置后把「任务完成 / 需要你回答」弹窗推给手机 |
bridgeToken | 空(关闭) | dsh-remote bridge 主 token(与 bridge config.json 的 token 一致);也可用环境变量 DSH_BRIDGE_TOKEN |
bridgePush | true | 手机推送总开关(关闭后完全不转发) |
bridgePushKinds.done | true | 任务完成是否转发到手机 |
bridgePushKinds.question | true | 需要你回答是否转发到手机 |
quietSeconds | 8 | 同一事件的最短重复提醒间隔(秒) |