@agentvault/agentvault 0.19.56 → 0.19.58
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 +13 -3
- package/dist/cli.js.map +2 -2
- package/dist/index.js +13 -3
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63161,11 +63161,15 @@ var init_channel = __esm({
|
|
|
63161
63161
|
if (!this._persisted.rooms) {
|
|
63162
63162
|
this._persisted.rooms = {};
|
|
63163
63163
|
}
|
|
63164
|
+
const existingMlsGroupId = this._persisted.rooms[roomData.roomId]?.mlsGroupId;
|
|
63165
|
+
const existingMlsTs = this._persisted.rooms[roomData.roomId]?.lastMlsMessageTs;
|
|
63164
63166
|
this._persisted.rooms[roomData.roomId] = {
|
|
63165
63167
|
roomId: roomData.roomId,
|
|
63166
63168
|
name: roomData.name,
|
|
63167
63169
|
conversationIds,
|
|
63168
|
-
members: roomData.members
|
|
63170
|
+
members: roomData.members,
|
|
63171
|
+
...existingMlsGroupId && { mlsGroupId: existingMlsGroupId },
|
|
63172
|
+
...existingMlsTs && { lastMlsMessageTs: existingMlsTs }
|
|
63169
63173
|
};
|
|
63170
63174
|
const mlsRoom = this._persisted.rooms[roomData.roomId];
|
|
63171
63175
|
if (mlsRoom.mlsGroupId && !roomData.forceRekey) {
|
|
@@ -65830,11 +65834,17 @@ ${messageText}`;
|
|
|
65830
65834
|
}
|
|
65831
65835
|
}
|
|
65832
65836
|
if (!roomId) {
|
|
65833
|
-
|
|
65834
|
-
|
|
65837
|
+
if (data.room_id && this._persisted?.rooms?.[data.room_id]) {
|
|
65838
|
+
roomId = data.room_id;
|
|
65839
|
+
console.log(`[SecureChannel] Room ${roomId.slice(0, 8)} matched by room_id (group_id ${groupId?.slice(0, 8)} mismatch)`);
|
|
65840
|
+
} else {
|
|
65841
|
+
console.warn(`[SecureChannel] No room found for MLS group ${groupId?.slice(0, 8)}`);
|
|
65842
|
+
return;
|
|
65843
|
+
}
|
|
65835
65844
|
}
|
|
65836
65845
|
this._lastInboundRoomId = roomId;
|
|
65837
65846
|
const mlsGroup = this._mlsGroups.get(roomId);
|
|
65847
|
+
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(",")}]`);
|
|
65838
65848
|
if (!mlsGroup?.isInitialized) {
|
|
65839
65849
|
console.warn(`[SecureChannel] MLS group not loaded for room ${roomId.slice(0, 8)}`);
|
|
65840
65850
|
return;
|