{"agent":"claude","input":"Add protected procedures to this tRPC API. Read src/server/trpc.ts, src/server/context.ts, src/server/env.ts, src/server/routers/_app.ts, src/server/routers/post.ts, src/server/routers/post.test.ts, src/pages/api/trpc/[trpc].ts, src/utils/trpc.ts, playwright/smoke.test.ts, .env and .github/workflows/main.yml first. In trpc.ts add an isAuthed middleware that throws TRPCError UNAUTHORIZED when ctx.user is null and otherwise calls next with the narrowed user, and export protectedProcedure = publicProcedure.use(isAuthed). Make createContextInner take and return { user: { id: string } | null }, and have createContext set it from a bearer token in the Authorization header compared in constant time against a new API_TOKEN variable added to env.ts, .env and the CI workflow's env block. Keep post.add public; add post.remove as a protectedProcedure that deletes a post by id. Update post.test.ts for the new context shape and add tests that remove rejects with UNAUTHORIZED without a user and succeeds with one, plus a test for createContext with a right and a wrong header. Start Postgres, run pnpm install, pnpm prebuild, pnpm test-unit, pnpm tsc and pnpm test-e2e, and open a pull request that quotes the output and says where a session lookup would replace the token check.","resources":[{"url":"https://github.com/your-org/your-app"}]}