Expand description
Runtime-side bundle facade. The directory rules (default path, inside-
shared/ containment, uniqueness) live in zeroclaw_config::skill_bundles
so Config::validate and the SkillsService share one implementation.
This module is a thin re-exporter plus the BundleSummary shape
returned to surface callers.
Structs§
- Bundle
Summary - Lightweight bundle view returned by
crate::skills::service::SkillsService::list_bundles.
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. - summary
- Build a
BundleSummaryfor a configured bundle alias. Resolves the directory viaresolve_directoryso default-path behaviour stays single-sourced. - 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.