@yeaft/webchat-agent 0.1.866 → 0.1.868

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.
@@ -512,44 +512,58 @@ export async function handleMessage(msg) {
512
512
  // `group_list_updated` (create/rename/archive) for listener sync.
513
513
  case 'yeaft_list_groups':
514
514
  case 'unify_list_groups':
515
+ case 'yeaft_list_sessions':
515
516
  handleYeaftListGroups(msg);
516
517
  break;
517
518
  case 'yeaft_create_group':
518
519
  case 'unify_create_group':
520
+ case 'yeaft_create_session':
519
521
  handleYeaftCreateGroup(msg);
520
522
  break;
521
523
  case 'yeaft_rename_group':
522
524
  case 'unify_rename_group':
525
+ case 'yeaft_rename_session':
523
526
  handleYeaftRenameGroup(msg);
524
527
  break;
525
528
  case 'yeaft_update_group':
526
529
  case 'unify_update_group':
530
+ case 'yeaft_update_session':
527
531
  handleYeaftUpdateGroup(msg);
528
532
  break;
529
533
  case 'yeaft_update_group_config':
530
534
  case 'unify_update_group_config':
535
+ case 'yeaft_update_session_config':
531
536
  handleYeaftUpdateGroupConfig(msg);
532
537
  break;
533
538
  case 'yeaft_archive_group':
534
539
  case 'unify_archive_group':
540
+ case 'yeaft_archive_session':
535
541
  handleYeaftArchiveGroup(msg);
536
542
  break;
537
543
  case 'yeaft_delete_group':
538
544
  case 'unify_delete_group':
545
+ case 'yeaft_delete_session':
539
546
  handleYeaftDeleteGroup(msg);
540
547
  break;
541
548
  case 'yeaft_add_member':
542
549
  case 'unify_add_member':
550
+ case 'yeaft_session_add_member':
543
551
  handleYeaftAddMember(msg);
544
552
  break;
545
553
  case 'yeaft_remove_member':
546
554
  case 'unify_remove_member':
555
+ case 'yeaft_session_remove_member':
547
556
  handleYeaftRemoveMember(msg);
548
557
  break;
549
558
  case 'yeaft_set_default_vp':
550
559
  case 'unify_set_default_vp':
560
+ case 'yeaft_session_set_default_vp':
551
561
  handleYeaftSetDefaultVp(msg);
552
562
  break;
563
+ // Phase 2: session_send is just group_chat (N≥1 fan-out already works).
564
+ case 'yeaft_session_send':
565
+ handleYeaftGroupChat(msg);
566
+ break;
553
567
 
554
568
  // Yeaft Chat Mode (1:1 single-VP) — separate from group fan-out.
555
569
  case 'yeaft_chat_send':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.866",
3
+ "version": "0.1.868",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",