Skip to content

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

feat(storage): add storage-s3 feature flag

Steven Enamakel396a51035f09
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 8e6857d6e3..b67eae32ef 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -396,6 +396,7 @@ web3 = ["openhuman-rpc/web3"]
# Storage drivers for `[storage] url` (see the core `storage` domain).
storage-sqlite = ["openhuman-rpc/storage-sqlite"]
storage-mongodb = ["openhuman-rpc/storage-mongodb"]
+storage-s3 = ["openhuman-rpc/storage-s3"]
storage-file = ["openhuman-rpc/storage-file"]
media = ["openhuman-rpc/media"]
flows = ["openhuman-rpc/flows"]
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 5b72dabfd6..3476eb9997 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -552,6 +552,9 @@ langfuse = ["tinyagents-harness/langfuse"]
# not the core or its storage-driver feature set.
storage-sqlite = ["tinystoragedrivers/sqlite"]
storage-mongodb = ["tinystoragedrivers/mongodb"]
+# `s3://` blob URLs and composite storage. In neither the contributor set nor
+# the product: an object-store client is only for a deployment that wants one.
+storage-s3 = ["tinystoragedrivers/s3"]
# Always on (the dependency enables `file`); kept so existing feature lists
# and the forwarding chain keep resolving.
storage-file = []
diff --git a/crates/openhuman-core/src/core/runtime/features.rs b/crates/openhuman-core/src/core/runtime/features.rs
index 6d251952cd..5b97a2ef8e 100644
--- a/crates/openhuman-core/src/core/runtime/features.rs
+++ b/crates/openhuman-core/src/core/runtime/features.rs
@@ -6,6 +6,7 @@ pub fn compiled_features() -> std::collections::BTreeMap<String, bool> {
("storage-sqlite", cfg!(feature = "storage-sqlite")),
("storage-mongodb", cfg!(feature = "storage-mongodb")),
("storage-file", cfg!(feature = "storage-file")),
+ ("storage-s3", cfg!(feature = "storage-s3")),
("default", cfg!(feature = "default")),
("http-server", cfg!(feature = "http-server")),
("inference", cfg!(feature = "inference")),
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index d293aec9b5..b2da81df57 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -24,6 +24,7 @@ web3 = ["openhuman-core/web3"]
# Storage drivers for `[storage] url` (see the core `storage` domain).
storage-sqlite = ["openhuman-core/storage-sqlite"]
storage-mongodb = ["openhuman-core/storage-mongodb"]
+storage-s3 = ["openhuman-core/storage-s3"]
storage-file = ["openhuman-core/storage-file"]
media = ["openhuman-core/media"]
flows = ["openhuman-core/flows"]
diff --git a/crates/openhuman-rpc/Cargo.toml b/crates/openhuman-rpc/Cargo.toml
index 05c3e48cf9..695ce9526c 100644
--- a/crates/openhuman-rpc/Cargo.toml
+++ b/crates/openhuman-rpc/Cargo.toml
@@ -61,6 +61,7 @@ web3 = ["openhuman-tinyhumans/web3"]
# `session_store::install_for_host`).
storage-sqlite = ["openhuman-tinyhumans/storage-sqlite"]
storage-mongodb = ["openhuman-tinyhumans/storage-mongodb"]
+storage-s3 = ["openhuman-tinyhumans/storage-s3"]
storage-file = ["openhuman-tinyhumans/storage-file"]
media = ["openhuman-tinyhumans/media"]
flows = ["openhuman-tinyhumans/flows"]
diff --git a/crates/openhuman-tinyhumans/Cargo.toml b/crates/openhuman-tinyhumans/Cargo.toml
index 21a2893c8e..180b669b99 100644
--- a/crates/openhuman-tinyhumans/Cargo.toml
+++ b/crates/openhuman-tinyhumans/Cargo.toml
@@ -30,6 +30,7 @@ web3 = ["openhuman-embed/web3"]
# Storage drivers for `[storage] url` (see the core `storage` domain).
storage-sqlite = ["openhuman-embed/storage-sqlite"]
storage-mongodb = ["openhuman-embed/storage-mongodb"]
+storage-s3 = ["openhuman-embed/storage-s3"]
storage-file = ["openhuman-embed/storage-file"]
media = ["openhuman-embed/media"]
flows = ["openhuman-embed/flows"]
diff --git a/crates/openhuman-tui/Cargo.toml b/crates/openhuman-tui/Cargo.toml
index 2a1bee5b2f..3b234a0603 100644
--- a/crates/openhuman-tui/Cargo.toml
+++ b/crates/openhuman-tui/Cargo.toml
@@ -43,6 +43,7 @@ web3 = ["openhuman-rpc/web3"]
# Storage drivers for `[storage] url` / `OPENHUMAN_STORAGE_URL`.
storage-sqlite = ["openhuman-rpc/storage-sqlite"]
storage-mongodb = ["openhuman-rpc/storage-mongodb"]
+storage-s3 = ["openhuman-rpc/storage-s3"]
storage-file = ["openhuman-rpc/storage-file"]
media = ["openhuman-rpc/media"]
flows = ["openhuman-rpc/flows"]