protoagent 0.0.4 → 0.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/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,6 +8,13 @@ import { createOpenAIClient } from './config/client.js';
8
8
  import { showCurrentConfig, updateApiKey, updateModel, resetConfiguration } from './config/commands.js';
9
9
  import { createAgenticLoop } from './agentic-loop.js';
10
10
  import { logger, LogLevel } from './utils/logger.js';
11
+ import path from 'path';
12
+ import { readFileSync } from 'fs';
13
+ import { fileURLToPath } from 'url';
14
+ // Get package.json version
15
+ const __filename = fileURLToPath(import.meta.url);
16
+ const __dirname = path.dirname(__filename);
17
+ const packageJson = JSON.parse(readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'));
11
18
  const program = new Command();
12
19
  // Global configuration and client
13
20
  let config = null;
@@ -16,7 +23,7 @@ let agenticLoop = null;
16
23
  program
17
24
  .name('protoagent')
18
25
  .description('Interactive AI coding agent CLI with file system capabilities')
19
- .version('1.0.0')
26
+ .version(packageJson.version)
20
27
  .option('--dangerously-accept-all', 'Auto-approve all shell commands and file operations without confirmation (DANGEROUS)')
21
28
  .option('--log-level <level>', 'Set logging level (ERROR, WARN, INFO, DEBUG, TRACE)', 'INFO')
22
29
  .option('--log-to-file', 'Enable file logging to ~/.protoagent/logs/')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protoagent",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Interactive AI coding agent CLI with file system capabilities and shell command execution",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",