dsh-client-ui-pending-sound
界面增强 活跃维护

dsh-client-ui-pending-sound

k12u/dsh-client-ui-pending-sound

浏览器端小插件,实时监听会话的待交互状态,一旦进入等待用户审批或计划评审就自动播放提示音,审批对应 C5→E5 双音,不同待办类型各配专属动机,无需盯屏也能及时响应。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
4 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:k12u/dsh-client-ui-pending-sound
git clone https://github.com/k12u/dsh-client-ui-pending-sound.git
git clone git@github.com:k12u/dsh-client-ui-pending-sound.git
README.md main

dsh-client-ui-pending-sound

Browser chime when a session enters a user operation wait:

pendingInteraction Motif
approval C5 → E5
plan-review D5 → F#5
question E5 → G5

Several kinds in one frame play a short C–E–G arpeggio once.

Behavior

  • Host half is a no-op; all logic is the ./client bundle (dsh.client).
  • Subscribes to ctx.sessions.list and chimes on rising edges only
    (undefined → wait, or wait kind change). The first phase: ready snapshot is baseline (no blast on reload).
  • connection/reset re-baselines so mux replay after reconnect stays quiet.
  • Uses the Web Audio API (no asset files). Browsers may block audio until a click/key; the plugin arms unlock listeners on first load.

Install (this deployment)

Linked from ~/.dsh/profiles/web and inserted in cordis.patch.yml:

- insert:
    - id: pending-sound
      name: dsh-client-ui-pending-sound

Restart the DSH web host after install so the client module graph picks up the bundle.