"use client"; import { Input } from "@kandev/ui/input"; import { Label } from "@kandev/ui/label"; import { Textarea } from "@kandev/ui/textarea"; type StepTaskProps = { agentName: string; taskTitle: string; taskDescription: string; onChange: (patch: { taskTitle?: string; taskDescription?: string }) => void; }; export function StepTask({ agentName, taskTitle, taskDescription, onChange }: StepTaskProps) { // Step 1 (agent creation) requires a non-empty agentName before advancing, // so by the time this step renders we always have a real value. const name = agentName.trim() || "coordinator"; return (
{name} will analyze this task, break it into subtasks, and assign them to worker agents.