fix: enforced global visible_skills in llm node validation and improved skill loading error handling across the project

This commit is contained in:
2026-06-04 13:09:43 -06:00
parent 7078280b3d
commit 7b320e08c4
8 changed files with 124 additions and 8 deletions
+11
View File
@@ -289,6 +289,17 @@ pub fn has_skill(name: &str) -> bool {
skill_file(name).is_file()
}
pub fn list_visible_skills(visible: Option<&[String]>) -> Vec<String> {
let installed = list_skills();
match visible {
None => installed,
Some(allow) => installed
.into_iter()
.filter(|name| allow.iter().any(|v| v == name))
.collect(),
}
}
pub fn local_models_override() -> Result<Vec<ProviderModels>> {
let model_override_path = models_override_file();
let err = || {