@aigne/cli 1.58.1-beta.1 → 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 CHANGED
@@ -1,5 +1,30 @@
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
+
3
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)
4
29
 
5
30
 
@@ -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;
@@ -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
- ? [chalk.blue(usage.aigneHubCredits.toFixed()), chalk.grey("AIGNE Hub credits")]
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.1-beta.1",
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.4.0-beta.1",
93
- "@aigne/agent-library": "^1.24.0-beta.1",
94
- "@aigne/afs-local-fs": "^1.4.0-beta.1",
95
- "@aigne/agentic-memory": "^1.1.6-beta.1",
96
- "@aigne/aigne-hub": "^0.10.16-beta.1",
97
- "@aigne/afs-history": "^1.2.0-beta.1",
98
- "@aigne/core": "^1.72.0-beta.1",
99
- "@aigne/default-memory": "^1.3.6-beta.1",
100
- "@aigne/observability-api": "^0.11.14-beta",
101
- "@aigne/openai": "^0.16.16-beta.1",
102
- "@aigne/secrets": "^0.1.6-beta.1"
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.69-beta.1"
119
+ "@aigne/test-utils": "^0.5.69-beta.2"
120
120
  },
121
121
  "scripts": {
122
122
  "lint": "tsc --noEmit",