pub struct SkillService { /* private fields */ }Implementations§
Source§impl SkillService
impl SkillService
pub fn new() -> Result<Self, AppError>
pub fn get_ssot_dir() -> Result<PathBuf, AppError>
pub fn get_app_skills_dir(app: &AppType) -> Result<PathBuf, AppError>
pub fn load_index() -> Result<SkillsIndex, AppError>
pub fn save_index(index: &SkillsIndex) -> Result<(), AppError>
pub fn migrate_ssot_if_pending( index: &mut SkillsIndex, ) -> Result<usize, AppError>
pub fn sync_to_app_dir( directory: &str, app: &AppType, method: SyncMethod, ) -> Result<(), AppError>
pub fn remove_from_app(directory: &str, app: &AppType) -> Result<(), AppError>
pub fn sync_to_app(index: &SkillsIndex, app: &AppType) -> Result<(), AppError>
Sourcepub fn sync_all_enabled_best_effort() -> Result<(), AppError>
pub fn sync_all_enabled_best_effort() -> Result<(), AppError>
Best-effort sync for live-flow triggers (provider switch etc).
pub fn sync_all_enabled(app: Option<&AppType>) -> Result<(), AppError>
pub fn list_installed() -> Result<Vec<InstalledSkill>, AppError>
pub fn list_repos() -> Result<Vec<SkillRepo>, AppError>
pub fn get_sync_method() -> Result<SyncMethod, AppError>
pub fn set_sync_method(method: SyncMethod) -> Result<(), AppError>
pub fn upsert_repo(repo: SkillRepo) -> Result<(), AppError>
pub fn remove_repo(owner: &str, name: &str) -> Result<(), AppError>
pub fn toggle_app( directory_or_id: &str, app: &AppType, enabled: bool, ) -> Result<(), AppError>
pub fn uninstall(directory_or_id: &str) -> Result<(), AppError>
pub async fn install( &self, spec: &str, app: &AppType, ) -> Result<InstalledSkill, AppError>
pub fn scan_unmanaged() -> Result<Vec<UnmanagedSkill>, AppError>
pub fn scan_agent_installed() -> Result<Vec<UnmanagedSkill>, AppError>
pub fn import_from_apps( directories: Vec<String>, ) -> Result<Vec<InstalledSkill>, AppError>
pub fn import_from_agent( directories: Vec<String>, ) -> Result<Vec<InstalledSkill>, AppError>
pub async fn discover_available( &self, repos: Vec<SkillRepo>, ) -> Result<Vec<DiscoverableSkill>, AppError>
pub async fn list_skills(&self) -> Result<Vec<Skill>, AppError>
Auto Trait Implementations§
impl Freeze for SkillService
impl !RefUnwindSafe for SkillService
impl Send for SkillService
impl Sync for SkillService
impl Unpin for SkillService
impl UnsafeUnpin for SkillService
impl !UnwindSafe for SkillService
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more