chore: checkpoint web Blender migration source, tools and docs
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-10 11:18:01 +08:00
parent 122142c26c
commit f3e21c6b98
6887 changed files with 257154 additions and 12294 deletions

View File

@@ -1,4 +1,5 @@
import assert from "node:assert/strict";
import crypto from "node:crypto";
import fs from "node:fs";
import path from "node:path";
import test from "node:test";
@@ -10,7 +11,7 @@ const packageJson = JSON.parse(
test("browser runtime dependencies stay local", () => {
const runtimePackages = Object.keys(packageJson.dependencies ?? {});
assert.deepEqual(runtimePackages, ["@ffmpeg/core", "@ffmpeg/ffmpeg", "@ffmpeg/util", "react", "react-dom"]);
assert.deepEqual([...runtimePackages].sort(), ["@ffmpeg/core", "@ffmpeg/ffmpeg", "@ffmpeg/util", "@webgpu/glslang", "fflate", "naga-wasm", "react", "react-dom"].sort());
assert.equal(packageJson.dependencies?.three, undefined);
assert.equal(packageJson.dependencies?.["@sqlite.org/sqlite-wasm"], undefined);
for (const name of runtimePackages) {
@@ -41,10 +42,8 @@ test("required renderer and engine assets are vendored", () => {
const filePath = path.join(webRoot, relativePath);
assert.ok(fs.statSync(filePath).size > 0, `${relativePath} must be non-empty`);
}
assert.deepEqual(
fs.readFileSync(path.join(webRoot, "app/src/vendor/blender/web_engine.wasm")),
fs.readFileSync(path.join(webRoot, "app/public/vendor/blender/web_engine.wasm")),
);
const digest = relative => crypto.createHash("sha256").update(fs.readFileSync(path.join(webRoot, relative))).digest("hex");
assert.equal(digest("app/src/vendor/blender/web_engine.wasm"), digest("app/public/vendor/blender/web_engine.wasm"), "source/public native WASM must match");
for (const relativePath of [
"blender-5.2.0/extern/zlib/CMakeLists.txt",
"blender-5.2.0/extern/zstd/build/cmake/CMakeLists.txt",