// Stubs for Node.js built-ins used by server-only modules that leak into the // UI fixture bundle. These keep esbuild from failing on `node:*` imports // while providing shape-compatible exports so the bundle stays loadable. export class AsyncLocalStorage { enterWith(): void {} exit(): void {} getStore(): T | undefined { return undefined; } run(store: T, work: () => U): U { return work(); } } export function createHash(): { update(): { digest(): string } } { return { update: () => ({ digest: () => "", }), }; } export function randomUUID(): string { return "00000000-0000-0000-0000-000000000000"; } export async function readFile(): Promise { return Buffer.alloc(0); } export const path = { join: (...parts: string[]): string => parts.join("/"), resolve: (...parts: string[]): string => parts.join("/"), sep: "/", };