@spexcode/transcript-ui 0.7.0-next.1 → 0.7.0-next.10
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/ToolLine.js +12 -7
- package/dist/TranscriptView.d.ts +3 -0
- package/dist/TranscriptView.js +11 -2
- package/dist/context.d.ts +5 -0
- package/dist/context.js +5 -0
- package/dist/envelope.d.ts +10 -0
- package/dist/envelope.js +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/vocabulary.d.ts +5 -0
- package/dist/vocabulary.js +42 -4
- package/package.json +2 -2
- package/styles.css +3 -0
package/dist/ToolLine.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
|
|
|
3
3
|
import { useTranscriptUi } from './context.js';
|
|
4
4
|
import { Caret, Spinner } from './icons.js';
|
|
5
5
|
import { isRunning } from './segments.js';
|
|
6
|
-
import { runKinds, splitTarget, toolTarget, toolVerb } from './vocabulary.js';
|
|
6
|
+
import { prettyInput, runKinds, splitTarget, toolName, toolTarget, toolVerb } from './vocabulary.js';
|
|
7
7
|
// A LIVE FRAME WITHHOLDS OUTPUT BODIES: a recorded result is `null` on the wire, its size told, and the body
|
|
8
8
|
// is fetched once when a person opens the call, through the host's loader.
|
|
9
9
|
function WithheldOutput({ tool }) {
|
|
@@ -28,8 +28,9 @@ function WithheldOutput({ tool }) {
|
|
|
28
28
|
}
|
|
29
29
|
// One tool call as a SENTENCE, not a card: verb, target, and the size of what came back. It is
|
|
30
30
|
// `inline-flex` so a dozen of them read as a list of things that happened rather than a dozen boxes. There
|
|
31
|
-
// is no success mark
|
|
32
|
-
//
|
|
31
|
+
// is no success mark — the past-tense verb is the whole claim. A running call wears a small spinner and the
|
|
32
|
+
// word; a call whose harness recorded a structured failure wears `failed`, and one the person refused wears
|
|
33
|
+
// `rejected` — the outcome is the transcript's own field ([[transcript-reader]]), never read off the output prose.
|
|
33
34
|
export function ToolLine({ tool, open, onToggle, live = false }) {
|
|
34
35
|
const { labels, vocabulary } = useTranscriptUi();
|
|
35
36
|
const target = toolTarget(tool.input, vocabulary);
|
|
@@ -38,10 +39,12 @@ export function ToolLine({ tool, open, onToggle, live = false }) {
|
|
|
38
39
|
const withheld = tool.output === null;
|
|
39
40
|
const canOpen = !!tool.input || tool.output !== undefined || withheld;
|
|
40
41
|
const running = isRunning(tool, live);
|
|
41
|
-
const
|
|
42
|
-
|
|
42
|
+
const outcome = tool.outcome;
|
|
43
|
+
const { server } = toolName(tool.name);
|
|
44
|
+
const row = (_jsxs(_Fragment, { children: [_jsx("span", { className: "tx-tool-verb", children: toolVerb(tool.name, vocabulary) }), server && _jsx("span", { className: "tx-tool-server", children: server }), lead && _jsx("span", { className: "tx-tool-target", children: lead }), trail && _jsx("span", { className: "tx-tool-trail", children: trail }), lines > 0 && _jsx("span", { className: "tx-tool-size", children: labels.lines(lines) }), running && _jsxs("span", { className: "tx-tool-running", children: [_jsx(Spinner, {}), labels.running] }), outcome && _jsx("span", { className: `tx-tool-outcome is-${outcome}`, children: outcome === 'failed' ? labels.failed : labels.rejected }), canOpen && _jsx(Caret, { open: open, className: "tx-tool-caret" })] }));
|
|
45
|
+
return (_jsxs("div", { className: `tx-tool${running ? ' is-running' : ''}${outcome ? ` is-${outcome}` : ''}`, children: [canOpen
|
|
43
46
|
? _jsx("button", { type: "button", onClick: onToggle, "aria-expanded": open, className: "tx-tool-row is-openable", children: row })
|
|
44
|
-
: _jsx("div", { className: "tx-tool-row", children: row }), open && canOpen && _jsxs(_Fragment, { children: [tool.input && _jsx("pre", { className: "tx-tool-in", children: tool.input }), withheld
|
|
47
|
+
: _jsx("div", { className: "tx-tool-row", children: row }), open && canOpen && _jsxs(_Fragment, { children: [tool.input && _jsx("pre", { className: "tx-tool-in", children: prettyInput(tool.input) }), withheld
|
|
45
48
|
? _jsx(WithheldOutput, { tool: tool })
|
|
46
49
|
: tool.output !== undefined && _jsx("pre", { className: "tx-tool-out", children: tool.output })] })] }));
|
|
47
50
|
}
|
|
@@ -58,5 +61,7 @@ export function ToolRun({ tools, openIds, onToggle, live = false, fold = true })
|
|
|
58
61
|
const id = `run:${tools[0].id}`;
|
|
59
62
|
const open = openIds.has(id);
|
|
60
63
|
const running = tools.some((tool) => isRunning(tool, live));
|
|
61
|
-
|
|
64
|
+
// a fold must not hide a failure: the row counts the calls that did not succeed
|
|
65
|
+
const failed = tools.filter((tool) => tool.outcome).length;
|
|
66
|
+
return _jsx("div", { className: "tx-tools", children: _jsxs("div", { className: `tx-tool${running ? ' is-running' : ''}${failed ? ' is-failed' : ''}`, children: [_jsxs("button", { type: "button", className: "tx-tool-row is-openable is-run", "aria-expanded": open, onClick: () => onToggle(id), children: [_jsx("span", { className: "tx-tool-verb", children: labels.toolUses(tools.length) }), _jsx("span", { className: "tx-tool-trail", children: runKinds(tools, vocabulary) }), failed > 0 && _jsx("span", { className: "tx-tool-outcome is-failed", children: labels.failedCount(failed) }), _jsx(Caret, { open: open, className: "tx-tool-caret" })] }), open && _jsx("div", { className: "tx-tool-kids", children: tools.map(line) })] }) });
|
|
62
67
|
}
|
package/dist/TranscriptView.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ export declare function TurnBody({ turn, openIds, onToggle, live, fold }: {
|
|
|
8
8
|
live: boolean;
|
|
9
9
|
fold?: boolean;
|
|
10
10
|
} & Disclosure): import("react").JSX.Element;
|
|
11
|
+
export declare function QuotedTurn({ turn }: {
|
|
12
|
+
turn: AnyTurn;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
11
14
|
export declare function WorkSegmentView({ segment, openIds, onToggle, live }: {
|
|
12
15
|
segment: Work;
|
|
13
16
|
live: boolean;
|
package/dist/TranscriptView.js
CHANGED
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useTranscriptUi } from './context.js';
|
|
3
3
|
import { Caret } from './icons.js';
|
|
4
4
|
import { Quote } from './Quote.js';
|
|
5
|
+
import { parseEnvelope } from './envelope.js';
|
|
5
6
|
import { segments } from './segments.js';
|
|
6
7
|
import { ToolRun } from './ToolLine.js';
|
|
7
8
|
import { useDisclosure } from './useDisclosure.js';
|
|
@@ -11,19 +12,27 @@ export function TurnBody({ turn, openIds, onToggle, live, fold = true }) {
|
|
|
11
12
|
const { renderText } = useTranscriptUi();
|
|
12
13
|
return _jsxs("div", { className: "tx-say", children: [turn.text && _jsx("div", { className: "tx-say-text", children: renderText(turn.text) }), _jsx(ToolRun, { tools: turn.tools, openIds: openIds, onToggle: onToggle, live: live, fold: fold })] });
|
|
13
14
|
}
|
|
15
|
+
// a quoted turn is read through the envelope rows: the sender it names, the body it carried
|
|
16
|
+
export function QuotedTurn({ turn }) {
|
|
17
|
+
const { envelopes } = useTranscriptUi();
|
|
18
|
+
const envelope = parseEnvelope(turn.text || '', envelopes);
|
|
19
|
+
return _jsx(Quote, { who: envelope.who, ts: envelope.at ?? turn.at, text: envelope.body, className: "tx-quote-nested" });
|
|
20
|
+
}
|
|
14
21
|
export function WorkSegmentView({ segment, openIds, onToggle, live }) {
|
|
15
22
|
const { labels, vocabulary } = useTranscriptUi();
|
|
16
23
|
const id = `seg:${segment.work[0]?.id || segment.answer?.id}`;
|
|
17
24
|
const open = openIds.has(id);
|
|
18
25
|
const kinds = runKinds(segment.work.flatMap((turn) => turn.tools ?? []), vocabulary);
|
|
19
26
|
const foldedCalls = segment.work.reduce((n, turn) => n + (turn.tools?.length || 0), 0);
|
|
27
|
+
// a fold must not hide a failure: the row counts the calls whose harness recorded one
|
|
28
|
+
const failedCalls = segment.work.reduce((n, turn) => n + (turn.tools?.filter((tool) => tool.outcome).length || 0), 0);
|
|
20
29
|
// history folds its runs; the work in progress (a live segment's calls after its newest prose) does not
|
|
21
30
|
const history = !segment.now || !!segment.answer;
|
|
22
|
-
return _jsxs(_Fragment, { children: [segment.folded ? (_jsxs("div", { className:
|
|
31
|
+
return _jsxs(_Fragment, { children: [segment.folded ? (_jsxs("div", { className: `tx-work${failedCalls ? ' is-failed' : ''}`, children: [_jsxs("button", { type: "button", className: "tx-work-row", "aria-expanded": open, onClick: () => onToggle(id), children: [_jsx("span", { className: "tx-work-lead", children: labels.toolUses(foldedCalls) }), kinds && _jsx("span", { className: "tx-work-detail", children: kinds }), failedCalls > 0 && _jsx("span", { className: "tx-tool-outcome is-failed", children: labels.failedCount(failedCalls) }), _jsx(Caret, { open: open, className: "tx-work-caret" })] }), open && _jsx("div", { className: "tx-work-body", children: segment.work.map((turn) => _jsx(TurnBody, { turn: turn, openIds: openIds, onToggle: onToggle, live: live }, turn.id)) })] })) : segment.work.map((turn) => _jsx(TurnBody, { turn: turn, openIds: openIds, onToggle: onToggle, live: live, fold: history }, turn.id)), segment.answer && _jsx(TurnBody, { turn: segment.answer, openIds: openIds, onToggle: onToggle, live: live, fold: !segment.now }), segment.after.map((turn) => _jsx(TurnBody, { turn: turn, openIds: openIds, onToggle: onToggle, live: live, fold: !segment.now }, turn.id))] });
|
|
23
32
|
}
|
|
24
33
|
export function SegmentView({ segment, ...rest }) {
|
|
25
34
|
if (segment.kind === 'quote')
|
|
26
|
-
return _jsx(
|
|
35
|
+
return _jsx(QuotedTurn, { turn: segment.turn });
|
|
27
36
|
return _jsx(WorkSegmentView, { segment: segment, ...rest });
|
|
28
37
|
}
|
|
29
38
|
// THE TURNS, in the grammar: quotes where the host wants them, work segments folded behind their answers
|
package/dist/context.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type Vocabulary } from './vocabulary.js';
|
|
3
3
|
import type { FoldPolicy, UserTurnPolicy } from './segments.js';
|
|
4
|
+
import { type EnvelopeParser } from './envelope.js';
|
|
4
5
|
export type ToolOutputResult = {
|
|
5
6
|
ok: true;
|
|
6
7
|
output: string | null;
|
|
@@ -11,6 +12,9 @@ export type ToolOutputResult = {
|
|
|
11
12
|
export type Labels = Readonly<{
|
|
12
13
|
loading: string;
|
|
13
14
|
running: string;
|
|
15
|
+
failed: string;
|
|
16
|
+
rejected: string;
|
|
17
|
+
failedCount: (n: number) => string;
|
|
14
18
|
more: string;
|
|
15
19
|
toolUses: (n: number) => string;
|
|
16
20
|
lines: (n: number) => string;
|
|
@@ -27,6 +31,7 @@ export type TranscriptUiOptions = Readonly<{
|
|
|
27
31
|
loadToolOutput: ((toolId: string) => Promise<ToolOutputResult>) | null;
|
|
28
32
|
labels: Labels;
|
|
29
33
|
vocabulary: Vocabulary;
|
|
34
|
+
envelopes: readonly EnvelopeParser[];
|
|
30
35
|
fold: FoldPolicy;
|
|
31
36
|
runMin: number;
|
|
32
37
|
userTurns: UserTurnPolicy;
|
package/dist/context.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
3
|
import { defaultVocabulary } from './vocabulary.js';
|
|
4
|
+
import { defaultEnvelopes } from './envelope.js';
|
|
4
5
|
export const defaultLabels = {
|
|
5
6
|
loading: 'loading…',
|
|
6
7
|
running: 'running',
|
|
8
|
+
failed: 'failed',
|
|
9
|
+
rejected: 'rejected',
|
|
10
|
+
failedCount: (n) => `${n} failed`,
|
|
7
11
|
more: 'more',
|
|
8
12
|
toolUses: (n) => `${n} tool use${n === 1 ? '' : 's'}`,
|
|
9
13
|
lines: (n) => `${n} line${n === 1 ? '' : 's'}`,
|
|
@@ -20,6 +24,7 @@ export const defaultOptions = {
|
|
|
20
24
|
loadToolOutput: null,
|
|
21
25
|
labels: defaultLabels,
|
|
22
26
|
vocabulary: defaultVocabulary,
|
|
27
|
+
envelopes: defaultEnvelopes,
|
|
23
28
|
fold: 'segments',
|
|
24
29
|
runMin: 3,
|
|
25
30
|
userTurns: 'boundary',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Envelope = Readonly<{
|
|
2
|
+
who: string | null;
|
|
3
|
+
id?: string | null;
|
|
4
|
+
at?: number | null;
|
|
5
|
+
body: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type EnvelopeParser = (text: string) => Envelope | null;
|
|
8
|
+
export declare const spexEnvelope: EnvelopeParser;
|
|
9
|
+
export declare const defaultEnvelopes: readonly EnvelopeParser[];
|
|
10
|
+
export declare function parseEnvelope(text: string, parsers?: readonly EnvelopeParser[]): Envelope;
|
package/dist/envelope.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// `— from session "label" (id) on machine m. To reply: spex session send [--ssh addr] id "<your reply>"`
|
|
2
|
+
const SPEX_FOOTER = /\n*— from session (?:"(.*?)" \(([^\s)]+)\)|(\S+))(?: on machine \S+)?\. To reply: spex session send (?:--ssh \S+ )?\S+ "<your reply>"\s*$/;
|
|
3
|
+
export const spexEnvelope = (text) => {
|
|
4
|
+
const m = SPEX_FOOTER.exec(text || '');
|
|
5
|
+
if (!m)
|
|
6
|
+
return null;
|
|
7
|
+
const id = m[2] || m[3] || null;
|
|
8
|
+
return { who: m[1] || id, id, body: text.slice(0, m.index) };
|
|
9
|
+
};
|
|
10
|
+
export const defaultEnvelopes = [spexEnvelope];
|
|
11
|
+
export function parseEnvelope(text, parsers = defaultEnvelopes) {
|
|
12
|
+
for (const parse of parsers) {
|
|
13
|
+
const envelope = parse(text);
|
|
14
|
+
if (envelope)
|
|
15
|
+
return envelope;
|
|
16
|
+
}
|
|
17
|
+
return { who: null, body: text };
|
|
18
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/vocabulary.d.ts
CHANGED
|
@@ -11,11 +11,16 @@ export declare function extendVocabulary(base: Vocabulary, extra: Partial<{
|
|
|
11
11
|
quiet: Iterable<string>;
|
|
12
12
|
targetKeys: readonly string[];
|
|
13
13
|
}>): Vocabulary;
|
|
14
|
+
export declare function toolName(name: string | undefined): {
|
|
15
|
+
tool: string;
|
|
16
|
+
server: string | null;
|
|
17
|
+
};
|
|
14
18
|
export declare const toolVerb: (name: string | undefined, vocabulary?: Readonly<{
|
|
15
19
|
verbs: Readonly<Record<string, string>>;
|
|
16
20
|
quiet: ReadonlySet<string>;
|
|
17
21
|
targetKeys: readonly string[];
|
|
18
22
|
}>) => string;
|
|
23
|
+
export declare function prettyInput(input: string | undefined): string;
|
|
19
24
|
export declare const isQuietTool: (name: string, vocabulary?: Readonly<{
|
|
20
25
|
verbs: Readonly<Record<string, string>>;
|
|
21
26
|
quiet: ReadonlySet<string>;
|
package/dist/vocabulary.js
CHANGED
|
@@ -3,6 +3,7 @@ export const defaultVocabulary = {
|
|
|
3
3
|
Read: 'Read', NotebookRead: 'Read',
|
|
4
4
|
Grep: 'Searched', Glob: 'Searched', WebSearch: 'Searched the web',
|
|
5
5
|
Bash: 'Ran', BashOutput: 'Read output',
|
|
6
|
+
exec: 'Ran', shell: 'Ran', wait: 'Waited',
|
|
6
7
|
Edit: 'Edited', MultiEdit: 'Edited', NotebookEdit: 'Edited',
|
|
7
8
|
Write: 'Wrote',
|
|
8
9
|
WebFetch: 'Fetched',
|
|
@@ -10,7 +11,7 @@ export const defaultVocabulary = {
|
|
|
10
11
|
TodoWrite: 'Updated the plan',
|
|
11
12
|
},
|
|
12
13
|
quiet: new Set(['Read', 'NotebookRead', 'Grep', 'Glob', 'WebFetch', 'WebSearch']),
|
|
13
|
-
targetKeys: ['file_path', 'filePath', 'path', 'notebook_path', 'pattern', 'query', 'command', 'cmd', 'url', 'description'],
|
|
14
|
+
targetKeys: ['file_path', 'filePath', 'path', 'notebook_path', 'pattern', 'query', 'command', 'cmd', 'url', 'cell_id', 'description'],
|
|
14
15
|
};
|
|
15
16
|
export function extendVocabulary(base, extra) {
|
|
16
17
|
return {
|
|
@@ -19,8 +20,42 @@ export function extendVocabulary(base, extra) {
|
|
|
19
20
|
targetKeys: extra.targetKeys ? [...extra.targetKeys, ...base.targetKeys.filter((key) => !extra.targetKeys.includes(key))] : base.targetKeys,
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
// AN MCP TOOL IS NAMED BY ITS SERVER AND ITS TOOL. Every harness that speaks MCP writes the call as
|
|
24
|
+
// `mcp__<server>__<tool>`; the reader wants both halves, apart — measured across four transcript renderers,
|
|
25
|
+
// three knew the server in their data and lost it on the screen. The vocabulary may name the full id or the
|
|
26
|
+
// bare tool; an unnamed MCP tool reads as its tool half, never the whole mangled id.
|
|
27
|
+
export function toolName(name) {
|
|
28
|
+
const m = name ? /^mcp__(.+?)__(.+)$/.exec(name) : null;
|
|
29
|
+
return m ? { tool: m[2], server: m[1] } : { tool: name || 'tool', server: null };
|
|
30
|
+
}
|
|
31
|
+
export const toolVerb = (name, vocabulary = defaultVocabulary) => {
|
|
32
|
+
if (name && vocabulary.verbs[name])
|
|
33
|
+
return vocabulary.verbs[name];
|
|
34
|
+
const { tool } = toolName(name);
|
|
35
|
+
return vocabulary.verbs[tool] || tool;
|
|
36
|
+
};
|
|
37
|
+
// THE ARGUMENTS, WHEN OPENED, READ AS THE ARGUMENTS: a JSON object pretty-printed one field per line, a bare
|
|
38
|
+
// string (a script, a command) as itself. The wire form is one line; nobody reads one line of JSON.
|
|
39
|
+
export function prettyInput(input) {
|
|
40
|
+
if (typeof input !== 'string' || !input)
|
|
41
|
+
return '';
|
|
42
|
+
try {
|
|
43
|
+
const parsed = JSON.parse(input);
|
|
44
|
+
return parsed && typeof parsed === 'object' ? JSON.stringify(parsed, null, 2) : input;
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return input;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
23
50
|
export const isQuietTool = (name, vocabulary = defaultVocabulary) => vocabulary.quiet.has(name);
|
|
51
|
+
// A command's or a script's head: its first non-empty line, clamped. A one-liner is itself; a multi-line
|
|
52
|
+
// script shows the line that names it, and the CSS ellipsis takes the rest.
|
|
53
|
+
function firstLine(text) {
|
|
54
|
+
const line = text.split(/\r?\n/).map((l) => l.trim()).find(Boolean);
|
|
55
|
+
if (!line)
|
|
56
|
+
return null;
|
|
57
|
+
return line.length <= 160 ? line : line.slice(0, 160);
|
|
58
|
+
}
|
|
24
59
|
// The target, from the call's own arguments. `input` is the raw JSON of the arguments (or a bare string), so
|
|
25
60
|
// this reads the field the tool actually names and shows NOTHING when it cannot — a wrong target is worse
|
|
26
61
|
// than no target, and a truncated blob of JSON is not a target at all.
|
|
@@ -28,14 +63,17 @@ export function toolTarget(input, vocabulary = defaultVocabulary) {
|
|
|
28
63
|
if (typeof input !== 'string' || !input)
|
|
29
64
|
return null;
|
|
30
65
|
let parsed = null;
|
|
66
|
+
// A tool whose input is a bare string is a command or a script (a codex `exec` cell, a shell one-liner). Its
|
|
67
|
+
// FIRST non-empty line names it — a wall of script has a head worth reading, and nothing is worse than a row
|
|
68
|
+
// that says only "exec". JSON is parsed for its named target below; a bare string is its own head.
|
|
31
69
|
try {
|
|
32
70
|
parsed = JSON.parse(input);
|
|
33
71
|
}
|
|
34
72
|
catch {
|
|
35
|
-
return input
|
|
73
|
+
return firstLine(input);
|
|
36
74
|
}
|
|
37
75
|
if (!parsed || typeof parsed !== 'object')
|
|
38
|
-
return typeof parsed === 'string' ? parsed : null;
|
|
76
|
+
return typeof parsed === 'string' ? firstLine(parsed) : null;
|
|
39
77
|
for (const key of vocabulary.targetKeys) {
|
|
40
78
|
const value = parsed[key];
|
|
41
79
|
if (typeof value === 'string' && value.trim())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spexcode/transcript-ui",
|
|
3
|
-
"version": "0.7.0-next.
|
|
3
|
+
"version": "0.7.0-next.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components that draw a normalized agent transcript — the person quoted, the agent as the page, a tool call as a sentence, the work folded behind its answer — with the fold, the prose renderer, the tool vocabulary, the labels and the design tokens all tunable.",
|
|
6
6
|
"files": [
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "npm run build && tsx --test src/*.test.tsx"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@spexcode/transcript": "0.7.0-next.
|
|
27
|
+
"@spexcode/transcript": "0.7.0-next.10"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^18.2.0 || ^19.0.0"
|
package/styles.css
CHANGED
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
.tx-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-ink); }
|
|
86
86
|
.tx-tool-trail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-muted); }
|
|
87
87
|
.tx-tool-size { flex: none; color: var(--tx-muted); font-variant-numeric: tabular-nums; }
|
|
88
|
+
.tx-tool-server { flex: none; color: var(--tx-muted); font-size: var(--tx-type-caption); padding: 0 5px; border: 1px solid var(--tx-edge); border-radius: 999px; }
|
|
88
89
|
.tx-tool-row.is-run .tx-tool-verb { color: var(--tx-muted); font-weight: inherit; }
|
|
89
90
|
.tx-tool-kids { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--tx-edge); }
|
|
90
91
|
.tx-tool-in, .tx-tool-out {
|
|
@@ -104,6 +105,8 @@
|
|
|
104
105
|
of words still being said. Reduced motion keeps the marks and drops the movement. */
|
|
105
106
|
.tx-tool.is-running .tx-tool-verb { color: var(--tx-ink2); }
|
|
106
107
|
.tx-tool-running { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--tx-orange); font-size: var(--tx-type-caption); }
|
|
108
|
+
.tx-tool-outcome { flex: none; color: var(--tx-red); font-size: var(--tx-type-caption); }
|
|
109
|
+
.tx-tool.is-failed > .tx-tool-row .tx-tool-verb, .tx-tool.is-rejected > .tx-tool-row .tx-tool-verb { color: var(--tx-red); }
|
|
107
110
|
.tx-spin { animation: tx-spin 1s linear infinite; }
|
|
108
111
|
@keyframes tx-spin { to { transform: rotate(360deg); } }
|
|
109
112
|
.tx-live { margin-top: var(--tx-space-2); min-width: 0; }
|