@agentvault/grok-bridge 0.4.9 → 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 +14 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52052,7 +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 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
52055
+ const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
52056
+ const t2 = proposal.proposalType;
52057
+ return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
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;
52056
52061
  return {
52057
52062
  tree: mutatedTree,
52058
52063
  pskSecret: updatedPskSecret,
@@ -64600,11 +64605,11 @@ var init_mls_kp_pool = __esm2({
64600
64605
  }
64601
64606
  });
64602
64607
  function ownIdentity() {
64603
- const v2 = true ? "0.23.36" : FALLBACK;
64608
+ const v2 = true ? "0.23.38" : FALLBACK;
64604
64609
  return `${PACKAGE}@${v2}`;
64605
64610
  }
64606
64611
  function buildSha() {
64607
- const raw = true ? "56c615c-dirty" : "";
64612
+ const raw = true ? "a6ce360-dirty" : "";
64608
64613
  const cleaned = (raw ?? "").trim();
64609
64614
  return !cleaned || cleaned === "unknown" ? null : cleaned;
64610
64615
  }
@@ -66802,7 +66807,7 @@ var init_channel = __esm2({
66802
66807
  */
66803
66808
  sendActivitySpan(spanData) {
66804
66809
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
66805
- const pluginVersion = true ? "0.23.36" : "0.0.0-dev";
66810
+ const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
66806
66811
  const agentName = this.config.agentName ?? "Agent";
66807
66812
  const resource = {
66808
66813
  "service.name": "agentvault-agent",
@@ -68740,7 +68745,7 @@ var init_channel = __esm2({
68740
68745
  agentVersion: this.config.agentVersion ?? "0.0.0",
68741
68746
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
68742
68747
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
68743
- pluginVersion: true ? "0.23.36" : "0.0.0-dev"
68748
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
68744
68749
  });
68745
68750
  this._telemetryReporter.startAutoFlush(3e4);
68746
68751
  }
@@ -69064,7 +69069,7 @@ var init_channel = __esm2({
69064
69069
  agentVersion: this.config.agentVersion ?? "0.0.0",
69065
69070
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
69066
69071
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
69067
- pluginVersion: true ? "0.23.36" : "0.0.0-dev"
69072
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
69068
69073
  });
69069
69074
  this._telemetryReporter.startAutoFlush(3e4);
69070
69075
  }
@@ -99514,7 +99519,7 @@ var init_index = __esm2({
99514
99519
  await init_skill_telemetry();
99515
99520
  await init_policy_enforcer();
99516
99521
  init_room_protocol();
99517
- VERSION = true ? "0.23.36" : "0.0.0-dev";
99522
+ VERSION = true ? "0.23.38" : "0.0.0-dev";
99518
99523
  }
99519
99524
  });
99520
99525
  await init_index();
@@ -100440,7 +100445,7 @@ async function main() {
100440
100445
  const info = parseInfoFlags(process.argv.slice(2));
100441
100446
  if (info.showVersion || info.showHelp) {
100442
100447
  const version2 = buildClientVersion2(
100443
- true ? "0.4.9" : void 0
100448
+ true ? "0.4.11" : void 0
100444
100449
  );
100445
100450
  if (info.showVersion) printLine(version2);
100446
100451
  if (info.showHelp) {
@@ -100493,7 +100498,7 @@ async function main() {
100493
100498
  agentName: cfg.agentName,
100494
100499
  platform: "node",
100495
100500
  clientVersion: buildClientVersion2(
100496
- true ? "0.4.9" : void 0
100501
+ true ? "0.4.11" : void 0
100497
100502
  )
100498
100503
  });
100499
100504
  channelRef = channel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/grok-bridge",
3
- "version": "0.4.9",
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",