@agentvault/agentvault 0.20.22 → 0.20.23
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 +9 -2
- package/dist/cli.js.map +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -63640,6 +63640,9 @@ var init_channel = __esm({
|
|
|
63640
63640
|
_mlsKeyPackage = null;
|
|
63641
63641
|
/** Pending KeyPackage bundle from request-Welcome flow (used by _handleMlsWelcome). */
|
|
63642
63642
|
_pendingMlsKpBundle;
|
|
63643
|
+
/** Channels that have already had their sync fallback KeyPackage published this connect cycle.
|
|
63644
|
+
* Prevents multiple agents from overwriting each other's KP for the same channel. */
|
|
63645
|
+
_pendingWelcomeChannels = /* @__PURE__ */ new Set();
|
|
63643
63646
|
/** In-memory credential store for renter-provided credentials (never persisted). */
|
|
63644
63647
|
_credentialStore = new CredentialStore();
|
|
63645
63648
|
/** Dedup buffer for A2A message IDs (prevents double-delivery via direct + Redis) */
|
|
@@ -65200,7 +65203,8 @@ var init_channel = __esm({
|
|
|
65200
65203
|
}
|
|
65201
65204
|
}
|
|
65202
65205
|
const memberMlsGroup = chState.mlsGroupId ? this._mlsGroups.get(`a2a:${chId}`) : void 0;
|
|
65203
|
-
if (chState.role === "member" && !memberMlsGroup?.isInitialized) {
|
|
65206
|
+
if (chState.role === "member" && !memberMlsGroup?.isInitialized && !this._pendingWelcomeChannels.has(chId)) {
|
|
65207
|
+
this._pendingWelcomeChannels.add(chId);
|
|
65204
65208
|
try {
|
|
65205
65209
|
let groupId = chState.mlsGroupId;
|
|
65206
65210
|
let memberIds = [];
|
|
@@ -66112,6 +66116,7 @@ var init_channel = __esm({
|
|
|
66112
66116
|
clearInterval(this._deliveryHeartbeat);
|
|
66113
66117
|
this._deliveryHeartbeat = null;
|
|
66114
66118
|
}
|
|
66119
|
+
this._pendingWelcomeChannels.clear();
|
|
66115
66120
|
if (this._stopped) return;
|
|
66116
66121
|
this._setState("disconnected");
|
|
66117
66122
|
this._scheduleReconnect();
|
|
@@ -67143,6 +67148,8 @@ ${messageText}`;
|
|
|
67143
67148
|
this._mlsGroups.set(`a2a:${channelId}`, mgr);
|
|
67144
67149
|
await saveMlsState(this.config.dataDir, groupId, JSON.stringify(mgr.exportState()));
|
|
67145
67150
|
await this._persistState();
|
|
67151
|
+
this._pendingWelcomeChannels.delete(channelId);
|
|
67152
|
+
this._pendingMlsKpBundle = void 0;
|
|
67146
67153
|
console.log(`[SecureChannel] Joined MLS group for A2A ${channelId.slice(0, 8)} via Welcome (epoch=${mgr.epoch})`);
|
|
67147
67154
|
if (this.config.onA2AChannelReady && entry.conversationId) {
|
|
67148
67155
|
const firstPeer = entry.participants?.find((p2) => p2.status === "active" || p2.status === "invited");
|
|
@@ -88910,7 +88917,7 @@ var init_index = __esm({
|
|
|
88910
88917
|
init_skill_invoker();
|
|
88911
88918
|
await init_skill_telemetry();
|
|
88912
88919
|
await init_policy_enforcer();
|
|
88913
|
-
VERSION = true ? "0.20.
|
|
88920
|
+
VERSION = true ? "0.20.23" : "0.0.0-dev";
|
|
88914
88921
|
}
|
|
88915
88922
|
});
|
|
88916
88923
|
|