{"agent":"claude","input":"Add an audit log to this Prisma project. Read prisma/schema.prisma, prisma/migrations/, prisma/seed.ts, src/server/prisma.ts, src/server/routers/post.ts, src/server/routers/post.test.ts, package.json and .github/workflows/main.yml first. Add an AuditLog model with id, model, recordId, action, before and after as Json?, an optional actor and createdAt, with an index on (model, recordId) and one on createdAt, and create its migration with prisma migrate dev --name audit_log. In src/server/prisma.ts, extend the client with a query.$allModels extension that wraps create, update, upsert and delete, reads the row before an update or delete inside the same transaction, writes an AuditLog row with before and after, logs createMany, updateMany and deleteMany as one row holding the filter, and never logs writes to AuditLog itself. Keep the exported prisma type and the globalThis cache. Extend post.test.ts to assert a create row after post.add and an update row with before and after after a direct update. Run pnpm prebuild, pnpm test-unit, pnpm tsc and pnpm lint until they pass, then open a pull request that explains what each action records and which operations are logged as a filter.","resources":[{"url":"https://github.com/your-org/your-app"}]}