{"agent":"claude","input":"Replace offset pagination on the admin accounts list in this chi API with a keyset cursor. Read api/admin/accounts.go, api/admin/api.go, database/admAccountStore.go, database/migrations/1_initial.go, database/migrations/2_bootstrap_users.up.sql, auth/pwdless/api_test.go, cmd/gendoc.go, routes.md and go.mod first. NewAccountFilter parses limit and offset from their first character only; fix both with strconv.Atoi, keep the default limit of 10, cap it at 100 and answer 400 on anything that is not a positive integer. Add an after parameter, a base64url cursor holding the last id, that adds where id greater than the cursor, forces order by id ascending and asks for limit plus one rows; refuse a request that sends both after and order with a 400 and say why in the pull request. Keep ScanAndCount and the count field for the first page only. Add a next field with the encoded cursor to the list response and leave the accounts array unchanged. Keep offset working for one release and say so. Write api/admin/accounts_test.go with an httptest server and a fake AccountStore covering the limit fix, the cursor round trip, the cap, the refused after plus order, and a garbage cursor. Install Postgres in your sandbox, run the migrations, start the server, create accounts as the bootstrap admin, walk /admin/accounts?limit=2 by following next, and paste the walk and go test -v ./... into the pull request. Regenerate routes.md with go run main.go gendoc -r. Change nothing in create, get, update or delete.","resources":[{"url":"https://github.com/your-org/your-app"}]}