Agent plan
import { AgentPlan, planProgress, workStateDot, workProgress } from "@arcadia/ui";- Read the Q2 numbers read_filefinance/q2.csv
- Draft the board memo write_file
- Send it for review send_email
AgentPlan
frame- "card"
- The card.
status- "draft" | "running" | "done"
- Draft is editable, running is locked and live, done shows what each step took.
onChange- (steps: PlanStep[]) => void
- Every edit in a draft: rename, remove, reorder, add.
onRun- (steps: PlanStep[]) => void
- Run plan or Run again pressed, with the steps in their final order. The plan starts only here.
onCancel- () => void
- Cancel beside the run action, in a draft and while it runs.
onRetry- (stepId: string) => void
- Retry from here under a failed step, with that step id.
title- string
- The plan goal: its head, and the list label.
estimate- string
- The run estimated time, beside the head while the plan is a draft.
rootStyle- AgentPlanStyle
- Typed StyleX override: where the plan sits and its knobs.
steps- readonly PlanStep[]
- The steps, controlled: every edit leaves through onChange.
defaultSteps- readonly PlanStep[]
- The steps a draft starts with when uncontrolled: edits stay inside the component, and onChange still hears them.
Rest props go to HTMLAttributes<HTMLDivElement>.
framerequired- "fold"
title- string
- Default:
To-dos - The head's name: the plan, or what it is.
open- boolean
- Open state, controlled.
defaultOpen- boolean
- Default:
false - Whether it starts open.
onOpenChange- (open: boolean, details: OpenChangeDetails) => void
- Called when the head folds or unfolds the steps.
size- "xs" | "sm" | "md"
- The head's text style: sm (Body, a card) by default; md (Headline) in a conversation.
rootStyle- RootStyle<CollapsibleKnobs>
- Typed StyleX override: where the plan sits and the fold's knobs, which the head and the rows inherit.
steps- readonly PlanStep[]
- The steps, controlled: every edit leaves through onChange.
defaultSteps- readonly PlanStep[]
- The steps a draft starts with when uncontrolled: edits stay inside the component, and onChange still hears them.
Rest props go to HTMLAttributes<HTMLDivElement>.
State machine
- Read the release notes
- Check the deploy