@agentvault/grok-bridge 0.4.10 → 0.4.11

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52052,10 +52052,12 @@ async function applyProposals(state, proposals, committerLeafIndex, pskSearch, s
52052
52052
  const [mutatedTree, addedLeafNodes] = await applyTreeMutations(state.ratchetTree, grouped, state.groupContext, sentByClient, state.clientConfig.authService, state.clientConfig.lifetimeConfig, cs.signature);
52053
52053
  const [updatedPskSecret, pskIds] = await accumulatePskSecret(grouped.psk.map((p2) => p2.proposal.psk.preSharedKeyId), pskSearch, cs, zeroes);
52054
52054
  const selfRemoved = mutatedTree[leafToNodeIndex(toLeafIndex(state.privatePath.leafIndex))] === void 0;
52055
- const needsUpdatePath = allProposals.length === 0 || allProposals.some(({ proposal }) => {
52055
+ const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
52056
52056
  const t2 = proposal.proposalType;
52057
52057
  return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
52058
52058
  });
52059
+ const pathRequiredLegacy = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
52060
+ const needsUpdatePath = sentByClient ? pathRequiredByRfc : pathRequiredLegacy;
52059
52061
  return {
52060
52062
  tree: mutatedTree,
52061
52063
  pskSecret: updatedPskSecret,
@@ -64603,11 +64605,11 @@ var init_mls_kp_pool = __esm2({
64603
64605
  }
64604
64606
  });
64605
64607
  function ownIdentity() {
64606
- const v2 = true ? "0.23.37" : FALLBACK;
64608
+ const v2 = true ? "0.23.38" : FALLBACK;
64607
64609
  return `${PACKAGE}@${v2}`;
64608
64610
  }
64609
64611
  function buildSha() {
64610
- const raw = true ? "58c552f-dirty" : "";
64612
+ const raw = true ? "a6ce360-dirty" : "";
64611
64613
  const cleaned = (raw ?? "").trim();
64612
64614
  return !cleaned || cleaned === "unknown" ? null : cleaned;
64613
64615
  }
@@ -66805,7 +66807,7 @@ var init_channel = __esm2({
66805
66807
  */
66806
66808
  sendActivitySpan(spanData) {
66807
66809
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
66808
- const pluginVersion = true ? "0.23.37" : "0.0.0-dev";
66810
+ const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
66809
66811
  const agentName = this.config.agentName ?? "Agent";
66810
66812
  const resource = {
66811
66813
  "service.name": "agentvault-agent",
@@ -68743,7 +68745,7 @@ var init_channel = __esm2({
68743
68745
  agentVersion: this.config.agentVersion ?? "0.0.0",
68744
68746
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
68745
68747
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
68746
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
68748
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
68747
68749
  });
68748
68750
  this._telemetryReporter.startAutoFlush(3e4);
68749
68751
  }
@@ -69067,7 +69069,7 @@ var init_channel = __esm2({
69067
69069
  agentVersion: this.config.agentVersion ?? "0.0.0",
69068
69070
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
69069
69071
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
69070
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
69072
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
69071
69073
  });
69072
69074
  this._telemetryReporter.startAutoFlush(3e4);
69073
69075
  }
@@ -99517,7 +99519,7 @@ var init_index = __esm2({
99517
99519
  await init_skill_telemetry();
99518
99520
  await init_policy_enforcer();
99519
99521
  init_room_protocol();
99520
- VERSION = true ? "0.23.37" : "0.0.0-dev";
99522
+ VERSION = true ? "0.23.38" : "0.0.0-dev";
99521
99523
  }
99522
99524
  });
99523
99525
  await init_index();
@@ -100443,7 +100445,7 @@ async function main() {
100443
100445
  const info = parseInfoFlags(process.argv.slice(2));
100444
100446
  if (info.showVersion || info.showHelp) {
100445
100447
  const version2 = buildClientVersion2(
100446
- true ? "0.4.10" : void 0
100448
+ true ? "0.4.11" : void 0
100447
100449
  );
100448
100450
  if (info.showVersion) printLine(version2);
100449
100451
  if (info.showHelp) {
@@ -100496,7 +100498,7 @@ async function main() {
100496
100498
  agentName: cfg.agentName,
100497
100499
  platform: "node",
100498
100500
  clientVersion: buildClientVersion2(
100499
- true ? "0.4.10" : void 0
100501
+ true ? "0.4.11" : void 0
100500
100502
  )
100501
100503
  });
100502
100504
  channelRef = channel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/grok-bridge",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "type": "module",
5
5
  "description": "AgentVault Grok Bridge — daemon bridging a Grok agent into E2E-encrypted AgentVault direct messages and rooms.",
6
6
  "main": "dist/index.js",