{"agent":"claude","input":"There are no tests for the Stripe webhook handler in app/api/webhooks/stripe/route.ts. Add vitest with a test script and a config that resolves the @/ alias, then write tests beside the handler. Sign each payload with stripe.webhooks.generateTestHeaderString using the same secret the handler reads, mock next/headers so headers() returns that signature, and stub stripe.subscriptions.retrieve with a fixture subscription. Cover: a bad signature answers 400 and writes nothing; checkout.session.completed sets the user's Stripe columns including the period end; invoice.payment_succeeded updates the user found by subscription id; an unhandled event type answers 200 and changes nothing. Run the tests against a local MySQL with prisma migrate deploy applied, creating and deleting a user per test. Run lint and tsc. Open a pull request quoting the test output and listing any gap the tests expose without changing the handler.","resources":[{"url":"https://github.com/your-org/your-app"}]}