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

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 +22 -2
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -23837,7 +23837,14 @@ var SessionManager = class {
23837
23837
  headHex: Buffer.from(data, "utf8").subarray(0, 32).toString("hex"),
23838
23838
  dumpFile,
23839
23839
  runnerKeys: Array.from(this.runners.keys()),
23840
- replayMapKeys: Array.from(this.ptyReplaysByToolSid.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
23841
23848
  });
23842
23849
  return { data, popupKind: snap.popupKind };
23843
23850
  }
@@ -25278,6 +25285,18 @@ function createPopupDetector(opts) {
25278
25285
  },
25279
25286
  serialize() {
25280
25287
  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
+ };
25281
25300
  }
25282
25301
  };
25283
25302
  }
@@ -25341,7 +25360,8 @@ var ClaudeTuiAdapter = class extends ClaudeAdapter {
25341
25360
  if (ctx.toolSessionId && this.tuiOpts.onPtyReplayRegister) {
25342
25361
  this.tuiOpts.onPtyReplayRegister(ctx.toolSessionId, () => ({
25343
25362
  data: detector.serialize(),
25344
- popupKind: detector.visibleKind
25363
+ popupKind: detector.visibleKind,
25364
+ __probe: detector.__probeBuffer()
25345
25365
  }));
25346
25366
  }
25347
25367
  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.91",
3
+ "version": "0.2.92-beta.171.43f7bdd",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",