cli4ai 1.1.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli4ai",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "The package manager for AI CLI tools - cli4ai.com",
5
5
  "type": "module",
6
6
  "bin": {
package/src/bin.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env npx tsx
2
2
  /**
3
3
  * cli4ai - The package manager for AI CLI tools
4
4
  * cli4ai.com
package/src/lib/cli.ts CHANGED
@@ -4,9 +4,16 @@
4
4
  */
5
5
 
6
6
  import { Command } from 'commander';
7
+ import { readFileSync } from 'fs';
8
+ import { dirname, join } from 'path';
9
+ import { fileURLToPath } from 'url';
10
+
11
+ const __dirname = dirname(fileURLToPath(import.meta.url));
12
+ const pkgPath = join(__dirname, '..', '..', 'package.json');
13
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
7
14
 
8
15
  export const BRAND = 'cli4ai - cli4ai.com';
9
- export const VERSION = '0.9.2';
16
+ export const VERSION = pkg.version;
10
17
 
11
18
  // ═══════════════════════════════════════════════════════════════════════════
12
19
  // TYPES