@aigne/cli 1.50.0 → 1.50.1-beta.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **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))
9
+
10
+ ## [1.50.1-beta](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.0...cli-v1.50.1-beta) (2025-10-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * standardize URL parameter naming from url to baseURL ([#593](https://github.com/AIGNE-io/aigne-framework/issues/593)) ([47efd4a](https://github.com/AIGNE-io/aigne-framework/commit/47efd4aad7130356a0c0bdf905acd8bc50453d26))
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * The following workspace dependencies were updated
21
+ * dependencies
22
+ * @aigne/agent-library bumped to 1.21.48-beta
23
+ * @aigne/agentic-memory bumped to 1.0.48-beta
24
+ * @aigne/aigne-hub bumped to 0.10.2-beta
25
+ * @aigne/core bumped to 1.63.0-beta
26
+ * @aigne/default-memory bumped to 1.2.11-beta
27
+ * @aigne/observability-api bumped to 0.11.2-beta
28
+ * @aigne/openai bumped to 0.16.2-beta
29
+ * devDependencies
30
+ * @aigne/test-utils bumped to 0.5.55-beta
31
+
3
32
  ## [1.50.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.0-beta.8...cli-v1.50.0) (2025-10-04)
4
33
 
5
34
 
@@ -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({
@@ -70,6 +70,7 @@ export async function loadChatModel(options) {
70
70
  : undefined;
71
71
  return match.create({
72
72
  ...credential,
73
+ baseURL: credential?.url,
73
74
  model,
74
75
  modelOptions: options && omit(options, "model", "aigneHubUrl", "inquirerPromptFn"),
75
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.50.0",
3
+ "version": "1.50.1-beta.1",
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.47",
93
- "@aigne/aigne-hub": "^0.10.1",
94
- "@aigne/default-memory": "^1.2.10",
95
- "@aigne/core": "^1.62.0",
96
- "@aigne/agentic-memory": "^1.0.47",
97
- "@aigne/observability-api": "^0.11.1",
98
- "@aigne/openai": "^0.16.1"
92
+ "@aigne/agent-library": "^1.21.48-beta",
93
+ "@aigne/aigne-hub": "^0.10.2-beta",
94
+ "@aigne/agentic-memory": "^1.0.48-beta",
95
+ "@aigne/core": "^1.63.0-beta",
96
+ "@aigne/default-memory": "^1.2.11-beta",
97
+ "@aigne/observability-api": "^0.11.2-beta",
98
+ "@aigne/openai": "^0.16.2-beta"
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.54"
115
+ "@aigne/test-utils": "^0.5.55-beta"
116
116
  },
117
117
  "scripts": {
118
118
  "lint": "tsc --noEmit",