@hirael/confirmloading the log…
NO RECENT BUILD
Pipeline
  1. Docsusage, props, keywords
  2. Demosrc/demo.tsx
  3. Buildshadcn add → vite
  4. Capturelight, dark, motion
  5. 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 { Trash2Icon } from 'lucide-react';import { ConfirmProvider, useConfirm } from '@/components/confirm';import { Button } from '@/components/ui/button';function DeleteProjectButton() {  const confirm = useConfirm();  const [deleted, setDeleted] = useState(false);  const handleClick = async () => {    const ok = await confirm({      title: 'Delete project?',      description: 'This action cannot be undone. All files in this project will be removed.',      confirmText: 'Delete',      tone: 'destructive',      icon: <Trash2Icon />,    });    if (ok) setDeleted(true);  };  return (    <Button variant='destructive' onClick={handleClick} disabled={deleted}>      {deleted ? 'Deleted' : 'Delete project'}    </Button>  );}function PublishButton() {  const confirm = useConfirm();  const handleClick = async () => {    await confirm({      title: 'Publish changes?',      description: 'Your latest edits will be visible to everyone.',      confirmText: 'Publish',    });  };  return (    <Button variant='outline' onClick={handleClick}>      Publish    </Button>  );}export default function ConfirmDemo() {  return (    <ConfirmProvider>      <div className='flex flex-wrap items-center gap-2'>        <DeleteProjectButton />        <PublishButton />      </div>    </ConfirmProvider>  );}