@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/cli.js
CHANGED
|
@@ -48391,7 +48391,6 @@ var init_channel = __esm({
|
|
|
48391
48391
|
(ch) => ch.hubAddress === hubAddress
|
|
48392
48392
|
);
|
|
48393
48393
|
let channelEntry = allMatches.find((ch) => ch.conversationId) ?? allMatches[0];
|
|
48394
|
-
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 })))}`);
|
|
48395
48394
|
if (!channelEntry) {
|
|
48396
48395
|
try {
|
|
48397
48396
|
console.log(`[sendToAgent] Channel not found for ${hubAddress}, re-syncing from server...`);
|
|
@@ -48760,9 +48759,7 @@ var init_channel = __esm({
|
|
|
48760
48759
|
console.log(`[SecureChannel] A2A sync complete: ${a2aCount} channels`);
|
|
48761
48760
|
this.emit("a2a_channels_synced", { count: a2aCount });
|
|
48762
48761
|
if (this._persisted?.a2aChannels) {
|
|
48763
|
-
const
|
|
48764
|
-
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 })))}`);
|
|
48765
|
-
const channelsNeedingKx = allEntries.filter(
|
|
48762
|
+
const channelsNeedingKx = Object.entries(this._persisted.a2aChannels).filter(
|
|
48766
48763
|
([_2, entry]) => !entry.session && !entry.pendingEphemeralPrivateKey && entry.conversationId
|
|
48767
48764
|
);
|
|
48768
48765
|
if (channelsNeedingKx.length > 0) {
|
|
@@ -49294,7 +49291,6 @@ var init_channel = __esm({
|
|
|
49294
49291
|
this.emit("error", new Error(`Server: ${detail}`));
|
|
49295
49292
|
}
|
|
49296
49293
|
if (data.event === "a2a_message") {
|
|
49297
|
-
console.log(`[SecureChannel] WS received a2a_message: syncComplete=${this._a2aSyncComplete} msgId=${(data.data || data).message_id?.slice(0, 8)}`);
|
|
49298
49294
|
if (!this._a2aSyncComplete) {
|
|
49299
49295
|
const msgId = (data.data || data).message_id;
|
|
49300
49296
|
console.log(`[SecureChannel] Buffering A2A message (sync not complete): ${msgId?.slice(0, 8)}`);
|
|
@@ -50387,7 +50383,6 @@ ${messageText}`;
|
|
|
50387
50383
|
async _handleA2AMessage(data) {
|
|
50388
50384
|
const msgData = data.data || data;
|
|
50389
50385
|
const a2aMsgId = msgData.message_id;
|
|
50390
|
-
console.log(`[SecureChannel] _handleA2AMessage: msgId=${a2aMsgId?.slice(0, 8)} channelId=${(msgData.channel_id || "").slice(0, 8)} hasCipher=${!!msgData.ciphertext} hasHeader=${!!msgData.header_blob}`);
|
|
50391
50386
|
if (a2aMsgId && this._a2aSeenMessageIds.has(a2aMsgId)) {
|
|
50392
50387
|
console.log(`[SecureChannel] A2A dedup: skipping ${a2aMsgId.slice(0, 8)}`);
|
|
50393
50388
|
return;
|
|
@@ -50402,7 +50397,6 @@ ${messageText}`;
|
|
|
50402
50397
|
if (msgData.ciphertext && msgData.header_blob) {
|
|
50403
50398
|
const channelId = msgData.channel_id || "";
|
|
50404
50399
|
const channelEntry = this._persisted?.a2aChannels?.[channelId];
|
|
50405
|
-
console.log(`[SecureChannel] A2A encrypted: channel=${channelId.slice(0, 8)} found=${!!channelEntry} hasSession=${!!channelEntry?.session} hasRatchet=${!!channelEntry?.session?.ratchetState} role=${channelEntry?.role}`);
|
|
50406
50400
|
if (channelEntry?.session?.ratchetState) {
|
|
50407
50401
|
try {
|
|
50408
50402
|
const headerJson = Buffer.from(msgData.header_blob, "hex").toString("utf-8");
|