install

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

type RegistryClient struct {
	BaseURL    string
	HTTPClient *http.Client
}

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

type RegistrySnapshotFile struct {
	Path     string `json:"path"`
	Contents string `json:"contents"`
}

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) Install

func (p *SkillsCLIProvider) Install(ctx context.Context, cwd, home string, candidate domaininstall.Candidate, agentIDs []string, scope extension.Scope) (string, error)

func (*SkillsCLIProvider) 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

Jump to

Keyboard shortcuts

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