@agentvault/muse-bridge 0.1.11 → 0.1.13

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 +13 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6149,7 +6149,12 @@ async function applyProposals(state, proposals, committerLeafIndex, pskSearch, s
6149
6149
  const [mutatedTree, addedLeafNodes] = await applyTreeMutations(state.ratchetTree, grouped, state.groupContext, sentByClient, state.clientConfig.authService, state.clientConfig.lifetimeConfig, cs.signature);
6150
6150
  const [updatedPskSecret, pskIds] = await accumulatePskSecret(grouped.psk.map((p2) => p2.proposal.psk.preSharedKeyId), pskSearch, cs, zeroes);
6151
6151
  const selfRemoved = mutatedTree[leafToNodeIndex(toLeafIndex(state.privatePath.leafIndex))] === void 0;
6152
- const needsUpdatePath = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
6152
+ const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
6153
+ const t2 = proposal.proposalType;
6154
+ return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
6155
+ });
6156
+ const pathRequiredLegacy = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
6157
+ const needsUpdatePath = sentByClient ? pathRequiredByRfc : pathRequiredLegacy;
6153
6158
  return {
6154
6159
  tree: mutatedTree,
6155
6160
  pskSecret: updatedPskSecret,
@@ -11460,11 +11465,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
11460
11465
  return null;
11461
11466
  }
11462
11467
  function ownIdentity() {
11463
- const v2 = true ? "0.23.36" : FALLBACK;
11468
+ const v2 = true ? "0.23.38" : FALLBACK;
11464
11469
  return `${PACKAGE}@${v2}`;
11465
11470
  }
11466
11471
  function buildSha() {
11467
- const raw = true ? "56c615c-dirty" : "";
11472
+ const raw = true ? "a6ce360-dirty" : "";
11468
11473
  const cleaned = (raw ?? "").trim();
11469
11474
  return !cleaned || cleaned === "unknown" ? null : cleaned;
11470
11475
  }
@@ -70162,7 +70167,7 @@ var init_dist = __esm({
70162
70167
  */
70163
70168
  sendActivitySpan(spanData) {
70164
70169
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
70165
- const pluginVersion = true ? "0.23.36" : "0.0.0-dev";
70170
+ const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
70166
70171
  const agentName = this.config.agentName ?? "Agent";
70167
70172
  const resource = {
70168
70173
  "service.name": "agentvault-agent",
@@ -72100,7 +72105,7 @@ var init_dist = __esm({
72100
72105
  agentVersion: this.config.agentVersion ?? "0.0.0",
72101
72106
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
72102
72107
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
72103
- pluginVersion: true ? "0.23.36" : "0.0.0-dev"
72108
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
72104
72109
  });
72105
72110
  this._telemetryReporter.startAutoFlush(3e4);
72106
72111
  }
@@ -72424,7 +72429,7 @@ var init_dist = __esm({
72424
72429
  agentVersion: this.config.agentVersion ?? "0.0.0",
72425
72430
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
72426
72431
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
72427
- pluginVersion: true ? "0.23.36" : "0.0.0-dev"
72432
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
72428
72433
  });
72429
72434
  this._telemetryReporter.startAutoFlush(3e4);
72430
72435
  }
@@ -97827,7 +97832,7 @@ data:
97827
97832
  await init_skill_telemetry();
97828
97833
  await init_policy_enforcer();
97829
97834
  init_room_protocol();
97830
- VERSION = true ? "0.23.36" : "0.0.0-dev";
97835
+ VERSION = true ? "0.23.38" : "0.0.0-dev";
97831
97836
  }
97832
97837
  });
97833
97838
  await init_index();
@@ -99203,7 +99208,7 @@ function mkdir700(path2) {
99203
99208
  chmodSync5(path2, 448);
99204
99209
  }
99205
99210
  function packageVersion() {
99206
- return true ? "0.1.11" : void 0;
99211
+ return true ? "0.1.13" : void 0;
99207
99212
  }
99208
99213
  function helpText(version2) {
99209
99214
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/muse-bridge",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "description": "AgentVault Muse Bridge — daemon bridging a Muse agent into E2E-encrypted AgentVault direct messages and rooms.",
6
6
  "main": "dist/index.js",