Documentation
¶
Index ¶
- func ApplyPathDefaults(defaults *execconfig.Defaults)
- type Composer
- type Root
- func (r *Root) AuthorizationTool() string
- func (r *Root) Composer() Composer
- func (r *Root) DecodeAuth(out interface{}) error
- func (r *Root) DefaultsWithFallback(fallback *execconfig.Defaults) *execconfig.Defaults
- func (r *Root) ForgeReportingRoot() string
- func (r *Root) GoalWakeupMaxConversationWakeups() int
- func (r *Root) GoalWakeupMaxDelaySeconds() int
- func (r *Root) GoalWakeupMaxGlobalWakeupsPerHour() int
- func (r *Root) GoalWakeupMaxGoalWakeups() int
- func (r *Root) GoalWakeupMinDelaySeconds() int
- func (r *Root) GoalWakeupsEnabled() bool
- func (r *Root) GoalsEnabled() bool
- func (r *Root) InternalServiceList() ([]string, bool)
- func (r *Root) ResolveDefaultsWithFallback(fallback *execconfig.Defaults) (*execconfig.Defaults, error)
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 Composer ¶ added in v0.1.39
type Composer struct {
AllowAgentSelection bool `json:"allowAgentSelection"`
AllowModelSelection bool `json:"allowModelSelection"`
}
Composer configures selector availability in workspace composers.
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 (*Root) AuthorizationTool ¶ added in v0.1.39
AuthorizationTool returns the MCP tool used by authorization-enabled Forge views. The value is workspace-owned so each deployment can select its own authorization adapter without coupling agently-core to a product service.
func (*Root) DecodeAuth ¶
DecodeAuth decodes the auth section into the supplied destination.
func (*Root) DefaultsWithFallback ¶
func (r *Root) DefaultsWithFallback(fallback *execconfig.Defaults) *execconfig.Defaults
DefaultsWithFallback preserves the legacy non-error-returning behavior for compatibility. Production runtime paths use ResolveDefaultsWithFallback.
func (*Root) ForgeReportingRoot ¶ added in v0.1.17
ForgeReportingRoot returns the optional singular reporting asset root owned by the workspace. An empty value delegates to Forge's default root.
func (*Root) GoalWakeupMaxConversationWakeups ¶ added in v0.1.13
GoalWakeupMaxConversationWakeups returns the effective per-conversation pending wakeup budget. Missing config defaults to 3.
func (*Root) GoalWakeupMaxDelaySeconds ¶ added in v0.1.13
GoalWakeupMaxDelaySeconds returns the effective maximum delay for autonomous goal wakeups. Missing config defaults to 3600 seconds.
func (*Root) GoalWakeupMaxGlobalWakeupsPerHour ¶ added in v0.1.13
GoalWakeupMaxGlobalWakeupsPerHour returns the effective global wakeup budget window. Missing config defaults to 5.
func (*Root) GoalWakeupMaxGoalWakeups ¶ added in v0.1.13
GoalWakeupMaxGoalWakeups returns the effective per-goal pending wakeup budget. Missing config defaults to 2.
func (*Root) GoalWakeupMinDelaySeconds ¶ added in v0.1.13
GoalWakeupMinDelaySeconds returns the effective minimum delay for autonomous goal wakeups. Missing config defaults to 60 seconds.
func (*Root) GoalWakeupsEnabled ¶ added in v0.1.13
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
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 ¶
InternalServiceList returns configured internal MCP service names when present.
func (*Root) ResolveDefaultsWithFallback ¶ added in v0.1.23
func (r *Root) ResolveDefaultsWithFallback(fallback *execconfig.Defaults) (*execconfig.Defaults, error)
ResolveDefaultsWithFallback merges the workspace default section over the supplied fallback and returns decoding or protection validation errors.