config

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPathDefaults

func ApplyPathDefaults(defaults *execconfig.Defaults)

ApplyPathDefaults applies runtime/state/db path defaults from workspace config when explicit environment overrides are absent.

Types

type Root

type Root struct {
	DefaultNode yaml.Node               `yaml:"default"`
	AuthNode    yaml.Node               `yaml:"auth"`
	MCPServer   *mcpexpose.ServerConfig `yaml:"mcpServer"`
	Raw         map[string]interface{}  `yaml:",inline"`
}

Root represents the root workspace config.yaml in a reusable decoded form. Package-specific consumers can decode sections they own from the stored YAML nodes.

func Load

func Load(root string) (*Root, error)

Load reads the workspace config.yaml. Missing config returns (nil, nil).

func (*Root) DecodeAuth

func (r *Root) DecodeAuth(out interface{}) error

DecodeAuth decodes the auth section into the supplied destination.

func (*Root) DefaultsWithFallback

func (r *Root) DefaultsWithFallback(fallback *execconfig.Defaults) *execconfig.Defaults

DefaultsWithFallback merges the workspace default section over the supplied fallback.

func (*Root) InternalServiceList

func (r *Root) InternalServiceList() ([]string, bool)

InternalServiceList returns configured internal MCP service names when present.

Jump to

Keyboard shortcuts

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