pub enum SkillRefStatus {
Loadable,
Missing {
path: PathBuf,
},
Malformed {
path: PathBuf,
error: String,
},
CorruptRef {
reason: String,
},
}Expand description
Outcome of resolving a profile.yaml skill ref (e.g. skills/<name>)
against an agent’s home directory.
Distinguishing Missing from Malformed matters: a ref written without
installing the backing files (issue #717) is a missing skill — telling
the user it “no longer parses” points them at the wrong root cause.
Variants§
Loadable
The ref resolves to a manifest that parses and validates.
Missing
No file exists at the resolved manifest path.
Malformed
A file exists but does not parse/validate as a skill manifest.
CorruptRef
The ref itself cannot name a file — it holds whitespace, which a skill
id never does. Seen in the wild as several refs concatenated into one
profile.yaml list item (skills/a - skills/b - skills/b), growing by
a segment each time something appended to the string instead of pushing
a new item.
Separate from Missing for the same reason Missing is separate from
Malformed: the advice differs. Nothing is missing here — the backing
skills are installed — so “install it” sends people to run a command
that cannot help. The entry has to be split or removed.
Trait Implementations§
Source§impl Clone for SkillRefStatus
impl Clone for SkillRefStatus
Source§fn clone(&self) -> SkillRefStatus
fn clone(&self) -> SkillRefStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SkillRefStatus
impl Debug for SkillRefStatus
impl Eq for SkillRefStatus
Source§impl PartialEq for SkillRefStatus
impl PartialEq for SkillRefStatus
impl StructuralPartialEq for SkillRefStatus
Auto Trait Implementations§
impl Freeze for SkillRefStatus
impl RefUnwindSafe for SkillRefStatus
impl Send for SkillRefStatus
impl Sync for SkillRefStatus
impl Unpin for SkillRefStatus
impl UnsafeUnpin for SkillRefStatus
impl UnwindSafe for SkillRefStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.