插件目录 / Developer / dsh-approval-notify
dsh-approval-notify
已验证 · 实测可装 whoisDDD
功能简介
DSH approval/question/completion notifier with native browser notifications and toast fallback. / DSH 审批、提问与完成提醒插件,支持浏览器原生通知和 toast 回退。
可用 — 实测通过,早期项目
DSH approval/question/completion notifier with native browser notifications and toast fallback. / DSH 审批、提问与完成提醒插件,支持浏览器原生通知和 toast 回退。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
@whoisddd/dsh-approval-notify
English | 中文
A minimal browser-only DSH Web GUI plugin that reminds you when a session needs attention or a background session finishes.
The plugin watches the live DSH session list, prefers native browser notifications, and falls back to a larger stacked toast panel when native notifications are unavailable. On Windows, granted browser notifications surface through the system notification center.
What it notifies
| DSH state | Notification title | Notes |
|---|---|---|
approval |
Approval request | The session is waiting for an approval decision. |
question |
Question request | The session is waiting for a user choice or answer. |
plan-review |
Plan review | The session is waiting for plan confirmation. |
completed |
Completed | A top-level background session has finished. |
completed on a subagent |
Subagent completed | A subagent/background child session has finished. |
Highlights
- Browser-only; the host half is intentionally empty.
- Watches the live DSH session list; no dependency on
dsh-web-ui-all. - Uses native browser notifications first, with
requireInteraction: true. - Falls back to a larger right-bottom toast panel when native notifications fail.
- Supports multiple stacked fallback toasts.
- Deduplicates unchanged attention states so the same pending/completed state does not repeat.
- Labels completed subagents separately from completed top-level sessions.
Install
git clone https://github.com/whoisDDD/dsh-approval-notify.git
cd dsh-approval-notify
pnpm install
pnpm build
dsh plugin --profile web add link:$(pwd)
After installation, reload the DSH Web GUI page. The browser may ask for notification permission on first load. If permission is denied or native notification creation fails, the plugin still shows in-page toast reminders.
Development
pnpm install
pnpm test
pnpm typecheck
pnpm build
Useful scripts:
pnpm test— run all Vitest tests.pnpm test:notify— run the core notification behavior tests.pnpm typecheck— run TypeScript type checking.pnpm build— generatelib/artifacts.pnpm watch— rebuild the client bundle during development.
Notes and limitations
- This plugin does not implement a settings UI yet.
- Notification delivery depends on browser permission and the operating system notification policy.
- Completed-session reminders follow DSH's
completedsummary flag. Top-level sessions and subagents are both notified, but subagents use a distinct title.
License
BSD-3-Clause.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-approval-notify」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:whoisDDD/dsh-approval-notify Headless(CLI)profile:
dsh plugin --profile headless add github:whoisDDD/dsh-approval-notify 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。