@vincemakes/kiso-tui 0.38.0 → 0.39.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/lines.d.ts +0 -15
- package/dist/lines.js +2 -1
- package/package.json +2 -2
package/dist/lines.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event rendering for the terminal. Pure (testable): given the render
|
|
3
|
-
* input, produce the lines a human sees. Colors are raw ANSI — no
|
|
4
|
-
* dependencies.
|
|
5
|
-
*
|
|
6
|
-
* the ergonomics batch C5: the input is the tui's OWN data shape (RenderInput), never
|
|
7
|
-
* kiso-core's Event — the CLI translates Event → RenderInput. The tui
|
|
8
|
-
* package has ZERO kiso-core imports: input is data, output is bytes.
|
|
9
|
-
*
|
|
10
|
-
* ADR-0043 Amendment 4: the cell-rendering slice (the twelve helpers
|
|
11
|
-
* components.ts imports) moved to tui-cells — this module re-exports
|
|
12
|
-
* it (compositor.ts and index.ts's imports stay verbatim) and keeps
|
|
13
|
-
* the event renderers (renderEvent, the status line, the recap, the
|
|
14
|
-
* session line).
|
|
15
|
-
*/
|
|
16
1
|
export * from "@vincemakes/kiso-tui-cells/render";
|
|
17
2
|
/** The canonical-path resolver for the approval detail — injected by the
|
|
18
3
|
* caller (the CLI passes the tools' own resolution). The tui package is
|
package/dist/lines.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { elapsedLabel } from "@vincemakes/kiso-tui-cells";
|
|
1
2
|
/**
|
|
2
3
|
* Event rendering for the terminal. Pure (testable): given the render
|
|
3
4
|
* input, produce the lines a human sees. Colors are raw ANSI — no
|
|
@@ -209,7 +210,7 @@ export function renderRecap(s) {
|
|
|
209
210
|
: s.tools !== undefined && s.tools > 0
|
|
210
211
|
? [`${s.tools} tool${s.tools === 1 ? "" : "s"}${edits > 0 ? ` (${edits} edit${edits === 1 ? "" : "s"})` : ""}`]
|
|
211
212
|
: [];
|
|
212
|
-
const parts = [`took ${s.seconds}
|
|
213
|
+
const parts = [`took ${elapsedLabel(s.seconds)}`, ...work];
|
|
213
214
|
if (s.usage.known) {
|
|
214
215
|
const seg = `${s.usage.in !== null ? `fresh ${kUnit(s.usage.in)}` : ""}${s.usage.in !== null && s.usage.out !== null ? " " : ""}${s.usage.out !== null ? `out ${kUnit(s.usage.out)}` : ""}`;
|
|
215
216
|
if (seg !== "")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "kiso tui \u2014 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.39.0"
|
|
39
39
|
}
|
|
40
40
|
}
|