pub struct SkillLoader {
pub skills: Vec<Skill>,
pub search_paths: Vec<PathBuf>,
pub discover_shared: bool,
pub workspace_root: Option<PathBuf>,
pub discovery_policy: SkillDiscoveryPolicy,
pub discovery_warnings: Vec<SkillDiscoveryWarning>,
}Fields§
§skills: Vec<Skill>§search_paths: Vec<PathBuf>§workspace_root: Option<PathBuf>§discovery_policy: SkillDiscoveryPolicy§discovery_warnings: Vec<SkillDiscoveryWarning>Implementations§
Source§impl SkillLoader
impl SkillLoader
pub fn new() -> Self
pub fn for_workspace(workspace_root: impl AsRef<Path>) -> Self
pub fn for_workspace_with_options( workspace_root: impl AsRef<Path>, discover_shared: bool, ) -> Self
Sourcepub fn for_workspace_with_home_and_options(
workspace_root: impl AsRef<Path>,
home: Option<PathBuf>,
discover_shared: bool,
) -> Self
pub fn for_workspace_with_home_and_options( workspace_root: impl AsRef<Path>, home: Option<PathBuf>, discover_shared: bool, ) -> Self
Constructs a loader with an explicit home directory for test injection.
When home is None, neither user-global nor shared roots are added.
When home is Some(h), user-global (h/.talos/skills) and — if
discover_shared is true — shared (h/.agents/skills) roots are added.
This constructor never reads the HOME environment variable.
pub fn for_workspace_with_discovery_policy( workspace_root: impl AsRef<Path>, discover_shared: bool, policy: SkillDiscoveryPolicy, ) -> Self
pub fn discovery_warnings(&self) -> &[SkillDiscoveryWarning]
pub fn discover(&mut self) -> Result<&Vec<Skill>>
pub fn parse(path: &Path) -> Result<Skill>
pub fn get_index(&self) -> Vec<SkillIndex>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkillLoader
impl RefUnwindSafe for SkillLoader
impl Send for SkillLoader
impl Sync for SkillLoader
impl Unpin for SkillLoader
impl UnsafeUnpin for SkillLoader
impl UnwindSafe for SkillLoader
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