AI agent JS behaviour

Terminal

A log/terminal surface: streaming lines with info / warn / error levels, follow-the-end with “jump to latest” when scrolled up, a prompt with a blinking caret, and level filters.

Real scenarios

The component as it is used in a product — not a specimen grid.

deploy · production
No lines
queue:work · last hour
No lines

Important props

Important props
Prop Type Default What it does
lines array [] Each line: id, text, optional level (guessed from ERROR: / [warn] / ✓), time.
name string null An address for the nx-terminal-push event, to append lines from JS.
script array null Lines played out with delays (demos and replays).
prompt / command / height string $ · "" · 18rem The prompt symbol (null hides it), the typed text, and the height.

Snippet

<x-nx::terminal title="deploy · production" name="deploy" :lines="$lines" height="20rem" />