virgoC0der/dsh-plugins--packages-browser ↗★ 0
dsh-browser
CDP驱动真实Chrome进行导航点击输入,并内联显示截图 适合页面自动化与回归测试,需配置浏览器路径与端口等运行参数。
同名包的其他仓库
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Configuration
Resolved highest-first: the profile patch's config, environment variables, then
~/.dsh/browser/config.json. Defaults:
| Key | Env | Default | Meaning |
|---|---|---|---|
headless | BROWSER_PLUGIN_HEADLESS | true | Run without a visible window |
port | BROWSER_PLUGIN_PORT | 9333 | DevTools port; a browser here is adopted |
browserPath | BROWSER_PLUGIN_CHROME | discovered | Explicit browser executable |
windowWidth / windowHeight | BROWSER_PLUGIN_WINDOW_* | 1440 / 900 | Viewport for captures |
chromeFlags | BROWSER_PLUGIN_CHROME_FLAGS | [] | Extra flags, e.g. --no-sandbox in a container |
idleShutdownMs | BROWSER_PLUGIN_IDLE_MS | 600000 | Reclaim the browser after this long idle; 0 disables |
prewarm | BROWSER_PLUGIN_PREWARM | false | Start the browser at mount, so the first call needs no cold start |
navigationTimeoutMs | BROWSER_PLUGIN_NAV_TIMEOUT_MS | 20000 | Per-navigation budget |
actionTimeoutMs | BROWSER_PLUGIN_ACTION_TIMEOUT_MS | 15000 | Per-call budget |
captureTimeoutMs | BROWSER_PLUGIN_CAPTURE_TIMEOUT_MS | 15000 | Per-capture budget |
waitTimeoutMs | BROWSER_PLUGIN_WAIT_TIMEOUT_MS | 30000 | Ceiling for browser_wait_for |
wakeDisplay | BROWSER_PLUGIN_WAKE_DISPLAY | true on macOS | Wake the display for the duration of a capture |
shotLimit | BROWSER_PLUGIN_SHOT_LIMIT | 60 | Screenshots kept on disk (ring buffer) |
imageToModel | BROWSER_PLUGIN_IMAGE_TO_MODEL | auto | auto (only when the route accepts images), always, never |
verbose | BROWSER_PLUGIN_VERBOSE | false | Log lifecycle lines to stderr |
State lives in ~/.dsh/browser/: profile/ (the browser profile),
shots/ (captured PNGs), config.json.