feat(cmd): add state machine module with transition table and dispatch
Pure state machine for the cmd panel with:
- State enum: IDLE, TYPING, RESULTS_OPEN, PARAM_MODE, EXECUTING, etc.
- Event enum for all user interactions and lifecycle events
- Transition table as data structure mapping (state, event) -> transitions
- Guard system for conditional transitions
- Action runner for side effects
- Invariant enforcement (bounds checking, mutual exclusivity)
- IZUI escape handler integration
- Concurrent execution guard (EXECUTING blocks new input)
- Testable without DOM/IPC dependencies