Preflight checks
Run the CI gates locally, in order, and report a concise pass/fail. Scope: $ARGUMENTS (empty = whole repo).
pnpm check— Biome lint + format. This is CI's gate (NOTpnpm lint). If it fails on formatting, runpnpm check:fixand re-run.pnpm typecheck—tsc --noEmitacross workspaces.pnpm test— Vitest per workspace (API under@cloudflare/vitest-pool-workers).
If a workspace filter was given, prefer pnpm --filter <ws> test and pnpm --filter <ws> exec vitest run <path> for speed, but still run repo-wide pnpm check + pnpm typecheck (they're fast and cross-workspace).
Do not run pnpm smoke (production) or pnpm test:e2e (Playwright) here.
Report:
check: PASS/FAIL
typecheck: PASS/FAIL
test: PASS/FAIL (<n passed, m failed>)
List each failure with file:line and a one-line cause. Stop and surface the first failing gate rather than pushing through.