@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/cli.js +3 -0
- package/dist/cli.js.map +3 -3
- package/dist/index.js +3 -0
- package/dist/index.js.map +3 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -48391,6 +48391,7 @@ var init_channel = __esm({
|
|
|
48391
48391
|
(ch) => ch.hubAddress === hubAddress
|
|
48392
48392
|
);
|
|
48393
48393
|
let channelEntry = allMatches.find((ch) => ch.conversationId) ?? allMatches[0];
|
|
48394
|
+
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 })))}`);
|
|
48394
48395
|
if (!channelEntry) {
|
|
48395
48396
|
try {
|
|
48396
48397
|
console.log(`[sendToAgent] Channel not found for ${hubAddress}, re-syncing from server...`);
|
|
@@ -48504,6 +48505,8 @@ var init_channel = __esm({
|
|
|
48504
48505
|
if (!this._persisted.a2aChannels) {
|
|
48505
48506
|
this._persisted.a2aChannels = {};
|
|
48506
48507
|
}
|
|
48508
|
+
const existingKeys = Object.keys(this._persisted.a2aChannels);
|
|
48509
|
+
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 })))}`);
|
|
48507
48510
|
const myHub = this._persisted.hubAddress || "";
|
|
48508
48511
|
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 })))}`);
|
|
48509
48512
|
for (const ch of channels) {
|