@agentvault/agentvault 0.19.20 → 0.19.21
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 +13 -6
- package/dist/cli.js.map +2 -2
- package/dist/index.js +13 -6
- package/dist/index.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48542,12 +48542,19 @@ var init_channel = __esm({
|
|
|
48542
48542
|
if (this._persisted.hubAddress) {
|
|
48543
48543
|
payload.hub_address = this._persisted.hubAddress;
|
|
48544
48544
|
}
|
|
48545
|
-
|
|
48546
|
-
|
|
48547
|
-
|
|
48548
|
-
|
|
48549
|
-
|
|
48550
|
-
|
|
48545
|
+
const a2aJson = JSON.stringify({ event: "a2a_message", data: payload });
|
|
48546
|
+
console.log(`[sendToAgent] Sending A2A plaintext: conv=${payload.conversation_id} wsReady=${this._ws.readyState} bytes=${a2aJson.length}`);
|
|
48547
|
+
await new Promise((resolve3, reject) => {
|
|
48548
|
+
this._ws.send(a2aJson, (err) => {
|
|
48549
|
+
if (err) {
|
|
48550
|
+
console.error(`[sendToAgent] WS send failed:`, err);
|
|
48551
|
+
reject(err);
|
|
48552
|
+
} else {
|
|
48553
|
+
console.log(`[sendToAgent] WS send confirmed`);
|
|
48554
|
+
resolve3();
|
|
48555
|
+
}
|
|
48556
|
+
});
|
|
48557
|
+
});
|
|
48551
48558
|
}
|
|
48552
48559
|
/**
|
|
48553
48560
|
* List all A2A channels for this agent.
|