{"agent":"claude","input":"Add structured logging to this tRPC API. Read src/pages/api/trpc/[trpc].ts, src/server/trpc.ts, src/server/context.ts, src/server/prisma.ts, src/server/env.ts, src/server/routers/_app.ts, post.ts and post.test.ts, vitest.config.mts, package.json and .github/workflows/main.yml first. Add pino and a src/server/logger.ts that writes JSON to stdout at a level from LOG_LEVEL, added to the env schema as an optional enum defaulting to info. Put requestId (from x-request-id or crypto.randomUUID()) and a child logger on the context in createContextInner, with defaults so existing tests compile. Add a t.middleware in trpc.ts that logs path, type, ok, durationMs and the TRPCError code on failure, and make publicProcedure use it. Replace console.error in onError with ctx.log.error and set x-request-id in responseMeta. Write src/server/routers/logging.test.ts using a pino instance that writes to an in-memory stream, asserting the line for a successful healthcheck and for a NOT_FOUND post.byId. Run pnpm lint, pnpm typecheck and pnpm test-unit, and open a pull request with the output and one sample line.","resources":[{"url":"https://github.com/your-org/your-app"}]}