{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "subagent-tree-demo",
  "title": "Subagent Tree Demo",
  "description": "A worked example of Subagent Tree: Several agents working at once, nested under whoever handed the work down, each with its own state and elapsed time.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/subagent-tree.json"
  ],
  "files": [
    {
      "path": "components/demos/subagent-tree-demo.tsx",
      "content": "\"use client\"\n\nimport { SubagentTree } from \"@/registry/default/subagent-tree/subagent-tree\"\n\nconst runs = [\n  {\n    id: \"plan\",\n    label: \"Read the issue and split the work\",\n    status: \"done\" as const,\n    duration: 4.2,\n    children: [\n      {\n        id: \"search\",\n        label: \"Find every call site\",\n        status: \"done\" as const,\n        duration: 11.6,\n        detail: \"14 files, 31 calls.\",\n      },\n      {\n        id: \"migrate\",\n        label: \"Rewrite the call sites\",\n        status: \"running\" as const,\n        duration: 42.8,\n        children: [\n          {\n            id: \"a\",\n            label: \"src/upload\",\n            status: \"done\" as const,\n            duration: 8.1,\n          },\n          { id: \"b\", label: \"src/queue\", status: \"running\" as const },\n          { id: \"c\", label: \"src/workers\", status: \"queued\" as const },\n        ],\n      },\n      {\n        id: \"types\",\n        label: \"Check the generated types\",\n        status: \"failed\" as const,\n        duration: 6.4,\n        detail: \"Two entries still point at the old signature.\",\n      },\n    ],\n  },\n]\n\nexport function SubagentTreeDemo() {\n  return (\n    <div className=\"w-full max-w-lg\">\n      <SubagentTree runs={runs} />\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}