nexus-agents - v2.80.0
    Preparing search index...

    Class OpenCodeCliAdapter

    OpenCode CLI adapter using subprocess transport. Executes: opencode run --format json ""

    Probes available models on first use and omits --model flag when the requested model isn't available (#1402).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: "claude" | "gemini" | "codex" | "opencode" = 'opencode'

    CLI name

    parser: ICliResponseParser = ...
    transientRetry: TransientRetryConfig = ...

    Enable transient-error retry for OpenCode (#1456).

    logger: ILogger
    capacityTracker: CapacityTracker | null = null
    initialized: boolean = false
    lastHealthCheck?: HealthStatus
    cachedVersion?: string
    transport: CliTransport = 'subprocess'

    Transport type

    Accessors

    Methods

    • (#2540) Lists models the local OpenCode installation can route to. Wraps the existing probeAvailableModels() (cached for the process lifetime — see cachedModels at the top of this file) and reshapes the result into the CliModelInfo schema. Splits provider/model ids when present.

      Returns Promise<readonly CliModelInfo[]>