Documentation
¶
Index ¶
- func BuiltInCollectionPackageAddress(name basespec.LogicalName, version basespec.LogicalVersion) (source.ManagedPackageAddress, error)
- type Artifact
- type Collection
- type HydratedArtifact
- type HydratedCollection
- type HydratedRegistry
- type Installer
- func (i *Installer) BuiltInIDs() []string
- func (*Installer) BuiltInName() string
- func (i *Installer) BuiltInPackageScopes() []basespec.Locator
- func (i *Installer) DesiredHydration(ctx context.Context) (topology.Hydration, error)
- func (i *Installer) Ensure(ctx context.Context) error
- func (i *Installer) EnsureBuiltInArtifacts(ctx context.Context) error
- func (i *Installer) EnsureBuiltInBundles(ctx context.Context) ([]skillDomain.SkillBundle, error)
- func (i *Installer) EnsureHydration(ctx context.Context, current bool) error
- func (i *Installer) FinalizeHydration(ctx context.Context) error
- type InstallerDependencies
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuiltInCollectionPackageAddress ¶
func BuiltInCollectionPackageAddress( name basespec.LogicalName, version basespec.LogicalVersion, ) (source.ManagedPackageAddress, error)
Types ¶
type Artifact ¶
type Artifact struct {
ID artifact.ArtifactID `json:"id"`
Member basespec.Locator `json:"member"`
Enabled bool `json:"enabled"`
}
type Collection ¶
type Collection struct {
ID collection.CollectionID `json:"id"`
EmbeddedCollectionLocator basespec.Locator `json:"embeddedCollectionLocator"`
Enabled bool `json:"enabled"`
Artifacts []Artifact `json:"artifacts"`
}
type HydratedArtifact ¶
type HydratedArtifact struct {
Registration Artifact
Member artifactbuiltin.ContentRef
SkillDefinition definition.Definition
}
type HydratedCollection ¶
type HydratedCollection struct {
Registration Collection
Definition artifactbuiltin.SkillCollectionV1
EmbeddedPackageRoot basespec.Locator
ExpectedMemberDigests map[basespec.Locator]cryptoutil.Digest
Artifacts []HydratedArtifact
}
type HydratedRegistry ¶
type HydratedRegistry struct {
Registry Registry
Collections []HydratedCollection
}
func (HydratedRegistry) OrderedCollections ¶
func (r HydratedRegistry) OrderedCollections() []HydratedCollection
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func NewInstaller( dependencies InstallerDependencies, ) (*Installer, error)
func (*Installer) BuiltInIDs ¶
func (*Installer) BuiltInName ¶
func (*Installer) BuiltInPackageScopes ¶
func (*Installer) DesiredHydration ¶
func (*Installer) EnsureBuiltInArtifacts ¶
func (*Installer) EnsureBuiltInBundles ¶
func (i *Installer) EnsureBuiltInBundles( ctx context.Context, ) ([]skillDomain.SkillBundle, error)
func (*Installer) EnsureHydration ¶
func (*Installer) FinalizeHydration ¶
FinalizeHydration refreshes built-in Skill catalogs after all artifact families sharing the protected managed Source have finished publication.
It does not publish packages. Bootstrap invokes this after the primary installer pass so Skill catalogs record the final shared Source revision.
type InstallerDependencies ¶
type InstallerDependencies struct {
Skills skillConsumerAPI.BuiltinStore
SkillRegistry Registry
Packages fs.FS
}
type Registry ¶
type Registry struct {
SchemaVersion string `json:"schemaVersion"`
Collections []Collection `json:"collections"`
}
Registry is the non-portable registration manifest for embedded Agent Skills. It is not a portable Skill Bundle definition and is never exported.
func LoadRegistry ¶
func (Registry) Hydrate ¶
func (r Registry) Hydrate( ctx context.Context, canonicalizer providerapi.ExpectedCanonicalizer, packages fs.FS, ) (HydratedRegistry, error)
Hydrate converts embedded portable collection descriptors into canonical, integrity-pinned Skill collection documents. The checked-in descriptor may omit digest fields. Member digests are enriched from embedded package bytes and the final document is canonicalized through Artifact Store's registered shareable codec before local installation begins.
func (Registry) OrderedCollections ¶
func (r Registry) OrderedCollections() []Collection