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 { DiffView, type FileDiff } from "@/components/spectrumui/blocks/ai-assistants/diff-view"const diffs: FileDiff[] = [ { id: "btn", path: "src/components/Button.tsx", additions: 2, deletions: 1, lines: [ { type: "context", text: "export function Button() {" }, { type: "remove", text: " return <button />;" }, { type: "add", text: ' return <button type="button" />;' }, { type: "add", text: " // TODO: forward ref" }, { type: "context", text: "}" }, ], }, { id: "readme", path: "README.md", additions: 1, deletions: 0, lines: [ { type: "context", text: "## Usage" }, { type: "add", text: "Import the Button component from ui/button." }, ], },]export default function DiffViewDemo() { return ( <DiffView diffs={diffs} onAccept={(id) => console.log("accept", id)} onReject={(id) => console.log("reject", id)} /> )}