pub struct MarketplaceApi { /* private fields */ }Expand description
Marketplace system calls — multi-registry skill management.
Implementations§
Source§impl MarketplaceApi
impl MarketplaceApi
Sourcepub fn new(
clawhub_installer: Arc<ClawHubInstaller>,
clawhub_client: Arc<ClawHubClient>,
skills_sh_installer: Arc<SkillsShInstaller>,
skills_sh_client: Arc<SkillsShClient>,
) -> Self
pub fn new( clawhub_installer: Arc<ClawHubInstaller>, clawhub_client: Arc<ClawHubClient>, skills_sh_installer: Arc<SkillsShInstaller>, skills_sh_client: Arc<SkillsShClient>, ) -> Self
Create a new MarketplaceApi with both registries.
Sourcepub async fn search_clawhub(
&self,
query: &str,
limit: Option<usize>,
) -> Result<Vec<ClawHubSearchResult>>
pub async fn search_clawhub( &self, query: &str, limit: Option<usize>, ) -> Result<Vec<ClawHubSearchResult>>
Search ClawHub for skills by query.
Sourcepub async fn get_clawhub_skill(&self, slug: &str) -> Result<ClawHubSkillDetail>
pub async fn get_clawhub_skill(&self, slug: &str) -> Result<ClawHubSkillDetail>
Get full detail for a ClawHub skill by slug.
Sourcepub async fn install_clawhub(
&self,
slug: &str,
version: Option<&str>,
) -> Result<InstallResult>
pub async fn install_clawhub( &self, slug: &str, version: Option<&str>, ) -> Result<InstallResult>
Install a skill from ClawHub.
Sourcepub async fn check_clawhub_updates(&self) -> Result<Vec<UpdateAvailable>>
pub async fn check_clawhub_updates(&self) -> Result<Vec<UpdateAvailable>>
Check which installed ClawHub skills have newer versions.
Sourcepub async fn update_clawhub(&self, slug: &str) -> Result<UpdateResult>
pub async fn update_clawhub(&self, slug: &str) -> Result<UpdateResult>
Update a specific installed ClawHub skill.
Sourcepub async fn update_clawhub_all(&self) -> Result<Vec<UpdateResult>>
pub async fn update_clawhub_all(&self) -> Result<Vec<UpdateResult>>
Update all installed ClawHub skills.
Sourcepub async fn search_skills_sh(
&self,
query: &str,
limit: Option<usize>,
) -> Result<SkillsShSearchResponse>
pub async fn search_skills_sh( &self, query: &str, limit: Option<usize>, ) -> Result<SkillsShSearchResponse>
Search skills.sh for skills.
Sourcepub async fn list_skills_sh(
&self,
view: Option<&str>,
page: Option<i64>,
per_page: Option<i64>,
) -> Result<SkillsShListResponse>
pub async fn list_skills_sh( &self, view: Option<&str>, page: Option<i64>, per_page: Option<i64>, ) -> Result<SkillsShListResponse>
List skills from the skills.sh leaderboard.
Sourcepub async fn get_skills_sh_skill(&self, id: &str) -> Result<SkillsShSkillDetail>
pub async fn get_skills_sh_skill(&self, id: &str) -> Result<SkillsShSkillDetail>
Get detailed info for a skills.sh skill (including file contents).
Sourcepub async fn install_skills_sh(
&self,
skill_id: &str,
) -> Result<SkillsShInstallResult>
pub async fn install_skills_sh( &self, skill_id: &str, ) -> Result<SkillsShInstallResult>
Install a skill from skills.sh by its full id.
Sourcepub async fn update_skills_sh(
&self,
skill_id: &str,
) -> Result<SkillsShInstallResult>
pub async fn update_skills_sh( &self, skill_id: &str, ) -> Result<SkillsShInstallResult>
Update a skill from skills.sh.
Sourcepub async fn audit_skills_sh(&self, id: &str) -> Result<SkillsShAuditResponse>
pub async fn audit_skills_sh(&self, id: &str) -> Result<SkillsShAuditResponse>
Get security audit results for a skills.sh skill.
Sourcepub async fn search(
&self,
query: &str,
limit: Option<usize>,
) -> Result<Vec<ClawHubSearchResult>>
pub async fn search( &self, query: &str, limit: Option<usize>, ) -> Result<Vec<ClawHubSearchResult>>
Search for skills (defaults to ClawHub).
Sourcepub async fn get_skill(&self, slug: &str) -> Result<ClawHubSkillDetail>
pub async fn get_skill(&self, slug: &str) -> Result<ClawHubSkillDetail>
Get skill detail (defaults to ClawHub).
Sourcepub async fn install(
&self,
slug: &str,
version: Option<&str>,
) -> Result<InstallResult>
pub async fn install( &self, slug: &str, version: Option<&str>, ) -> Result<InstallResult>
Install a skill (defaults to ClawHub).
Sourcepub async fn check_updates(&self) -> Result<Vec<UpdateAvailable>>
pub async fn check_updates(&self) -> Result<Vec<UpdateAvailable>>
Check for updates (defaults to ClawHub).
Sourcepub async fn update(&self, slug: &str) -> Result<UpdateResult>
pub async fn update(&self, slug: &str) -> Result<UpdateResult>
Update a skill (defaults to ClawHub).
Sourcepub async fn update_all(&self) -> Result<Vec<UpdateResult>>
pub async fn update_all(&self) -> Result<Vec<UpdateResult>>
Update all skills (defaults to ClawHub).
Trait Implementations§
Source§impl Clone for MarketplaceApi
impl Clone for MarketplaceApi
Source§fn clone(&self) -> MarketplaceApi
fn clone(&self) -> MarketplaceApi
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more