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 { CodeIcon, ListIcon, QuoteIcon } from "lucide-react"import { Button } from "@/components/ui/button"import { Separator } from "@/components/ui/separator"import type { insertBlock } from "@/@components/editor/transforms"type BlockType = Parameters<typeof insertBlock>[1]const actions: { type: BlockType; label: string; icon: typeof QuoteIcon }[] = [ { type: "blockquote", label: "Quote", icon: QuoteIcon }, { type: "code_block", label: "Code block", icon: CodeIcon }, { type: "ul", label: "Bulleted list", icon: ListIcon },]export default function TransformsDemo() { return ( <div className="flex w-full max-w-md flex-col gap-3 rounded-md border p-2"> <div className="flex flex-wrap items-center gap-1"> {actions.map(({ type, label, icon: Icon }, index) => ( <div key={type} className="flex items-center gap-1"> {index > 0 && <Separator orientation="vertical" className="mx-1 h-6" />} <Button type="button" variant="ghost" size="sm" aria-label={label} data-block-type={type}> <Icon /> {label} </Button> </div> ))} </div> <p className="px-2 pb-2 text-sm text-muted-foreground"> Select a line of text, then choose a block type to transform it. </p> </div> )}