@aigne/cli 1.38.0 → 1.38.1
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 +7 -0
- package/dist/commands/app.js +13 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.38.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.38.0...cli-v1.38.1) (2025-08-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **cli:** force upgrade app while load app error ([#390](https://github.com/AIGNE-io/aigne-framework/issues/390)) ([fa5e427](https://github.com/AIGNE-io/aigne-framework/commit/fa5e427eb29157c3ebcd9c9bf8c5c6b31efad4ae))
|
|
9
|
+
|
|
3
10
|
## [1.38.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.37.1...cli-v1.38.0) (2025-08-20)
|
|
4
11
|
|
|
5
12
|
|
package/dist/commands/app.js
CHANGED
|
@@ -109,14 +109,20 @@ export async function invokeCLIAgentFromDir(options) {
|
|
|
109
109
|
export async function loadApplication({ name, dir, forceUpgrade = false, }) {
|
|
110
110
|
name = `@aigne/${name}`;
|
|
111
111
|
dir ??= join(homedir(), ".aigne", "registry.npmjs.org", name);
|
|
112
|
-
|
|
112
|
+
let check = forceUpgrade ? undefined : await isInstallationAvailable(dir);
|
|
113
113
|
if (check?.available) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
const aigne = await AIGNE.load(dir).catch((error) => {
|
|
115
|
+
console.warn(`Failed to load ${name}, trying to reinstall:`, error.message);
|
|
116
|
+
});
|
|
117
|
+
if (aigne) {
|
|
118
|
+
return {
|
|
119
|
+
aigne,
|
|
120
|
+
dir,
|
|
121
|
+
version: check.version,
|
|
122
|
+
isCache: true,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
check = undefined;
|
|
120
126
|
}
|
|
121
127
|
const result = await new Listr([
|
|
122
128
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.1",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"yargs": "^18.0.0",
|
|
77
77
|
"zod": "^3.25.67",
|
|
78
78
|
"@aigne/agent-library": "^1.21.24",
|
|
79
|
-
"@aigne/agentic-memory": "^1.0.24",
|
|
80
79
|
"@aigne/aigne-hub": "^0.6.6",
|
|
81
80
|
"@aigne/core": "^1.53.0",
|
|
82
|
-
"@aigne/
|
|
81
|
+
"@aigne/agentic-memory": "^1.0.24",
|
|
83
82
|
"@aigne/default-memory": "^1.1.6",
|
|
83
|
+
"@aigne/observability-api": "^0.9.1",
|
|
84
84
|
"@aigne/openai": "^0.12.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|