Skip to content

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

refactor(mirror): replace intra-crate imports with tinyagents_session paths

Steven Enamakeladbaccca0878
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror.rs b/crates/openhuman-core/src/threads/turn_state/mirror.rs
index 464356d3fb..fc72c4b53f 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror.rs
@@ -27,9 +27,9 @@ mod state;
pub use state::TurnStateMirror;
#[cfg(test)]
-use super::store::TurnStateStore;
+use tinyagents_session::turn_state::store::TurnStateStore;
#[cfg(test)]
-use super::types::{
+use tinyagents_session::turn_state::types::{
SubagentToolCall, SubagentTranscriptItem, ToolTimelineStatus, TranscriptItem, TurnLifecycle,
TurnPhase,
};
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/lifecycle.rs b/crates/openhuman-core/src/threads/turn_state/mirror/lifecycle.rs
index 741a0f7fbb..05481cf58d 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror/lifecycle.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror/lifecycle.rs
@@ -2,7 +2,7 @@
//! carry-over into the session transcript.
use super::state::TurnStateMirror;
-use crate::threads::turn_state::types::TurnLifecycle;
+use tinyagents_session::turn_state::types::TurnLifecycle;
pub(super) const MIRROR_LOG_PREFIX: &str = "[threads:turn_state:mirror]";
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
index c7b8861f99..24eee6eb26 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror/observe.rs
@@ -5,7 +5,7 @@ use crate::agent::progress::AgentProgress;
use super::caps::{append_capped_transcript_text, cap_persisted_args, cap_persisted_output};
use super::state::TurnStateMirror;
-use crate::threads::turn_state::types::{
+use tinyagents_session::turn_state::types::{
PersistedToolFailure, SubagentActivity, SubagentToolCall, SubagentTranscriptItem,
ToolTimelineEntry, ToolTimelineStatus, TranscriptItem, TurnLifecycle, TurnPhase,
};
diff --git a/crates/openhuman-core/src/threads/turn_state/mirror/state.rs b/crates/openhuman-core/src/threads/turn_state/mirror/state.rs
index 29d369138d..595d851085 100644
--- a/crates/openhuman-core/src/threads/turn_state/mirror/state.rs
+++ b/crates/openhuman-core/src/threads/turn_state/mirror/state.rs
@@ -1,5 +1,5 @@
-use super::super::store::TurnStateStore;
-use super::super::types::TurnState;
+use tinyagents_session::turn_state::store::TurnStateStore;
+use tinyagents_session::turn_state::types::TurnState;
/// In-process cursor that keeps the authoritative [`TurnState`] in sync
/// with the agent loop and writes it through to a [`TurnStateStore`].