{"agent":"claude","input":"Migrate this React app from react-query v3 to @tanstack/react-query v5. Read package.json, the lockfile, tsconfig.json, the file that creates the QueryClient and every file that calls useQuery, useMutation, useQueryClient or other query APIs. Report the resolved versions of react, react-dom, typescript and react-query, and for each hook call: its key, whether it is enabled, how it is triggered, which callbacks it passes and which status flags the component reads. Take a baseline build; if the build tool does not run on this machine's Node, find a Node version it does run on, use it, and say which. Before migrating, check TanStack Query v5's peer range for React and whether the installed TypeScript can parse its declaration files by running tsc --noEmit after installing it; upgrade React, its type packages and TypeScript as far as v5 requires and no further, and move the root to createRoot if React 18 is needed. Find the codemods inside the installed package and run the v4 ones before the v5 ones; show each diff. Then review the result by hand: restore type arguments the codemod dropped, replace query callbacks that v5 no longer calls with code that produces the same visible behaviour, keep mutation callbacks, and choose between isPending and isLoading per hook according to what the component showed before, paying attention to disabled queries. Do not change the API service, the markup or the build tool. Verify with tsc --noEmit, the production build, and a click-through of every button against a stub of the API the service calls, checking each result panel and loading text. Open a pull request with the hook table, each upgrade and why it was needed, the codemod diffs, the manual corrections, and the verification output.","resources":[{"url":"https://github.com/your-org/your-app"}]}