@agentvault/agentvault 0.19.27 → 0.19.29
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 +7 -1
- package/dist/cli.js.map +2 -2
- package/dist/index.js +7 -1
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48820,7 +48820,9 @@ var init_channel = __esm({
|
|
|
48820
48820
|
console.log(`[SecureChannel] A2A sync complete: ${a2aCount} channels`);
|
|
48821
48821
|
this.emit("a2a_channels_synced", { count: a2aCount });
|
|
48822
48822
|
if (this._persisted?.a2aChannels) {
|
|
48823
|
-
const
|
|
48823
|
+
const allEntries = Object.entries(this._persisted.a2aChannels);
|
|
48824
|
+
console.log(`[SecureChannel] A2A key exchange check: ${allEntries.length} channels, details=${JSON.stringify(allEntries.map(([id, e]) => ({ id: id.slice(0, 8), session: !!e.session, pending: !!e.pendingEphemeralPrivateKey, convId: !!e.conversationId })))}`);
|
|
48825
|
+
const channelsNeedingKx = allEntries.filter(
|
|
48824
48826
|
([_2, entry]) => !entry.session && !entry.pendingEphemeralPrivateKey && entry.conversationId
|
|
48825
48827
|
);
|
|
48826
48828
|
if (channelsNeedingKx.length > 0) {
|
|
@@ -49352,6 +49354,7 @@ var init_channel = __esm({
|
|
|
49352
49354
|
this.emit("error", new Error(`Server: ${detail}`));
|
|
49353
49355
|
}
|
|
49354
49356
|
if (data.event === "a2a_message") {
|
|
49357
|
+
console.log(`[SecureChannel] WS received a2a_message: syncComplete=${this._a2aSyncComplete} msgId=${(data.data || data).message_id?.slice(0, 8)}`);
|
|
49355
49358
|
if (!this._a2aSyncComplete) {
|
|
49356
49359
|
const msgId = (data.data || data).message_id;
|
|
49357
49360
|
console.log(`[SecureChannel] Buffering A2A message (sync not complete): ${msgId?.slice(0, 8)}`);
|
|
@@ -50444,7 +50447,9 @@ ${messageText}`;
|
|
|
50444
50447
|
async _handleA2AMessage(data) {
|
|
50445
50448
|
const msgData = data.data || data;
|
|
50446
50449
|
const a2aMsgId = msgData.message_id;
|
|
50450
|
+
console.log(`[SecureChannel] _handleA2AMessage: msgId=${a2aMsgId?.slice(0, 8)} channelId=${(msgData.channel_id || "").slice(0, 8)} hasCipher=${!!msgData.ciphertext} hasHeader=${!!msgData.header_blob}`);
|
|
50447
50451
|
if (a2aMsgId && this._a2aSeenMessageIds.has(a2aMsgId)) {
|
|
50452
|
+
console.log(`[SecureChannel] A2A dedup: skipping ${a2aMsgId.slice(0, 8)}`);
|
|
50448
50453
|
return;
|
|
50449
50454
|
}
|
|
50450
50455
|
if (a2aMsgId) {
|
|
@@ -50457,6 +50462,7 @@ ${messageText}`;
|
|
|
50457
50462
|
if (msgData.ciphertext && msgData.header_blob) {
|
|
50458
50463
|
const channelId = msgData.channel_id || "";
|
|
50459
50464
|
const channelEntry = this._persisted?.a2aChannels?.[channelId];
|
|
50465
|
+
console.log(`[SecureChannel] A2A encrypted: channel=${channelId.slice(0, 8)} found=${!!channelEntry} hasSession=${!!channelEntry?.session} hasRatchet=${!!channelEntry?.session?.ratchetState} role=${channelEntry?.role}`);
|
|
50460
50466
|
if (channelEntry?.session?.ratchetState) {
|
|
50461
50467
|
try {
|
|
50462
50468
|
const headerJson = Buffer.from(msgData.header_blob, "hex").toString("utf-8");
|