@aigne/cli 1.23.0 → 1.24.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 +68 -0
- package/dist/tracer/terminal.d.ts +2 -2
- package/dist/tracer/terminal.js +2 -2
- package/dist/utils/run-with-aigne.js +1 -3
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.24.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.24.0...cli-v1.24.1) (2025-07-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/agent-library bumped to 1.21.3
|
|
11
|
+
* @aigne/agentic-memory bumped to 1.0.3
|
|
12
|
+
* @aigne/aigne-hub bumped to 0.1.3
|
|
13
|
+
* @aigne/anthropic bumped to 0.9.3
|
|
14
|
+
* @aigne/bedrock bumped to 0.8.3
|
|
15
|
+
* @aigne/core bumped to 1.37.0
|
|
16
|
+
* @aigne/deepseek bumped to 0.7.3
|
|
17
|
+
* @aigne/default-memory bumped to 1.0.3
|
|
18
|
+
* @aigne/gemini bumped to 0.8.3
|
|
19
|
+
* @aigne/ollama bumped to 0.7.3
|
|
20
|
+
* @aigne/open-router bumped to 0.7.3
|
|
21
|
+
* @aigne/openai bumped to 0.10.3
|
|
22
|
+
* @aigne/xai bumped to 0.7.3
|
|
23
|
+
|
|
24
|
+
## [1.24.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.23.1...cli-v1.24.0) (2025-07-17)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **core:** support define hooks for agent in yaml ([#260](https://github.com/AIGNE-io/aigne-framework/issues/260)) ([c388e82](https://github.com/AIGNE-io/aigne-framework/commit/c388e8216134271af4d9c7def70862ea3c354c7f))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Dependencies
|
|
33
|
+
|
|
34
|
+
* The following workspace dependencies were updated
|
|
35
|
+
* dependencies
|
|
36
|
+
* @aigne/agent-library bumped to 1.21.2
|
|
37
|
+
* @aigne/agentic-memory bumped to 1.0.2
|
|
38
|
+
* @aigne/anthropic bumped to 0.9.2
|
|
39
|
+
* @aigne/bedrock bumped to 0.8.2
|
|
40
|
+
* @aigne/core bumped to 1.36.0
|
|
41
|
+
* @aigne/deepseek bumped to 0.7.2
|
|
42
|
+
* @aigne/default-memory bumped to 1.0.2
|
|
43
|
+
* @aigne/gemini bumped to 0.8.2
|
|
44
|
+
* @aigne/ollama bumped to 0.7.2
|
|
45
|
+
* @aigne/open-router bumped to 0.7.2
|
|
46
|
+
* @aigne/openai bumped to 0.10.2
|
|
47
|
+
* @aigne/xai bumped to 0.7.2
|
|
48
|
+
* @aigne/aigne-hub bumped to 0.1.2
|
|
49
|
+
|
|
50
|
+
## [1.23.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.23.0...cli-v1.23.1) (2025-07-17)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Dependencies
|
|
54
|
+
|
|
55
|
+
* The following workspace dependencies were updated
|
|
56
|
+
* dependencies
|
|
57
|
+
* @aigne/agent-library bumped to 1.21.1
|
|
58
|
+
* @aigne/agentic-memory bumped to 1.0.1
|
|
59
|
+
* @aigne/anthropic bumped to 0.9.1
|
|
60
|
+
* @aigne/bedrock bumped to 0.8.1
|
|
61
|
+
* @aigne/core bumped to 1.35.0
|
|
62
|
+
* @aigne/deepseek bumped to 0.7.1
|
|
63
|
+
* @aigne/default-memory bumped to 1.0.1
|
|
64
|
+
* @aigne/gemini bumped to 0.8.1
|
|
65
|
+
* @aigne/ollama bumped to 0.7.1
|
|
66
|
+
* @aigne/open-router bumped to 0.7.1
|
|
67
|
+
* @aigne/openai bumped to 0.10.1
|
|
68
|
+
* @aigne/xai bumped to 0.7.1
|
|
69
|
+
* @aigne/aigne-hub bumped to 0.1.1
|
|
70
|
+
|
|
3
71
|
## [1.23.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.22.8...cli-v1.23.0) (2025-07-15)
|
|
4
72
|
|
|
5
73
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InspectOptions } from "node:util";
|
|
2
|
-
import { type Agent, type Context, type ContextUsage, type Message } from "@aigne/core";
|
|
2
|
+
import { type Agent, type Context, type ContextUsage, type InvokeOptions, type Message } from "@aigne/core";
|
|
3
3
|
import { promiseWithResolvers } from "@aigne/core/utils/promise.js";
|
|
4
4
|
import { type Listr } from "@aigne/listr2";
|
|
5
5
|
import { type AIGNEListrTaskWrapper } from "../utils/listr.js";
|
|
@@ -12,7 +12,7 @@ export declare class TerminalTracer {
|
|
|
12
12
|
readonly options: TerminalTracerOptions;
|
|
13
13
|
constructor(context: Context, options?: TerminalTracerOptions);
|
|
14
14
|
private tasks;
|
|
15
|
-
run(agent: Agent, input: Message): Promise<{
|
|
15
|
+
run(agent: Agent, input: Message, options?: InvokeOptions): Promise<{
|
|
16
16
|
result: Message;
|
|
17
17
|
context: Context<import("@aigne/core").UserContext>;
|
|
18
18
|
}>;
|
package/dist/tracer/terminal.js
CHANGED
|
@@ -18,7 +18,7 @@ export class TerminalTracer {
|
|
|
18
18
|
this.options = options;
|
|
19
19
|
}
|
|
20
20
|
tasks = {};
|
|
21
|
-
async run(agent, input) {
|
|
21
|
+
async run(agent, input, options) {
|
|
22
22
|
await this.context.observer?.serve();
|
|
23
23
|
const context = this.context.newContext({ reset: true });
|
|
24
24
|
const listr = new AIGNEListr({
|
|
@@ -89,7 +89,7 @@ export class TerminalTracer {
|
|
|
89
89
|
context.on("agentSucceed", onAgentSucceed);
|
|
90
90
|
context.on("agentFailed", onAgentFailed);
|
|
91
91
|
try {
|
|
92
|
-
const result = await listr.run(() => context.invoke(agent, input, { streaming: true, newContext: false }));
|
|
92
|
+
const result = await listr.run(() => context.invoke(agent, input, { ...options, streaming: true, newContext: false }));
|
|
93
93
|
return { result, context };
|
|
94
94
|
}
|
|
95
95
|
finally {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import assert from "node:assert";
|
|
2
1
|
import { fstat } from "node:fs";
|
|
3
2
|
import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
|
|
4
3
|
import { dirname, isAbsolute, join } from "node:path";
|
|
@@ -177,8 +176,7 @@ export async function runAgentWithAIGNE(aigne, agent, { outputKey, chatLoopOptio
|
|
|
177
176
|
printRequest: logger.enabled(LogLevel.INFO),
|
|
178
177
|
outputKey,
|
|
179
178
|
});
|
|
180
|
-
|
|
181
|
-
const { result } = await tracer.run(agent, options.input);
|
|
179
|
+
const { result } = await tracer.run(agent, options.input ?? {});
|
|
182
180
|
if (options.output) {
|
|
183
181
|
const message = result[outputKey || DEFAULT_OUTPUT_KEY];
|
|
184
182
|
const content = typeof message === "string" ? message : JSON.stringify(result, null, 2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.1",
|
|
4
4
|
"description": "cli for AIGNE framework",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -54,20 +54,20 @@
|
|
|
54
54
|
"wrap-ansi": "^9.0.0",
|
|
55
55
|
"yaml": "^2.8.0",
|
|
56
56
|
"zod": "^3.25.67",
|
|
57
|
-
"@aigne/agent-library": "^1.21.
|
|
58
|
-
"@aigne/
|
|
59
|
-
"@aigne/
|
|
60
|
-
"@aigne/
|
|
61
|
-
"@aigne/
|
|
62
|
-
"@aigne/
|
|
63
|
-
"@aigne/
|
|
64
|
-
"@aigne/
|
|
65
|
-
"@aigne/
|
|
57
|
+
"@aigne/agent-library": "^1.21.3",
|
|
58
|
+
"@aigne/aigne-hub": "^0.1.3",
|
|
59
|
+
"@aigne/agentic-memory": "^1.0.3",
|
|
60
|
+
"@aigne/anthropic": "^0.9.3",
|
|
61
|
+
"@aigne/core": "^1.37.0",
|
|
62
|
+
"@aigne/deepseek": "^0.7.3",
|
|
63
|
+
"@aigne/default-memory": "^1.0.3",
|
|
64
|
+
"@aigne/bedrock": "^0.8.3",
|
|
65
|
+
"@aigne/gemini": "^0.8.3",
|
|
66
66
|
"@aigne/observability-api": "^0.8.0",
|
|
67
|
-
"@aigne/
|
|
68
|
-
"@aigne/
|
|
69
|
-
"@aigne/
|
|
70
|
-
"@aigne/
|
|
67
|
+
"@aigne/ollama": "^0.7.3",
|
|
68
|
+
"@aigne/open-router": "^0.7.3",
|
|
69
|
+
"@aigne/openai": "^0.10.3",
|
|
70
|
+
"@aigne/xai": "^0.7.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/archiver": "^6.0.3",
|