- Accueil
- Plugins
- Intégrations et accès distant
- dsh-plugin-noticeme
dsh-plugin-noticeme
lw-storm/dsh-plugin-noticeme
Plugin de notification en arrière-plan : affiche une notification de bureau, avec le titre d’onglet en solution de repli, lorsqu’une demande d’approbation ou une question utilisateur apparaît dans un onglet en arrière-plan. L’hôte met ces événements en file derrière un endpoint de même origine interrogé toutes les 3 secondes par le client. Un clic remet la page au premier plan ; le titre est rétabli lorsque la page redevient visible.
Installer
dsh plugin --profile web add github:lw-storm/dsh-plugin-noticemeREADME
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
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
Plugins associés
dsh-web (dsh-ssh)
zhu1090093659/dsh-web
dsh-web (dsh-remote-web-ui)
zhu1090093659/dsh-web
dsh-web-ui (dsh-ssh)
zhu1090093659/dsh-web-ui
dsh-web-ui (dsh-remote-web-ui)
zhu1090093659/dsh-web-ui