@ericnunes/frame-code-cli 0.0.5 → 0.0.6

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/app/cli.js +11 -1
  2. package/package.json +2 -2
package/dist/app/cli.js CHANGED
@@ -7,10 +7,20 @@ const commander_1 = require("commander");
7
7
  const autonomous_1 = require("../cli/commands/autonomous");
8
8
  const interactive_1 = require("../cli/commands/interactive");
9
9
  const memory_1 = require("../cli/commands/memory");
10
+ function resolveCliVersion() {
11
+ try {
12
+ const pkg = require('../../package.json');
13
+ if (pkg && typeof pkg.version === 'string' && pkg.version.trim().length > 0) {
14
+ return pkg.version;
15
+ }
16
+ }
17
+ catch { }
18
+ return '0.0.0';
19
+ }
10
20
  exports.program = new commander_1.Command()
11
21
  .name('frame-code-cli')
12
22
  .description('CLI para frame-code com agentes')
13
- .version('0.0.1');
23
+ .version(resolveCliVersion());
14
24
  exports.program.addCommand((0, autonomous_1.createAutonomousCommand)());
15
25
  exports.program.addCommand((0, interactive_1.createInteractiveCommand)());
16
26
  exports.program.addCommand(memory_1.memoryCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ericnunes/frame-code-cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "CLI para interagir com agentes (runtime via frame-agent-core)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -44,7 +44,7 @@
44
44
  "author": "Eric Nunes",
45
45
  "license": "SEE LICENSE IN LICENSE",
46
46
  "dependencies": {
47
- "@ericnunes/frame-agent-core": ">=0.0.5 <0.1.0",
47
+ "@ericnunes/frame-agent-core": ">=0.0.6 <0.1.0",
48
48
  "commander": "^14.0.1",
49
49
  "dotenv": "^17.2.3"
50
50
  },