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
refactor(subagent_sessions): gate test-only re-exports behind cfg(test)
Steven Enamakelaa68ef0d12c8
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rsindex 2d7dc9c2ac..837b9dbc81 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs@@ -8,12 +8,14 @@ mod tiny_port_epoch;mod types;pub use ops::{- action_root_key, cancel_driver_job_by_task, cancel_driver_job_for_observed_session,- cancel_driver_jobs_for_thread, close_if_current, find_reusable, list_for_parent, mark_failed,+ action_root_key, cancel_driver_job_for_observed_session, cancel_driver_jobs_for_thread,+ close_if_current, find_reusable, list_for_parent, mark_failed,mark_finished, normalize_task_key, resolve_driver_lifecycle_key, resolve_lifecycle_key,reuse_decision, upsert_running, DriverTaskCancellation,};#[cfg(test)]+pub(crate) use ops::cancel_driver_job_by_task;+#[cfg(test)]pub(crate) use tiny_port::OpenHumanTinySubagentSessionStore;pub(crate) use tiny_port::{host_projection, import_terminal_task_for_context, open_for_context};pub(crate) use tiny_port_epoch::{parent_epoch_for_context, set_parent_epoch_for_context};diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rsindex 4960043102..ea1506d42f 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs@@ -14,10 +14,11 @@ mod driver;#[cfg(test)]use driver::record_cancel_reason;pub use driver::{- cancel_driver_job_by_task, cancel_driver_job_for_observed_session,- cancel_driver_jobs_for_thread, mark_driver_pause_cancelled, resolve_driver_lifecycle_key,- resolve_lifecycle_key, DriverTaskCancellation,+ cancel_driver_job_for_observed_session, cancel_driver_jobs_for_thread,+ resolve_driver_lifecycle_key, resolve_lifecycle_key, DriverTaskCancellation,};+#[cfg(test)]+pub(crate) use driver::{cancel_driver_job_by_task, mark_driver_pause_cancelled};pub use tinyagents_orchestration::subagent::normalize_task_key;pub fn action_root_key(path: Option<&Path>) -> Option<String> {diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rsindex 06a83ece12..6640c2c860 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs@@ -11,7 +11,9 @@ use tinyagents_orchestration::subagent::{SubagentSessionStore as TinySessionStore, SubagentSessionUpsert as TinyUpsert,};-use super::tiny_port_epoch::{import_parent_epoch, parent_epoch_from_sidecar};+use super::tiny_port_epoch::import_parent_epoch;+#[cfg(test)]+use super::tiny_port_epoch::parent_epoch_from_sidecar;use super::types::{DurableSubagentSession, DurableSubagentStatus, SubagentSessionSelector};use super::{SubagentSessionStore, SubagentSessionUpsert};