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: stored as conversation context (future use)
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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AgentCore,
4
4
  RelayAgent
5
- } from "./chunk-GMXVVWU2.js";
5
+ } from "./chunk-WJ6F525H.js";
6
6
  import "./chunk-STI2237I.js";
7
7
 
8
8
  // src/service/platform.ts
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  VmManager,
21
21
  buildAppRequestPrompt,
22
22
  restartOpenClaw
23
- } from "./chunk-GMXVVWU2.js";
23
+ } from "./chunk-WJ6F525H.js";
24
24
  import {
25
25
  SessionStore
26
26
  } from "./chunk-STI2237I.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoclaw-relay-agent",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "EchoClaw Relay Connection — E2E encrypted relay transport, pairing, and session management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",