@aigne/cli 1.57.0-beta.2 → 1.57.0-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 +16 -0
- package/dist/commands/hub.js +19 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.57.0-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.57.0-beta.3...cli-v1.57.0-beta.4) (2025-11-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **cli:** improve hub deletion with auto default switching ([#782](https://github.com/AIGNE-io/aigne-framework/issues/782)) ([f30b8c2](https://github.com/AIGNE-io/aigne-framework/commit/f30b8c2d0a8167c3678d500944c77ed257427564))
|
|
9
|
+
|
|
10
|
+
## [1.57.0-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.57.0-beta.2...cli-v1.57.0-beta.3) (2025-11-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* The following workspace dependencies were updated
|
|
16
|
+
* dependencies
|
|
17
|
+
* @aigne/secrets bumped to 0.1.1-beta.3
|
|
18
|
+
|
|
3
19
|
## [1.57.0-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.57.0-beta.1...cli-v1.57.0-beta.2) (2025-11-27)
|
|
4
20
|
|
|
5
21
|
|
package/dist/commands/hub.js
CHANGED
|
@@ -267,10 +267,26 @@ async function deleteHub(url) {
|
|
|
267
267
|
try {
|
|
268
268
|
const secretStore = await getSecretStore();
|
|
269
269
|
const key = await secretStore.getKey(url);
|
|
270
|
-
if (key) {
|
|
271
|
-
|
|
270
|
+
if (!key) {
|
|
271
|
+
console.error(chalk.red("✗ Hub not found"));
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const defaultHub = await getDefaultHub();
|
|
275
|
+
await secretStore.deleteKey(url);
|
|
276
|
+
if (!defaultHub) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
const isDefaultHub = getUrlOrigin(url) === getUrlOrigin(defaultHub);
|
|
280
|
+
if (isDefaultHub) {
|
|
281
|
+
await secretStore.deleteDefault();
|
|
282
|
+
const remainingHubs = await getHubs();
|
|
283
|
+
if (remainingHubs.length > 0) {
|
|
284
|
+
const nextHub = remainingHubs[0];
|
|
285
|
+
await secretStore.setDefault(nextHub?.apiUrl);
|
|
286
|
+
console.log(chalk.green(`✓ Hub ${getUrlOrigin(url)} removed, switched to ${getUrlOrigin(nextHub?.apiUrl)}`));
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
272
289
|
}
|
|
273
|
-
await secretStore.deleteDefault();
|
|
274
290
|
console.log(chalk.green(`✓ Hub ${getUrlOrigin(url)} removed`));
|
|
275
291
|
}
|
|
276
292
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.57.0-beta.
|
|
3
|
+
"version": "1.57.0-beta.4",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
"zod": "^3.25.67",
|
|
91
91
|
"zod-to-json-schema": "^3.24.6",
|
|
92
92
|
"@aigne/afs": "^1.2.1",
|
|
93
|
-
"@aigne/afs-history": "^1.1.0",
|
|
94
93
|
"@aigne/afs-local-fs": "^1.2.1-beta",
|
|
95
|
-
"@aigne/agent-library": "^1.22.1-beta",
|
|
96
94
|
"@aigne/agentic-memory": "^1.1.1-beta",
|
|
97
|
-
"@aigne/
|
|
95
|
+
"@aigne/agent-library": "^1.22.1-beta",
|
|
96
|
+
"@aigne/afs-history": "^1.1.0",
|
|
97
|
+
"@aigne/secrets": "^0.1.1-beta.3",
|
|
98
98
|
"@aigne/aigne-hub": "^0.10.11-beta.1",
|
|
99
99
|
"@aigne/core": "^1.69.1-beta",
|
|
100
100
|
"@aigne/default-memory": "^1.3.1-beta",
|
|
101
|
-
"@aigne/
|
|
102
|
-
"@aigne/
|
|
101
|
+
"@aigne/observability-api": "^0.11.10-beta",
|
|
102
|
+
"@aigne/openai": "^0.16.11-beta"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@inquirer/testing": "^2.1.50",
|