@vincemakes/kiso-tui 0.38.0 → 0.39.1

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/index.d.ts CHANGED
@@ -19,4 +19,5 @@ export { AT_CAP, AT_SKIP, AT_VISIBLE, atEmbed, atFilter, atPanelRows, atWindow,
19
19
  export { BADGE_GLYPH, idColumn, sessionAge, sessionBadge, sessionCounterRow, sessionFilter, sessionListFooter, sessionListRow, sessionNote, sessionPickerRows, sessionRow, type SessionCardView, type SessionPickState, } from "./session-picker.js";
20
20
  export { ASK_HEADER_CAP, ASK_MAX_OPTIONS, ASK_MAX_QUESTIONS, ASK_MIN_OPTIONS, askAffordance, askAnswers, askBlockRows, askCommitCustom, askDeclineAll, askDeclineList, askKey, askLeadPlain, askStart, askStatus, askView, type AskAnswer, type AskOption, type AskQuestion, type AskResult, type AskRuntime, type AskSpec, type AskStep, } from "./ask-panel.js";
21
21
  export { resolveGround, type Ground } from "@vincemakes/kiso-tui-cells";
22
- export { KEY_BINDINGS, PANEL_KEYS_ROW, displayVerb, extensionsBannerText, helpRows, keysHelpRow, keysSheetRows, unansweredAskView, type BannerExtension, type KeyBinding } from "./strings.js";
22
+ export { settledLabel } from "@vincemakes/kiso-tui-cells";
23
+ export { KEY_BINDINGS, PANEL_KEYS_ROW, displayVerb, extensionsBannerText, helpRows, keysHelpRow, keysSheetRows, slashCommandNames, unansweredAskView, type BannerExtension, type KeyBinding } from "./strings.js";
package/dist/index.js CHANGED
@@ -43,4 +43,7 @@ export { ASK_HEADER_CAP, ASK_MAX_OPTIONS, ASK_MAX_QUESTIONS, ASK_MIN_OPTIONS, as
43
43
  // TUI2-R1 (D): the keys sheet + THE key table — one source for the ?
44
44
  // overlay and /help's keys row.
45
45
  export { resolveGround } from "@vincemakes/kiso-tui-cells";
46
- export { KEY_BINDINGS, PANEL_KEYS_ROW, displayVerb, extensionsBannerText, helpRows, keysHelpRow, keysSheetRows, unansweredAskView } from "./strings.js";
46
+ // one duration form: the CLI's own surfaces label a settled duration the
47
+ // way a settled card does, rather than writing a second one.
48
+ export { settledLabel } from "@vincemakes/kiso-tui-cells";
49
+ export { KEY_BINDINGS, PANEL_KEYS_ROW, displayVerb, extensionsBannerText, helpRows, keysHelpRow, keysSheetRows, slashCommandNames, unansweredAskView } from "./strings.js";
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}s`, ...work];
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/dist/status.js CHANGED
@@ -22,6 +22,7 @@
22
22
  * widens to name the new gesture.
23
23
  */
24
24
  import { kUnit } from "./lines.js";
25
+ import { elapsedLabel } from "@vincemakes/kiso-tui-cells";
25
26
  import { TWINKLE } from "@vincemakes/kiso-tui-cells/render";
26
27
  import { displayWidth } from "@vincemakes/kiso-tui-cells/width";
27
28
  /**
@@ -102,7 +103,7 @@ export function runningStatus(glyph, since, outTokens, ctxRatio, tokPerSec = nul
102
103
  // state, so its row says nothing rather than guessing.
103
104
  const rate = tokPerSec !== null ? ` · ${tokPerSec} tok/s` : "";
104
105
  const seconds = Math.max(1, Math.round((Date.now() - since) / 1000));
105
- return `${glyph} working ${seconds}s${out}${rate} · esc stop · alt+⏎ redirect · ${ctxSegment(ctxRatio)}`;
106
+ return `${glyph} working ${elapsedLabel(seconds)}${out}${rate} · esc stop · alt+⏎ redirect · ${ctxSegment(ctxRatio)}`;
106
107
  }
107
108
  /** DF-0330-F1 — how far the model id may be squeezed on the ROW. Twenty
108
109
  * visible columns keeps a head and a tail: `deepseek-v…s-on-0910` still
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tui",
3
- "version": "0.38.0",
3
+ "version": "0.39.1",
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.0"
38
+ "@vincemakes/kiso-tui-cells": "0.39.1"
39
39
  }
40
40
  }