@agentvault/agentvault 0.19.30 → 0.19.32

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
@@ -48452,6 +48452,7 @@ var init_channel = __esm({
48452
48452
  (ch) => ch.hubAddress === hubAddress
48453
48453
  );
48454
48454
  let channelEntry = allMatches.find((ch) => ch.conversationId) ?? allMatches[0];
48455
+ console.log(`[sendToAgent] lookup hub=${hubAddress} matches=${allMatches.length} entry=${channelEntry ? `ch=${channelEntry.channelId?.slice(0, 8)} session=${!!channelEntry.session} ratchet=${!!channelEntry.session?.ratchetState} role=${channelEntry.role}` : "null"} allChannels=${JSON.stringify(Object.entries(a2a).map(([id, e]) => ({ id: id.slice(0, 8), hub: e.hubAddress, session: !!e.session })))}`);
48455
48456
  if (!channelEntry) {
48456
48457
  try {
48457
48458
  console.log(`[sendToAgent] Channel not found for ${hubAddress}, re-syncing from server...`);
@@ -48565,6 +48566,8 @@ var init_channel = __esm({
48565
48566
  if (!this._persisted.a2aChannels) {
48566
48567
  this._persisted.a2aChannels = {};
48567
48568
  }
48569
+ const existingKeys = Object.keys(this._persisted.a2aChannels);
48570
+ console.log(`[listA2AChannels] PRE-MERGE existing=${existingKeys.length} entries=${JSON.stringify(existingKeys.map((k2) => ({ id: k2.slice(0, 8), session: !!this._persisted.a2aChannels[k2]?.session, ratchet: !!this._persisted.a2aChannels[k2]?.session?.ratchetState })))}`);
48568
48571
  const myHub = this._persisted.hubAddress || "";
48569
48572
  console.log(`[listA2AChannels] myHub=${myHub}, channels=${channels.length}, raw=${JSON.stringify(channels.map((c2) => ({ id: c2.channelId?.slice(0, 8), init: c2.initiatorHubAddress, resp: c2.responderHubAddress, status: c2.status })))}`);
48570
48573
  for (const ch of channels) {