Skip to main content

invocation_surfaces

Function invocation_surfaces 

Source
pub fn invocation_surfaces(
    sections: &BTreeMap<String, String>,
    skills_dir: &str,
) -> Vec<String>
Expand description

The patterns of every invocation surface: the layer’s workflows, prompts, profiles and provider templates (read from the manifest’s sections, beside the skills section), and the recipes, CI workflows and root bootstraps.

use majordomus_cli::skill::invocation_surfaces;
let mut sections = std::collections::BTreeMap::new();
sections.insert("prompts".to_string(), ".ai/repo/prompts".to_string());
let s = invocation_surfaces(&sections, ".ai/repo/skills");
assert!(s.contains(&".ai/repo/prompts/**".to_string()));
assert!(s.contains(&".ai/repo/providers/**".to_string()));
assert!(s.contains(&"justfile".to_string()));