A snapshot to bootstrap a late/concurrent attach: bytes that repaint the current screen. May be async — a backend can reconstruct a full-screen (alternate-screen) TUI's buffer rather than replay raw scrollback, so an attach paints correctly without the child having to repaint.
Subscribe to live output; returns an unsubscribe fn.
Fires when the underlying process exits; returns an unsubscribe fn.
Resize the pseudo-terminal.
Forward keystrokes to the process.
A live attach onto a running agent's terminal — the stream
cotal attach(and, later, the browser console) consumes. PTY frames flow here directly, never over the mesh.