{"agent":"claude","input":"Validate this Next.js app's environment variables with Zod. Grep for every process.env read first, and read .env.example, lib/db/drizzle.ts, drizzle.config.ts, lib/payments/stripe.ts, lib/auth/session.ts, app/api/stripe/webhook/route.ts, lib/db/setup.ts and package.json. Write lib/env.ts with one z.object schema for every variable, with a url check on POSTGRES_URL and BASE_URL, prefix checks on the Stripe keys and a minimum length on AUTH_SECRET, parsed once with safeParse and thrown as a single message naming every bad key; import server-only at the top. Replace each process.env read and its non-null assertion with an import from lib/env.ts, except drizzle.config.ts, which runs under drizzle-kit; give it the same dotenv load and say why. Run pnpm install and pnpm build with a full .env, then remove AUTH_SECRET and build again to capture the failure. Open a pull request quoting both builds.","resources":[{"url":"https://github.com/your-org/your-app"}]}