Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
style: rustfmt the _global wikilink tests
Vinícius Andrade29a25b7941c8
diff --git a/crates/ai-memory-store/src/ops.rs b/crates/ai-memory-store/src/ops.rsindex 6d6a99c4..200ebd46 100644--- a/crates/ai-memory-store/src/ops.rs+++ b/crates/ai-memory-store/src/ops.rs@@ -10929,7 +10929,12 @@ pub(crate) mod tests {let other_ws = get_or_create_workspace(&mut conn, "other").unwrap();let other_proj = get_or_create_project(&mut conn, &other_ws, "embodied-ai", None).unwrap();- let mut source = page(other_ws, other_proj, "notes/here.md", "see the standing rule");+ let mut source = page(+ other_ws,+ other_proj,+ "notes/here.md",+ "see the standing rule",+ );source.links = vec![LinkTarget {workspace: None,project: Some(ai_memory_core::GLOBAL_SCOPE_PROJECT.into()),@@ -11057,7 +11062,10 @@ pub(crate) mod tests {|r| Ok((r.get(0)?, r.get(1)?)),).unwrap();- assert_eq!(to_workspace, None, "non-global project-only stays NULL workspace");+ assert_eq!(+ to_workspace, None,+ "non-global project-only stays NULL workspace"+ );assert_eq!(resolved.as_deref(), Some(&target_id.as_bytes()[..]));}diff --git a/crates/ai-memory-wiki/src/markdown.rs b/crates/ai-memory-wiki/src/markdown.rsindex 7dbf421b..4dd617a7 100644--- a/crates/ai-memory-wiki/src/markdown.rs+++ b/crates/ai-memory-wiki/src/markdown.rs@@ -1037,23 +1037,18 @@ mod tests {.all(|l| l.workspace.as_deref() == Some(DEFAULT_WORKSPACE_NAME)),"project-only _global must name the default workspace: {links:?}");- assert!(- pinned- .iter()- .any(|l| l.path.as_str() == "python-env.md")- );- assert!(- pinned- .iter()- .any(|l| l.path.as_str() == "local-machine.md")- );+ assert!(pinned.iter().any(|l| l.path.as_str() == "python-env.md"));+ assert!(pinned.iter().any(|l| l.path.as_str() == "local-machine.md"));let sibling = extract_links("[[infra:runbooks/02.md]]", &page());let l = sibling.iter().find(|l| l.is_cross_project()).expect("infra");- assert_eq!(l.workspace, None, "non-global project-only stays source-workspace");+ assert_eq!(+ l.workspace, None,+ "non-global project-only stays source-workspace"+ );assert_eq!(l.project.as_deref(), Some("infra"));let explicit = extract_links("[[other/_global:notes/x.md]]", &page());