ai-agent-test 0.3.1 → 0.3.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/bin/ai +5 -2
  2. package/package.json +1 -1
package/bin/ai CHANGED
@@ -14,7 +14,9 @@ if (argv[2] === '--version') {
14
14
 
15
15
  // Handle --help command
16
16
  if (argv[2] === '--help') {
17
- console.log(`ai-agent-test v${process.argv.slice(3).includes('--version') ? '' : '0.3.0'}
17
+ import('fs').then(({ readFileSync }) => {
18
+ const packageJson = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
19
+ console.log(`ai-agent-test v${packageJson.version}
18
20
 
19
21
  Usage: ai [options] [model-index]
20
22
 
@@ -33,7 +35,8 @@ Examples:
33
35
  ai --version # Show version
34
36
  ai --help # Show help
35
37
  `);
36
- process.exit(0);
38
+ process.exit(0);
39
+ });
37
40
  }
38
41
 
39
42
  // Handle update command
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agent-test",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "ai": "./bin/ai"