{"agent":"claude","input":"Add a health check endpoint to this clustered Socket.IO chat server. Read index.js, package.json, package-lock.json, .gitignore and .codesandbox/Dockerfile first. In the worker branch of index.js, add GET /health on the Express app that runs SELECT 1 on the open sqlite database and answers 200 with status, worker id, pid, port, io.engine.clientsCount and uptime, or 503 with status degraded and the error message when the query throws, with a Cache-Control: no-store header. Add test/health.test.js on node:test that spawns node index.js, polls http://localhost:3000/health until it answers, asserts the status, body fields and header, then stops the child and removes chat.db, and add a test script running node --test. Run npm ci and npm test on Node 20, start the server and request /health on two worker ports, show the 503 path by making chat.db unreadable, and open a pull request with both responses and the test output. Do not change the socket handlers or index.html.","resources":[{"url":"https://github.com/your-org/your-app"}]}