@ai-zen/agents-sdk 0.2.4 → 0.2.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 +7 -1
- package/dist/config/constants.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.2.
|
|
3
|
+
## [0.2.5] - 2026-07-20
|
|
4
|
+
|
|
5
|
+
### 🔧 修复
|
|
6
|
+
|
|
7
|
+
- **`DEFAULT_SUBAGENT_DEFINITION` 缺少 `permissions` 配置** — 默认 SubAgent `general-assistant` 未配置权限,导致所有维度等同于 `deny: ['*']`,完全无法使用任何工具/skill/MCP/SubAgent。现已按设计规范补全,仅 `subagents` 维度设为 `deny: ['*']` 防止递归调用
|
|
8
|
+
|
|
9
|
+
## [0.2.4] - 2026-07-20
|
|
4
10
|
|
|
5
11
|
### 🔧 修复
|
|
6
12
|
|
package/dist/config/constants.js
CHANGED
|
@@ -39,6 +39,12 @@ export const DEFAULT_SUBAGENT_DEFINITION = {
|
|
|
39
39
|
},
|
|
40
40
|
{ role: AgentNS.Role.User, content: "{{query}}" },
|
|
41
41
|
],
|
|
42
|
+
permissions: {
|
|
43
|
+
tools: { allow: ["*"] },
|
|
44
|
+
skills: { allow: ["*"] },
|
|
45
|
+
mcps: { allow: ["*"] },
|
|
46
|
+
subagents: { deny: ["*"] },
|
|
47
|
+
},
|
|
42
48
|
function: {
|
|
43
49
|
name: "general_assistant",
|
|
44
50
|
description: "通用助手,可独立完成各类任务",
|