Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(agent-tools): initialize plugin registry within declared MSRV
thinhlpg40fa6fb0236c
diff --git a/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/proc.rs b/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/proc.rsindex b53838813..f152647d2 100644--- a/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/proc.rs+++ b/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/proc.rs@@ -7,15 +7,15 @@use std::collections::{BTreeMap, HashMap};use std::path::{Path, PathBuf};use std::process::Stdio;-use std::sync::{LazyLock, Mutex, OnceLock, RwLock};+use std::sync::{Mutex, OnceLock, RwLock};use std::time::Instant;use tokio::process::{Child, Command};/// User-supplied, plugin-declared credentials, scoped to the project that/// registered them. Concurrent projects must never replace each other's keys.-static PLUGIN_ENV: LazyLock<RwLock<BTreeMap<PathBuf, BTreeMap<String, String>>>> =- LazyLock::new(|| RwLock::new(BTreeMap::new()));+static PLUGIN_ENV: RwLock<BTreeMap<PathBuf, BTreeMap<String, String>>> =+ RwLock::new(BTreeMap::new());/// Replace one project's plugin credentials, or revoke them with an empty map.pub fn set_plugin_env(root: &Path, vars: BTreeMap<String, String>) {