k12u/dsh-client-ui-pending-sound ↗★ 0

dsh-client-ui-pending-sound

Play a short browser chime when a session enters approval / plan-review / question wait 适合需要及时获知等待操作的用户;音频可能被浏览器策略拦截。

패키지
dsh-client-ui-pending-sound
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 24.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

dsh-client-ui-pending-sound

Browser chime when a session enters a user operation wait:

pendingInteractionMotif
approvalC5 → E5
plan-reviewD5 → F#5
questionE5 → 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.