Skip to main content

Module bundle

Module bundle 

Source
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§

BundleSummary
Lightweight bundle view returned by crate::skills::service::SkillsService::list_bundles.

Enums§

BundleError

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.
summary
Build a BundleSummary for a configured bundle alias. Resolves the directory via resolve_directory so default-path behaviour stays single-sourced.
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.