@agentvault/muse-bridge 0.1.11 → 0.1.12

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 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6149,7 +6149,10 @@ 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 needsUpdatePath = allProposals.length === 0 || allProposals.some(({ proposal }) => {
6153
+ const t2 = proposal.proposalType;
6154
+ return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
6155
+ });
6153
6156
  return {
6154
6157
  tree: mutatedTree,
6155
6158
  pskSecret: updatedPskSecret,
@@ -11460,11 +11463,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
11460
11463
  return null;
11461
11464
  }
11462
11465
  function ownIdentity() {
11463
- const v2 = true ? "0.23.36" : FALLBACK;
11466
+ const v2 = true ? "0.23.37" : FALLBACK;
11464
11467
  return `${PACKAGE}@${v2}`;
11465
11468
  }
11466
11469
  function buildSha() {
11467
- const raw = true ? "56c615c-dirty" : "";
11470
+ const raw = true ? "58c552f-dirty" : "";
11468
11471
  const cleaned = (raw ?? "").trim();
11469
11472
  return !cleaned || cleaned === "unknown" ? null : cleaned;
11470
11473
  }
@@ -70162,7 +70165,7 @@ var init_dist = __esm({
70162
70165
  */
70163
70166
  sendActivitySpan(spanData) {
70164
70167
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
70165
- const pluginVersion = true ? "0.23.36" : "0.0.0-dev";
70168
+ const pluginVersion = true ? "0.23.37" : "0.0.0-dev";
70166
70169
  const agentName = this.config.agentName ?? "Agent";
70167
70170
  const resource = {
70168
70171
  "service.name": "agentvault-agent",
@@ -72100,7 +72103,7 @@ var init_dist = __esm({
72100
72103
  agentVersion: this.config.agentVersion ?? "0.0.0",
72101
72104
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
72102
72105
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
72103
- pluginVersion: true ? "0.23.36" : "0.0.0-dev"
72106
+ pluginVersion: true ? "0.23.37" : "0.0.0-dev"
72104
72107
  });
72105
72108
  this._telemetryReporter.startAutoFlush(3e4);
72106
72109
  }
@@ -72424,7 +72427,7 @@ var init_dist = __esm({
72424
72427
  agentVersion: this.config.agentVersion ?? "0.0.0",
72425
72428
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
72426
72429
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
72427
- pluginVersion: true ? "0.23.36" : "0.0.0-dev"
72430
+ pluginVersion: true ? "0.23.37" : "0.0.0-dev"
72428
72431
  });
72429
72432
  this._telemetryReporter.startAutoFlush(3e4);
72430
72433
  }
@@ -97827,7 +97830,7 @@ data:
97827
97830
  await init_skill_telemetry();
97828
97831
  await init_policy_enforcer();
97829
97832
  init_room_protocol();
97830
- VERSION = true ? "0.23.36" : "0.0.0-dev";
97833
+ VERSION = true ? "0.23.37" : "0.0.0-dev";
97831
97834
  }
97832
97835
  });
97833
97836
  await init_index();
@@ -99203,7 +99206,7 @@ function mkdir700(path2) {
99203
99206
  chmodSync5(path2, 448);
99204
99207
  }
99205
99208
  function packageVersion() {
99206
- return true ? "0.1.11" : void 0;
99209
+ return true ? "0.1.12" : void 0;
99207
99210
  }
99208
99211
  function helpText(version2) {
99209
99212
  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.12",
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",