aas-setup 1.0.1 → 1.0.2
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/bin/aas-setup.mjs +4 -1
- package/package.json +1 -1
package/bin/aas-setup.mjs
CHANGED
|
@@ -9,14 +9,17 @@
|
|
|
9
9
|
// aas-setup pi opencode explicit subset
|
|
10
10
|
// Flags: --dry-run, --backup, --help, --version.
|
|
11
11
|
|
|
12
|
+
import { createRequire } from "node:module";
|
|
12
13
|
import { program } from "commander";
|
|
13
14
|
import { AGENTS, initialize } from "../src/commands/init.mjs";
|
|
14
15
|
import { selectAgents } from "../src/commands/select.mjs";
|
|
15
16
|
|
|
17
|
+
const { version } = createRequire(import.meta.url)("../package.json");
|
|
18
|
+
|
|
16
19
|
program
|
|
17
20
|
.name("aas-setup")
|
|
18
21
|
.description("Initialize Pi and OpenCode agent environments from a curated snapshot")
|
|
19
|
-
.version(
|
|
22
|
+
.version(version)
|
|
20
23
|
.argument("[agents...]", "agent ids to configure (pi, opencode); omit for interactive/all")
|
|
21
24
|
.option("--dry-run", "print planned actions, execute nothing")
|
|
22
25
|
.option("--backup", "back up existing agent homes before overwriting")
|