Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useState } from "react"import { CommandPages, type CommandPage } from "@/components/ui/command-pages"const pages: Record<string, CommandPage> = { root: { title: "Commands", groups: [ { heading: "Suggestions", items: [ { id: "new-file", label: "New file" }, { id: "search-files", label: "Search files" }, ], }, { heading: "Preferences", items: [{ id: "theme", label: "Change theme…", to: "theme" }], }, ], }, theme: { title: "Theme", groups: [ { heading: "Appearance", items: [ { id: "light", label: "Light", checked: true }, { id: "dark", label: "Dark", checked: false }, { id: "system", label: "System", checked: false }, ], }, ], },}export default function CommandPagesDemo() { const [host, setHost] = useState<HTMLDivElement | null>(null) return ( <div ref={setHost} className="relative h-[420px] w-full overflow-hidden"> {host && <CommandPages pages={pages} container={host} defaultOpen hotkey={false} />} </div> )}