@agentvault/agentvault 0.20.11 → 0.20.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.
package/dist/index.js CHANGED
@@ -67255,9 +67255,10 @@ ${messageText}`;
67255
67255
  { headers: { Authorization: `Bearer ${this._deviceJwt}` } }
67256
67256
  );
67257
67257
  if (!kpRes.ok) continue;
67258
- const kpArr = await kpRes.json();
67259
- if (kpArr.length === 0) continue;
67260
- const kpBytes = new Uint8Array(Buffer.from(kpArr[0].key_package, "hex"));
67258
+ const kpData = await kpRes.json();
67259
+ const kpHex = kpData[req.requesting_device_id];
67260
+ if (!kpHex) continue;
67261
+ const kpBytes = new Uint8Array(Buffer.from(kpHex, "hex"));
67261
67262
  const memberKp = MLSGroupManager.deserializeKeyPackage(kpBytes);
67262
67263
  const { commit, welcome } = await mlsGroup.addMembers([memberKp]);
67263
67264
  if (welcome) {
@@ -94552,7 +94553,7 @@ var init_index = __esm({
94552
94553
  init_skill_invoker();
94553
94554
  await init_skill_telemetry();
94554
94555
  await init_policy_enforcer();
94555
- VERSION = true ? "0.20.11" : "0.0.0-dev";
94556
+ VERSION = true ? "0.20.12" : "0.0.0-dev";
94556
94557
  }
94557
94558
  });
94558
94559
  await init_index();