{"agent":"claude","input":"Add cursor-based pagination to this Express and Mongoose API without breaking page-based pagination. Read package.json, src/models/plugins/paginate.plugin.js, src/models/user.model.js, src/services/user.service.js, src/controllers/user.controller.js, src/validations/user.validation.js, src/routes/v1/user.route.js, tests/unit/models/plugins/paginate.plugin.test.js, tests/integration/user.test.js and tests/utils/setupTestDB.js first. Extend the paginate plugin so that when options.cursor is present it uses a keyset query on the single sort field plus _id as a tiebreaker, fetches limit plus one to detect the next page, and returns nextCursor as a base64url-encoded value, null at the end; without a cursor keep the existing behaviour and add nextCursor to the response. Reject a cursor combined with more than one sort field with a 400. Add the cursor query parameter to the Joi schema, the controller and the swagger comments, and add a compound index on createdAt and _id to the user schema. Write unit tests that walk pages by cursor with and without a concurrent insert and in descending order, and an integration test on GET /v1/users. Start MongoDB in the sandbox, run yarn lint and yarn test until they pass, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}