The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style(memory): reformat memory module to satisfy rustfmt
Steven Enamakelbfdad65e652a
diff --git a/crates/openhuman-core/src/memory/channels.rs b/crates/openhuman-core/src/memory/channels.rsindex fd928ea975..2d97a54dc9 100644--- a/crates/openhuman-core/src/memory/channels.rs+++ b/crates/openhuman-core/src/memory/channels.rs@@ -124,7 +124,11 @@ pub async fn forget_channel(config: &Config, channel: &str) -> MemoryResult<usizwrite(&config.workspace_dir, &all);}}- tracing::debug!(forgotten, queued = bound.is_none(), "[memory:channels] channel forgotten");+ tracing::debug!(+ forgotten,+ queued = bound.is_none(),+ "[memory:channels] channel forgotten"+ );match failure {Some(error) => Err(error),None => Ok(forgotten),diff --git a/crates/openhuman-core/src/memory/deletion_tests.rs b/crates/openhuman-core/src/memory/deletion_tests.rsindex 0f63bf4ae8..f30220d1fb 100644--- a/crates/openhuman-core/src/memory/deletion_tests.rs+++ b/crates/openhuman-core/src/memory/deletion_tests.rs@@ -25,8 +25,14 @@ async fn a_deleted_threads_conversation_is_forgotten_for_good() {let tmp = tempfile::tempdir().unwrap();let config = config_in(&tmp);let engine = bind_reference(&config);- engine.store(conversation("t-gone", "secret plan")).await.unwrap();- engine.store(conversation("t-kept", "keep me")).await.unwrap();+ engine+ .store(conversation("t-gone", "secret plan"))+ .await+ .unwrap();+ engine+ .store(conversation("t-kept", "keep me"))+ .await+ .unwrap();assert_eq!(forget_thread(&config, "t-gone").await, 1);@@ -49,7 +55,10 @@ async fn a_thread_deleted_while_signed_out_is_forgotten_on_the_next_sign_in() {// Signed in: the engine is reachable and holds the thread's memory.let engine = bind_reference(&config);- engine.store(conversation("t-1", "from before")).await.unwrap();+ engine+ .store(conversation("t-1", "from before"))+ .await+ .unwrap();assert_eq!(drain(&config).await, 1);assert!(stored(&engine, MetaFilter::default()).await.is_empty());assert!(pending(&config.workspace_dir).is_empty());diff --git a/crates/openhuman-core/src/memory/sources/composio.rs b/crates/openhuman-core/src/memory/sources/composio.rsindex 66299deb7e..ba94b19d93 100644--- a/crates/openhuman-core/src/memory/sources/composio.rs+++ b/crates/openhuman-core/src/memory/sources/composio.rs@@ -431,7 +431,11 @@ async fn erase_if_sole_owner(cursor,}).await?;- if page.items.iter().any(|hit| !hit.meta.tags.iter().any(|t| t == tag)) {+ if page+ .items+ .iter()+ .any(|hit| !hit.meta.tags.iter().any(|t| t == tag))+ {tracing::debug!("[memory:sources] toolkit source shared with another connection; forgetting by id");diff --git a/crates/openhuman-core/src/memory/sources/composio_tests.rs b/crates/openhuman-core/src/memory/sources/composio_tests.rsindex 6c8ba670a9..efa4fc3f4b 100644--- a/crates/openhuman-core/src/memory/sources/composio_tests.rs+++ b/crates/openhuman-core/src/memory/sources/composio_tests.rs@@ -575,8 +575,14 @@ async fn a_source_held_by_one_connection_is_erased_not_forgotten() {.unwrap(),2);- assert_eq!(engine.calls(), ["erase"], "a scoped erasure, no bare forget");- assert!(stored(&engine.inner, MetaFilter::default()).await.is_empty());+ assert_eq!(+ engine.calls(),+ ["erase"],+ "a scoped erasure, no bare forget"+ );+ assert!(stored(&engine.inner, MetaFilter::default())+ .await+ .is_empty());}#[tokio::test]@@ -616,7 +622,9 @@ async fn an_engine_that_cannot_erase_falls_back_to_forget_by_id() {1);assert_eq!(engine.calls(), ["erase", "forget"]);- assert!(stored(&engine.inner, MetaFilter::default()).await.is_empty());+ assert!(stored(&engine.inner, MetaFilter::default())+ .await+ .is_empty());}#[tokio::test]diff --git a/crates/openhuman-core/src/memory/test_fixtures.rs b/crates/openhuman-core/src/memory/test_fixtures.rsindex aa5a0b89a8..6282c644b5 100644--- a/crates/openhuman-core/src/memory/test_fixtures.rs+++ b/crates/openhuman-core/src/memory/test_fixtures.rs@@ -215,10 +215,7 @@ impl MemoryEngine for RecordingEngine {self.inner.list(req).await}- async fn export(- &self,- req: ListRequest,- ) -> tinymemory_api::Result<tinymemory_api::ExportPage> {+ async fn export(&self, req: ListRequest) -> tinymemory_api::Result<tinymemory_api::ExportPage> {self.inner.export(req).await}