{"agent":"claude","input":"Add graceful shutdown to this React Router app. Read server.js, server/app.ts, package.json, tsconfig.node.json and the Dockerfile first. Keep the http.Server that app.listen returns, handle SIGTERM and SIGINT by calling server.close(), waiting for in-flight requests and exiting 0, with a hard deadline from SHUTDOWN_TIMEOUT_MS that calls closeAllConnections and exits non-zero. Close the Vite dev server too in the development branch, and export a shuttingDown flag a health route can read. Change the Dockerfile CMD to run node server.js directly so the signal reaches Node rather than npm, and explain --init in the pull request. Run npm run typecheck, npm run build and npm run start, then demonstrate with curl and kill that an in-flight request completes and the process exits 0, and that a request past the deadline is cut off with a non-zero exit. Open a pull request with the log output.","resources":[{"url":"https://github.com/your-org/your-app"}]}