Terminal
~/app npm ci~/app npm run lint~/app npm test~/app npm run build
Shell commands an agent runs, one row each: prompt, command, status, duration and the exit code on failure. Output streams in below, folds after N lines, and can be stopped or copied.
Shell commands an agent runs, with output streaming in. Not ToolCallCard.
Four commands play through: install and lint pass, the tests fail with exit 1, and the build runs long, so stop it. Scroll up in a running log to stop following it; scroll back down to follow again.
~/app npm ci~/app npm run lint~/app npm test~/app npm run buildAppend lines to a command's output as they arrive; strip ANSI codes first. Set status to done or failed (with exitCode) when it exits, and to stopped after onStop ends the process. Only status changes are announced to screen readers.
import { TerminalStream } from "agentic-ds-kit";From contracts/terminalstream.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| commands | array | Yes | — | { id, command, status, output?, duration?, startedAt?, exitCode?, cwd? }[], in run order. output is string[], oldest first; append lines to stream. duration is the final time ("4.2s"); a running command with startedAt (epoch ms) ticks a live timer instead. exitCode shows as "Exit N" on a failed command. cwd shows before the prompt in muted mono. |
| status | queued | running | done | failed | stopped | No | — | Per command, inside commands. queued waits its turn; running streams output (Running… shimmers); done exited 0; failed exited non-zero; stopped was stopped by the person. Each is an icon plus a word. |
| foldAfter | number | No | 12 | Output taller than this many lines folds to that height and shows "Show all N lines". A folded log renders only its newest 200 lines until opened; copy always takes all of it. |
| maxHeight | string | number | No | — | Open output scrolls inside past this height (a CSS length, or px). Left out, open output grows to fit. |
| onStop | function | No | — | (id) => void. Shows a Stop icon Button (SquareStop mark, Tooltip "Stop") on running commands only, beside the copy buttons and the same size. Stop the process, then set the command to stopped. |
| prompt | string | No | $ | Mark before each command. Decorative: never copied, not read out. |
| label | string | No | — | Card title and list name. Default KitLabels terminal ("Terminal"). |
One agent tool call on one line: status, mono name, summary and a live timer.
Read-only block of code with a copy button, optional title, language label, tabs, and line numbers.
A vertical step list for a running agent task: done steps with durations, the current step with a live timer, then pending steps.
Many agents, small: a strip of what runs now for a header (row of chips) or a sidebar (stack), with status, activity and a clock.