Documentation
¶
Index ¶
- type Provider
- type RegistryClient
- type RegistrySnapshot
- type RegistrySnapshotFile
- type SkillsCLIProvider
- func (p *SkillsCLIProvider) Install(ctx context.Context, cwd, home string, candidate domaininstall.Candidate, ...) (string, error)
- func (p *SkillsCLIProvider) Kind() domaininstall.Kind
- func (p *SkillsCLIProvider) Preview(ctx context.Context, candidate domaininstall.Candidate) (string, error)
- func (p *SkillsCLIProvider) Search(query string) ([]domaininstall.Candidate, error)
- func (p *SkillsCLIProvider) SupportedAgents() []agent.Agent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
Kind() domaininstall.Kind
Search(query string) ([]domaininstall.Candidate, error)
Preview(ctx context.Context, candidate domaininstall.Candidate) (string, error)
Install(ctx context.Context, cwd, home string, candidate domaininstall.Candidate, agentIDs []string, scope extension.Scope) (installedName string, err error)
SupportedAgents() []agent.Agent
}
Provider searches a registry and installs candidates for one extension kind. MCP will implement this interface later; skills uses the skills CLI today.
type RegistryClient ¶
RegistryClient talks to the skills.sh HTTP API (no Node/npx).
func NewRegistryClient ¶
func NewRegistryClient() *RegistryClient
func (*RegistryClient) Download ¶
func (c *RegistryClient) Download(ctx context.Context, owner, repo, slug string) (*RegistrySnapshot, error)
func (*RegistryClient) Search ¶
func (c *RegistryClient) Search(ctx context.Context, query string) ([]domaininstall.Candidate, error)
type RegistrySnapshot ¶
type RegistrySnapshot struct {
Files []RegistrySnapshotFile `json:"files"`
Hash string `json:"hash"`
}
RegistrySnapshot is a downloaded skill bundle from skills.sh.
type RegistrySnapshotFile ¶
RegistrySnapshotFile is one file in a skill snapshot.
type SkillsCLIProvider ¶
type SkillsCLIProvider struct {
Registry *RegistryClient
// contains filtered or unexported fields
}
SkillsCLIProvider searches and installs skills via skills.sh HTTP APIs (no Node/npx).
func NewSkillsCLIProvider ¶
func NewSkillsCLIProvider() *SkillsCLIProvider
func (*SkillsCLIProvider) Kind ¶
func (p *SkillsCLIProvider) Kind() domaininstall.Kind
func (*SkillsCLIProvider) Preview ¶ added in v0.1.3
func (p *SkillsCLIProvider) Preview(ctx context.Context, candidate domaininstall.Candidate) (string, error)
func (*SkillsCLIProvider) Search ¶
func (p *SkillsCLIProvider) Search(query string) ([]domaininstall.Candidate, error)
func (*SkillsCLIProvider) SupportedAgents ¶
func (p *SkillsCLIProvider) SupportedAgents() []agent.Agent
Click to show internal directories.
Click to hide internal directories.