@agentvault/agentvault 0.9.1 → 0.9.2
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 +22 -4
- package/dist/cli.js.map +2 -2
- package/dist/index.js +22 -4
- package/dist/index.js.map +2 -2
- package/dist/openclaw-entry.d.ts.map +1 -1
- package/dist/openclaw-entry.js +3 -0
- package/dist/openclaw-entry.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46411,7 +46411,14 @@ var SecureChannel = class _SecureChannel extends EventEmitter {
|
|
|
46411
46411
|
return;
|
|
46412
46412
|
}
|
|
46413
46413
|
if (data.event === "message") {
|
|
46414
|
-
|
|
46414
|
+
try {
|
|
46415
|
+
await this._handleIncomingMessage(data.data);
|
|
46416
|
+
} catch (msgErr) {
|
|
46417
|
+
console.error(
|
|
46418
|
+
`[SecureChannel] Message handler failed for conv ${data.data?.conversation_id?.slice(0, 8) ?? "?"}...:`,
|
|
46419
|
+
msgErr
|
|
46420
|
+
);
|
|
46421
|
+
}
|
|
46415
46422
|
}
|
|
46416
46423
|
if (data.event === "room_joined") {
|
|
46417
46424
|
const d2 = data.data;
|
|
@@ -46433,7 +46440,14 @@ var SecureChannel = class _SecureChannel extends EventEmitter {
|
|
|
46433
46440
|
}).catch((err) => this.emit("error", err));
|
|
46434
46441
|
}
|
|
46435
46442
|
if (data.event === "room_message") {
|
|
46436
|
-
|
|
46443
|
+
try {
|
|
46444
|
+
await this._handleRoomMessage(data.data);
|
|
46445
|
+
} catch (rmErr) {
|
|
46446
|
+
console.error(
|
|
46447
|
+
`[SecureChannel] Room message handler failed:`,
|
|
46448
|
+
rmErr
|
|
46449
|
+
);
|
|
46450
|
+
}
|
|
46437
46451
|
}
|
|
46438
46452
|
if (data.event === "room_participant_added") {
|
|
46439
46453
|
const p2 = data.data;
|
|
@@ -47287,8 +47301,12 @@ ${messageText}`;
|
|
|
47287
47301
|
since = msg.created_at;
|
|
47288
47302
|
totalProcessed++;
|
|
47289
47303
|
} catch (err) {
|
|
47290
|
-
|
|
47291
|
-
|
|
47304
|
+
console.warn(
|
|
47305
|
+
`[SecureChannel] Sync decrypt failed for msg ${msg.id.slice(0, 8)}... in conv ${msg.conversation_id.slice(0, 8)}...: ${String(err)}`
|
|
47306
|
+
);
|
|
47307
|
+
this._persisted.lastMessageTimestamp = msg.created_at;
|
|
47308
|
+
since = msg.created_at;
|
|
47309
|
+
continue;
|
|
47292
47310
|
}
|
|
47293
47311
|
}
|
|
47294
47312
|
await this._persistState();
|