builtin

package
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

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

func (i *Installer) BuiltInIDs() []string

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) BuiltInName() string

func (*Installer) BuiltInPackageScopes

func (i *Installer) BuiltInPackageScopes() []basespec.Locator

func (*Installer) DesiredHydration

func (i *Installer) DesiredHydration(
	ctx context.Context,
) (topology.Hydration, error)

func (*Installer) Ensure

func (i *Installer) Ensure(ctx context.Context) error

Ensure satisfies the generic installer contract. Hydration-aware bootstrap calls EnsureHydration instead and supplies the current marker state.

func (*Installer) EnsureHydration

func (i *Installer) EnsureHydration(
	ctx context.Context,
	current bool,
) error

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

func (i *Installer) FinalizeHydration(
	ctx context.Context,
) error

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
	ShareableDocuments providerapi.ExpectedCanonicalizer
}

type Registry

type Registry struct {
	SchemaVersion string               `json:"schemaVersion"`
	Bundles       []BundleRegistration `json:"bundles"`
}

func LoadEmbeddedRegistry

func LoadEmbeddedRegistry() (Registry, fs.FS, error)

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

func (Registry) Validate

func (r Registry) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL