@vincemakes/kiso-tui 0.50.0 → 0.51.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/status.d.ts +3 -2
- package/dist/status.js +4 -3
- package/package.json +2 -2
package/dist/status.d.ts
CHANGED
|
@@ -200,10 +200,11 @@ export declare function statusBar(b: BarInput, W: number, expand: "expand all" |
|
|
|
200
200
|
* §8.7 — the LIVE ROW's words for a running turn: `working` for the whole
|
|
201
201
|
* turn, whatever the model is doing (it never switches to "thinking" —
|
|
202
202
|
* what the model thinks is in the stream), the elapsed, the output tokens,
|
|
203
|
-
* the decode rate
|
|
203
|
+
* (the decode rate is the status row's, never this row's: one place, 0.50.1 F2).
|
|
204
|
+
* A pending retry replaces it. The keys ride the row's
|
|
204
205
|
* right end.
|
|
205
206
|
*/
|
|
206
|
-
export declare function workingRow(glyph: string, since: number, outTokens: number | null,
|
|
207
|
+
export declare function workingRow(glyph: string, since: number, outTokens: number | null, W: number, retry?: RetryOnRow | null, detachable?: boolean): string;
|
|
207
208
|
/** §8.7 — a live row: its mark in the mark column (column 0), its facts
|
|
208
209
|
* from the content edge, its keys right-aligned; the keys give way from
|
|
209
210
|
* the right when the row is short, the facts never (past them the row is
|
package/dist/status.js
CHANGED
|
@@ -315,10 +315,11 @@ function tasksOnBar(c) {
|
|
|
315
315
|
* §8.7 — the LIVE ROW's words for a running turn: `working` for the whole
|
|
316
316
|
* turn, whatever the model is doing (it never switches to "thinking" —
|
|
317
317
|
* what the model thinks is in the stream), the elapsed, the output tokens,
|
|
318
|
-
* the decode rate
|
|
318
|
+
* (the decode rate is the status row's, never this row's: one place, 0.50.1 F2).
|
|
319
|
+
* A pending retry replaces it. The keys ride the row's
|
|
319
320
|
* right end.
|
|
320
321
|
*/
|
|
321
|
-
export function workingRow(glyph, since, outTokens,
|
|
322
|
+
export function workingRow(glyph, since, outTokens, W, retry, detachable = false) {
|
|
322
323
|
// a pending retry REPLACES `working` while it lasts (§8.7): it is the one
|
|
323
324
|
// thing that explains why nothing is arriving (ADR-0005 Amendment 2),
|
|
324
325
|
// and its countdown is the row's pulse — whole seconds, rounded up, so
|
|
@@ -329,7 +330,7 @@ export function workingRow(glyph, since, outTokens, tokPerSec, W, retry, detacha
|
|
|
329
330
|
}
|
|
330
331
|
const out = outTokens !== null ? ` · ↓ ${kUnit(outTokens)}` : "";
|
|
331
332
|
const seconds = Math.max(1, Math.round((Date.now() - since) / 1000));
|
|
332
|
-
const facts =
|
|
333
|
+
const facts = `${glyph} working ${elapsedLabel(seconds)}${out}`;
|
|
333
334
|
// the main-sync round (ADR-0058 3e): ctrl+b exactly while a running
|
|
334
335
|
// command can be moved to the background — it gives way after esc
|
|
335
336
|
if (detachable)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.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.51.0"
|
|
39
39
|
}
|
|
40
40
|
}
|