{"agent":"claude","input":"Convert this Socket.IO chat server to TypeScript. Read package.json, package-lock.json, index.js, index.html, .gitignore and .codesandbox/tasks.json first. Add typescript, @types/node and @types/express as dev dependencies and write a strict tsconfig.json with NodeNext module resolution, an ES2022 target so top-level await keeps working, src as rootDir and dist as outDir. Move index.js to src/index.ts and fix the sendFile path so index.html is still found from dist. Declare ServerToClientEvents and ClientToServerEvents interfaces for the chat message event with its acknowledgement callback and pass them to the Server generics; call open with the sqlite3 Database and Statement generics. Narrow every value strict mode flags, including the optional lastID, the unknown error in the catch, the handshake auth offset and the PORT variable, without using any. Add build and start scripts, ignore dist, and add a GitHub Actions workflow that runs npm ci and npm run build. Build, start the server, send a message between two browser tabs and show the replay after a restart, then open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}