@eyeclaw/eyeclaw 2.3.1 → 2.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eyeclaw/eyeclaw",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "EyeClaw plugin for OpenClaw - HTTP SSE streaming + WebSocket client",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -293,8 +293,7 @@ export class EyeClawWebSocketClient {
293
293
  * 发送流式内容块到 Rails
294
294
  */
295
295
  private sendChunk(content: string, sessionId?: string) {
296
- this.send({
297
- type: 'stream_chunk',
296
+ this.sendMessage('stream_chunk', {
298
297
  content,
299
298
  session_id: sessionId,
300
299
  })
@@ -312,7 +311,7 @@ export class EyeClawWebSocketClient {
312
311
  this.send({
313
312
  command: 'message',
314
313
  identifier: channelIdentifier,
315
- data: { type, ...data },
314
+ data: JSON.stringify({ type, ...data }),
316
315
  })
317
316
  }
318
317