全部插件

dsh-plugin-noticeme

dsh-plugin-noticeme · 版本 2.3.0 · 更新于 2026年11月29日

当 DSH 页面在后台时,如果出现审批提示或 ask-user-question 卡片,插件会发送桌面通知,必要时改用标签页标题提醒。经测试,插件可以轻量实现通知功能。

  • 逐版审核
  • 通知集成
  • MIT
  • 0次下载

说明

以下为插件作者提供的原文。

dsh-plugin-noticeme

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

sole plugin --profile web add link:/absolute/path/to/this/pkg
# published form:
sole 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) and tools/result for ask_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 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.

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

版本历史

  • 2.3.02026年11月29日 · 114 KB
dsh-plugin-noticeme · SoleAPI Agent 插件 | SoleAPI