ffyfox/dsh-cua-preview ↗★ 0

dsh-cua-preview

由DSH审批和截图预览把关的浏览器自动化插件 需要Node 22.12及Chrome,适合需安全执行网页点击和提交任务的用户。

包名
dsh-cua-preview
兼容性
待验证
Harness 依赖范围
>=0.1.5-rc.2
Cordis 依赖范围
>=4.0.2
版本
0.2.0
许可证
MIT
最近更新
2026年10月3日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ffyfox/dsh-cua-preview

Configuration

KeyDefaultMeaning
artifactsDir$DSH_HOME/cua-preview/artifactswhere screenshot evidence PNGs are written
headlesstruerun Chrome headless
chromePathauto-detectedexplicit 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.