メインコンテンツへスキップ
S

dsh-session-done

sevstrings/dsh-session-done

Announces a finished DSH session with an in-page toast, a two-tone chime and an optional desktop notification. The session you are currently viewing only chimes; when the page is in the background, only the desktop notification appears.

インストール

dsh plugin --profile web add github:sevstrings/dsh-session-done

README

dsh-session-done

DSH Web 插件:任一会话完成任务后,用提示卡 + 提示音 + 桌面通知提醒你。

  • 文档:docs/DETAIL.md
  • 判定依据:宿主广播的 api-session/status(sessionId, running);子代理会话不提示
  • 卡片可点击直达会话、可静音;点系统通知进来会顺手收掉对应的卡片
  • 正看着的那个会话完成时只响一声,不弹卡片也不发系统通知
  • 桌面通知只在页面看不见(切标签页/切应用/最小化)时发;发不出去(没授权/已关闭)时退化成一张常驻卡片,切回来还在
  • 开关位置:设置 → 通用 → 完成提醒

安装(本地 bundle)

# 在 DSH 里用插件管理器安装本地目录(会以 link: 方式挂进 profile)
# plugin_manager install_bundle → target: D:/AIworkspace/dsh-session-notifier

装好后刷新 http://127.0.0.1:3080 即可生效;改动 lib/client.js 保存后刷新页面就会带上新逻辑。

首次想收桌面通知时,点提示卡上的「开启系统通知」(或到设置里拨动开关)授权一次即可。

自测

cd .smoke && npm i react react-dom && node smoke.cjs   # 结尾应输出 SMOKE-OK

関連プラグイン