{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "terminal-demo",
  "title": "Terminal: Example",
  "description": "A test run streaming.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.cuelark.com/r/terminal.json"
  ],
  "files": [
    {
      "path": "src/registry/cuelark/examples/terminal-demo.tsx",
      "content": "import * as React from \"react\";\n\nimport { Terminal } from \"@/registry/cuelark/ui/terminal\";\n\nconst script = [\"$ pnpm test billing\", \"\", \" RUN  v3.2.4\", \" ✓ tax.test.ts (6 tests) 41ms\", \" ✓ invoice.test.ts (12 tests) 88ms\", \" ✗ renew.test.ts > retries twice\", \"warn: 1 snapshot obsolete\", \"\", \"$ pnpm test billing --update\", \" ✓ renew.test.ts (4 tests) 23ms\", \"done in 1.9s\"];\n\nexport default function TerminalDemo() {\n  const [n, setN] = React.useState(1);\n  React.useEffect(() => {\n    const id = setInterval(() => setN((v) => (v >= script.length ? 1 : v + 1)), 450);\n    return () => clearInterval(id);\n  }, []);\n  return <Terminal className=\"w-full max-w-lg\" title=\"agent · shell\" lines={script.slice(0, n)} streaming={n < script.length} />;\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "terminal",
    "example"
  ],
  "type": "registry:component"
}