First pass at pulling the v1.5 CLI, TUI, and Launcher clients into v2.

This commit is contained in:
Bob Dickinson 2026-06-09 17:38:00 -07:00
commit 467b01edd6

21
clients/web/src/index.ts Normal file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env node
import { resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { runWeb } from "../server/run-web.js";
export { runWeb };
const __filename = fileURLToPath(import.meta.url);
const isMain =
process.argv[1] !== undefined &&
resolve(process.argv[1]) === resolve(__filename);
if (isMain) {
runWeb(process.argv)
.then((code) => process.exit(code ?? 0))
.catch((e) => {
console.error(e);
process.exit(1);
});
}