const { contextBridge, ipcRenderer } = require('electron'); contextBridge.exposeInMainWorld('desktopWorkbench', Object.freeze({ protocol: 'agent-workbench-desktop-v1', status: () => ipcRenderer.invoke('awb:desktop-status'), pickProject: () => ipcRenderer.invoke('awb:desktop-pick-project'), projectFolder: projectId => ipcRenderer.invoke('awb:desktop-project-folder', { projectId }), openFilePreview: input => ipcRenderer.invoke('awb:desktop-file-preview', input), reviewTask: input => ipcRenderer.invoke('awb:desktop-review-task', input), revealFile: input => ipcRenderer.invoke('awb:desktop-reveal-file', input), stopHost: () => ipcRenderer.invoke('awb:desktop-stop-host'), browsingLayout: input => ipcRenderer.invoke('awb:browsing-layout', input), }));