日期:2026-08-14 状态:已实现并验证 关联能力:
capability.browser-use-plugin-distribution、capability.browser-webview-video-recording
Browser Use 新增 IAB WebView 录屏 API 后,将官方插件发布身份从 0.2.1 升级到 0.3.0。
录屏协议、Browser client、模型文档和 MCP serverInfo 属于同一发布单元,禁止 package、manifest、
官方 seed、SEA 与 MCP runtime 各自暴露不同版本。
以下五个当前版本事实源必须统一为 0.3.0:
apps/zcode-cli/packages/browser-use-plugin/package.json;apps/zcode-cli/packages/browser-use-plugin/.zcode-plugin/plugin.json;OFFICIAL_PLUGIN_DEFINITIONS;officialSeaPlugins;NODE_REPL_SERVER_VERSION。根应用版本、其他私有 workspace package 版本和 lockfile 不属于本次插件版本边界。
package / manifest / Bootstrap / SEA / serverInfo = 0.3.0
|
v
filesystem / SEA / Desktop / remote official assets
|
v
seed temp -> atomic promote -> browser-use/0.3.0
|
v
marketplace partition 只指向 0.3.0
0.2.1 可以作为 stale cache 与 0.3.0 并存,但 discovery 只能加载 official partition 指向的
0.3.0,不得产生 duplicate diagnostic,也不得复用旧版 seed marker。
docs/documents.json 通过 lookup name recording 暴露 docs/recording.md。因此
docs/recording.md 必须加入以下完整性检查,而不只是依赖目录递归复制:
OFFICIAL_BROWSER_USE_REQUIRED_SEED_PATHS;browserUseRequiredRuntimePaths;prepare-agent-node-bundle.mjs;prepare-prebuilds.mjs;REMOTE_AGENT_OFFICIAL_PLUGIN_REQUIRED_RELATIVE_PATHS。缺失录屏文档时,filesystem seed、SEA 构建或 remote 资产复用检查必须失败,不能生成“API 已注册但 lookup 文档不存在”的残缺官方插件。
| Case ID | Setup | Action | Assertions | Evidence |
|---|---|---|---|---|
| BUV-030 | 五个版本事实源 | 运行版本对齐测试 | 全部精确等于 0.3.0 |
Bootstrap、SEA、MCP unit |
| BUV-031 | 0.2.1 与 0.3.0 cache 并存 |
discover plugins | 只加载 0.3.0,无 duplicate diagnostic |
Adapter unit |
| BUV-032 | Browser Use source 缺少 docs/recording.md |
filesystem/SEA seed | 完整性检查拒绝残缺资产 | Bootstrap、SEA unit |
| BUV-033 | Desktop/remote runtime 资产脚本 | 检查必需路径合同 | docs/recording.md 在本地和远端链路均存在 |
Desktop、Server unit |
0.3.0;0.2.1 作为 stale、0.3.0 作为 current;docs/recording.md 作为必需项;pnpm typecheck、pnpm lint 通过。| 验证项 | 结果 |
|---|---|
| Browser Use plugin | 6 files / 32 tests 通过 |
| Bootstrap plugin distribution | 2 files / 41 tests 通过 |
| Adapter stale/current cache | 1 file / 66 tests 通过 |
| SEA Browser Use release/alignment | 2 tests 通过 |
| Desktop + Server runtime assets | 2 files / 116 tests 通过 |
pnpm typecheck |
通过 |
pnpm lint |
0 errors;仓库已有 warnings 保持不变 |