Skip to content

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

refactor(threads): re-export run mode helpers from threads root

Steven Enamakel8967df126772
diff --git a/crates/openhuman-core/src/threads/mod.rs b/crates/openhuman-core/src/threads/mod.rs
index 3acfe6e4ba..f30571bae4 100644
--- a/crates/openhuman-core/src/threads/mod.rs
+++ b/crates/openhuman-core/src/threads/mod.rs
@@ -20,6 +20,8 @@ pub(crate) mod worker_thread;
pub use error::{THREAD_NOT_FOUND_KIND, ThreadsError};
pub use rpc_models::*;
+#[doc(hidden)]
+pub use run_mode::{parse_mode_label, set_mode};
pub use schemas::{
all_controller_schemas as all_threads_controller_schemas,
all_registered_controllers as all_threads_registered_controllers,
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index 7c64700a85..71f785a5c6 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -153,7 +153,7 @@ pub mod agent {
}
// rpc: Socket.IO run-mode toggles.
pub mod run_mode {
- pub use openhuman_core::threads::run_mode::{parse_mode_label, set_mode};
+ pub use openhuman_core::threads::{parse_mode_label, set_mode};
}
}
// rpc: shutdown, plan review over Socket.IO, and the session store install.
diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rs
index 0f0bd10bb0..467225c88e 100644
--- a/crates/openhuman-embed/src/turn.rs
+++ b/crates/openhuman-embed/src/turn.rs
@@ -31,7 +31,7 @@
//!
//! Everything else a turn needs rides explicit values handed to the core
//! (`AgentChatEnv`): the **progress** sink
-//! ([`progress_sink`](openhuman_core::agent::progress_sink)) and the host
+//! ([`AgentProgress`](openhuman_core::progress::AgentProgress)) and the host
//! environment (shared budget, delegation depth, cancellation, hooks, tool-belt
//! authority).
//!