pub struct SkillAtiClient { /* private fields */ }Implementations§
Source§impl SkillAtiClient
impl SkillAtiClient
pub fn from_env(keyring: &Keyring) -> Result<Option<Self>, SkillAtiError>
pub fn from_registry_url( registry_url: &str, keyring: &Keyring, ) -> Result<Self, SkillAtiError>
pub async fn catalog(&self) -> Result<Vec<RemoteSkillMeta>, SkillAtiError>
pub fn filter_catalog( catalog: &[RemoteSkillMeta], query: &str, limit: usize, ) -> Vec<RemoteSkillMeta>
Sourcepub async fn read_skill(
&self,
name: &str,
) -> Result<SkillAtiActivation, SkillAtiError>
pub async fn read_skill( &self, name: &str, ) -> Result<SkillAtiActivation, SkillAtiError>
Level-2 skill activation. Returns SKILL.md body with frontmatter
stripped, skill-dir variables substituted, and cross-skill filesystem
references rewritten to skillati:// URIs. Mirrors Claude Code’s
createSkillCommand.getPromptForCommand
(~/cc/src/skills/loadSkillsDir.ts:344) but without the
${CLAUDE_SESSION_ID} and !shell-exec binding, which are
CC-runtime-specific.
Does NOT eagerly fetch the resource list — that’s Level-3 and the
agent pulls it on demand via ati skill fetch resources <name>.
pub async fn list_resources( &self, name: &str, prefix: Option<&str>, ) -> Result<Vec<String>, SkillAtiError>
pub async fn read_path( &self, requested_skill: &str, requested_path: &str, ) -> Result<SkillAtiFile, SkillAtiError>
pub async fn list_references( &self, name: &str, ) -> Result<Vec<String>, SkillAtiError>
pub async fn read_reference( &self, name: &str, reference: &str, ) -> Result<String, SkillAtiError>
Auto Trait Implementations§
impl !Freeze for SkillAtiClient
impl !RefUnwindSafe for SkillAtiClient
impl Send for SkillAtiClient
impl Sync for SkillAtiClient
impl Unpin for SkillAtiClient
impl UnsafeUnpin for SkillAtiClient
impl !UnwindSafe for SkillAtiClient
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