config

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 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) GoalWakeupMaxConversationWakeups added in v0.1.13

func (r *Root) GoalWakeupMaxConversationWakeups() int

GoalWakeupMaxConversationWakeups returns the effective per-conversation pending wakeup budget. Missing config defaults to 3.

func (*Root) GoalWakeupMaxDelaySeconds added in v0.1.13

func (r *Root) GoalWakeupMaxDelaySeconds() int

GoalWakeupMaxDelaySeconds returns the effective maximum delay for autonomous goal wakeups. Missing config defaults to 3600 seconds.

func (*Root) GoalWakeupMaxGlobalWakeupsPerHour added in v0.1.13

func (r *Root) GoalWakeupMaxGlobalWakeupsPerHour() int

GoalWakeupMaxGlobalWakeupsPerHour returns the effective global wakeup budget window. Missing config defaults to 5.

func (*Root) GoalWakeupMaxGoalWakeups added in v0.1.13

func (r *Root) GoalWakeupMaxGoalWakeups() int

GoalWakeupMaxGoalWakeups returns the effective per-goal pending wakeup budget. Missing config defaults to 2.

func (*Root) GoalWakeupMinDelaySeconds added in v0.1.13

func (r *Root) GoalWakeupMinDelaySeconds() int

GoalWakeupMinDelaySeconds returns the effective minimum delay for autonomous goal wakeups. Missing config defaults to 60 seconds.

func (*Root) GoalWakeupsEnabled added in v0.1.13

func (r *Root) GoalWakeupsEnabled() bool

GoalWakeupsEnabled reports whether scheduler-backed goal wakeups are enabled by workspace policy. Missing config defaults to true so existing workspaces keep current behavior until they explicitly opt out.

func (*Root) GoalsEnabled added in v0.1.13

func (r *Root) GoalsEnabled() bool

GoalsEnabled reports whether workspace goal features are enabled by policy. Missing config defaults to true so existing workspaces retain behavior until they explicitly opt out.

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