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: apply rustfmt formatting across memory and web_chat modules
Steven Enamakel7c41d40116b8
diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rsindex 0c105b0f5e..3f083d6cdf 100644--- a/crates/openhuman-core/src/memory/tools.rs+++ b/crates/openhuman-core/src/memory/tools.rs@@ -35,14 +35,11 @@ use crate::core::runtime::DispatchCtx;use super::error::MemoryError;use super::ops;pub use super::tool_budget::is_budget_refusal;-use super::types::{- FetchParams, ForgetParams, LearnParams, RecallParams, RecallView,-};+use super::types::{FetchParams, ForgetParams, LearnParams, RecallParams, RecallView};/// How many matches one `fetch` returns; the model pages on with `cursor`.const FETCH_TOP: usize = 5;-/// The tool's name.pub const MEMORY_TOOL_NAME: &str = "memory";diff --git a/crates/openhuman-core/src/memory/tools_agent_tests.rs b/crates/openhuman-core/src/memory/tools_agent_tests.rsindex a0389bb5d5..c77d247214 100644--- a/crates/openhuman-core/src/memory/tools_agent_tests.rs+++ b/crates/openhuman-core/src/memory/tools_agent_tests.rs@@ -35,4 +35,3 @@ fn gather_acts_as_the_identity_the_run_carries() {);assert!(bare.reach.at.is_root());}-diff --git a/crates/openhuman-core/src/memory/types.rs b/crates/openhuman-core/src/memory/types.rsindex a0e6fa6d46..607f32244a 100644--- a/crates/openhuman-core/src/memory/types.rs+++ b/crates/openhuman-core/src/memory/types.rs@@ -389,4 +389,3 @@ pub struct ImportStateView {/// The state.pub state: ImportState,}-diff --git a/crates/openhuman-core/src/web_chat/citations.rs b/crates/openhuman-core/src/web_chat/citations.rsindex 29d75ec837..8b8f09ec2b 100644--- a/crates/openhuman-core/src/web_chat/citations.rs+++ b/crates/openhuman-core/src/web_chat/citations.rs@@ -38,11 +38,7 @@ impl From<&tinymemory_api::Hit> for TurnCitation {.observed_at.map(|at| at.to_rfc3339()).unwrap_or_default(),- snippet: hit- .text- .chars()- .take(TURN_CITATION_SNIPPET_CHARS)- .collect(),+ snippet: hit.text.chars().take(TURN_CITATION_SNIPPET_CHARS).collect(),}}}@@ -80,7 +76,11 @@ fn turn_citations(ctx: &DispatchCtx) -> Arc<TurnCitations> {crate::core::runtime::slot_for::<TurnCitations>(ctx)}-fn extend_thread(ctx: &DispatchCtx, thread_id: &str, citations: impl IntoIterator<Item = TurnCitation>) {+fn extend_thread(+ ctx: &DispatchCtx,+ thread_id: &str,+ citations: impl IntoIterator<Item = TurnCitation>,+) {let citations_by_thread = turn_citations(ctx);let mut all = citations_by_thread.lock()diff --git a/crates/openhuman-core/src/web_chat/citations_tests.rs b/crates/openhuman-core/src/web_chat/citations_tests.rsindex 79c5b22c5b..e4474c8175 100644--- a/crates/openhuman-core/src/web_chat/citations_tests.rs+++ b/crates/openhuman-core/src/web_chat/citations_tests.rs@@ -99,7 +99,13 @@ fn citations_drain_per_thread_and_merge_pack_and_recall_sources() {record_recall_citations(&ctx, "thread-a", &[recall]);let thread_a = take_turn_citations(&ctx, "thread-a");- assert_eq!(thread_a.iter().map(|item| item.id.as_str()).collect::<Vec<_>>(), ["pack", "shared"]);+ assert_eq!(+ thread_a+ .iter()+ .map(|item| item.id.as_str())+ .collect::<Vec<_>>(),+ ["pack", "shared"]+ );assert_eq!(take_turn_citations(&ctx, "thread-a"), []);assert_eq!(take_turn_citations(&ctx, "thread-b")[0].id, "other-thread");}diff --git a/crates/openhuman-core/src/web_chat/reply_persistence.rs b/crates/openhuman-core/src/web_chat/reply_persistence.rsindex cbc4542c99..81d2ca27e3 100644--- a/crates/openhuman-core/src/web_chat/reply_persistence.rs+++ b/crates/openhuman-core/src/web_chat/reply_persistence.rs@@ -23,8 +23,8 @@ use std::path::Path;use serde_json::json;-use crate::web_chat::TurnCitation;use crate::threads::store::{self as conversations, run_reply_message_id, ConversationMessage};+use crate::web_chat::TurnCitation;/// Metadata scope stamped on a reply persisted by the web-channel delivery path.///diff --git a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rsindex cc4981d6c9..17451d72db 100644--- a/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs+++ b/crates/openhuman-core/src/web_chat/reply_persistence_tests.rs@@ -1,8 +1,8 @@use std::path::{Path, PathBuf};use super::persist_delivered_reply;-use crate::web_chat::TurnCitation;use crate::threads::store::{self as conversations, CreateConversationThread};+use crate::web_chat::TurnCitation;fn temp_ws() -> PathBuf {let dir = std::env::temp_dir().join(format!("web-chat-reply-{}", uuid::Uuid::new_v4()));