Skip to main content

read_provenance

Function read_provenance 

Source
pub fn read_provenance(pack_root: &Path) -> PackProvenance
Expand description

Read provenance from a pack root.

pack_root is the directory containing SKILLS.md — the parent of the skills/ directory that super::builtin_loader::builtin_dir returns.

Never fails: an absent, unreadable, or malformed manifest yields a PackProvenance where PackProvenance::is_unknown is true. A skill pack that cannot state its version must still load — otherwise adding provenance would break every existing deployment.