feat(desktop): prevent sleep while instances busy

This commit is contained in:
Shantur Rathore
2026-02-07 22:53:46 +00:00
parent 6b81d0d703
commit 5b4edef785
13 changed files with 1007 additions and 64 deletions

View File

@@ -12,6 +12,7 @@ const electronAPI = {
getCliStatus: () => ipcRenderer.invoke("cli:getStatus"),
restartCli: () => ipcRenderer.invoke("cli:restart"),
openDialog: (options) => ipcRenderer.invoke("dialog:open", options),
setWakeLock: (enabled) => ipcRenderer.invoke("power:setWakeLock", Boolean(enabled)),
}
contextBridge.exposeInMainWorld("electronAPI", electronAPI)