{"agent":"codex","input":"Add user registration to this Fastify app and open a pull request. Read package.json, src/app.ts, src/routes/api/auth/index.ts, src/routes/api/autohooks.ts, src/routes/api/users/index.ts, src/schemas/auth.ts, src/schemas/users.ts, src/plugins/app/users/users-repository.ts, src/plugins/app/password-manager.ts, migrations/001.do.users.sql, migrations/004.do.roles.sql, migrations/005.do.user_roles.sql, scripts/seed-database.ts and test/helper.ts first. Add POST /api/auth/register with a TypeBox body of email, username and password, reusing the existing password pattern. Inside a knex transaction, answer 409 when the email exists, hash the password with passwordManager.hash, insert the user, link it to the basic role, and answer 201 with the new id. Do not create a session on register. Let the route through the autohooks session check and give it a per-route rateLimit like update-password has. Put the SQL in users-repository.ts as create and findRoleByName. Add tests in test/routes/api/auth/ using build and inject: success, duplicate email, weak password, login with the new account, and the 429. Run npm run lint, npm run build -- --noEmit and npm test, and paste the output in the pull request. Change nothing else.","resources":[{"url":"https://github.com/your-org/your-app"}]}