@nyxa/nyx-agent 0.2.0 → 0.2.1
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 +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from "commander";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
3
4
|
import pc from "picocolors";
|
|
4
5
|
import { initCommand } from "./commands/init.js";
|
|
5
6
|
import { runCommand } from "./commands/run.js";
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
const packageJson = require("../package.json");
|
|
6
9
|
const program = new Command();
|
|
7
10
|
program
|
|
8
11
|
.name("nyxagent")
|
|
9
12
|
.description("Run coding-agent workflows with fresh context per phase.")
|
|
10
|
-
.version(
|
|
13
|
+
.version(packageJson.version);
|
|
11
14
|
program
|
|
12
15
|
.command("init")
|
|
13
16
|
.description("Create a .nyxagent project configuration")
|