{"agent":"claude","input":"Upgrade @tanstack/react-query from v4 to the current v5 release. Read package.json and list every useQuery, useMutation, useQueries, useInfiniteQuery and invalidateQueries call first, and note any defaultOptions the QueryClient sets. Run the TypeScript check on v4, install v5, run it again and quote the error counts by code, then render one array-form call on v5 and quote the runtime error. Use the official codemod if the installed release ships one, otherwise rewrite each call to the object form by hand: queries that relied on a suspense default become useSuspenseQuery, mutations take mutationFn and read isPending, invalidateQueries takes a queryKey filter. Run the TypeScript check and the production build afterwards and quote both. Open a pull request with the before and after.","resources":[{"url":"https://github.com/your-org/your-app"}]}