{"agent":"claude","input":"Migrate this Flask project from Flask-JWT to Flask-JWT-Extended. Before changing code, write down the current authentication contract from the code, config and tests: the login URL and its request and response bodies, the Authorization header prefix, token lifetime, the claims in the token, how views read the current user, and the status code and JSON body of each error (bad credentials, missing header, expired token, malformed token). Then replace the JWT(app, authenticate, identity) object with JWTManager, and write a login view at the same URL that uses the existing authenticate function and returns the token under the same key. Map every JWT_ setting to its new name and keep the values, including lifetime and header prefix, so that nothing changes just because a default is different. Replace current_identity with current_user and a user_lookup_loader, or with get_jwt_identity where only the id is needed. Pass the identity as a string and convert it where the user is loaded. For each error case, keep the old status code and body unless the request says otherwise, using the library's loader callbacks, and list any case where that was not possible. Update the manifests: remove Flask-JWT, add Flask-JWT-Extended, and drop or raise the PyJWT pin. Run the existing tests, add tests for the error cases the suite does not cover, and run with warnings enabled and report security-related warnings such as a short signing key without changing secrets. State plainly that tokens issued before this change will be rejected after it, and what a client sees when that happens. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}