@aigne/cli 1.59.0-beta.17 → 1.59.0-beta.18

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.59.0-beta.18](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.59.0-beta.17...cli-v1.59.0-beta.18) (2026-01-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **cli:** ask user retry when model request respond error ([#884](https://github.com/AIGNE-io/aigne-framework/issues/884)) ([60aabbb](https://github.com/AIGNE-io/aigne-framework/commit/60aabbb34be6104f25f0383c2279f7f089268631))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/aigne-hub bumped to 0.10.16-beta.18
16
+
3
17
  ## [1.59.0-beta.17](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.59.0-beta.16...cli-v1.59.0-beta.17) (2026-01-08)
4
18
 
5
19
 
@@ -154,6 +154,7 @@ export class TerminalTracer {
154
154
  }
155
155
  task.resolve();
156
156
  };
157
+ let retryPromptPromise;
157
158
  const onError = async ({ context, agent, error, ...event }) => {
158
159
  if ("type" in error && error.type === AIGNE_HUB_CREDITS_NOT_ENOUGH_ERROR_TYPE) {
159
160
  if (!Object.hasOwn(error, CREDITS_ERROR_PROCESSED_FLAG)) {
@@ -168,6 +169,23 @@ export class TerminalTracer {
168
169
  }
169
170
  }
170
171
  }
172
+ if (agent instanceof ChatModel) {
173
+ retryPromptPromise ??= this.proxiedPrompts
174
+ .select({
175
+ message: chalk.red(`Error: ${error.message}`),
176
+ choices: [
177
+ { value: "retry", name: "Retry" },
178
+ { value: "exit", name: "Exit" },
179
+ ],
180
+ })
181
+ .then((result) => ({ retry: result === "retry" }))
182
+ .finally(() => {
183
+ retryPromptPromise = undefined;
184
+ });
185
+ const { retry } = await retryPromptPromise;
186
+ if (retry)
187
+ return { retry: true };
188
+ }
171
189
  const contextId = context.id;
172
190
  const task = this.tasks[contextId];
173
191
  if (!task)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.59.0-beta.17",
3
+ "version": "1.59.0-beta.18",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -91,16 +91,16 @@
91
91
  "zod": "^3.25.67",
92
92
  "zod-to-json-schema": "^3.24.6",
93
93
  "@aigne/afs": "^1.4.0-beta.7",
94
- "@aigne/afs-history": "^1.2.0-beta.8",
95
94
  "@aigne/afs-local-fs": "^1.4.0-beta.14",
96
- "@aigne/agentic-memory": "^1.1.6-beta.13",
95
+ "@aigne/afs-history": "^1.2.0-beta.8",
97
96
  "@aigne/agent-library": "^1.24.0-beta.15",
98
- "@aigne/aigne-hub": "^0.10.16-beta.17",
97
+ "@aigne/agentic-memory": "^1.1.6-beta.13",
98
+ "@aigne/aigne-hub": "^0.10.16-beta.18",
99
99
  "@aigne/default-memory": "^1.4.0-beta.12",
100
100
  "@aigne/core": "^1.72.0-beta.13",
101
101
  "@aigne/observability-api": "^0.11.14-beta.2",
102
- "@aigne/secrets": "^0.1.6-beta.13",
103
- "@aigne/openai": "^0.16.16-beta.13"
102
+ "@aigne/openai": "^0.16.16-beta.13",
103
+ "@aigne/secrets": "^0.1.6-beta.13"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@inquirer/testing": "^2.1.50",