ycp424c/dsh-browser-bridge--packages-page-runtime0

@ycp424c/dsh-browser-bridge-page-runtime

由 DSH 浏览器桥接器注入到 Vite 页面中的无框架浏览器运行时,用于执行页面观察、操作及调试。

AI 分析

核心用途是实现 DSH 对本地开发页面的实时控制与交互。适合前端开发者,支持在 Vite 页面中执行观察、控制台捕获及面板展示。

套件
@ycp424c/dsh-browser-bridge-page-runtime
版本
0.1.0
最近更新
2026年8月14日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@ycp424c/dsh-browser-bridge-page-runtime

Framework-neutral browser runtime injected into Vite pages by the DSH browser bridge. It probes and connects to the exact loopback DSH origin, registers one target, executes the reliable tool subset (observe/inspect/act/navigate/wait/console) against the real page, tracks HMR generations, captures a bounded console buffer, and hosts the optional Shadow DOM DSH Web panel.

  • Only loopback DSH origins are accepted (localhost, *.localhost, 127/8, ::1); no credentials, no remote DSH, no port scanning.
  • Production default is zero-network dormancy; activation is explicit (shortcut, query parameter, persisted switch) or an explicit deployment choice (autoConnectInBuild / panel.visible).
  • Sensitive values are masked and every output is bounded before serialization; the host re-sanitizes everything after the wire.
  • Page identity lives in per-tab sessionStorage; grants, console rows, and page evidence are never persisted to localStorage.
  • Screenshot and network are never registered by this runtime; related calls return unsupported_operation.

See the workspace README and INSTALL.md for installation and configuration.