Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(agent): match plugin helper gates to CLI consumers
thinhlpg22d0af05a330
diff --git a/src-tauri/src/core/agent/plugins.rs b/src-tauri/src/core/agent/plugins.rsindex 673be2812..99606ef8b 100644--- a/src-tauri/src/core/agent/plugins.rs+++ b/src-tauri/src/core/agent/plugins.rs@@ -283,7 +283,7 @@ pub(crate) fn save_plugin_env(plugin: &str, key: &str, value: &str) -> Result<()}/// [`save_plugin_env`] against an explicit directory (tests).-#[cfg(any(feature = "cli", test))]+#[cfg(feature = "cli")]pub(crate) fn save_plugin_env_in(dir: &Path,plugin: &str,@@ -371,7 +371,7 @@ pub(crate) fn missing_plugin_env(root: &Path) -> Vec<(String, String, String)> {}/// [`missing_plugin_env`] against an explicit store directory (tests).-#[cfg(any(feature = "cli", test))]+#[cfg(feature = "cli")]fn missing_plugin_env_in(root: &Path, env_dir: &Path) -> Vec<(String, String, String)> {let mut out = Vec::new();for (directory, _) in installed_entries(root) {@@ -524,7 +524,7 @@ pub(crate) fn plugin_mcp_servers(resolved_mcp_servers(&dir, &stored)}-#[cfg(any(feature = "cli", test))]+#[cfg(feature = "cli")]fn resolved_mcp_servers(dir: &Path,stored: &std::collections::BTreeMap<String, String>,