feat: add macOS permission infrastructure for autocomplete

This commit is contained in:
CREDO23 2026-04-02 13:26:32 +02:00
parent bcc227a4dd
commit ec2b7851b6
5 changed files with 91 additions and 0 deletions

View file

@ -21,4 +21,9 @@ contextBridge.exposeInMainWorld('electronAPI', {
setQuickAskMode: (mode: string) => ipcRenderer.invoke(IPC_CHANNELS.SET_QUICK_ASK_MODE, mode),
getQuickAskMode: () => ipcRenderer.invoke(IPC_CHANNELS.GET_QUICK_ASK_MODE),
replaceText: (text: string) => ipcRenderer.invoke(IPC_CHANNELS.REPLACE_TEXT, text),
// Permissions
getPermissionsStatus: () => ipcRenderer.invoke(IPC_CHANNELS.GET_PERMISSIONS_STATUS),
requestAccessibility: () => ipcRenderer.invoke(IPC_CHANNELS.REQUEST_ACCESSIBILITY),
requestInputMonitoring: () => ipcRenderer.invoke(IPC_CHANNELS.REQUEST_INPUT_MONITORING),
restartApp: () => ipcRenderer.invoke(IPC_CHANNELS.RESTART_APP),
});