webloom-framework 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -43
- package/dist/advanced.d.ts +168 -0
- package/dist/advanced.js +441 -0
- package/dist/advanced.js.map +1 -0
- package/dist/chunk-4DSINPZD.js +158 -0
- package/dist/chunk-4DSINPZD.js.map +1 -0
- package/dist/chunk-JHJZIO2H.js +4018 -0
- package/dist/chunk-JHJZIO2H.js.map +1 -0
- package/dist/chunk-RAQOFUZY.js +1737 -0
- package/dist/chunk-RAQOFUZY.js.map +1 -0
- package/dist/chunk-YOIH6H36.js +433 -0
- package/dist/chunk-YOIH6H36.js.map +1 -0
- package/dist/index.d.ts +38 -443
- package/dist/index.js +38 -1967
- package/dist/index.js.map +1 -1
- package/dist/messageBus-CtrwkjrO.d.ts +5 -0
- package/dist/messagePortServiceTransport-B0FyJr43.d.ts +264 -0
- package/dist/react.d.ts +41 -28
- package/dist/react.js +79 -88
- package/dist/react.js.map +1 -1
- package/dist/runtimeTypes-DquUCHz-.d.ts +1640 -0
- package/dist/sharedWorkerHost-Cb2a1_KD.d.ts +190 -0
- package/dist/testing.d.ts +18 -17
- package/dist/testing.js +23 -15
- package/dist/testing.js.map +1 -1
- package/dist/windowRuntime-B6Ue8jso.d.ts +23 -0
- package/docs/api.md +149 -111
- package/docs/migration-baseline.md +2 -2
- package/docs/proposals/browser-runtime-v1/implementation-plan.md +7 -1
- package/docs/proposals/browser-runtime-v1/requirements.md +6 -1
- package/docs/proposals/browser-runtime-v1/verification.md +20 -13
- package/docs/proposals/shared-worker-call-first/SWCF-009-typed-transfer-follow-up.md +34 -0
- package/docs/proposals/shared-worker-call-first/implementation-plan.md +567 -0
- package/docs/proposals/webloom-v4/implementation-plan.md +443 -0
- package/docs/proposals/webloom-v4/requirements.md +555 -0
- package/docs/proposals/webloom-v4/verification.md +84 -0
- package/package.json +9 -2
- package/dist/chunk-URY3E6UH.js +0 -3802
- package/dist/chunk-URY3E6UH.js.map +0 -1
- package/dist/createPluginHost-ChJNBTsX.d.ts +0 -1339
- package/dist/resourceRegistry-MNM1c7od.d.ts +0 -157
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# WebLoom v4 验证记录
|
|
2
|
+
|
|
3
|
+
更新时间:2026-09-11(工作树验证)。本记录只写已经执行的命令和观察到的结果;
|
|
4
|
+
未执行的 registry、产品部署和跨浏览器验收不会由本地测试推断为通过。
|
|
5
|
+
|
|
6
|
+
## 1. WebLoom 本仓库
|
|
7
|
+
|
|
8
|
+
以下门禁均通过:
|
|
9
|
+
|
|
10
|
+
- `pnpm test:types`:TypeScript 检查与契约 inventory gate 通过;当前 inventory 为 1 个
|
|
11
|
+
capability identity。
|
|
12
|
+
- `pnpm test`:17 个测试文件、105 个测试通过。
|
|
13
|
+
- `pnpm build`:四入口 `index`、`advanced`、`react`、`testing` 的 ESM 与 declaration
|
|
14
|
+
构建通过。
|
|
15
|
+
- `pnpm lint:boundaries`、`pnpm lint:v4`:通过。
|
|
16
|
+
- `node scripts/real-browser-runtime-smoke.mjs`:通过。生产构建实际发出
|
|
17
|
+
`assets/worker-C8NPoyKw.js` 与 protocol-mismatch fixture;Chromium 读取到
|
|
18
|
+
`SharedWorkerGlobalScope`;覆盖双页共享
|
|
19
|
+
Worker/runtime/unit、逐 peer 的 service identity、typed stream `[1,2,3]`、transfer
|
|
20
|
+
detach、reconnect 后旧 proxy revoke、terminal `stopping → disposed`、dispose 后迟到
|
|
21
|
+
连接和 protocol mismatch。
|
|
22
|
+
- `pnpm run pack:consumer`:通过。tarball 文件清单和体积上限检查、声明/source-map 检查,
|
|
23
|
+
以及 core-only、advanced、React、Worker 四类独立 consumer 均通过。
|
|
24
|
+
|
|
25
|
+
候选包的具体 `npm pack` metadata 和 `dist.integrity` 只写入下游 lockfile 和发布核对记录,
|
|
26
|
+
不嵌入本文件;本文件本身属于发布包,修改其中的完整性字符串会再次改变 tarball 内容。
|
|
27
|
+
|
|
28
|
+
真实浏览器版本:Chrome for Testing `153.0.8010.12`,Linux x64,headless。Firefox、真实 Safari
|
|
29
|
+
和 Playwright WebKit 本轮未执行,不能宣称兼容性已验收。
|
|
30
|
+
|
|
31
|
+
## 2. DemoWebLoom
|
|
32
|
+
|
|
33
|
+
以下门禁均通过:
|
|
34
|
+
|
|
35
|
+
- `./node_modules/.bin/tsc --noEmit`:通过。验证时使用当前 WebLoom 工作树的本地
|
|
36
|
+
`node_modules` 链接;这只证明源码类型兼容,不替代 registry/frozen-install。
|
|
37
|
+
- `node scripts/check-v4-boundary.mjs`:通过。
|
|
38
|
+
- `node scripts/real-browser-smoke.mjs`:通过。生产构建覆盖首页、01–09 九章、01
|
|
39
|
+
插件 disable/enable、07 两页真实 SharedWorker call;07 验证共享 Worker/runtime/unit
|
|
40
|
+
identity 与逐 peer service identity。
|
|
41
|
+
|
|
42
|
+
Demo lockfile 已与上述本地候选的 `0.4.0` integrity 对齐;浏览器 smoke 使用当前本地
|
|
43
|
+
安装树构建,证明真实 realm 与交互,不替代 registry/frozen-install 证据。
|
|
44
|
+
|
|
45
|
+
## 3. Keymaster
|
|
46
|
+
|
|
47
|
+
以下本地代码门禁通过:
|
|
48
|
+
|
|
49
|
+
- `./node_modules/.bin/tsc -b`:通过。
|
|
50
|
+
- 直接调用已安装的 `vitest`,按仓库 12-file batch 计划执行:216 个测试文件全部通过;
|
|
51
|
+
其中 Coordinator worker 113 tests、Vault service 79 tests 均单独通过。
|
|
52
|
+
- `git diff --check`:通过。
|
|
53
|
+
- `node scripts/check-boundaries.mjs`、`node scripts/check-react-resource-boundaries.mjs`、
|
|
54
|
+
`node scripts/check-coordinator-final-io-audit.mjs`:均通过。
|
|
55
|
+
|
|
56
|
+
Keymaster 的 `pnpm typecheck` 在 workspace 依赖自检阶段尝试从 registry 获取
|
|
57
|
+
`webloom-framework@0.4.0` 并返回 404;因此 canonical pnpm workspace 验证仍未关闭。
|
|
58
|
+
在本地已有依赖树上直接运行 Vitest 与 `tsc -b` 只作为代码/测试证据,不能替代
|
|
59
|
+
frozen install。
|
|
60
|
+
|
|
61
|
+
Keymaster 与 Demo 的包声明、workspace release exception 和 lockfile 已切到精确 `0.4.0`。
|
|
62
|
+
lockfile 记录的是上述已测候选 tarball,最终发布前必须由 registry 的真实 `dist.integrity`
|
|
63
|
+
替换/确认。
|
|
64
|
+
|
|
65
|
+
## 4. Registry 与发布边界
|
|
66
|
+
|
|
67
|
+
本轮执行结果为明确未通过(外部状态阻塞):
|
|
68
|
+
|
|
69
|
+
- `npm view webloom-framework version dist.integrity versions --json` 返回当前 registry
|
|
70
|
+
版本 `0.3.0`,版本列表只有 `0.1.0`、`0.2.0`、`0.3.0`。
|
|
71
|
+
- `node scripts/check-webloom-release-boundary.mjs` fail-closed:
|
|
72
|
+
`webloom-framework@0.4.0` 不存在于 `https://registry.npmjs.org/`。
|
|
73
|
+
- `node scripts/check-webloom-registry-consumer.mjs` fail-closed:registry-only 临时消费
|
|
74
|
+
目录返回 npm `ETARGET`,不能安装 `webloom-framework@0.4.0`。
|
|
75
|
+
|
|
76
|
+
因此当前结论是“源码与本地 tarball/Chromium 验收完成,`0.4.0` registry 发布、registry
|
|
77
|
+
integrity 核对和 frozen downstream install 尚未完成”。不执行自动 npm publish,也不把
|
|
78
|
+
本地 tarball 或 workspace symlink 当作公开发布证据。
|
|
79
|
+
|
|
80
|
+
## 5. 尚未关闭的产品验收
|
|
81
|
+
|
|
82
|
+
Keymaster 的外部 app-view、不可逆 I/O、恢复/部署生产门禁,以及 Local/S3 的真实浏览器、
|
|
83
|
+
CORS、CAS、重启/多 tab 和公开服务验收,本轮没有取得完整外部环境证据;这些项目仍保持
|
|
84
|
+
未验收状态。已有 Coordinator/恢复单元测试通过,不等价于上述产品/部署验收。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webloom-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "通用前端插件生命周期框架",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"types": "./dist/react.d.ts",
|
|
33
33
|
"import": "./dist/react.js"
|
|
34
34
|
},
|
|
35
|
+
"./advanced": {
|
|
36
|
+
"types": "./dist/advanced.d.ts",
|
|
37
|
+
"import": "./dist/advanced.js"
|
|
38
|
+
},
|
|
35
39
|
"./testing": {
|
|
36
40
|
"types": "./dist/testing.d.ts",
|
|
37
41
|
"import": "./dist/testing.js"
|
|
@@ -42,9 +46,12 @@
|
|
|
42
46
|
"test": "vitest run",
|
|
43
47
|
"build": "tsup",
|
|
44
48
|
"lint:boundaries": "node scripts/check-boundaries.mjs",
|
|
49
|
+
"lint:v4": "node scripts/check-v4-boundary.mjs",
|
|
50
|
+
"test:types": "tsc -p tsconfig.json --noEmit && node scripts/check-contract-inventory.mjs",
|
|
51
|
+
"test:contract-inventory": "node scripts/check-contract-inventory.mjs",
|
|
45
52
|
"test:browser:install": "playwright install chromium",
|
|
46
53
|
"test:browser": "pnpm run test:browser:install && node scripts/real-browser-runtime-smoke.mjs",
|
|
47
|
-
"prepack": "pnpm
|
|
54
|
+
"prepack": "pnpm test:types && pnpm test && pnpm build && pnpm lint:boundaries && pnpm lint:v4",
|
|
48
55
|
"pack": "npm pack",
|
|
49
56
|
"pack:consumer": "pnpm run prepack && node scripts/pack-consumer-smoke.mjs"
|
|
50
57
|
},
|