Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(core): expose test utilities for turn activity

Steven Enamakel31bf4129005a
diff --git a/crates/openhuman-core/src/threads/store/mod.rs b/crates/openhuman-core/src/threads/store/mod.rs
index c7be4009a2..71f3b7ecdf 100644
--- a/crates/openhuman-core/src/threads/store/mod.rs
+++ b/crates/openhuman-core/src/threads/store/mod.rs
@@ -71,6 +71,7 @@ impl From<types::ConversationPurgeStats> for ConversationPurgeStats {
// Only the hosted-channel relay (`channels`) claims turns.
#[cfg(feature = "channels")]
pub(crate) use bus::claim_channel_turn;
+#[cfg(test)]
pub(crate) use bus::persist_channel_message;
pub use bus::register_conversation_persistence_subscriber;
pub use store::{
diff --git a/crates/openhuman-core/src/web_chat/turn_activity.rs b/crates/openhuman-core/src/web_chat/turn_activity.rs
index ad8559e3d7..b766ad4e3a 100644
--- a/crates/openhuman-core/src/web_chat/turn_activity.rs
+++ b/crates/openhuman-core/src/web_chat/turn_activity.rs
@@ -14,7 +14,9 @@ use std::sync::{Arc, Mutex};
use tinyagents_harness::progress::AgentProgress;
-pub(crate) use crate::agent::turn_policy::{configured_idle_window, parse_idle_window};
+pub(crate) use crate::agent::turn_policy::configured_idle_window;
+#[cfg(test)]
+pub(crate) use crate::agent::turn_policy::parse_idle_window;
#[derive(Debug, Default)]
struct State {