@agentvault/agentvault 0.23.24 → 0.23.25

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.
package/dist/index.js CHANGED
@@ -63099,7 +63099,7 @@ var init_mls_kp_pool = __esm({
63099
63099
 
63100
63100
  // src/client-version.ts
63101
63101
  function ownIdentity() {
63102
- const v2 = true ? "0.23.24" : FALLBACK;
63102
+ const v2 = true ? "0.23.25" : FALLBACK;
63103
63103
  return `${PACKAGE}@${v2}`;
63104
63104
  }
63105
63105
  function buildClientVersion(override) {
@@ -65092,7 +65092,7 @@ var init_channel = __esm({
65092
65092
  */
65093
65093
  sendActivitySpan(spanData) {
65094
65094
  if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
65095
- const pluginVersion = true ? "0.23.24" : "0.0.0-dev";
65095
+ const pluginVersion = true ? "0.23.25" : "0.0.0-dev";
65096
65096
  const agentName = this.config.agentName ?? "Agent";
65097
65097
  const resource = {
65098
65098
  "service.name": "agentvault-agent",
@@ -65553,7 +65553,13 @@ var init_channel = __esm({
65553
65553
  const before = this._persisted.groupId;
65554
65554
  this._sessionGroupIds = new Map(mine.map((r2) => [r2.id, r2.group_id]));
65555
65555
  this._persisted.conversationGroupIds = Object.fromEntries(this._sessionGroupIds);
65556
- const primary = mine.find((r2) => r2.id === this._persisted.primaryConversationId) ?? mine[0];
65556
+ const joined = mine.find((r2) => this._persisted.mlsGroups?.[r2.group_id]);
65557
+ const primary = mine.find((r2) => r2.id === this._persisted.primaryConversationId) ?? joined ?? mine[0];
65558
+ if (!mine.some((r2) => r2.id === this._persisted.primaryConversationId)) {
65559
+ console.log(
65560
+ `[SecureChannel] Adopting new primary conversation ${primary.id.slice(0, 8)} (group ${primary.group_id.slice(0, 8)}) \u2014 ${joined ? "we hold MLS state for it" : "no joined conversation found, first active row"}`
65561
+ );
65562
+ }
65557
65563
  this._persisted.groupId = primary.group_id;
65558
65564
  this._persisted.primaryConversationId = primary.id;
65559
65565
  const liveGroupIds = new Set(mine.map((r2) => r2.group_id));
@@ -67005,7 +67011,7 @@ var init_channel = __esm({
67005
67011
  agentVersion: this.config.agentVersion ?? "0.0.0",
67006
67012
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
67007
67013
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
67008
- pluginVersion: true ? "0.23.24" : "0.0.0-dev"
67014
+ pluginVersion: true ? "0.23.25" : "0.0.0-dev"
67009
67015
  });
67010
67016
  this._telemetryReporter.startAutoFlush(3e4);
67011
67017
  }
@@ -67329,7 +67335,7 @@ var init_channel = __esm({
67329
67335
  agentVersion: this.config.agentVersion ?? "0.0.0",
67330
67336
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
67331
67337
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
67332
- pluginVersion: true ? "0.23.24" : "0.0.0-dev"
67338
+ pluginVersion: true ? "0.23.25" : "0.0.0-dev"
67333
67339
  });
67334
67340
  this._telemetryReporter.startAutoFlush(3e4);
67335
67341
  }
@@ -97780,7 +97786,7 @@ var init_index = __esm({
97780
97786
  init_skill_invoker();
97781
97787
  await init_skill_telemetry();
97782
97788
  await init_policy_enforcer();
97783
- VERSION = true ? "0.23.24" : "0.0.0-dev";
97789
+ VERSION = true ? "0.23.25" : "0.0.0-dev";
97784
97790
  }
97785
97791
  });
97786
97792
  await init_index();