Skip to content

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

refactor(storage): update storage driver imports to api module

Steven Enamakel163a52a4d1e5
diff --git a/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs b/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs
index e49a486894..f3286fa9fa 100644
--- a/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/artifact_offload/mod.rs
@@ -52,7 +52,7 @@ use std::path::Path;
use std::sync::Arc;
use tinyagents_harness::artifacts::ArtifactOffload;
-use tinystoragedrivers::BlobStore;
+use tinystoragedrivers_api::BlobStore;
use crate::security::SecurityPolicy;
diff --git a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs
index 1d2b8b6df5..268d4f1b4b 100644
--- a/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/tool_result_artifacts/mod.rs
@@ -30,7 +30,7 @@ use std::sync::Arc;
use serde_json::Value;
use tinyagents_harness::artifacts::tool_results::{self, ArtifactRead, ToolResultArtifactStore};
-use tinystoragedrivers::BlobStore;
+use tinystoragedrivers_api::BlobStore;
use crate::agent::harness::artifact_offload::{SanitizingRedactor, READ_TOOL};
use tinytools_std::filesystem::FileReadTool;
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs
index 444ff5b411..1c40df1ecb 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs
@@ -136,7 +136,7 @@ fn workspace_of(checkpoint_dir: &Path) -> PathBuf {
/// Legacy migration sources and destination documents in one acting scope.
pub(super) struct LifecycleStore {
kv: StateKv,
- documents: std::sync::Arc<dyn tinystoragedrivers::DocumentStore>,
+ documents: std::sync::Arc<dyn tinystoragedrivers_api::DocumentStore>,
}
impl LifecycleStore {
diff --git a/crates/openhuman-core/src/media/generation/artifact_tool.rs b/crates/openhuman-core/src/media/generation/artifact_tool.rs
index a90c4706f8..a478c7c7a7 100644
--- a/crates/openhuman-core/src/media/generation/artifact_tool.rs
+++ b/crates/openhuman-core/src/media/generation/artifact_tool.rs
@@ -41,6 +41,7 @@ use crate::artifacts::ArtifactKind;
use crate::security::approval::ApprovalChatContext;
use crate::tools::host_extensions::tool_call_id;
use tinyagents_harness::tinyinference_video::ProgressFn;
+use tinystoragedrivers_api::BlobStore;
use super::progress::{video_status_observer, JobStateSlot};
@@ -90,7 +91,7 @@ pub struct MediaArtifactTool<T: Tool> {
workspace_dir: PathBuf,
/// Visible folder each generated file is moved into (#5505).
files_dir: crate::artifacts::FileRoots,
- blobs: Option<Arc<dyn tinystoragedrivers::BlobStore>>,
+ blobs: Option<Arc<dyn BlobStore>>,
allowed_references: Option<super::tools::MediaReferenceAllowlist>,
/// Builds the inner tool for one call around that call's poll observer.
/// Set for the video tool, whose `WaitPolicy::progress` hook is fixed at
@@ -128,7 +129,7 @@ impl<T: Tool> MediaArtifactTool<T> {
/// backing store. This keeps TinyAgents' blob-backed output contract
/// separate from the host's visible Files-folder artifact store.
#[must_use]
- pub fn with_blobs(mut self, blobs: Arc<dyn tinystoragedrivers::BlobStore>) -> Self {
+ pub fn with_blobs(mut self, blobs: Arc<dyn BlobStore>) -> Self {
self.blobs = Some(blobs);
self
}