virgoC0der/dsh-plugins--packages-browser ↗★ 0

dsh-browser

CDP驱动真实Chrome进行导航点击输入,并内联显示截图 适合页面自动化与回归测试,需配置浏览器路径与端口等运行参数。

包名
dsh-browser
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月14日

同名包的其他仓库

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Configuration

Resolved highest-first: the profile patch's config, environment variables, then ~/.dsh/browser/config.json. Defaults:

KeyEnvDefaultMeaning
headlessBROWSER_PLUGIN_HEADLESStrueRun without a visible window
portBROWSER_PLUGIN_PORT9333DevTools port; a browser here is adopted
browserPathBROWSER_PLUGIN_CHROMEdiscoveredExplicit browser executable
windowWidth / windowHeightBROWSER_PLUGIN_WINDOW_*1440 / 900Viewport for captures
chromeFlagsBROWSER_PLUGIN_CHROME_FLAGS[]Extra flags, e.g. --no-sandbox in a container
idleShutdownMsBROWSER_PLUGIN_IDLE_MS600000Reclaim the browser after this long idle; 0 disables
prewarmBROWSER_PLUGIN_PREWARMfalseStart the browser at mount, so the first call needs no cold start
navigationTimeoutMsBROWSER_PLUGIN_NAV_TIMEOUT_MS20000Per-navigation budget
actionTimeoutMsBROWSER_PLUGIN_ACTION_TIMEOUT_MS15000Per-call budget
captureTimeoutMsBROWSER_PLUGIN_CAPTURE_TIMEOUT_MS15000Per-capture budget
waitTimeoutMsBROWSER_PLUGIN_WAIT_TIMEOUT_MS30000Ceiling for browser_wait_for
wakeDisplayBROWSER_PLUGIN_WAKE_DISPLAYtrue on macOSWake the display for the duration of a capture
shotLimitBROWSER_PLUGIN_SHOT_LIMIT60Screenshots kept on disk (ring buffer)
imageToModelBROWSER_PLUGIN_IMAGE_TO_MODELautoauto (only when the route accepts images), always, never
verboseBROWSER_PLUGIN_VERBOSEfalseLog lifecycle lines to stderr

State lives in ~/.dsh/browser/: profile/ (the browser profile), shots/ (captured PNGs), config.json.