返回目录
消息通讯 渠道适配

dsh-plugin-noticeme

lw-storm/dsh-plugin-noticeme

该仓库暂未提供项目说明。

Stars
1
Forks
0
Issues
0
更新
1 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:lw-storm/dsh-plugin-noticeme

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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.

image

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) 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

CLASSIFICATION EVIDENCE

分类依据

项目类型渠道适配
功能分类消息通讯
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notification。