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 Forget for LoadedPlugin
impl Freeze for LoadedPluginwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, Value)>: Freeze,
PhantomData<DiscoveredSkill>: Freeze,
PhantomData<(String, ServerConfig)>: Freeze,
impl Move for LoadedPlugin
impl RefUnwindSafe for LoadedPlugin
impl Send for LoadedPlugin
impl Sync for LoadedPlugin
impl Unpin for LoadedPlugin
impl UnsafeUnpin for LoadedPluginwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
PhantomData<DiscoveredSkill>: UnsafeUnpin,
PhantomData<(String, ServerConfig)>: UnsafeUnpin,
impl UnwindSafe for LoadedPluginwhere
RawVecInner: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
NonNull<u8>: UnwindSafe,
BoxRaw<SkillNetworkPolicy>: UnwindSafe,
BoxRaw<SkillPermissionProfile>: UnwindSafe,
HashMap<String, ServerConfig>: UnwindSafe,
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