{"agent":"claude","input":"Add health checks to this Socket Mode Bolt for JavaScript app. Read package.json, package-lock.json, app.js, manifest.json, README.md and AGENTS.md first. Build the receiver explicitly with new SocketModeReceiver and pass it to App through receiver, keeping the message and action listeners as they are. Add a connectionState module that subscribes to the receiver's client events connecting, connected, authenticated, reconnecting, disconnecting and disconnected and keeps the latest state and when it changed. Add customRoutes with GET /healthz, which answers 200 with status ok and no I/O, and GET /readyz, which answers 200 with the socket state and the time since it changed when the state is connected or authenticated, and 503 with the current state otherwise; set Cache-Control no-store on both. Serve them on installerOptions.port read from HEALTH_PORT with 3000 as the fallback, and explain in the pull request that the argument to app.start is not the port this server uses. Add a test script using node --test and test/health.test.js that builds the receiver with placeholder tokens, emits the client events in sequence, starts only the receiver's HTTP server on an ephemeral port, and asserts /readyz is 503 before any event, 200 after connected, 503 after reconnecting and 200 after authenticated, with /healthz 200 throughout. Follow AGENTS.md: no code comments. Document HEALTH_PORT in README.md. Run npm install, npm test and node --check app.js, start the app with placeholder tokens to show the HTTP server bound and /readyz answering 503 while authentication fails, and open a pull request that pastes the responses.","resources":[{"url":"https://github.com/your-org/your-app"}]}