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.