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:
1 parent
49df7e528e
commit
893a0ddec1
1 file changed
+10
-4
+10
-4
@@ -32,13 +32,9 @@ const api: DesktopApi = {
|
|||||||
checkForUpdates: () => ipcRenderer.invoke(IPC_CHANNELS.checkForUpdates),
|
checkForUpdates: () => ipcRenderer.invoke(IPC_CHANNELS.checkForUpdates),
|
||||||
deleteCompany: (companyId) => ipcRenderer.invoke(IPC_CHANNELS.deleteCompany, companyId),
|
deleteCompany: (companyId) => ipcRenderer.invoke(IPC_CHANNELS.deleteCompany, companyId),
|
||||||
deleteAgent: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteAgent, input),
|
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),
|
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),
|
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),
|
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),
|
deleteWorkspace: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteWorkspace, input),
|
||||||
deleteApproval: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteApproval, input),
|
deleteApproval: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteApproval, input),
|
||||||
deleteSecret: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteSecret, input),
|
deleteSecret: (input) => ipcRenderer.invoke(IPC_CHANNELS.deleteSecret, input),
|
||||||
@@ -167,6 +163,16 @@ const api: DesktopApi = {
|
|||||||
windowMaximize: () => ipcRenderer.invoke(IPC_CHANNELS.windowMaximize),
|
windowMaximize: () => ipcRenderer.invoke(IPC_CHANNELS.windowMaximize),
|
||||||
windowClose: () => ipcRenderer.invoke(IPC_CHANNELS.windowClose),
|
windowClose: () => ipcRenderer.invoke(IPC_CHANNELS.windowClose),
|
||||||
windowIsMaximized: () => ipcRenderer.invoke(IPC_CHANNELS.windowIsMaximized) as Promise<boolean>,
|
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);
|
contextBridge.exposeInMainWorld("agentCompany", api);
|
||||||
Reference in new issue
Block a user