@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/index.js
CHANGED
|
@@ -49352,6 +49352,7 @@ var init_channel = __esm({
|
|
|
49352
49352
|
this.emit("error", new Error(`Server: ${detail}`));
|
|
49353
49353
|
}
|
|
49354
49354
|
if (data.event === "a2a_message") {
|
|
49355
|
+
console.log(`[SecureChannel] WS received a2a_message: syncComplete=${this._a2aSyncComplete} msgId=${(data.data || data).message_id?.slice(0, 8)}`);
|
|
49355
49356
|
if (!this._a2aSyncComplete) {
|
|
49356
49357
|
const msgId = (data.data || data).message_id;
|
|
49357
49358
|
console.log(`[SecureChannel] Buffering A2A message (sync not complete): ${msgId?.slice(0, 8)}`);
|
|
@@ -50444,7 +50445,9 @@ ${messageText}`;
|
|
|
50444
50445
|
async _handleA2AMessage(data) {
|
|
50445
50446
|
const msgData = data.data || data;
|
|
50446
50447
|
const a2aMsgId = msgData.message_id;
|
|
50448
|
+
console.log(`[SecureChannel] _handleA2AMessage: msgId=${a2aMsgId?.slice(0, 8)} channelId=${(msgData.channel_id || "").slice(0, 8)} hasCipher=${!!msgData.ciphertext} hasHeader=${!!msgData.header_blob}`);
|
|
50447
50449
|
if (a2aMsgId && this._a2aSeenMessageIds.has(a2aMsgId)) {
|
|
50450
|
+
console.log(`[SecureChannel] A2A dedup: skipping ${a2aMsgId.slice(0, 8)}`);
|
|
50448
50451
|
return;
|
|
50449
50452
|
}
|
|
50450
50453
|
if (a2aMsgId) {
|
|
@@ -50457,6 +50460,7 @@ ${messageText}`;
|
|
|
50457
50460
|
if (msgData.ciphertext && msgData.header_blob) {
|
|
50458
50461
|
const channelId = msgData.channel_id || "";
|
|
50459
50462
|
const channelEntry = this._persisted?.a2aChannels?.[channelId];
|
|
50463
|
+
console.log(`[SecureChannel] A2A encrypted: channel=${channelId.slice(0, 8)} found=${!!channelEntry} hasSession=${!!channelEntry?.session} hasRatchet=${!!channelEntry?.session?.ratchetState} role=${channelEntry?.role}`);
|
|
50460
50464
|
if (channelEntry?.session?.ratchetState) {
|
|
50461
50465
|
try {
|
|
50462
50466
|
const headerJson = Buffer.from(msgData.header_blob, "hex").toString("utf-8");
|