Documentation
¶
Overview ¶
Package opencode reads the project-scoped OpenCode V2 model catalog.
Index ¶
Constants ¶
const ( Executable = "opencode2" PinnedVersion = "opencode2 v0.0.0-beta-18314" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
Models []Model
}
Catalog is the currently enabled, agent-capable model catalog for one repository.
type Model ¶
Model is the safe subset of an available OpenCode model. Provider settings, headers, credentials, account identifiers, and request bodies are never retained.
type SelectionCheck ¶
SelectionCheck reports whether one configured OpenCode role is present in the project-scoped live catalog.
func CheckSelections ¶
func CheckSelections(roles config.Roles, catalog Catalog) []SelectionCheck
CheckSelections checks all six configured roles in configuration order. It never includes other catalog entries in diagnostics.