Documentation
¶
Index ¶
- func Extension(injected engine.StreamFn, policy *permissions.Policy, ...) extensions.Factory
- func ExternalEntries(settings *config.SettingsManager) (map[string]ExternalEntry, error)
- func ParseExternalEntries(configured map[string]any) (map[string]ExternalEntry, error)
- func ToggleExternalCLI(settings *config.SettingsManager, name string) error
- type ExternalEntry
- type KnownCLI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extension ¶
func Extension(injected engine.StreamFn, policy *permissions.Policy, settings *config.SettingsManager) extensions.Factory
func ExternalEntries ¶
func ExternalEntries(settings *config.SettingsManager) (map[string]ExternalEntry, error)
ExternalEntries parses plugins.subagents.external, where each value is either a command string or {"command": string, "enabled": bool} — the object form is how a CLI is switched off without losing its command.
func ParseExternalEntries ¶
func ParseExternalEntries(configured map[string]any) (map[string]ExternalEntry, error)
ParseExternalEntries parses one scope's raw subagents configuration.
func ToggleExternalCLI ¶
func ToggleExternalCLI(settings *config.SettingsManager, name string) error
ToggleExternalCLI flips one external CLI, preserving its command (the object form of plugins.subagents.external), or configures a detected CLI with its known invocation.
Types ¶
type ExternalEntry ¶
ExternalEntry is one configured external CLI: its command and whether it is currently offered to the model.
type KnownCLI ¶
KnownCLI is an agent CLI orb can drive as an external subagent: the command is its print-mode invocation reading the task on stdin and answering on stdout (the contract runExternalChild expects).
func DetectCLIs ¶
DetectCLIs returns the known CLIs present on PATH, in registry order. lookPath is injectable for tests.