Skip to main content

parse_bundle_import

Function parse_bundle_import 

Source
pub fn parse_bundle_import(
    files: &[BundleImportFile],
) -> Result<ParsedBundleImport, String>
Expand description

Parse and validate a bundle’s files into ParsedBundleImport. Structural failures (no manifest, bundle.json or armory.json, or a malformed one) reject the whole import — Err — since there is nothing safe to partially write. Per-entry problems (a missing referenced file, an unsafe path, a malformed SKILL.md) degrade to a warning and that entry is skipped — matches bundle_export.rs’s own philosophy, and lets a lossy import still produce a usable bundle rather than an all-or-nothing failure on e.g. one corrupt skill among five good ones.