electron/managers/monitorManager/applyMonitorStateOperation
Monitor state persistence and event emission.
Remarks
Extracted from MonitorManager to keep the manager focused on lifecycle orchestration.
This helper:
- Mutates the cached monitor + site objects
- Persists the monitor changes inside a transaction
- Emits the canonical
monitor:status-changedpayload