{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "agent-status",
  "title": "Agent Status",
  "description": "A compact task summary with the current activity and an optional task tray.",
  "dependencies": [
    "@solar-icons/react@^2.2.0",
    "cn@^0.3.0"
  ],
  "registryDependencies": [
    "https://pastaui.com/r/pastaui-styles.json"
  ],
  "files": [
    {
      "path": "src/components/ai/agent-status.tsx",
      "content": "import { CheckCircleIcon as CheckIcon } from '@solar-icons/react/linear/check-circle'\nimport { RecordCircleIcon as CircleIcon } from '@solar-icons/react/linear/record-circle'\nimport { LoaderIcon as LoaderCircleIcon } from '@solar-icons/react/linear/loader'\nimport { ChecklistIcon as ListTodoIcon } from '@solar-icons/react/linear/checklist'\nimport * as React from 'react'\n\nimport { cn } from 'cn'\n\ninterface AgentStatusTask {\n  id: string\n  label: string\n  status: 'complete' | 'pending' | 'running'\n}\n\ninterface AgentStatusProps extends React.ComponentProps<'section'> {\n  detail?: string\n  tasks?: AgentStatusTask[]\n  title: string\n}\n\nfunction TaskStatus({ status }: Pick<AgentStatusTask, 'status'>) {\n  if (status === 'complete')\n    return (\n      <CheckIcon\n        aria-label=\"Complete\"\n        className=\"size-3 transition-[opacity,scale] duration-200 ease-[cubic-bezier(0.23,1,0.32,1)] starting:scale-90 starting:opacity-0 motion-reduce:starting:scale-100\"\n      />\n    )\n  if (status === 'running')\n    return (\n      <LoaderCircleIcon\n        aria-label=\"Running\"\n        className=\"size-3 animate-spin motion-reduce:animate-none\"\n      />\n    )\n  return <CircleIcon aria-label=\"Pending\" className=\"size-2.5 text-muted-foreground\" />\n}\n\nfunction AgentStatus({ className, detail, tasks = [], title, ...props }: AgentStatusProps) {\n  const complete = tasks.filter((task) => task.status === 'complete').length\n\n  return (\n    <section\n      data-slot=\"agent-status\"\n      className={cn(\n        'rounded-[16px] bg-card p-3 font-sans text-sm font-[450] tracking-[-0.05px] text-muted-foreground shadow-card',\n        className,\n      )}\n      {...props}\n    >\n      <header className=\"flex items-start gap-3\">\n        <span className=\"flex size-8 shrink-0 items-center justify-center rounded-[10px] bg-muted text-muted-foreground\">\n          <ListTodoIcon className=\"size-4\" />\n        </span>\n        <div className=\"min-w-0 flex-1\">\n          <h3 className=\"truncate card-heading\">{title}</h3>\n          {detail && <p className=\"mt-0.5 text-xs leading-5 text-muted-foreground\">{detail}</p>}\n        </div>\n        {tasks.length > 0 && (\n          <span className=\"font-mono text-xs text-muted-foreground\">\n            {complete}/{tasks.length}\n          </span>\n        )}\n      </header>\n\n      {tasks.length > 0 && (\n        <ul className=\"mt-3 flex flex-col gap-1 rounded-[10px] bg-muted/40 p-2\">\n          {tasks.map((task) => (\n            <li\n              className=\"flex items-center gap-2 rounded-md px-2 py-1.5 text-xs leading-5\"\n              key={task.id}\n            >\n              <span className=\"flex size-4 items-center justify-center\">\n                <TaskStatus status={task.status} />\n              </span>\n              <span className={cn(task.status === 'complete' && 'text-muted-foreground')}>\n                {task.label}\n              </span>\n            </li>\n          ))}\n        </ul>\n      )}\n    </section>\n  )\n}\n\nexport { AgentStatus }\nexport type { AgentStatusProps, AgentStatusTask }\n",
      "type": "registry:component",
      "target": "@components/ai/agent-status.tsx"
    }
  ],
  "type": "registry:component"
}