@agentvault/agentvault 0.14.26 → 0.14.28
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/channel.d.ts.map +1 -1
- package/dist/cli.js +9 -1
- package/dist/cli.js.map +2 -2
- package/dist/index.js +9 -1
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47177,6 +47177,9 @@ var init_channel = __esm({
|
|
|
47177
47177
|
delete existingRoom.ownSenderKeyChain;
|
|
47178
47178
|
delete existingRoom.peerSenderKeyState;
|
|
47179
47179
|
}
|
|
47180
|
+
if (this._persisted) {
|
|
47181
|
+
this._persisted.lastMessageTimestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
47182
|
+
}
|
|
47180
47183
|
console.log(
|
|
47181
47184
|
`[SecureChannel] Force rekey: cleared ${cleared} sessions for room ${roomData.roomId.slice(0, 8)}...`
|
|
47182
47185
|
);
|
|
@@ -49367,11 +49370,16 @@ ${messageText}`;
|
|
|
49367
49370
|
ciphertext: data.ciphertext
|
|
49368
49371
|
});
|
|
49369
49372
|
let distJson;
|
|
49373
|
+
const ratchetSnapshot = session.ratchet.serialize();
|
|
49370
49374
|
try {
|
|
49371
49375
|
distJson = session.ratchet.decrypt(encrypted);
|
|
49372
49376
|
} catch (err) {
|
|
49377
|
+
session.ratchet = DoubleRatchet.deserialize(ratchetSnapshot);
|
|
49378
|
+
if (this._persisted?.sessions[convId]) {
|
|
49379
|
+
this._persisted.sessions[convId].ratchetState = ratchetSnapshot;
|
|
49380
|
+
}
|
|
49373
49381
|
console.warn(
|
|
49374
|
-
`[SecureChannel] Failed to decrypt sender key distribution from ${data.sender_device_id.slice(0, 8)}
|
|
49382
|
+
`[SecureChannel] Failed to decrypt sender key distribution from ${data.sender_device_id.slice(0, 8)}... (ratchet restored):`,
|
|
49375
49383
|
err
|
|
49376
49384
|
);
|
|
49377
49385
|
return;
|