{"agent":"claude","input":"Add a password reset flow to this Fastify API and open a pull request. Read package.json, src/app.ts, src/server.ts, src/routes/api/autohooks.ts, src/routes/api/auth/index.ts, src/routes/api/users/index.ts, src/plugins/app/password-manager.ts, src/plugins/app/users/users-repository.ts, src/schemas/common.ts, src/schemas/users.ts, the migrations directory, test/helper.ts, test/routes/api/users/users.test.ts, .env.example and .github/workflows/ci.yml first. Add migrations/006.do.password_resets.sql and 006.undo.password_resets.sql for a password_resets table that stores a SHA-256 token hash, expires_at, used_at and the user id. Add POST /api/auth/forgot-password, which answers the same 200 body whether or not the email exists and for a known user stores a reset row and passes the raw token to a mailer decorator in src/plugins/app/mailer.ts that logs with the token redacted by default, and POST /api/auth/reset-password, which takes token and newPassword on the existing PasswordSchema, refuses wrong, expired and used tokens, and updates the password and marks the row used in one transaction. Exempt both routes in autohooks.ts and give each a per-route rateLimit of 3 per minute. Add test/routes/api/auth/password-reset.test.ts in the node:test style of the users tests covering every refusal and a login with the new password. Run npm run build -- --noEmit, npm run lint and npm run db:migrate && npm run test, and paste the test output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}