@kernelius/forge-cli 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  // src/index.ts
4
4
  import { Command as Command5 } from "commander";
5
+ import { readFileSync } from "fs";
6
+ import { fileURLToPath } from "url";
7
+ import { dirname, join as join2 } from "path";
5
8
 
6
9
  // src/commands/auth.ts
7
10
  import { Command } from "commander";
@@ -602,8 +605,13 @@ function parseRepoArg3(arg) {
602
605
  }
603
606
 
604
607
  // src/index.ts
608
+ var __filename2 = fileURLToPath(import.meta.url);
609
+ var __dirname2 = dirname(__filename2);
610
+ var packageJson = JSON.parse(
611
+ readFileSync(join2(__dirname2, "../package.json"), "utf-8")
612
+ );
605
613
  var program = new Command5();
606
- program.name("forge").description("CLI tool for Kernelius Forge - the agent-native Git platform").version("0.1.0");
614
+ program.name("forge").description("CLI tool for Kernelius Forge - the agent-native Git platform").version(packageJson.version);
607
615
  program.addCommand(createAuthCommand());
608
616
  program.addCommand(createReposCommand());
609
617
  program.addCommand(createIssuesCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernelius/forge-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Command-line tool for Kernelius Forge - the agent-native Git platform",
5
5
  "type": "module",
6
6
  "bin": {