@aiwayds/dsh-tui-pi 0.3.0 → 0.4.2
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/README.md +20 -10
- package/cordis.patch.yml +12 -0
- package/lib/activity.d.ts +175 -0
- package/lib/activity.js +426 -0
- package/lib/activity.js.map +1 -0
- package/lib/agents.js +26 -5
- package/lib/agents.js.map +1 -1
- package/lib/dsh-events.d.ts +7 -4
- package/lib/footer.d.ts +43 -5
- package/lib/footer.js +62 -5
- package/lib/footer.js.map +1 -1
- package/lib/index.js +64 -56
- package/lib/index.js.map +1 -1
- package/lib/keymap.d.ts +81 -15
- package/lib/keymap.js +84 -28
- package/lib/keymap.js.map +1 -1
- package/lib/live-widgets.d.ts +105 -74
- package/lib/live-widgets.js +251 -155
- package/lib/live-widgets.js.map +1 -1
- package/lib/messages.d.ts +22 -171
- package/lib/messages.js +37 -417
- package/lib/messages.js.map +1 -1
- package/lib/session.d.ts +7 -0
- package/lib/session.js +109 -8
- package/lib/session.js.map +1 -1
- package/lib/subagent-policy.d.ts +32 -2
- package/lib/subagent-policy.js +54 -2
- package/lib/subagent-policy.js.map +1 -1
- package/lib/subagent-viewer.js +1 -1
- package/lib/text.d.ts +7 -0
- package/lib/text.js +17 -0
- package/lib/text.js.map +1 -1
- package/lib/theme-settings.d.ts +42 -15
- package/lib/theme-settings.js +94 -24
- package/lib/theme-settings.js.map +1 -1
- package/lib/tui.js +32 -20
- package/lib/tui.js.map +1 -1
- package/package.json +2 -1
- package/templates/agents/ArtyDuck.md +11 -0
- package/templates/agents/oldfox.md +33 -0
- package/templates/agents/workhorse.md +34 -0
package/lib/messages.js
CHANGED
|
@@ -2,40 +2,27 @@
|
|
|
2
2
|
* Transcript rendering: turns dsh session events into pi-tui components.
|
|
3
3
|
*
|
|
4
4
|
* Incremental by design (pi-turbo lesson): every event does O(event) work —
|
|
5
|
-
* streaming deltas update one Text in place,
|
|
6
|
-
*
|
|
5
|
+
* streaming deltas update one Text in place, and nothing ever re-scans the
|
|
6
|
+
* session log.
|
|
7
7
|
*
|
|
8
8
|
* Streaming strategy: during `assistant/chunk` the raw text grows in a plain
|
|
9
9
|
* Text component; on the assembled `assistant/message` the streaming component
|
|
10
10
|
* is replaced by proper Markdown rendering. This keeps per-token cost at
|
|
11
11
|
* O(accumulated text) instead of re-parsing markdown on every delta.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* configurable through the `dsh-tui` settings namespace ('5'/'7'/'10'
|
|
19
|
-
* displayed rows, or 'all' to print the full body without a row cap). The
|
|
20
|
-
* transcript doc is a plain Container
|
|
21
|
-
* inside the outer ScrollView, so pi-tui 0.84.2 never lays out nested
|
|
22
|
-
* components (a Container without a layout node renders by simple
|
|
23
|
-
* concatenation — verified in dist/layout.js) and an inner ScrollView can
|
|
24
|
-
* never obtain a viewport. The body is therefore a padded tail of the last
|
|
25
|
-
* body-row budget (or every row, in 'all' mode) rather than an internal
|
|
26
|
-
* scroll; every row (borders included) carries the panel background. In
|
|
27
|
-
* 'all' mode the unbounded content stays bounded on screen: a streaming
|
|
28
|
-
* reasoning panel boxes only a STREAMING_TAIL_LINES live tail while chunks
|
|
29
|
-
* are in flight (the assembled message renders the full body), and a settled
|
|
30
|
-
* tool card keeps at most ALL_TOOL_RESULT_LINES rows with a drop marker.
|
|
13
|
+
* Chat-clean transcript: think blocks and tool calls do NOT render here —
|
|
14
|
+
* they live in the fixed ThinkPanel/ToolPanel above the chat input
|
|
15
|
+
* (src/activity.ts, mounted by live-widgets.ts). The transcript carries the
|
|
16
|
+
* conversation only: user bubbles, streamed/final assistant text, turn-end
|
|
17
|
+
* notices, echoes. Todos likewise render in the live widget.
|
|
31
18
|
*
|
|
32
19
|
* Theme hot-switch: every applied operation is appended to `replay` (O(1)
|
|
33
20
|
* per event — never a render-path scan). `setTheme` is an explicit user
|
|
34
21
|
* action, so it may do a one-off full rebuild: clear the doc and re-apply
|
|
35
|
-
* the buffered operations against the new theme. Streaming
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
22
|
+
* the buffered operations against the new theme. Streaming rebuilds exactly
|
|
23
|
+
* as it was applied, so an in-flight stream simply continues `setText` on
|
|
24
|
+
* its rebuilt component. (The live widgets live outside the transcript —
|
|
25
|
+
* see live-widgets.ts.)
|
|
39
26
|
*
|
|
40
27
|
* Welcome banner: the first replay op, pushed at construction (the doc is
|
|
41
28
|
* cleared first, replacing tui.ts's startup placeholder). It stays at the
|
|
@@ -44,187 +31,17 @@
|
|
|
44
31
|
*/
|
|
45
32
|
import { Container, Markdown, Spacer, Text } from '@earendil-works/pi-tui';
|
|
46
33
|
import { ansiFg, RESET } from "./theme/index.js";
|
|
47
|
-
import { clipToWidth
|
|
34
|
+
import { clipToWidth } from "./text.js";
|
|
48
35
|
import { buildWelcomeBanner } from "./welcome.js";
|
|
49
36
|
import { formatDailyQuote, pickDailyQuote } from "./quotes.js";
|
|
50
|
-
/**
|
|
51
|
-
* Default displayed height of a think/tool panel: the header line plus the
|
|
52
|
-
* content rows. The single default for every '5' fallback (the renderer
|
|
53
|
-
* constructor, the settings schema default/entry/narrowing) — other heights
|
|
54
|
-
* are set through the `panelHeight` setting.
|
|
55
|
-
*/
|
|
56
|
-
export const DEFAULT_PANEL_HEIGHT = '5';
|
|
57
|
-
/** Content rows inside the default panel (DEFAULT_PANEL_HEIGHT displayed rows − the header row). */
|
|
58
|
-
const PANEL_BODY_LINES = Number(DEFAULT_PANEL_HEIGHT) - 1;
|
|
59
|
-
/**
|
|
60
|
-
* 'all' streaming cap: while a reasoning stream is in flight, the panel boxes
|
|
61
|
-
* only this many trailing rows. Without the cap every chunk would re-box the
|
|
62
|
-
* whole accumulated body — O(accumulated) per chunk, O(n²) over the stream
|
|
63
|
-
* (3000 lines ≈ 22s vs 155ms at a fixed height). The live tail is transient:
|
|
64
|
-
* the assembled `assistant/message` reasoning block (and the replay rebuilds)
|
|
65
|
-
* render the full body.
|
|
66
|
-
*/
|
|
67
|
-
export const STREAMING_TAIL_LINES = 200;
|
|
68
|
-
/**
|
|
69
|
-
* 'all' settle cap: a settled tool card keeps at most this many body rows,
|
|
70
|
-
* with a `… (+N lines)` marker for the drop. The unlimited body would
|
|
71
|
-
* otherwise hitch the frame and balloon memory on a 50k-line tool result.
|
|
72
|
-
*/
|
|
73
|
-
export const ALL_TOOL_RESULT_LINES = 2000;
|
|
74
|
-
/** Thinking panel header row content (icon + label), 11 visible columns. */
|
|
75
|
-
const THINKING_HEADER = '💭 thinking';
|
|
76
|
-
/**
|
|
77
|
-
* Fallback terminal columns when the real width is unknown (non-TTY
|
|
78
|
-
* contexts, e.g. tests): conservative so no sane terminal wraps.
|
|
79
|
-
*/
|
|
80
|
-
const PANEL_LINE_CAP_FALLBACK = 200;
|
|
81
|
-
/**
|
|
82
|
-
* Terminal columns a panel body row's CONTENT may occupy so the whole
|
|
83
|
-
* bordered row renders on exactly one physical line: the body Text wraps at
|
|
84
|
-
* `width - paddingX*2` (paddingX = 1), every row carries 4 columns of box
|
|
85
|
-
* chrome (`│ ` … ` │`), and tool rows add a 2-column indent — hence the -6
|
|
86
|
-
* (think) and -8 (tool, indent = 2) headroom.
|
|
87
|
-
*/
|
|
88
|
-
export function panelLineCap(columns, indent = 0) {
|
|
89
|
-
return Math.max(1, (columns === undefined ? PANEL_LINE_CAP_FALLBACK : columns) - 6 - indent);
|
|
90
|
-
}
|
|
91
|
-
/** Full visible width of one bordered panel row, box chrome included. */
|
|
92
|
-
export function panelBoxWidth(columns) {
|
|
93
|
-
return panelLineCap(columns) + 4;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* One bordered panel row of exactly `boxWidth` visible columns: side borders
|
|
97
|
-
* in `borderFg`, `inner` (already styled, already clipped) left-aligned and
|
|
98
|
-
* padded with spaces to the full box width. No trailing RESET — the panel bg
|
|
99
|
-
* function terminates the row and paints the whole width.
|
|
100
|
-
*/
|
|
101
|
-
function borderedRow(boxWidth, borderFg, inner) {
|
|
102
|
-
const pad = Math.max(0, boxWidth - 4 - visibleWidth(inner));
|
|
103
|
-
return `${borderFg}│ ${inner}${' '.repeat(pad)}${borderFg} │`;
|
|
104
|
-
}
|
|
105
|
-
/** Top border line (`┌─…─┐`), `boxWidth` columns wide, in `borderFg`. */
|
|
106
|
-
function panelTopBorder(boxWidth, borderFg) {
|
|
107
|
-
return `${borderFg}┌${'─'.repeat(Math.max(0, boxWidth - 2))}┐`;
|
|
108
|
-
}
|
|
109
|
-
/** Bottom border line (`└─…─┘`), `boxWidth` columns wide, in `borderFg`. */
|
|
110
|
-
function panelBottomBorder(boxWidth, borderFg) {
|
|
111
|
-
return `${borderFg}└${'─'.repeat(Math.max(0, boxWidth - 2))}┘`;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Clip an unstyled line to one physical panel row. Must run BEFORE styling:
|
|
115
|
-
* clipToWidth counts per grapheme, so the ASCII fragments of an SGR code
|
|
116
|
-
* would count as visible columns (verified against pi-tui 0.84.2) — clipping
|
|
117
|
-
* plain text first, then applying ANSI, keeps the accounting exact.
|
|
118
|
-
* `indent` is the leading content indent the row carries (2 for tool rows).
|
|
119
|
-
* Carriage returns are stripped first: pi-tui's wrapTextWithAnsi splits on
|
|
120
|
-
* `/\r\n|\r|\n/`, so a bare \r (progress bars, CRLF tool output) would break
|
|
121
|
-
* the fixed panel rows just like a wrap would — the panel line is one row,
|
|
122
|
-
* not a line record.
|
|
123
|
-
*/
|
|
124
|
-
export function clipPanelLine(text, indent = 0) {
|
|
125
|
-
return clipToWidth(text.replace(/\r/g, ''), panelLineCap(process.stdout.columns, indent));
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Compose the bordered body Text content (boxed rows plus the bottom border)
|
|
129
|
-
* from already-styled, already-clipped lines: keep the tail — newest rows
|
|
130
|
-
* win — pad short content with empty boxed rows, then append the bottom
|
|
131
|
-
* border. `bodyRows` is the panel's body-row budget (default PANEL_BODY_LINES)
|
|
132
|
-
* or 'all': with 'all' every line is kept verbatim, nothing is padded, and
|
|
133
|
-
* only the bottom border is appended (the box stays closed). Every row is
|
|
134
|
-
* one `boxWidth`-wide boxed line (`│ ` … ` │`, see borderedRow);
|
|
135
|
-
* `borderFg` is the panelBorder SGR prefix (no trailing RESET — the panel
|
|
136
|
-
* bg function terminates the row). Pad rows carry the box characters, so
|
|
137
|
-
* they survive Text's `text.trim() === ''` fast path, which would otherwise
|
|
138
|
-
* drop a body of only empty rows; the border SGR does not touch the
|
|
139
|
-
* background, so the panel bg function still paints the full row width.
|
|
140
|
-
* Callers clip each line with `clipPanelLine` BEFORE styling — otherwise a
|
|
141
|
-
* styled line that outgrows `width - paddingX*2` wraps and the panel
|
|
142
|
-
* exceeds its configured rows.
|
|
143
|
-
*/
|
|
144
|
-
export function panelBodyText(lines, boxWidth, borderFg, bodyRows = PANEL_BODY_LINES) {
|
|
145
|
-
const visible = bodyRows === 'all'
|
|
146
|
-
? [...lines]
|
|
147
|
-
: lines.length > bodyRows ? lines.slice(-bodyRows) : [...lines];
|
|
148
|
-
if (bodyRows !== 'all') {
|
|
149
|
-
while (visible.length < bodyRows)
|
|
150
|
-
visible.push('');
|
|
151
|
-
}
|
|
152
|
-
return [...visible.map(line => borderedRow(boxWidth, borderFg, line)), panelBottomBorder(boxWidth, borderFg)].join('\n');
|
|
153
|
-
}
|
|
154
|
-
/** First text content of a tool result, raw lines. */
|
|
155
|
-
function resultTextLines(content) {
|
|
156
|
-
for (const block of content) {
|
|
157
|
-
if (block.type === 'text' && block.text !== undefined) {
|
|
158
|
-
return block.text.replace(/\s+$/u, '').split('\n');
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return [];
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* The tool header's subject word: the file path for read/write-style tools,
|
|
165
|
-
* the command's first word for cli-style tools ('git', 'python') — the first
|
|
166
|
-
* whitespace token of the highest-priority string argument (same key
|
|
167
|
-
* priority as callDetail's summary). '' when the arguments carry no usable
|
|
168
|
-
* string (the header then shows the bare tool name).
|
|
169
|
-
*/
|
|
170
|
-
export function toolSubject(rawArguments) {
|
|
171
|
-
const firstWord = (value) => value.trim().split(/\s+/u)[0] ?? '';
|
|
172
|
-
try {
|
|
173
|
-
const parsed = JSON.parse(rawArguments);
|
|
174
|
-
for (const key of ['command', 'file_path', 'path', 'query', 'url', 'pattern', 'description']) {
|
|
175
|
-
const value = parsed[key];
|
|
176
|
-
if (typeof value === 'string' && value.trim() !== '')
|
|
177
|
-
return firstWord(value);
|
|
178
|
-
}
|
|
179
|
-
for (const value of Object.values(parsed)) {
|
|
180
|
-
if (typeof value === 'string' && value.trim() !== '')
|
|
181
|
-
return firstWord(value);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
catch {
|
|
185
|
-
// Model-controlled rawArguments; non-JSON yields no subject.
|
|
186
|
-
}
|
|
187
|
-
return '';
|
|
188
|
-
}
|
|
189
|
-
/** One-line summary of the call arguments, per common tool shape. */
|
|
190
|
-
function callDetail(rawArguments, limit = 120) {
|
|
191
|
-
try {
|
|
192
|
-
const parsed = JSON.parse(rawArguments);
|
|
193
|
-
const parts = [];
|
|
194
|
-
if (typeof parsed.command === 'string')
|
|
195
|
-
parts.push(`$ ${parsed.command}`);
|
|
196
|
-
if (typeof parsed.file_path === 'string')
|
|
197
|
-
parts.push(parsed.file_path);
|
|
198
|
-
if (typeof parsed.path === 'string' && parts.length === 0)
|
|
199
|
-
parts.push(parsed.path);
|
|
200
|
-
if (typeof parsed.pattern === 'string')
|
|
201
|
-
parts.push(`pattern: ${parsed.pattern}`);
|
|
202
|
-
if (typeof parsed.query === 'string')
|
|
203
|
-
parts.push(`query: ${parsed.query}`);
|
|
204
|
-
if (typeof parsed.url === 'string')
|
|
205
|
-
parts.push(parsed.url);
|
|
206
|
-
if (typeof parsed.description === 'string' && parts.length === 0)
|
|
207
|
-
parts.push(parsed.description);
|
|
208
|
-
if (parts.length === 0) {
|
|
209
|
-
const flat = rawArguments.replace(/\s+/g, ' ');
|
|
210
|
-
parts.push(flat);
|
|
211
|
-
}
|
|
212
|
-
const joined = parts.join(' ').replace(/\n/g, ' ⏎ ');
|
|
213
|
-
return clipToWidth(joined, limit);
|
|
214
|
-
}
|
|
215
|
-
catch {
|
|
216
|
-
return '';
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
37
|
export class TranscriptRenderer {
|
|
220
38
|
doc;
|
|
221
39
|
theme;
|
|
222
40
|
requestRender;
|
|
223
|
-
/** Configured panel height ('5'/'7'/'10' total rows, or 'all' = uncapped). */
|
|
224
|
-
panelHeight;
|
|
225
41
|
streaming;
|
|
226
|
-
|
|
227
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Text of the prompt echoed locally on submit; the matching session event is deduped.
|
|
44
|
+
*/
|
|
228
45
|
lastEcho;
|
|
229
46
|
/**
|
|
230
47
|
* Append-only buffer of every applied operation (O(1) per event). The
|
|
@@ -238,11 +55,10 @@ export class TranscriptRenderer {
|
|
|
238
55
|
* session rolls a new one (see quotes.ts).
|
|
239
56
|
*/
|
|
240
57
|
dailyQuote = pickDailyQuote();
|
|
241
|
-
constructor(doc, theme, requestRender
|
|
58
|
+
constructor(doc, theme, requestRender) {
|
|
242
59
|
this.doc = doc;
|
|
243
60
|
this.theme = theme;
|
|
244
61
|
this.requestRender = requestRender;
|
|
245
|
-
this.panelHeight = panelHeight;
|
|
246
62
|
// The welcome banner is the first operation: render it now (replacing the
|
|
247
63
|
// startup placeholder line startTui added — the banner is the new startup
|
|
248
64
|
// screen) and buffer it as the first replay op, so relayout/setTheme
|
|
@@ -251,26 +67,6 @@ export class TranscriptRenderer {
|
|
|
251
67
|
this.doc.clear();
|
|
252
68
|
this.renderWelcome();
|
|
253
69
|
}
|
|
254
|
-
/**
|
|
255
|
-
* Content-row budget for the configured panel height: the displayed row
|
|
256
|
-
* count minus the header row ('5' → 4 content rows), or 'all' when the
|
|
257
|
-
* panel prints its full body. The box borders are not part of the budget.
|
|
258
|
-
*/
|
|
259
|
-
panelBodyRows() {
|
|
260
|
-
return this.panelHeight === 'all' ? 'all' : Number(this.panelHeight) - 1;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Switch the configured panel height. Returns whether the height actually
|
|
264
|
-
* changed — the settings watch sink relayouts only then; `relayout` is the
|
|
265
|
-
* replay rebuild that repaints every panel (streaming, tool cards, settled
|
|
266
|
-
* cards) at the new row budget.
|
|
267
|
-
*/
|
|
268
|
-
setPanelHeight(panelHeight) {
|
|
269
|
-
if (panelHeight === this.panelHeight)
|
|
270
|
-
return false;
|
|
271
|
-
this.panelHeight = panelHeight;
|
|
272
|
-
return true;
|
|
273
|
-
}
|
|
274
70
|
applyEvent(event) {
|
|
275
71
|
this.replay.push({ kind: 'event', event });
|
|
276
72
|
switch (event.type) {
|
|
@@ -286,10 +82,9 @@ export class TranscriptRenderer {
|
|
|
286
82
|
this.renderAssistantMessage(event);
|
|
287
83
|
break;
|
|
288
84
|
case 'tool/call':
|
|
289
|
-
this.addToolCard(event.data.callId, event.data.name, event.data.arguments);
|
|
290
|
-
break;
|
|
291
85
|
case 'tool/result':
|
|
292
|
-
|
|
86
|
+
// Tool activity renders in the fixed ToolPanel above the chat input
|
|
87
|
+
// (live-widgets.ts routes these); the transcript never grows blocks.
|
|
293
88
|
break;
|
|
294
89
|
case 'todo/write':
|
|
295
90
|
// Todos render in the fixed live widget (LiveWidgets), not the
|
|
@@ -364,15 +159,13 @@ export class TranscriptRenderer {
|
|
|
364
159
|
/**
|
|
365
160
|
* Repaint the whole transcript at the current terminal width — the resize
|
|
366
161
|
* counterpart of `setTheme`. On stdout `resize` pi-tui re-renders every
|
|
367
|
-
* component with the new columns, but
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
* must stay empty until the next prompt: the welcome banner is the startup
|
|
375
|
-
* screen of a TUI run and must not resurrect here.
|
|
162
|
+
* component with the new columns, but the welcome banner degrades by
|
|
163
|
+
* width, so clear and re-apply the buffered operations exactly like a
|
|
164
|
+
* theme switch: an in-flight stream keeps its accumulated text, todos
|
|
165
|
+
* reappear. No-op when the replay is empty — that guards the doc emptied
|
|
166
|
+
* by /new (clear()), which must stay empty until the next prompt: the
|
|
167
|
+
* welcome banner is the startup screen of a TUI run and must not
|
|
168
|
+
* resurrect here.
|
|
376
169
|
*/
|
|
377
170
|
relayout() {
|
|
378
171
|
if (this.replay.length === 0)
|
|
@@ -390,7 +183,6 @@ export class TranscriptRenderer {
|
|
|
390
183
|
*/
|
|
391
184
|
clear() {
|
|
392
185
|
this.streaming = undefined;
|
|
393
|
-
this.toolCards.clear();
|
|
394
186
|
this.lastEcho = undefined;
|
|
395
187
|
this.replay.length = 0;
|
|
396
188
|
this.doc.clear();
|
|
@@ -401,7 +193,7 @@ export class TranscriptRenderer {
|
|
|
401
193
|
case 'welcome':
|
|
402
194
|
// Mirror applyEvent's self-push: relayout/setTheme replay would
|
|
403
195
|
// otherwise consume the welcome op on the first rebuild and freeze
|
|
404
|
-
// the banner at
|
|
196
|
+
// the banner at this width (it is width-dependent since the pixel
|
|
405
197
|
// letters — a narrowing resize would degrade, a widening one never
|
|
406
198
|
// restore, and later theme switches could not repaint it either).
|
|
407
199
|
this.replay.push({ kind: 'welcome' });
|
|
@@ -489,36 +281,22 @@ export class TranscriptRenderer {
|
|
|
489
281
|
}
|
|
490
282
|
// ------------------------------------------------------------- streaming --
|
|
491
283
|
applyChunk(turn, step, chunk) {
|
|
492
|
-
if (chunk.type !== 'text-delta'
|
|
284
|
+
if (chunk.type !== 'text-delta')
|
|
493
285
|
return;
|
|
494
286
|
const delta = chunk.text ?? '';
|
|
495
287
|
if (delta === '')
|
|
496
288
|
return;
|
|
497
289
|
if (this.streaming === undefined || this.streaming.turn !== turn || this.streaming.step !== step) {
|
|
498
290
|
this.finalizeStreaming();
|
|
499
|
-
this.streaming = { turn, step, text: ''
|
|
291
|
+
this.streaming = { turn, step, text: '' };
|
|
500
292
|
}
|
|
501
293
|
const state = this.streaming;
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
this.doc.addChild(state.textComponent);
|
|
506
|
-
}
|
|
507
|
-
state.text += delta;
|
|
508
|
-
state.textComponent.setText(ansiFg(this.theme.palette.fgDefault) + state.text + RESET);
|
|
509
|
-
}
|
|
510
|
-
else {
|
|
511
|
-
if (state.reasoningPanel === undefined) {
|
|
512
|
-
state.reasoningPanel = this.createThinkingPanel();
|
|
513
|
-
this.doc.addChild(state.reasoningPanel.container);
|
|
514
|
-
}
|
|
515
|
-
state.reasoning += delta;
|
|
516
|
-
// Live tail: replace only the body text of the existing panel — O(1),
|
|
517
|
-
// never rebuild the block. In 'all' mode the body is the bounded
|
|
518
|
-
// streaming tail (see STREAMING_TAIL_LINES), so per-chunk cost stays
|
|
519
|
-
// O(tail), not O(accumulated).
|
|
520
|
-
state.reasoningPanel.setBody(this.thinkingBody(state.reasoning, true));
|
|
294
|
+
if (state.textComponent === undefined) {
|
|
295
|
+
state.textComponent = new Text('', 1, 0);
|
|
296
|
+
this.doc.addChild(state.textComponent);
|
|
521
297
|
}
|
|
298
|
+
state.text += delta;
|
|
299
|
+
state.textComponent.setText(ansiFg(this.theme.palette.fgDefault) + state.text + RESET);
|
|
522
300
|
this.requestRender();
|
|
523
301
|
}
|
|
524
302
|
finalizeStreaming() {
|
|
@@ -528,87 +306,19 @@ export class TranscriptRenderer {
|
|
|
528
306
|
this.streaming = undefined;
|
|
529
307
|
if (state.textComponent !== undefined)
|
|
530
308
|
this.doc.removeChild(state.textComponent);
|
|
531
|
-
if (state.reasoningPanel !== undefined)
|
|
532
|
-
this.doc.removeChild(state.reasoningPanel.container);
|
|
533
309
|
}
|
|
534
310
|
/** Keep streaming components as-is but detach state (user message arrived). */
|
|
535
311
|
dropStreaming() {
|
|
536
312
|
this.streaming = undefined;
|
|
537
313
|
}
|
|
538
|
-
// --------------------------------------------------------------- panels --
|
|
539
|
-
/** Full box width and panelBorder SGR prefix for one panel, per current theme. */
|
|
540
|
-
panelBox() {
|
|
541
|
-
return {
|
|
542
|
-
boxWidth: panelBoxWidth(process.stdout.columns),
|
|
543
|
-
borderFg: ansiFg(this.theme.palette.panelBorder),
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
/** Top border line plus bordered header row — the header Text's two lines. */
|
|
547
|
-
panelTop(boxWidth, borderFg, headerInner) {
|
|
548
|
-
return `${panelTopBorder(boxWidth, borderFg)}\n${borderedRow(boxWidth, borderFg, headerInner)}`;
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Thinking color style, italic-on. The style terminates with a targeted
|
|
552
|
-
* italic-off (`\x1b[23m`) — NOT a full RESET: the panel bg function paints
|
|
553
|
-
* the whole row width, and a `\x1b[0m` here would clear the background and
|
|
554
|
-
* leave the row's right side unpainted. Without the italic-off the leak is
|
|
555
|
-
* visible in the box chrome: wrapTextWithAnsi carries ANSI state across
|
|
556
|
-
* lines within one Text, so the row's right border, the following body
|
|
557
|
-
* rows and the bottom border would all render italic.
|
|
558
|
-
*/
|
|
559
|
-
thinkStyle(text) {
|
|
560
|
-
return `\x1b[3m${ansiFg(this.theme.palette.thinking)}${text}\x1b[23m`;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Styled, boxed tail of a reasoning text at the configured height (bottom
|
|
564
|
-
* border included). `streaming` marks the in-flight live path (per-chunk
|
|
565
|
-
* setBody): 'all' then boxes only the bounded STREAMING_TAIL_LINES tail so
|
|
566
|
-
* every chunk stays O(tail) — the full body renders once the assembled
|
|
567
|
-
* `assistant/message` (and the replay rebuilds) call without the flag.
|
|
568
|
-
* Fixed heights are already tail-bounded and behave identically either way.
|
|
569
|
-
*/
|
|
570
|
-
thinkingBody(reasoning, streaming = false) {
|
|
571
|
-
const { boxWidth, borderFg } = this.panelBox();
|
|
572
|
-
const bodyRows = this.panelBodyRows();
|
|
573
|
-
const lines = reasoning.trim().split('\n');
|
|
574
|
-
// Tail slice before styling: lines dropped by the panel are never styled
|
|
575
|
-
// (or clipped). 'all' keeps every line — except the transient streaming
|
|
576
|
-
// tail. Clip BEFORE styling — see clipPanelLine's contract.
|
|
577
|
-
let tail = bodyRows === 'all' ? lines : lines.slice(-bodyRows);
|
|
578
|
-
if (bodyRows === 'all' && streaming && lines.length > STREAMING_TAIL_LINES) {
|
|
579
|
-
tail = tail.slice(-STREAMING_TAIL_LINES);
|
|
580
|
-
}
|
|
581
|
-
return panelBodyText(tail.map(line => this.thinkStyle(clipPanelLine(line))), boxWidth, borderFg, bodyRows);
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* Build the thinking panel (default 5 rows, configurable height): top
|
|
585
|
-
* border + header row + body rows + bottom border, all on the thinking
|
|
586
|
-
* panel background.
|
|
587
|
-
* Header icon: '⟡' (U+27E1) renders as a tofu box on the user's terminal;
|
|
588
|
-
* emoji render fine there (footer ⚙✔✘⏹ all verified), so '💭' is used.
|
|
589
|
-
* The fixed header text is clipped at the plain-text stage like every
|
|
590
|
-
* other panel line — below 17 terminal columns it would otherwise outgrow
|
|
591
|
-
* the header row's budget and wrap, breaking the panel shape.
|
|
592
|
-
*/
|
|
593
|
-
createThinkingPanel() {
|
|
594
|
-
const { boxWidth, borderFg } = this.panelBox();
|
|
595
|
-
const header = new Text(this.panelTop(boxWidth, borderFg, this.thinkStyle(clipPanelLine(THINKING_HEADER))), 1, 0, this.theme.chat.thinkingPanelBg);
|
|
596
|
-
const body = new Text('', 1, 0, this.theme.chat.thinkingPanelBg);
|
|
597
|
-
const container = new Container();
|
|
598
|
-
container.addChild(header);
|
|
599
|
-
container.addChild(body);
|
|
600
|
-
return {
|
|
601
|
-
container,
|
|
602
|
-
setBody: (text) => { body.setText(text); },
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
314
|
// ------------------------------------------------------------- assistant --
|
|
606
315
|
renderAssistantMessage(event) {
|
|
607
316
|
const message = event.data.message;
|
|
608
317
|
let rendered = false;
|
|
609
318
|
// The whale speaks: the first text block is prefixed inline (`🐳: text`)
|
|
610
|
-
// instead of taking its own avatar line —
|
|
611
|
-
//
|
|
319
|
+
// instead of taking its own avatar line — later text blocks render plain.
|
|
320
|
+
// Reasoning blocks render nothing here: the fixed ThinkPanel already
|
|
321
|
+
// showed the burst live (activity.ts).
|
|
612
322
|
let whaleShown = false;
|
|
613
323
|
for (const block of message.content) {
|
|
614
324
|
if (block.type === 'text' && block.text.trim() !== '') {
|
|
@@ -622,102 +332,12 @@ export class TranscriptRenderer {
|
|
|
622
332
|
this.doc.addChild(md);
|
|
623
333
|
rendered = true;
|
|
624
334
|
}
|
|
625
|
-
|
|
626
|
-
// Final thinking: full reasoning through the same height-configurable
|
|
627
|
-
// panel (fixed heights show the body-row tail, padded rows keep the
|
|
628
|
-
// panel shape; 'all' prints every line).
|
|
629
|
-
const panel = this.createThinkingPanel();
|
|
630
|
-
panel.setBody(this.thinkingBody(block.text));
|
|
631
|
-
this.doc.addChild(panel.container);
|
|
632
|
-
rendered = true;
|
|
633
|
-
}
|
|
634
|
-
// tool-call blocks render through tool/call events — never duplicated here.
|
|
335
|
+
// tool-call blocks render through the fixed ToolPanel — never here.
|
|
635
336
|
}
|
|
636
337
|
if (rendered)
|
|
637
338
|
this.doc.addChild(new Spacer(1));
|
|
638
339
|
this.requestRender();
|
|
639
340
|
}
|
|
640
|
-
// ----------------------------------------------------------------- tools --
|
|
641
|
-
/**
|
|
642
|
-
* Styled tool header content (icon + name + subject, no box chrome, no
|
|
643
|
-
* trailing RESET). The subject is the argument's first word — the file
|
|
644
|
-
* path for read/write, the command for cli (see toolSubject) — so the
|
|
645
|
-
* first line reads like "⚙ read src/welcome.ts" / "⚙ cli python".
|
|
646
|
-
*/
|
|
647
|
-
toolHeader(status, name, subject) {
|
|
648
|
-
const icon = status === 'pending' ? '⚙' : status === 'success' ? '✔' : '✘';
|
|
649
|
-
const color = status === 'pending'
|
|
650
|
-
? this.theme.palette.fgMuted
|
|
651
|
-
: status === 'success'
|
|
652
|
-
? this.theme.palette.success
|
|
653
|
-
: this.theme.palette.danger;
|
|
654
|
-
// Clip the model-controlled name+subject at the plain-text stage before
|
|
655
|
-
// styling (indent 2 = the icon + space): an unbounded line would outgrow
|
|
656
|
-
// the header row's budget and wrap, breaking the fixed-height panel.
|
|
657
|
-
const clipped = clipPanelLine(subject === '' ? name : `${name} ${subject}`, 2);
|
|
658
|
-
// No trailing RESET: the card bg function terminates the row so the
|
|
659
|
-
// background covers the full header width.
|
|
660
|
-
return ansiFg(color) + `${icon} ${clipped}`;
|
|
661
|
-
}
|
|
662
|
-
addToolCard(callId, name, rawArguments) {
|
|
663
|
-
const { boxWidth, borderFg } = this.panelBox();
|
|
664
|
-
const subject = toolSubject(rawArguments);
|
|
665
|
-
const header = new Text(this.panelTop(boxWidth, borderFg, this.toolHeader('pending', name, subject)), 1, 0, this.theme.chat.toolPendingBg);
|
|
666
|
-
const body = new Text('', 1, 0, this.theme.chat.toolBodyBg);
|
|
667
|
-
const container = new Container();
|
|
668
|
-
container.addChild(header);
|
|
669
|
-
container.addChild(body);
|
|
670
|
-
const detail = callDetail(rawArguments);
|
|
671
|
-
// callDetail already clipped to 120; clip again to the panel cap so the
|
|
672
|
-
// row never wraps on a narrow terminal.
|
|
673
|
-
const detailLines = detail === '' ? [] : [ansiFg(this.theme.palette.fgMuted) + ` ${clipPanelLine(detail, 2)}`];
|
|
674
|
-
body.setText(panelBodyText(detailLines, boxWidth, borderFg, this.panelBodyRows()));
|
|
675
|
-
this.doc.addChild(container);
|
|
676
|
-
this.toolCards.set(callId, { header, body, name, subject, detailLines });
|
|
677
|
-
this.requestRender();
|
|
678
|
-
}
|
|
679
|
-
settleToolCard(event) {
|
|
680
|
-
const block = event.data.message.content[0];
|
|
681
|
-
const callId = block?.toolCallId ?? '';
|
|
682
|
-
const card = this.toolCards.get(callId);
|
|
683
|
-
if (card === undefined)
|
|
684
|
-
return;
|
|
685
|
-
this.toolCards.delete(callId);
|
|
686
|
-
const { boxWidth, borderFg } = this.panelBox();
|
|
687
|
-
const isError = event.data.error !== undefined || (block?.isError ?? false);
|
|
688
|
-
// Rebuild both header Text lines: the top border (unchanged chrome) and
|
|
689
|
-
// the swapped-status header row; the status bg fn repaints the border
|
|
690
|
-
// row too, so the whole box top takes the success/error tint.
|
|
691
|
-
card.header.setText(this.panelTop(boxWidth, borderFg, this.toolHeader(isError ? 'error' : 'success', card.name, card.subject)));
|
|
692
|
-
card.header.setCustomBgFn(isError ? this.theme.chat.toolErrorBg : this.theme.chat.toolSuccessBg);
|
|
693
|
-
const bodyLines = [...card.detailLines];
|
|
694
|
-
if (event.data.error !== undefined) {
|
|
695
|
-
bodyLines.push(ansiFg(this.theme.palette.danger)
|
|
696
|
-
+ ` ${clipPanelLine(`${event.data.error.name}: ${event.data.error.code}`, 2)}`);
|
|
697
|
-
}
|
|
698
|
-
if (block !== undefined) {
|
|
699
|
-
for (const line of resultTextLines(block.content)) {
|
|
700
|
-
bodyLines.push(ansiFg(this.theme.palette.fgMuted) + ` ${clipPanelLine(line, 2)}`);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
// Body keeps the tail at the configured row budget; when lines are
|
|
704
|
-
// dropped, the first visible row reports the count so the newest result
|
|
705
|
-
// lines stay on screen. 'all' keeps every line up to the ALL_TOOL_RESULT_LINES
|
|
706
|
-
// cap (an unlimited body would hitch the frame and balloon memory on a
|
|
707
|
-
// huge result) and shows the marker beyond it; under the cap there is no
|
|
708
|
-
// marker. The marker is clipped at the plain-text stage (indent 2, like
|
|
709
|
-
// every tool row): on a narrow terminal a 3-digit dropped count exceeds
|
|
710
|
-
// the row's budget and would wrap, breaking the fixed-height panel.
|
|
711
|
-
const bodyRows = this.panelBodyRows();
|
|
712
|
-
const cap = bodyRows === 'all' ? ALL_TOOL_RESULT_LINES : bodyRows;
|
|
713
|
-
if (bodyLines.length > cap) {
|
|
714
|
-
const dropped = bodyLines.length - cap;
|
|
715
|
-
bodyLines.splice(0, dropped);
|
|
716
|
-
bodyLines[0] = ansiFg(this.theme.palette.fgSubtle) + clipPanelLine(` … (+${dropped} lines)`, 2);
|
|
717
|
-
}
|
|
718
|
-
card.body.setText(panelBodyText(bodyLines, boxWidth, borderFg, bodyRows));
|
|
719
|
-
this.requestRender();
|
|
720
|
-
}
|
|
721
341
|
// -------------------------------------------------------------- turn end --
|
|
722
342
|
renderTurnEnd(reason) {
|
|
723
343
|
if (reason.kind === 'error') {
|
package/lib/messages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAI1E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAiB,MAAM,kBAAkB,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAU9D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAgB,GAAG,CAAA;AACpD,oGAAoG;AACpG,MAAM,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAA;AACzC,4EAA4E;AAC5E,MAAM,eAAe,GAAG,aAAa,CAAA;AACrC;;;GAGG;AACH,MAAM,uBAAuB,GAAG,GAAG,C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