@agentvault/agentvault 0.20.42 → 0.20.43

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/index.js CHANGED
@@ -67333,7 +67333,13 @@ ${messageText}`;
67333
67333
  console.error("[SecureChannel] onMessage callback error (MLS):", err);
67334
67334
  });
67335
67335
  } catch (err) {
67336
- console.error(`[SecureChannel] MLS room decrypt failed for ${resolvedRoomId.slice(0, 8)}:`, err);
67336
+ const failKey = resolvedRoomId;
67337
+ const count = (this._mlsDecryptFailCounts.get(failKey) ?? 0) + 1;
67338
+ this._mlsDecryptFailCounts.set(failKey, count);
67339
+ console.error(`[SecureChannel] MLS room decrypt failed (${count}/${_SecureChannel.MAX_MLS_DECRYPT_FAILS}) for ${resolvedRoomId.slice(0, 8)}:`, err);
67340
+ if (count >= _SecureChannel.MAX_MLS_DECRYPT_FAILS && groupId) {
67341
+ await this._triggerMlsEpochRecovery(resolvedRoomId, groupId);
67342
+ }
67337
67343
  }
67338
67344
  }
67339
67345
  /**
@@ -68425,7 +68431,13 @@ ${messageText}`;
68425
68431
  this.config.onA2AMessage(a2aMsg);
68426
68432
  }
68427
68433
  } catch (err) {
68428
- console.error(`[SecureChannel] MLS A2A decrypt failed for ${a2aChannelId.slice(0, 8)}:`, err);
68434
+ const failKey = `a2a:${a2aChannelId}`;
68435
+ const count = (this._mlsDecryptFailCounts.get(failKey) ?? 0) + 1;
68436
+ this._mlsDecryptFailCounts.set(failKey, count);
68437
+ console.error(`[SecureChannel] MLS A2A decrypt failed (${count}/${_SecureChannel.MAX_MLS_DECRYPT_FAILS}) for ${a2aChannelId.slice(0, 8)}:`, err);
68438
+ if (count >= _SecureChannel.MAX_MLS_DECRYPT_FAILS && groupId) {
68439
+ await this._triggerMlsEpochRecovery(failKey, groupId);
68440
+ }
68429
68441
  }
68430
68442
  }
68431
68443
  /**
@@ -95600,7 +95612,7 @@ var init_index = __esm({
95600
95612
  init_skill_invoker();
95601
95613
  await init_skill_telemetry();
95602
95614
  await init_policy_enforcer();
95603
- VERSION = true ? "0.20.42" : "0.0.0-dev";
95615
+ VERSION = true ? "0.20.43" : "0.0.0-dev";
95604
95616
  }
95605
95617
  });
95606
95618
  await init_index();