Repository navigation
Releases
Releases · x102201/dsh-helper-plugin-notify-away
v0.1.0 — 离开才通知
notify-away 0.1.0 —— 离开才通知
正在看刚结束的那场会话时保持安静;切到别的窗口、隐藏标签、或后台会话结束时,弹出系统通知。点击 toast 会聚焦 Web UI 并打开那场会话。
Stay silent while you watch the session that just finished. Raise an OS notification when you have switched away (other window, hidden tab, or a background session). Click the toast to focus the Web UI and open that session.
安装 / Install
# 本地目录 / from a checkout
dsh plugin --profile web add link:/absolute/path/to/dsh-helper-plugin-notify-away
# 从 GitHub(可钉住本版本)/ from GitHub, pinned
dsh plugin --profile web add github:x102201/dsh-helper-plugin-notify-away#v0.1.0重启 dsh web,第一次点击页面时允许浏览器通知。开一个任务再切走,结束时应出现系统横幅;盯着那场看则不应出现。
Restart dsh web, grant the browser notification permission on the first click, start a task, and switch away: a system banner should appear when the session goes idle. Watching that session with the window focused stays silent.
行为 / Behavior
- 根会话
running → idle边沿触发;刷新时已经 idle 的会话不弹 - 离开门闩:页面可见、窗口有焦点、且当前选中就是那场 → 安静
- 子 Agent(
origin: subagent/parentId)默认忽略,避免并行子任务刷屏 - 权限在第一次点击或按键时申请;toast 按 session 去重(
notify-away:<id>) - 零运行时依赖、无构建;
link:与github:安装行为一致
验证 / Verification
node --test: 41/41 passing (config, policy, package shape, host wiring, client factory)
尚未包含 / Not in this version
- 等待审批 /
ask_user_questiontoast - host 行
config会校验,但还不会推到浏览器半边(无 RPC)