dsh-auto-notify
Verifieddsh-auto-notify · v0.3.3 · MIT
Dependable scheduled/background tasks for DeepSeek Harness: notify on done/fail, catch-up after reboot, never drop a notification.
Install
dsh plugin add dsh-auto-notify Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Creators
Readme
dsh-auto-notify
给 DeepSeek Harness 加一个靠得住的任务管家:定时/后台任务跑完会通知你、失败也通知你、关机错过的会补跑、通知发不出去也不会丢。
它解决 4 个真实痛点
| 痛点 | 没有它会怎样 | 有了它 |
|---|---|---|
| 长任务跑完没人知道 | 你只能自己盯着 | ✅ 跑完自动发通知(飞书 / webhook / Bark / 任意命令) |
| 任务失败静默死掉 | 几天后才发现 | ✅ 失败自动重试(指数退避),彻底失败发告警 |
| 机器关机,错过的任务没了 | 备份/巡检永远不跑 | ✅ 任务状态写盘,下次启动补跑(加载后立刻检查,不用等一个周期) |
| 通知发送失败 | 消息悄悄丢了 | ✅ 先入本地队列,随后自动补发(绝不丢) |
安装
dsh plugin --profile web add git+https://gitee.com/lulalalaaa/dsh-auto-notify.git
# 或本地包
dsh plugin --profile web add ./dsh-auto-notify-0.3.3.tgz
装完重启一次 DSH 生效。
用法(不用写代码)
在 profile 的 cordis.patch.yml 里加:
- id: dsh-auto-notify
name: dsh-auto-notify
config:
tickSeconds: 60
channels:
# 飞书群机器人
- type: feishu
url: 'https://open.feishu.cn/open-apis/bot/v2/hook/你的key'
# 或者:把通知交给本机任意脚本(例如已有的通知中心)
- type: command
url: '/usr/bin/python3'
args: ['/home/you/notify.py']
tasks:
- name: daily-backup
everySeconds: 86400
command: 'bash ~/backup.sh'
notifyOn: always # always | success | failure | never
- name: check-disk
everySeconds: 3600
command: 'df -h | tail -1'
notifyOn: failure
给别的插件用(编程接口)
apply(ctx) {
ctx.autoNotify.register({
name: 'my-job', everySeconds: 3600, notifyOn: 'failure',
handler: async () => '结果文本',
});
}
设计取向
- 零依赖:只用 Node 内置(fetch / child_process / fs)
- 不静默失败:任何错误都会进日志/通知
- 不丢通知:失败入队 + 上限重试
- 不依赖平台:可 Git 安装、可本地包安装
MIT © 2026