/** * restart-launchers.ts — per-tool CLI launch adapters for "Restart from..." * * Supported tools and their CLI arguments: * codex → codex "" * claude-code → claude "" * cursor → cursor agent "" * opencode → opencode run "" * vscode → fallback-only (no reliable session-create CLI) * * Contract: if compaction succeeded, the operation is still considered a * success even if the launch fails — the compact summary is already on the * clipboard for manual use. */ import type { CompactTarget } from "./session-compactor"; export interface LaunchResult { ok: boolean; /** Human-readable error message when ok === false. */ error?: string; /** True when the target has no supported launch path (e.g. vscode). */ isUnsupported?: boolean; } /** * Spawns the target tool's CLI with the compact prompt as an argument. * * The child process inherits stdio so the user sees its output. * The process is detached so the CLI can exit without waiting. * * Returns immediately after spawning (does not wait for the child to exit). */ export declare function launchTool(target: CompactTarget, prompt: string): LaunchResult; /** * Returns [command, args] for the given target. * Exported for unit testing without spawning a process. */ export declare function resolveCommand(target: Exclude, prompt: string): [string, string[]]; //# sourceMappingURL=restart-launchers.d.ts.map