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

Function webUrlForConnection

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

Source from the content-addressed store, hash-verified

131};
132
133const webUrlForConnection = (conn: SidecarConnection): string => {
134 const url = new URL(conn.baseUrl);
135 if (conn.authToken) url.searchParams.set("_token", conn.authToken);
136 url.searchParams.set("_executor_desktop_launch", String(process.pid));
137 return url.toString();
138};
139
140// The supervised daemon (and the desktop sidecar) own this data dir — the same
141// path the CLI's `executor web`/daemon uses, so desktop and CLI share state.

Callers 4

armSupervisedMonitorFunction · 0.85
createWindowFunction · 0.85
restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85

Calls 2

setMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected