@agentvault/agentvault 0.19.8 → 0.19.9

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
@@ -47942,9 +47942,11 @@ var init_channel = __esm({
47942
47942
  }
47943
47943
  resolved = { kind: "room", id: target.roomId };
47944
47944
  } else if (target.kind === "a2a") {
47945
- const channelEntry = this._persisted?.a2aChannels ? Object.values(this._persisted.a2aChannels).find((ch) => ch.hubAddress === target.hubAddress) : void 0;
47945
+ const a2aEntries = this._persisted?.a2aChannels ? Object.values(this._persisted.a2aChannels) : [];
47946
+ const channelEntry = a2aEntries.find((ch) => ch.hubAddress === target.hubAddress);
47946
47947
  if (!channelEntry) {
47947
- const err = `No A2A channel found for hub address: ${target.hubAddress}`;
47948
+ const storedAddresses = a2aEntries.map((ch) => ch.hubAddress).join(", ") || "(none)";
47949
+ const err = `No A2A channel found for hub address: ${target.hubAddress} (stored: ${storedAddresses})`;
47948
47950
  console.log(`[deliver] target=a2a:${target.hubAddress} content=${content.type} result=FAIL: ${err}`);
47949
47951
  return { ok: false, destination: { kind: "a2a", id: target.hubAddress }, error: err, timestamp: ts };
47950
47952
  }