@eyeclaw/eyeclaw 2.3.7 → 2.3.8
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 +1 -1
- package/src/http-handler.ts +2 -0
- package/src/websocket-client.ts +2 -0
package/package.json
CHANGED
package/src/http-handler.ts
CHANGED
|
@@ -152,6 +152,8 @@ export function createHttpHandler(api: OpenClawPluginApi, getConfig: () => EyeCl
|
|
|
152
152
|
const chunk = JSON.parse(data)
|
|
153
153
|
const content = chunk.choices?.[0]?.delta?.content
|
|
154
154
|
if (content) {
|
|
155
|
+
const timestamp = new Date().toISOString();
|
|
156
|
+
logger.info(`[EyeClaw] [${timestamp}] SSE chunk: "${content}"`);
|
|
155
157
|
res.write(formatSSE('stream_chunk', { stream_id: currentStreamId, content }))
|
|
156
158
|
}
|
|
157
159
|
} catch { /* ignore */ }
|
package/src/websocket-client.ts
CHANGED
|
@@ -310,6 +310,8 @@ export class EyeClawWebSocketClient {
|
|
|
310
310
|
* 发送流式内容块到 Rails
|
|
311
311
|
*/
|
|
312
312
|
private sendChunk(content: string, sessionId?: string) {
|
|
313
|
+
const timestamp = new Date().toISOString();
|
|
314
|
+
this.api.logger.info(`[EyeClaw] [${timestamp}] Sending chunk to Rails: "${content}"`);
|
|
313
315
|
this.sendMessage('stream_chunk', {
|
|
314
316
|
content,
|
|
315
317
|
session_id: sessionId,
|