@aigne/cli 1.50.1-beta → 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,12 @@
|
|
|
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
|
+
|
|
3
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)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -144,7 +144,15 @@ export async function loadAIGNEHubCredential(options) {
|
|
|
144
144
|
const { host } = new URL(url);
|
|
145
145
|
let credential = {};
|
|
146
146
|
try {
|
|
147
|
-
|
|
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.1",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"zod": "^3.25.67",
|
|
91
91
|
"zod-to-json-schema": "^3.24.6",
|
|
92
92
|
"@aigne/agent-library": "^1.21.48-beta",
|
|
93
|
+
"@aigne/aigne-hub": "^0.10.2-beta",
|
|
93
94
|
"@aigne/agentic-memory": "^1.0.48-beta",
|
|
94
95
|
"@aigne/core": "^1.63.0-beta",
|
|
95
|
-
"@aigne/aigne-hub": "^0.10.2-beta",
|
|
96
96
|
"@aigne/default-memory": "^1.2.11-beta",
|
|
97
97
|
"@aigne/observability-api": "^0.11.2-beta",
|
|
98
98
|
"@aigne/openai": "^0.16.2-beta"
|