/** * THE OFF SWITCH (coordinator, 27 Nov 2026, after the security review of SHARED SPACE 1; made build-time in SHARED * SPACE 3): every live deploy ships main. The shared spaces are open only where the Worker was BUILT with them on: * `__SHARED_SPACES__` is an esbuild `define` in wrangler.jsonc (the dev Worker's alone) and in vitest.config.ts. No * var, secret or dashboard setting can open them, since none is read. Off: * - the door does not handle a space path at all (src/open.ts), so it gets exactly the answer any unknown route gets; * - no person's object founds, joins or is charged for a space (src/business.ts); no Space object answers. * Guard: scripts/__tests__/wrangler-envs.test.ts (live defines nothing, dev defines "on", no var names it). */ declare const __SHARED_SPACES__: string | undefined; /** What the build said; `on` only when the define is there and says so. */ const BAKED = typeof __SHARED_SPACES__ !== "undefined" && __SHARED_SPACES__ === "on"; /** The switch. Production code only reads it; the switch's own test turns it off for a moment (test/shared-space-switch.test.ts). */ export const SWITCH = { on: BAKED }; export function spacesOn(): boolean { return SWITCH.on; }