@aigne/cli 1.58.0 → 1.58.1-beta.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/CHANGELOG.md +71 -0
- package/dist/tracer/terminal.d.ts +1 -0
- package/dist/tracer/terminal.js +11 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,76 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.58.1-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.1-beta.1...cli-v1.58.1-beta.2) (2025-12-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **core:** add creditPrefix field to usage tracking ([#837](https://github.com/AIGNE-io/aigne-framework/issues/837)) ([9ef25e0](https://github.com/AIGNE-io/aigne-framework/commit/9ef25e0687b4e7b4ba39a27a35805f377f0979eb))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/afs bumped to 1.4.0-beta.2
|
|
16
|
+
* @aigne/afs-history bumped to 1.2.0-beta.2
|
|
17
|
+
* @aigne/afs-local-fs bumped to 1.4.0-beta.2
|
|
18
|
+
* @aigne/agent-library bumped to 1.24.0-beta.2
|
|
19
|
+
* @aigne/agentic-memory bumped to 1.1.6-beta.2
|
|
20
|
+
* @aigne/aigne-hub bumped to 0.10.16-beta.2
|
|
21
|
+
* @aigne/core bumped to 1.72.0-beta.2
|
|
22
|
+
* @aigne/default-memory bumped to 1.3.6-beta.2
|
|
23
|
+
* @aigne/openai bumped to 0.16.16-beta.2
|
|
24
|
+
* @aigne/secrets bumped to 0.1.6-beta.2
|
|
25
|
+
* devDependencies
|
|
26
|
+
* @aigne/test-utils bumped to 0.5.69-beta.2
|
|
27
|
+
|
|
28
|
+
## [1.58.1-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.1-beta...cli-v1.58.1-beta.1) (2025-12-17)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* bump version ([70d217c](https://github.com/AIGNE-io/aigne-framework/commit/70d217c8360dd0dda7f5f17011c4e92ec836e801))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Dependencies
|
|
37
|
+
|
|
38
|
+
* The following workspace dependencies were updated
|
|
39
|
+
* dependencies
|
|
40
|
+
* @aigne/afs bumped to 1.4.0-beta.1
|
|
41
|
+
* @aigne/afs-history bumped to 1.2.0-beta.1
|
|
42
|
+
* @aigne/afs-local-fs bumped to 1.4.0-beta.1
|
|
43
|
+
* @aigne/agent-library bumped to 1.24.0-beta.1
|
|
44
|
+
* @aigne/agentic-memory bumped to 1.1.6-beta.1
|
|
45
|
+
* @aigne/aigne-hub bumped to 0.10.16-beta.1
|
|
46
|
+
* @aigne/core bumped to 1.72.0-beta.1
|
|
47
|
+
* @aigne/default-memory bumped to 1.3.6-beta.1
|
|
48
|
+
* @aigne/observability-api bumped to 0.11.14-beta
|
|
49
|
+
* @aigne/openai bumped to 0.16.16-beta.1
|
|
50
|
+
* @aigne/secrets bumped to 0.1.6-beta.1
|
|
51
|
+
* devDependencies
|
|
52
|
+
* @aigne/test-utils bumped to 0.5.69-beta.1
|
|
53
|
+
|
|
54
|
+
## [1.58.1-beta](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.0...cli-v1.58.1-beta) (2025-12-17)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Dependencies
|
|
58
|
+
|
|
59
|
+
* The following workspace dependencies were updated
|
|
60
|
+
* dependencies
|
|
61
|
+
* @aigne/afs bumped to 1.4.0-beta
|
|
62
|
+
* @aigne/afs-history bumped to 1.2.0-beta
|
|
63
|
+
* @aigne/afs-local-fs bumped to 1.4.0-beta
|
|
64
|
+
* @aigne/agent-library bumped to 1.24.0-beta
|
|
65
|
+
* @aigne/agentic-memory bumped to 1.1.6-beta
|
|
66
|
+
* @aigne/aigne-hub bumped to 0.10.16-beta
|
|
67
|
+
* @aigne/core bumped to 1.72.0-beta
|
|
68
|
+
* @aigne/default-memory bumped to 1.3.6-beta
|
|
69
|
+
* @aigne/openai bumped to 0.16.16-beta
|
|
70
|
+
* @aigne/secrets bumped to 0.1.6-beta
|
|
71
|
+
* devDependencies
|
|
72
|
+
* @aigne/test-utils bumped to 0.5.69-beta
|
|
73
|
+
|
|
3
74
|
## [1.58.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.0-beta.8...cli-v1.58.0) (2025-12-12)
|
|
4
75
|
|
|
5
76
|
|
|
@@ -20,6 +20,7 @@ export declare class TerminalTracer {
|
|
|
20
20
|
private proxiedPrompts;
|
|
21
21
|
private buyCreditsPromptPromise;
|
|
22
22
|
private promptBuyCredits;
|
|
23
|
+
formatAigneHubCredits(credits: number, creditPrefix?: string): [string, string];
|
|
23
24
|
formatTokenUsage(usage: Partial<ContextUsage>, extra?: {
|
|
24
25
|
[key: string]: string;
|
|
25
26
|
}): string;
|
package/dist/tracer/terminal.js
CHANGED
|
@@ -242,12 +242,22 @@ export class TerminalTracer {
|
|
|
242
242
|
this.buyCreditsPromptPromise = undefined;
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
+
formatAigneHubCredits(credits, creditPrefix) {
|
|
246
|
+
const hasDecimal = credits % 1 !== 0;
|
|
247
|
+
const formattedCredits = hasDecimal
|
|
248
|
+
? parseFloat(credits.toFixed(6)).toString()
|
|
249
|
+
: credits.toFixed();
|
|
250
|
+
if (creditPrefix) {
|
|
251
|
+
return [chalk.grey("cost:"), chalk.blue(`${creditPrefix}${formattedCredits}`)];
|
|
252
|
+
}
|
|
253
|
+
return [chalk.blue(formattedCredits), chalk.grey("AIGNE Hub credits")];
|
|
254
|
+
}
|
|
245
255
|
formatTokenUsage(usage, extra) {
|
|
246
256
|
const items = [
|
|
247
257
|
[chalk.yellow(usage.inputTokens), chalk.grey("input tokens")],
|
|
248
258
|
[chalk.cyan(usage.outputTokens), chalk.grey("output tokens")],
|
|
249
259
|
usage.aigneHubCredits
|
|
250
|
-
?
|
|
260
|
+
? this.formatAigneHubCredits(usage.aigneHubCredits, usage.creditPrefix)
|
|
251
261
|
: undefined,
|
|
252
262
|
usage.agentCalls ? [chalk.magenta(usage.agentCalls), chalk.grey("agent calls")] : undefined,
|
|
253
263
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.1-beta.2",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -89,17 +89,17 @@
|
|
|
89
89
|
"yoctocolors-cjs": "^2.1.3",
|
|
90
90
|
"zod": "^3.25.67",
|
|
91
91
|
"zod-to-json-schema": "^3.24.6",
|
|
92
|
-
"@aigne/afs": "^1.
|
|
93
|
-
"@aigne/afs-history": "^1.
|
|
94
|
-
"@aigne/afs-local-fs": "^1.
|
|
95
|
-
"@aigne/agentic-memory": "^1.1.
|
|
96
|
-
"@aigne/agent-library": "^1.
|
|
97
|
-
"@aigne/aigne-hub": "^0.10.
|
|
98
|
-
"@aigne/core": "^1.
|
|
99
|
-
"@aigne/default-memory": "^1.3.
|
|
100
|
-
"@aigne/
|
|
101
|
-
"@aigne/
|
|
102
|
-
"@aigne/
|
|
92
|
+
"@aigne/afs": "^1.4.0-beta.2",
|
|
93
|
+
"@aigne/afs-history": "^1.2.0-beta.2",
|
|
94
|
+
"@aigne/afs-local-fs": "^1.4.0-beta.2",
|
|
95
|
+
"@aigne/agentic-memory": "^1.1.6-beta.2",
|
|
96
|
+
"@aigne/agent-library": "^1.24.0-beta.2",
|
|
97
|
+
"@aigne/aigne-hub": "^0.10.16-beta.2",
|
|
98
|
+
"@aigne/core": "^1.72.0-beta.2",
|
|
99
|
+
"@aigne/default-memory": "^1.3.6-beta.2",
|
|
100
|
+
"@aigne/openai": "^0.16.16-beta.2",
|
|
101
|
+
"@aigne/secrets": "^0.1.6-beta.2",
|
|
102
|
+
"@aigne/observability-api": "^0.11.14-beta"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@inquirer/testing": "^2.1.50",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"rimraf": "^6.0.1",
|
|
117
117
|
"typescript": "^5.9.2",
|
|
118
118
|
"ufo": "^1.6.1",
|
|
119
|
-
"@aigne/test-utils": "^0.5.
|
|
119
|
+
"@aigne/test-utils": "^0.5.69-beta.2"
|
|
120
120
|
},
|
|
121
121
|
"scripts": {
|
|
122
122
|
"lint": "tsc --noEmit",
|