@aigne/cli 1.51.0-beta.5 → 1.51.0-beta.7
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 +41 -0
- package/dist/cli.js +4 -2
- package/dist/ui/utils/terminal-input.js +2 -2
- package/dist/utils/aigne-hub/model.js +9 -2
- package/dist/utils/workers/run-aigne-in-child-process-worker.js +1 -1
- package/dist/utils/workers/run-aigne-in-child-process.js +9 -4
- package/package.json +10 -10
- package/dist/ui/utils/error.d.ts +0 -2
- package/dist/ui/utils/error.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.51.0-beta.7](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.51.0-beta.6...cli-v1.51.0-beta.7) (2025-10-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/afs-system-fs bumped to 1.0.1-beta.2
|
|
11
|
+
* @aigne/agent-library bumped to 1.21.48-beta.6
|
|
12
|
+
* @aigne/agentic-memory bumped to 1.0.48-beta.6
|
|
13
|
+
* @aigne/aigne-hub bumped to 0.10.2-beta.6
|
|
14
|
+
* @aigne/core bumped to 1.63.0-beta.6
|
|
15
|
+
* @aigne/default-memory bumped to 1.2.11-beta.6
|
|
16
|
+
* @aigne/observability-api bumped to 0.11.2-beta.2
|
|
17
|
+
* @aigne/openai bumped to 0.16.2-beta.6
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @aigne/test-utils bumped to 0.5.55-beta.6
|
|
20
|
+
|
|
21
|
+
## [1.51.0-beta.6](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.51.0-beta.5...cli-v1.51.0-beta.6) (2025-10-13)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* add copy and download in observability detail and optimize the detail rendering ([#610](https://github.com/AIGNE-io/aigne-framework/issues/610)) ([b1885f2](https://github.com/AIGNE-io/aigne-framework/commit/b1885f2b969d7ca28a0cb1ac2b4707e7c785308b))
|
|
27
|
+
* **cli:** suppress error message for CTRL+C ([#617](https://github.com/AIGNE-io/aigne-framework/issues/617)) ([01f0ea7](https://github.com/AIGNE-io/aigne-framework/commit/01f0ea74affa5653dd94048e68b62b7d7e649d4a))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* The following workspace dependencies were updated
|
|
33
|
+
* dependencies
|
|
34
|
+
* @aigne/afs-system-fs bumped to 1.0.1-beta.1
|
|
35
|
+
* @aigne/agent-library bumped to 1.21.48-beta.5
|
|
36
|
+
* @aigne/agentic-memory bumped to 1.0.48-beta.5
|
|
37
|
+
* @aigne/aigne-hub bumped to 0.10.2-beta.5
|
|
38
|
+
* @aigne/core bumped to 1.63.0-beta.5
|
|
39
|
+
* @aigne/default-memory bumped to 1.2.11-beta.5
|
|
40
|
+
* @aigne/openai bumped to 0.16.2-beta.5
|
|
41
|
+
* devDependencies
|
|
42
|
+
* @aigne/test-utils bumped to 0.5.55-beta.5
|
|
43
|
+
|
|
3
44
|
## [1.51.0-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.51.0-beta.4...cli-v1.51.0-beta.5) (2025-10-12)
|
|
4
45
|
|
|
5
46
|
|
package/dist/cli.js
CHANGED
|
@@ -28,7 +28,9 @@ export default createAIGNECommand({ argv, aigneFilePath })
|
|
|
28
28
|
})
|
|
29
29
|
.parseAsync(argv)
|
|
30
30
|
.catch((error) => {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
if (error.name !== "ExitPromptError") {
|
|
32
|
+
console.log(""); // Add an empty line for better readability
|
|
33
|
+
console.error(`${chalk.red("Error:")} ${highlightUrl(error.message)}`);
|
|
34
|
+
}
|
|
33
35
|
process.exit(1);
|
|
34
36
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ExitPromptError } from "@inquirer/core";
|
|
2
3
|
import chalk from "chalk";
|
|
3
4
|
import { Box, render, Text, useInput } from "ink";
|
|
4
5
|
import { useState } from "react";
|
|
5
|
-
import { SIGINTError } from "./error.js";
|
|
6
6
|
import { useTextBuffer } from "./text-buffer.js";
|
|
7
7
|
export async function terminalInput(options = {}) {
|
|
8
8
|
return new Promise((resolve, reject) => {
|
|
@@ -30,7 +30,7 @@ function Input(props) {
|
|
|
30
30
|
if (character === "c" && key.ctrl) {
|
|
31
31
|
setStatus("error");
|
|
32
32
|
setTimeout(() => {
|
|
33
|
-
props.onError(new
|
|
33
|
+
props.onError(new ExitPromptError("Input aborted by user"));
|
|
34
34
|
});
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readFile } from "node:fs/promises";
|
|
2
|
-
import { AIGNE_HUB_DEFAULT_MODEL, findImageModel, findModel } from "@aigne/aigne-hub";
|
|
1
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
2
|
+
import { AIGNE_HUB_DEFAULT_MODEL, AIGNE_HUB_URL, findImageModel, findModel, } from "@aigne/aigne-hub";
|
|
3
3
|
import { flat, omit } from "@aigne/core/utils/type-utils.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
import inquirer from "inquirer";
|
|
@@ -56,6 +56,13 @@ export const formatModelName = async (model, inquirerPrompt) => {
|
|
|
56
56
|
console.log(chalk.yellow(`You can use command "export ${requireEnvs[0]}=xxx" to set API Key in your shell. Or you can set environment variables in .env file.`));
|
|
57
57
|
process.exit(0);
|
|
58
58
|
}
|
|
59
|
+
if (!envs.default?.AIGNE_HUB_API_URL) {
|
|
60
|
+
const host = new URL(AIGNE_HUB_URL).host;
|
|
61
|
+
const defaultEnv = envs[host]?.AIGNE_HUB_API_URL
|
|
62
|
+
? envs[host]
|
|
63
|
+
: Object.values(envs)[0] || { AIGNE_HUB_API_URL: "" };
|
|
64
|
+
await writeFile(AIGNE_ENV_FILE, stringify({ ...envs, default: { AIGNE_HUB_API_URL: defaultEnv?.AIGNE_HUB_API_URL } }));
|
|
65
|
+
}
|
|
59
66
|
return { provider: AIGNE_HUB_PROVIDER, model: `${provider}/${name}` };
|
|
60
67
|
};
|
|
61
68
|
export async function loadChatModel(options) {
|
|
@@ -29,7 +29,7 @@ process.on("message", async ({ method, args, ...options }) => {
|
|
|
29
29
|
await send({ method, result });
|
|
30
30
|
}
|
|
31
31
|
catch (error) {
|
|
32
|
-
await send({ method, error: { message: error.message } });
|
|
32
|
+
await send({ method, error: { name: error.name, message: error.message } });
|
|
33
33
|
}
|
|
34
34
|
finally {
|
|
35
35
|
process.exit(0);
|
|
@@ -17,12 +17,17 @@ export async function runAIGNEInChildProcess(method, ...args) {
|
|
|
17
17
|
let completed = false;
|
|
18
18
|
const child = fork(join(dirname(fileURLToPath(import.meta.url)), "./run-aigne-in-child-process-worker.js"));
|
|
19
19
|
child.on("message", (event) => {
|
|
20
|
-
if (event.method !== method)
|
|
20
|
+
if (event.method !== method) {
|
|
21
21
|
reject(new Error(`Unknown method: ${event.method} expected: ${method}`));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
}
|
|
23
|
+
else if (event.error) {
|
|
24
|
+
const e = new Error(event.error.message);
|
|
25
|
+
e.name = event.error.name;
|
|
26
|
+
reject(e);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
25
29
|
resolve(event.result);
|
|
30
|
+
}
|
|
26
31
|
completed = true;
|
|
27
32
|
});
|
|
28
33
|
child.on("exit", (code) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.51.0-beta.
|
|
3
|
+
"version": "1.51.0-beta.7",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
"yoctocolors-cjs": "^2.1.3",
|
|
90
90
|
"zod": "^3.25.67",
|
|
91
91
|
"zod-to-json-schema": "^3.24.6",
|
|
92
|
-
"@aigne/afs-system-fs": "^1.0.1-beta",
|
|
93
|
-
"@aigne/agent-library": "^1.21.48-beta.
|
|
94
|
-
"@aigne/
|
|
95
|
-
"@aigne/
|
|
96
|
-
"@aigne/
|
|
97
|
-
"@aigne/
|
|
98
|
-
"@aigne/
|
|
99
|
-
"@aigne/
|
|
92
|
+
"@aigne/afs-system-fs": "^1.0.1-beta.2",
|
|
93
|
+
"@aigne/agent-library": "^1.21.48-beta.6",
|
|
94
|
+
"@aigne/aigne-hub": "^0.10.2-beta.6",
|
|
95
|
+
"@aigne/agentic-memory": "^1.0.48-beta.6",
|
|
96
|
+
"@aigne/core": "^1.63.0-beta.6",
|
|
97
|
+
"@aigne/observability-api": "^0.11.2-beta.2",
|
|
98
|
+
"@aigne/openai": "^0.16.2-beta.6",
|
|
99
|
+
"@aigne/default-memory": "^1.2.11-beta.6"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@inquirer/testing": "^2.1.50",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"rimraf": "^6.0.1",
|
|
114
114
|
"typescript": "^5.9.2",
|
|
115
115
|
"ufo": "^1.6.1",
|
|
116
|
-
"@aigne/test-utils": "^0.5.55-beta.
|
|
116
|
+
"@aigne/test-utils": "^0.5.55-beta.6"
|
|
117
117
|
},
|
|
118
118
|
"scripts": {
|
|
119
119
|
"lint": "tsc --noEmit",
|
package/dist/ui/utils/error.d.ts
DELETED
package/dist/ui/utils/error.js
DELETED