#!/usr/bin/env node // This bin script needs tsx to run TypeScript source directly. // Use --import to register the tsx loader before importing our TS entry. import { execFileSync } from "child_process"; import { fileURLToPath } from "url"; import path from "path"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const entryPoint = path.resolve(__dirname, "../src/server/index.ts"); // Re-exec with tsx if not already running under it try { execFileSync( "npx", ["tsx", entryPoint], { stdio: "inherit", env: { ...process.env, SESSION_VIEWER_OPEN_BROWSER: "1" }, } ); } catch { process.exit(1); }