@ai-zen/cli 0.3.3 → 0.3.5
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 +17 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.5] - 2026-08-13
|
|
4
|
+
|
|
5
|
+
### 🎯 优化
|
|
6
|
+
|
|
7
|
+
- **升级 `@ai-zen/agents-core` 到 3.3.1、`@ai-zen/agents-sdk` 到 0.5.7** — 跟随上游内部重构,开箱即用,CLI 无代码改动:
|
|
8
|
+
- **`innerLoopTasks` 拆分为双集合语义** — Core 3.3.1 新增 `innerLoopsTasks`(整组任务记录)与 `innerLoopTasks`(当前轮活跃任务);`abort()` 只中止当前轮活跃任务,不再误标已完成的轮次
|
|
9
|
+
- **内循环开头统一追加 Assistant 占位** — `send()` / `AgentTool` 不再手动追加 Assistant,由 `run()` 每次内循环开头统一处理,多轮工具调用同样收敛到该处
|
|
10
|
+
- **SDK 0.5.7 同步升级** — 依赖 core 3.3.1,全部 426 个测试(含真实 DeepSeek e2e)通过,完全兼容
|
|
11
|
+
|
|
12
|
+
## [0.3.4] - 2026-08-14
|
|
13
|
+
|
|
14
|
+
### 🎯 优化
|
|
15
|
+
|
|
16
|
+
- **升级 `@ai-zen/agents-core` 到 3.3.0、`@ai-zen/agents-sdk` 到 0.5.6** — 跟随上游统一重构,开箱即用,CLI 无代码改动:
|
|
17
|
+
- **`ToolCallContext` 统一贯穿「拦截决策 → 执行」** — Core 3.3.0 将 `FunctionCallContext` 统一为 `ToolCallContext`:`onToolCall` 钩子与 `Tool.exec(ctx)` 收同一个实例;新增 `tool_call`(统一形状)、`tool`(匹配到的工具)、`signal`(中止信号)字段,`toolCall` 改名为 `tool_call`。保留 `@deprecated FunctionCallContext` 兼容别名,旧代码无需改动
|
|
18
|
+
- **新增 `onToolCall` 拦截钩子** — Core 3.3.0 与 SDK 0.5.6 同时提供:每个工具调用执行前可**拒绝**(返回字符串 = 拒绝原因作为工具结果回给 LLM、工具不执行、继续下一轮);SDK 侧 `AgentPlugin` 支持该钩子(多插件按注册顺序调用,任一返回字符串即拒绝)
|
|
19
|
+
|
|
3
20
|
## [0.3.3] - 2026-08-05
|
|
4
21
|
|
|
5
22
|
### 🎯 优化
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-zen/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "AI-ZEN CLI - interactive conversation terminal with file tools and draft recovery",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"author": "LZQCN",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ai-zen/agents-core": "^3.
|
|
24
|
-
"@ai-zen/agents-sdk": "^0.5.
|
|
23
|
+
"@ai-zen/agents-core": "^3.3.1",
|
|
24
|
+
"@ai-zen/agents-sdk": "^0.5.7",
|
|
25
25
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
26
26
|
"chalk": "^5.3.0",
|
|
27
27
|
"dayjs": "^1.11.21",
|