@agentvault/claude-bridge 0.8.10 → 0.8.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
@@ -52059,10 +52059,12 @@ async function applyProposals(state, proposals, committerLeafIndex, pskSearch, s
52059
52059
  const [mutatedTree, addedLeafNodes] = await applyTreeMutations(state.ratchetTree, grouped, state.groupContext, sentByClient, state.clientConfig.authService, state.clientConfig.lifetimeConfig, cs.signature);
52060
52060
  const [updatedPskSecret, pskIds] = await accumulatePskSecret(grouped.psk.map((p2) => p2.proposal.psk.preSharedKeyId), pskSearch, cs, zeroes);
52061
52061
  const selfRemoved = mutatedTree[leafToNodeIndex(toLeafIndex(state.privatePath.leafIndex))] === void 0;
52062
- const needsUpdatePath = allProposals.length === 0 || allProposals.some(({ proposal }) => {
52062
+ const pathRequiredByRfc = allProposals.length === 0 || allProposals.some(({ proposal }) => {
52063
52063
  const t22 = proposal.proposalType;
52064
52064
  return t22 !== "add" && t22 !== "psk" && t22 !== "reinit";
52065
52065
  });
52066
+ const pathRequiredLegacy = allProposals.length === 0 || Object.values(grouped.update).length > 1 || Object.values(grouped.remove).length > 1;
52067
+ const needsUpdatePath = sentByClient ? pathRequiredByRfc : pathRequiredLegacy;
52066
52068
  return {
52067
52069
  tree: mutatedTree,
52068
52070
  pskSecret: updatedPskSecret,
@@ -64610,11 +64612,11 @@ var init_mls_kp_pool = __esm2({
64610
64612
  }
64611
64613
  });
64612
64614
  function ownIdentity() {
64613
- const v22 = true ? "0.23.37" : FALLBACK;
64615
+ const v22 = true ? "0.23.38" : FALLBACK;
64614
64616
  return `${PACKAGE}@${v22}`;
64615
64617
  }
64616
64618
  function buildSha() {
64617
- const raw = true ? "58c552f-dirty" : "";
64619
+ const raw = true ? "a6ce360-dirty" : "";
64618
64620
  const cleaned = (raw ?? "").trim();
64619
64621
  return !cleaned || cleaned === "unknown" ? null : cleaned;
64620
64622
  }
@@ -66812,7 +66814,7 @@ var init_channel = __esm2({
66812
66814
  */
66813
66815
  sendActivitySpan(spanData) {
66814
66816
  if (!this._ws || this._ws.readyState !== WebSocket2.OPEN) return;
66815
- const pluginVersion = true ? "0.23.37" : "0.0.0-dev";
66817
+ const pluginVersion = true ? "0.23.38" : "0.0.0-dev";
66816
66818
  const agentName = this.config.agentName ?? "Agent";
66817
66819
  const resource = {
66818
66820
  "service.name": "agentvault-agent",
@@ -68750,7 +68752,7 @@ var init_channel = __esm2({
68750
68752
  agentVersion: this.config.agentVersion ?? "0.0.0",
68751
68753
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
68752
68754
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
68753
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
68755
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
68754
68756
  });
68755
68757
  this._telemetryReporter.startAutoFlush(3e4);
68756
68758
  }
@@ -69074,7 +69076,7 @@ var init_channel = __esm2({
69074
69076
  agentVersion: this.config.agentVersion ?? "0.0.0",
69075
69077
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
69076
69078
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
69077
- pluginVersion: true ? "0.23.37" : "0.0.0-dev"
69079
+ pluginVersion: true ? "0.23.38" : "0.0.0-dev"
69078
69080
  });
69079
69081
  this._telemetryReporter.startAutoFlush(3e4);
69080
69082
  }
@@ -99524,7 +99526,7 @@ var init_index = __esm2({
99524
99526
  await init_skill_telemetry();
99525
99527
  await init_policy_enforcer();
99526
99528
  init_room_protocol();
99527
- VERSION = true ? "0.23.37" : "0.0.0-dev";
99529
+ VERSION = true ? "0.23.38" : "0.0.0-dev";
99528
99530
  }
99529
99531
  });
99530
99532
  await init_index();
@@ -135928,7 +135930,7 @@ async function main() {
135928
135930
  "[bridge] warning: passing the invite token on the command line is visible to other local users via 'ps'. Prefer: AV_INVITE_TOKEN=\u2026 npx @agentvault/claude-bridge"
135929
135931
  );
135930
135932
  }
135931
- logLine(`[bridge] version: ${true ? "0.8.10" : "dev"}`);
135933
+ logLine(`[bridge] version: ${true ? "0.8.11" : "dev"}`);
135932
135934
  logLine(`[bridge] data dir: ${cfg.dataDir} (${cfg.dataDirSource})`);
135933
135935
  logLine(`[bridge] workspace: ${cfg.workspaceDir} \xB7 permissions: ${cfg.permissionMode} \xB7 enclave dir fenced`);
135934
135936
  if (cfg.armRoom) {
@@ -135960,7 +135962,7 @@ async function main() {
135960
135962
  // its default would render "@agentvault/agentvault@0.7.x" — the wrong
135961
135963
  // package name attached to the bridge's version number, which is worse
135962
135964
  // than either alone.
135963
- clientVersion: `@agentvault/claude-bridge@${true ? "0.8.10" : "dev"}`
135965
+ clientVersion: `@agentvault/claude-bridge@${true ? "0.8.11" : "dev"}`
135964
135966
  });
135965
135967
  const agentSystemPrompt = cfg.systemPrompt ?? `You are ${cfg.agentName}, an AI agent on AgentVault. You talk with your owner in 1:1 direct messages and collaborate with other agents in shared rooms. That is your identity \u2014 introduce yourself by that name and do not claim to be any other agent. To speak, call the say tool. In a 1:1 with your owner, reply to what they say. In a room you see every message \u2014 call say only when you have something worth adding, and otherwise stay silent. Keep messages concise.`;
135966
135968
  const deviceJwt = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/claude-bridge",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "type": "module",
5
5
  "description": "AgentVault Claude Bridge — daemon for bridging a Claude agent into secure E2E-encrypted AgentVault 1:1 direct messages and rooms.",
6
6
  "main": "dist/index.js",