CoAgent8 - Source API
    Preparing search index...

    Function parseClaudeModels

    • Reads the model list of a stream-json initialize control response (Claude Code 2.1.294): entries { value, resolvedModel, supportedEffortLevels }, where value is a name the CLI accepts and resolvedModel the concrete model it runs. Entries resolving to one model become one catalog model with the other names as aliases; the default entry marks the account default.

      Parameters

      • response: unknown

      Returns ModelCatalog | undefined

      The catalog, or undefined when the response lists no valid model.