CoAgent8 - Source API
    Preparing search index...

    Function backendCommand

    • Resolves the command that runs a backend's CLI.

      Parameters

      • id: "codex" | "claude" | "agy"
      • configured: string | undefined

        A validated backends.<id>.executable, or undefined for automatic discovery.

      • env: ProcessEnv = process.env
      • home: string = ...

        Profile root for ~/ and the vendor extensions' copies.

      Returns string

      An absolute path, or the CLI name for automatic discovery.

      CliResolutionError (CLI_NOT_FOUND) when vscode-extension is configured and the vendor's VS Code extension provides no usable copy.