ycp424c/dsh-browser-bridge--packages-page-runtime ↗★ 0
@ycp424c/dsh-browser-bridge-page-runtime
由 DSH 浏览器桥接器注入到 Vite 页面中的无框架浏览器运行时,用于执行页面观察、操作及调试。
AI 分析
核心用途是实现 DSH 对本地开发页面的实时控制与交互。适合前端开发者,支持在 Vite 页面中执行观察、控制台捕获及面板展示。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 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.