DeepSHPlugins
dsh-plugin-notify-sound 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-plugin-notify-sound

工具與整合JavaScriptMIT

按工作區定製的任務完成鈴聲,以及審批、提問、計劃評審、目標受阻、任務失敗等需要人介入事件的注意提示音,支援內建合成音、語音播報與自定義音訊。

5 Starsldchaowin 更新時間 2026-08-14
訪問 GitHub 倉庫
dsh-plugin-notify-sound 專案預覽

專案介紹

中文

按工作區定製的任務完成鈴聲,以及審批、提問、計劃評審、目標受阻、任務失敗等需要人介入事件的注意提示音,支援內建合成音、語音播報與自定義音訊。

English

Per-workspace completion ringtones plus attention sounds for approval, question, plan-review, goal-blocked, and task-failure events, with built-in synth, voice (TTS), and custom audio.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
ldchaowin
倉庫
ldchaowin/dsh-plugin-notify-sound
GitHub Stars
5
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-14
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

69/ 100
維護活躍
81
文件與實用資訊
100
生態關注度
22
安裝便捷訊號
100
專案宣告訊號
100

README 含完整安裝與使用說明;關注度尚低(5);標準命令一鍵安裝。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-plugin-notify-sound

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-plugin-notify-sound

English | 中文

A DeepSeek Harness (DSH) plugin for the Web UI: play a customizable ringtone when a task finishes — per workspace — and an attention sound whenever something needs a human.

Features

Completion sounds (per workspace)

  • Plays when a session turn finishes (running: true → false) or a background job completes.
  • The sound is resolved per workspace: a workspace-specific override wins, otherwise the default.
  • Three sound sources:
  • Built-in synthesized sounds — 6 options (Ding / Chime / Bell / Complete / Success / Mute),

generated live with Web Audio, no audio files required.

  • Voice announcement (TTS) — the browser speaks a custom phrase (e.g. “我做完啦!”, “All done!”)

using a system Chinese voice; voice and rate are configurable.

  • Custom audio — upload any MP3/WAV/etc. file.

Attention sounds (when a human is needed)

The following events always ring (they are not affected by the “quiet current session” option):

EventDetectionDefault sound
Approval requestsession pendingInteraction: approvalgeneric attention sound
User questionpendingInteraction: questiongeneric attention sound
Plan reviewpendingInteraction: plan-reviewgeneric attention sound
Goal blockedgoal projection enters blockedgeneric attention sound
Background task failurejob status failedBell (dedicated failure sound)

Each kind can override the generic attention sound, or use a shared TTS phrase (e.g. “需要你的确认” / “Your confirmation is needed”).

Settings panel (Settings → 通知铃声 / Notification Sounds)

Master switch, “quiet when viewing the current session”, default completion sound, per-workspace completion sounds, generic + per-kind attention sounds, voice settings (voice / rate / preview / refresh), per-row preview and custom-audio upload.

Install

Requires a DSH version with bundle-plugin support (dsh.profile.bundles + dsh.bundle.patch) and pnpm on PATH (corepack enable or npm i -g pnpm).

# One command: pnpm installs the package and adds it to the profile's bundle layer
dsh plugin --profile web add dsh-plugin-notify-sound

# Restart the server (or refresh the page), then open Settings → 通知铃声

Other profiles work the same way: dsh plugin --profile <name> add dsh-plugin-notify-sound.

Manual install (without pnpm)

  1. Copy this package and its runtime deps (@deepseek-ai/schemastery,

@deepseek-ai/cosmokit, @standard-schema/spec) into $DSH_HOME/profiles/web/node_modules/.

  1. Append "dsh-plugin-notify-sound" to dsh.profile.bundles in

$DSH_HOME/profiles/web/package.json.

  1. Restart dsh web.

Configuration storage

  • The browser half persists its configuration in localStorage (key

dsh-notify-sound:config), sanitizing every read and filling defaults.

  • The host half also registers the dsh-plugin-notify-sound settings namespace: on rc.6 the

settings API allowlist (WEB_SETTINGS_NAMESPACES in dsh-host-apiproxy) does not expose third-party namespaces to browsers, so the client does not depend on settingsScope today; the registration keeps the migration path open for future releases.

Development

npm test      # 50+ assertions across host and client halves (Node only, no browser needed)
npm run check # syntax check

Layout:

  • lib/index.js — host half: registers the settings namespace (schema + defaults)
  • lib/client.js — browser bundle: completion/attention event detection, sound engine

(Web Audio / TTS / Audio), settings panel

  • lib/types/index.d.ts — host-side type declarations
  • cordis.patch.yml — bundle patch layer (inserts the notify-sound row)
  • tools/ — tests and verification scripts (not shipped in the npm package)

Publish

npm login                       # npm account (2FA recommended)
npm publish --access public

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案