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§
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>].directoryis 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 insidecrate::schema::Config::validate. - validate_
uniqueness - Reject configs where two bundles resolve to the same directory.