@yeaft/webchat-agent 0.1.367 → 0.1.369

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.
@@ -164,10 +164,14 @@ async function _createRoleQueryInner(session, roleName) {
164
164
 
165
165
  // Intercept AskUserQuestion for all roles — forward to Web UI for interactive answering.
166
166
  // Without this, non-DM roles' AskCard buttons stay disabled (no askRequestId).
167
+ // Also block yeaft-skills in crew mode — they inject personas/workflows that interfere with role behavior.
167
168
  queryOptions.canCallTool = async (toolName, input, toolCtx) => {
168
169
  if (toolName === 'AskUserQuestion') {
169
170
  return await handleAskUserQuestion(session.id, input, toolCtx);
170
171
  }
172
+ if (toolName === 'Skill' && input?.skill && input.skill.startsWith('yeaft')) {
173
+ throw new Error('yeaft-skills are disabled in crew mode — crew roles use ROUTE protocol instead');
174
+ }
171
175
  return input;
172
176
  };
173
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.367",
3
+ "version": "0.1.369",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",