davidgereb/dsh-plugin-prompt-guard ↗★ 0
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 通道。
설치
검증된 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):
| Key | Default | Meaning |
|---|---|---|
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). |
ntfyPriority | 4 | ntfy message priority 1–5 (min/low/default/high/max). |
cooldownSec | 5 | Minimum seconds between two host notifications (burst guard). |
clickUrl | http://127.0.0.1:3080 | URL opened when a notification is tapped (ntfy Click header); empty disables. The GUI's default address. |
notifyWhileBrowserOpen | false | Also push while a browser client is connected (default: the browser half handles that case). |
browserNotify | true | Browser system notifications master switch. |
browserNotifyOnlyUnfocused | true | Only 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.