Optionaloptions: BaseAdapterOptionsReadonlynameCLI 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 Codex model information. Resolves from canonical registry when possible, falls back to legacy lookup.
ProtectedgetGets CLI command and arguments for execution. Task content is passed as a positional argument (not via stdin).
ProtectedinitInitializes the capacity tracker. Called by subclasses after name is set.
Executes a task with error handling and retries.
Timeout priority (highest to lowest):
Optionaloptions: CliExecutionOptionsPerforms 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).
Codex CLI adapter using subprocess transport.
Extends SubprocessCliAdapter which provides: