|
|
@@ -1,5 +1,6 @@
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
+import { createRequire } from "node:module";
|
|
|
import { Command } from "commander";
|
|
|
import { initCommand } from "./commands/init.js";
|
|
|
import { configCommand } from "./commands/config.js";
|
|
|
@@ -22,12 +23,15 @@ import { styleCommand } from "./commands/style.js";
|
|
|
import { analyticsCommand } from "./commands/analytics.js";
|
|
|
import { importCommand } from "./commands/import.js";
|
|
|
|
|
|
+const require = createRequire(import.meta.url);
|
|
|
+const { version } = require("../package.json") as { version: string };
|
|
|
+
|
|
|
const program = new Command();
|
|
|
|
|
|
program
|
|
|
.name("inkos")
|
|
|
.description("InkOS — Multi-agent novel production system")
|
|
|
- .version("0.3.6");
|
|
|
+ .version(version);
|
|
|
|
|
|
program.addCommand(initCommand);
|
|
|
program.addCommand(configCommand);
|