@vincemakes/kiso-tui-cells 0.40.5 → 0.40.6

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.
@@ -30,7 +30,7 @@ import { displayWidth, visibleWidth, widthCut } from "./width.js";
30
30
  // KEY_BINDINGS). strings.js imports only render/width here, so this edge
31
31
  // adds no cycle.
32
32
  import { displayVerb } from "./strings.js";
33
- import { bannerLines, breathFrame, cutLine, escapeTerminal, stripAnsi, foldThinking, foldThinkingRow, foldResult, renderTerminalGap, renderToolSummary, toolTarget, kUnit, palette, currentGround, } from "./render.js";
33
+ import { bannerLines, breathFrame, cutLine, escapeTerminal, stripAnsi, foldThinking, foldResult, renderTerminalGap, renderToolSummary, toolTarget, kUnit, palette, currentGround, } from "./render.js";
34
34
  // TUI2-MD: the markdown renderer's surface reaches the tui through this
35
35
  // module (the tui's components shim re-exports it) — one import edge,
36
36
  // and it points one way: md.ts measures with the width authority, never
@@ -372,17 +372,14 @@ class ThinkingBlock {
372
372
  const text = escapeTerminal(this.cell.text).trim();
373
373
  if (text === "")
374
374
  return [];
375
- // §2.3 — ctrl+t folded this block. The row is the pipe's own fold,
376
- // fitted: `foldThinkingRow` is the single source of the shape and
377
- // with unlimited room it IS `foldThinking`, so thinking has two
378
- // renderings in the product and not three. It is width-aware here
379
- // because a row must measure ≤ W and the pipe's line does not —
380
- // cutting it from the right would take the `/think` suffix, which
381
- // is the one part of a folded block that says how to read the rest.
382
- // It keeps the block's own indent, so a folded block sits in the
383
- // column an unfolded one does (DC-47).
375
+ // §2.3 / 0.40.6 — ctrl+t hid thinking. Hidden is ONE italic line in
376
+ // the block's own column (DC-47): `thinking…` while it runs,
377
+ // `thinking… · /think` once it settles. The text itself is never
378
+ // drawn, live or settled (0.40.5 folded only settled blocks, into a
379
+ // 100-character preview, while the open one kept streaming). The
380
+ // pipe keeps its own one-line fold (render.ts foldThinking).
384
381
  if (this.cell.folded)
385
- return [`${THINK_COL}${foldThinkingRow(this.cell.text, Math.max(1, W - THINK_COL.length))}`];
382
+ return [`${THINK_COL}${p.dim}${p.italic}${this.cell.done ? "thinking… · /think" : "thinking…"}${p.italicEnd}${p.reset}`];
386
383
  // DC-47 — THINKING GOES ONE LEVEL DEEPER THAN PROSE, and the
387
384
  // reason is a law rather than a taste.
388
385
  //
package/dist/strings.js CHANGED
@@ -468,6 +468,8 @@ const HELP_TABLE = [
468
468
  ["/rewrap", "re-print the recent prose at the current width"],
469
469
  ["/copy", "copy the last answer (raw markdown) — ctrl+x does the same"],
470
470
  ["/status", "show session id, event count, and context estimate"],
471
+ // 0.40.6: what kiso runs with, and where each value came from
472
+ ["/settings", "show the settings in force, each value's source, and how to change it"],
471
473
  // A command with no row is a command nobody can find. `/context` has
472
474
  // been dispatchable since TUI2-R1 slice 6 and was never listed here,
473
475
  // so the only way to learn it existed was to read the source.
@@ -491,7 +493,7 @@ const HELP_TABLE = [
491
493
  // looking for when they look here, even though `!` is not one.
492
494
  // §2.3: the switch belongs beside ctrl+o's job, and a gesture the
493
495
  // sheet does not name is a gesture nobody uses (DC-30, DC-36).
494
- ["ctrl+t", "fold the thinking blocks, and fold them back"],
496
+ ["ctrl+t", "hide thinking to one line, and show it again (remembered)"],
495
497
  // §2.4: the composer, in your own editor. It names the variables
496
498
  // because that is what a reader has to set for it to work.
497
499
  ["ctrl+g", "edit the composer in $VISUAL or $EDITOR — the text comes back unsent"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tui-cells",
3
- "version": "0.40.5",
3
+ "version": "0.40.6",
4
4
  "description": "kiso tui-cells \u2014 the components cell renderer (components, diff, width, the render slice). Zero runtime dependencies: input is data, output is bytes.",
5
5
  "type": "module",
6
6
  "license": "MIT",