Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(muse): make the remaining XDG_CONFIG_HOME case platform-absolute
AkitaOnRails68027b87ccc5
diff --git a/crates/ai-memory-cli/src/commands/install_mcp.rs b/crates/ai-memory-cli/src/commands/install_mcp.rsindex 92441462..34d12b54 100644--- a/crates/ai-memory-cli/src/commands/install_mcp.rs+++ b/crates/ai-memory-cli/src/commands/install_mcp.rs@@ -2820,10 +2820,11 @@ mod tests {);}assert!(muse_settings_path_in(None, None).is_err());- let env = |name: &str| (name == "XDG_CONFIG_HOME").then(|| "/xdg2".into());+ let xdg2 = if cfg!(windows) { r"C:\xdg2" } else { "/xdg2" };+ let env = move |name: &str| (name == "XDG_CONFIG_HOME").then(|| xdg2.into());assert_eq!(mcp_config_path_with(McpClient::Muse, &env).unwrap(),- Path::new("/xdg2/muse/settings.json")+ Path::new(xdg2).join("muse").join("settings.json"));}