Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
style(profile): rustfmt the profile fixes
AkitaOnRailsdee53158c928
diff --git a/crates/ai-memory-cli/src/commands/profile.rs b/crates/ai-memory-cli/src/commands/profile.rsindex 1a2580a4..83c60cf5 100644--- a/crates/ai-memory-cli/src/commands/profile.rs+++ b/crates/ai-memory-cli/src/commands/profile.rs@@ -329,7 +329,11 @@ async fn review(ep: &ServerEndpoint, scope: &ProfileScopeArgs) -> Result<()> {format!(", {} more operator{} needed for a team profile",group.contributors_needed,- if group.contributors_needed == 1 { "" } else { "s" }+ if group.contributors_needed == 1 {+ ""+ } else {+ "s"+ })} else {String::new()diff --git a/crates/ai-memory-consolidate/src/profile.rs b/crates/ai-memory-consolidate/src/profile.rsindex 1df19d5e..e4b12657 100644--- a/crates/ai-memory-consolidate/src/profile.rs+++ b/crates/ai-memory-consolidate/src/profile.rs@@ -2169,7 +2169,13 @@ pub fn review_plan(min_contributors: usize,) -> ConvergePlan {let rows: Vec<&ProfileCandidateRow> = candidates.iter().collect();- converge(&rows, existing_pages, ledger, min_projects, min_contributors)+ converge(+ &rows,+ existing_pages,+ ledger,+ min_projects,+ min_contributors,+ )}/// Distinct operators a statement needs evidence from before it entersdiff --git a/crates/ai-memory-core/src/profile.rs b/crates/ai-memory-core/src/profile.rsindex bbda236e..d1dce6b7 100644--- a/crates/ai-memory-core/src/profile.rs+++ b/crates/ai-memory-core/src/profile.rs@@ -569,7 +569,8 @@ const DIGEST_PRECEDENCE: &str = "> Your usual choices from other projects. Use tthis project's rules and the user say nothing; say which default you applied. The user's \instructions, then this repository's rules file (`AGENTS.md`, `CLAUDE.md`), then this \project's memory all take precedence.\n";-const TEAM_DIGEST_TITLE: &str = "> 🧭 **ai-memory: team defaults** (shared cross-project profile)\n";+const TEAM_DIGEST_TITLE: &str =+ "> 🧭 **ai-memory: team defaults** (shared cross-project profile)\n";const TEAM_DIGEST_PRECEDENCE: &str = "> Team defaults: choices several operators on this server \made across projects, not necessarily this user's own. Use them when this project's rules and \the user say nothing; say which default you applied. The user's instructions, then this \@@ -618,7 +619,11 @@ pub fn render_digest(}let mut head = String::new();- head.push_str(if team { TEAM_DIGEST_TITLE } else { DIGEST_TITLE });+ head.push_str(if team {+ TEAM_DIGEST_TITLE+ } else {+ DIGEST_TITLE+ });head.push_str(if team {TEAM_DIGEST_PRECEDENCE} else {