davidgereb/dsh-plugin-prompt-guard0

dsh-plugin-prompt-guard

Keeps pending permission/approval and multiselect prompts visible in dsh web — if one disappears without being answered it is restored in place or a bar offers one-tap restore; plus browser notifications when a prompt appears while the tab is in the background, and a host-side push (ntfy.sh) when the agent needs the user and no browser client is open. Settings card for the ntfy topic/token/cooldown.

AI 分析

核心用途是防止 DSH 运行中的审批提示因页面刷新或同步而消失,并提供后台通知。适合需要长时间运行复杂任务、无法时刻盯着网页的用户。使用推送功能需配置 ntfy.sh 通道。

パッケージ
dsh-plugin-prompt-guard
バージョン
0.3.0
ライセンス
MIT
最終更新
2026/08/15

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration

Per-entry config: in cordis.patch.yml, overridable live from the Settings → Plugins → Configurable card (UI settings persist to $DSH_HOME/storages/prompt-guard-settings.json and take precedence):

KeyDefaultMeaning
ntfyTopic""ntfy.sh topic to push to when the agent needs the user and no browser client is open. Empty disables the push channel.
ntfyToken""Optional ntfy.sh access token for private topics (Authorization: Bearer).
ntfyPriority4ntfy message priority 1–5 (min/low/default/high/max).
cooldownSec5Minimum seconds between two host notifications (burst guard).
clickUrlhttp://127.0.0.1:3080URL opened when a notification is tapped (ntfy Click header); empty disables. The GUI's default address.
notifyWhileBrowserOpenfalseAlso push while a browser client is connected (default: the browser half handles that case).
browserNotifytrueBrowser system notifications master switch.
browserNotifyOnlyUnfocusedtrueOnly notify while the tab is hidden/unfocused.

Client-side toggles NOTIFY_ENABLED / NOTIFY_ONLY_WHEN_UNFOCUSED in src/client-source.js are read at build time.