返回目录
消息通讯 插件

dsh-notify

NkhszkQAQ/dsh-notify

dsh 插件:任务完成推送手机通知(Bark / Server酱 / webhook)

Stars
0
Forks
0
Issues
0
更新
3 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:NkhszkQAQ/dsh-notify

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-notify 🔔

dsh 任务完成时推送手机通知。监听 turn/end 事件(一轮任务结束),通过 Bark(iPhone)/ Server酱(微信)/ 任意 webhook 提醒你。

1. 准备推送通道(二选一)

方案 A:Bark(iPhone,推荐)

  1. App Store 装 Bark
  2. 打开 App,复制你的推送地址,形如:https://api.day.app/xxxxxxxxxxxx

方案 B:Server酱(微信)

  1. 打开 sct.ftqq.com,微信扫码登录
  2. 复制 SendKey,拼接成:https://sctapi.ftqq.com/<SendKey>.send

2. 配置 webhook

export DSH_NOTIFY_WEBHOOK="https://api.day.app/xxxxxxxxxxxx"

或在 cordis.patch.yml 的插件条目里加 config(效果相同):

- insert:
  - id: dsh-notify
    name: '@dsh-external/dsh-notify'
    config:
      webhook: 'https://api.day.app/xxxxxxxxxxxx'

3. 挂载插件

dsh plugin --profile web add link:/Users/nkhszk/.openclaw/workspace/dsh-notify

4. 重启生效

dsh web

5. 验证

在 dsh 里随便跑一个任务,完成后手机应该收到"✅ dsh 任务完成"推送。 没有收到?看终端日志:[dsh-notify] 发送失败: ... 会告诉你原因。

可选配置

字段 默认值 说明
webhook 环境变量 DSH_NOTIFY_WEBHOOK 推送地址
title ✅ dsh 任务完成 通知标题
debounceMs 10000 防抖毫秒数,10 秒内只发一条

备注

  • 插件是纯 ESM 的 .js,无需 TypeScript 编译,link: 挂载后直接用
  • dsh 目前是 v0.1 预览版,事件名/API 可能变动;若 turn/end 失效,检查官方事件目录 packages/core/session/src/known-event-types.ts

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类消息通讯
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: webhook、通知、推送。