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