import type { IdeLink } from '../web/ide.js'; export interface OpenRelayHandle { /** URL the sandbox POSTs to (via OrbStack's `host.docker.internal`). */ readonly url: string; dispose(): Promise; } /** * Mac-side half of IDE links for a sandboxed run. The inner web dashboard * can't launch the Mac's IDE from a Linux container, so its `/api/open` * forwards here and this process — running on the Mac — opens the file. * * Listens on 127.0.0.1 only (OrbStack routes `host.docker.internal` to it) and * requires a per-session random token. The token is visible to everything in * the sandbox, so the relay only ever opens files inside the IDE project, in * the IDE: handing sandboxed code the OS default opener would let it `open` a * `.command`/`.app` it wrote to a shared mount — i.e. run code on the Mac. */ export declare function startOpenRelay(ide: IdeLink): Promise; //# sourceMappingURL=relay.d.ts.map