fix: preserve original event type, use source field for wrapper

This commit is contained in:
Jesse Vincent
2026-01-17 13:11:53 -08:00
parent 3bcf5db8a1
commit 91fbffc994
3 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ wss.on('connection', (ws) => {
ws.on('message', (data) => {
// User interaction event - write to stdout for Claude
const event = JSON.parse(data.toString());
console.log(JSON.stringify({ ...event, type: 'user-event' }));
console.log(JSON.stringify({ source: 'user-event', ...event }));
});
});