@rigstate/cli 0.7.16 → 0.7.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigstate/cli",
3
- "version": "0.7.16",
3
+ "version": "0.7.18",
4
4
  "description": "Rigstate CLI - Code audit, sync and supervision tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -1,5 +1,4 @@
1
-
2
-
1
+ import { createRequire } from 'module';
3
2
  import { Command } from 'commander';
4
3
  import chalk from 'chalk';
5
4
  import { createLoginCommand } from './commands/login.js';
@@ -27,6 +26,9 @@ import { createCouncilCommand } from './commands/council.js';
27
26
  import { checkVersion } from './utils/version.js';
28
27
  import dotenv from 'dotenv';
29
28
 
29
+ const require = createRequire(import.meta.url);
30
+ const pkg = require('../package.json');
31
+
30
32
  // Load environment variables
31
33
  dotenv.config();
32
34
 
@@ -35,7 +37,7 @@ const program = new Command();
35
37
  program
36
38
  .name('rigstate')
37
39
  .description('CLI for Rigstate - The AI-Native Dev Studio')
38
- .version('0.7.5');
40
+ .version(pkg.version);
39
41
 
40
42
  // Register commands
41
43
  program.addCommand(createLoginCommand());