@aigne/cli 1.8.1 → 1.9.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 +28 -0
- package/README.md +10 -11
- package/README.zh.md +10 -11
- package/dist/commands/run.js +1 -1
- package/dist/commands/serve.js +1 -1
- package/dist/tracer/terminal.js +2 -2
- package/package.json +11 -11
- /package/{LICENSE → LICENSE.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.9.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.9.0...cli-v1.9.1) (2025-05-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **core:** response.headers.toJSON is not a function ([#121](https://github.com/AIGNE-io/aigne-framework/issues/121)) ([4609ba6](https://github.com/AIGNE-io/aigne-framework/commit/4609ba645e6b8fe8d76ecd475cd2d7817483a4bd))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/core bumped to 1.15.0
|
|
16
|
+
|
|
17
|
+
## [1.9.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.8.1...cli-v1.9.0) (2025-05-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **docs:** use typedoc build and publish docs to gh-pages ([#100](https://github.com/AIGNE-io/aigne-framework/issues/100)) ([b9074c0](https://github.com/AIGNE-io/aigne-framework/commit/b9074c0148ea343ada92b5919a52b47537a1ad48))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @aigne/core bumped to 1.14.0
|
|
30
|
+
|
|
3
31
|
## [1.8.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.8.0...cli-v1.8.1) (2025-04-30)
|
|
4
32
|
|
|
5
33
|
|
package/README.md
CHANGED
|
@@ -25,14 +25,21 @@ Command-line tool for [AIGNE Framework](https://github.com/AIGNE-io/aigne-framew
|
|
|
25
25
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
|
+
### Using npm
|
|
29
|
+
|
|
28
30
|
```bash
|
|
29
|
-
# Using npm
|
|
30
31
|
npm install -g @aigne/cli
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Using yarn
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
```bash
|
|
33
37
|
yarn global add @aigne/cli
|
|
38
|
+
```
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
### Using pnpm
|
|
41
|
+
|
|
42
|
+
```bash
|
|
36
43
|
pnpm add -g @aigne/cli
|
|
37
44
|
```
|
|
38
45
|
|
|
@@ -122,14 +129,6 @@ aigne serve --mcp --port 3001
|
|
|
122
129
|
aigne serve path/to/agents --mcp
|
|
123
130
|
```
|
|
124
131
|
|
|
125
|
-
## Documentation
|
|
126
|
-
|
|
127
|
-
For more detailed CLI usage guides, please refer to:
|
|
128
|
-
|
|
129
|
-
- [CLI Guide](../../docs/cli.md)
|
|
130
|
-
- [Agent Development Guide](../../docs/agent-development.md)
|
|
131
|
-
- [Cookbook](../../docs/cookbook.md)
|
|
132
|
-
|
|
133
132
|
## License
|
|
134
133
|
|
|
135
134
|
Elastic-2.0
|
package/README.zh.md
CHANGED
|
@@ -25,14 +25,21 @@
|
|
|
25
25
|
|
|
26
26
|
## 安装
|
|
27
27
|
|
|
28
|
+
### 使用 npm
|
|
29
|
+
|
|
28
30
|
```bash
|
|
29
|
-
# 使用 npm
|
|
30
31
|
npm install -g @aigne/cli
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 使用 yarn
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
```bash
|
|
33
37
|
yarn global add @aigne/cli
|
|
38
|
+
```
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
### 使用 pnpm
|
|
41
|
+
|
|
42
|
+
```bash
|
|
36
43
|
pnpm add -g @aigne/cli
|
|
37
44
|
```
|
|
38
45
|
|
|
@@ -122,14 +129,6 @@ aigne serve --mcp --port 3001
|
|
|
122
129
|
aigne serve path/to/agents --mcp
|
|
123
130
|
```
|
|
124
131
|
|
|
125
|
-
## 文档
|
|
126
|
-
|
|
127
|
-
更多详细的 CLI 使用指南,请参考:
|
|
128
|
-
|
|
129
|
-
- [CLI 指南](../../docs/cli.zh.md)
|
|
130
|
-
- [代理开发指南](../../docs/agent-development.zh.md)
|
|
131
|
-
- [Cookbook](../../docs/cookbook.zh.md)
|
|
132
|
-
|
|
133
132
|
## 协议
|
|
134
133
|
|
|
135
134
|
Elastic-2.0
|
package/dist/commands/run.js
CHANGED
|
@@ -95,7 +95,7 @@ async function loadAIGNE(path, options) {
|
|
|
95
95
|
const model = options.modelProvider
|
|
96
96
|
? await loadModel({ provider: options.modelProvider, name: options.modelName })
|
|
97
97
|
: undefined;
|
|
98
|
-
return await AIGNE.load(
|
|
98
|
+
return await AIGNE.load(path, { model });
|
|
99
99
|
}
|
|
100
100
|
async function downloadPackage(url, downloadDir) {
|
|
101
101
|
await rm(downloadDir, { recursive: true, force: true });
|
package/dist/commands/serve.js
CHANGED
|
@@ -23,7 +23,7 @@ export function createServeCommand() {
|
|
|
23
23
|
.action(async (path, options) => {
|
|
24
24
|
const absolutePath = isAbsolute(path) ? path : resolve(process.cwd(), path);
|
|
25
25
|
const port = options.port || DEFAULT_PORT();
|
|
26
|
-
const aigne = await AIGNE.load(
|
|
26
|
+
const aigne = await AIGNE.load(absolutePath);
|
|
27
27
|
if (options.mcp)
|
|
28
28
|
await serveMCPServer({
|
|
29
29
|
aigne,
|
package/dist/tracer/terminal.js
CHANGED
|
@@ -2,7 +2,7 @@ import { EOL } from "node:os";
|
|
|
2
2
|
import { format, inspect } from "node:util";
|
|
3
3
|
import { ChatModel, MESSAGE_KEY, } from "@aigne/core";
|
|
4
4
|
import { logger } from "@aigne/core/utils/logger.js";
|
|
5
|
-
import { mergeAgentResponseChunk
|
|
5
|
+
import { mergeAgentResponseChunk } from "@aigne/core/utils/stream-utils.js";
|
|
6
6
|
import { Listr, ListrDefaultRendererLogLevels, Spinner, } from "@aigne/listr2";
|
|
7
7
|
import { markedTerminal } from "@aigne/marked-terminal";
|
|
8
8
|
import chalk from "chalk";
|
|
@@ -183,7 +183,7 @@ class AIGNEListr extends Listr {
|
|
|
183
183
|
async extractStream(stream) {
|
|
184
184
|
this.isStreamRunning = true;
|
|
185
185
|
this.result = {};
|
|
186
|
-
for await (const value of
|
|
186
|
+
for await (const value of stream) {
|
|
187
187
|
mergeAgentResponseChunk(this.result, value);
|
|
188
188
|
}
|
|
189
189
|
this.isStreamRunning = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "cli for AIGNE framework",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -35,30 +35,30 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@aigne/listr2": "^1.0.
|
|
38
|
+
"@aigne/listr2": "^1.0.9",
|
|
39
39
|
"@aigne/marked-terminal": "^7.3.1",
|
|
40
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
40
|
+
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
41
41
|
"chalk": "^5.4.1",
|
|
42
42
|
"commander": "^13.1.0",
|
|
43
43
|
"express": "^5.1.0",
|
|
44
|
-
"glob": "^11.0.
|
|
44
|
+
"glob": "^11.0.2",
|
|
45
45
|
"gradient-string": "^3.0.0",
|
|
46
|
-
"inquirer": "^12.
|
|
47
|
-
"marked": "^15.0.
|
|
48
|
-
"openai": "^4.
|
|
46
|
+
"inquirer": "^12.6.0",
|
|
47
|
+
"marked": "^15.0.11",
|
|
48
|
+
"openai": "^4.97.0",
|
|
49
49
|
"prettier": "^3.5.3",
|
|
50
50
|
"pretty-error": "^4.0.0",
|
|
51
51
|
"tar": "^7.4.3",
|
|
52
|
-
"zod": "^3.24.
|
|
53
|
-
"@aigne/core": "^1.
|
|
52
|
+
"zod": "^3.24.4",
|
|
53
|
+
"@aigne/core": "^1.15.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/archiver": "^6.0.3",
|
|
57
|
-
"@types/bun": "^1.2.
|
|
57
|
+
"@types/bun": "^1.2.12",
|
|
58
58
|
"@types/express": "^5.0.1",
|
|
59
59
|
"@types/glob": "^8.1.0",
|
|
60
60
|
"@types/gradient-string": "^1.1.6",
|
|
61
|
-
"@types/node": "^22.
|
|
61
|
+
"@types/node": "^22.15.15",
|
|
62
62
|
"archiver": "^7.0.1",
|
|
63
63
|
"detect-port": "^2.1.0",
|
|
64
64
|
"npm-run-all": "^4.1.5",
|
/package/{LICENSE → LICENSE.md}
RENAMED
|
File without changes
|