@yeaft/webchat-agent 0.1.366 → 0.1.368
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/crew/role-query.js +2 -2
- package/package.json +1 -1
package/crew/role-query.js
CHANGED
|
@@ -149,8 +149,8 @@ async function _createRoleQueryInner(session, roleName) {
|
|
|
149
149
|
|
|
150
150
|
// 继承全局 MCP disallowedTools,避免不必要的 tool schema token 消耗
|
|
151
151
|
const globalDisallowed = ctx.CONFIG?.disallowedTools || [];
|
|
152
|
-
// Crew 角色禁用 Agent 工具,强制通过 ROUTE
|
|
153
|
-
const crewDisallowed = ['Agent'];
|
|
152
|
+
// Crew 角色禁用 Agent 和 Skill 工具,强制通过 ROUTE 块协作(Skill 会注入 yeaft-skills 干扰角色行为)
|
|
153
|
+
const crewDisallowed = ['Agent', 'Skill'];
|
|
154
154
|
const effectiveDisallowed = [...globalDisallowed, ...crewDisallowed];
|
|
155
155
|
|
|
156
156
|
const queryOptions = {
|