pub struct PluginManager { /* private fields */ }Expand description
Discovery + filter result.
Implementations§
Source§impl PluginManager
impl PluginManager
Sourcepub fn load(
roots: &PluginRoots,
settings: &PluginSettings,
) -> Result<Self, PluginError>
pub fn load( roots: &PluginRoots, settings: &PluginSettings, ) -> Result<Self, PluginError>
Load every plugin discoverable under roots, applying settings
filters. The returned manager is safe to share read-only.
§Errors
Returns PluginError only for failures that can’t be attributed
to a specific plugin (e.g. an unreadable parent dir). Per-plugin
errors are recorded in Self::failures and surfaced in the
/plugins overlay.
Sourcepub fn loaded(&self) -> &[LoadedPlugin]
pub fn loaded(&self) -> &[LoadedPlugin]
Loaded plugins, ordered alphabetically by name.
Sourcepub fn failures(&self) -> &[PluginLoadFailure]
pub fn failures(&self) -> &[PluginLoadFailure]
Per-plugin failures (for /plugins overlay).
Sourcepub fn skill_roots(&self) -> Vec<PathBuf>
pub fn skill_roots(&self) -> Vec<PathBuf>
Return the union of skill discovery roots. When the manifest’s
components.skills is set, the returned paths are the explicit
subdirectories. When unset, falls back to <plugin>/skills/.
Sourcepub fn output_style_roots(&self) -> Vec<PathBuf>
pub fn output_style_roots(&self) -> Vec<PathBuf>
Same as [skill_roots] for output styles. Returned paths are
directories containing .md files; if the manifest enumerated
individual files, those file paths are returned as-is.
Sourcepub fn agent_roots(&self) -> Vec<PathBuf>
pub fn agent_roots(&self) -> Vec<PathBuf>
Same as [skill_roots] for agents.
Sourcepub fn hooks_configs(&self) -> Vec<(String, Value)>
pub fn hooks_configs(&self) -> Vec<(String, Value)>
Merged hooks config across all loaded plugins. Each plugin’s
hooks file is read, ${CALIBAN_PLUGIN_ROOT} expanded, and the
resulting serde_json::Value returned in load order. The downstream
hooks loader is responsible for merging into its TOML world.
Sourcepub fn mcp_servers(&self) -> Vec<(String, Value)>
pub fn mcp_servers(&self) -> Vec<(String, Value)>
Merged MCP server configs across plugins. Inline mcpServers block
wins over components.mcp_servers when both are present (with a
warning). Each server name is namespaced <plugin>:<server>.
Trait Implementations§
Source§impl Clone for PluginManager
impl Clone for PluginManager
Source§fn clone(&self) -> PluginManager
fn clone(&self) -> PluginManager
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more