Documentation
¶
Overview ¶
Package builtincfg is the App's built-in Default Config. It returns a config.Config using the exact same {Opts, Plugins} shape as an external user config, compiled into the binary at lowest priority. The external config is merged over this (config.Merge).
This is the dogfooding floor: the app's own defaults are expressed through the public config surface, not a privileged internal path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Config ¶
func Config(params RuntimeParams) cfgpkg.Config
Config returns the complete built-in Default Config: the default Opts plus the bundled plugin set (backends + UI components/commands + the public layouts plugin) as config.Plugin values.
func DefaultKeybinds ¶
DefaultKeybinds is the stock keymap expressed as Default Config data. These bindings target registered command names; legacy aliases remain accepted only for existing user configs.
func Defaults ¶
func Defaults() cfgpkg.SettingsDefaults
Defaults mirrors today's hardcoded runtime defaults for the Opts that ship in the built-in Default Config.
Types ¶
type RuntimeParams ¶
type RuntimeParams struct {
WorkingDirectory string
OpencodeServerURL string
HealthTimeout time.Duration
}
RuntimeParams carries the launch-time values the bundled backend plugins need (working directory, resolved opencode server URL, health timeout). They are runtime-resolved, so they are passed in rather than baked into the Default Config's source.