@clawos-dev/clawd 0.2.90 → 0.2.91

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/cli.cjs +9 -4
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -22455,6 +22455,7 @@ function probePtyDataThrottled(tsid, len, tail) {
22455
22455
  }
22456
22456
 
22457
22457
  // src/session/manager.ts
22458
+ var SCREEN_PRELUDE = "\x1B[?1049h\x1B[2J\x1B[H";
22458
22459
  function compressFrameForWire(frame) {
22459
22460
  if (frame.type !== "session:status") return frame;
22460
22461
  const raw = frame;
@@ -23823,18 +23824,22 @@ var SessionManager = class {
23823
23824
  return null;
23824
23825
  }
23825
23826
  const snap = replay();
23826
- const dumpFile = probeDumpReplay(sessionId, snap.data);
23827
+ const data = SCREEN_PRELUDE + snap.data;
23828
+ const dumpFile = probeDumpReplay(sessionId, data);
23827
23829
  probeEvent("replay.dump", {
23828
23830
  sid: sessionId,
23829
23831
  tsid,
23830
- bytes: snap.data.length,
23832
+ rawBytes: snap.data.length,
23833
+ bytes: data.length,
23834
+ preludeBytes: SCREEN_PRELUDE.length,
23835
+ withPrelude: true,
23831
23836
  popupKind: snap.popupKind,
23832
- headHex: Buffer.from(snap.data, "utf8").subarray(0, 32).toString("hex"),
23837
+ headHex: Buffer.from(data, "utf8").subarray(0, 32).toString("hex"),
23833
23838
  dumpFile,
23834
23839
  runnerKeys: Array.from(this.runners.keys()),
23835
23840
  replayMapKeys: Array.from(this.ptyReplaysByToolSid.keys())
23836
23841
  });
23837
- return snap;
23842
+ return { data, popupKind: snap.popupKind };
23838
23843
  }
23839
23844
  /**
23840
23845
  * handler tui:pty:input / tui:pty:resize 入口:传 wire 层 sessionId(16 字符),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.90",
3
+ "version": "0.2.91",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",