@aigne/cli 1.12.0 → 1.13.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 +23 -0
- package/dist/tracer/terminal.js +2 -1
- package/dist/utils/run-with-aigne.js +4 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.13.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.12.0...cli-v1.13.0) (2025-06-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support observability for cli and blocklet ([#155](https://github.com/AIGNE-io/aigne-framework/issues/155)) ([5baa705](https://github.com/AIGNE-io/aigne-framework/commit/5baa705a33cfdba1efc5ccbe18674c27513ca97d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/agent-library bumped to 1.15.0
|
|
16
|
+
* @aigne/anthropic bumped to 0.3.4
|
|
17
|
+
* @aigne/bedrock bumped to 0.3.4
|
|
18
|
+
* @aigne/core bumped to 1.22.0
|
|
19
|
+
* @aigne/deepseek bumped to 0.3.4
|
|
20
|
+
* @aigne/gemini bumped to 0.3.4
|
|
21
|
+
* @aigne/ollama bumped to 0.3.4
|
|
22
|
+
* @aigne/open-router bumped to 0.3.4
|
|
23
|
+
* @aigne/openai bumped to 0.3.4
|
|
24
|
+
* @aigne/xai bumped to 0.3.4
|
|
25
|
+
|
|
3
26
|
## [1.12.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.11.9...cli-v1.12.0) (2025-06-20)
|
|
4
27
|
|
|
5
28
|
|
package/dist/tracer/terminal.js
CHANGED
|
@@ -19,6 +19,7 @@ export class TerminalTracer {
|
|
|
19
19
|
}
|
|
20
20
|
tasks = {};
|
|
21
21
|
async run(agent, input) {
|
|
22
|
+
await this.context.observer?.serve();
|
|
22
23
|
const context = this.context.newContext({ reset: true });
|
|
23
24
|
const listr = new AIGNEListr({
|
|
24
25
|
formatRequest: () => this.options.printRequest ? this.formatRequest(agent, context, input) : undefined,
|
|
@@ -86,7 +87,7 @@ export class TerminalTracer {
|
|
|
86
87
|
context.on("agentSucceed", onAgentSucceed);
|
|
87
88
|
context.on("agentFailed", onAgentFailed);
|
|
88
89
|
try {
|
|
89
|
-
const result = await listr.run(() => context.invoke(agent, input, { streaming: true }));
|
|
90
|
+
const result = await listr.run(() => context.invoke(agent, input, { streaming: true, newContext: false }));
|
|
90
91
|
return { result, context };
|
|
91
92
|
}
|
|
92
93
|
finally {
|
|
@@ -115,7 +115,10 @@ export async function runWithAIGNE(agentCreator, { argv = process.argv, chatLoop
|
|
|
115
115
|
inputKey: chatLoopOptions?.inputKey,
|
|
116
116
|
});
|
|
117
117
|
if (isEmpty(input)) {
|
|
118
|
-
|
|
118
|
+
const defaultInput = chatLoopOptions?.initialCall || chatLoopOptions?.defaultQuestion;
|
|
119
|
+
Object.assign(input, typeof defaultInput === "string"
|
|
120
|
+
? { [chatLoopOptions?.inputKey || DEFAULT_CHAT_INPUT_KEY]: defaultInput }
|
|
121
|
+
: defaultInput);
|
|
119
122
|
}
|
|
120
123
|
await runAgentWithAIGNE(aigne, agent, {
|
|
121
124
|
...options,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "cli for AIGNE framework",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"wrap-ansi": "^9.0.0",
|
|
52
52
|
"yaml": "^2.7.1",
|
|
53
53
|
"zod": "^3.24.4",
|
|
54
|
-
"@aigne/agent-library": "^1.
|
|
55
|
-
"@aigne/anthropic": "^0.3.
|
|
56
|
-
"@aigne/bedrock": "^0.3.
|
|
57
|
-
"@aigne/
|
|
58
|
-
"@aigne/
|
|
59
|
-
"@aigne/
|
|
60
|
-
"@aigne/
|
|
61
|
-
"@aigne/open-router": "^0.3.
|
|
62
|
-
"@aigne/
|
|
63
|
-
"@aigne/
|
|
54
|
+
"@aigne/agent-library": "^1.15.0",
|
|
55
|
+
"@aigne/anthropic": "^0.3.4",
|
|
56
|
+
"@aigne/bedrock": "^0.3.4",
|
|
57
|
+
"@aigne/core": "^1.22.0",
|
|
58
|
+
"@aigne/deepseek": "^0.3.4",
|
|
59
|
+
"@aigne/gemini": "^0.3.4",
|
|
60
|
+
"@aigne/ollama": "^0.3.4",
|
|
61
|
+
"@aigne/open-router": "^0.3.4",
|
|
62
|
+
"@aigne/openai": "^0.3.4",
|
|
63
|
+
"@aigne/xai": "^0.3.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/archiver": "^6.0.3",
|