From 893a0ddec11ac5804ce680dc9c632b1ae0bedb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 16 Apr 2026 21:36:55 -0400 Subject: [PATCH] chore(preload): drop stale @planned notes on delete{Task,Goal,Project,Workspace} Handlers for deleteTask/deleteGoal/deleteProject live in ipc-core-task-graph-handlers.ts:166-168 (backed by database/tasks-crud.ts and database/entity-crud.ts), and deleteWorkspace lives at line 169 (backed by database/workspaces.ts). The four @planned comments were misleading. --- src/preload/index.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/preload/index.ts b/src/preload/index.ts index be023faf..06fbf3db 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -32,13 +32,9 @@ const api: DesktopApi = { checkForUpdates: () => ipcRenderer.invoke(IPC_CHANNELS.checkForUpdates), deleteCompany: (companyId) => ipcRenderer.invoke(IPC_CHANNELS.deleteCompany, companyId), deleteAgent: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteAgent, input), - /** @planned — handler not yet implemented in ipc-core-task-graph-handlers.ts */ deleteTask: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteTask, input), - /** @planned — handler not yet implemented in ipc-core-task-graph-handlers.ts */ deleteGoal: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteGoal, input), - /** @planned — handler not yet implemented in ipc-core-task-graph-handlers.ts */ deleteProject: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteProject, input), - /** @planned — handler not yet implemented in ipc-core-agent-graph-handlers.ts */ deleteWorkspace: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteWorkspace, input), deleteApproval: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteApproval, input), deleteSecret: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteSecret, input), @@ -167,6 +163,16 @@ const api: DesktopApi = { windowMaximize: () => ipcRenderer.invoke(IPC_CHANNELS.windowMaximize), windowClose: () => ipcRenderer.invoke(IPC_CHANNELS.windowClose), windowIsMaximized: () => ipcRenderer.invoke(IPC_CHANNELS.windowIsMaximized) as Promise, + // Credentials (pi-mono) + listCredentials: () => ipcRenderer.invoke(IPC_CHANNELS.credentialsList), + saveCredential: (input) => ipcRenderer.invoke(IPC_CHANNELS.credentialsSave, input), + removeCredential: (input) => ipcRenderer.invoke(IPC_CHANNELS.credentialsRemove, input), + testCredential: (input) => ipcRenderer.invoke(IPC_CHANNELS.credentialsTest, input), + // OAuth (pi-mono) + startOAuth: (input) => ipcRenderer.invoke(IPC_CHANNELS.oauthStart, input), + cancelOAuth: (input) => ipcRenderer.invoke(IPC_CHANNELS.oauthCancel, input), + submitOAuthPrompt: (input) => ipcRenderer.invoke(IPC_CHANNELS.oauthPromptResponse, input), + submitOAuthManualCode: (input) => ipcRenderer.invoke(IPC_CHANNELS.oauthManualCodeResponse, input), }; contextBridge.exposeInMainWorld("agentCompany", api);