Skip to content

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

refactor(storage): remove direct storage driver dependencies

Steven Enamakel692cb3f00185
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
index 41bf0afb0e..fbca759b9f 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/transcript.rs
@@ -6,7 +6,6 @@ use std::sync::Arc;
use crate::agent::subagent_host::types::SubagentRunError;
use crate::agent::tinyagents::host::OpenHumanRunContext;
-use crate::storage::StorageBackend;
use tinyagents_session::transcript::{TranscriptLocator, TranscriptMessage, TranscriptTurn};
use super::dispatch::AggregatedUsage;
diff --git a/crates/openhuman-core/src/integrations/composio/file_store_documents.rs b/crates/openhuman-core/src/integrations/composio/file_store_documents.rs
index 572849625e..ad4eed6b52 100644
--- a/crates/openhuman-core/src/integrations/composio/file_store_documents.rs
+++ b/crates/openhuman-core/src/integrations/composio/file_store_documents.rs
@@ -28,7 +28,6 @@ use anyhow::Result;
use serde::Serialize;
use serde::de::DeserializeOwned;
use serde_json::Value;
-use tinystoragedrivers_api::DocumentStore;
use tinystoragedrivers_types::{Capability, Query, StorageError};
use crate::storage::documents::Repo;
diff --git a/crates/openhuman-core/src/storage/state_kv.rs b/crates/openhuman-core/src/storage/state_kv.rs
index 27791c3ca6..3a2a5501b4 100644
--- a/crates/openhuman-core/src/storage/state_kv.rs
+++ b/crates/openhuman-core/src/storage/state_kv.rs
@@ -28,7 +28,6 @@ use serde::{Deserialize, Serialize};
use serde_json::Value;
use sha2::Digest;
use tinystoragedrivers::{CollectionSpec, Cursor, ErrorKind, Precondition, StorageError};
-use tinystoragedrivers_api::KvStore;
use super::documents::Repo;
use super::import_state;
diff --git a/crates/openhuman-core/src/threads/store/backend.rs b/crates/openhuman-core/src/threads/store/backend.rs
index bcdbfaf114..74d56f9da3 100644
--- a/crates/openhuman-core/src/threads/store/backend.rs
+++ b/crates/openhuman-core/src/threads/store/backend.rs
@@ -111,7 +111,7 @@ pub(crate) fn import_legacy_into(
.map_err(|e| format!("{LOG_PREFIX} open the storage scope: {e}"))?;
let repo = Repo::on(backend, &scope, DOMAIN, super::legacy_import::collections)
.map_err(|e| format!("{LOG_PREFIX} {e:#}"))?;
- let store = DriverConversationStore::new(ScopedStorage::new(
+ let _store = DriverConversationStore::new(ScopedStorage::new(
scoped.clone(),
AgentScope::new(scope.as_str()).map_err(|e| format!("{LOG_PREFIX} invalid scope: {e}"))?,
));