@aigne/cli 1.50.0-beta.7 → 1.50.0
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 +43 -0
- package/dist/ui/utils/terminal-input.js +1 -1
- package/dist/utils/aigne-hub/model.js +5 -19
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [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
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/agent-library bumped to 1.21.47
|
|
11
|
+
* @aigne/agentic-memory bumped to 1.0.47
|
|
12
|
+
* @aigne/aigne-hub bumped to 0.10.1
|
|
13
|
+
* @aigne/core bumped to 1.62.0
|
|
14
|
+
* @aigne/default-memory bumped to 1.2.10
|
|
15
|
+
* @aigne/observability-api bumped to 0.11.1
|
|
16
|
+
* @aigne/openai bumped to 0.16.1
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @aigne/test-utils bumped to 0.5.54
|
|
19
|
+
|
|
20
|
+
## [1.50.0-beta.8](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.0-beta.7...cli-v1.50.0-beta.8) (2025-10-03)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* support custom extra model options in agent yaml file ([#586](https://github.com/AIGNE-io/aigne-framework/issues/586)) ([6d82115](https://github.com/AIGNE-io/aigne-framework/commit/6d82115e0763385c7e44ea152867c0d4a9e0a301))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **cli:** prevent terminal input text overflow and corruption ([#588](https://github.com/AIGNE-io/aigne-framework/issues/588)) ([990c952](https://github.com/AIGNE-io/aigne-framework/commit/990c9526f0d2d6eec4d9fcd5ae61612a6ce23b9e))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @aigne/agent-library bumped to 1.21.47-beta.7
|
|
38
|
+
* @aigne/agentic-memory bumped to 1.0.47-beta.7
|
|
39
|
+
* @aigne/aigne-hub bumped to 0.10.1-beta.7
|
|
40
|
+
* @aigne/core bumped to 1.62.0-beta.6
|
|
41
|
+
* @aigne/default-memory bumped to 1.2.10-beta.7
|
|
42
|
+
* @aigne/openai bumped to 0.16.1-beta.7
|
|
43
|
+
* devDependencies
|
|
44
|
+
* @aigne/test-utils bumped to 0.5.54-beta.7
|
|
45
|
+
|
|
3
46
|
## [1.50.0-beta.7](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.0-beta.6...cli-v1.50.0-beta.7) (2025-10-02)
|
|
4
47
|
|
|
5
48
|
|
|
@@ -72,7 +72,7 @@ function Input(props) {
|
|
|
72
72
|
}
|
|
73
73
|
const label = props.message && chalk.bold(props.message);
|
|
74
74
|
const inline = props.inline !== false;
|
|
75
|
-
return (_jsxs(Box, { flexDirection: inline ? "row" : "column", children: [_jsxs(Text, { children: [PREFIX[status], " ", !inline && label] }), _jsx(Box, { flexShrink: 1, flexGrow: 1, marginLeft: inline ? 0 : 2, children: _jsxs(Text, { children: [!!label && inline && `${label} `, lines.join("\n")] }) })] }));
|
|
75
|
+
return (_jsxs(Box, { flexDirection: inline ? "row" : "column", children: [_jsxs(Text, { children: [PREFIX[status], " ", !inline && label] }), _jsx(Box, { flexShrink: 1, flexGrow: 1, marginLeft: inline ? 0 : 2, marginRight: 1, children: _jsxs(Text, { children: [!!label && inline && `${label} `, lines.join("\n")] }) })] }));
|
|
76
76
|
}
|
|
77
77
|
const PREFIX = {
|
|
78
78
|
input: chalk.blue("?"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { AIGNE_HUB_DEFAULT_MODEL, findImageModel, findModel } from "@aigne/aigne-hub";
|
|
3
|
-
import { flat,
|
|
3
|
+
import { flat, omit } from "@aigne/core/utils/type-utils.js";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
import inquirer from "inquirer";
|
|
6
6
|
import { parse, stringify } from "yaml";
|
|
@@ -61,16 +61,6 @@ export const formatModelName = async (model, inquirerPrompt) => {
|
|
|
61
61
|
export async function loadChatModel(options) {
|
|
62
62
|
const { provider, model } = await formatModelName(options?.model || process.env.MODEL || "", options?.inquirerPromptFn ??
|
|
63
63
|
inquirer.prompt);
|
|
64
|
-
const params = {
|
|
65
|
-
model,
|
|
66
|
-
...pick(options ?? {}, [
|
|
67
|
-
"modalities",
|
|
68
|
-
"temperature",
|
|
69
|
-
"topP",
|
|
70
|
-
"frequencyPenalty",
|
|
71
|
-
"presencePenalty",
|
|
72
|
-
]),
|
|
73
|
-
};
|
|
74
64
|
const { match, all } = findModel(provider);
|
|
75
65
|
if (!match) {
|
|
76
66
|
throw new Error(`Unsupported model provider ${provider}, available providers: ${all.map((m) => m.name).join(", ")}`);
|
|
@@ -80,17 +70,13 @@ export async function loadChatModel(options) {
|
|
|
80
70
|
: undefined;
|
|
81
71
|
return match.create({
|
|
82
72
|
...credential,
|
|
83
|
-
model
|
|
84
|
-
modelOptions:
|
|
73
|
+
model,
|
|
74
|
+
modelOptions: options && omit(options, "model", "aigneHubUrl", "inquirerPromptFn"),
|
|
85
75
|
});
|
|
86
76
|
}
|
|
87
77
|
export async function loadImageModel(options) {
|
|
88
78
|
const { provider, model } = await formatModelName(options?.model || process.env.IMAGE_MODEL || "", options?.inquirerPromptFn ??
|
|
89
79
|
inquirer.prompt);
|
|
90
|
-
const params = {
|
|
91
|
-
model,
|
|
92
|
-
...pick(options ?? {}, ["preferInputFileType"]),
|
|
93
|
-
};
|
|
94
80
|
const { match, all } = findImageModel(provider);
|
|
95
81
|
if (!match) {
|
|
96
82
|
throw new Error(`Unsupported image model provider ${provider}, available providers: ${all.map((m) => m.name).join(", ")}`);
|
|
@@ -100,7 +86,7 @@ export async function loadImageModel(options) {
|
|
|
100
86
|
: undefined;
|
|
101
87
|
return match.create({
|
|
102
88
|
...credential,
|
|
103
|
-
model
|
|
104
|
-
modelOptions:
|
|
89
|
+
model,
|
|
90
|
+
modelOptions: options && omit(options, "model", "aigneHubUrl", "inquirerPromptFn"),
|
|
105
91
|
});
|
|
106
92
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.50.0
|
|
3
|
+
"version": "1.50.0",
|
|
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/
|
|
93
|
-
"@aigne/aigne-hub": "^0.10.1
|
|
94
|
-
"@aigne/default-memory": "^1.2.10
|
|
95
|
-
"@aigne/
|
|
96
|
-
"@aigne/
|
|
97
|
-
"@aigne/
|
|
98
|
-
"@aigne/
|
|
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"
|
|
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.54"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"lint": "tsc --noEmit",
|