Documentation
¶
Overview ¶
Package skillsext exposes registry content through the Skills over MCP extension.
Index ¶
- Constants
- func ManifestErrorCategory(err error) string
- type ManifestSummary
- type Provider
- func (p *Provider) GetSkillEntry(ctx context.Context, name string) (*mcp.SkillEntry, error)
- func (p *Provider) ListSkillEntries(ctx context.Context, allow func(string) bool) ([]mcp.SkillEntry, error)
- func (p *Provider) ReadSkillDirectory(ctx context.Context, name, dir string) ([]mcp.SkillDirectoryEntry, error)
- func (p *Provider) ReadSkillFile(ctx context.Context, name, file string) (*mcp.SkillFileContent, error)
Constants ¶
View Source
const ( MaxManifestFiles = 512 MaxManifestBytes = 16_777_216 )
Variables ¶
This section is empty.
Functions ¶
func ManifestErrorCategory ¶
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 (*Provider) GetSkillEntry ¶
func (*Provider) ListSkillEntries ¶
func (*Provider) ReadSkillDirectory ¶
func (*Provider) ReadSkillFile ¶
Click to show internal directories.
Click to hide internal directories.