import type { Backend, BackendRunOptions } from "./types.js"; /** * EXPERIMENTAL Antigravity CLI (`agy`) backend — opt in with GEMINI_MCP_BACKEND=agy. * * agy is gemini-cli's successor (Gemini CLI retires 2026-06-18 for free/Pro/Ultra * tiers). The migration analysis behind this lives in * docs/migration/antigravity-cli.md. The behaviours that shape this code: * 1. `agy -p` is broken in 1.0.x — exit 0, empty stdout (and sometimes a * non-zero exit). Phase 3 makes output recovery a self-retiring ladder * (best → last-resort): clean JSON stdout when the build advertises * `--output-format json`; else plain stdout; else an opt-in pseudo-terminal * run (AGY_MCP_PTY=1) that coaxes a TTY-only build into printing; else the * on-disk transcript (agyTranscript.ts). A failed print run descends the * ladder rather than aborting. As agy improves, capability probing shifts * us up the ladder with no code change. * 2. Print-mode is hardcoded to Gemini 3.5 Flash; `--model` is ignored and * hangs if forced. supportsModelSelection is false; we never pass --model. * 3. `@file` is not inlined by agy (it's agent-first). We inline files ourselves * so the project-root guard and determinism survive — and because inlined * prompts carry whole files, they ride on stdin to dodge OS argv limits. * 4. `--sandbox`/`--dangerously-skip-permissions` do NOT isolate tool execution * in -p. We surface that truthfully instead of implying isolation. */ /** Build the prompt agy actually receives: changeMode wrap + self-inlined files. */ export declare function buildAgyPrompt(prompt: string, opts: BackendRunOptions): string; export declare function buildAgyArgs(opts: BackendRunOptions): string[]; /** Track agy's --print-timeout (default 5m) to our cap. Override: AGY_PRINT_TIMEOUT. */ export declare function agyPrintTimeoutArg(): string; export declare const agyBackend: Backend; //# sourceMappingURL=agy.d.ts.map