import { type OrckitConfig } from '../config/schema.js'; import type { IdeLink } from '../web/ide.js'; import { type Checkout } from './worktree.js'; /** * Whether this `orc start` should hand off to a sandbox. Never from inside a * sandbox (no recursion); `--no-sandbox` always wins; `--sandbox` forces it * (sandboxes are named after the git checkout, so it needs one). Otherwise an * enabled `sandbox:` block turns it on for linked worktrees, and for the main * checkout only with `main_checkout: true`. */ export declare function shouldSandbox(opts: { flag: boolean | undefined; config: OrckitConfig; checkout: Checkout | null; insideSandbox: boolean; }): boolean; export interface SandboxRunRequest { config: OrckitConfig; /** Absolute config path. */ configPath: string; checkout: Checkout; /** The user's `orc start` arguments (everything after `start`). */ argsAfterStart: string[]; refreshHome: boolean; /** Same semantics as the blocked-port check: what to do with a headless leftover. */ leftoverMode: 'ask' | 'kill' | 'fail'; ide: IdeLink | null; log: (msg: string) => void; warn: (msg: string) => void; confirm: (question: string) => Promise; } /** Expand `~` and resolve relative paths against `base`. */ export declare function expandPath(path: string, base: string, home?: string): string; /** * Run `orc start` for this checkout inside its sandbox and resolve with the * exit code to exit with. The inner orc owns the whole environment; this side * only prepares the container, relays IDE opens, forwards signals and waits. */ export declare function runInSandbox(req: SandboxRunRequest): Promise; /** * True when the checkout's own `node_modules/@orckit/cli` resolves to the * orckit we run (a `link:` to a local orckit checkout). The project's install * inside the sandbox then writes to that package, so it can't be read-only. */ export declare function linksPackage(checkoutRoot: string, orckitRoot: string): boolean; //# sourceMappingURL=run.d.ts.map