{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chain-of-thought-demo",
  "title": "Chain of Thought: Example",
  "description": "Four steps with search results.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://ui.cuelark.com/r/chain-of-thought.json"
  ],
  "files": [
    {
      "path": "src/registry/cuelark/examples/chain-of-thought-demo.tsx",
      "content": "import * as React from \"react\";\nimport { FlaskConicalIcon, SearchIcon } from \"lucide-react\";\n\nimport { ChainOfThought, ChainOfThoughtStep } from \"@/registry/cuelark/ui/chain-of-thought\";\n\nconst STEPS = [\n  [\"Read the failing test output\", \"Reading the failing test output\"],\n  [\"Searched the codebase for “prorate”\", \"Searching the codebase for “prorate”\"],\n  [\"Wrote the fix in billing/prorate.ts\", \"Writing the fix in billing/prorate.ts\"],\n  [\"Ran the test suite\", \"Running the test suite\"],\n];\nconst FILES = [\"billing/prorate.ts\", \"billing/invoice.ts\", \"api/renew.ts\"];\n\nexport default function ChainOfThoughtDemo() {\n  const [at, setAt] = React.useState(0);\n  React.useEffect(() => {\n    if (at >= STEPS.length) return;\n    const id = setTimeout(() => setAt((n) => n + 1), 1300);\n    return () => clearTimeout(id);\n  }, [at]);\n  const status = (i: number) => (i < at ? \"complete\" : i === at ? \"active\" : \"pending\");\n  const label = (i: number) => STEPS[i]![i < at ? 0 : 1];\n  return (\n    <div className=\"grid min-h-[16rem] w-full max-w-lg content-start\">\n      <ChainOfThought title={at >= STEPS.length ? \"Fixed the proration bug\" : \"Working on it\"}>\n        <ChainOfThoughtStep status={status(0)} label={label(0)} />\n        <ChainOfThoughtStep status={status(1)} label={label(1)} icon={<SearchIcon />}>\n          {at > 1 && (\n            <div className=\"flex flex-wrap gap-1.5\">\n              {FILES.map((f) => (\n                <span key={f} className=\"rounded-md border border-border bg-card px-2 py-0.5 font-mono text-xs\">\n                  {f}\n                </span>\n              ))}\n            </div>\n          )}\n        </ChainOfThoughtStep>\n        <ChainOfThoughtStep status={status(2)} label={label(2)} />\n        <ChainOfThoughtStep status={status(3)} label={label(3)} icon={<FlaskConicalIcon />} />\n      </ChainOfThought>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "chain-of-thought",
    "example"
  ],
  "type": "registry:component"
}