dshbase

插件目录 / Developer / ds-turn-notify

ds-turn-notify

已验证 · 实测可装 reimu-create

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-14最近推送
跨平台平台

功能简介

Developer 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

ds-turn-notify(含 Windows 版与 macOS 版)

DSH(DeepSeek Harness)Web 会话的背景提醒插件,两个独立插件共存于本仓库:

插件 目录 平台 视觉提醒 提示音
ds-turn-notify(Windows 版) 仓库根目录 Windows powershell.exe → BurntToast / NotifyIcon 气泡 notify.ps1 → SoundPlayer / Beep
ds-turn-notify-mac(macOS 版) mac/ macOS /usr/bin/osascript → 通知中心 /usr/bin/afplay

两个插件功能一一对应,仅通知通道不同,各自独立安装、独立配置:

  1. 回合完成(主会话 turn/end)——提醒一次;
  2. 索要权限(approval/asked)——立即提醒(文案含工具名)。

默认只提醒主会话;子会话(subagent / fork / workflow,header.origin === 'subagent')不提醒。

功能

  • 零第三方依赖:只用 Node 内置模块 + 系统自带命令;child_process.spawn fire-and-forget(stdio: 'ignore'、unref()),不阻塞 agent turn。
  • 仅页面在后台时提醒(notifyOnlyWhenHidden):浏览器 client 半检测页面可见性(document.hidden / 失焦)并经同源路由上报 host,所有 DSH 页面都不可见时才提醒;盯着页面时安静。
  • 提醒文案携带当前会话标题(showTitle):「标题」第 N 回合完成 / 「标题」会话请求权限:工具名;无标题自动回退。
  • 防抖:同一会话同一类事件在 debounceMs 内合并为一次;approval/asked 与 turn/end 分开计时。
  • 任何提醒失败均不影响会话本身(仅 logger.warn)。

配置项(各插件 cordis.patch.yml → config)

键 类型 默认 说明
enabled bool true 插件总开关
sound bool true 是否播放提示音
soundPath string '' 自定义音频路径(Win: wav;Mac: afplay 支持 aiff/m4a/mp3 等)
toast bool true 是否发送视觉提醒
onlyMainSession bool true 只提醒主会话
debounceMs number 800 同类事件防抖间隔(毫秒)
turnDone bool true 是否在回合完成时提醒
approval bool true 是否在请求权限时提醒
notifyOnlyWhenHidden bool true 仅所有 DSH 页面都不可见时提醒
showTitle bool true 提醒文案是否携带会话标题前缀
title string DSH 提醒 提醒标题

安装

Windows 版(仓库根目录):

git clone https://github.com/237229953-create/ds-turn-notify.git
cd ds-turn-notify
dsh plugin --profile web add .

macOS 版(mac/ 子目录):

git clone https://github.com/237229953-create/ds-turn-notify.git
cd ds-turn-notify/mac
dsh plugin --profile web add .

安装后重启 dsh(dsh web)生效。

macOS 通知权限

首次触发提醒时,macOS 可能弹出「终端/iTerm 想发送通知」的授权提示——请允许,否则 osascript display notification 不会显示。

目录结构

ds-turn-notify/
├── package.json        # Windows 版 bundle 元数据
├── cordis.patch.yml    # Windows 版挂载层
├── lib/                # Windows 版主体(index.js / notify.ps1 / client.js)
├── test/               # Windows 版逻辑测试
└── mac/                # macOS 版(独立插件,原 ds-turn-notify-mac 仓库)
    ├── package.json
    ├── cordis.patch.yml
    ├── lib/            # index.js / client.js
    └── test/

测试

node test/harness.mjs       # Windows 版
node mac/test/harness.mjs   # macOS 版

版本

  • Windows 版:0.1.0
  • macOS 版:0.1.0

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 ds-turn-notify」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:reimu-create/ds-turn-notify

Headless(CLI)profile:

dsh plugin --profile headless add github:reimu-create/ds-turn-notify

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →