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

Function toDesktopServerConnection

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

Source from the content-addressed store, hash-verified

718// bearer header at the session layer (installBearerAuthHeader), so the token
719// never crosses the IPC boundary.
720const toDesktopServerConnection = (conn: SidecarConnection): DesktopServerConnection => ({
721 kind: "desktop-sidecar",
722 key: "desktop-sidecar",
723 origin: conn.baseUrl,
724 apiBaseUrl: `${conn.baseUrl.replace(/\/+$/, "")}/api`,
725 displayName: "Local Executor",
726});
727
728const registerIpcHandlers = () => {
729 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