返回 DeepSeek-Reasonix
desktopBridgeAdapter.ts
根目录 / desktop / frontend / src / app-runtime / desktopBridgeAdapter.ts
1 import { app } from "../lib/bridge";
2
3 /** Runtime-only bridge ports used by App owners; presentation never imports the desktop bridge directly. */
4 export const desktopBridge = {
5 setRemoteTabComposerProfile: (tabId: string, mode: string, approvalMode: string, goal: string) =>
6 app.SetRemoteTabComposerProfile(tabId, mode, approvalMode, goal),
7 getTopicSummary: (request: Parameters<typeof app.GetTopicSummary>[0]) => app.GetTopicSummary(request),
8 cancelJobForTab: (tabId: string, jobId: string) => app.CancelJobForTab(tabId, jobId),
9 clearRemoteTabSession: (tabId: string) => app.ClearRemoteTabSession(tabId),
10 terminalOutputForTab: (tabId: string, sessionId: string) => app.TerminalOutputForTab(tabId, sessionId),
11 acceptDeliveryToTab: (tabId: string) => app.AcceptDeliveryToTab(tabId),
12 disconnectRemoteHost: (hostId: string) => app.DisconnectRemoteHost(hostId),
13 openRemoteProjectTab: app.OpenRemoteProjectTab,
14 listTabs: app.ListTabs,
15 openTaskSessionForTab: app.OpenTaskSessionForTab,
16 listSessionsForTab: app.ListSessionsForTab,
17 prepareSession: app.PrepareSession!,
18 getSessionPreparation: app.GetSessionPreparation!,
19 closeMergedWorktreeTab: app.CloseMergedWorktreeTab,
20 finalizeWorktreeMerge: app.FinalizeWorktreeMerge,
21 };
22
22 lines TYPESCRIPT