import { z } from "zod"; export declare const runnerContract: { describe: import("@orpc/contract").ContractProcedureBuilderWithOutput, z.ZodObject<{ cpus: z.ZodNumber; memoryMb: z.ZodNumber; freeDiskMb: z.ZodNumber; load: z.ZodNumber; memoryFreeMb: z.ZodOptional; memoryLimitMb: z.ZodOptional; cpuPressure: z.ZodOptional; memoryStall: z.ZodOptional; }, z.core.$strip>, Record, Record>; syncWorkspace: import("@orpc/contract").ContractProcedureBuilderWithInputOutput; conversationId: z.ZodString; branch: z.ZodString; repos: z.ZodArray>; }, z.core.$strip>, import("@orpc/contract").Schema, import("@orpc/contract").AsyncIteratorClass<{ kind: "line"; text: string; } | { kind: "done"; ok: boolean; detail?: string | undefined; }, unknown, void>> & { [x: symbol]: z.ZodUnion; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"done">; ok: z.ZodBoolean; detail: z.ZodOptional; }, z.core.$strip>]>; }, Record, Record>; runTurn: import("@orpc/contract").ContractProcedureBuilderWithInputOutput; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; account: z.ZodOptional; sessionId: z.ZodOptional; attachments: z.ZodOptional>>; }, z.core.$strip>, import("@orpc/contract").Schema; } | undefined; } | { kind: "checkpoint"; id: string; index?: number | undefined; } | { kind: "steer"; text: string; sentAt: number; attachments?: string[] | undefined; voice?: "agent" | "sandbox" | undefined; errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined; messageId?: string | undefined; } | { kind: "delta"; text: string; parentToolUseId?: string | undefined; } | { kind: "text_end"; parentToolUseId?: string | undefined; } | { kind: "thinking"; text: string; parentToolUseId?: string | undefined; } | { kind: "tool_call"; id: string; name: string; category: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "think"; status: "completed" | "failed" | "in_progress" | "pending"; target?: string | undefined; locations?: { path: string; line?: number | undefined; }[] | undefined; content?: ({ type: "text"; text: string; } | { type: "diff"; path: string; oldText?: string | undefined; newText: string; truncated?: boolean | undefined; } | { type: "image"; path: string; })[] | undefined; input?: string | undefined; parentToolUseId?: string | undefined; } | { kind: "tool_call_update"; id: string; status?: "completed" | "failed" | "in_progress" | "pending" | undefined; content?: ({ type: "text"; text: string; } | { type: "diff"; path: string; oldText?: string | undefined; newText: string; truncated?: boolean | undefined; } | { type: "image"; path: string; })[] | undefined; locations?: { path: string; line?: number | undefined; }[] | undefined; exitCode?: number | undefined; } | { kind: "terminal"; session: string; } | { kind: "browser"; session: string; } | { kind: "subagent"; id: string; subagentKind: "linked" | "spawned" | "subagent"; agentType?: string | undefined; description?: string | undefined; model?: string | undefined; provider?: string | undefined; background?: boolean | undefined; } | { kind: "subagent_update"; id: string; status?: "blocked" | "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined; tokens?: number | undefined; toolUses?: number | undefined; lastTool?: string | undefined; summary?: string | undefined; error?: string | undefined; verification?: { state: "failing" | "no-code" | "unproven" | "verified"; paths?: string[] | undefined; check?: string | undefined; } | undefined; sdk?: { sessionId: string; agentId: string; } | undefined; } | { kind: "todos"; items: { content: string; status: "completed" | "in_progress" | "pending"; activeForm?: string | undefined; }[]; } | { kind: "commands"; items: { name: string; description: string; hint?: string | undefined; }[]; } | { kind: "usage"; account?: string | undefined; costUsd?: number | undefined; inputTokens?: number | undefined; outputTokens?: number | undefined; cacheReadTokens?: number | undefined; cacheCreationTokens?: number | undefined; durationMs?: number | undefined; numTurns?: number | undefined; openingCacheReadTokens?: number | undefined; openingCacheCreationTokens?: number | undefined; promptFingerprint?: string | undefined; } | { kind: "fast_mode"; state: "cooldown" | "off" | "on"; reason?: string | undefined; } | { kind: "provider_retry"; attempt: number; maxAttempts?: number | undefined; nextAttemptAt?: number | undefined; status?: number | undefined; } | { kind: "account_usage"; account?: string | undefined; windows: { kind: string; label?: string | undefined; utilization: number; resetsAt?: number | undefined; gates: "all" | "none" | { models: string[]; }; rounded?: boolean | undefined; lapsedAt?: number | undefined; missingSince?: number | undefined; }[]; } | { kind: "compact"; trigger: string; preTokens?: number | undefined; postTokens?: number | undefined; } | { kind: "install"; reach: "main-tree" | "own-copy"; projects: string[]; } | { kind: "agent_status"; key: string; text: string | null; source?: string | undefined; } | { level: "error" | "info" | "warning"; source?: string | undefined; sent?: string | undefined; kind: "agent_notice"; text: string; } | { requestId: string; text: string; document?: { path: string; title: string; markdown: string; truncated?: boolean | undefined; plan?: boolean | undefined; } | undefined; kind: "plan"; } | { requestId: string; questions: { question: string; header: string; multiSelect: boolean; options: { label: string; description: string; preview?: string | undefined; }[]; }[]; document?: { path: string; title: string; markdown: string; truncated?: boolean | undefined; plan?: boolean | undefined; } | undefined; kind: "question"; } | { requestId: string; session: string; account: string; message: string; kind: "browser_help"; } | { requestId: string; session: string; message: string; kind: "terminal_help"; } | { requestId: string; offer: { entry: string; name: string; why?: string | undefined; }; kind: "capability_offer"; } | { requestId: string; offer: { url: string; description?: string | undefined; payTo: string; network: string; asset: string; assetName: string; amountUsd: string; spentTodayUsd: string; dailyCapUsd: string; why?: string | undefined; }; kind: "payment_offer"; } | { requestId: string; offer: { subject: string; kind: "capability" | "secret"; lane: "browser" | "code" | "desktop" | "device" | "gateway" | "otp" | "session" | "shell" | "ssh"; detail?: string | undefined; why?: string | undefined; approvers: string[]; scope: "conversation" | "use"; }; kind: "credential_offer"; } | { kind: "need"; need: { id: string; conversationId: string; subject: { kind: "capability"; entry: string; name: string; mode: "change" | "connect" | "reconnect" | "remove"; instance?: string | undefined; target?: string | undefined; prefill?: Record | undefined; changes?: Record | undefined; reason?: string | undefined; reported?: boolean | undefined; } | { kind: "secret"; name: string; where?: string | undefined; link?: string | undefined; hint?: string | undefined; replace?: boolean | undefined; } | { kind: "grant"; subject: "capability" | "folder" | "shelf" | "site"; what: string; label: string; persona?: string | undefined; scope?: "conversation" | "persona" | undefined; } | { kind: "release"; subject: string; approvers: string[]; } | { kind: "environment"; tool: string; steps: string; approvedHash?: string | undefined; } | { kind: "automation"; automation: { id: string; trigger: { kind: "schedule"; cron: string; tz?: string | undefined; afterSessions?: number | undefined; } | { kind: "once"; at: number; } | { kind: "event"; dailyMax?: number | undefined; } | { kind: "listener"; provider: string; channelId?: string | undefined; eventType?: string | undefined; mentioned?: boolean | undefined; branch?: string | undefined; allowedOrigins?: string[] | undefined; } | { kind: "workspace"; event: "agent.landed" | "deps.broken" | "deps.fixed" | "turn.settled"; repo?: string | undefined; }; guard?: string | undefined; source?: { kind: "npm"; package: string; range?: string | undefined; tag?: string | undefined; } | { kind: "github-release"; repo: string; prereleases?: boolean | undefined; } | { kind: "url"; url: string; select?: string | undefined; } | undefined; fireOn?: "change" | "pass" | undefined; until?: "first-fire" | undefined; expiresAt?: number | undefined; target?: { kind: "agent"; } | { kind: "conversation"; conversationId: string; } | { kind: "notify"; } | undefined; note?: string | undefined; prompt: string; webchat?: { access?: "google" | "public" | undefined; requireName?: boolean | undefined; antiBot?: "pow" | "turnstile" | undefined; turnstileSiteKey?: string | undefined; turnstileSecret?: string | undefined; googleClientId?: string | undefined; title?: string | undefined; greeting?: string | undefined; accent?: string | undefined; position?: "bottom-left" | "bottom-right" | "top-left" | "top-right" | undefined; dailyMessageMax?: number | undefined; conversationMessageMax?: number | undefined; sessionTtlMinutes?: number | undefined; aiDisclosure?: boolean | undefined; aiDisclosureText?: string | undefined; } | undefined; issues?: { keyFromBrowsers?: boolean | undefined; dailyReportMax?: number | undefined; escalateAfter?: number | undefined; antiBot?: "pow" | undefined; title?: string | undefined; prompt?: string | undefined; thanks?: string | undefined; askEmail?: boolean | undefined; accent?: string | undefined; captureCrashes?: boolean | undefined; } | undefined; allowedTools?: string[] | undefined; models?: { provider: string; model: string; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; }[] | undefined; account?: string | undefined; actsAs?: string | undefined; senders?: { rules: { label?: string | undefined; ids?: string[] | undefined; groups?: string[] | undefined; actsAs?: string | undefined; requireApproval?: boolean | undefined; }[]; others: "allow" | "hold" | "ignore"; } | undefined; requireApproval?: boolean | undefined; holdForSeconds?: number | undefined; chore?: boolean | undefined; enabled: boolean; }; replaces?: boolean | undefined; firstCheck?: { pass: boolean; saw: string; at: number; } | undefined; }; title: string; why?: string | undefined; status: "cancelled" | "declined" | "met" | "open" | "working"; createdAt: number; updatedAt: number; answeredBy?: string | undefined; outcome?: string | undefined; told?: "call" | "queued" | "turn" | undefined; unattended?: boolean | undefined; }; } | { kind: "page"; page: { id: string; title: string; path: string; height?: number | undefined; measured?: number | undefined; source?: string | undefined; revision?: number | undefined; superseded?: boolean | undefined; app?: { server: string; tool: string; } | undefined; }; } | { kind: "review"; review: { id: string; source: "claude" | "codex"; level?: "high" | "low" | "max" | "medium" | "xhigh" | undefined; findings: { file: string; line?: number | undefined; endLine?: number | undefined; summary: string; title?: string | undefined; scenario?: string | undefined; body?: string | undefined; category?: string | undefined; verdict?: "CONFIRMED" | "PLAUSIBLE" | undefined; priority?: number | undefined; outcome?: "fixed" | "no_change_needed" | "skipped" | undefined; }[]; superseded?: boolean | undefined; }; } | { requestId: string; page: { id: string; title: string; path: string; height?: number | undefined; measured?: number | undefined; source?: string | undefined; revision?: number | undefined; superseded?: boolean | undefined; app?: { server: string; tool: string; } | undefined; }; kind: "page_ask"; } | { kind: "page_draft"; callId: string; at: number; text: string; title?: string | undefined; done?: boolean | undefined; } | { kind: "resolved"; requestId: string; reply?: { kind: "plan"; requestId: string; approve: boolean; feedback?: string | undefined; } | { kind: "question"; requestId: string; answers?: Record | undefined; attachments?: Record | undefined; cancelled?: boolean | undefined; } | { kind: "permission"; requestId: string; decision: "always" | "deny" | "everything" | "once"; feedback?: string | undefined; child?: { provider: string; model: string; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; account?: string | undefined; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; } | undefined; } | { kind: "browser_help"; requestId: string; helped: boolean; note?: string | undefined; } | { kind: "terminal_help"; requestId: string; helped: boolean; note?: string | undefined; } | { kind: "capability_offer"; requestId: string; connect: boolean; } | { kind: "payment_offer"; requestId: string; approve: boolean; } | { kind: "page_ask"; requestId: string; value?: string | undefined; cancelled?: boolean | undefined; } | { kind: "credential_offer"; requestId: string; approve: boolean; } | undefined; } | { kind: "mode"; mode: "bypassPermissions" | "default" | "plan"; } | { kind: "error"; message: string; own?: boolean | undefined; code?: "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-setup" | undefined; refusal?: { category?: string | undefined; resumeAt?: string | undefined; } | undefined; privacyRoute?: "own-key" | "runner" | "runtime" | "shared-server" | undefined; engine?: { id: string; running?: string | undefined; floor: string; } | undefined; resetsAt?: number | undefined; account?: string | undefined; autoResume?: "available" | "scheduled" | undefined; nextAt?: number | undefined; held?: { ran: boolean; contextTokens?: number | undefined; handoffTokens?: number | undefined; moving?: string | undefined; handoff?: { suggested: "carry" | "summary" | "trim"; basis: "setting" | "size"; carry?: { tokens?: number | undefined; } | undefined; trim?: { tokens: number; cleared: number; } | undefined; summary?: { tokens: number; reads?: number | undefined; } | undefined; chosen?: "carry" | "summary" | "trim" | undefined; } | undefined; } | undefined; outage?: { retryAt: number; } | undefined; retries?: { made: number; max: number; } | undefined; memory?: { limitBytes: number; residentBytes: number; swapBytes: number; } | undefined; unattended?: boolean | undefined; } | { kind: "done"; } | { window: number; omitted: string[]; base: boolean; kind: "context_trim"; } | { mode: "carry" | "summary" | "trim"; tokens?: number | undefined; from?: number | undefined; cleared?: number | undefined; model?: string | undefined; fellBack?: boolean | undefined; kind: "handoff"; } | { readTokens: number; writtenTokens: number; kept?: { forMs: number; refreshes: number; } | undefined; kind: "prompt_cache"; } | { status: "allowed" | "allowed_warning" | "rejected"; resetsAt?: number | undefined; rateLimitType?: string | undefined; utilization?: number | undefined; kind: "rate_limit_info"; account?: string | undefined; } | { tokens: number; contextWindow: number; cachedAt?: number | undefined; cacheTtlMs?: number | undefined; kind: "context_usage"; } | { toolName: string; title?: string | undefined; displayName?: string | undefined; description?: string | undefined; reason?: string | undefined; path?: string | undefined; alwaysLabel?: string | undefined; alwaysAsks?: true | undefined; program?: { text: string; language: "bash" | "javascript"; truncated: boolean; spans: { start: number; end: number; }[]; } | undefined; child?: { provider: string; model: string; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; account?: string | undefined; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; move: "answer" | "send" | "spawn"; child?: string | undefined; task?: string | undefined; message?: string | undefined; on?: string | undefined; proposed?: { provider: string; model: string; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; account?: string | undefined; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; } | undefined; } | undefined; explain?: string | undefined; requestId: string; kind: "permission"; } | { outcome: "connected" | "unfinished"; id?: string | undefined; kind: "capability_outcome"; requestId: string; } | { outcome: "failed" | "paid"; amountUsd: string; transaction?: string | undefined; network?: string | undefined; kind: "payment_receipt"; requestId: string; } | { outcome: "refused" | "released"; approvedBy?: string | undefined; kind: "credential_receipt"; requestId: string; }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{ kind: "session"; sessionId: string; account?: string | undefined; } | { kind: "worktree"; branch: string; base: string; unenforced?: boolean | undefined; sync?: { commits: number; blocked: string[]; } | undefined; remote?: string | undefined; } | { kind: "landed"; landed: boolean; conflicts?: { repo: string; paths: { path: string; reason: "binary" | "diverged" | "workspace"; }[]; clean: number; mainBranch?: string | undefined; }[] | undefined; held?: boolean | undefined; deps?: { missing: number; started: string[]; deferred: boolean; } | undefined; into?: string | undefined; } | { kind: "preamble"; notes: { title: string; text: string; }[]; } | { kind: "init"; model: string; prompt?: { hash: string; parts: Record; } | undefined; } | { kind: "checkpoint"; id: string; index?: number | undefined; } | { kind: "steer"; text: string; sentAt: number; attachments?: string[] | undefined; voice?: "agent" | "sandbox" | undefined; errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined; messageId?: string | undefined; } | { kind: "delta"; text: string; parentToolUseId?: string | undefined; } | { kind: "text_end"; parentToolUseId?: string | undefined; } | { kind: "thinking"; text: string; parentToolUseId?: string | undefined; } | { kind: "tool_call"; id: string; name: string; category: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "think"; status: "completed" | "failed" | "in_progress" | "pending"; target?: string | undefined; locations?: { path: string; line?: number | undefined; }[] | undefined; content?: ({ type: "text"; text: string; } | { type: "diff"; path: string; oldText?: string | undefined; newText: string; truncated?: boolean | undefined; } | { type: "image"; path: string; })[] | undefined; input?: string | undefined; parentToolUseId?: string | undefined; } | { kind: "tool_call_update"; id: string; status?: "completed" | "failed" | "in_progress" | "pending" | undefined; content?: ({ type: "text"; text: string; } | { type: "diff"; path: string; oldText?: string | undefined; newText: string; truncated?: boolean | undefined; } | { type: "image"; path: string; })[] | undefined; locations?: { path: string; line?: number | undefined; }[] | undefined; exitCode?: number | undefined; } | { kind: "terminal"; session: string; } | { kind: "browser"; session: string; } | { kind: "subagent"; id: string; subagentKind: "linked" | "spawned" | "subagent"; agentType?: string | undefined; description?: string | undefined; model?: string | undefined; provider?: string | undefined; background?: boolean | undefined; } | { kind: "subagent_update"; id: string; status?: "blocked" | "completed" | "failed" | "killed" | "paused" | "pending" | "running" | undefined; tokens?: number | undefined; toolUses?: number | undefined; lastTool?: string | undefined; summary?: string | undefined; error?: string | undefined; verification?: { state: "failing" | "no-code" | "unproven" | "verified"; paths?: string[] | undefined; check?: string | undefined; } | undefined; sdk?: { sessionId: string; agentId: string; } | undefined; } | { kind: "todos"; items: { content: string; status: "completed" | "in_progress" | "pending"; activeForm?: string | undefined; }[]; } | { kind: "commands"; items: { name: string; description: string; hint?: string | undefined; }[]; } | { kind: "usage"; account?: string | undefined; costUsd?: number | undefined; inputTokens?: number | undefined; outputTokens?: number | undefined; cacheReadTokens?: number | undefined; cacheCreationTokens?: number | undefined; durationMs?: number | undefined; numTurns?: number | undefined; openingCacheReadTokens?: number | undefined; openingCacheCreationTokens?: number | undefined; promptFingerprint?: string | undefined; } | { kind: "fast_mode"; state: "cooldown" | "off" | "on"; reason?: string | undefined; } | { kind: "provider_retry"; attempt: number; maxAttempts?: number | undefined; nextAttemptAt?: number | undefined; status?: number | undefined; } | { kind: "account_usage"; account?: string | undefined; windows: { kind: string; label?: string | undefined; utilization: number; resetsAt?: number | undefined; gates: "all" | "none" | { models: string[]; }; rounded?: boolean | undefined; lapsedAt?: number | undefined; missingSince?: number | undefined; }[]; } | { kind: "compact"; trigger: string; preTokens?: number | undefined; postTokens?: number | undefined; } | { kind: "install"; reach: "main-tree" | "own-copy"; projects: string[]; } | { kind: "agent_status"; key: string; text: string | null; source?: string | undefined; } | { level: "error" | "info" | "warning"; source?: string | undefined; sent?: string | undefined; kind: "agent_notice"; text: string; } | { requestId: string; text: string; document?: { path: string; title: string; markdown: string; truncated?: boolean | undefined; plan?: boolean | undefined; } | undefined; kind: "plan"; } | { requestId: string; questions: { question: string; header: string; multiSelect: boolean; options: { label: string; description: string; preview?: string | undefined; }[]; }[]; document?: { path: string; title: string; markdown: string; truncated?: boolean | undefined; plan?: boolean | undefined; } | undefined; kind: "question"; } | { requestId: string; session: string; account: string; message: string; kind: "browser_help"; } | { requestId: string; session: string; message: string; kind: "terminal_help"; } | { requestId: string; offer: { entry: string; name: string; why?: string | undefined; }; kind: "capability_offer"; } | { requestId: string; offer: { url: string; description?: string | undefined; payTo: string; network: string; asset: string; assetName: string; amountUsd: string; spentTodayUsd: string; dailyCapUsd: string; why?: string | undefined; }; kind: "payment_offer"; } | { requestId: string; offer: { subject: string; kind: "capability" | "secret"; lane: "browser" | "code" | "desktop" | "device" | "gateway" | "otp" | "session" | "shell" | "ssh"; detail?: string | undefined; why?: string | undefined; approvers: string[]; scope: "conversation" | "use"; }; kind: "credential_offer"; } | { kind: "need"; need: { id: string; conversationId: string; subject: { kind: "capability"; entry: string; name: string; mode: "change" | "connect" | "reconnect" | "remove"; instance?: string | undefined; target?: string | undefined; prefill?: Record | undefined; changes?: Record | undefined; reason?: string | undefined; reported?: boolean | undefined; } | { kind: "secret"; name: string; where?: string | undefined; link?: string | undefined; hint?: string | undefined; replace?: boolean | undefined; } | { kind: "grant"; subject: "capability" | "folder" | "shelf" | "site"; what: string; label: string; persona?: string | undefined; scope?: "conversation" | "persona" | undefined; } | { kind: "release"; subject: string; approvers: string[]; } | { kind: "environment"; tool: string; steps: string; approvedHash?: string | undefined; } | { kind: "automation"; automation: { id: string; trigger: { kind: "schedule"; cron: string; tz?: (string & { readonly __brand: "Zone"; }) | undefined; afterSessions?: number | undefined; } | { kind: "once"; at: number; } | { kind: "event"; dailyMax?: number | undefined; } | { kind: "listener"; provider: string; channelId?: string | undefined; eventType?: string | undefined; mentioned?: boolean | undefined; branch?: string | undefined; allowedOrigins?: string[] | undefined; } | { kind: "workspace"; event: "agent.landed" | "deps.broken" | "deps.fixed" | "turn.settled"; repo?: string | undefined; }; guard?: string | undefined; source?: { kind: "npm"; package: string; range?: string | undefined; tag?: string | undefined; } | { kind: "github-release"; repo: string; prereleases?: boolean | undefined; } | { kind: "url"; url: string; select?: string | undefined; } | undefined; fireOn?: "change" | "pass" | undefined; until?: "first-fire" | undefined; expiresAt?: number | undefined; target?: { kind: "agent"; } | { kind: "conversation"; conversationId: string; } | { kind: "notify"; } | undefined; note?: string | undefined; prompt: string; webchat?: { access?: "google" | "public" | undefined; requireName?: boolean | undefined; antiBot?: "pow" | "turnstile" | undefined; turnstileSiteKey?: string | undefined; turnstileSecret?: string | undefined; googleClientId?: string | undefined; title?: string | undefined; greeting?: string | undefined; accent?: string | undefined; position?: "bottom-left" | "bottom-right" | "top-left" | "top-right" | undefined; dailyMessageMax?: number | undefined; conversationMessageMax?: number | undefined; sessionTtlMinutes?: number | undefined; aiDisclosure?: boolean | undefined; aiDisclosureText?: string | undefined; } | undefined; issues?: { keyFromBrowsers?: boolean | undefined; dailyReportMax?: number | undefined; escalateAfter?: number | undefined; antiBot?: "pow" | undefined; title?: string | undefined; prompt?: string | undefined; thanks?: string | undefined; askEmail?: boolean | undefined; accent?: string | undefined; captureCrashes?: boolean | undefined; } | undefined; allowedTools?: string[] | undefined; models?: { provider: string; model: string; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; }[] | undefined; account?: string | undefined; actsAs?: string | undefined; senders?: { rules: { label?: string | undefined; ids?: string[] | undefined; groups?: string[] | undefined; actsAs?: string | undefined; requireApproval?: boolean | undefined; }[]; others: "allow" | "hold" | "ignore"; } | undefined; requireApproval?: boolean | undefined; holdForSeconds?: number | undefined; chore?: boolean | undefined; enabled: boolean; }; replaces?: boolean | undefined; firstCheck?: { pass: boolean; saw: string; at: number; } | undefined; }; title: string; why?: string | undefined; status: "cancelled" | "declined" | "met" | "open" | "working"; createdAt: number; updatedAt: number; answeredBy?: string | undefined; outcome?: string | undefined; told?: "call" | "queued" | "turn" | undefined; unattended?: boolean | undefined; }; } | { kind: "page"; page: { id: string; title: string; path: string; height?: number | undefined; measured?: number | undefined; source?: string | undefined; revision?: number | undefined; superseded?: boolean | undefined; app?: { server: string; tool: string; } | undefined; }; } | { kind: "review"; review: { id: string; source: "claude" | "codex"; level?: "high" | "low" | "max" | "medium" | "xhigh" | undefined; findings: { file: string; line?: number | undefined; endLine?: number | undefined; summary: string; title?: string | undefined; scenario?: string | undefined; body?: string | undefined; category?: string | undefined; verdict?: "CONFIRMED" | "PLAUSIBLE" | undefined; priority?: number | undefined; outcome?: "fixed" | "no_change_needed" | "skipped" | undefined; }[]; superseded?: boolean | undefined; }; } | { requestId: string; page: { id: string; title: string; path: string; height?: number | undefined; measured?: number | undefined; source?: string | undefined; revision?: number | undefined; superseded?: boolean | undefined; app?: { server: string; tool: string; } | undefined; }; kind: "page_ask"; } | { kind: "page_draft"; callId: string; at: number; text: string; title?: string | undefined; done?: boolean | undefined; } | { kind: "resolved"; requestId: string; reply?: { kind: "plan"; requestId: string; approve: boolean; feedback?: string | undefined; } | { kind: "question"; requestId: string; answers?: Record | undefined; attachments?: Record | undefined; cancelled?: boolean | undefined; } | { kind: "permission"; requestId: string; decision: "always" | "deny" | "everything" | "once"; feedback?: string | undefined; child?: { provider: string; model: string; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; account?: string | undefined; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; } | undefined; } | { kind: "browser_help"; requestId: string; helped: boolean; note?: string | undefined; } | { kind: "terminal_help"; requestId: string; helped: boolean; note?: string | undefined; } | { kind: "capability_offer"; requestId: string; connect: boolean; } | { kind: "payment_offer"; requestId: string; approve: boolean; } | { kind: "page_ask"; requestId: string; value?: string | undefined; cancelled?: boolean | undefined; } | { kind: "credential_offer"; requestId: string; approve: boolean; } | undefined; } | { kind: "mode"; mode: "bypassPermissions" | "default" | "plan"; } | { kind: "error"; message: string; own?: boolean | undefined; code?: "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-setup" | undefined; refusal?: { category?: string | undefined; resumeAt?: string | undefined; } | undefined; privacyRoute?: "own-key" | "runner" | "runtime" | "shared-server" | undefined; engine?: { id: string; running?: string | undefined; floor: string; } | undefined; resetsAt?: number | undefined; account?: string | undefined; autoResume?: "available" | "scheduled" | undefined; nextAt?: number | undefined; held?: { ran: boolean; contextTokens?: number | undefined; handoffTokens?: number | undefined; moving?: string | undefined; handoff?: { suggested: "carry" | "summary" | "trim"; basis: "setting" | "size"; carry?: { tokens?: number | undefined; } | undefined; trim?: { tokens: number; cleared: number; } | undefined; summary?: { tokens: number; reads?: number | undefined; } | undefined; chosen?: "carry" | "summary" | "trim" | undefined; } | undefined; } | undefined; outage?: { retryAt: number; } | undefined; retries?: { made: number; max: number; } | undefined; memory?: { limitBytes: number; residentBytes: number; swapBytes: number; } | undefined; unattended?: boolean | undefined; } | { kind: "done"; } | { window: number; omitted: string[]; base: boolean; kind: "context_trim"; } | { mode: "carry" | "summary" | "trim"; tokens?: number | undefined; from?: number | undefined; cleared?: number | undefined; model?: string | undefined; fellBack?: boolean | undefined; kind: "handoff"; } | { readTokens: number; writtenTokens: number; kept?: { forMs: number; refreshes: number; } | undefined; kind: "prompt_cache"; } | { status: "allowed" | "allowed_warning" | "rejected"; resetsAt?: number | undefined; rateLimitType?: string | undefined; utilization?: number | undefined; kind: "rate_limit_info"; account?: string | undefined; } | { tokens: number; contextWindow: number; cachedAt?: number | undefined; cacheTtlMs?: number | undefined; kind: "context_usage"; } | { toolName: string; title?: string | undefined; displayName?: string | undefined; description?: string | undefined; reason?: string | undefined; path?: string | undefined; alwaysLabel?: string | undefined; alwaysAsks?: true | undefined; program?: { text: string; language: "bash" | "javascript"; truncated: boolean; spans: { start: number; end: number; }[]; } | undefined; child?: { provider: string; model: string; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; account?: string | undefined; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; move: "answer" | "send" | "spawn"; child?: string | undefined; task?: string | undefined; message?: string | undefined; on?: string | undefined; proposed?: { provider: string; model: string; harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined; account?: string | undefined; effort?: string | undefined; thinking?: boolean | undefined; fast?: boolean | undefined; } | undefined; } | undefined; explain?: string | undefined; requestId: string; kind: "permission"; } | { outcome: "connected" | "unfinished"; id?: string | undefined; kind: "capability_outcome"; requestId: string; } | { outcome: "failed" | "paid"; amountUsd: string; transaction?: string | undefined; network?: string | undefined; kind: "payment_receipt"; requestId: string; } | { outcome: "refused" | "released"; approvedBy?: string | undefined; kind: "credential_receipt"; requestId: string; }, unknown, void>> & { [x: symbol]: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"session">; sessionId: z.ZodString; account: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"worktree">; branch: z.ZodString; base: z.ZodString; unenforced: z.ZodOptional; sync: z.ZodOptional; }, z.core.$strip>>; remote: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"landed">; landed: z.ZodBoolean; conflicts: z.ZodOptional; }, z.core.$strip>>; clean: z.ZodNumber; mainBranch: z.ZodOptional; }, z.core.$strip>>>; held: z.ZodOptional; deps: z.ZodOptional; deferred: z.ZodBoolean; }, z.core.$strip>>; into: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"preamble">; notes: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ window: z.ZodNumber; omitted: z.ZodArray; base: z.ZodBoolean; kind: z.ZodLiteral<"context_trim">; }, z.core.$strip>, z.ZodObject<{ mode: z.ZodEnum<{ carry: "carry"; summary: "summary"; trim: "trim"; }>; tokens: z.ZodOptional; from: z.ZodOptional; cleared: z.ZodOptional; model: z.ZodOptional; fellBack: z.ZodOptional; kind: z.ZodLiteral<"handoff">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"init">; model: z.ZodString; prompt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"checkpoint">; id: z.ZodString; index: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"steer">; text: z.ZodString; sentAt: z.ZodNumber; attachments: z.ZodOptional>; voice: z.ZodOptional>; errand: z.ZodOptional>; messageId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"delta">; text: z.ZodString; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"text_end">; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"thinking">; text: z.ZodString; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"tool_call">; id: z.ZodString; name: z.ZodString; category: z.ZodEnum<{ delete: "delete"; edit: "edit"; execute: "execute"; fetch: "fetch"; move: "move"; other: "other"; read: "read"; search: "search"; think: "think"; }>; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; in_progress: "in_progress"; pending: "pending"; }>; target: z.ZodOptional; locations: z.ZodOptional; }, z.core.$strip>>>; content: z.ZodOptional; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional; newText: z.ZodString; truncated: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; path: z.ZodString; }, z.core.$strip>], "type">>>; input: z.ZodOptional; parentToolUseId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"tool_call_update">; id: z.ZodString; status: z.ZodOptional>; content: z.ZodOptional; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"diff">; path: z.ZodString; oldText: z.ZodOptional; newText: z.ZodString; truncated: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; path: z.ZodString; }, z.core.$strip>], "type">>>; locations: z.ZodOptional; }, z.core.$strip>>>; exitCode: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminal">; session: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"browser">; session: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"subagent">; id: z.ZodString; subagentKind: z.ZodEnum<{ linked: "linked"; spawned: "spawned"; subagent: "subagent"; }>; agentType: z.ZodOptional; description: z.ZodOptional; model: z.ZodOptional; provider: z.ZodOptional; background: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"subagent_update">; id: z.ZodString; status: z.ZodOptional>; tokens: z.ZodOptional; toolUses: z.ZodOptional; lastTool: z.ZodOptional; summary: z.ZodOptional; error: z.ZodOptional; verification: z.ZodOptional; paths: z.ZodOptional>; check: z.ZodOptional; }, z.core.$strip>>; sdk: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"todos">; items: z.ZodArray; activeForm: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"commands">; items: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"usage">; account: z.ZodOptional; costUsd: z.ZodOptional; inputTokens: z.ZodOptional; outputTokens: z.ZodOptional; cacheReadTokens: z.ZodOptional; cacheCreationTokens: z.ZodOptional; durationMs: z.ZodOptional; numTurns: z.ZodOptional; openingCacheReadTokens: z.ZodOptional; openingCacheCreationTokens: z.ZodOptional; promptFingerprint: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ readTokens: z.ZodNumber; writtenTokens: z.ZodNumber; kept: z.ZodOptional>; kind: z.ZodLiteral<"prompt_cache">; }, z.core.$strip>, z.ZodObject<{ status: z.ZodEnum<{ allowed: "allowed"; allowed_warning: "allowed_warning"; rejected: "rejected"; }>; resetsAt: z.ZodOptional; rateLimitType: z.ZodOptional; utilization: z.ZodOptional; kind: z.ZodLiteral<"rate_limit_info">; account: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fast_mode">; state: z.ZodEnum<{ cooldown: "cooldown"; off: "off"; on: "on"; }>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"provider_retry">; attempt: z.ZodNumber; maxAttempts: z.ZodOptional; nextAttemptAt: z.ZodOptional; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"account_usage">; account: z.ZodOptional; windows: z.ZodArray; utilization: z.ZodNumber; resetsAt: z.ZodOptional; gates: z.ZodUnion, z.ZodLiteral<"none">, z.ZodObject<{ models: z.ZodArray; }, z.core.$strip>]>; rounded: z.ZodOptional; lapsedAt: z.ZodOptional; missingSince: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ tokens: z.ZodNumber; contextWindow: z.ZodNumber; cachedAt: z.ZodOptional; cacheTtlMs: z.ZodOptional; kind: z.ZodLiteral<"context_usage">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"compact">; trigger: z.ZodString; preTokens: z.ZodOptional; postTokens: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"install">; reach: z.ZodEnum<{ "main-tree": "main-tree"; "own-copy": "own-copy"; }>; projects: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"agent_status">; key: z.ZodString; text: z.ZodNullable; source: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ level: z.ZodEnum<{ error: "error"; info: "info"; warning: "warning"; }>; source: z.ZodOptional; sent: z.ZodOptional; kind: z.ZodLiteral<"agent_notice">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; text: z.ZodString; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; kind: z.ZodLiteral<"plan">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; questions: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; document: z.ZodOptional; plan: z.ZodOptional; }, z.core.$strip>>; kind: z.ZodLiteral<"question">; }, z.core.$strip>, z.ZodObject<{ toolName: z.ZodString; title: z.ZodOptional; displayName: z.ZodOptional; description: z.ZodOptional; reason: z.ZodOptional; path: z.ZodOptional; alwaysLabel: z.ZodOptional; alwaysAsks: z.ZodOptional>; program: z.ZodOptional; truncated: z.ZodBoolean; spans: z.ZodArray>; }, z.core.$strip>>; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; move: z.ZodEnum<{ answer: "answer"; send: "send"; spawn: "spawn"; }>; child: z.ZodOptional; task: z.ZodOptional; message: z.ZodOptional; on: z.ZodOptional; proposed: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; explain: z.ZodOptional; requestId: z.ZodString; kind: z.ZodLiteral<"permission">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; session: z.ZodString; account: z.ZodString; message: z.ZodString; kind: z.ZodLiteral<"browser_help">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; session: z.ZodString; message: z.ZodString; kind: z.ZodLiteral<"terminal_help">; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; offer: z.ZodObject<{ entry: z.ZodString; name: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; kind: z.ZodLiteral<"capability_offer">; }, z.core.$strip>, z.ZodObject<{ outcome: z.ZodEnum<{ connected: "connected"; unfinished: "unfinished"; }>; id: z.ZodOptional; kind: z.ZodLiteral<"capability_outcome">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; offer: z.ZodObject<{ url: z.ZodString; description: z.ZodOptional; payTo: z.ZodString; network: z.ZodString; asset: z.ZodString; assetName: z.ZodString; amountUsd: z.ZodString; spentTodayUsd: z.ZodString; dailyCapUsd: z.ZodString; why: z.ZodOptional; }, z.core.$strip>; kind: z.ZodLiteral<"payment_offer">; }, z.core.$strip>, z.ZodObject<{ outcome: z.ZodEnum<{ failed: "failed"; paid: "paid"; }>; amountUsd: z.ZodString; transaction: z.ZodOptional; network: z.ZodOptional; kind: z.ZodLiteral<"payment_receipt">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; offer: z.ZodObject<{ subject: z.ZodString; kind: z.ZodEnum<{ capability: "capability"; secret: "secret"; }>; lane: z.ZodEnum<{ browser: "browser"; code: "code"; desktop: "desktop"; device: "device"; gateway: "gateway"; otp: "otp"; session: "session"; shell: "shell"; ssh: "ssh"; }>; detail: z.ZodOptional; why: z.ZodOptional; approvers: z.ZodArray; scope: z.ZodEnum<{ conversation: "conversation"; use: "use"; }>; }, z.core.$strip>; kind: z.ZodLiteral<"credential_offer">; }, z.core.$strip>, z.ZodObject<{ outcome: z.ZodEnum<{ refused: "refused"; released: "released"; }>; approvedBy: z.ZodOptional; kind: z.ZodLiteral<"credential_receipt">; requestId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"need">; need: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"capability">; entry: z.ZodString; name: z.ZodString; mode: z.ZodEnum<{ change: "change"; connect: "connect"; reconnect: "reconnect"; remove: "remove"; }>; instance: z.ZodOptional; target: z.ZodOptional; prefill: z.ZodOptional>; changes: z.ZodOptional>; reason: z.ZodOptional; reported: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"secret">; name: z.ZodString; where: z.ZodOptional; link: z.ZodOptional; hint: z.ZodOptional; replace: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"grant">; subject: z.ZodEnum<{ capability: "capability"; folder: "folder"; shelf: "shelf"; site: "site"; }>; what: z.ZodString; label: z.ZodString; persona: z.ZodOptional; scope: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"release">; subject: z.ZodString; approvers: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"environment">; tool: z.ZodString; steps: z.ZodString; approvedHash: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"automation">; automation: z.ZodObject<{ id: z.ZodString; trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"schedule">; cron: z.ZodString; tz: z.ZodOptional>>; afterSessions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"once">; at: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"event">; dailyMax: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"listener">; provider: z.ZodString; channelId: z.ZodOptional; eventType: z.ZodOptional; mentioned: z.ZodOptional; branch: z.ZodOptional; allowedOrigins: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"workspace">; event: z.ZodEnum<{ "agent.landed": "agent.landed"; "deps.broken": "deps.broken"; "deps.fixed": "deps.fixed"; "turn.settled": "turn.settled"; }>; repo: z.ZodOptional; }, z.core.$strip>], "kind">; guard: z.ZodOptional; source: z.ZodOptional; package: z.ZodString; range: z.ZodOptional; tag: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"github-release">; repo: z.ZodString; prereleases: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"url">; url: z.ZodString; select: z.ZodOptional; }, z.core.$strip>], "kind">>; fireOn: z.ZodOptional>; until: z.ZodOptional>; expiresAt: z.ZodOptional; target: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"conversation">; conversationId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"notify">; }, z.core.$strip>], "kind">>; note: z.ZodOptional; prompt: z.ZodString; webchat: z.ZodOptional>; requireName: z.ZodOptional; antiBot: z.ZodOptional>; turnstileSiteKey: z.ZodOptional; turnstileSecret: z.ZodOptional; googleClientId: z.ZodOptional; title: z.ZodOptional; greeting: z.ZodOptional; accent: z.ZodOptional; position: z.ZodOptional>; dailyMessageMax: z.ZodOptional; conversationMessageMax: z.ZodOptional; sessionTtlMinutes: z.ZodOptional; aiDisclosure: z.ZodOptional; aiDisclosureText: z.ZodOptional; }, z.core.$strip>>; issues: z.ZodOptional; dailyReportMax: z.ZodOptional; escalateAfter: z.ZodOptional; antiBot: z.ZodOptional>; title: z.ZodOptional; prompt: z.ZodOptional; thanks: z.ZodOptional; askEmail: z.ZodOptional; accent: z.ZodOptional; captureCrashes: z.ZodOptional; }, z.core.$strip>>; allowedTools: z.ZodOptional>; models: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; harness: z.ZodOptional>; }, z.core.$strip>>>; account: z.ZodOptional; actsAs: z.ZodOptional; senders: z.ZodOptional; ids: z.ZodOptional>; groups: z.ZodOptional>; actsAs: z.ZodOptional; requireApproval: z.ZodOptional; }, z.core.$strip>>; others: z.ZodEnum<{ allow: "allow"; hold: "hold"; ignore: "ignore"; }>; }, z.core.$strip>>; requireApproval: z.ZodOptional; holdForSeconds: z.ZodOptional; chore: z.ZodOptional; enabled: z.ZodBoolean; }, z.core.$strip>; replaces: z.ZodOptional; firstCheck: z.ZodOptional>; }, z.core.$strip>], "kind">; title: z.ZodString; why: z.ZodOptional; status: z.ZodEnum<{ cancelled: "cancelled"; declined: "declined"; met: "met"; open: "open"; working: "working"; }>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; answeredBy: z.ZodOptional; outcome: z.ZodOptional; told: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page">; page: z.ZodObject<{ id: z.ZodString; title: z.ZodString; path: z.ZodString; height: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"review">; review: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<{ claude: "claude"; codex: "codex"; }>; level: z.ZodOptional>; findings: z.ZodArray; endLine: z.ZodOptional; summary: z.ZodString; title: z.ZodOptional; scenario: z.ZodOptional; body: z.ZodOptional; category: z.ZodOptional; verdict: z.ZodOptional>; priority: z.ZodOptional; outcome: z.ZodOptional>; }, z.core.$strip>>; superseded: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ requestId: z.ZodString; page: z.ZodObject<{ id: z.ZodString; title: z.ZodString; path: z.ZodString; height: z.ZodOptional; measured: z.ZodOptional; source: z.ZodOptional; revision: z.ZodOptional; superseded: z.ZodOptional; app: z.ZodOptional>; }, z.core.$strip>; kind: z.ZodLiteral<"page_ask">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page_draft">; callId: z.ZodString; at: z.ZodNumber; text: z.ZodString; title: z.ZodOptional; done: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"resolved">; requestId: z.ZodString; reply: z.ZodOptional; requestId: z.ZodString; approve: z.ZodBoolean; feedback: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"question">; requestId: z.ZodString; answers: z.ZodOptional>>; attachments: z.ZodOptional>>; cancelled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"permission">; requestId: z.ZodString; decision: z.ZodEnum<{ always: "always"; deny: "deny"; everything: "everything"; once: "once"; }>; feedback: z.ZodOptional; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"browser_help">; requestId: z.ZodString; helped: z.ZodBoolean; note: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminal_help">; requestId: z.ZodString; helped: z.ZodBoolean; note: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"capability_offer">; requestId: z.ZodString; connect: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"payment_offer">; requestId: z.ZodString; approve: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page_ask">; requestId: z.ZodString; value: z.ZodOptional; cancelled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"credential_offer">; requestId: z.ZodString; approve: z.ZodBoolean; }, z.core.$strip>], "kind">>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"mode">; mode: z.ZodEnum<{ bypassPermissions: "bypassPermissions"; default: "default"; plan: "plan"; }>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"error">; message: z.ZodString; own: z.ZodOptional; code: z.ZodOptional>; refusal: z.ZodOptional; resumeAt: z.ZodOptional; }, z.core.$strip>>; privacyRoute: z.ZodOptional>; engine: z.ZodOptional; floor: z.ZodString; }, z.core.$strip>>; resetsAt: z.ZodOptional; account: z.ZodOptional; autoResume: z.ZodOptional>; nextAt: z.ZodOptional; held: z.ZodOptional; handoffTokens: z.ZodOptional; moving: z.ZodOptional; handoff: z.ZodOptional; basis: z.ZodEnum<{ setting: "setting"; size: "size"; }>; carry: z.ZodOptional; }, z.core.$strip>>; trim: z.ZodOptional>; summary: z.ZodOptional; }, z.core.$strip>>; chosen: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; outage: z.ZodOptional>; retries: z.ZodOptional>; memory: z.ZodOptional>; unattended: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"done">; }, z.core.$strip>], "kind">; }, Record, Record>; reply: import("@orpc/contract").ContractProcedureBuilderWithInputOutput; requestId: z.ZodString; approve: z.ZodBoolean; feedback: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"question">; requestId: z.ZodString; answers: z.ZodOptional>>; attachments: z.ZodOptional>>; cancelled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"permission">; requestId: z.ZodString; decision: z.ZodEnum<{ always: "always"; deny: "deny"; everything: "everything"; once: "once"; }>; feedback: z.ZodOptional; child: z.ZodOptional>; account: z.ZodOptional; effort: z.ZodOptional; thinking: z.ZodOptional; fast: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"browser_help">; requestId: z.ZodString; helped: z.ZodBoolean; note: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminal_help">; requestId: z.ZodString; helped: z.ZodBoolean; note: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"capability_offer">; requestId: z.ZodString; connect: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"payment_offer">; requestId: z.ZodString; approve: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"page_ask">; requestId: z.ZodString; value: z.ZodOptional; cancelled: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"credential_offer">; requestId: z.ZodString; approve: z.ZodBoolean; }, z.core.$strip>], "kind">, z.ZodObject<{ applied: z.ZodBoolean; }, z.core.$strip>, Record, Record>; steer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput>; mentions: z.ZodOptional>; editorContext: z.ZodOptional; endLine: z.ZodOptional; selection: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ applied: z.ZodBoolean; invalid: z.ZodOptional; }, z.core.$strip>, Record, Record>; applyDefinition: import("@orpc/contract").ContractProcedureBuilderWithInputOutput, z.ZodObject<{ settings: z.ZodArray; }, z.core.$strip>, Record, Record>; interrupt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; runCommand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput>; exports: z.ZodDefault>; label: z.ZodString; timeoutMs: z.ZodOptional; }, z.core.$strip>, import("@orpc/contract").Schema | undefined; }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{ kind: "status"; text: string; } | { kind: "output"; stream: "stderr" | "stdout"; text: string; } | { kind: "exit"; code: number; signal?: string | undefined; failure?: string | undefined; ran: boolean; patchBase64?: string | undefined; files: Record; }, unknown, void>> & { [x: symbol]: z.ZodUnion; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"output">; stream: z.ZodEnum<{ stderr: "stderr"; stdout: "stdout"; }>; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"exit">; code: z.ZodNumber; signal: z.ZodOptional; failure: z.ZodOptional; ran: z.ZodDefault; patchBase64: z.ZodOptional; files: z.ZodDefault>; }, z.core.$strip>]>; }, Record, Record>; cancelCommand: import("@orpc/contract").ContractProcedureBuilderWithInputOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; ping: import("@orpc/contract").ContractProcedureBuilderWithOutput, z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>, Record, Record>; }; //# sourceMappingURL=runner.contract.d.ts.map