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
chore: align thread store and conversation module structure
Steven Enamakel4b039b16208c
diff --git a/crates/openhuman-core/src/memory/conversations/README.md b/crates/openhuman-core/src/threads/store/README.mdsimilarity index 100%rename from crates/openhuman-core/src/memory/conversations/README.mdrename to crates/openhuman-core/src/threads/store/README.mddiff --git a/crates/openhuman-core/src/memory/conversations/blocking.rs b/crates/openhuman-core/src/threads/store/blocking.rssimilarity index 99%rename from crates/openhuman-core/src/memory/conversations/blocking.rsrename to crates/openhuman-core/src/threads/store/blocking.rsindex fbd561add2..3a39078bec 100644--- a/crates/openhuman-core/src/memory/conversations/blocking.rs+++ b/crates/openhuman-core/src/threads/store/blocking.rs@@ -51,7 +51,7 @@use std::path::PathBuf;-use crate::memory::conversations as store;+use crate::threads::store as store;use super::{ConversationMessage, ConversationMessagePatch, ConversationPurgeStats, ConversationStore,diff --git a/crates/openhuman-core/src/memory/conversations/blocking_tests.rs b/crates/openhuman-core/src/threads/store/blocking_tests.rssimilarity index 100%rename from crates/openhuman-core/src/memory/conversations/blocking_tests.rsrename to crates/openhuman-core/src/threads/store/blocking_tests.rsdiff --git a/crates/openhuman-core/src/memory/conversations/bus.rs b/crates/openhuman-core/src/threads/store/bus.rssimilarity index 100%rename from crates/openhuman-core/src/memory/conversations/bus.rsrename to crates/openhuman-core/src/threads/store/bus.rsdiff --git a/crates/openhuman-core/src/memory/conversations/bus_tests.rs b/crates/openhuman-core/src/threads/store/bus_tests.rssimilarity index 95%rename from crates/openhuman-core/src/memory/conversations/bus_tests.rsrename to crates/openhuman-core/src/threads/store/bus_tests.rsindex 8687eea3c1..52d29fed71 100644--- a/crates/openhuman-core/src/memory/conversations/bus_tests.rs+++ b/crates/openhuman-core/src/threads/store/bus_tests.rs@@ -62,12 +62,12 @@ async fn persists_inbound_and_processed_turns_into_workspace_thread() {.await;let threads =- crate::memory::conversations::list_threads(temp.path().to_path_buf()).expect("threads");+ crate::threads::store::list_threads(temp.path().to_path_buf()).expect("threads");assert_eq!(threads.len(), 1);assert_eq!(threads[0].id, "channel:slack_alice_general_thread:thread-1");let messages =- crate::memory::conversations::get_messages(temp.path().to_path_buf(), &threads[0].id)+ crate::threads::store::get_messages(temp.path().to_path_buf(), &threads[0].id).expect("messages");assert_eq!(messages.len(), 2);assert_eq!(messages[0].id, "user:m1");@@ -115,7 +115,7 @@ async fn telegram_thread_ts_does_not_split_persisted_thread() {.await;let threads =- crate::memory::conversations::list_threads(temp.path().to_path_buf()).expect("threads");+ crate::threads::store::list_threads(temp.path().to_path_buf()).expect("threads");assert_eq!(threads.len(), 1);assert_eq!(threads[0].id, "channel:telegram_alice_chat-1");}@@ -139,7 +139,7 @@ async fn duplicate_events_do_not_append_duplicate_messages() {subscriber.handle(&event).await;subscriber.handle(&event).await;- let messages = crate::memory::conversations::get_messages(+ let messages = crate::threads::store::get_messages(temp.path().to_path_buf(),"channel:discord_alice_room-1",)@@ -196,7 +196,7 @@ async fn received_matching_workspace_is_persisted() {}).await;- let messages = crate::memory::conversations::get_messages(+ let messages = crate::threads::store::get_messages(temp.path().to_path_buf(),"channel:slack_bob_dev",)@@ -228,7 +228,7 @@ async fn received_stale_workspace_is_dropped() {// No thread should have been created in temp (the subscriber's workspace).let threads =- crate::memory::conversations::list_threads(temp.path().to_path_buf()).expect("threads");+ crate::threads::store::list_threads(temp.path().to_path_buf()).expect("threads");assert!(threads.is_empty(),"stale-workspace event must not create a thread"@@ -273,7 +273,7 @@ async fn processed_matching_workspace_is_appended() {}).await;- let messages = crate::memory::conversations::get_messages(+ let messages = crate::threads::store::get_messages(temp.path().to_path_buf(),"channel:slack_alice_general",)@@ -323,7 +323,7 @@ async fn processed_stale_workspace_is_dropped() {}).await;- let messages = crate::memory::conversations::get_messages(+ let messages = crate::threads::store::get_messages(temp.path().to_path_buf(),"channel:slack_alice_general",)@@ -395,7 +395,7 @@ async fn workspace_switch_mid_conversation() {}).await;- let messages = crate::memory::conversations::get_messages(+ let messages = crate::threads::store::get_messages(workspace_a.path().to_path_buf(),"channel:telegram_alice_chat-1",)@@ -436,7 +436,7 @@ async fn multiple_stale_workspaces_all_dropped() {}let threads =- crate::memory::conversations::list_threads(temp.path().to_path_buf()).expect("threads");+ crate::threads::store::list_threads(temp.path().to_path_buf()).expect("threads");assert!(threads.is_empty(),"no events from wrong workspaces should create a thread"@@ -479,7 +479,7 @@ async fn correct_workspace_after_stale_events() {}).await;- let messages = crate::memory::conversations::get_messages(+ let messages = crate::threads::store::get_messages(temp.path().to_path_buf(),"channel:slack_alice_general",)diff --git a/crates/openhuman-core/src/memory/conversations/mod.rs b/crates/openhuman-core/src/threads/store/mod.rssimilarity index 96%rename from crates/openhuman-core/src/memory/conversations/mod.rsrename to crates/openhuman-core/src/threads/store/mod.rsindex 21f95e2283..14b0a6b771 100644--- a/crates/openhuman-core/src/memory/conversations/mod.rs+++ b/crates/openhuman-core/src/threads/store/mod.rs@@ -12,7 +12,7 @@//!//! The store itself (on-disk format, locking, warm index cache, CRUD and//! search) is the `tinymemory-conversations` crate, re-exported below so-//! callers keep naming `crate::memory::conversations::{...}`. What stays here+//! callers keep naming `crate::threads::store::{...}`. What stays here//! is host wiring://!//! - [`blocking`] - `spawn_blocking` wrappers. Every store entry point is