Skip to content
Eskais UI

Agent tasks

Agent Task Board core

The non-visual core of AgentTaskBoard: filter, group, sort and summarize tasks; English and Spanish labels; and the board and proposals primitives whose agent actions select, filter, switch views, open threads and decide proposals.

Example

  • Tasks
    7
  • Need a decision
    2
  • Cost
    $1.01 (estimated)

1 blocked. filterTasks with the query "docs" finds T-014.

Installation

npx shadcn@latest add @eskais/agent-task-board-core

Usage

Import
import {  FILTER_CONTROLS,  NO_STAGE,  TASK_STATUSES,  activeAttempt,  activeFilters,  attemptCount,  backlogGroups,  columnOrder,  countByStage,  filterOptions,  filterTasks,  groupByStatus,  isReady,  moveTask,  needsDecision,  sortTasks,  sumQuantities,  summarize,  taskCost,} from "@/lib/agent-task-board-model"import { agentTaskBoardLabels, agentTaskBoardLabelsEs, mergeLabels } from "@/lib/agent-task-board-labels"import { agentTaskBoard, createAgentTaskBoardController } from "@/components/ui/agent-task-board-primitive"import { agentTaskProposals } from "@/components/ui/agent-task-proposals-primitive"import {  AgentTaskBoardRoot,  AgentTaskMovesRoot,  AgentTaskProposalsRoot,  createAgentTaskBoardController,} from "@/components/ui/agent-task-board-root"import { agentTaskMoves } from "@/components/ui/agent-task-moves-primitive"

Use the model functions to build your own task views on the same filtering, grouping and summary logic.

API reference

AgentTaskBoardRoot

PropTypeDefault
onSelectTaskAgentTaskBoardOptions["onSelectedTaskIdChange"]–

Also takes BoardRoot except onSelectedTaskIdChange.

Other exports

FILTER_CONTROLSNO_STAGETASK_STATUSESactiveAttemptactiveFiltersattemptCountbacklogGroupscolumnOrdercountByStagefilterOptionsfilterTasksgroupByStatusisReadymoveTaskneedsDecisionsortTaskssumQuantitiessummarizetaskCostagentTaskBoardLabelsagentTaskBoardLabelsEsmergeLabelsagentTaskBoardcreateAgentTaskBoardControlleragentTaskProposalsAgentTaskMovesRootAgentTaskProposalsRootagentTaskMovestype BoardSummarytype ColumnConfigtype FilterControltype FilterOptionstype SortDirectiontype SortKeytype StatusColumntype TaskFilterstype TaskMovetype MoveLabelstype TaskMoveMessagetype AgentTaskBoardComponentLabelstype AgentTaskBoardLabelstype AgentTaskBoardLabelsInputtype CardLabelstype LinkLabelstype PanelLabelstype ProposalLabelstype TableColumntype TableLabelstype AgentApprovaltype AgentTaskBoardControllertype AgentTaskBoardOptionstype BoardModetype BoardViewtype FilterChangetype OpenLinkReasontype AgentTaskProposalsOptionstype ProposalActiontype AgentTaskBoardRootPropstype AgentTaskMovesOptionstype TaskMoveReason

Agent actions

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