@aigne/cli 1.57.0-beta.3 → 1.57.0-beta.5

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.57.0-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.57.0-beta.4...cli-v1.57.0-beta.5) (2025-11-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **cli:** improve hub status display for non-default hubs ([#784](https://github.com/AIGNE-io/aigne-framework/issues/784)) ([9e83e01](https://github.com/AIGNE-io/aigne-framework/commit/9e83e01385bdf8fe6d6801c3b49007cac31a6eb5))
9
+
10
+ ## [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)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **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))
16
+
3
17
  ## [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)
4
18
 
5
19
 
@@ -26,9 +26,7 @@ function printHubStatus(data) {
26
26
  console.log(chalk.bold("AIGNE Hub Connection"));
27
27
  console.log(chalk.gray(divider));
28
28
  console.log(`${chalk.bold("Hub:".padEnd(10))} ${data.hub}`);
29
- console.log(`${chalk.bold("Status:".padEnd(10))} ${data.status === "Connected"
30
- ? chalk.green(`${data.status} ✅`)
31
- : chalk.red(`${data.status} ❌`)}`);
29
+ console.log(`${chalk.bold("Status:".padEnd(10))} ${data.status === "Connected" ? chalk.green(`${data.status} ✅`) : `${data.status}`}`);
32
30
  console.log("");
33
31
  console.log(chalk.bold("User:"));
34
32
  console.log(` ${formatHubInfoName("Name")} ${data.user.name}`);
@@ -267,10 +265,26 @@ async function deleteHub(url) {
267
265
  try {
268
266
  const secretStore = await getSecretStore();
269
267
  const key = await secretStore.getKey(url);
270
- if (key) {
271
- await secretStore.deleteKey(url);
268
+ if (!key) {
269
+ console.error(chalk.red("✗ Hub not found"));
270
+ return;
271
+ }
272
+ const defaultHub = await getDefaultHub();
273
+ await secretStore.deleteKey(url);
274
+ if (!defaultHub) {
275
+ return;
276
+ }
277
+ const isDefaultHub = getUrlOrigin(url) === getUrlOrigin(defaultHub);
278
+ if (isDefaultHub) {
279
+ await secretStore.deleteDefault();
280
+ const remainingHubs = await getHubs();
281
+ if (remainingHubs.length > 0) {
282
+ const nextHub = remainingHubs[0];
283
+ await secretStore.setDefault(nextHub?.apiUrl);
284
+ console.log(chalk.green(`✓ Hub ${getUrlOrigin(url)} removed, switched to ${getUrlOrigin(nextHub?.apiUrl)}`));
285
+ return;
286
+ }
272
287
  }
273
- await secretStore.deleteDefault();
274
288
  console.log(chalk.green(`✓ Hub ${getUrlOrigin(url)} removed`));
275
289
  }
276
290
  catch {
@@ -288,7 +302,7 @@ async function printHubDetails(url) {
288
302
  }).catch(() => null);
289
303
  printHubStatus({
290
304
  hub: getUrlOrigin(url),
291
- status: isDefault ? "Connected" : "Not connected",
305
+ status: isDefault ? "Connected" : "Not Used",
292
306
  user: {
293
307
  name: userInfo?.user.fullName || "",
294
308
  did: userInfo?.user.did || "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.57.0-beta.3",
3
+ "version": "1.57.0-beta.5",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -90,13 +90,13 @@
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",
94
+ "@aigne/afs-history": "^1.1.0",
96
95
  "@aigne/agentic-memory": "^1.1.1-beta",
97
- "@aigne/secrets": "^0.1.1-beta.3",
98
- "@aigne/core": "^1.69.1-beta",
96
+ "@aigne/agent-library": "^1.22.1-beta",
99
97
  "@aigne/aigne-hub": "^0.10.11-beta.1",
98
+ "@aigne/core": "^1.69.1-beta",
99
+ "@aigne/secrets": "^0.1.1-beta.3",
100
100
  "@aigne/default-memory": "^1.3.1-beta",
101
101
  "@aigne/observability-api": "^0.11.10-beta",
102
102
  "@aigne/openai": "^0.16.11-beta"