@codai/axiom-mcp 1.0.23 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
3
+ const { version } = createRequire(import.meta.url)("../package.json");
4
+ const argv = process.argv.slice(2);
5
+ const verb = argv[0];
6
+ if (verb === "--version" || verb === "-v") console.log(version);
7
+ else if (verb === "gate") {
8
+ const { gateMain } = await import("./gate-lazy.js");
9
+ const r = await gateMain(argv.slice(1));
10
+ for (const line of r.stderr) process.stderr.write(`${line}\n`);
11
+ if (r.stdout !== void 0) process.stdout.write(`${r.stdout}\n`);
12
+ process.exitCode = r.exitCode;
13
+ } else {
14
+ const { main } = await import("./cli-main.js");
15
+ process.exitCode = await main(argv, version);
16
+ }
17
+ export {};
18
+
19
+ //# sourceMappingURL=cli.js.map