MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toDesktopServerConnection

Function toDesktopServerConnection

apps/desktop/src/main/index.ts:672–678  ·  view source on GitHub ↗
(conn: SidecarConnection)

Source from the content-addressed store, hash-verified

670// bearer header at the session layer (installBearerAuthHeader), so the token
671// never crosses the IPC boundary.
672const toDesktopServerConnection = (conn: SidecarConnection): DesktopServerConnection => ({
673 kind: "desktop-sidecar",
674 key: "desktop-sidecar",
675 origin: conn.baseUrl,
676 apiBaseUrl: `${conn.baseUrl.replace(/\/+$/, "")}/api`,
677 displayName: "Local Executor",
678});
679
680const registerIpcHandlers = () => {
681 ipcMain.handle("executor:server:connection", (): DesktopServerConnection | null =>

Callers 2

restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected