@vincemakes/kiso-tui 0.1.33 → 0.1.34

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.
@@ -165,7 +165,10 @@ class UserMessage {
165
165
  }
166
166
  }
167
167
  /** The thinking fold — one dim line, width-capped so the /think suffix
168
- * rides the fold's own row (the #17 fix's slice, componentized). */
168
+ * rides the fold's own row (the #17 fix's slice, componentized). The
169
+ * slice is DISPLAY-WIDTH-based (the char-based slice overflowed with
170
+ * CJK — 2 cells per char — and tripped invariant ① on a real
171
+ * Chinese session). */
169
172
  class ThinkingFold {
170
173
  cell;
171
174
  constructor(cell) {
@@ -178,7 +181,7 @@ class ThinkingFold {
178
181
  return [`${palette().dim}…${trimmed}${palette().reset}`];
179
182
  const suffix = ` (${block.length} chars · /think)`;
180
183
  const slice = Math.max(1, W - 1 - suffix.length);
181
- return [`${palette().dim}…${trimmed.slice(0, slice)}${suffix}${palette().reset}`];
184
+ return [`${palette().dim}…${widthCut(trimmed, slice)}${suffix}${palette().reset}`];
182
185
  }
183
186
  }
184
187
  /** The tool execution line + the approval mini-diff — every state is
@@ -681,7 +681,9 @@ export class Body {
681
681
  out.push("\n");
682
682
  }
683
683
  else {
684
- out.push("\x1b[1B"); // to the footer row
684
+ // no commits — jump from the anchor (H−2) straight to the
685
+ // bottom row H (the commit path's LFs left the cursor there)
686
+ out.push("\x1b[2B");
685
687
  }
686
688
  // the bottom-up repaint, from the last row up — V6-3: the design
687
689
  // §03 chrome: status (H), lower ╌ (H−1), input (H−2), upper ╌ (H−3)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tui",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "kiso tui — the pure terminal layer (cell renderer, dock, raw editor, diff, palette). Zero runtime dependencies: input is data, output is bytes.",
5
5
  "type": "module",
6
6
  "license": "MIT",