{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "agent-status",
  "type": "registry:ui",
  "description": "Status indicator that reflects the agent connection state",
  "files": [
    {
      "path": "components/ui/AgentStatus.tsx",
      "content": "import { useAgentState } from \"@deepgram/react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface AgentStatusProps {\n  className?: string;\n  labels?: Partial<Record<string, string>>;\n}\n\nconst DEFAULT_LABELS: Record<string, string> = {\n  idle:          \"Not started\",\n  connecting:    \"Connecting…\",\n  connected:     \"Connected\",\n  reconnecting:  \"Reconnecting…\",\n  disconnected:  \"Disconnected\",\n};\n\nexport function AgentStatus({ className, labels }: AgentStatusProps) {\n  const { state } = useAgentState();\n  const label = { ...DEFAULT_LABELS, ...labels }[state] ?? state;\n  return (\n    <span\n      className={cn(\"dg:flex dg:items-center dg:gap-1.5 dg:text-xs dg:text-muted-foreground\", className)}\n      data-agent-status\n      data-state={state}\n      aria-live=\"polite\"\n      aria-label={`Agent status: ${label}`}\n    >\n      {label}\n    </span>\n  );\n}\n",
      "type": "registry:ui",
      "target": ""
    }
  ],
  "dependencies": [
    "@deepgram/react"
  ],
  "registryDependencies": [
    "utils"
  ]
}
