@ai-zen/cli 0.3.3 → 0.3.4
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 +8 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.4] - 2026-08-14
|
|
4
|
+
|
|
5
|
+
### 🎯 优化
|
|
6
|
+
|
|
7
|
+
- **升级 `@ai-zen/agents-core` 到 3.3.0、`@ai-zen/agents-sdk` 到 0.5.6** — 跟随上游统一重构,开箱即用,CLI 无代码改动:
|
|
8
|
+
- **`ToolCallContext` 统一贯穿「拦截决策 → 执行」** — Core 3.3.0 将 `FunctionCallContext` 统一为 `ToolCallContext`:`onToolCall` 钩子与 `Tool.exec(ctx)` 收同一个实例;新增 `tool_call`(统一形状)、`tool`(匹配到的工具)、`signal`(中止信号)字段,`toolCall` 改名为 `tool_call`。保留 `@deprecated FunctionCallContext` 兼容别名,旧代码无需改动
|
|
9
|
+
- **新增 `onToolCall` 拦截钩子** — Core 3.3.0 与 SDK 0.5.6 同时提供:每个工具调用执行前可**拒绝**(返回字符串 = 拒绝原因作为工具结果回给 LLM、工具不执行、继续下一轮);SDK 侧 `AgentPlugin` 支持该钩子(多插件按注册顺序调用,任一返回字符串即拒绝)
|
|
10
|
+
|
|
3
11
|
## [0.3.3] - 2026-08-05
|
|
4
12
|
|
|
5
13
|
### 🎯 优化
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-zen/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
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.0",
|
|
24
|
+
"@ai-zen/agents-sdk": "^0.5.6",
|
|
25
25
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
26
26
|
"chalk": "^5.3.0",
|
|
27
27
|
"dayjs": "^1.11.21",
|