config

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBasePath    = "config.base.yaml"
	DefaultOverlayPath = "config.yaml"
	DefaultRootID      = "runner.default"
)

Variables

This section is empty.

Functions

func DefaultSubagentToolWhitelist added in v0.1.11

func DefaultSubagentToolWhitelist() []string

DefaultSubagentToolWhitelist is the explicit in-process subagent tool surface. New tool plugins do not appear here until deliberately added.

func DefaultToolBlacklist added in v0.1.11

func DefaultToolBlacklist() []string

DefaultToolBlacklist excludes test, scripted, and alternate implementations from the main agent toolset.

func LoadDocument

func LoadDocument(basePath string, overlayPaths ...string) (manager.Document, error)

LoadDocument loads L0 base config and optional L1 overlays, prunes unreachable instances, then parses. Overlays apply in order, so a later one wins.

func MergeFromFiles

func MergeFromFiles(basePath string, overlayPaths ...string) ([]byte, error)

MergeFromFiles is an alias for ResolveFiles.

func MergeYAML

func MergeYAML(base, overlay []byte) ([]byte, error)

MergeYAML merges two instance graphs. When overlay changes use, the whole node is replaced; otherwise config and deps are deep-merged into the base node.

func ResolveFiles

func ResolveFiles(basePath string, overlayPaths ...string) ([]byte, error)

ResolveFiles merges L0 with each L1 overlay in order and prunes instances unreachable from root. Chaining lets a capability stack live in one preset and a transport swap in another, instead of every preset restating the whole graph.

func ResolveYAML

func ResolveYAML(interpDir string, base []byte, overlays ...[]byte) ([]byte, error)

ResolveYAML merges base with each overlay in order, expands extends, interpolates string values, then prunes unreachable instances.

func ScaffoldToolsFragment added in v0.1.11

func ScaffoldToolsFragment(profile ToolProfile, opts ToolsScaffoldOptions) (map[string]any, error)

ScaffoldToolsFragment generates a pluginkit instance map for one tools/runtime profile.

func ScaffoldToolsYAML added in v0.1.11

func ScaffoldToolsYAML(profile ToolProfile, opts ToolsScaffoldOptions) ([]byte, error)

ScaffoldToolsYAML returns a YAML fragment for the given tools/runtime profile.

func SplitOverlayPaths

func SplitOverlayPaths(spec string) []string

SplitOverlayPaths parses a comma-separated overlay list, e.g. "presets/autonomous.yaml,presets/daemon.yaml".

Types

type ToolProfile added in v0.1.11

type ToolProfile string

ToolProfile selects which tools/runtime instance graph fragment to scaffold.

const (
	ToolProfileDefault  ToolProfile = "default"
	ToolProfileSubagent ToolProfile = "subagent"
)

type ToolsScaffoldOptions added in v0.1.11

type ToolsScaffoldOptions struct {
	Whitelist []string
	Blacklist []string
}

ToolsScaffoldOptions controls kind filtering when generating tool graphs.

Jump to

Keyboard shortcuts

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