ShellOutput
Terminal output as a log: ANSI colors and styles, clickable links, pretty-printed JSON (when the whole output is a JSON object or array and has no ANSI codes), a copy button that strips ANSI codes, and a meta line with exit code (green for 0, red otherwise), duration, timeout and size. Collapsed, it shows the last maxLines lines (12 by default) with a +N more lines hint and a Show all toggle; expanded, the log scrolls up to maxHeight. With live it shows Running, ticks the duration from startedAt, follows new lines, and offers Scroll to latest when the user scrolls up. Empty output shows No output. variant="compact" drops the tinted panel for use inside another card. BashTool renders it for Bash tool parts; use it directly for any other command output. Related helpers: parseAnsiLines, stripAnsi, hasAnsi, splitLinks, formatJsonOutput, tailLines, byteLength, formatBytes, and getBashRunInfo, which reads output and metadata from a Bash tool part.
$pnpm add @sinups/ai-kit @mantine/core @mantine/hooks @tabler/icons-react