@crazyhappyone/dsh-tui 0.1.0-alpha.13 → 0.1.0-alpha.14

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/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -71655,14 +71655,17 @@ function transcriptOverlay(tier, synchronizedFrameEnded) {
71655
71655
  }
71656
71656
  return cells === "" ? "" : `\x1B7${cells}\x1B8`;
71657
71657
  }
71658
+ const railCol = next.geometry.rail?.col ?? next.geometry.columns;
71659
+ const guardCol = railCol > 1 ? railCol - 1 : railCol;
71658
71660
  for (const change of diff2.changes) {
71659
71661
  const nextWidth = change.line === void 0 ? 0 : change.line.backgroundColumns ?? change.line.displayWidth;
71660
- const staleColumns = change.clearColumns - nextWidth;
71662
+ const targetColumns = Math.max(change.clearColumns, guardCol - change.col);
71663
+ const padColumns = targetColumns - nextWidth;
71661
71664
  if (change.line !== void 0) {
71662
71665
  cells += `\x1B[${String(change.row)};${String(change.col)}H` + paintPhysicalLine(change.line, tier);
71663
71666
  }
71664
- if (staleColumns > 0) {
71665
- cells += `\x1B[${String(change.row)};${String(change.col + nextWidth)}H` + styled(" ".repeat(staleColumns), "bg", tier);
71667
+ if (padColumns > 0) {
71668
+ cells += `\x1B[${String(change.row)};${String(change.col + nextWidth)}H` + styled(" ".repeat(padColumns), "bg", tier);
71666
71669
  }
71667
71670
  }
71668
71671
  return cells === "" ? "" : `\x1B7${cells}\x1B8`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crazyhappyone/dsh-tui",
3
- "version": "0.1.0-alpha.13",
3
+ "version": "0.1.0-alpha.14",
4
4
  "description": "Source-runtime launcher for the DeepSeek Harness terminal interface",
5
5
  "type": "module",
6
6
  "license": "MIT",