@xiaozhi-pro/openclaw-plugin 1.0.8 → 1.0.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.
@@ -48,6 +48,9 @@ export function connectXiaozhiProWs(config) {
48
48
  }
49
49
  // 服务端推送的入站消息
50
50
  if (data.type === "message" || data.type === "response") {
51
+ const text = data.text ?? "";
52
+ const senderId = data.sender_id ?? data.user_id ?? "";
53
+ log?.info?.(`[xiaozhi-pro] 收到消息: type=${data.type}, sender=${senderId}, text=${text.slice(0, 200)}`);
51
54
  // 入站消息,分发给 agent
52
55
  onMessage({
53
56
  type: "message",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaozhi-pro/openclaw-plugin",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "小智Pro (XiaoZhi Pro) channel plugin for OpenClaw via WebSocket",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",