Documentation
¶
Index ¶
- func DecodeSkillDocument(content []byte, expectedName string) (definition.Definition, []diagnostic.Diagnostic, error)
- func DocumentFromDefinition(value definition.Definition) (agentskillsSpec.SkillDocument, error)
- func ManagedPackageAddressForSkill(name basespec.LogicalName, version basespec.LogicalVersion) (source.ManagedPackageAddress, error)
- func ManagedPackageAddressFromSkillLocator(locator basespec.Locator) (source.ManagedPackageAddress, error)
- func ManagedPackageLocatorForSkill(address source.ManagedPackageAddress) (basespec.Locator, error)
- func ResolveRuntimePackage(ctx context.Context, runtime source.Runtime, value source.Source, ...) (string, error)
- func ValidateDefinition(value definition.Definition) error
- type Argument
- type Body
- type Decoder
- type LocatorPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSkillDocument ¶
func DecodeSkillDocument( content []byte, expectedName string, ) (definition.Definition, []diagnostic.Diagnostic, error)
DecodeSkillDocument is the shared SKILL.md parse-and-definition path used by discovery and managed Skill publication. It deliberately delegates parsing and semantic validation to agentskills-go.
func DocumentFromDefinition ¶
func DocumentFromDefinition( value definition.Definition, ) (agentskillsSpec.SkillDocument, error)
DocumentFromDefinition validates the canonical Artifact definition and returns the corresponding agentskills-go document. Consumers must use this projection instead of decoding the Skill body independently.
Raw SKILL.md parsing remains exclusively in DecodeSkillDocument, which delegates to agentskills-go.ParseSkillDocument.
func ManagedPackageAddressForSkill ¶ added in v0.2.17
func ManagedPackageAddressForSkill( name basespec.LogicalName, version basespec.LogicalVersion, ) (source.ManagedPackageAddress, error)
func ManagedPackageAddressFromSkillLocator ¶ added in v0.2.17
func ManagedPackageAddressFromSkillLocator( locator basespec.Locator, ) (source.ManagedPackageAddress, error)
func ManagedPackageLocatorForSkill ¶ added in v0.2.17
func ManagedPackageLocatorForSkill( address source.ManagedPackageAddress, ) (basespec.Locator, error)
func ResolveRuntimePackage ¶
func ResolveRuntimePackage( ctx context.Context, runtime source.Runtime, value source.Source, locator basespec.Locator, subresource basespec.SubresourceLocator, expectedGeneration string, expectedContentDigest cryptoutil.Digest, ) (string, error)
ResolveRuntimePackage applies only Agent Skill binding rules. Source generation verification, digest verification, snapshot reuse, safe close, and native path resolution belong to source.ResolveVerifiedLocalPath.
func ValidateDefinition ¶
func ValidateDefinition(value definition.Definition) error
Types ¶
type Body ¶
type Body struct {
Name string `json:"name"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description"`
Insert string `json:"insert"`
Arguments []Argument `json:"arguments,omitempty"`
Tags []string `json:"tags,omitempty"`
MarkdownBody string `json:"markdownBody"`
RawFrontmatter map[string]any `json:"rawFrontmatter,omitempty"`
}