DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-sound-alerts

s

dsh-sound-alerts

Manifest valid★ 4

## DSH Web UI Sound Notification Plugin **Audio Alerts: Plays notification sounds at Authorization/Questioning and Task Completion** (Web Audio, no asset files)

UI (client)hasBundlePatch

@dsh-external/dsh-sound-alerts

DSH Web UI 声音提示插件(browser client bundle,platform: web)。

当以下事件发生时播放提示音:

事件默认声音触发源
需要授权(沙箱/命令审批)双音 ×2(急切)会话 pendingInteraction === 'approval'(approval/requested 帧)
需要回答问题(ask_user_question)单次双音(柔和)会话 pendingInteraction 为 question / plan-review
任务/运行完成三连胜利音会话 running true→false(2.5s 复检)或后台会话 completed 标记
任务失败关羽之歌(合成致敬版)当前会话 lastAgentError 从无到有(host/agent-error 帧)
goal 完成四音胜利收尾当前会话 goal 投影 phase → complete

默认音全部由 Web Audio 合成(无音频资源);声音在浏览器标签页中播放(含后台 标签页),首次点击/按键后解锁 AudioContext。

自定义声音

设置 → 通用 → "声音提示 (Sound Alerts)",每个事件一行:

需要授权    [上传] [试听] [清除] 自定义文件名.mp3
  • 上传:本地音频文件(mp3/wav/ogg/m4a/flac,≤10MB),以 dataURL 存入 IndexedDB(不占 localStorage 配额,刷新/重启不丢)
  • 试听:有自定义播自定义,无自定义播内置合成音
  • 清除:删除自定义音频,恢复内置音
  • 自动回退:自定义音频加载/播放失败时静默回退内置合成音

播放时音量跟随滑杆;全局 1.2s 防抖避免批量事件轰炸。

设置

总开关 + 音量滑杆 + 各事件开关/上传/试听/清除,持久化于 localStorage 键 dsh-sound-alerts:settings。

诊断

console.debug('[sound-alerts]', ...) + window.__soundAlertsLog(最近 100 条)。

结构

  • src/index.ts — node half:空 apply(纯 UI 插件,让行出现在 host Loader)。
  • src/client/index.ts — 浏览器 half:声音引擎 + sessions 监视 + 设置行 + 自定义音频。
  • cordis.patch.yml — bundle patch:向 Web 装配树插入名录行 sound-alerts。
  • dsh.bundle.patch — 使本包作为 profile bundle 层装配(dependencies + bundles)。

构建与安装

# 依赖(esbuild 构建 client;--legacy-peer-deps 跳过内部 rc 包的 peer 自动安装)
npm install --legacy-peer-deps

# 构建(node half: tsc via scripts/build.sh;client half: esbuild via scripts/build-client.mjs)
bash scripts/build.sh        # DSH_CHECKOUT 自动探测($HOME/dsh-harness)
npm run build:client

# 注入器环境内热装配(改 profile package.json + junction + loader.create)
dev_install_package D:/DSH/plugins/dsh-sound-alerts

安装后刷新浏览器页面:启动图 window.__DSH_BOOT__ 会包含本包 client.js, 声音即生效(新名录行需一次刷新,之后 HMR 管内容热更)。

Comments

Loading…

Similar plugins

dsh-sound-alert

by Charlestam218

DSH 声音提示插件:任务完成与需要确认时播放两种不同的清脆音效(一高一低,浏览器端合成,无音频文件),并在任务栏图标上显示待处理会话数

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 2, 2026

dsh plugin --profile web add dsh-sound-alert

by AGImentu

DSH (DeepSeek Harness) Web 插件:任务完成后播放提示音(可开关、可调音量、可上传自己的音频;内置提示音由脚本合成)

Development & InfrastructureManifest valid

★ 0

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add dsh-turn-chime

by ZIye1208

DSH Web GUI 审批语音提示插件:需要审批/回答的弹窗出现时播放提示音并语音播报

Notifications & IntegrationsManifest valid

★ 3

↓ 209/wk

MIT

JavaScript

Oct 4, 2026

dsh plugin --profile web add dsh-approval-voice

by AI-Galaxy-GPU

DeepSeek Harness(DSH)Web 端插件:回合完成、审批、提问、计划评审、目标受阻、任务失败各有独立提示音与音量,内置合成音 / 静音 / 本地音频文件,Web 设置面板可配置。

Notifications & IntegrationsManifest valid

★ 14

↓ 6/wk

MIT

JavaScript

Sep 15, 2026

dsh plugin --profile web add dsh-sound

by anne43983959

DSH 宿主插件:审批询问与一轮对话结束时播放声音提示(含两次实测事故复盘)

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 2, 2026

dsh plugin --profile web add dsh-audio-cue

by liuyun847

DSH Web 客户端插件:AI 回复完成时播放双音提示音 (DeepSeek Harness)

Manifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-client-ui-turn-chime