skills

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManifestSchemaVersion = 1
	StateSchemaVersion    = 1
	StateFileName         = "install-state.json"
	BundleFileName        = "volcengine-skill-bundle.zip"
	SourceCDN             = "cdn"
	SourceGitHub          = "github"
	SourceNPX             = "npx"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InstalledSkill

type InstalledSkill struct {
	Version       string                      `json:"version"`
	BundleSHA256  string                      `json:"bundleSha256"`
	ContentSHA256 string                      `json:"contentSha256"`
	Targets       map[string]*InstalledTarget `json:"targets"`
}

type InstalledTarget

type InstalledTarget struct {
	Mode          string `json:"mode"`
	Path          string `json:"path"`
	ContentSHA256 string `json:"contentSha256,omitempty"`
}

type Manager

type Manager struct {
	HomeDir           string
	ConfigDir         string
	CDNManifestURL    string
	GitHubManifestURL string
	HTTPClient        *http.Client
	ClaudeConfigDir   string
	HermesHome        string
	RunCommand        func(name string, args ...string) error
	// contains filtered or unexported fields
}

func NewManager

func NewManager() (*Manager, error)

func (*Manager) Install

func (m *Manager) Install() (Result, error)

func (*Manager) SelectNames added in v1.1.11

func (m *Manager) SelectNames(names []string) error

SelectNames restricts install/update/uninstall to verified catalog associations. An explicit empty selection is an error: it must never install the core set.

func (*Manager) Uninstall

func (m *Manager) Uninstall() (Result, error)

func (*Manager) Update

func (m *Manager) Update() (Result, error)

type Manifest

type Manifest struct {
	SchemaVersion int             `json:"schemaVersion"`
	Version       string          `json:"version"`
	Bundle        ManifestBundle  `json:"bundle"`
	Skills        []ManifestSkill `json:"skills"`
}

type ManifestBundle

type ManifestBundle struct {
	File   string `json:"file"`
	SHA256 string `json:"sha256"`
	Size   int64  `json:"size"`
	URL    string `json:"url"`
}

type ManifestSkill

type ManifestSkill struct {
	Name   string `json:"name"`
	SHA256 string `json:"sha256"`
}

type Result

type Result struct {
	Source    string
	Version   string
	Installed []string
	Updated   []string
	Removed   []string
	Skipped   []string
	Warnings  []string
}

type State

type State struct {
	SchemaVersion       int                        `json:"schemaVersion"`
	LastResolvedVersion string                     `json:"lastResolvedVersion,omitempty"`
	LastResolvedSHA256  string                     `json:"lastResolvedSha256,omitempty"`
	Skills              map[string]*InstalledSkill `json:"skills"`
}

Jump to

Keyboard shortcuts

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