@agentvault/agentvault 0.19.56 → 0.19.57

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/dist/cli.js CHANGED
@@ -65775,11 +65775,17 @@ ${messageText}`;
65775
65775
  }
65776
65776
  }
65777
65777
  if (!roomId) {
65778
- console.warn(`[SecureChannel] No room found for MLS group ${groupId?.slice(0, 8)}`);
65779
- return;
65778
+ if (data.room_id && this._persisted?.rooms?.[data.room_id]) {
65779
+ roomId = data.room_id;
65780
+ console.log(`[SecureChannel] Room ${roomId.slice(0, 8)} matched by room_id (group_id ${groupId?.slice(0, 8)} mismatch)`);
65781
+ } else {
65782
+ console.warn(`[SecureChannel] No room found for MLS group ${groupId?.slice(0, 8)}`);
65783
+ return;
65784
+ }
65780
65785
  }
65781
65786
  this._lastInboundRoomId = roomId;
65782
65787
  const mlsGroup = this._mlsGroups.get(roomId);
65788
+ console.log(`[SecureChannel] MLS decrypt attempt room=${roomId.slice(0, 8)} group=${groupId?.slice(0, 8)} loaded=${!!mlsGroup} init=${mlsGroup?.isInitialized} mlsGroupsKeys=[${Array.from(this._mlsGroups.keys()).join(",")}]`);
65783
65789
  if (!mlsGroup?.isInitialized) {
65784
65790
  console.warn(`[SecureChannel] MLS group not loaded for room ${roomId.slice(0, 8)}`);
65785
65791
  return;