Skip to main content

Module skill_bundles

Module skill_bundles 

Source
Expand description

Skill-bundle directory rules and helpers.

Single source of truth for:

  • the shared/skills/<alias>/ default
  • the inside-shared/ containment rule
  • the per-config uniqueness rule

Lives in zeroclaw-config (not zeroclaw-runtime/skills/bundle.rs) so crate::schema::Config::validate can call into it at load time. Runtime’s bundle.rs re-exports these functions; there is no second implementation.

Enums§

BundleDirectoryError

Functions§

default_directory
Canonical default directory for a bundle: <install>/shared/skills/<alias>/.
resolve_directory
Resolve the on-disk directory for a configured bundle, applying the default when [skill-bundles.<alias>].directory is unset or empty. Absolute paths configured by the user pass through verbatim; relative paths are resolved against the install root.
validate_directory
Reject directories that escape <install>/shared/. Run at scaffold time and inside crate::schema::Config::validate.
validate_uniqueness
Reject configs where two bundles resolve to the same directory.