agentxchain 0.7.0 → 0.7.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.
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import { readFileSync } from 'fs';
4
+ import { join, dirname } from 'path';
5
+ import { fileURLToPath } from 'url';
3
6
  import { Command } from 'commander';
4
7
  import { initCommand } from '../src/commands/init.js';
5
8
  import { statusCommand } from '../src/commands/status.js';
@@ -11,12 +14,15 @@ import { watchCommand } from '../src/commands/watch.js';
11
14
  import { claimCommand, releaseCommand } from '../src/commands/claim.js';
12
15
  import { generateCommand } from '../src/commands/generate.js';
13
16
 
17
+ const __dirname = dirname(fileURLToPath(import.meta.url));
18
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
19
+
14
20
  const program = new Command();
15
21
 
16
22
  program
17
23
  .name('agentxchain')
18
24
  .description('Multi-agent coordination in your IDE')
19
- .version('0.4.1');
25
+ .version(pkg.version);
20
26
 
21
27
  program
22
28
  .command('init')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentxchain",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "CLI for AgentXchain — multi-agent coordination in your IDE",
5
5
  "type": "module",
6
6
  "bin": {