sqzw-x/dsh-plugins--packages-dsh-focus-notify ↗★ 0

dsh-focus-notify

Focus-aware notifications for DeepSeek Harness: approvals, questions, plan reviews and finished replies all arrive as one kind of alert — the conversation on screen only once its window loses focus, background conversations at any time, subagent sessions never. 适合多会话并行的用户,仅在窗口失去焦点或后台会话有新消息时发送提醒。

패키지
dsh-focus-notify
호환성
미검증
Cordis peer 범위
~4.0.4
버전
0.3.1
라이선스
MIT
최근 업데이트
2026. 10. 24.

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

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sqzw-x/dsh-plugins#3ac6bed10c03c25bb1109b17f96e62d1491aa6fb&path:packages/dsh-focus-notify

配置

默认值就能用。想改的话,在页面的控制台里:

__dshFocusNotify.configure({ sound: true })   // 打开提示音
__dshFocusNotify.configure({ enabled: false }) // 暂时全关
__dshFocusNotify.debug()                       // 当前会话、未送达的等待、计数器、权限、焦点、走哪条导航
__dshFocusNotify.test()                        // 绕过规则立刻发一条,验证通道
__dshFocusNotify.open('session-id')            // 按 id 切会话(缺省切当前会话),验证点击路径

debug() 里两个字段专门用来查"点了没反应":

  • navigation — 点击时会用哪个服务切会话:uiWorkspace.openSession / sessions.open / none。
  • counters.failed — 导航调用抛错的次数;失败同时会往控制台打一条 [dsh-focus-notify] … 警告。

每发出一条通知,插件还会在 window 上派发一个 dsh-focus-notify:alert 事件(event.detail 就是那条 alert:kind / sessionId / title / body / tag),想接自己的提醒方式(闪任务栏、换个声音、记日志)从这里挂即可。

字段默认说明
enabledtrue总开关;关掉后仍然跟踪状态,只是不发通知
ignoreSubagenttrue子代理会话不提醒
language'auto'文案语言:跟随 DSH 界面语言,也可固定 'zh' / 'en'
soundfalse通知之外再响一声(WebAudio,需要页面有过交互)

配置存在 localStorage 的 dshFocusNotify.config。