import { type LocalRunner, type AgentDefinition, type NetworkEgressSetting, type ResolvedConfig } from "./config.ts"; import { type WorkerEnvironment } from "./launchCommand.ts"; import type { WorkspaceKind } from "./workspaceAdapter.ts"; export interface ComposedAgentLaunch { command: string; cleanup: () => void; } /** Build the workspace launch command shared by fresh runs and resumes. */ export declare function composeAgentLaunch(input: { runner: LocalRunner; networkEgress: NetworkEgressSetting; task: string; definition: AgentDefinition; promptFile: string; worktreeDir: string; workingDir: string; secretsFile?: string | undefined; prepareWorktreeCommand?: string | undefined; prepareWorktreeUnsandboxedCommand?: string | undefined; sandboxName?: string | undefined; workspaceKind: WorkspaceKind; workerEnvironment?: WorkerEnvironment | undefined; omitPromptArgument?: boolean | undefined; taskSourceWritePaths?: readonly string[] | undefined; safehouseEnableFeatures?: readonly string[] | undefined; readOnlyDirs?: readonly string[] | undefined; /** * Test-only seam: overrides `os.homedir()` when staging a relocated agent * config home (codex's `CODEX_HOME` under safehouse). Production callers * must omit this so specs can seed a fixture home instead of touching the * real `~/.codex`. */ homeDir?: string; }): ComposedAgentLaunch; interface PreparedAgentLaunch { runner: LocalRunner; /** Resolved `config.local.networkEgress`, threaded into `composeAgentLaunch`. */ networkEgress: NetworkEgressSetting; sandboxName: string | undefined; workspaceKind: WorkspaceKind; ensureReady: () => Promise; } export declare function prepareAgentLaunch(input: { config: ResolvedConfig; agent: string; definition: AgentDefinition; purpose: "runs" | "resumes"; signal?: AbortSignal; }): Promise; export declare function openAgentWorkspace(input: { config: ResolvedConfig; name: string; displayName?: string; url?: string | undefined; cwd: string; command: string; agent: string; color: string; signal?: AbortSignal; }): Promise; export {}; //# sourceMappingURL=agentLaunch.d.ts.map