builtincfg

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 11 Imported by: 0

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

func DefaultKeybinds() []cfgpkg.Keybind

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.

func Opts

func Opts() cfgpkg.Opts

Opts returns the built-in Default Config's Opts: today's settings values, expressed in the sentinel types.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL