Optionaloptions: GeminiConfigReadonlynameCLI name
Protected ReadonlyparserProtected ReadonlyloggerProtectedcapacityProtectedinitializedProtected OptionallastProtected OptionalcachedReadonlytransportTransport type
Protected ReadonlytransientTransient-error retry config. Override in subclass to enable.
Gets the capability profile for this CLI.
Gets Gemini model information. Resolves from canonical registry when possible, falls back to legacy lookup. Note: maxOutput is capped at 8_192 (Gemini CLI constraint).
Executes a task with reliability features.
Optionaloptions: CliExecutionOptionsExecutes with full metadata about retry attempts and circuit state.
Optionaloptions: CliExecutionOptionsGets current circuit breaker snapshot.
Resets the circuit breaker to closed state.
ProtectedgetProtectedinitInitializes the capacity tracker. Called by subclasses after name is set.
Performs a health check.
Gets CLI version.
Gets current capacity status based on tracked usage. Uses usage-based tracking since CLI subprocess execution doesn't expose HTTP rate limit headers.
ProtectedrecordProtectedparseParses version from CLI output.
ProtectedcheckProtectedgetGets version status message.
ProtectedcreateCreates a CLI error.
Optionalcause: ErrorProtectednormalizeNormalizes CLI response to common format.
Optionalusage: CliTokenUsageOptionalextra: Partial<CliResponse>ProtecteddelayDelays for the specified milliseconds.
Executes a task via subprocess, with optional transient-error retry.
When transientRetry.enabled is true, transient errors (timeout,
rate_limit, connection, parse) are retried with exponential backoff
(500ms, 1000ms). Parse errors get max 1 retry (#1533); others get 2.
Initializes the adapter and capacity tracker.
Disposes the adapter (no-op for subprocess).
Gemini CLI adapter with reliability features.
Includes tiered timeouts, resilient parsing, retry logic, and circuit breaker.