Documentation
¶
Index ¶
- func HasBuiltinSkills(dir string) bool
- func LoadFromDir(scope Scope, skillDir string) (Skill, bool, []Diagnostic)
- type Arg
- type AuthorResult
- type Catalog
- type ClearResult
- type Diagnostic
- type Entry
- type Manager
- func (m *Manager) Author(name string, scope Scope, brief string) (AuthorResult, error)
- func (m *Manager) Clear(name string) (ClearResult, error)
- func (m *Manager) Find(name string) (Skill, bool)
- func (m *Manager) List() ([]Skill, []Diagnostic)
- func (m *Manager) Reload() Catalog
- func (m *Manager) Snapshot() Catalog
- func (m *Manager) UseEmbeddedBuiltins()
- func (m *Manager) Workspace() string
- type Override
- type PromptRef
- type ResourceRef
- type Scope
- type Skill
- type ToolPolicy
- type ToolPolicyMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasBuiltinSkills ¶ added in v1.0.1
func LoadFromDir ¶
func LoadFromDir(scope Scope, skillDir string) (Skill, bool, []Diagnostic)
Types ¶
type AuthorResult ¶
type Catalog ¶
type Catalog struct {
Skills []Skill
Diagnostics []Diagnostic
Overrides []Override
LoadedAt time.Time
}
type ClearResult ¶
type Diagnostic ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManagerWithDirs ¶
func (*Manager) List ¶
func (m *Manager) List() ([]Skill, []Diagnostic)
func (*Manager) UseEmbeddedBuiltins ¶ added in v1.0.1
func (m *Manager) UseEmbeddedBuiltins()
type ResourceRef ¶
type ToolPolicy ¶
type ToolPolicy struct {
Policy ToolPolicyMode `json:"policy"`
Items []string `json:"items"`
}
type ToolPolicyMode ¶
type ToolPolicyMode string
const ( ToolPolicyInherit ToolPolicyMode = "inherit" ToolPolicyAllowlist ToolPolicyMode = "allowlist" ToolPolicyDenylist ToolPolicyMode = "denylist" )
Click to show internal directories.
Click to hide internal directories.