{"agent":"claude","input":"Add a typing indicator to this Socket.IO chat. Read index.js, index.html, package.json and README.md first. In index.html add a username chosen once and kept in sessionStorage, sent in auth on connect; add an input listener that emits typing with socket.volatile.emit at most once every two seconds while the user types, and stop typing from a 1500 ms timer reset on each keystroke and on submit; show who is typing under the message list from a Set of names. In index.js read and cap the username from handshake.auth, give a socket without one a generated name, handle typing with socket.broadcast.volatile.emit, keep a per-socket 3000 ms timeout that emits stop typing when the client goes quiet or disconnects, and clear it on disconnect. Write test/typing.test.js under node --test that starts the server with two workers, connects a socket.io-client to each, types on the first and asserts the second receives typing with the name and stop typing within the timeout without the first client sending it; add a test script. Run the test until it passes and open a pull request that explains why the events are volatile and what the server timeout covers.","resources":[{"url":"https://github.com/your-org/your-app"}]}