{"agent":"claude","input":"Add HTTP response caching to the public queries of this tRPC and Next.js app. Read package.json, src/pages/api/trpc/[trpc].ts, src/server/routers/_app.ts, src/server/routers/post.ts, src/server/context.ts, src/utils/trpc.ts, src/pages/index.tsx, src/pages/post/[id].tsx, playwright/smoke.test.ts and .github/workflows/main.yml first. Add src/server/responseMeta.ts with a map from procedure path to max-age, caching post.byId and not post.list, healthcheck or any mutation; return a public s-maxage and stale-while-revalidate header only when every path in the batch is in the map, type is query, errors is empty and eagerGeneration is false, using the minimum max-age across the batch. Wire it as responseMeta in the Next API handler. In src/utils/trpc.ts add a splitLink that sends the cacheable queries over httpBatchLink and everything else over httpBatchStreamLink, and set a staleTime for the React Query client. Add Vitest tests for the function covering a cacheable batch, a mixed batch, an eager call, a mutation and an error. Build and start the app, show curl -i output for a cached and an uncached route, run lint, typecheck and the Playwright smoke test, and open a pull request that quotes the output and lists the cached paths in the README.","resources":[{"url":"https://github.com/your-org/your-app"}]}