{"agent":"claude","input":"Add request id logging to this Express and Mongoose API. Read package.json, src/app.js, src/index.js, src/config/logger.js, src/config/morgan.js, src/config/config.js, src/middlewares/error.js, tests/unit/middlewares/error.test.js, tests/utils/setupTestDB.js, .env.example, docker-compose.yml and .travis.yml first. Add src/middlewares/requestId.js that keeps an incoming X-Request-Id when it matches a strict pattern of safe characters and a maximum length, otherwise makes a v4 id with the uuid package (add it to dependencies; do not depend on crypto.randomUUID because engines.node is >=12), stores it on req.id, sets the X-Request-Id response header immediately, and runs the rest of the chain inside an AsyncLocalStorage store. Register it in src/app.js before the morgan handlers. Make the winston format in src/config/logger.js prefix every message with the id from the store when there is one, add a morgan token id used at the front of both formats in src/config/morgan.js, and add requestId to the error body in src/middlewares/error.js. Document the header and field in src/docs/components.yml. Add tests/unit/middlewares/requestId.test.js with node-mocks-http and an integration test with supertest that checks a 401 from /v1/users carries the same id in the header and body. MongoDB is not running here and Docker is not installed: install docker.io, start dockerd, bring up the mongodb service from docker-compose.yml with docker-compose, set MONGODB_URL and the other variables from .env.example, and run yarn test, yarn lint and yarn prettier. Start the app once and show log lines for two requests with different ids and one with a supplied header. Open a pull request that pastes those lines.","resources":[{"url":"https://github.com/your-org/your-app"}]}