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 = {}; 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)); });