@aigne/cli 1.53.1-beta.3 → 1.53.1-beta.4
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 +23 -0
- package/dist/commands/app/upgrade.js +12 -10
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.53.1-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.53.1-beta.3...cli-v1.53.1-beta.4) (2025-11-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **cli:** only auto-reinstall on agent loading errors ([#702](https://github.com/AIGNE-io/aigne-framework/issues/702)) ([52f61a4](https://github.com/AIGNE-io/aigne-framework/commit/52f61a47537f2be8763f7bd45b8baea94cf43e60))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/afs-system-fs bumped to 1.0.4-beta.4
|
|
16
|
+
* @aigne/agent-library bumped to 1.21.51-beta.3
|
|
17
|
+
* @aigne/agentic-memory bumped to 1.0.51-beta.3
|
|
18
|
+
* @aigne/aigne-hub bumped to 0.10.5-beta.3
|
|
19
|
+
* @aigne/core bumped to 1.65.1-beta.3
|
|
20
|
+
* @aigne/default-memory bumped to 1.2.14-beta.3
|
|
21
|
+
* @aigne/observability-api bumped to 0.11.5-beta.2
|
|
22
|
+
* @aigne/openai bumped to 0.16.5-beta.3
|
|
23
|
+
* devDependencies
|
|
24
|
+
* @aigne/test-utils bumped to 0.5.58-beta.3
|
|
25
|
+
|
|
3
26
|
## [1.53.1-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.53.1-beta.2...cli-v1.53.1-beta.3) (2025-11-04)
|
|
4
27
|
|
|
5
28
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { mkdir, readFile, rm, stat, writeFile } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
+
import { LoadJsAgentError } from "@aigne/core/loader/error.js";
|
|
4
5
|
import { fetch } from "@aigne/core/utils/fetch.js";
|
|
5
6
|
import { Listr, PRESET_TIMER } from "@aigne/listr2";
|
|
6
7
|
import { joinURL } from "ufo";
|
|
@@ -78,21 +79,22 @@ export async function loadApplication(options) {
|
|
|
78
79
|
}
|
|
79
80
|
if (!needUpdate) {
|
|
80
81
|
const aigne = await loadAIGNE({
|
|
82
|
+
...options,
|
|
81
83
|
path: dir,
|
|
82
|
-
skipModelLoading: options.skipModelLoading,
|
|
83
|
-
modelOptions: options.modelOptions,
|
|
84
|
-
imageModelOptions: options.imageModelOptions,
|
|
85
84
|
metadata: {
|
|
86
85
|
appName: packageName,
|
|
87
86
|
appVersion: check?.version,
|
|
88
87
|
},
|
|
89
88
|
}).catch(async (error) => {
|
|
90
|
-
|
|
91
|
-
await
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
if (error instanceof LoadJsAgentError) {
|
|
90
|
+
await withSpinner("", async () => {
|
|
91
|
+
await rm(options.dir, { recursive: true, force: true });
|
|
92
|
+
await mkdir(options.dir, { recursive: true });
|
|
93
|
+
});
|
|
94
|
+
const message = `⚠️ Failed to load ${packageName}, trying to reinstall: ${error.message}`;
|
|
95
|
+
throw beta ? new NeedReinstallBetaError(message) : new NeedReinstallError(message);
|
|
96
|
+
}
|
|
97
|
+
throw error;
|
|
96
98
|
});
|
|
97
99
|
if (aigne) {
|
|
98
100
|
return { aigne, version: check.version, isCache: true };
|
|
@@ -104,8 +106,8 @@ export async function loadApplication(options) {
|
|
|
104
106
|
const result = await installApp({ dir, packageName, beta });
|
|
105
107
|
return {
|
|
106
108
|
aigne: await loadAIGNE({
|
|
109
|
+
...options,
|
|
107
110
|
path: dir,
|
|
108
|
-
skipModelLoading: true,
|
|
109
111
|
metadata: {
|
|
110
112
|
appName: packageName,
|
|
111
113
|
appVersion: result.version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.53.1-beta.
|
|
3
|
+
"version": "1.53.1-beta.4",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -89,14 +89,14 @@
|
|
|
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-system-fs": "^1.0.4-beta.
|
|
93
|
-
"@aigne/agent-library": "^1.21.51-beta.
|
|
94
|
-
"@aigne/agentic-memory": "^1.0.51-beta.
|
|
95
|
-
"@aigne/
|
|
96
|
-
"@aigne/
|
|
97
|
-
"@aigne/default-memory": "^1.2.14-beta.
|
|
98
|
-
"@aigne/observability-api": "^0.11.5-beta.
|
|
99
|
-
"@aigne/openai": "^0.16.5-beta.
|
|
92
|
+
"@aigne/afs-system-fs": "^1.0.4-beta.4",
|
|
93
|
+
"@aigne/agent-library": "^1.21.51-beta.3",
|
|
94
|
+
"@aigne/agentic-memory": "^1.0.51-beta.3",
|
|
95
|
+
"@aigne/aigne-hub": "^0.10.5-beta.3",
|
|
96
|
+
"@aigne/core": "^1.65.1-beta.3",
|
|
97
|
+
"@aigne/default-memory": "^1.2.14-beta.3",
|
|
98
|
+
"@aigne/observability-api": "^0.11.5-beta.2",
|
|
99
|
+
"@aigne/openai": "^0.16.5-beta.3"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@inquirer/testing": "^2.1.50",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"rimraf": "^6.0.1",
|
|
115
115
|
"typescript": "^5.9.2",
|
|
116
116
|
"ufo": "^1.6.1",
|
|
117
|
-
"@aigne/test-utils": "^0.5.58-beta.
|
|
117
|
+
"@aigne/test-utils": "^0.5.58-beta.3"
|
|
118
118
|
},
|
|
119
119
|
"scripts": {
|
|
120
120
|
"lint": "tsc --noEmit",
|