@AGENTS.md
Single-page Next.js 16 demo of the Adaptyv Foundry public API. Five sections show the experiment lifecycle with 50/50 split layouts (interactive UI + API request/response panel).
bun dev --port 3456 # Local dev server
bun run build # Production build
bun run typecheck # TypeScript check
bun test # Run vitest tests- Always plan first. Use Plan Mode or subagents to explore and design before writing any code — even for small fixes
- Always use tasks. Break work into discrete tasks with TaskCreate, update status as you go (in_progress → completed)
- Use subagents for research. Delegate codebase exploration, investigation, and planning to subagents to keep the main context clean
- Never jump straight to implementation. The sequence is: explore → plan → implement → verify
- shadcn/ui uses Base UI, not Radix —
asChildprop does NOT exist - Tailwind v4 with
@theme inline— use CSS vars fromglobals.css, not arbitrary hex values - Geist fonts are literal names in
@theme inline, NOTvar(--font-geist-sans) - No
rounded-lg— the linter normalizes torounded-smeverywhere - Package manager is bun — do not use pnpm or npm
- All components are
"use client"except API routes - Do NOT set env vars on Vercel — use Doppler (
api-showcaseproject,prdconfig), which syncs automatically - All 5 sections share one coherent demo experiment (
ABS-001-042) — changes tolib/mock-data.tsaffect every section - API routes fall back to mock data when upstream is down — the demo must always work