rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jensentsts/dsh-completion-sound
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH (DeepSeek Harness) completion-sound bundle: plays a chime when an agent turn finishes; plays the special "Guan Yu's Song" music and shows a click-to-stop modal when a long task (≥ 10 minutes by default) finishes; optionally fires a desktop notification (browser notification first, with an automatic fallback to a system notification).
Package:
@jensentsts/dsh-completion-sound· Version:0.1.0· License: MIT

dsh plugin --profile web add github:jensentsts/dsh-completion-sound
Replace web with the profile you want to install into. Build artifacts (lib/) are committed, so installing from git needs no pnpm build authorization (pnpm ≥10 allowBuilds); it works right after dsh plugin add.
Pin a commit so later pushes cannot silently change what runs:
dsh plugin --profile web add github:jensentsts/dsh-completion-sound#<sha>
Uninstall:
dsh plugin --profile web remove @jensentsts/dsh-completion-sound
⚠️ Installing a plugin runs third-party code on your machine with your own permissions. Review the source before you install.
The dsh-web-app bundle ships a built-in completion-sound row (ui-completion-sound → @deepseek-ai/dsh-client-ui-completion-sound). This bundle's cordis.patch.yml disables that built-in row and inserts its own row (id completion-sound), so when a web profile has both dsh-web-app and this plugin, this plugin takes over completion sounds and nothing plays twice. In a profile without dsh-web-app, the disable step is silently skipped and the insert still applies.
assets/guan-yu.wav, ~13.5 MB)osascript / Linux notify-send)| Field | Description | Default | Range |
|---|---|---|---|
enabled |
completion-sound toggle | true |
— |
notify |
desktop-notification toggle | false |
— |
volume |
volume | 0.5 |
0–1 |
longTaskMinutes |
long-task threshold (minutes) | 10 |
1–10080 |
special |
play special music on long-task completion | true |
— |
specialPath |
special-music file/directory path (empty = bundled Guan Yu's Song) | "" |
— |
specialPath decides what plays when a long task completes:
assets/guan-yu.wav.aac .flac .m4a .mp3 .oga .ogg .opus .wav .webm, up to 512), picking one at random per playThe special-music preview button sits to the left of the "music file or directory" input; it commits the path before previewing, so it always previews what is currently typed.
completion-sound/
├── assets/
│ └── guan-yu.wav # bundled "Guan Yu's Song" (~13.5 MB)
├── img/
│ └── settings.png # settings-page screenshot
├── src/
│ ├── index.ts # Host half: settings schema + audio/notify routes
│ ├── settings.ts # setting field constants and types
│ ├── invariant.ts # internal assertions (invariant companion)
│ ├── css-modules.d.ts # CSS Modules type declarations
│ └── client/
│ ├── index.ts # Client half: settings binding + completion watch + page registration
│ ├── CompletionSoundSection.tsx # dedicated settings-page component
│ ├── CompletionSoundSection.module.css
│ ├── settings-store.ts # settings store (defineStore)
│ ├── sound.ts # WebAudio synth / audio load & play / stop control
│ ├── notify.ts # desktop notification (browser-first + system fallback)
│ ├── stop-modal.tsx # click-to-stop modal
│ ├── stop-modal.module.css
│ └── locales.ts # zh/en strings
├── lib/ # build artifacts (committed; git install needs no build)
│ ├── index.js # Host half
│ ├── invariant.js
│ ├── client.js # Client half (browser bundle)
│ └── types/**/*.d.ts # type declarations
├── package.json
├── cordis.patch.yml # bundle patch (disable built-in row + insert this plugin's row)
├── tsconfig.json
├── tsdown.config.ts
├── LICENSE
├── README.md
└── README.zh.md
This plugin is a DSH bundle: package.json's dsh.bundle.patch points at cordis.patch.yml, and it also declares dsh.client (platform web) so the module loader serves the client half to the browser.
src/index.ts): registers the settings schema and three routes:/completion-sound/guan-yu.wav — bundled Guan Yu's Song (memory-cached, served as audio/wav)/completion-sound/special — serves special music by specialPath (empty→bundled; file→served; directory→one random pick, with header x-dsh-completion-sound-random: 1)/completion-sound/notify — POST system-notification fallback (macOS osascript / Linux notify-send) for when browser notifications are unavailablesrc/client/index.ts): binds settings, watches turn-completion events, and registers the settings.section (id completion-sound) dedicated page.Build artifacts are committed; ordinary users don't need to build. Developers rebuild after editing src/:
pnpm install
pnpm run build # tsc -p tsconfig.json && tsdown
pnpm run typecheck # tsc -p tsconfig.json --noEmit
Artifacts (lib/, committed):
lib/index.js — host halflib/invariant.js — invariant companionlib/client.js — client half (browser bundle)lib/types/**/*.d.ts — type declarationstsdown.config.ts is self-contained (it inlines the platform module table, the CSS Modules inline plugin, and the __ModuleLoader__ format); it depends on no monorepo preset.
@deepseek-ai/dsh-settings, @deepseek-ai/schemastery, react, react-dom)@deepseek-ai/cordis, dsh-api-remotes, dsh-client-*, dsh-invariants), aligned to 0.1.0-rc.6The system-notification fallback requires notify-send on Linux (libnotify-bin, present on most desktop distros) and the built-in osascript on macOS. Browser notifications are used when available, so the fallback is not hit there.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。