@ynhcj/xiaoyi 2.4.5 → 2.4.6

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.
Files changed (2) hide show
  1. package/dist/channel.js +16 -0
  2. package/package.json +1 -1
package/dist/channel.js CHANGED
@@ -371,6 +371,22 @@ exports.xiaoyiPlugin = {
371
371
  const completeText = payload.text || "";
372
372
  accumulatedText = completeText;
373
373
  const kind = info.kind; // "tool" | "block" | "final"
374
+ // ==================== DEBUG LOG - ENTRY POINT ====================
375
+ // Log EVERY call to deliver with full details
376
+ console.log("\n" + "█".repeat(70));
377
+ console.log(`📨 [DELIVER ENTRY] deliver() callback invoked`);
378
+ console.log(` Session: ${sessionId}`);
379
+ console.log(` Elapsed: ${elapsed}ms`);
380
+ console.log(` Kind: "${kind}"`);
381
+ console.log(` Text length: ${completeText.length} chars`);
382
+ console.log(` Sent so far: ${sentTextLength} chars`);
383
+ if (completeText.length > 0) {
384
+ console.log(` Text preview: "${completeText.substring(0, 80)}${completeText.length > 80 ? "..." : ""}"`);
385
+ }
386
+ console.log(` Full info object:`, JSON.stringify(info, null, 2));
387
+ console.log(` Full payload keys:`, Object.keys(payload));
388
+ console.log("█".repeat(70) + "\n");
389
+ // =================================================================
374
390
  // Check if session was aborted
375
391
  if (runtime.isSessionAborted(sessionId)) {
376
392
  console.log("\n" + "=".repeat(60));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "description": "XiaoYi channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",