Skip to content
Eskais UI

Agent tasks

Task Status

TaskStatusPill, AttemptStatusPill and ContextModePill: StatusPill tones and overridable labels for agent task, attempt and context mode values, with the source thread for reuse and fork.

Example

ProposedTo doWorkingIn reviewDoneBlocked
ActiveSucceededForked context

Installation

npx shadcn@latest add @eskais/task-status

Usage

Import
import {  AttemptStatusPill,  ContextModePill,  TaskStatusIcon,  TaskStatusPill,  attemptStatusLabels,  attemptStatusLabelsEs,  attemptStatusTones,  contextModeLabels,  contextModeLabelsEs,  contextModeTones,  taskStatusLabels,  taskStatusAccentTones,  taskStatusLabelsEs,  taskStatusTones,} from "@/components/ui/task-status"import { TaskStatusIcon, taskStatusAccentTones } from "@/components/ui/task-status-icon"

API reference

TaskStatusPill

PropTypeDefault
statusrequiredStatus–
labelsPartial<Record<Status, string>>–

Also takes StatusPillProps except tone, children.

AttemptStatusPill

PropTypeDefault
statusrequiredStatus–
labelsPartial<Record<Status, string>>–

Also takes StatusPillProps except tone, children.

ContextModePill

PropTypeDefault
moderequiredContextMode–
sourceThreadShown for "reuse" and "fork".ThreadRef–
renderThreadLink(thread: ThreadRef) => ReactNode–
labelsPartial<ContextModeLabels>–

Also takes StatusPillProps except tone, children.

TaskStatusIcon

PropTypeDefault
statusrequiredTaskStatus–
labelNames the icon when no status text is beside it; without it, it is decorative.string–
toneOverrides the status's tone, as a board's `columnTones` does.Tone–

Also takes <svg> attributes except children.

Other exports

attemptStatusLabelsattemptStatusLabelsEsattemptStatusTonescontextModeLabelscontextModeLabelsEscontextModeTonestaskStatusLabelstaskStatusAccentTonestaskStatusLabelsEstaskStatusTonestype ContextModeLabelstype ContextModePillPropstype TaskStatusIconProps

Accessibility

  • Each status maps to a Tone and a word, so it never rests on colour.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.