033
A clear yes or no for risky agent actions that shows the exact command or diff, answers to Y and N, and folds into a one-line receipt you can undo.
akaapproval·confirm
Run this in any project set up for the shadcn CLI. It copies the Go / No-go source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/go-no-go.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { GoNoGo } from "@/components/go-no-go";
export default function Page() {
return <GoNoGo />;
}A free React component in the Trust & Control collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Go / No-go source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| requestrequired | GoNoGoRequest | — |
| timeout | number | 30 |
| onDecision | (decision: GoNoGoDecision) => void | — |
| onUndo | () => void | — |
| className | string | — |