WShihan/dsh-macos-notify0

dsh-macos-notify

DeepSeek Harness plugin: native macOS Notification Center banners (osascript) when an agent turn ends or a permission request arrives, with a per-operation sound picker on the web settings page

包名
dsh-macos-notify
版本
0.1.0
最近更新
2026年9月11日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WShihan/dsh-macos-notify

在 deepseek-harness 检出目录内使用

用一个 patch 覆盖层指向构建后的入口:

- name: 'file:///absolute/path/to/deepseek-harness/macos-notify/lib/index.js'

请把构建后的插件挂载到运行构建产物的 harness 上。以源码方式启动(tsx)的 harness 会从源码解析 @deepseek-ai/*,此时构建后的插件会加载第二个 Cordis 实例;请先构建 harness(pnpm run build)。

组合配置(cordis.yml

每个字段都可省略;设置文档的优先级高于它。

字段默认值含义
notifyOnTurnEndtrue每个关闭的 agent 轮次弹出一条通知。
notifyOnApprovaltrue审批请求到达应答链时弹出通知。
topLevelOnlytrue跳过委托子 agent(delegationDepth > 0)所属的会话;用户分叉出的会话仍视为顶层。
sounds.completedsounds.approval见上表每种操作的提示音。未知名称会在加载时明确失败,作为设置写入也会被拒绝。
messages..title见上表横幅标题。sounds 下的每一种操作在这里都有对应项。
messages..message见上表横幅内容;横幅触发时会代入上表的可用变量。
- id: macos-notify
  name: dsh-macos-notify
  config:
    sounds:
      completed: Hero
      approval: Submarine
    messages:
      completed:
        title: 任务完成
        message: 第 {turn} 轮已结束
      error:
        title: 任务失败
        message: '第 {turn} 轮失败:{error}'
      approval:
        title: 需要授权:{tool}
        message: 原因:{reason}