{"agent":"claude","input":"Switch the tasks list route in this Fastify API from offset pagination to keyset cursor pagination, keeping page working during the transition. Read package.json, src/app.ts, src/routes/api/tasks/index.ts, src/schemas/tasks.ts, src/schemas/common.ts, src/plugins/app/tasks/tasks-repository.ts, migrations/002.do.tasks.sql, test/helper.ts, test/routes/api/tasks/tasks.test.ts and .github/workflows/ci.yml first. Keep the created_at then id ordering and make the cursor an opaque base64url encoding of the last row's created_at and id. With a cursor, use a row comparison on (created_at, id), fetch limit plus one rows, skip the window count and offset, and return next_cursor only when more rows exist. Without a cursor, keep the page path and its total. Reject a request that sends both. Add cursor and next_cursor to the TypeBox schemas with descriptions so swagger shows them, and add a do and undo migration for a composite index on (created_at, id). Add tests that walk the seeded table by cursor with no duplicates or gaps, survive an insert mid-walk, reverse with asc, reject a malformed cursor and keep page working. Start MySQL in the sandbox as the CI workflow does, run npm run build -- --noEmit, npm run lint, npm run db:migrate and npm run test, and open a pull request that documents the new parameter and the deprecation of page.","resources":[{"url":"https://github.com/your-org/your-app"}]}