echoclaw-relay-agent 0.32.0 → 0.32.1
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.
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* Message types handled:
|
|
21
21
|
* - chat: forwarded to OpenClaw via chat.send RPC
|
|
22
|
-
* - system_prompt:
|
|
22
|
+
* - system_prompt: sent to OpenClaw as system-role message via chat.send
|
|
23
23
|
* - chat_abort: cancels current AI generation
|
|
24
24
|
*
|
|
25
25
|
* Response types sent back to desktop:
|
|
@@ -5759,8 +5759,22 @@ var ChatHandler = class _ChatHandler {
|
|
|
5759
5759
|
case "chat":
|
|
5760
5760
|
await this._handleChat(payload, sendBack);
|
|
5761
5761
|
break;
|
|
5762
|
-
case "system_prompt":
|
|
5762
|
+
case "system_prompt": {
|
|
5763
|
+
const promptText = payload.content || payload.message || "";
|
|
5764
|
+
if (!promptText.trim()) break;
|
|
5765
|
+
try {
|
|
5766
|
+
await this.wsClient.request("chat.send", {
|
|
5767
|
+
sessionKey: this.sessionKey,
|
|
5768
|
+
message: promptText,
|
|
5769
|
+
role: "system",
|
|
5770
|
+
idempotencyKey: crypto3.randomUUID()
|
|
5771
|
+
}, this.requestTimeoutMs);
|
|
5772
|
+
console.log(" [chat] system_prompt sent to OpenClaw");
|
|
5773
|
+
} catch (err) {
|
|
5774
|
+
console.error(" [chat] system_prompt failed:", err.message);
|
|
5775
|
+
}
|
|
5763
5776
|
break;
|
|
5777
|
+
}
|
|
5764
5778
|
case "chat_abort":
|
|
5765
5779
|
await this._handleChatAbort(sendBack);
|
|
5766
5780
|
break;
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED