dsh-sound-cue

by Nixz0824

0 通知与集成github 检测到 manifest package.json#dsh 社区精选 收录于 08-17

DSH sound cues: ding when you need to act, another when a task finishes / 需要操作与任务完成时的简短提示音(Web Audio,无弹窗)

安装

dsh plugin --profile web add github:Nixz0824/dsh-sound-cue

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

中文 · English

DSH Web 提示音:需要你操作时,与任务完成时,各响一声不同的短音。

Two short Web Audio cues for DeepSeek Harness — one when you need to act, one when a task finishes.

License DSH

试听 / Listen

点击即可试听默认风格 A 的两种提示音(与插件现场合成同一组音符)。若自动播放被浏览器拦住,页面上再点一次即可。

Click to hear the two default (style A) cues — the same notes the plugin synthesizes. If the browser blocks autoplay, click once more on the preview page.

中文 English Play
需要操作(审批 / 提问 / 计划确认) Needs attention (approval / question / plan review) ▶ 试听 / Play
任务完成 Task done ▶ 试听 / Play

备用链接 / fallbacks:


纯客户端实现,用 Web Audio 现场合成,无弹窗、无系统通知、无音频文件依赖。

行为

事件 触发条件 提示音(风格 A 默认)
需要操作 会话出现待审批 / 待回答 / 待计划确认(pendingInteraction 从无到有) 叮咚双音(880→1175Hz,约 0.3s)
任务完成 当前会话回合结束(running true→false),或后台会话完成提醒翻转(completed) 上行琶音(C5-E5-G5,约 0.45s)
  • 子代理会话的事件默认忽略(skipSubagents: true)
  • 同一种音 400ms 内不重复播放
  • 浏览器自动播放策略:首次点击/按键后解锁 AudioContext(此后一直有效)
  • 完全本地合成:无网络请求、无文件依赖、无隐私外发

安装

仓库是公开的,现在就可以装,不必等社区精选列表收录。

# 推荐:GitHub Release 预构建包
dsh plugin --profile web add https://github.com/Nixz0824/dsh-sound-cue/releases/latest/download/dsh-external-dsh-sound-cue-0.1.0.tgz

# 或直接从 GitHub 源码安装
dsh plugin --profile web add github:Nixz0824/dsh-sound-cue

# 或本地源码:
dsh plugin --profile web add "link:<本目录绝对路径>"

装完刷新浏览器页面即可生效(客户端 bundle 随页面加载)。重启 dsh web 一次更稳。

配置

写在本包 cordis.patch.yml 的 insert 行(也可在 profile 的 cordis.patch.yml 里覆盖):

配置 默认 说明
style 'A' A = 简约电子铃;B = 木质敲击(低频叩叩 + 咻—叮滑音)
volume 0.5 音量 0..1
needsOn true 「需要操作」提示音总开关
doneOn true 「任务完成」提示音总开关
skipSubagents true 忽略子代理会话事件

改配置后刷新页面生效。

结构

  • lib/index.js —— 宿主入口(纯客户端插件,宿主侧为空)
  • lib/client.js —— 客户端 bundle(官方 ModuleLoader 格式,免构建)
  • cordis.patch.yml —— bundle 装配层(insert + 默认配置)
  • docs/ —— 试听页与两种提示音的 WAV

lib/ 为手写维护的发布源;改完刷新页面即可。

开发

npm run check
python scripts/gen-preview-sounds.py   # 重新生成 docs/sounds/*.wav

License

BSD-3-Clause.


Client-only. Cues are synthesized with the Web Audio API — no popups, no OS notifications, no audio files at runtime.

Behavior

Event When Cue (style A, default)
Needs attention A session gets a pending approval / question / plan review (pendingInteraction goes from absent to present) Two-tone ding (880→1175 Hz, ~0.3s)
Task done The current session turn ends (running true→false), or a background session flips completed Rising arpeggio (C5-E5-G5, ~0.45s)
  • Subagent sessions are ignored by default (skipSubagents: true)
  • The same cue will not replay within 400ms
  • Browser autoplay policy: the first click or keypress unlocks AudioContext; it stays unlocked after that
  • Fully local: no network, no file dependency, nothing leaves the machine

Install

The repository is public. You can install it now; listing on the community catalog is separate.

# Recommended: GitHub Release tarball
dsh plugin --profile web add https://github.com/Nixz0824/dsh-sound-cue/releases/latest/download/dsh-external-dsh-sound-cue-0.1.0.tgz

# Or install from GitHub source
dsh plugin --profile web add github:Nixz0824/dsh-sound-cue

# or from a local checkout:
dsh plugin --profile web add "link:<absolute-path-to-this-folder>"

Reload the browser page after install (the client bundle loads with the page). Restart dsh web once if the plugin does not appear.

Config

Set on the insert row in this package's cordis.patch.yml (or override from the profile cordis.patch.yml):

Key Default Meaning
style 'A' A = short electronic bell; B = wooden knock (low double-tap + glide)
volume 0.5 0..1
needsOn true Master switch for the "needs attention" cue
doneOn true Master switch for the "task done" cue
skipSubagents true Ignore subagent session events

Reload the page after changing config.

Layout

  • lib/index.js — host entry (empty; this plugin is client-only)
  • lib/client.js — client bundle (official ModuleLoader format, no build)
  • cordis.patch.yml — bundle patch (insert + defaults)
  • docs/ — listen page and the two preview WAVs

lib/ is the hand-maintained source. Edit and reload.

Development

npm run check
python scripts/gen-preview-sounds.py   # regenerate docs/sounds/*.wav

License

BSD-3-Clause.

原始 README: https://github.com/Nixz0824/dsh-sound-cue/blob/main/README.md ↗

同类插件

查看全部 →
通知与集成alvinunreal

dsh

将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。

查看详情
1081github+08-21
通知与集成tencent-connect

dsh-qqbot

让 QQ Bot 接入 DeepSeek Harness(dsh)的官方插件

查看详情
55github+08-17
通知与集成omdsh-dev

dsh-open-in-vscode

从 Web GUI 一键在 VS Code 中打开工作区目录。

查看详情
39github+08-13
通知与集成omdsh-dev

dsh-notification

回合完成桌面通知,按结果分控 + 关键词过滤。

查看详情
38github+08-13
通知与集成THEWOLFWALKER

dsh-notifier

DSH 统一通知推送与远程控制:一个 `notify()` API 打通 25+ 渠道(Telegram / 钉钉 / 飞书 / 企业微信 / QQ 机器人 / WxPusher / PushPlus / Server 酱 / Bark / Discord / Slack / ntfy / webhook 等),timeSensitive / active / passive 分级路由并重试;五通道反向审批(Telegram 按钮 / 飞书卡片 / QQ / WxPusher / 微信 iLink);QQ/钉钉/飞书官方扫码登录;本地 Web 管理台;多 agent 路由;系统桌面通知——以及**手机指挥中心**:在手机上发 `!status` / `!stop` / `!retry` 遥控 agent,通知带可操作按钮(查看结果 / 重试 / 日志,点击回调 agent)。密钥脱敏、工具限流、零运行时依赖。

查看详情
27github+08-16
通知与集成wzj998

chatccc

飞书(Lark)或微信(WeChat)聊天控制 DeepSeek Harness / Claude Code / Cursor / Codex / CCC Agent

查看详情
22github+08-23