@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.
- package/dist/src/ws-client.js +3 -0
- package/package.json +1 -1
package/dist/src/ws-client.js
CHANGED
|
@@ -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",
|