Key Addition: `.events` File (Per-Screen Event Stream)
The server writes all user interaction events to `$SCREEN_DIR/.events`, one JSON object per line. This gives Claude the full interaction stream for the current screen — not just the final selection, but the user's exploration path (clicked A, then B, settled on C). Example contents after a user explores options: ```jsonl {"type":"click","choice":"a","text":"Option A - Preset-First Wizard","timestamp":1706000101} {"type":"click","choice":"c","text":"Option C - Manual Config","timestamp":1706000108} {"type":"click","choice":"b","text":"Option B - Hybrid Approach","timestamp":1706000115} ``` - Append-only within a screen. Each user event is appended as a new line. - The file is cleared (deleted) when chokidar detects a new HTML file (new screen pushed), preventing stale events from carrying over. - If the file doesn't exist when Claude reads it, no browser interaction occurred — Claude uses only the terminal text. - The file contains only user events (`click`, etc.) — not server lifecycle events (`server-started`, `screen-added`). This keeps it small and focused. - Claude can read the full stream to understand the user's exploration pattern, or just look at the last `choice` event for the final selection.