nijika-boyfriend/dsh-macos-notify ↗★ 0

dsh-macos-notify

在任务完成或异常时发送 macOS 系统通知 适合在 macOS 上运行长耗时任务、需要即时接收状态提醒的用户。

包名
dsh-macos-notify
兼容性
待验证
Cordis 依赖范围
*
版本
1.1.0
许可证
MIT
最近更新
2026年10月2日

同名包的其他仓库

安装

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

配置项

配置字段类型默认值说明
soundstringGlass提示音名称,可选 Glass, Hero, Ping, Pop, default,设为 none 则静音
notifyOnCompletebooleantrue任务正常完成时是否发送通知
notifyOnErrorbooleantrue任务发生异常时是否发送通知
notifyOnApprovalbooleantrue等待敏感操作授权审批时是否发送通知
minDurationSecondsnumber1任务执行最短秒数,低于该时间的快速响应不触发通知

安装与配置

1. 安装插件

克隆本仓库到本地插件目录,例如 ~/.dsh/plugins/dsh-macos-notify,然后在目标配置目录,如 ~/.dsh/profiles/desktop,添加依赖:

cd ~/.dsh/profiles/desktop
pnpm add file:../../plugins/dsh-macos-notify

2. 注册补丁

在配置目录的 cordis.patch.yml 中添加插件配置项:

- insert:
    - id: macos-notify
      name: dsh-macos-notify
      config:
        sound: Glass
        notifyOnComplete: true
        notifyOnError: true
        notifyOnApproval: true
        minDurationSeconds: 1

在配置目录的 package.json 中将插件加入 bundles 列表:

{
  "dsh": {
    "profile": {
      "bundles": [
        "dsh-macos-notify"
      ]
    }
  }
}

启动或重载 DeepSeek Harness 后,插件将自动加载并监听任务事件。