pub struct LocalPluginInstaller { /* private fields */ }Expand description
Reference skeleton — see module docs. Holds only a bamboo_dir so tests
can point it at a tempdir instead of the real ~/.bamboo.
Implementations§
Trait Implementations§
Source§impl Default for LocalPluginInstaller
impl Default for LocalPluginInstaller
Source§impl PluginInstaller for LocalPluginInstaller
impl PluginInstaller for LocalPluginInstaller
Source§fn install<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
manifest: &'life1 PluginManifest,
plugin_dir: &'life2 Path,
_source: PluginSource,
disposition: InstallDisposition,
_installed_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = PluginResult<InstalledPlugin>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn install<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
manifest: &'life1 PluginManifest,
plugin_dir: &'life2 Path,
_source: PluginSource,
disposition: InstallDisposition,
_installed_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = PluginResult<InstalledPlugin>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Install (or, with
InstallDisposition::Upgrade, upgrade) a plugin
already unpacked at plugin_dir (source handling — copying a local
dir, unpacking a .tar.gz, fetching+verifying a URL + selecting the
per-platform artifact — happens BEFORE this is called; by the time
install runs, plugin_dir already contains plugin.json plus the
skills//prompts//workflows//bin/ layout the manifest declares). Read moreSource§fn uninstall<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = PluginResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn uninstall<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = PluginResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reverse everything
install registered for id (stop + remove MCP
servers, remove prompt presets, and clean legacy copied workflow files), then remove
the provenance entry and delete plugin_dir from disk. Safe by
construction: the provenance registered set only ever names
plugin-created entries (invariant 1 in the module docs).Source§fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PluginResult<Vec<InstalledPlugin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = PluginResult<Vec<InstalledPlugin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
All currently-installed plugins (a thin read of
installed.json).Auto Trait Implementations§
impl Forget for LocalPluginInstaller
impl Freeze for LocalPluginInstaller
impl Move for LocalPluginInstaller
impl RefUnwindSafe for LocalPluginInstaller
impl Send for LocalPluginInstallerwhere
RawVecInner: Send,
impl Sync for LocalPluginInstallerwhere
RawVecInner: Sync,
impl Unpin for LocalPluginInstaller
impl UnsafeUnpin for LocalPluginInstaller
impl UnwindSafe for LocalPluginInstallerwhere
RawVecInner: 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