Documentation
¶
Index ¶
- type ArtifactRegistration
- type BundleRegistration
- 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) 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 ¶
This section is empty.
Types ¶
type ArtifactRegistration ¶
type ArtifactRegistration struct {
ID artifact.ArtifactID `json:"id"`
Subresource basespec.SubresourceLocator `json:"subresource"`
Kind artifact.ArtifactKind `json:"kind"`
Enabled bool `json:"enabled"`
}
type BundleRegistration ¶
type BundleRegistration struct {
CollectionID collection.CollectionID `json:"collectionID"`
EmbeddedPackageRoot basespec.Locator `json:"embeddedPackageRoot"`
EmbeddedDocumentLocator basespec.Locator `json:"embeddedDocumentLocator"`
Artifacts []ArtifactRegistration `json:"artifacts"`
}
func (BundleRegistration) ToBundleRegistrations ¶
func (r BundleRegistration) ToBundleRegistrations() []mcpConsumerAPI.Registration
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func NewInstaller( dependencies InstallerDependencies, ) (*Installer, error)
func (*Installer) BuiltInIDs ¶
BuiltInIDs exposes only Collection and Artifact IDs. The generic bootstrap registry reserves the protected Root and shared Source IDs itself.
func (*Installer) BuiltInName ¶
func (*Installer) BuiltInPackageScopes ¶
func (*Installer) DesiredHydration ¶
func (*Installer) Ensure ¶
Ensure satisfies the generic installer contract. Hydration-aware bootstrap calls EnsureHydration instead and supplies the current marker state.
func (*Installer) EnsureHydration ¶
EnsureHydration is called after generic topology hydration preparation. A stale fingerprint causes generic topology reset before this method is entered. MCP then removes local protected overlays for the reset Root and installs only source-controlled static registrations.
func (*Installer) FinalizeHydration ¶
FinalizeHydration reconciles MCP catalogs after all installers sharing the protected managed Source have completed package publication.
It intentionally does not write MCP packages. The generic bootstrap calls this after the primary install pass, which lets MCP and Skill catalogs converge on the same final Source revision and generation.
type InstallerDependencies ¶
type InstallerDependencies struct {
Bundles mcpConsumerAPI.BuiltinStore
Registry Registry
Packages fs.FS
Overlays mcpOverlay.OverlayRepository
}
type Registry ¶
type Registry struct {
SchemaVersion string `json:"schemaVersion"`
Bundles []BundleRegistration `json:"bundles"`
}
func LoadEmbeddedRegistry ¶
LoadEmbeddedRegistry loads only the source-controlled converted MCP registry. It intentionally does not inspect or convert legacy runtime data, overlays, secrets, or user state.
func (Registry) OrderedBundles ¶
func (r Registry) OrderedBundles() []BundleRegistration