dsh
OpenPetsHQ/openpets将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。
后台通知插件:页面处于后台时出现审批提示或提问卡片,即发送桌面通知(通知权限不可用时回退为标签页标题 ⚠ 前缀),点击通知聚焦页面;宿主将事件存入同源队列供前端每 3 秒轮询,页面恢复可见后标题自动还原。
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.
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.
approval/request (approval prompts) and tools/result for
ask_user_question (question cards) on the host.GET /dsh-noticeme/pending
(same-origin only). Reading drains the queue: each item is notified once.Notification is 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.lib/index.js — host entry (ESM, Node)client/client.js — browser entry (hand-written ModuleLoader bundle, no build step)cordis.patch.yml — profile layer insertionMIT