@clawos-dev/clawd 0.2.92-beta.171.43f7bdd → 0.2.92-beta.172.142961c

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 +6 -31
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -22455,7 +22455,6 @@ 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";
22459
22458
  function compressFrameForWire(frame) {
22460
22459
  if (frame.type !== "session:status") return frame;
22461
22460
  const raw = frame;
@@ -23824,29 +23823,18 @@ var SessionManager = class {
23824
23823
  return null;
23825
23824
  }
23826
23825
  const snap = replay();
23827
- const data = SCREEN_PRELUDE + snap.data;
23828
- const dumpFile = probeDumpReplay(sessionId, data);
23826
+ const dumpFile = probeDumpReplay(sessionId, snap.data);
23829
23827
  probeEvent("replay.dump", {
23830
23828
  sid: sessionId,
23831
23829
  tsid,
23832
- rawBytes: snap.data.length,
23833
- bytes: data.length,
23834
- preludeBytes: SCREEN_PRELUDE.length,
23835
- withPrelude: true,
23830
+ bytes: snap.data.length,
23836
23831
  popupKind: snap.popupKind,
23837
- headHex: Buffer.from(data, "utf8").subarray(0, 32).toString("hex"),
23832
+ headHex: Buffer.from(snap.data, "utf8").subarray(0, 32).toString("hex"),
23838
23833
  dumpFile,
23839
23834
  runnerKeys: Array.from(this.runners.keys()),
23840
- replayMapKeys: Array.from(this.ptyReplaysByToolSid.keys()),
23841
- bufferType: snap.__probe?.activeType,
23842
- normalLen: snap.__probe?.normalLen,
23843
- alternateLen: snap.__probe?.alternateLen,
23844
- cursorX: snap.__probe?.cursorX,
23845
- cursorY: snap.__probe?.cursorY,
23846
- cols: snap.__probe?.cols,
23847
- rows: snap.__probe?.rows
23835
+ replayMapKeys: Array.from(this.ptyReplaysByToolSid.keys())
23848
23836
  });
23849
- return { data, popupKind: snap.popupKind };
23837
+ return snap;
23850
23838
  }
23851
23839
  /**
23852
23840
  * handler tui:pty:input / tui:pty:resize 入口:传 wire 层 sessionId(16 字符),
@@ -25285,18 +25273,6 @@ function createPopupDetector(opts) {
25285
25273
  },
25286
25274
  serialize() {
25287
25275
  return serializeAddon.serialize({ scrollback: 1e3 });
25288
- },
25289
- __probeBuffer() {
25290
- const active = term.buffer.active;
25291
- return {
25292
- activeType: active.type,
25293
- normalLen: term.buffer.normal.length,
25294
- alternateLen: term.buffer.alternate?.length ?? 0,
25295
- cursorX: active.cursorX,
25296
- cursorY: active.cursorY,
25297
- cols: term.cols,
25298
- rows: term.rows
25299
- };
25300
25276
  }
25301
25277
  };
25302
25278
  }
@@ -25360,8 +25336,7 @@ var ClaudeTuiAdapter = class extends ClaudeAdapter {
25360
25336
  if (ctx.toolSessionId && this.tuiOpts.onPtyReplayRegister) {
25361
25337
  this.tuiOpts.onPtyReplayRegister(ctx.toolSessionId, () => ({
25362
25338
  data: detector.serialize(),
25363
- popupKind: detector.visibleKind,
25364
- __probe: detector.__probeBuffer()
25339
+ popupKind: detector.visibleKind
25365
25340
  }));
25366
25341
  }
25367
25342
  ptyChild.stdout.on("data", (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.92-beta.171.43f7bdd",
3
+ "version": "0.2.92-beta.172.142961c",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",