pub struct LoadedPlugin {
pub manifest: PluginManifest,
pub root: PathBuf,
pub skills: Vec<DiscoveredSkill>,
pub mcp: Option<McpConfig>,
}Fields§
§manifest: PluginManifest§root: PathBuf§skills: Vec<DiscoveredSkill>§mcp: Option<McpConfig>Implementations§
Source§impl LoadedPlugin
impl LoadedPlugin
Sourcepub fn load_from_dir(plugin_root: &Path) -> Result<Self, PluginError>
pub fn load_from_dir(plugin_root: &Path) -> Result<Self, PluginError>
Load a plugin from a directory. This is the orchestrator: it calls the individual phases (manifest, skills, MCP) and wires them together.
Sourcepub fn parse_manifest_dir(
plugin_root: &Path,
) -> Result<PluginManifest, PluginError>
pub fn parse_manifest_dir( plugin_root: &Path, ) -> Result<PluginManifest, PluginError>
Parse the plugin.json manifest from a plugin directory.
Sourcepub fn discover_skills_dir(
plugin_root: &Path,
) -> Result<Vec<DiscoveredSkill>, PluginError>
pub fn discover_skills_dir( plugin_root: &Path, ) -> Result<Vec<DiscoveredSkill>, PluginError>
Discover bundled skills under skills/*/SKILL.md.
Sourcepub fn discover_mcp_dir(
plugin_root: &Path,
) -> Result<Option<McpConfig>, PluginError>
pub fn discover_mcp_dir( plugin_root: &Path, ) -> Result<Option<McpConfig>, PluginError>
Discover the optional mcp.json MCP server configuration.
Trait Implementations§
Source§impl Clone for LoadedPlugin
impl Clone for LoadedPlugin
Auto Trait Implementations§
impl Freeze for LoadedPlugin
impl RefUnwindSafe for LoadedPlugin
impl Send for LoadedPlugin
impl Sync for LoadedPlugin
impl Unpin for LoadedPlugin
impl UnsafeUnpin for LoadedPlugin
impl UnwindSafe for LoadedPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more