@agentvault/agentvault 0.14.8 → 0.14.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/cli.js +3 -1
- package/dist/cli.js.map +2 -2
- package/dist/http-handlers.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +2 -2
- package/dist/openclaw-entry.js +3 -1
- package/dist/openclaw-entry.js.map +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -46017,7 +46017,9 @@ async function handleSendRequest(parsed, channel2) {
|
|
|
46017
46017
|
return { status: 400, body: { ok: false, error: "Missing 'text' field" } };
|
|
46018
46018
|
}
|
|
46019
46019
|
try {
|
|
46020
|
-
if (parsed.
|
|
46020
|
+
if (parsed.hub_address && typeof parsed.hub_address === "string") {
|
|
46021
|
+
await channel2.sendToAgent(parsed.hub_address, text);
|
|
46022
|
+
} else if (parsed.room_id && typeof parsed.room_id === "string") {
|
|
46021
46023
|
await channel2.sendToRoom(parsed.room_id, text, {
|
|
46022
46024
|
messageType: parsed.message_type,
|
|
46023
46025
|
priority: parsed.priority,
|