后台通知插件:页面处于后台时出现审批提示或提问卡片,即发送桌面通知(通知权限不可用时回退为标签页标题 ⚠ 前缀),点击通知聚焦页面;宿主将事件存入同源队列供前端每 3 秒轮询,页面恢复可见后标题自动还原。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:lw-storm/dsh-plugin-noticeme
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Notify me when DSH needs me: desktop notification (with tab-title fallback) when an approval prompt or an ask-user-question card appears while the page is in the background.After testing, this plugin can implement notification functionality in a lightweight manner.
Install
dsh plugin --profile web add link:/absolute/path/to/this/pkg
# published form:
dsh plugin add github:lw-storm/dsh-plugin-noticeme
Restart DSH after installing. On first page load the browser asks for notification permission — allow it.
Behavior
- Watches
approval/request(approval prompts) andtools/resultforask_user_question(question cards) on the host. - Host keeps a short-lived queue, exposed at
GET /dsh-noticeme/pending(same-origin only). Reading drains the queue: each item is notified once. - Client polls every 3 s. While the page is visible nothing is shown; while
hidden, a desktop
Notificationis raised (click → focus the page). If the Notification permission is unavailable, the tab title is prefixed with⚠ 需要你确认 ·and restored when the page becomes visible again.
Files
lib/index.js— host entry (ESM, Node)client/client.js— browser entry (hand-written ModuleLoader bundle, no build step)cordis.patch.yml— profile layer insertion
License
MIT
链接
同类插件
alvinunreal/openpets#dsh★ 1160
将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。
xmanrui/dsh-im★ 1094
通过二维码或机器人凭据将 IM 机器人接入 DeepSeek Harness(支持飞书、微信、钉钉、企业微信、QQ、Slack、Telegram、Discord 和 WhatsApp 共 9 种渠道)。
shaobeichen/dsh-pocket★ 939
手机远程访问 DSH Web 界面:扫码即用局域网或公网(cloudflared 隧道)访问,实时同屏、移动端适配布局,带设置页管理。
THEWOLFWALKER/dsh-notifier★ 86
DSH 多渠道通知与手机控制插件:一个 `notify()` API 接入 27 个渠道,支持事件推送、手机审批与提问、六条入站控制通道、本机 Web 管理台、多 agent 路由和零运行时依赖。
omdsh-dev/dsh-notification★ 81
回合完成桌面通知,按结果分控 + 关键词过滤。
omdsh-dev/dsh-open-in-vscode★ 55
从 Web GUI 一键在 VS Code 中打开工作区目录。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。