{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "subagent-demo",
  "title": "Subagent: Example",
  "description": "One running, one finished with tool calls inside.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.cuelark.com/r/subagent.json",
    "https://ui.cuelark.com/r/tool.json"
  ],
  "files": [
    {
      "path": "src/registry/cuelark/examples/subagent-demo.tsx",
      "content": "import { Subagent } from \"@/registry/cuelark/ui/subagent\";\nimport { Tool } from \"@/registry/cuelark/ui/tool\";\n\nexport default function SubagentDemo() {\n  return (\n    <div className=\"grid w-full max-w-lg gap-2\">\n      <Subagent name=\"research-agent\" task=\"Find how other billing systems handle reverse-charge VAT\" status=\"running\" activity=\"Reading stripe.com/docs/tax…\" />\n      <Subagent name=\"test-writer\" task=\"Write tests for tax() with and without a tax ID\" status=\"done\" duration={12.4} defaultOpen>\n        <Tool name=\"write_file\" status=\"success\" duration={0.3} input={{ path: \"billing/tax.test.ts\" }} />\n        <Tool name=\"shell.run\" status=\"success\" duration={2.1} input={{ cmd: \"pnpm test tax\" }} output=\"8 passed\" />\n      </Subagent>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "subagent",
    "example"
  ],
  "type": "registry:component"
}