@agentvault/agentvault 0.23.37 → 0.23.38

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
@@ -50859,10 +50859,12 @@ async function applyProposals(state, proposals, committerLeafIndex, pskSearch, s
50859
50859
  const [mutatedTree, addedLeafNodes] = await applyTreeMutations(state.ratchetTree, grouped, state.groupContext, sentByClient, state.clientConfig.authService, state.clientConfig.lifetimeConfig, cs.signature);
50860
50860
  const [updatedPskSecret, pskIds] = await accumulatePskSecret(grouped.psk.map((p2) => p2.proposal.psk.preSharedKeyId), pskSearch, cs, zeroes);
50861
50861
  const selfRemoved = mutatedTree[leafToNodeIndex(toLeafIndex(state.privatePath.leafIndex))] === void 0;
50862
- const needsUpdatePath = allProposals.length === 0 || allProposals.some(({ proposal }) => {
50862
+ const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
50863
50863
  const t2 = proposal.proposalType;
50864
50864
  return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
50865
50865
  });
50866
+ const pathRequiredLegacy = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
50867
+ const needsUpdatePath = sentByClient ? pathRequiredByRfc : pathRequiredLegacy;
50866
50868
  return {
50867
50869
  tree: mutatedTree,
50868
50870
  pskSecret: updatedPskSecret,
@@ -63264,11 +63266,11 @@ var init_mls_kp_pool = __esm({
63264
63266
 
63265
63267
  // src/client-version.ts
63266
63268
  function ownIdentity() {
63267
- const v2 = true ? "0.23.37" : FALLBACK;
63269
+ const v2 = true ? "0.23.38" : FALLBACK;
63268
63270
  return `${PACKAGE}@${v2}`;
63269
63271
  }
63270
63272
  function buildSha() {
63271
- const raw = true ? "58c552f-dirty" : "";
63273
+ const raw = true ? "a6ce360-dirty" : "";
63272
63274
  const cleaned = (raw ?? "").trim();
63273
63275
  return !cleaned || cleaned === "unknown" ? null : cleaned;
63274
63276
  }
@@ -65479,7 +65481,7 @@ var init_channel = __esm({
65479
65481
  */
65480
65482
  sendActivitySpan(spanData) {
65481
65483
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
65482
- const pluginVersion = true ? "0.23.37" : "0.0.0-dev";
65484
+ const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
65483
65485
  const agentName = this.config.agentName ?? "Agent";
65484
65486
  const resource = {
65485
65487
  "service.name": "agentvault-agent",
@@ -67417,7 +67419,7 @@ var init_channel = __esm({
67417
67419
  agentVersion: this.config.agentVersion ?? "0.0.0",
67418
67420
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
67419
67421
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
67420
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
67422
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
67421
67423
  });
67422
67424
  this._telemetryReporter.startAutoFlush(3e4);
67423
67425
  }
@@ -67741,7 +67743,7 @@ var init_channel = __esm({
67741
67743
  agentVersion: this.config.agentVersion ?? "0.0.0",
67742
67744
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
67743
67745
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
67744
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
67746
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
67745
67747
  });
67746
67748
  this._telemetryReporter.startAutoFlush(3e4);
67747
67749
  }
@@ -98641,7 +98643,7 @@ var init_index = __esm({
98641
98643
  await init_skill_telemetry();
98642
98644
  await init_policy_enforcer();
98643
98645
  init_room_protocol();
98644
- VERSION = true ? "0.23.37" : "0.0.0-dev";
98646
+ VERSION = true ? "0.23.38" : "0.0.0-dev";
98645
98647
  }
98646
98648
  });
98647
98649
  await init_index();