@agentvault/agentvault 0.19.12 → 0.19.13
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/channel.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48562,10 +48562,12 @@ var init_channel = __esm({
|
|
|
48562
48562
|
this._persisted.a2aChannels = {};
|
|
48563
48563
|
}
|
|
48564
48564
|
const myHub = this._persisted.hubAddress || "";
|
|
48565
|
+
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 })))}`);
|
|
48565
48566
|
for (const ch of channels) {
|
|
48566
48567
|
if (ch.status === "active" || ch.status === "approved") {
|
|
48567
48568
|
const isInitiator = myHub ? ch.initiatorHubAddress === myHub : ch.responderHubAddress !== myHub;
|
|
48568
48569
|
const otherAddress = isInitiator ? ch.responderHubAddress : ch.initiatorHubAddress;
|
|
48570
|
+
console.log(`[listA2AChannels] channel=${ch.channelId?.slice(0, 8)} isInitiator=${isInitiator} otherAddress=${otherAddress}`);
|
|
48569
48571
|
const existing = this._persisted.a2aChannels[ch.channelId];
|
|
48570
48572
|
if (existing) {
|
|
48571
48573
|
existing.hubAddress = otherAddress;
|