// Central mutable state for the dashboard. // All modules read/write these variables directly (plain-script shared globals). const SETTINGS_DEFAULTS = { proxyPort: 8443, connectProxyPort: 8442, readyTimeoutMs: 0, notifyOnDisconnect: true, debug: false, disableOnFileUrls: false, backupRetention: 5 }; let currentState = null; let settings = { ...SETTINGS_DEFAULTS };