{"agent":"claude","input":"Upgrade this React app from React Router 5 to React Router 6. Read package.json, every file under src that imports react-router or react-router-dom, src/utils/historyUtils.ts and the XState machines that import it, the component tests and the Cypress config first, and list each API in use: Switch, Route render props, Redirect, useHistory, useRouteMatch, withRouter, RouteProps and the Router with a custom history. Move to react-router-dom 6 and history 5, remove the separate react-router package and the DefinitelyTyped router packages, convert Switch to Routes with element props, replace the regular-expression route with explicit routes and the trailing-star route with a splat, rewrite PrivateRoute as a layout route using Outlet and Navigate that preserves the from state, replace Redirect, useHistory, useRouteMatch and withRouter with their version 6 equivalents, and keep the shared history object working for the state machines with the history router. Enable the version 7 future flags. Run the type check, lint, backend unit tests and production build, then the Cypress component tests and the user-interface end-to-end specs against the local servers, fix what breaks, and open a pull request listing every converted file and what each suite reported.","resources":[{"url":"https://github.com/your-org/your-app"}]}