dsh-cua-preview
DSH plugin: browser automation whose click and submit actions are gated by a DSH approval, with the current screen captured as a screenshot the user reviews before the action runs. 需要Node 22.12及Chrome,适合需安全执行网页点击和提交任务的用户。
Other repositories with this package name
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ffyfox/dsh-cua-previewREADME
Read the full README ↗Configuration
| Key | Default | Meaning |
|---|---|---|
artifactsDir | $DSH_HOME/cua-preview/artifacts | where screenshot evidence PNGs are written |
headless | true | run Chrome headless |
chromePath | auto-detected | explicit Chrome/Chromium executable |
settle | {graceMs: 250, idleMs: 400, capMs: 3000} | how long to wait for the page to finish reacting before the post-action screenshot |
Chrome is looked up through $DSH_CUA_CHROME_PATH and the usual Linux install paths
(/usr/bin/google-chrome-stable, /usr/bin/google-chrome, /usr/bin/chromium,
/usr/bin/chromium-browser, /snap/bin/chromium), and is launched with the standard
container-safe flags.
settle accepts false (no wait at all — the result then reports no settled field, because the
plugin will not claim a property it never verified), a number (the total budget in milliseconds), or
an object overriding any of graceMs (how long before the page is believed to have started
reacting), idleMs (how long each condition must hold) and capMs (the total budget). Any other
value is logged and ignored in favour of the defaults, so a misconfigured timer cannot stop the
plugin from loading.