TerricSH/dsh-notify1

@terricsh/dsh-notify

适用于 DeepSeek Harness 的桌面通知插件:支持审批请求、任务完成和出错事件,并提供点击直接跳转至 Web 对应会话的深层链接。

AI 分析

核心用途是提供带深层链接的系统级事件通知。适合后台挂机运行 Agent 任务,并希望在需要审批或任务结束时一键切回对应会话的用户。

包名
@terricsh/dsh-notify
版本
0.1.0
最近更新
2026年8月14日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

使用方法

两种安装方式二选一。装好后,当代理产生以下事件时会弹系统通知,点击通知 即可定位到 Web GUI 中对应会话(显示该会话的讨论内容):

  • 审批请求(需要你批准某操作时)
  • 任务完成(一轮对话结束)
  • 任务出错

方式 A:从 npm 安装(已发布后,推荐)

  1. 装进 web profile:

    dsh plugin --profile web add @terricsh/dsh-notify
    
  2. 加 host 引用行(见 cordis.patch.example.yml),编辑 $DSH_HOME/profiles/web/cordis.patch.yml(默认是 []):

    - insert:
        - id: notify-desktop
          name: '@terricsh/dsh-notify'
    

    也可放到 home 级 $DSH_HOME/cordis.patch.yml(对所有 profile 生效)。

  3. 重启:

    dsh web
    

方式 B:本地源码安装(未发布到 npm 时)

  1. 把本仓库目录链进 profile 的 node_modules。Windows(PowerShell):

    New-Item -ItemType Directory -Force "$env:DSH_HOME\profiles\web\node_modules\@terricsh"
    New-Item -ItemType Junction `
      -Path "$env:DSH_HOME\profiles\web\node_modules\@terricsh\dsh-notify" `
      -Target "E:\dsh\dsh-notify"   # 改成你的仓库绝对路径
    

    macOS / Linux 用 ln -s 建软链接到对应位置即可。

  2. 同样编辑 cordis.patch.yml 加上面的 insert 行。

  3. 重启 dsh web