Board
import { AgentBoard, RunRow, nest } from '@hanzo/ui/agents'
No examples yet.
Types
export type RunStatus = 'running' | 'paused' | 'done' | 'error' | 'unknown'
export interface Run {id: string/** The agent doing the work. */agent: stringstatus: RunStatus/** What it is doing right now — one line, already trimmed by the caller. */doing?: string/** Where it is running: a machine, a sandbox, a registered target. */target?: string/** The project this run belongs to. Absent groups under "Other work". */project?: string/** Sub-agents this run spawned. */children?: Run[]}
export interface RunRowProps extends Col {run: Rundepth?: numberactive?: booleanonOpen?: (id: string) => void/** Rendered at the end of the row — a watch affordance, a menu, a count. */trailing?: ReactNode}
export interface AgentBoardProps extends Scroll {/** Roots. Children ride on each root's `children`. */runs: Run[]/** The run currently open, so the board can mark it. */active?: stringonOpen?: (id: string) => void/** What to draw when there is nothing running. */empty?: ReactNode/** Heading for runs carrying no project. */otherLabel?: string}
Exports
AgentBoardRunRownesttype AgentBoardPropstype Runtype RunRowPropstype RunStatus