The best way to control Claude Code, Codex and more from any computer or phone

main
mjs 15 lines 466 Bytes
Raw
1 import * as NodeModule from "node:module";
2
3 // The gt CLI picks its commands from package.json, and gt-i18n alone gets no `generate`.
4 const { Command } = NodeModule.createRequire(import.meta.resolve("gt"))("commander");
5 const { NodeCLI } = await import("gt/cli/node");
6
7 const program = new Command("gt");
8 new NodeCLI(program, "gt-node", []).init();
9 await program.parseAsync([
10 "node",
11 "gt",
12 "generate",
13 "--skip-version-check",
14 ...process.argv.slice(2),
15 ]);