pub trait CommandSkillGroupContext {
Show 13 methods
// Required methods
fn skill_registry_projection(&self) -> SkillRegistryProjection;
fn activate_skill(
&mut self,
name: &str,
) -> Result<SkillActivationOutcome, SkillActivationError>;
fn install_skill(
&mut self,
scope: Option<SkillTargetScope>,
spec: &str,
) -> Result<SkillMutationReceipt, String>;
fn update_skill(
&mut self,
scope: Option<SkillTargetScope>,
name: &str,
) -> Result<SkillMutationReceipt, String>;
fn uninstall_skill(
&mut self,
scope: Option<SkillTargetScope>,
name: &str,
) -> Result<SkillMutationReceipt, String>;
fn trust_skill(
&mut self,
scope: Option<SkillTargetScope>,
name: &str,
) -> Result<SkillMutationReceipt, String>;
fn fetch_remote_registry(&mut self) -> Result<RemoteRegistryOutcome, String>;
fn recommend_skills(
&mut self,
task: &str,
) -> Result<Vec<SkillRecommendation>, String>;
fn sync_registry(&mut self) -> Result<SkillSyncOutcome, String>;
fn run_review(&mut self) -> Result<ReviewOutcome, String>;
fn snapshot_list(
&mut self,
limit: usize,
) -> Result<Vec<SnapshotEntry>, String>;
fn restore_snapshot(&mut self, id: &str) -> Result<(), String>;
fn approval_state(&self) -> CommandApprovalState;
}Expand description
Host skill data for the skills command group (FEAT-022 D1).
Exposes the typed, exact-minimum operations the live skills handlers
consume: discovery (/skills), activation (/skill), synchronous
mutation receipts (/skill install|update|uninstall|trust), remote
registry + sync (/skills --remote|sync|suggest), review (/review),
and snapshot list/restore plus approval state (/restore). The host
adapter is the only place that touches App, crate::plugins,
SnapshotRepo, crate::skills services, config/network policy, and the
async runtime bridge. The shared FEAT-015 CommandSkillsContext is never
widened; active-skill reads use that facet, mutations flow through the
delegates here (D2). All results are contract-owned portable values;
implementation errors cross as safe text. /skill declares this facet
plus CommandSkillsContext for the baseline cache-refresh policy;
/skills, /review, and /restore declare exactly this facet.
Required Methods§
Sourcefn skill_registry_projection(&self) -> SkillRegistryProjection
fn skill_registry_projection(&self) -> SkillRegistryProjection
/skills discovery projection (workspace, skills dir, scan mode,
searched directories, plugin-provided skills, warnings).
Sourcefn activate_skill(
&mut self,
name: &str,
) -> Result<SkillActivationOutcome, SkillActivationError>
fn activate_skill( &mut self, name: &str, ) -> Result<SkillActivationOutcome, SkillActivationError>
/skill activation: host lookup, plugin-authority verification, and
active-skill/history side effects. SendMessage task composition is
handler-side.
Sourcefn install_skill(
&mut self,
scope: Option<SkillTargetScope>,
spec: &str,
) -> Result<SkillMutationReceipt, String>
fn install_skill( &mut self, scope: Option<SkillTargetScope>, spec: &str, ) -> Result<SkillMutationReceipt, String>
/skill install — synchronous portable receipt; host owns network/async.
Sourcefn update_skill(
&mut self,
scope: Option<SkillTargetScope>,
name: &str,
) -> Result<SkillMutationReceipt, String>
fn update_skill( &mut self, scope: Option<SkillTargetScope>, name: &str, ) -> Result<SkillMutationReceipt, String>
/skill update — synchronous portable receipt; host owns network/async.
Sourcefn uninstall_skill(
&mut self,
scope: Option<SkillTargetScope>,
name: &str,
) -> Result<SkillMutationReceipt, String>
fn uninstall_skill( &mut self, scope: Option<SkillTargetScope>, name: &str, ) -> Result<SkillMutationReceipt, String>
/skill uninstall — synchronous portable receipt.
Sourcefn trust_skill(
&mut self,
scope: Option<SkillTargetScope>,
name: &str,
) -> Result<SkillMutationReceipt, String>
fn trust_skill( &mut self, scope: Option<SkillTargetScope>, name: &str, ) -> Result<SkillMutationReceipt, String>
/skill trust — synchronous portable receipt.
Sourcefn fetch_remote_registry(&mut self) -> Result<RemoteRegistryOutcome, String>
fn fetch_remote_registry(&mut self) -> Result<RemoteRegistryOutcome, String>
/skills --remote registry fetch (network policy host-side).
Sourcefn recommend_skills(
&mut self,
task: &str,
) -> Result<Vec<SkillRecommendation>, String>
fn recommend_skills( &mut self, task: &str, ) -> Result<Vec<SkillRecommendation>, String>
/skills suggest <task> — host fetch + recommendation computation.
Sourcefn sync_registry(&mut self) -> Result<SkillSyncOutcome, String>
fn sync_registry(&mut self) -> Result<SkillSyncOutcome, String>
/skills sync — host registry sync (async bridge host-side).
Sourcefn run_review(&mut self) -> Result<ReviewOutcome, String>
fn run_review(&mut self) -> Result<ReviewOutcome, String>
/review activation: host discovery + side effects (empty-target
validation and SendMessage composition are handler-side).
Sourcefn snapshot_list(&mut self, limit: usize) -> Result<Vec<SnapshotEntry>, String>
fn snapshot_list(&mut self, limit: usize) -> Result<Vec<SnapshotEntry>, String>
/restore snapshot listing.
Sourcefn restore_snapshot(&mut self, id: &str) -> Result<(), String>
fn restore_snapshot(&mut self, id: &str) -> Result<(), String>
/restore <N>: host restores by snapshot id; handler composes the
exact success message from its list entry.
Sourcefn approval_state(&self) -> CommandApprovalState
fn approval_state(&self) -> CommandApprovalState
/restore trust gate posture (yolo / trust_mode).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".