{"agent":"claude","input":"Add graceful shutdown to this Koa API. Read src/server.ts, src/config.ts, src/cron.ts, src/logger.ts, package.json, Dockerfile, docker-compose.yml, .example.env, tests/controller/user.test.ts and README.md first. Keep the http.Server that app.listen returns, add a shutdown module that handles SIGTERM and SIGINT once: stop accepting connections with server.close, let in-flight requests finish, destroy idle keep-alive sockets (Node 14 has no closeIdleConnections), stop the cron job, close the TypeORM connection, and exit 0; force exit 1 after a timeout read from a new SHUTDOWN_TIMEOUT_MS setting in src/config.ts, documented in .example.env and README.md. Change the Dockerfile CMD to run node dist/server.js directly so the signal reaches the process. Write a Jest test in the style of the existing controller test that mocks typeorm and the cron job and asserts the shutdown order. Run lint, the tests and the build in your sandbox, start Postgres and the built server, send SIGTERM during a slow request and paste the request's status and the process's exit code and log lines into a pull request. Change no route or middleware.","resources":[{"url":"https://github.com/your-org/your-app"}]}