(conn: SidecarConnection)
| 131 | }; |
| 132 | |
| 133 | const 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. |
no test coverage detected