@vincemakes/kiso-tui 0.21.0 → 0.22.0
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.
- package/dist/ask-panel.js +1 -1
- package/dist/compositor.js +13 -2
- package/dist/render.js +1 -1
- package/package.json +2 -2
package/dist/ask-panel.js
CHANGED
|
@@ -510,7 +510,7 @@ export function askView(spec) {
|
|
|
510
510
|
speaker: "kiso",
|
|
511
511
|
statusText: "❯ a question for you",
|
|
512
512
|
args: { kind: "text", lines: askDeclineList(spec) },
|
|
513
|
-
fallbackQuestion:
|
|
513
|
+
fallbackQuestion: `${escapeTerminal(first.question)} — this terminal cannot show the option panel; the question is declined `,
|
|
514
514
|
ask: spec,
|
|
515
515
|
};
|
|
516
516
|
}
|
package/dist/compositor.js
CHANGED
|
@@ -2849,6 +2849,17 @@ export class Body {
|
|
|
2849
2849
|
#space(i, prev, rows) {
|
|
2850
2850
|
if (i > 0 && this.#cells[i]?.kind === "md" && this.#cells[i - 1]?.kind === "md")
|
|
2851
2851
|
return rows;
|
|
2852
|
+
// R7a, extended to the SETTLED side (R9 P2 / D4). R7a made the LIVE
|
|
2853
|
+
// block claim the spacing its fold will take, so a settle changed a
|
|
2854
|
+
// row's content and not its position. That held while a settled
|
|
2855
|
+
// tool cell was one row; D4 makes it five, and `bodySpacing` gives a
|
|
2856
|
+
// blank for a multi-row cell — so the blank appeared at the settle
|
|
2857
|
+
// and pushed the head row down by one, which is the exact defect
|
|
2858
|
+
// R7a closed. A tool cell is spaced by the ONE-ROW stand-in on both
|
|
2859
|
+
// sides now: the fold is what every form of this cell is spaced
|
|
2860
|
+
// against, live, settled and folded alike.
|
|
2861
|
+
if (this.#cells[i]?.kind === "tool")
|
|
2862
|
+
return [...bodySpacing(this.#lastDrawn(i, prev), ["x"]).slice(0, -1), ...rows];
|
|
2852
2863
|
return bodySpacing(this.#lastDrawn(i, prev), rows);
|
|
2853
2864
|
}
|
|
2854
2865
|
/**
|
|
@@ -3161,7 +3172,7 @@ export class Body {
|
|
|
3161
3172
|
if (cell.kind !== "tool" || !isExploreTool(cell.name))
|
|
3162
3173
|
return false;
|
|
3163
3174
|
// the run is still growing while NOTHING but explore cells follow —
|
|
3164
|
-
// the turn-less noise cells (permission raws,
|
|
3175
|
+
// the turn-less noise cells (permission raws, notices) are
|
|
3165
3176
|
// transparent here for the same reason the run scan sees through
|
|
3166
3177
|
// them: the streaming execution interleaves them between the calls.
|
|
3167
3178
|
for (let j = i + 1; j < this.#cells.length; j += 1) {
|
|
@@ -3270,7 +3281,7 @@ export class Body {
|
|
|
3270
3281
|
// split every real burst into fragments. Writes, edits, shells and
|
|
3271
3282
|
// extension tools still break the run at the first one.
|
|
3272
3283
|
// the maximal read-only run around i — forward/backward scans over
|
|
3273
|
-
// the cells. The turn-less noise cells (the permission raws, the
|
|
3284
|
+
// the cells. The turn-less noise cells (the permission raws, the
|
|
3274
3285
|
// notices) are TRANSPARENT: the streaming execution (loop.ts launch)
|
|
3275
3286
|
// interleaves them BETWEEN the calls of one burst, so the run must
|
|
3276
3287
|
// see through them. It never crosses a user/text/thinking cell —
|
package/dist/render.js
CHANGED
|
@@ -100,7 +100,7 @@ export function renderEvent(ev, prevThinking = false, resolvePath = (p) => p) {
|
|
|
100
100
|
return { text: `${p.dim} [summarized up to seq ${ev.coversToSeq}]${p.reset}\n`, newline: true, prompt: false };
|
|
101
101
|
case "uncertain_pending":
|
|
102
102
|
return {
|
|
103
|
-
text: `${p.red}
|
|
103
|
+
text: `${p.red}${escapeTerminal(ev.name)} failed (${ev.executionId}): ${escapeTerminal(ev.error.slice(0, 160))}${p.reset}\n`,
|
|
104
104
|
newline: true,
|
|
105
105
|
prompt: false,
|
|
106
106
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
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",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/vincemakes/kiso/tree/main/packages/tui#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@vincemakes/kiso-tui-cells": "0.
|
|
38
|
+
"@vincemakes/kiso-tui-cells": "0.22.0"
|
|
39
39
|
}
|
|
40
40
|
}
|