Fur1naaaaaaaa/dsh-notify-sound ↗★ 2

dsh-notify-sound

对话完成 / 需要授权 / 弹出提问(含计划确认)时播放提示音 —— DSH Web 插件,主机事件驱动 + Web Audio 合成音 适合经常挂机等待AI响应的用户,在任务结束、出错或等待授权时通过声音提醒。

패키지
dsh-notify-sound
호환성
미검증
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 16.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Fur1naaaaaaaa/dsh-notify-sound

配置

优先级(后面的覆盖前面的,按字段逐个生效): 默认值 → profile 里该条目的 config → ~/.dsh/dsh-notify-sound.json → 浏览器 localStorage。

~/.dsh/dsh-notify-sound.json 会压住条目 config(设置页写的就是这个文件),完整字段:

{
  "enabled": true,
  "volume": 0.5,
  "pollMs": 700,
  "turnEnd": true,
  "approval": true,
  "question": true,
  "turnEndReasons": ["completed", "error", "blocked", "max-tokens"],
  "skipSubagents": true,
  "onlyWhenHidden": false,
  "toast": "auto",
  "flashTitle": true
}
字段默认含义
enabledtrue总开关
volume0.5音量 0~1
pollMs700轮询间隔(仅在 SSE 不可用时才用到)
turnEnd / approval / questiontrue三类触发各自开关
turnEndReasonscompleted, error, blocked, max-tokens哪些结束原因算“该提醒”;aborted / interrupted 默认不响,免得自己按了停止还吵
skipSubagentstrue忽略子代理(subagent / workflow 子会话)的轮次结束,多智能体协作不会连环响
onlyWhenHiddenfalsetrue = 只有页面在后台时才响(最常见的用法)
toastautoauto:页面在后台 / 被拦截 / 被静音时显示;always 总是;never 从不
flashTitletrue页面在后台时闪烁标题 🔔 …

也可以写进 profile 的 patch(id 要跟挂载 id 一致):

- id: notify-sound
  name: dsh-notify-sound
  config:
    volume: 0.4
    onlyWhenHidden: true