Optionaloptions: BaseAdapterOptionsReadonlynameCLI name
ReadonlytransportTransport type
Protected ReadonlyloggerProtectedcapacityProtectedinitializedProtected OptionallastProtected OptionalcachedGets the capability profile for this CLI.
Gets Codex model information. Resolves from canonical registry when possible, falls back to legacy lookup.
Initializes the MCP connection to Codex.
Executes a task via MCP client. Called by BaseCliAdapter.execute() with retry handling.
Disposes the adapter and closes MCP connection.
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.
Codex CLI adapter using MCP transport.
Extends BaseCliAdapter which provides: