Skip to content

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

chore(rust): add missing use statements across multiple files

Steven Enamakel1f1f477f5f2c
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript/jsonl.rs b/crates/openhuman-core/src/agent/harness/session/transcript/jsonl.rs
index 4b677ce8a3..f76fb88db1 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript/jsonl.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript/jsonl.rs
@@ -1,4 +1,5 @@
use turn_usage_from_line;
+use crate::agent::harness::session::transcript::metadata::turn_usage_from_metadata;
//! JSONL line shapes (`_meta`, message, and compaction records) and the
//! conversions between them and the public [`ChatMessage`] /
//! [`TranscriptMeta`] / [`DisplayMessage`] types.
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript_roundtrip_and_paths_tests.rs b/crates/openhuman-core/src/agent/harness/session/transcript_roundtrip_and_paths_tests.rs
index eecbb83140..f9525538b0 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript_roundtrip_and_paths_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript_roundtrip_and_paths_tests.rs
@@ -2,6 +2,7 @@ use super::*;
use resolve_keyed_transcript_path;
use std::fs;
+use std::path::PathBuf;
#[test]
fn intermediate_assistant_reasoning_is_lifted_without_turn_usage() {
let mut message = ChatMessage::assistant("I will inspect the repository.");
diff --git a/crates/openhuman-core/src/agent/harness/session/transcript_thread_and_append_tests.rs b/crates/openhuman-core/src/agent/harness/session/transcript_thread_and_append_tests.rs
index 0cb9be3b00..15ef34b9f8 100644
--- a/crates/openhuman-core/src/agent/harness/session/transcript_thread_and_append_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/session/transcript_thread_and_append_tests.rs
@@ -1,6 +1,7 @@
use super::*;
use std::fs;
+use crate::agent::messages::ChatMessage;
// ── find_root_transcript_for_thread: scope isolation ────────────────────────
/// An empty or blank `thread_id` must not match any transcript — the
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
index 122be96981..e0cd56c546 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
@@ -13,6 +13,7 @@ use crate::agent::orchestration::running_subagents::wait::wait;
use crate::agent::tinyagents::orchestration::shared_steering_registry;
use std::sync::Arc;
use std::time::Duration;
+use std::path::PathBuf;
openhuman_steering_handle, OrchestrationTaskStatus, SteeringHandle, SteeringPolicy,
SteeringRunClass,
};
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
index 4c91eab85f..3a4d5a8aef 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
@@ -3,6 +3,7 @@ use super::artifact_index_toc::NO_WINDOW_ALLOWANCE;
use super::message_trim::{estimate_message_tokens, estimate_text_tokens, IMAGE_MARKER_TOKEN_COST};
use super::repeated_failure::{is_body_level_failure, user_actionable_escalation};
use super::tool_output::{
+use crate::agent::tinyagents::middleware::tool_output::ToolOutputMiddleware;
is_compaction_exempt, is_truncation_exempt, COMPACTION_EXEMPT_TOOLS, SAMPLING_TOOLS,
};
use super::turn_context::DEFAULT_TOOL_RESULT_BUDGET_BYTES;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs
index 151bacb387..18c010f495 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs
@@ -1,3 +1,4 @@
+use crate::agent::tinyagents::middleware::tool_output::ToolOutputMiddleware;
// Imported here rather than in the middleware module since #6014: the
// production install site moved to `assemble_turn_harness` (which names it
// fully-qualified), so the module itself no longer references the type.
diff --git a/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs b/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs
index 54bc026c3b..3a34d59962 100644
--- a/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs
+++ b/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs
@@ -1,5 +1,6 @@
use super::*;
+use crate::flows::builder_tools::catalog_search::search_catalog;
// ── revise_workflow ──────────────────────────────────────────────────────────
#[tokio::test]
diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
index 05651a143a..0fa1c0f323 100644
--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs
@@ -1,5 +1,6 @@
use super::*;
+use crate::inference::provider::factory::cloud_slug::try_create_cloud_slug_chat_model_from_string_with_native_tools;
#[test]
fn enforce_local_only_inference_errors_on_external_when_local_only() {
// Drive the live-policy-backed wrapper: install a LocalOnly policy, then
diff --git a/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs b/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs
index 2f68870712..0b92958065 100644
--- a/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs
+++ b/crates/openhuman-core/src/memory/sync/composio/bus_tests.rs
@@ -1,6 +1,7 @@
use crate::core::events::DomainEvent;
use crate::memory::sync::composio::bus::trigger_subscriber::TRIAGE_DISABLED_ENV;
use crate::memory::sync::composio::bus::trigger_subscriber::triage_disabled;
+use crate::memory::sync::composio::bus::connection_created_subscriber::WaitError;
//! Unit tests for the composio connection-created event handler's gating.
use super::toolkit_is_memory_source_registrable;
diff --git a/crates/openhuman-core/src/modules/memory_tests.rs b/crates/openhuman-core/src/modules/memory_tests.rs
index d90b7e4c31..4200d74060 100644
--- a/crates/openhuman-core/src/modules/memory_tests.rs
+++ b/crates/openhuman-core/src/modules/memory_tests.rs
@@ -1,4 +1,5 @@
use crate::modules::memory::capabilities::capabilities_for;
+use crate::modules::memory::capabilities::ARTIFACT_CAPABILITIES_PIN;
//! Tests for the memory module client.
//!
//! Nothing here loads a module. What is testable without one is what decides a
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop/dispatch.rs b/crates/openhuman-core/src/platform/socket/ws_loop/dispatch.rs
index e76c828b89..2f3be28591 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop/dispatch.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop/dispatch.rs
@@ -1,5 +1,6 @@
use crate::platform::socket::manager::emit_state_change;
use crate::platform::socket::medulla::workflows;
+use crate::platform::socket::types::ConnectionStatus;
//! Incoming-message dispatch: Engine.IO framing and Socket.IO packet/ack
//! parsing.
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_dispatch_and_redirect_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_dispatch_and_redirect_tests.rs
index d0110251f8..32b988a379 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_dispatch_and_redirect_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_dispatch_and_redirect_tests.rs
@@ -1,6 +1,7 @@
use super::*;
use std::sync::Arc;
+use crate::platform::socket::types::ConnectionStatus;
// ── Redirect resolution (the real fix for OPENHUMAN-TAURI-9X) ──
#[test]
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs
index bdfe63d4f1..bde37669c4 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_reconnect_tests.rs
@@ -4,6 +4,7 @@ use crate::platform::socket::token_provider::TokenProvider;
use std::sync::Arc;
use tokio::sync::mpsc;
use tokio_tungstenite::tungstenite::Error as WsError;
+use crate::platform::socket::types::ConnectionStatus;
/// Driver-level proof: when the configured URL responds with a 301 pointing
/// at a working Engine.IO server, `ws_loop` follows the redirect, completes
/// the handshake, and records a one-shot warning in `SharedState.error` so
diff --git a/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs b/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
index 433524735d..aa84198a93 100644
--- a/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
+++ b/crates/openhuman-core/src/platform/socket/ws_loop_tests.rs
@@ -9,6 +9,7 @@ use crate::platform::socket::manager::SharedState;
use std::sync::Arc;
use tokio::sync::mpsc;
use tokio_tungstenite::tungstenite::{Error as WsError, Message as WsMessage};
+use crate::platform::socket::types::ConnectionStatus;
fn make_shared() -> Arc<SharedState> {
Arc::new(SharedState {
webhook_router: RwLock::new(None),