Versions in this module Expand all Collapse all v0 v0.75.0 Nov 21, 2026 v0.74.0 Nov 19, 2026 Changes in this version + const BoundEntries + const BoundPages + const BoundResponseBytes + const ExtensionKey + const MaxFilesPerSkill + const MaxFrontmatterBytes + const MaxListBytes + const MaxListPages + const MaxListResponseBytes + const MaxReadPerRefresh + const MaxScanBytesPerSkill + const MaxSkillBytes + const MaxSkillsPerServer + const MaxStoredTextPerServer + const MaxURIBytes + const MaxUnlistedSkillsPerServer + const ReasonDigestMismatch + const ReasonDynamic + const ReasonFrontmatterInvalid + const ReasonFrontmatterMismatch + const ReasonInvalidURI + const ReasonNameMismatch + const ReasonReadFailed + const ReasonServerBoundExceeded + const ReasonSizeMismatch + const ReasonStoredCopyDamaged + const ReasonTooLarge + const ReasonTooManyFiles + const ReasonUnsupportedDigest + var ErrChunkOffsetInsideRune = errors.New("offset is inside a UTF-8 character") + var ErrChunkOffsetPastEnd = errors.New("offset is past the end of the file") + var ErrNotServed = errors.New("skills: the server is not asked for skills") + var ErrStopped = errors.New("skills: the read was stopped by its caller") + func Chunk(data []byte, offset, limit int64) (text []byte, next int64, more bool, err error) + func ContentHash(e Entry) (string, error) + func FrontmatterEqual(listed, parsed map[string]any) bool + func ParseFrontmatter(skillMD []byte) (map[string]any, error) + func ParseSkillURI(uri string) (root, path, name string, err error) + func RelPath(root, fileURI string) (string, error) + func ShouldContinue(ctx context.Context) bool + func WithContinueCheck(ctx context.Context, check func() bool) context.Context + type Entry struct + Dynamic bool + Files []FileRef + Frontmatter map[string]any + URI string + func DecodeEntry(raw json.RawMessage) (Entry, error) + func DecodeGetResult(raw json.RawMessage) (Entry, error) + func (e Entry) Validate() *UnusableError + type EntryError struct + Err error + Index int + URI string + type FileRef struct + Digest string + Size int64 + URI string + type ListPage struct + Entries []Entry + Errors []EntryError + NextCursor string + func DecodeListResult(raw json.RawMessage) (ListPage, error) + type TruncatedError struct + Bound string + Limit int64 + func (e *TruncatedError) Error() string + type UnusableError struct + Code string + Detail string + func VerifyFile(ref FileRef, content []byte) *UnusableError + func (e *UnusableError) Error() string