@agentvault/agentvault 0.19.27 → 0.19.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/cli.js +4 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -49291,6 +49291,7 @@ var init_channel = __esm({
|
|
|
49291
49291
|
this.emit("error", new Error(`Server: ${detail}`));
|
|
49292
49292
|
}
|
|
49293
49293
|
if (data.event === "a2a_message") {
|
|
49294
|
+
console.log(`[SecureChannel] WS received a2a_message: syncComplete=${this._a2aSyncComplete} msgId=${(data.data || data).message_id?.slice(0, 8)}`);
|
|
49294
49295
|
if (!this._a2aSyncComplete) {
|
|
49295
49296
|
const msgId = (data.data || data).message_id;
|
|
49296
49297
|
console.log(`[SecureChannel] Buffering A2A message (sync not complete): ${msgId?.slice(0, 8)}`);
|
|
@@ -50383,7 +50384,9 @@ ${messageText}`;
|
|
|
50383
50384
|
async _handleA2AMessage(data) {
|
|
50384
50385
|
const msgData = data.data || data;
|
|
50385
50386
|
const a2aMsgId = msgData.message_id;
|
|
50387
|
+
console.log(`[SecureChannel] _handleA2AMessage: msgId=${a2aMsgId?.slice(0, 8)} channelId=${(msgData.channel_id || "").slice(0, 8)} hasCipher=${!!msgData.ciphertext} hasHeader=${!!msgData.header_blob}`);
|
|
50386
50388
|
if (a2aMsgId && this._a2aSeenMessageIds.has(a2aMsgId)) {
|
|
50389
|
+
console.log(`[SecureChannel] A2A dedup: skipping ${a2aMsgId.slice(0, 8)}`);
|
|
50387
50390
|
return;
|
|
50388
50391
|
}
|
|
50389
50392
|
if (a2aMsgId) {
|
|
@@ -50396,6 +50399,7 @@ ${messageText}`;
|
|
|
50396
50399
|
if (msgData.ciphertext && msgData.header_blob) {
|
|
50397
50400
|
const channelId = msgData.channel_id || "";
|
|
50398
50401
|
const channelEntry = this._persisted?.a2aChannels?.[channelId];
|
|
50402
|
+
console.log(`[SecureChannel] A2A encrypted: channel=${channelId.slice(0, 8)} found=${!!channelEntry} hasSession=${!!channelEntry?.session} hasRatchet=${!!channelEntry?.session?.ratchetState} role=${channelEntry?.role}`);
|
|
50399
50403
|
if (channelEntry?.session?.ratchetState) {
|
|
50400
50404
|
try {
|
|
50401
50405
|
const headerJson = Buffer.from(msgData.header_blob, "hex").toString("utf-8");
|