@sagmans/dsh-tui 0.1.1 → 0.2.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/README.md +84 -10
- package/cordis.patch.yml +4 -2
- package/lib/agent/host.d.ts +14 -0
- package/lib/agent/host.d.ts.map +1 -1
- package/lib/agent/host.js +20 -4
- package/lib/agent/host.js.map +1 -1
- package/lib/agent/model.d.ts +24 -0
- package/lib/agent/model.d.ts.map +1 -1
- package/lib/agent/model.js +46 -1
- package/lib/agent/model.js.map +1 -1
- package/lib/agent/present.d.ts +7 -1
- package/lib/agent/present.d.ts.map +1 -1
- package/lib/agent/present.js +33 -4
- package/lib/agent/present.js.map +1 -1
- package/lib/agent/presets.d.ts +7 -1
- package/lib/agent/presets.d.ts.map +1 -1
- package/lib/agent/presets.js +7 -3
- package/lib/agent/presets.js.map +1 -1
- package/lib/cards.d.ts +127 -7
- package/lib/cards.d.ts.map +1 -1
- package/lib/cards.js +380 -52
- package/lib/cards.js.map +1 -1
- package/lib/export.d.ts +5 -4
- package/lib/export.d.ts.map +1 -1
- package/lib/export.js +62 -13
- package/lib/export.js.map +1 -1
- package/lib/fold-cursor.d.ts +23 -0
- package/lib/fold-cursor.d.ts.map +1 -0
- package/lib/fold-cursor.js +31 -0
- package/lib/fold-cursor.js.map +1 -0
- package/lib/index.d.ts +7 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +310 -32
- package/lib/index.js.map +1 -1
- package/lib/input/submission.d.ts +3 -1
- package/lib/input/submission.d.ts.map +1 -1
- package/lib/input/submission.js +5 -2
- package/lib/input/submission.js.map +1 -1
- package/lib/terminal/warning-screen.d.ts +8 -0
- package/lib/terminal/warning-screen.d.ts.map +1 -0
- package/lib/terminal/warning-screen.js +66 -0
- package/lib/terminal/warning-screen.js.map +1 -0
- package/lib/theme-capability.d.ts +36 -0
- package/lib/theme-capability.d.ts.map +1 -0
- package/lib/theme-capability.js +190 -0
- package/lib/theme-capability.js.map +1 -0
- package/lib/theme-command.d.ts +10 -0
- package/lib/theme-command.d.ts.map +1 -0
- package/lib/theme-command.js +61 -0
- package/lib/theme-command.js.map +1 -0
- package/lib/theme-settings.d.ts +161 -0
- package/lib/theme-settings.d.ts.map +1 -0
- package/lib/theme-settings.js +166 -0
- package/lib/theme-settings.js.map +1 -0
- package/lib/theme-tokens.d.ts +110 -0
- package/lib/theme-tokens.d.ts.map +1 -0
- package/lib/theme-tokens.js +401 -0
- package/lib/theme-tokens.js.map +1 -0
- package/lib/theme.d.ts +32 -35
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +112 -63
- package/lib/theme.js.map +1 -1
- package/lib/tokens.d.ts +15 -0
- package/lib/tokens.d.ts.map +1 -0
- package/lib/tokens.js +29 -0
- package/lib/tokens.js.map +1 -0
- package/lib/transcript.d.ts +26 -1
- package/lib/transcript.d.ts.map +1 -1
- package/lib/transcript.js +153 -25
- package/lib/transcript.js.map +1 -1
- package/lib/ui/dock.d.ts.map +1 -1
- package/lib/ui/dock.js +67 -28
- package/lib/ui/dock.js.map +1 -1
- package/lib/ui/editor.d.ts +34 -0
- package/lib/ui/editor.d.ts.map +1 -0
- package/lib/ui/editor.js +98 -0
- package/lib/ui/editor.js.map +1 -0
- package/lib/ui/markdown.d.ts +8 -0
- package/lib/ui/markdown.d.ts.map +1 -1
- package/lib/ui/markdown.js +12 -0
- package/lib/ui/markdown.js.map +1 -1
- package/lib/ui/picker.d.ts +37 -0
- package/lib/ui/picker.d.ts.map +1 -1
- package/lib/ui/picker.js +53 -0
- package/lib/ui/picker.js.map +1 -1
- package/lib/ui/status.d.ts +3 -1
- package/lib/ui/status.d.ts.map +1 -1
- package/lib/ui/status.js +76 -24
- package/lib/ui/status.js.map +1 -1
- package/lib/ui/view.d.ts +43 -0
- package/lib/ui/view.d.ts.map +1 -1
- package/lib/ui/view.js +254 -54
- package/lib/ui/view.js.map +1 -1
- package/package.json +3 -1
package/lib/cards.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { countTokens, formatTokens } from "./tokens.js";
|
|
2
|
+
/** A row drawn in a single style. */
|
|
3
|
+
export function cardRow(cls, text) {
|
|
4
|
+
return { parts: [{ class: cls, text }] };
|
|
5
|
+
}
|
|
6
|
+
/** The words of a row with no styling, for callers that only need the text. */
|
|
7
|
+
export function rowText(row) {
|
|
8
|
+
return row.parts.map(part => part.text).join('');
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* Detail rows retained on a card at all.
|
|
5
12
|
*
|
|
@@ -8,13 +15,172 @@ export const CARD_DETAIL_LIMIT = 10;
|
|
|
8
15
|
* memory for a reader who will never scroll that far.
|
|
9
16
|
*/
|
|
10
17
|
export const CARD_DETAIL_MAX = 200;
|
|
18
|
+
/**
|
|
19
|
+
* Output rows a folded shell card keeps on screen, counted from the end.
|
|
20
|
+
*
|
|
21
|
+
* A shell command is the one card whose output is the result the reader asked
|
|
22
|
+
* for, so folding it to its header would hide the answer. The tail is the part
|
|
23
|
+
* that carries the outcome of a long run, and the retention cap still bounds
|
|
24
|
+
* what ctrl+o can reveal.
|
|
25
|
+
*/
|
|
26
|
+
export const CARD_SHELL_PREVIEW = 20;
|
|
27
|
+
/**
|
|
28
|
+
* Nested calls retained on one PTC card.
|
|
29
|
+
*
|
|
30
|
+
* A program can dispatch in a loop, and one line each is small but not free;
|
|
31
|
+
* the cap keeps a card bounded while {@link ToolCard.subCallsTotal} still
|
|
32
|
+
* reports everything the program ran.
|
|
33
|
+
*/
|
|
34
|
+
export const SUBCALL_MAX = 100;
|
|
35
|
+
/**
|
|
36
|
+
* The tail of the hint a folded shell card draws when it dropped rows.
|
|
37
|
+
*
|
|
38
|
+
* "more" rather than "them": retention caps detail rows, so a command that
|
|
39
|
+
* printed thousands of lines cannot promise ctrl+o will reveal every dropped
|
|
40
|
+
* one.
|
|
41
|
+
*/
|
|
42
|
+
const CARD_HINT_EARLIER = 'earlier lines · ctrl+o shows more';
|
|
43
|
+
/**
|
|
44
|
+
* The tail of the hint an opened shell card draws when retention dropped rows.
|
|
45
|
+
*
|
|
46
|
+
* Retention keeps the tail of a run, so the rows it refused are always the
|
|
47
|
+
* beginning; a hint that only counted them would send the reader looking past
|
|
48
|
+
* the end of the output for rows that are not there.
|
|
49
|
+
*/
|
|
50
|
+
const CARD_HINT_UNRETAINED_EARLIER = 'earlier lines not shown';
|
|
11
51
|
/** Character budget for one detail row, so a minified file cannot flood the viewport. */
|
|
12
52
|
export const CARD_LINE_LIMIT = 200;
|
|
13
53
|
function clipLine(text) {
|
|
14
54
|
return text.length <= CARD_LINE_LIMIT ? text : `${text.slice(0, CARD_LINE_LIMIT - 1)}…`;
|
|
15
55
|
}
|
|
16
|
-
|
|
17
|
-
|
|
56
|
+
/**
|
|
57
|
+
* The one-line row for one nested call.
|
|
58
|
+
*
|
|
59
|
+
* A tool that declares a call view is drawn exactly as its own header would be;
|
|
60
|
+
* only a tool with no view at all falls back to its registry name and raw call,
|
|
61
|
+
* because the surface cannot name a salient argument for a schema it never saw.
|
|
62
|
+
*/
|
|
63
|
+
export function subCallOf(name, argumentsJson, view) {
|
|
64
|
+
if (view !== undefined) {
|
|
65
|
+
return { title: view.title, ...(view.argument === undefined ? {} : { argument: view.argument }), failed: false };
|
|
66
|
+
}
|
|
67
|
+
const raw = argumentsJson === '' ? '' : clipLine(argumentsJson);
|
|
68
|
+
return { title: name, ...(raw === '' ? {} : { argument: raw }), failed: false };
|
|
69
|
+
}
|
|
70
|
+
function clipRow(row) {
|
|
71
|
+
return { parts: row.parts.map(part => ({ class: part.class, text: clipLine(part.text) })) };
|
|
72
|
+
}
|
|
73
|
+
function bound(rows) {
|
|
74
|
+
return { detail: rows.slice(0, CARD_DETAIL_MAX).map(clipRow), totalLines: rows.length };
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Bound a card to its retained rows from the END.
|
|
78
|
+
*
|
|
79
|
+
* A command's answer is its last lines, so keeping the head would show a long
|
|
80
|
+
* run's middle and lose the ending the reader asked for; the tail is also what
|
|
81
|
+
* a folded shell card tails again.
|
|
82
|
+
*/
|
|
83
|
+
function boundTail(rows) {
|
|
84
|
+
return { detail: rows.slice(-CARD_DETAIL_MAX).map(clipRow), totalLines: rows.length };
|
|
85
|
+
}
|
|
86
|
+
/** A text with the newline that only terminates its last line removed. */
|
|
87
|
+
function withoutTrailingBreaks(text) {
|
|
88
|
+
return text.replace(/\n+$/, '');
|
|
89
|
+
}
|
|
90
|
+
/** How many lines a text holds, ignoring the newline that only terminates the last one. */
|
|
91
|
+
function lineCount(text) {
|
|
92
|
+
const body = withoutTrailingBreaks(text);
|
|
93
|
+
return body === '' ? 0 : body.split('\n').length;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The size of a text a card presents, in lines and in tokens.
|
|
97
|
+
*
|
|
98
|
+
* A reader deciding whether to open a file cares about both: lines say how tall
|
|
99
|
+
* it is, tokens say what it cost to put in the conversation.
|
|
100
|
+
*/
|
|
101
|
+
function sizeStats(text) {
|
|
102
|
+
const body = withoutTrailingBreaks(text);
|
|
103
|
+
const lines = lineCount(body);
|
|
104
|
+
const tokens = countTokens(body);
|
|
105
|
+
const stats = [];
|
|
106
|
+
if (lines > 0)
|
|
107
|
+
stats.push({ kind: 'size', text: `${lines} line${lines === 1 ? '' : 's'}` });
|
|
108
|
+
if (tokens > 0)
|
|
109
|
+
stats.push({ kind: 'size', text: `${formatTokens(tokens)} tok` });
|
|
110
|
+
return stats;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* A file change's split into added, changed, and removed lines.
|
|
114
|
+
*
|
|
115
|
+
* A replacement is one changed line, not an add plus a remove, so the smaller
|
|
116
|
+
* of the two sides is the changed count and only the excess counts as pure
|
|
117
|
+
* additions or deletions — otherwise every edit reads as twice its size. Each
|
|
118
|
+
* file is netted on its own for the same reason: one file's additions must not
|
|
119
|
+
* cancel another file's deletions, or a change to two files reads as a rewrite
|
|
120
|
+
* of neither.
|
|
121
|
+
*/
|
|
122
|
+
function changeStats(diffs) {
|
|
123
|
+
let added = 0;
|
|
124
|
+
let changed = 0;
|
|
125
|
+
let removed = 0;
|
|
126
|
+
for (const diff of diffs) {
|
|
127
|
+
let fileAdded = 0;
|
|
128
|
+
let fileRemoved = 0;
|
|
129
|
+
for (const row of renderFileDiff(diff)) {
|
|
130
|
+
const cls = row.parts[0]?.class;
|
|
131
|
+
if (cls === 'added')
|
|
132
|
+
fileAdded += 1;
|
|
133
|
+
else if (cls === 'removed')
|
|
134
|
+
fileRemoved += 1;
|
|
135
|
+
}
|
|
136
|
+
const fileChanged = Math.min(fileAdded, fileRemoved);
|
|
137
|
+
added += fileAdded - fileChanged;
|
|
138
|
+
changed += fileChanged;
|
|
139
|
+
removed += fileRemoved - fileChanged;
|
|
140
|
+
}
|
|
141
|
+
const stats = [];
|
|
142
|
+
if (added > 0)
|
|
143
|
+
stats.push({ kind: 'added', text: String(added) });
|
|
144
|
+
if (changed > 0)
|
|
145
|
+
stats.push({ kind: 'changed', text: String(changed) });
|
|
146
|
+
if (removed > 0)
|
|
147
|
+
stats.push({ kind: 'removed', text: String(removed) });
|
|
148
|
+
return stats;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The window a read returned: its line range, how many lines, and their token size.
|
|
152
|
+
*
|
|
153
|
+
* An empty window still names the offset it starts at, because the view keeps it
|
|
154
|
+
* for exactly that case, and counts the model-facing content the card falls back
|
|
155
|
+
* to drawing rather than reporting a size of zero.
|
|
156
|
+
*/
|
|
157
|
+
function readStats(read) {
|
|
158
|
+
const text = read.lines.length > 0
|
|
159
|
+
? read.lines.map(line => line.text).join('\n')
|
|
160
|
+
: contentLines(read.content).join('\n');
|
|
161
|
+
const count = read.lines.length > 0 ? read.lines.length : lineCount(text);
|
|
162
|
+
const start = read.offset;
|
|
163
|
+
const stats = [
|
|
164
|
+
{ kind: 'size', text: count <= 1 ? `L${start}` : `L${start}–${start + count - 1}` },
|
|
165
|
+
{ kind: 'size', text: `${count} line${count === 1 ? '' : 's'}` },
|
|
166
|
+
];
|
|
167
|
+
const tokens = countTokens(withoutTrailingBreaks(text));
|
|
168
|
+
if (tokens > 0)
|
|
169
|
+
stats.push({ kind: 'size', text: `${formatTokens(tokens)} tok` });
|
|
170
|
+
return stats;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A diff's measured facts: a change with no prior content reports its size,
|
|
174
|
+
* while one that carried prior content reports its line changes.
|
|
175
|
+
*
|
|
176
|
+
* `oldText === null` means the prior content was unavailable at call time — a
|
|
177
|
+
* new file, or a whole-file overwrite — so no diff can be counted and the size
|
|
178
|
+
* is the only honest fact; naming that a *creation* would misread every
|
|
179
|
+
* overwrite as a new file.
|
|
180
|
+
*/
|
|
181
|
+
function diffStats(diffs) {
|
|
182
|
+
const withoutPrior = diffs.length > 0 && diffs.every(diff => diff.oldText === null);
|
|
183
|
+
return withoutPrior ? sizeStats(diffs.map(diff => diff.newText).join('\n')) : changeStats(diffs);
|
|
18
184
|
}
|
|
19
185
|
/**
|
|
20
186
|
* The rows a card shows right now, and how many the reader is not seeing.
|
|
@@ -22,19 +188,31 @@ function bound(lines) {
|
|
|
22
188
|
* Expansion is a view decision rather than a card field so one key press can
|
|
23
189
|
* change every card at once without rebuilding the transcript.
|
|
24
190
|
*/
|
|
25
|
-
export function cardDetailRows(card,
|
|
26
|
-
const lines =
|
|
191
|
+
export function cardDetailRows(card, preview) {
|
|
192
|
+
const lines = preview.expanded
|
|
193
|
+
? card.detail.slice(0, CARD_DETAIL_MAX)
|
|
194
|
+
: preview.preview === 'shellTail'
|
|
195
|
+
? card.detail.slice(-CARD_SHELL_PREVIEW)
|
|
196
|
+
: [];
|
|
27
197
|
return { lines, hidden: Math.max(0, card.totalLines - lines.length) };
|
|
28
198
|
}
|
|
199
|
+
/** The hint row for a folded shell card, or undefined when its preview dropped nothing. */
|
|
200
|
+
export function shellFoldHint(hidden) {
|
|
201
|
+
return hidden <= 0 ? undefined : `… ${hidden} ${CARD_HINT_EARLIER}`;
|
|
202
|
+
}
|
|
203
|
+
/** The hint row for an opened shell card whose retention dropped the run's earlier rows. */
|
|
204
|
+
export function shellRetentionHint(hidden) {
|
|
205
|
+
return hidden <= 0 ? undefined : `… ${hidden} ${CARD_HINT_UNRETAINED_EARLIER}`;
|
|
206
|
+
}
|
|
29
207
|
/**
|
|
30
|
-
* Build a card from raw lines.
|
|
208
|
+
* Build a card from raw text lines.
|
|
31
209
|
*
|
|
32
210
|
* Every path that turns text into a card goes through here, so a tool with no
|
|
33
211
|
* presenter — or a result whose presenter declined — cannot keep a hundred
|
|
34
212
|
* thousand lines alive in the transcript.
|
|
35
213
|
*/
|
|
36
214
|
export function cardFromLines(kind, title, lines, failed) {
|
|
37
|
-
const bounded = bound(lines);
|
|
215
|
+
const bounded = bound(lines.map(line => cardRow('detail', line)));
|
|
38
216
|
return { kind, title, detail: bounded.detail, failed, totalLines: bounded.totalLines };
|
|
39
217
|
}
|
|
40
218
|
/** Text lines carried by model-facing content blocks. */
|
|
@@ -55,6 +233,23 @@ export function contentLines(content) {
|
|
|
55
233
|
}
|
|
56
234
|
return lines;
|
|
57
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* The header fields a rebuilt card must keep.
|
|
238
|
+
*
|
|
239
|
+
* Replacing a card's rows says nothing about what the call was made with, what
|
|
240
|
+
* it measured, how it ended, or which calls it dispatched, so those fields
|
|
241
|
+
* travel with the rebuild: dropping the argument is how a shell card loses its
|
|
242
|
+
* command the moment a presenter declines the result.
|
|
243
|
+
*/
|
|
244
|
+
export function carriedFields(card) {
|
|
245
|
+
return {
|
|
246
|
+
...(card.argument === undefined ? {} : { argument: card.argument }),
|
|
247
|
+
...(card.stats === undefined ? {} : { stats: card.stats }),
|
|
248
|
+
...(card.status === undefined ? {} : { status: card.status }),
|
|
249
|
+
...(card.subCalls === undefined ? {} : { subCalls: card.subCalls }),
|
|
250
|
+
...(card.subCallsTotal === undefined ? {} : { subCallsTotal: card.subCallsTotal }),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
58
253
|
/**
|
|
59
254
|
* Collapse one call and its result into the single row the reader sees.
|
|
60
255
|
*
|
|
@@ -68,9 +263,25 @@ export function mergeCards(call, result) {
|
|
|
68
263
|
throw new Error('mergeCards requires at least one card');
|
|
69
264
|
if (call === undefined || result === undefined)
|
|
70
265
|
return base;
|
|
266
|
+
const kind = result.kind === 'generic' ? call.kind : result.kind;
|
|
267
|
+
// The result, when it names one, knows the argument that was actually acted
|
|
268
|
+
// on; a terminal result omits it, so the pending call's command is kept. The
|
|
269
|
+
// result also owns the measured facts, because only it knows the outcome.
|
|
270
|
+
const argument = result.argument ?? call.argument;
|
|
271
|
+
const stats = result.stats ?? call.stats;
|
|
272
|
+
const status = result.status ?? call.status;
|
|
273
|
+
// The nested calls belong to the call, not the outcome: a result never carries
|
|
274
|
+
// them, so the merge has to hand the call's own list through.
|
|
275
|
+
const subCalls = result.subCalls ?? call.subCalls;
|
|
276
|
+
const subCallsTotal = result.subCallsTotal ?? call.subCallsTotal;
|
|
71
277
|
return {
|
|
72
|
-
kind
|
|
278
|
+
kind,
|
|
73
279
|
title: call.title,
|
|
280
|
+
...(argument === undefined ? {} : { argument }),
|
|
281
|
+
...(stats === undefined ? {} : { stats }),
|
|
282
|
+
...(status === undefined ? {} : { status }),
|
|
283
|
+
...(subCalls === undefined ? {} : { subCalls }),
|
|
284
|
+
...(subCallsTotal === undefined ? {} : { subCallsTotal }),
|
|
74
285
|
detail: result.detail.length > 0 ? result.detail : call.detail,
|
|
75
286
|
failed: result.failed,
|
|
76
287
|
totalLines: result.detail.length > 0 ? result.totalLines : call.totalLines,
|
|
@@ -100,20 +311,46 @@ export function renderFileDiff(diff) {
|
|
|
100
311
|
// "new" keys off the absent prior text, not off an empty hunk: an unchanged
|
|
101
312
|
// file has no removals either and must not read as a creation.
|
|
102
313
|
const header = diff.oldText === null ? 'new' : `-${removed.length} +${added.length}`;
|
|
103
|
-
const
|
|
314
|
+
const rows = [cardRow('header', `${diff.path} ${header}`)];
|
|
104
315
|
if (head > 0)
|
|
105
|
-
|
|
316
|
+
rows.push(cardRow('hunk', `@@ ${head} unchanged line${head === 1 ? '' : 's'} before`));
|
|
106
317
|
for (const line of removed)
|
|
107
|
-
|
|
318
|
+
rows.push(cardRow('removed', `-${line}`));
|
|
108
319
|
for (const line of added)
|
|
109
|
-
|
|
320
|
+
rows.push(cardRow('added', `+${line}`));
|
|
110
321
|
if (tail > 0)
|
|
111
|
-
|
|
112
|
-
return
|
|
322
|
+
rows.push(cardRow('hunk', `@@ ${tail} unchanged line${tail === 1 ? '' : 's'} after`));
|
|
323
|
+
return rows;
|
|
113
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* Verbs a presenter may open its title with that only restate the call.
|
|
327
|
+
*
|
|
328
|
+
* The subject a reader scans for is what follows the verb, so the surface draws
|
|
329
|
+
* the card from there: "skill project-skill" rather than "Load skill
|
|
330
|
+
* project-skill". Only a declared title is normalized — a path or a command is
|
|
331
|
+
* the call's own data, and shortening that would misreport what ran — and the
|
|
332
|
+
* list stays literal because inferring a verb could cut a real title short.
|
|
333
|
+
*/
|
|
334
|
+
const REDUNDANT_TITLE_LEADS = ['Load '];
|
|
114
335
|
function title(view, fallback) {
|
|
115
336
|
const declared = view.title?.trim() ?? '';
|
|
116
|
-
|
|
337
|
+
const lead = REDUNDANT_TITLE_LEADS.find(prefix => declared.startsWith(prefix));
|
|
338
|
+
const shown = lead === undefined ? declared : declared.slice(lead.length).trim();
|
|
339
|
+
return shown === '' ? fallback : shown;
|
|
340
|
+
}
|
|
341
|
+
/** A read line keeps its number apart from its text, because they read differently. */
|
|
342
|
+
function readLine(number, text) {
|
|
343
|
+
return { parts: [{ class: 'lineNumber', text: `${number}:` }, { class: 'line', text: ` ${text}` }] };
|
|
344
|
+
}
|
|
345
|
+
/** A search hit keeps its location apart from the matching line. */
|
|
346
|
+
function searchHit(path, lineNumber, line) {
|
|
347
|
+
return {
|
|
348
|
+
parts: [
|
|
349
|
+
{ class: 'path', text: path },
|
|
350
|
+
{ class: 'lineNumber', text: `:${lineNumber}:` },
|
|
351
|
+
{ class: 'match', text: ` ${line}` },
|
|
352
|
+
],
|
|
353
|
+
};
|
|
117
354
|
}
|
|
118
355
|
/** Map a tool's pending-call intent to a card, falling back to the raw call name. */
|
|
119
356
|
export function cardOfCall(view, fallbackName) {
|
|
@@ -123,16 +360,38 @@ export function cardOfCall(view, fallbackName) {
|
|
|
123
360
|
switch (view.card) {
|
|
124
361
|
case 'terminal': {
|
|
125
362
|
const terminal = view;
|
|
126
|
-
const
|
|
363
|
+
const rows = [];
|
|
364
|
+
if (terminal.description !== undefined && terminal.description !== '')
|
|
365
|
+
rows.push(cardRow('output', terminal.description));
|
|
127
366
|
if (terminal.cwd !== undefined && terminal.cwd !== '')
|
|
128
|
-
|
|
129
|
-
|
|
367
|
+
rows.push(cardRow('cwd', `cwd ${terminal.cwd}`));
|
|
368
|
+
// The header names the tool so the command can sit on its own row: a
|
|
369
|
+
// terminal view's own title IS the command, and a fold must not hide it.
|
|
370
|
+
const command = terminal.title?.trim() ?? '';
|
|
371
|
+
return {
|
|
372
|
+
kind: 'terminal',
|
|
373
|
+
title: fallbackName,
|
|
374
|
+
...(command === '' ? {} : { argument: command }),
|
|
375
|
+
detail: bound(rows).detail,
|
|
376
|
+
failed: false,
|
|
377
|
+
totalLines: 0,
|
|
378
|
+
};
|
|
130
379
|
}
|
|
131
380
|
case 'diff': {
|
|
132
381
|
const diff = view;
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
|
|
382
|
+
const bounded = bound(diff.diffs.flatMap(renderFileDiff));
|
|
383
|
+
const path = diff.diffs[0]?.path;
|
|
384
|
+
if (path === undefined || path === '') {
|
|
385
|
+
return { kind: 'diff', title: title(diff, fallbackName), detail: bounded.detail, failed: false, totalLines: bounded.totalLines };
|
|
386
|
+
}
|
|
387
|
+
return {
|
|
388
|
+
kind: 'diff',
|
|
389
|
+
title: fallbackName,
|
|
390
|
+
argument: path,
|
|
391
|
+
detail: bounded.detail,
|
|
392
|
+
failed: false,
|
|
393
|
+
totalLines: bounded.totalLines,
|
|
394
|
+
};
|
|
136
395
|
}
|
|
137
396
|
default: {
|
|
138
397
|
const generic = view;
|
|
@@ -140,8 +399,21 @@ export function cardOfCall(view, fallbackName) {
|
|
|
140
399
|
if (generic.rawInput !== undefined && lines.length === 0) {
|
|
141
400
|
lines.push(typeof generic.rawInput === 'string' ? generic.rawInput : JSON.stringify(generic.rawInput));
|
|
142
401
|
}
|
|
143
|
-
const bounded = bound(lines);
|
|
144
|
-
|
|
402
|
+
const bounded = bound(lines.map(line => cardRow('detail', line)));
|
|
403
|
+
// A call that names a file has an argument worth its own colour; one that
|
|
404
|
+
// does not keeps its declared title, which is already the label.
|
|
405
|
+
const location = generic.locations?.[0]?.path;
|
|
406
|
+
if (location === undefined || location === '') {
|
|
407
|
+
return { kind: 'generic', title: title(generic, fallbackName), detail: bounded.detail, failed: false, totalLines: bounded.totalLines };
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
kind: 'generic',
|
|
411
|
+
title: fallbackName,
|
|
412
|
+
argument: location,
|
|
413
|
+
detail: bounded.detail,
|
|
414
|
+
failed: false,
|
|
415
|
+
totalLines: bounded.totalLines,
|
|
416
|
+
};
|
|
145
417
|
}
|
|
146
418
|
}
|
|
147
419
|
}
|
|
@@ -149,68 +421,124 @@ export function cardOfCall(view, fallbackName) {
|
|
|
149
421
|
export function cardOfResult(view, input) {
|
|
150
422
|
const failed = input.failed;
|
|
151
423
|
if (view === undefined) {
|
|
152
|
-
const bounded = bound(input.contentLines);
|
|
424
|
+
const bounded = bound(input.contentLines.map(line => cardRow('detail', line)));
|
|
153
425
|
return { kind: 'generic', title: input.fallbackTitle, detail: bounded.detail, failed, totalLines: bounded.totalLines };
|
|
154
426
|
}
|
|
155
427
|
switch (view.card) {
|
|
156
428
|
case 'terminal': {
|
|
157
429
|
const terminal = view;
|
|
158
|
-
|
|
430
|
+
// A terminating newline is the shell's, not a row: keeping it would spend
|
|
431
|
+
// one slot of the preview window on a blank line the renderer then drops.
|
|
432
|
+
const raw = (terminal.output ?? '').replace(/\n+$/, '');
|
|
433
|
+
const rows = raw === '' ? [] : raw.split('\n').map(line => cardRow('output', line));
|
|
159
434
|
const status = terminal.signal !== undefined && terminal.signal !== ''
|
|
160
435
|
? `signal ${terminal.signal}`
|
|
161
436
|
: terminal.exitCode === undefined ? undefined : `exit ${terminal.exitCode}`;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
437
|
+
// The output is bounded from its END: a command that printed far more
|
|
438
|
+
// than retention keeps must still show how it finished, and the folded
|
|
439
|
+
// preview tails what is retained again.
|
|
440
|
+
const bounded = boundTail(rows);
|
|
441
|
+
// A terminal result mostly omits the title, because the pending call
|
|
442
|
+
// already carried the command; it is only a fallback for a resumed fold
|
|
443
|
+
// that never saw the call.
|
|
444
|
+
const command = terminal.title?.trim() ?? '';
|
|
445
|
+
return {
|
|
446
|
+
kind: 'terminal',
|
|
447
|
+
title: input.fallbackTitle,
|
|
448
|
+
...(command === '' ? {} : { argument: command }),
|
|
449
|
+
...(status === undefined ? {} : { status }),
|
|
450
|
+
detail: bounded.detail,
|
|
451
|
+
failed,
|
|
452
|
+
totalLines: bounded.totalLines,
|
|
453
|
+
};
|
|
166
454
|
}
|
|
167
455
|
case 'diff': {
|
|
168
456
|
const diff = view;
|
|
169
457
|
const bounded = bound(diff.diffs.flatMap(renderFileDiff));
|
|
170
|
-
|
|
458
|
+
const path = diff.diffs[0]?.path;
|
|
459
|
+
const stats = diffStats(diff.diffs);
|
|
460
|
+
if (path === undefined || path === '') {
|
|
461
|
+
return {
|
|
462
|
+
kind: 'diff',
|
|
463
|
+
title: title(diff, input.fallbackTitle),
|
|
464
|
+
...(stats.length === 0 ? {} : { stats }),
|
|
465
|
+
detail: bounded.detail,
|
|
466
|
+
failed,
|
|
467
|
+
totalLines: bounded.totalLines,
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
return {
|
|
471
|
+
kind: 'diff',
|
|
472
|
+
title: input.fallbackTitle,
|
|
473
|
+
argument: path,
|
|
474
|
+
...(stats.length === 0 ? {} : { stats }),
|
|
475
|
+
detail: bounded.detail,
|
|
476
|
+
failed,
|
|
477
|
+
totalLines: bounded.totalLines,
|
|
478
|
+
};
|
|
171
479
|
}
|
|
172
480
|
case 'search': {
|
|
173
481
|
const search = view;
|
|
174
|
-
const
|
|
175
|
-
?
|
|
176
|
-
: search.files.flatMap(file => file.matches.map(match =>
|
|
482
|
+
const rows = search.shape === 'paths'
|
|
483
|
+
? search.paths.map(path => cardRow('path', path))
|
|
484
|
+
: search.files.flatMap(file => file.matches.map(match => searchHit(file.path, match.lineNumber, match.line)));
|
|
177
485
|
if (search.truncated)
|
|
178
|
-
|
|
179
|
-
const bounded = bound(
|
|
486
|
+
rows.push(cardRow('truncated', `… ${search.total} total`));
|
|
487
|
+
const bounded = bound(rows);
|
|
180
488
|
return { kind: 'search', title: title(search, input.fallbackTitle), detail: bounded.detail, failed, totalLines: bounded.totalLines };
|
|
181
489
|
}
|
|
182
490
|
case 'read': {
|
|
183
491
|
const read = view;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
492
|
+
// The header now carries the path and the size stats, so the detail rows
|
|
493
|
+
// are only the numbered lines themselves.
|
|
494
|
+
const rows = [];
|
|
495
|
+
if (read.lines.length > 0) {
|
|
496
|
+
for (const line of read.lines)
|
|
497
|
+
rows.push(readLine(line.number, line.text));
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
for (const line of contentLines(read.content))
|
|
501
|
+
rows.push(cardRow('line', line));
|
|
502
|
+
}
|
|
503
|
+
const bounded = bound(rows);
|
|
504
|
+
const stats = readStats(read);
|
|
505
|
+
return {
|
|
506
|
+
kind: 'read',
|
|
507
|
+
title: input.fallbackTitle,
|
|
508
|
+
...(read.path === '' ? {} : { argument: read.path }),
|
|
509
|
+
...(stats.length === 0 ? {} : { stats }),
|
|
510
|
+
detail: bounded.detail,
|
|
511
|
+
failed,
|
|
512
|
+
totalLines: bounded.totalLines,
|
|
513
|
+
};
|
|
190
514
|
}
|
|
191
515
|
case 'web': {
|
|
192
516
|
const web = view;
|
|
193
|
-
const
|
|
517
|
+
const rows = [];
|
|
194
518
|
if (web.kind === 'search') {
|
|
195
|
-
if (web.answer !== undefined && web.answer !== '')
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
519
|
+
if (web.answer !== undefined && web.answer !== '') {
|
|
520
|
+
for (const line of web.answer.split('\n'))
|
|
521
|
+
rows.push(cardRow('detail', line));
|
|
522
|
+
}
|
|
523
|
+
for (const source of web.sources) {
|
|
524
|
+
rows.push(cardRow('source', source.title === undefined ? source.url : `${source.title} — ${source.url}`));
|
|
525
|
+
}
|
|
199
526
|
if (web.truncated)
|
|
200
|
-
|
|
527
|
+
rows.push(cardRow('truncated', '… more sources'));
|
|
201
528
|
}
|
|
202
529
|
else {
|
|
203
|
-
|
|
530
|
+
rows.push(cardRow('url', `${web.url} → ${web.statusCode}`));
|
|
204
531
|
if (web.truncated)
|
|
205
|
-
|
|
532
|
+
rows.push(cardRow('truncated', '… body truncated'));
|
|
206
533
|
}
|
|
207
|
-
const bounded = bound(
|
|
534
|
+
const bounded = bound(rows);
|
|
208
535
|
return { kind: 'web', title: title(web, input.fallbackTitle), detail: bounded.detail, failed, totalLines: bounded.totalLines };
|
|
209
536
|
}
|
|
210
537
|
default: {
|
|
211
538
|
const generic = view;
|
|
212
539
|
const lines = contentLines(generic.content);
|
|
213
|
-
const
|
|
540
|
+
const chosen = lines.length > 0 ? lines : input.contentLines;
|
|
541
|
+
const bounded = bound(chosen.map(line => cardRow('detail', line)));
|
|
214
542
|
return { kind: 'generic', title: title(generic, input.fallbackTitle), detail: bounded.detail, failed, totalLines: bounded.totalLines };
|
|
215
543
|
}
|
|
216
544
|
}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
|
|
|
6
6
|
/**
|
|
7
7
|
* Render the visible transcript as markdown.
|
|
8
8
|
*
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* The dump outlives the screen it came from, so each row is given the markdown
|
|
10
|
+
* construct that carries its meaning rather than whichever mark the surface
|
|
11
|
+
* happened to draw, and every fragment is escaped for display for the same
|
|
12
|
+
* reason a rendered row is: the file may be opened in a terminal, and it is
|
|
13
|
+
* full of model and tool output.
|
|
13
14
|
*/
|
|
14
15
|
export declare function transcriptToText(entries: readonly TranscriptEntry[]): string;
|
|
15
16
|
//# sourceMappingURL=export.d.ts.map
|
package/lib/export.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../src/export.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../src/export.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,gBAAgB,CAAA;AAelD,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3D;AAmBD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,GAAG,MAAM,CAsD5E"}
|