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. 8. 15.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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.