Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix(agent): gate full_catalog under the cli feature

thinhlpg3b8b0d7182c0
diff --git a/src-tauri/src/core/agent/skills.rs b/src-tauri/src/core/agent/skills.rs
index ed0520321..167855b25 100644
--- a/src-tauri/src/core/agent/skills.rs
+++ b/src-tauri/src/core/agent/skills.rs
@@ -542,6 +542,7 @@ pub(crate) fn user_catalog(root: &Path, enabled: &[String]) -> Vec<SkillMeta> {
/// the enabled whitelist — the full disk truth. This is what `/reload skills`
/// diffs against the previous scan, so an edit or install shows up as an
/// added/removed/changed entry regardless of who may invoke it.
+#[cfg(feature = "cli")]
pub(crate) fn full_catalog(root: &Path) -> Vec<SkillMeta> {
side_catalog(root, &[], |_| true)
}