falling-ts/dsh-web-ding ↗★ 2

@falling-ts/dsh-web-ding

在智能体运行结束或弹出用户选择时播放提示音 适合在后台运行任务,需要声音反馈来提醒任务完成或需要人工介入的用户。

套件
@falling-ts/dsh-web-ding
相容性
待驗證
Harness 依賴範圍
>=0.2.1-rc.1
Cordis 依賴範圍
>=4.0.5
版本
0.7.0
授權
MIT
最近更新
2026年10月19日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:falling-ts/dsh-web-ding

Configuration (falling-ts-web-ding namespace, stored in the profile's cordis.patch.yml)

Two independent blocks, each with its own switch and its own tone:

Block 1 — 弹出用户选择 (question popup ding) — plays when the harness pops a user-question chooser in the browser. Detection is client-side on the DOM ([data-question-key] anchor of the QuestionComposer): the Host half sees no question frame, so this block is entirely browser-side.

FieldTypeDefaultMeaning
questionEnabledbooleantrueSwitch for the question-popup ding.
questionVolumenumber 0..10.7Web Audio playback gain.
questionFreqnumber 80..4000880Fundamental frequency of the ding (Hz).
questionDecayMsnumber 100..4000900Tone decay length (ms).

Block 2 — 回合结束 (turn-end ding) — the classic agent/status idle-transition tone. The Host observes agent/status; on the idle transition (all turns done, including sub-agents, before the next human turn; fresh sessions that never ran and repeated idle ticks stay silent) it publishes the done signal.

FieldTypeDefaultMeaning
turnEndEnabledbooleantrueSwitch for the turn-end ding (Host skips publishing when off).
turnEndVolumenumber 0..10.7Web Audio playback gain.
turnEndFreqnumber 80..4000880Fundamental frequency of the ding (Hz).
turnEndDecayMsnumber 100..4000900Tone decay length (ms).

Besides the ring, each turn end drops a bottom-right toast (Win11-style, auto-dismisses after 6 s). Click it to open the right-side notification drawer: the last 100 turn-end messages are kept in the browser's localStorage (key falling-ts-web-ding.notify.v1), each row can be deleted individually, and a "全部删除" button clears them all. The message log is front-end only — the Host never reads or writes it.

You can also adjust both blocks from the 设置 → 提示音配置 panel, each with its own switch and its own "试听" (preview) button.