{"agent":"claude","input":"Migrate this Create React App project from react-scripts to Vite, and its tests from Jest to Vitest. First record the baseline: run npm ci, npm test and npm run build on the installed Node and keep the output. If the build fails with a digital envelope routines error, build once with NODE_OPTIONS=--openssl-legacy-provider and list the files in build/ as the reference. Then remove react-scripts and add vite, @vitejs/plugin-react, vitest and jsdom. If npm reports ERESOLVE, find the package that causes it, check whether any file imports it, and say what you did. Move public/index.html to the root, remove every %PUBLIC_URL%, add the module script tag, and rename every file that contains JSX to .jsx. If the plugin needs react/jsx-runtime and the locked React does not have it, raise React within the range package.json already declares; do not change the React major. Search src for module.hot, process.env and REACT_APP_ and fix each use for Vite. Keep the output directory named build. If the app calls serviceWorker.register(), stop and ask before choosing a replacement; if it only calls unregister(), keep that call. Configure Vitest with jsdom, run the existing tests unchanged, regenerate the snapshot file, and show a diff proving the old and new snapshots differ only in notation. Update the scripts in package.json and any CI file so npm test exits on its own. Do not rewrite components or tests beyond what the migration needs. Open a pull request with the output of every command, a before and after listing of build/, and a list of anything react-scripts did that Vite no longer does.","resources":[{"url":"https://github.com/your-org/your-app"}]}