import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; import path from "node:path"; const scriptDir = path.dirname(fileURLToPath(import.meta.url)); const source = readFileSync( path.resolve(scriptDir, "../src/components/WorkspaceFileManager.tsx"), "utf8", ); function assert(condition, message) { if (!condition) { throw new Error(message); } } assert( source.includes("folderUploadInputRef"), "Workspace file manager must include a dedicated folder upload input.", ); assert( /