@aigne/cli 1.50.1-beta → 1.50.1-beta.2

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,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.50.1-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.1-beta.1...cli-v1.50.1-beta.2) (2025-10-09)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/agent-library bumped to 1.21.48-beta.1
11
+ * @aigne/agentic-memory bumped to 1.0.48-beta.1
12
+ * @aigne/aigne-hub bumped to 0.10.2-beta.1
13
+ * @aigne/core bumped to 1.63.0-beta.1
14
+ * @aigne/default-memory bumped to 1.2.11-beta.1
15
+ * @aigne/openai bumped to 0.16.2-beta.1
16
+ * devDependencies
17
+ * @aigne/test-utils bumped to 0.5.55-beta.1
18
+
19
+ ## [1.50.1-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.1-beta...cli-v1.50.1-beta.1) (2025-10-08)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **cli:** add environment variable support for AIGNE Hub credentials ([#595](https://github.com/AIGNE-io/aigne-framework/issues/595)) ([00651e4](https://github.com/AIGNE-io/aigne-framework/commit/00651e4f1047c24be297b4f73e06e144592d934d))
25
+
3
26
  ## [1.50.1-beta](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.0...cli-v1.50.1-beta) (2025-10-07)
4
27
 
5
28
 
@@ -144,7 +144,15 @@ export async function loadAIGNEHubCredential(options) {
144
144
  const { host } = new URL(url);
145
145
  let credential = {};
146
146
  try {
147
- credential = await checkConnectionStatus(host);
147
+ if (process.env.AIGNE_HUB_API_KEY) {
148
+ credential = {
149
+ apiKey: process.env.AIGNE_HUB_API_KEY,
150
+ url: process.env.AIGNE_HUB_API_URL || url,
151
+ };
152
+ }
153
+ else {
154
+ credential = await checkConnectionStatus(host);
155
+ }
148
156
  }
149
157
  catch (error) {
150
158
  if (error instanceof Error && error.message.includes("login first")) {
@@ -33,7 +33,7 @@ export const formatModelName = async (model, inquirerPrompt) => {
33
33
  return { provider, model: name };
34
34
  }
35
35
  const envs = parse(await readFile(AIGNE_ENV_FILE, "utf8").catch(() => stringify({})));
36
- if (envs?.default?.AIGNE_HUB_API_URL) {
36
+ if (process.env.AIGNE_HUB_API_KEY || envs?.default?.AIGNE_HUB_API_URL) {
37
37
  return { provider: AIGNE_HUB_PROVIDER, model: `${provider}/${name}` };
38
38
  }
39
39
  const result = await inquirerPrompt({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.50.1-beta",
3
+ "version": "1.50.1-beta.2",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -89,13 +89,13 @@
89
89
  "yoctocolors-cjs": "^2.1.3",
90
90
  "zod": "^3.25.67",
91
91
  "zod-to-json-schema": "^3.24.6",
92
- "@aigne/agent-library": "^1.21.48-beta",
93
- "@aigne/agentic-memory": "^1.0.48-beta",
94
- "@aigne/core": "^1.63.0-beta",
95
- "@aigne/aigne-hub": "^0.10.2-beta",
96
- "@aigne/default-memory": "^1.2.11-beta",
92
+ "@aigne/agentic-memory": "^1.0.48-beta.1",
93
+ "@aigne/agent-library": "^1.21.48-beta.1",
94
+ "@aigne/aigne-hub": "^0.10.2-beta.1",
95
+ "@aigne/default-memory": "^1.2.11-beta.1",
96
+ "@aigne/core": "^1.63.0-beta.1",
97
97
  "@aigne/observability-api": "^0.11.2-beta",
98
- "@aigne/openai": "^0.16.2-beta"
98
+ "@aigne/openai": "^0.16.2-beta.1"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@inquirer/testing": "^2.1.50",
@@ -112,7 +112,7 @@
112
112
  "rimraf": "^6.0.1",
113
113
  "typescript": "^5.9.2",
114
114
  "ufo": "^1.6.1",
115
- "@aigne/test-utils": "^0.5.55-beta"
115
+ "@aigne/test-utils": "^0.5.55-beta.1"
116
116
  },
117
117
  "scripts": {
118
118
  "lint": "tsc --noEmit",