pub struct SkillStore { /* private fields */ }Expand description
Local skill store rooted at data_dir (user) and optionally project_dir (project).
Implementations§
Source§impl SkillStore
impl SkillStore
Sourcepub fn open(data_dir: &Path) -> Result<Self>
pub fn open(data_dir: &Path) -> Result<Self>
Opens the filesystem skill store under <data_dir>/skills/.
pub fn open_with_project(data_dir: &Path, project_dir: &Path) -> Result<Self>
pub fn path(&self) -> PathBuf
Sourcepub fn list_all(&self) -> Result<Vec<SkillManifest>>
pub fn list_all(&self) -> Result<Vec<SkillManifest>>
Lists all skills (root + every pool member). Used by load_skill / tests.
Sourcepub fn list_root_skills(&self) -> Result<Vec<SkillManifest>>
pub fn list_root_skills(&self) -> Result<Vec<SkillManifest>>
Root-level skills only (not inside a pool). For prompt catalog.
Sourcepub fn list_pools(&self) -> Result<Vec<SkillPool>>
pub fn list_pools(&self) -> Result<Vec<SkillPool>>
All pools (folders) under user + project roots.
Sourcepub fn list_pool_skills(&self, pool_id: &str) -> Result<Vec<SkillManifest>>
pub fn list_pool_skills(&self, pool_id: &str) -> Result<Vec<SkillManifest>>
Skills inside one pool (metadata + instructions for load).
pub fn list_for_discovery( &self, _project_key: Option<&str>, ) -> Result<Vec<SkillManifest>>
pub fn get(&self, id: &str) -> Result<Option<SkillManifest>>
Sourcepub fn get_in_pool(
&self,
id: &str,
pool: Option<&str>,
) -> Result<Option<SkillManifest>>
pub fn get_in_pool( &self, id: &str, pool: Option<&str>, ) -> Result<Option<SkillManifest>>
Resolve skill by id, optionally restricted to a pool. Also tries pool/id form.
pub fn upsert( &self, request: &SkillWriteRequest, _project_key: Option<&str>, ) -> Result<SkillWriteResult>
pub fn delete(&self, id: &str) -> Result<bool>
Auto Trait Implementations§
impl Freeze for SkillStore
impl RefUnwindSafe for SkillStore
impl Send for SkillStore
impl Sync for SkillStore
impl Unpin for SkillStore
impl UnsafeUnpin for SkillStore
impl UnwindSafe for SkillStore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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