import type { AgentMessage, AgentRunArgs, AgentRunner } from './agent-runner.js'; /** * One parsed agy stream-json event, normalized for incremental streaming. * - 'assistant': rawText is the accumulated agent_response text (fences * intact) for end-of-turn tool-call parsing; text is the fence-stripped * prose, present only when non-empty. * - 'tool': agy's own tool activity (step_type 'tool' with tool_info) * — forwarded by run() as a `tool_use` liveness AgentMessage (see header). * - 'meta': any other event that only carries a conversation id. */ export interface AgyStreamEvent { kind: 'assistant' | 'tool' | 'meta'; text?: string; rawText?: string; toolName?: string; conversationId?: string; } export declare class AntigravityAgentRunner implements AgentRunner { private agyBin?; constructor(agyBin?: string | undefined); run(args: AgentRunArgs): AsyncIterable; /** * Run one `agy` invocation and stream its stream-json output * INCREMENTALLY: each parsed event is yielded as soon as its line arrives * on stdout (see the header's "Streaming / liveness" note for why buffering * until process exit was a bug). End-of-turn facts (exit code, stderr tail, * conversation id, usage, error, timeout flag) are written into `outcome`, * which the caller reads after this generator completes. */ private streamTurn; } //# sourceMappingURL=antigravity-runner.d.ts.map