pub struct SkillInstaller { /* private fields */ }Expand description
High-level skill lifecycle manager for embedding tools.
Implementations§
Source§impl SkillInstaller
impl SkillInstaller
Sourcepub fn new(tool: ToolIdentity) -> Self
pub fn new(tool: ToolIdentity) -> Self
Create a new installer for the given tool identity.
Sourcepub fn plan(
&self,
skill: &BundledSkill,
scope: Scope,
force: bool,
ctx: &AppContext<'_>,
) -> Result<InstallPlan>
pub fn plan( &self, skill: &BundledSkill, scope: Scope, force: bool, ctx: &AppContext<'_>, ) -> Result<InstallPlan>
Compute a dry-run install plan without writing anything.
Fails if the bundle does not contain a SKILL.md.
Sourcepub fn apply(
&self,
skill: &BundledSkill,
plan: &InstallPlan,
ctx: &AppContext<'_>,
) -> Result<Report>
pub fn apply( &self, skill: &BundledSkill, plan: &InstallPlan, ctx: &AppContext<'_>, ) -> Result<Report>
Apply an install plan, writing files and updating lock entries.
Fails if:
- The plan is blocked (e.g.
RefuseNewer). - The bundled skill’s checksum does not match the plan’s
source_checksum(parity guard — ensures the skill passed here is the same one planned).
Sourcepub fn status(&self, scope: Scope, ctx: &AppContext<'_>) -> Result<Status>
pub fn status(&self, scope: Scope, ctx: &AppContext<'_>) -> Result<Status>
Query the install status of this skill across relevant platforms.
Sourcepub fn remove(&self, scope: Scope, ctx: &AppContext<'_>) -> Result<RemoveReport>
pub fn remove(&self, scope: Scope, ctx: &AppContext<'_>) -> Result<RemoveReport>
Remove this skill from all relevant platforms.
Auto Trait Implementations§
impl Freeze for SkillInstaller
impl RefUnwindSafe for SkillInstaller
impl Send for SkillInstaller
impl Sync for SkillInstaller
impl Unpin for SkillInstaller
impl UnsafeUnpin for SkillInstaller
impl UnwindSafe for SkillInstaller
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