Documentation
¶
Overview ¶
Package plugins contains orb's bundled, default-off first-party extensions. They are orb-original additions with no upstream mirror.
Index ¶
- func Catalog(option ...Options) map[string]extensions.Factory
- func Control(settings *config.SettingsManager) extensions.Factory
- func Description(name string) string
- func MemoryWithStore(store memorysdk.Store) extensions.Factory
- func Names() []string
- type Action
- type Decision
- type Options
- type Policy
- type Rule
- type ToolCallInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Catalog ¶
func Catalog(option ...Options) map[string]extensions.Factory
Catalog returns fresh extension factories. Embedders can register any chosen subset in an extensions.Registry and pass it through AgentSessionOptions.
func Control ¶
func Control(settings *config.SettingsManager) extensions.Factory
Control registers /plugins independently of the default-off plugin catalog.
func Description ¶
Description returns the one-line description used by the CLI and TUI.
func MemoryWithStore ¶
func MemoryWithStore(store memorysdk.Store) extensions.Factory
MemoryWithStore returns the dormant memory plugin with a caller-supplied, tenant-scoped Store.
Types ¶
type Decision ¶
type Decision struct {
Time int64 `json:"time"`
Tool string `json:"tool"`
Action Action `json:"action"`
Resolved Action `json:"resolved"`
Mode string `json:"mode"`
Rule int `json:"rule,omitempty"`
Matcher string `json:"matcher,omitempty"`
Input string `json:"input,omitempty"`
Resolution string `json:"resolution,omitempty"`
}
Decision records the matched policy and its runtime resolution.
type Options ¶
type Options struct {
StreamFn agent.StreamFn
HTTPClient *http.Client
Settings *config.SettingsManager
Policy *Policy
AgentDir string
}
Options supplies runtime seams used by bundled plugins. StreamFn keeps subagent tests and embedders independent from real providers.
type Policy ¶
type Policy struct {
Mode string `json:"mode,omitempty"`
AskFallback Action `json:"askFallback,omitempty"`
Rules []Rule `json:"rules,omitempty"`
// ponytail: single hook, chain when demanded.
Authorizer func(context.Context, ToolCallInfo) (Action, error) `json:"-"`
// contains filtered or unexported fields
}
Policy is constructible by SDK embedders and shared with in-process children.