{"agent":"codex","input":"A GitHub issue labelled api says GET /tasks in this Hono and Drizzle API returns every row and needs cursor pagination. Read package.json, src/db/schema.ts, src/db/index.ts, src/db/migrations, src/app.ts, src/lib/create-app.ts, src/lib/constants.ts and every file under src/routes/tasks first. Choose the cursor column from the schema and explain the choice in the pull request: for each candidate say whether it is unique, nullable and indexed, and what precision a timestamp is stored at. Implement keyset pagination with no offset: an optional cursor and a limit with a default and a maximum in the route's query schema, a where clause on the cursor column, an explicit order, and one extra row fetched to detect the next page. Encode the cursor as an opaque string. Change the 200 response in tasks.routes.ts to an object with the items and an optional next cursor, and refuse a malformed cursor or an out-of-range limit with the same 422 body other validation errors use. State at the top of the pull request that the response shape is a breaking change, list what in the repository consumes it, and describe the Link header alternative. Add a migration only if the chosen order needs a new index. Update the existing list test and add tests against the real test database: a full walk over more rows than one page, an insert and a delete between pages, a tampered cursor and an oversized limit. Run pnpm typecheck, pnpm lint and pnpm test, start the server, follow the cursors with curl over seeded rows, and fetch /doc to show the new parameters. Open a pull request that closes the issue.","resources":[{"url":"https://github.com/your-org/your-app"}]}