{"agent":"claude","input":"The logout route in this Express app answers 500 with \"Error: req#logout requires a callback function\" since Passport was installed fresh. Read package.json and the lockfile if there is one, run npm install, and report the Passport version that was resolved and the version range that allowed it. Find every call to req.logout() or req.logOut() in the repository and list each one with its file and line. Reproduce the error before changing anything: if the app needs a database to start, mount the route module on a minimal Express app with the same session and Passport middleware and request the logout route, and keep the status and the error message. Change each logout call to pass a callback, move the redirect or response into that callback, and pass any error to next. Do not change the Passport version, the other dependencies, or the Express version. Run the same reproduction again and report the new status and Location header. Open a pull request with the before and after status, the resolved versions, and the list of changed calls.","resources":[{"url":"https://github.com/your-org/your-app"}]}