{"modulePath":"github.com/MiniMax-AI/OpenAgentCore","version":"v0.0.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package agentcapabilities\n\nPackage agentcapabilities owns the packaged Runtime's inert installation data.\n\n## Constants\n\n```go\nconst Directory = \"/environment/initialization/capabilities\"\n```\n\n```go\nconst ManifestName = \"installed.json\"\n```\n\n```go\nconst MaxSkills = 50\n```\n\n```go\nconst MaxSnapshotBytes = 50 \u003c\u003c 20\n```\n\n## Variables\n\n```go\nvar ErrInvalid = errors.New(\"capability installation unavailable or unsupported\")\n```\n\n## Functions\n\n```go\nfunc Finalize(installed *os.Root, input proto.CapabilitySources, identity Identity, resolve DirectoryResolver) error\n```\nFinalize captures declared directories once after setup and binds the snapshot. It emits an installation artifact, not another lifecycle or public catalog.\n\n```go\nfunc InstallPlugin(root *os.Root, slot int, archive []byte, metadata proto.PluginMetadata) error\n```\n\n```go\nfunc InstallSkill(root *os.Root, archive []byte, metadata proto.SkillMetadata) error\n```\n\n```go\nfunc ReadTree(root *os.Root, name string, immutable bool) ([]agentbundle.File, error)\n```\nReadTree stays inside an already-owned root and rejects aliases/special files. Installation sources may be writable; retained snapshots must be read-only.\n\n```go\nfunc Rebind(installed *os.Root, manifest *Manifest, input proto.CapabilitySources, identity Identity) error\n```\nRebind gives an installation restored from an earlier preparation the identity of this Environment. The earlier preparation must have had the identical selection.\n\n```go\nfunc ValidateDirectories(directories []string) error\n```\nValidateDirectories preserves the managed public workspace-path contract.\n\n```go\nfunc ValidateLocalDirectories(directories []string) error\n```\nValidateLocalDirectories checks source spelling, not local access authority. Runtime requires canonical paths for its own operating system. The resolver owns directory access and protected-root exclusions.\n\n```go\nfunc ValidateSelection(manifest Manifest, input proto.CapabilitySources, identity Identity) error\n```\nValidateSelection checks reconnect configuration without revisiting sources. Use it only with a manifest returned by Load.\n\n## Types\n\n```go\ntype DirectoryResolver func(string) (*os.Root, error)\n```\nDirectoryResolver opens a declared source after local authorization and path checks. Finalize owns and closes each returned root; callers retain no handle.\n\n```go\ntype Identity struct {\n\tEnvironmentID string `json:\"environment_id\"`\n}\n```\nIdentity binds an installation to one immutable Environment.\n\n```go\ntype InstalledMCP struct {\n\tPackageRoot string\n\tServer      proto.PluginMCPServer\n}\n```\nInstalledMCP is resolved from a frozen package at load time. The manifest stores the package root, not a second copy of configuration or credentials.\n\n```go\ntype Manifest struct {\n\tIdentity        Identity               `json:\"identity\"`\n\tSelectionSHA256 string                 `json:\"selection_sha256\"`\n\tVersion         int                    `json:\"version\"`\n\tSkills          []proto.InstalledSkill `json:\"skills\"`\n\tPlugins         []string               `json:\"plugins,omitempty\"`\n\tMCP             []InstalledMCP         `json:\"-\"`\n}\n```\n\n```go\nfunc Load(root *os.Root) (Manifest, error)\n```\nLoad checks the protected installation; it never reads the original workspace directories, even after a native/Core restart.\n\n","path":"github.com/MiniMax-AI/OpenAgentCore/internal/agentcapabilities","name":"agentcapabilities","synopsis":"Package agentcapabilities owns the packaged Runtime's inert installation data.","isRedistributable":true}
