@agentvault/agentvault 0.14.11 → 0.14.12
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/channel.d.ts +3 -0
- package/dist/channel.d.ts.map +1 -1
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +14 -0
- package/dist/index.js.map +2 -2
- package/dist/openclaw-entry.d.ts.map +1 -1
- package/dist/openclaw-entry.js +37 -0
- package/dist/openclaw-entry.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46325,6 +46325,9 @@ var init_channel = __esm({
|
|
|
46325
46325
|
_syncMessageIds = null;
|
|
46326
46326
|
/** Queued A2A messages for responder channels not yet activated (no first initiator message received). */
|
|
46327
46327
|
_a2aPendingQueue = {};
|
|
46328
|
+
/** Dedup buffer for A2A message IDs (prevents double-delivery via direct + Redis) */
|
|
46329
|
+
_a2aSeenMessageIds = /* @__PURE__ */ new Set();
|
|
46330
|
+
static A2A_SEEN_MAX = 500;
|
|
46328
46331
|
_scanEngine = null;
|
|
46329
46332
|
_scanRuleSetVersion = 0;
|
|
46330
46333
|
_telemetryReporter = null;
|
|
@@ -47868,6 +47871,17 @@ var init_channel = __esm({
|
|
|
47868
47871
|
}
|
|
47869
47872
|
if (data.event === "a2a_message") {
|
|
47870
47873
|
const msgData = data.data || data;
|
|
47874
|
+
const a2aMsgId = msgData.message_id;
|
|
47875
|
+
if (a2aMsgId && this._a2aSeenMessageIds.has(a2aMsgId)) {
|
|
47876
|
+
return;
|
|
47877
|
+
}
|
|
47878
|
+
if (a2aMsgId) {
|
|
47879
|
+
this._a2aSeenMessageIds.add(a2aMsgId);
|
|
47880
|
+
if (this._a2aSeenMessageIds.size > _SecureChannel.A2A_SEEN_MAX) {
|
|
47881
|
+
const first = this._a2aSeenMessageIds.values().next().value;
|
|
47882
|
+
if (first) this._a2aSeenMessageIds.delete(first);
|
|
47883
|
+
}
|
|
47884
|
+
}
|
|
47871
47885
|
if (msgData.ciphertext && msgData.header_blob) {
|
|
47872
47886
|
const channelId = msgData.channel_id || "";
|
|
47873
47887
|
const channelEntry = this._persisted?.a2aChannels?.[channelId];
|