Lon-dawn/dsh-notify-whale ↗★ 0

dsh-notify-whale

加固的通知插件,支持多通道投递与事件级铃声 适合需要稳定接收任务状态、等待审批等通知的用户,修复了多项投递Bug。

套件
dsh-notify-whale
相容性
待驗證
版本
0.4.3
授權
MIT
最近更新
2026年9月22日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lon-dawn/dsh-notify-whale

配置

写入 $DSH_HOME/settings.yaml 的 task-notify: 段:

task-notify:
  enabled: true
  notifyOn: [idle, error, blocked]   # blocked 供等待类通知复用
  agents: root                       # root=只通知顶层会话 | all;等待类通知不受此项限制
  coalesceWindowMs: 2000             # 同会话窗口内合并重复通知
  desktop:
    enabled: off                     # auto | on | off(注意:写 false 会警告并回退为 auto)
    sound: true
  format:
    time: short                      # hidden | short | full —— 正文尾部时间样式
    showDuration: true               # 负载携带 durationMs 时追加「用时 X」
  icons:
    enabled: true                    # 图形图标总开关
    urlTemplate: ""                  # 远程图标 URL 模板;含 {event} 则按事件取图,如 https://host/icons/{event}.png
  ntfy:
    enabled: true
    server: https://ntfy.sh
    topic: "你的随机主题名"           # 公共服务器上 topic 就是密码,别用可猜的名字
    token: ""                        # 自建实例需要鉴权时填
  bark:
    enabled: true
    server: https://api.day.app
    deviceKey: "你的BarkKey"
    sound: "fanfare"
    sounds:
      error: calypso
      stopped: bell
      interrupted: bloom
      awaiting-approval: horn
      awaiting-answer: horn
  serverchan:
    enabled: false
    sendKey: ""
  webhook:
    enabled: false
    url: ""
    headers: {}

配置优先级:cordis patch 显式传参 > settings.yaml > 环境变量(DSH_TASK_NOTIFY_*)> 内置默认。

架构与事件契约详见 SPEC.md。