hellosz/dsh-ntfy0

dsh-ntfy

DSH 主机侧插件:当智能体需要审批或完成任务时,推送 ntfy 消息通知。

AI 分析

核心用途是在 AI 任务需要人工确认或运行结束时,向用户的 ntfy 客户端发送即时推送。适合运行长耗时任务、需要离线接收状态提醒的用户。

套件
dsh-ntfy
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

3. 编辑 $DSH_HOME/profiles/$PROFILE/cordis.patch.yml,追加下方「配置」段

配置(写入 cordis.patch.yml)

- insert:
    - id: ntfy-notify
      name: ./ntfy-notify.mjs        # 方式 A;方式 B 用 dsh-ntfy
      config:
        topic: your-secret-topic   # 必填:你的 ntfy 主题名
        machine: my-machine        # 可选:默认取主机名
        server: https://ntfy.sh    # 可选:自建 ntfy 时改这里
        cooldownMs: 60000          # 可选:冷却毫秒
        notifyApproval: true       # 可选:需要确认通知
        notifyDone: true           # 可选:完成通知

改完重启 DSH 生效。

必填默认说明
topicntfy 主题名(订阅 URL 最后一节)。缺失时插件记录错误并保持惰性,不影响 DSH 启动
serverhttps://ntfy.shntfy 服务器地址
machinehostname()通知标题里的机器名
cooldownMs60000同项目同类通知最小间隔(毫秒)
notifyApprovaltrue是否需要「需要确认」通知
notifyDonetrue是否需要「完成」通知