@yeaft/webchat-agent 0.0.33 → 0.0.34

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.
Files changed (2) hide show
  1. package/connection.js +29 -1
  2. package/package.json +1 -1
package/connection.js CHANGED
@@ -20,12 +20,19 @@ import {
20
20
  handleUserInput, handleUpdateConversationSettings, handleAskUserAnswer,
21
21
  sendConversationList
22
22
  } from './conversation.js';
23
+ import {
24
+ createCrewSession, handleCrewHumanInput, handleCrewControl,
25
+ addRoleToSession, removeRoleFromSession
26
+ } from './crew.js';
23
27
 
24
28
  // 需要在断连期间缓冲的消息类型(Claude 输出相关的关键消息)
25
29
  const BUFFERABLE_TYPES = new Set([
26
30
  'claude_output', 'turn_completed', 'conversation_closed',
27
31
  'session_id_update', 'compact_status', 'slash_commands_update',
28
- 'background_task_started', 'background_task_output'
32
+ 'background_task_started', 'background_task_output',
33
+ 'crew_output', 'crew_status', 'crew_turn_completed',
34
+ 'crew_session_created', 'crew_human_needed',
35
+ 'crew_role_added', 'crew_role_removed'
29
36
  ]);
30
37
 
31
38
  // Send message to server (with encryption if available)
@@ -258,6 +265,27 @@ async function handleMessage(msg) {
258
265
  handleAskUserAnswer(msg);
259
266
  break;
260
267
 
268
+ // Crew (multi-agent) messages
269
+ case 'create_crew_session':
270
+ await createCrewSession(msg);
271
+ break;
272
+
273
+ case 'crew_human_input':
274
+ await handleCrewHumanInput(msg);
275
+ break;
276
+
277
+ case 'crew_control':
278
+ await handleCrewControl(msg);
279
+ break;
280
+
281
+ case 'crew_add_role':
282
+ await addRoleToSession(msg);
283
+ break;
284
+
285
+ case 'crew_remove_role':
286
+ await removeRoleFromSession(msg);
287
+ break;
288
+
261
289
  // Port proxy
262
290
  case 'proxy_request':
263
291
  handleProxyHttpRequest(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",