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.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 21:36:55 -04:00
1 parent 49df7e528e
commit 893a0ddec1
1 file changed
+10 -4
+10 -4
View File
@@ -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<boolean>,
// 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);