{"agent":"claude","input":"Add slow query logging to this Mongoose app. Read src/index.js, src/config/config.js, src/config/logger.js, src/models/plugins/ and src/models/user.model.js first. Write a plugin in src/models/plugins/ with pre and post hooks on the query middleware and on aggregate that time each operation with process.hrtime.bigint() and log through the winston logger at warn when it exceeds a threshold: collection, operation, elapsed ms and the filter's keys only, never its values. Register it globally with mongoose.plugin() in src/index.js before models load. Add SLOW_QUERY_MS to the Joi schema in config.js with a default and an .env.example line; 0 logs everything. Do not enable mongoose debug. Add a unit test beside the existing plugin tests using setupTestDB, a spy on logger.warn and the threshold at 0, covering find, countDocuments and aggregate, plus one with a high threshold that logs nothing. Run yarn lint and yarn test against a MongoDB from docker-compose.yml and quote the results. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}