{"agent":"claude","input":"Add cursor pagination to the users endpoints of this Flask and SQLAlchemy API. Read app/api/users.py, app/api/__init__.py, app/api/auth.py, app/api/tokens.py, app/api/errors.py, app/models.py, tests.py and requirements.txt first. Add a to_cursor_dict method to PaginatedAPIMixin that orders by User.id, filters with id greater than the decoded cursor, fetches per_page + 1 rows and returns items, _meta with per_page and has_more, and _links with self and next carrying an after parameter, or None on the last page. Encode the cursor as url-safe base64 of the id and answer bad_request for one that does not decode. Keep to_collection_dict and the page and per_page behaviour unchanged; use the cursor method only when the request sends after. Apply it to /api/users, /api/users/<id>/followers and /api/users/<id>/following. Add a UserAPICase to tests.py that creates twenty-five users, gets a token through POST /api/tokens, walks the list and one user's followers by following next until it is None, checks page mode still returns total_items, and checks a bad cursor answers 400. Run python tests.py and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}