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>
24 lines
961 B
TypeScript
24 lines
961 B
TypeScript
import fs from "node:fs";
|
|
import { test } from "@playwright/test";
|
|
|
|
test("inspect served editor-workflow module", async ({ page }) => {
|
|
test.setTimeout(120_000);
|
|
await page.goto("/");
|
|
const out = await page.evaluate(async () => {
|
|
const paths = ["/protocol/editor-workflow.ts", "/src/protocol/editor-workflow.ts", "/@fs/home/mes123456/workinf_Blender_Wasm/web/protocol/editor-workflow.ts"];
|
|
const results: Record<string, unknown> = {};
|
|
for (const path of paths) {
|
|
try {
|
|
const response = await fetch(path);
|
|
const text = response.ok ? await response.text() : "";
|
|
results[path] = { ok: response.ok, status: response.status, hasPhysics: text.includes("PHYSICS"), hasObjectAllow: text.includes("'WORLD', 'OBJECT'") };
|
|
}
|
|
catch (error) {
|
|
results[path] = { error: String(error) };
|
|
}
|
|
}
|
|
return results;
|
|
});
|
|
fs.writeFileSync("/tmp/served-module.json", JSON.stringify(out, null, 2));
|
|
});
|