@bamptee/aia-code 1.0.4 → 1.0.5

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/package.json +1 -1
  2. package/src/cli.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamptee/aia-code",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "AI Architecture Assistant - orchestrate AI-assisted development workflows via CLI tools (Claude, Codex, Gemini)",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/cli.js CHANGED
@@ -1,4 +1,10 @@
1
1
  import { Command } from 'commander';
2
+ import { readFileSync } from 'node:fs';
3
+ import { fileURLToPath } from 'node:url';
4
+ import path from 'node:path';
5
+
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
+ const pkg = JSON.parse(readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'));
2
8
  import { registerInitCommand } from './commands/init.js';
3
9
  import { registerFeatureCommand } from './commands/feature.js';
4
10
  import { registerRunCommand } from './commands/run.js';
@@ -15,7 +21,7 @@ export function createCli() {
15
21
  program
16
22
  .name('aia')
17
23
  .description('AI Architecture Assistant')
18
- .version('0.1.0');
24
+ .version(pkg.version);
19
25
 
20
26
  registerInitCommand(program);
21
27
  registerFeatureCommand(program);