AbstractOptionallogger: ILoggerAbstract ReadonlynameCLI name
Abstract ReadonlytransportTransport type
Protected ReadonlyloggerProtectedcapacityProtectedinitializedProtected OptionallastProtected OptionalcachedGets the capability profile for this CLI.
ProtectedinitInitializes the capacity tracker. Called by subclasses after name is set.
AbstractexecuteAbstract method for executing a task. Implemented by concrete adapters.
AbstractgetAbstract method for getting model info. Implemented by concrete adapters.
AbstractinitializeAbstract method for initialization. Implemented by concrete adapters.
AbstractdisposeAbstract method for cleanup. Implemented by concrete adapters.
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.
Abstract base class for CLI adapters. Provides common functionality for version checking, health, and error handling.