docs: update widgets/HUD research with current state (2026-02-09)
Updates research doc to reflect current codebase:
Current State Section Added:
- IZUI: OS-level app focus, IzuiSession model, new APIs
- Context/Modes: First-class context keys with history tracking
- Window Management: Current API surface and options
- Pubsub: Available system topics
HUD Integration Points:
- api.context.watch('mode') for mode tracking
- api.izui.getState() for IZUI display
- api.window.getFocusedVisibleWindowId() for active window
- Mode metadata includes groupId/groupName
Implementation Details:
- Updated window setup code with current options
- Reactive update patterns using context API
- Example code for mode/state watching
Status: Basic HUD in progress (agent implementing)
Based on exploration agent findings reviewing:
- backend/electron/izui-state.ts
- preload.js context/modes APIs
- backend/electron/windows.ts
- Extension infrastructure