Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
style(cli): rustfmt post_hook and post_batch multiline calls
Vinícius DS Andradec2c29ed4d162
diff --git a/crates/ai-memory-cli/src/commands/hook_capture.rs b/crates/ai-memory-cli/src/commands/hook_capture.rsindex 828f2f7a..e6d383cc 100644--- a/crates/ai-memory-cli/src/commands/hook_capture.rs+++ b/crates/ai-memory-cli/src/commands/hook_capture.rs@@ -1320,8 +1320,14 @@ mod tests {let target_url = format!("http://{}/target", target.local_addr().unwrap());let source_url = redirect_server("307 Temporary Redirect", &target_url).await;- let outcome =- post_hook(&build_client(), &source_url, "{}", None, Duration::from_secs(1)).await;+ let outcome = post_hook(+ &build_client(),+ &source_url,+ "{}",+ None,+ Duration::from_secs(1),+ )+ .await;assert_eq!(outcome, PostOutcome::Failed);assert!(tokio::time::timeout(Duration::from_millis(100), target.accept())@@ -1337,8 +1343,14 @@ mod tests {let target_url = format!("http://{}/target", target.local_addr().unwrap());let source_url = redirect_server("307 Temporary Redirect", &target_url).await;- let outcome =- post_batch(&build_client(), &source_url, "[]", None, Duration::from_secs(1)).await;+ let outcome = post_batch(+ &build_client(),+ &source_url,+ "[]",+ None,+ Duration::from_secs(1),+ )+ .await;assert_eq!(outcome, BatchOutcome::Failed);assert!(tokio::time::timeout(Duration::from_millis(100), target.accept())