{"agent":"claude","input":"Add slow query logging to this Prisma app. Read package.json, prisma/schema.prisma, prisma.config.ts, src/index.ts and prisma/seed.ts first. Move the adapter and PrismaClient construction into src/prisma.ts, exported once and imported by src/index.ts, with log set so query events are emitted as events and warn and error go to stdout. Register a $on query handler that reads a threshold in milliseconds from SLOW_QUERY_MS, writes each query at or over it to stderr as one JSON line with duration, target, query and timestamp, includes params only when LOG_QUERY_PARAMS is true, and logs every query when LOG_ALL_QUERIES is true. Parse the settings once at startup. Add the variables to .env.example. Start PostgreSQL in the sandbox, migrate and seed, run the server with SLOW_QUERY_MS=0, call the feed and users routes, and put the resulting log lines in the pull request. Write a vitest test for the handler with fake events above and below the threshold. Do not change the schema or the seed.","resources":[{"url":"https://github.com/your-org/your-app"}]}