Documentation
¶
Overview ¶
Package skills indexes the canonical ZIP bundles of local Skills repositories.
Index ¶
- Constants
- Variables
- func ParsePath(p string) (slug, version string, ok bool)
- func Path(slug, version string) string
- func Serves(t repo.PackageType) bool
- func ValidSlug(v string) bool
- func ValidVersion(v string) bool
- type Handler
- func (Handler) Admit(ctx context.Context, env format.Env, c repo.Config, w format.Write) (format.Write, error)
- func (Handler) Deleted(context.Context, format.Env, repo.Config, []types.Item) error
- func (Handler) Deleting(context.Context, format.Env, repo.Config, types.Item) error
- func (Handler) Deployed(ctx context.Context, env format.Env, c repo.Config, it types.Item) error
- func (Handler) Inspect(ctx context.Context, env format.Env, _ repo.Config, w format.Write) (any, error)
- func (Handler) Reindex(ctx context.Context, env format.Env, c repo.Config) error
- type Metadata
Constants ¶
View Source
const ( MaxArchiveBytes = 32 << 20 MaxSkillBytes = 5 << 20 MaxFiles = 256 )
Variables ¶
View Source
var ErrArchive = errors.New("skills: invalid skills bundle")
Functions ¶
func Serves ¶
func Serves(t repo.PackageType) bool
func ValidVersion ¶
Types ¶
type Handler ¶
type Metadata ¶
type Metadata struct {
Slug string `json:"slug"`
Version string `json:"version"`
Fingerprint string `json:"fingerprint"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Author string `json:"author,omitempty"`
Tags []string `json:"tags,omitempty"`
DisplayName string `json:"displayName,omitempty"` //nolint:tagliatelle // ClawHub's wire name
Summary string `json:"summary,omitempty"`
Changelog string `json:"changelog,omitempty"`
}
Metadata is the package record derived from the canonical path and SKILL.md. The publish request may supply display fields when the manifest omits them; the format's path and digest remain authoritative.
Click to show internal directories.
Click to hide internal directories.