@agentvault/muse-bridge 0.1.12 → 0.1.14

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 +18 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6149,10 +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 || allProposals.some(({ proposal }) => {
6152
+ const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
6153
6153
  const t2 = proposal.proposalType;
6154
6154
  return t2 !== "add" && t2 !== "psk" && t2 !== "reinit";
6155
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;
6156
6158
  return {
6157
6159
  tree: mutatedTree,
6158
6160
  pskSecret: updatedPskSecret,
@@ -11463,11 +11465,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
11463
11465
  return null;
11464
11466
  }
11465
11467
  function ownIdentity() {
11466
- const v2 = true ? "0.23.37" : FALLBACK;
11468
+ const v2 = true ? "0.23.38" : FALLBACK;
11467
11469
  return `${PACKAGE}@${v2}`;
11468
11470
  }
11469
11471
  function buildSha() {
11470
- const raw = true ? "58c552f-dirty" : "";
11472
+ const raw = true ? "c0acb44-dirty" : "";
11471
11473
  const cleaned = (raw ?? "").trim();
11472
11474
  return !cleaned || cleaned === "unknown" ? null : cleaned;
11473
11475
  }
@@ -70165,7 +70167,7 @@ var init_dist = __esm({
70165
70167
  */
70166
70168
  sendActivitySpan(spanData) {
70167
70169
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
70168
- const pluginVersion = true ? "0.23.37" : "0.0.0-dev";
70170
+ const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
70169
70171
  const agentName = this.config.agentName ?? "Agent";
70170
70172
  const resource = {
70171
70173
  "service.name": "agentvault-agent",
@@ -72103,7 +72105,7 @@ var init_dist = __esm({
72103
72105
  agentVersion: this.config.agentVersion ?? "0.0.0",
72104
72106
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
72105
72107
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
72106
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
72108
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
72107
72109
  });
72108
72110
  this._telemetryReporter.startAutoFlush(3e4);
72109
72111
  }
@@ -72427,7 +72429,7 @@ var init_dist = __esm({
72427
72429
  agentVersion: this.config.agentVersion ?? "0.0.0",
72428
72430
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
72429
72431
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
72430
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
72432
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
72431
72433
  });
72432
72434
  this._telemetryReporter.startAutoFlush(3e4);
72433
72435
  }
@@ -97830,7 +97832,7 @@ data:
97830
97832
  await init_skill_telemetry();
97831
97833
  await init_policy_enforcer();
97832
97834
  init_room_protocol();
97833
- VERSION = true ? "0.23.37" : "0.0.0-dev";
97835
+ VERSION = true ? "0.23.38" : "0.0.0-dev";
97834
97836
  }
97835
97837
  });
97836
97838
  await init_index();
@@ -98318,7 +98320,8 @@ var MuseSession = class {
98318
98320
  this.queue.push({
98319
98321
  text,
98320
98322
  reply,
98321
- autoReplyOnText: opts?.replyExpected ?? opts?.autoReplyOnText
98323
+ autoReplyOnText: opts?.replyExpected ?? opts?.autoReplyOnText,
98324
+ sayAllowed: opts?.replyExpected ?? true
98322
98325
  });
98323
98326
  if (!this.running) this.drain = this.run();
98324
98327
  }
@@ -98329,6 +98332,12 @@ var MuseSession = class {
98329
98332
  this.log(`say arrived with no turn in flight; DROPPED: ${JSON.stringify(text.slice(0, 80))}`);
98330
98333
  return;
98331
98334
  }
98335
+ if (!this.current.sayAllowed) {
98336
+ this.log(
98337
+ `say during a turn this agent does not owe (no @mention) \u2014 SUPPRESSED: ${JSON.stringify(text.slice(0, 80))}`
98338
+ );
98339
+ return;
98340
+ }
98332
98341
  this.saidThisTurn = true;
98333
98342
  const sink = this.current.reply ?? this.opts.onSay;
98334
98343
  if (!sink) {
@@ -99206,7 +99215,7 @@ function mkdir700(path2) {
99206
99215
  chmodSync5(path2, 448);
99207
99216
  }
99208
99217
  function packageVersion() {
99209
- return true ? "0.1.12" : void 0;
99218
+ return true ? "0.1.14" : void 0;
99210
99219
  }
99211
99220
  function helpText(version2) {
99212
99221
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/muse-bridge",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
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",