skillsext

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package skillsext exposes registry content through the Skills over MCP extension.

Index

Constants

View Source
const (
	MaxManifestFiles = 512
	MaxManifestBytes = 16_777_216
)

Variables

This section is empty.

Functions

func ManifestErrorCategory

func ManifestErrorCategory(err error) string

ManifestErrorCategory classifies a manifest build failure for operator output. digest_unavailable means the file set could not be hashed. Other failures, including frontmatter that cannot be encoded, are manifest_unavailable.

Types

type ManifestSummary

type ManifestSummary struct {
	Digest  string `json:"digest"`
	Files   int    `json:"files"`
	Bytes   int64  `json:"bytes"`
	Dynamic bool   `json:"dynamic"`
}

ManifestSummary is the operator-facing projection of the full manifest.

func Summarize

func Summarize(manifest *skillpins.Manifest) ManifestSummary

Summarize preserves the composite pin fingerprint even for dynamic skills.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider caches complete manifests for one registry generation.

func New

func New(store *registry.Store) *Provider

func (*Provider) GetSkillEntry

func (p *Provider) GetSkillEntry(ctx context.Context, name string) (*mcp.SkillEntry, error)

func (*Provider) ListSkillEntries

func (p *Provider) ListSkillEntries(ctx context.Context, allow func(string) bool) ([]mcp.SkillEntry, error)

func (*Provider) ReadSkillDirectory

func (p *Provider) ReadSkillDirectory(ctx context.Context, name, dir string) ([]mcp.SkillDirectoryEntry, error)

func (*Provider) ReadSkillFile

func (p *Provider) ReadSkillFile(ctx context.Context, name, file string) (*mcp.SkillFileContent, error)

Jump to

Keyboard shortcuts

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