Skip to content

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

feat(deps): add legacy-import feature support

Steven Enamakel478120e2df12
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index 45adb46ef6..bb605e092e 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -97,6 +97,7 @@ openhuman-rpc = { path = "../openhuman-rpc", default-features = false, features
"inbound-queues",
"storage-sqlite",
"secret-file",
+ "legacy-import",
] }
# The widget scheme reduces CSP origins with `tinymcp_bus::ui`'s pure rules.
# The contract, not the module crate: hosts reach modules through `*-bus`.
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 47c5904dd6..acb339947b 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -455,6 +455,7 @@ default = [
"inbound-queues",
"storage-sqlite",
"secret-file",
+ "legacy-import",
]
# Every gate forwards to `openhuman-rpc` alone (chain: rpc -> tinyhumans ->
# embed -> core); `scripts/ci/check-feature-forwarding.mjs` checks the link.
@@ -475,6 +476,7 @@ storage-mongodb = ["openhuman-rpc/storage-mongodb"]
storage-s3 = ["openhuman-rpc/storage-s3"]
storage-file = ["openhuman-rpc/storage-file"]
secret-file = ["openhuman-rpc/secret-file"]
+legacy-import = ["openhuman-rpc/legacy-import"]
media = ["openhuman-rpc/media"]
flows = ["openhuman-rpc/flows"]
skills = ["openhuman-rpc/skills"]
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 72e4a213d8..a50c90d500 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -118,6 +118,9 @@ tinyagents-storage-kit = { path = "../../vendor/tinyagents/crates/tinyagents-sto
# by default: the `storage-*` features below add them.
tinystoragedrivers = { git = "https://github.com/senamakel/tinystoragedrivers", tag = "v2.0.2", default-features = false }
tinystoragedrivers-api = { git = "https://github.com/senamakel/tinystoragedrivers", tag = "v2.0.2" }
+# Legacy source readers use the shared SQLite binding only while the host
+# migration feature is enabled; production storage opens through the facade.
+tinystoragedrivers-connect = { git = "https://github.com/senamakel/tinystoragedrivers", tag = "v2.0.2", features = ["sqlite"], optional = true }
tinystoragedrivers-types = { git = "https://github.com/senamakel/tinystoragedrivers", tag = "v2.0.2" }
# The host config and secret adapters use the driver's established `enc2`
# codec and per-scope key provider while storing through the v2 SecretStore
@@ -550,6 +553,7 @@ langfuse = ["tinyagents-harness/langfuse"]
# it on. OS keychain support belongs to openhuman-rpc's `os-keyring` feature,
# not the core or its storage-driver feature set.
storage-sqlite = ["tinystoragedrivers/sqlite"]
+legacy-import = ["dep:tinystoragedrivers-connect"]
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.
@@ -591,7 +595,7 @@ secret-file = ["tinystoragedrivers-secrets/file"]
# costs no new native builds. It matches `scripts/ci/product-features.txt`. This
# does NOT move the kernel floor: that profile is
# `--no-default-features --features flows` and never reads this list.
-default = ["media", "skills", "flows", "mcp", "channels", "http-server", "scheduler-gate", "file-logging", "modules", "tinymemes", "inbound-queues", "secret-file"]
+default = ["media", "skills", "flows", "mcp", "channels", "http-server", "scheduler-gate", "file-logging", "modules", "tinymemes", "inbound-queues", "secret-file", "legacy-import"]
# The core's domain-owned HTTP surfaces (#5048): the `/v1` OpenAI-compatible
# router (`inference::http`), the `openhuman text-input run` dev server, and the MCP
# Streamable-HTTP transport (`mcp::server::http`, additionally gated by `mcp`).
diff --git a/crates/openhuman-core/src/storage/mod.rs b/crates/openhuman-core/src/storage/mod.rs
index 2fab6f2d95..4111943cbf 100644
--- a/crates/openhuman-core/src/storage/mod.rs
+++ b/crates/openhuman-core/src/storage/mod.rs
@@ -75,7 +75,8 @@ pub use tinystoragedrivers_api::{DocumentStore, Storage};
/// Read-only legacy importers use SQLite to consume historical files. The
/// process storage API remains the `StorageBackend` facade above.
-pub use tinystoragedrivers::sqlite::rusqlite;
+#[cfg(feature = "legacy-import")]
+pub use tinystoragedrivers_connect::sqlite::rusqlite;
/// Typed conveniences for document consumers, including a bounded cursor
/// walk for callers that need every matching record.
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index 8e34e13bf5..eed5e68e5e 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -33,6 +33,7 @@ storage-mongodb = ["openhuman-core/storage-mongodb"]
storage-s3 = ["openhuman-core/storage-s3"]
storage-file = ["openhuman-core/storage-file"]
secret-file = ["openhuman-core/secret-file"]
+legacy-import = ["openhuman-core/legacy-import"]
media = ["openhuman-core/media"]
flows = ["openhuman-core/flows"]
skills = ["openhuman-core/skills"]
diff --git a/crates/openhuman-rpc/Cargo.toml b/crates/openhuman-rpc/Cargo.toml
index deedb7f9c6..ebd95cb677 100644
--- a/crates/openhuman-rpc/Cargo.toml
+++ b/crates/openhuman-rpc/Cargo.toml
@@ -65,6 +65,7 @@ storage-mongodb = ["openhuman-tinyhumans/storage-mongodb"]
storage-s3 = ["openhuman-tinyhumans/storage-s3"]
storage-file = ["openhuman-tinyhumans/storage-file"]
secret-file = ["openhuman-tinyhumans/secret-file"]
+legacy-import = ["openhuman-tinyhumans/legacy-import"]
media = ["openhuman-tinyhumans/media"]
flows = ["openhuman-tinyhumans/flows"]
skills = ["openhuman-tinyhumans/skills"]
diff --git a/crates/openhuman-tinyhumans/Cargo.toml b/crates/openhuman-tinyhumans/Cargo.toml
index 7ef381118c..52af99b802 100644
--- a/crates/openhuman-tinyhumans/Cargo.toml
+++ b/crates/openhuman-tinyhumans/Cargo.toml
@@ -34,6 +34,7 @@ storage-mongodb = ["openhuman-embed/storage-mongodb"]
storage-s3 = ["openhuman-embed/storage-s3"]
storage-file = ["openhuman-embed/storage-file"]
secret-file = ["openhuman-embed/secret-file"]
+legacy-import = ["openhuman-embed/legacy-import"]
media = ["openhuman-embed/media", "dep:tinyinference-image", "dep:tinyinference-video"]
flows = ["openhuman-embed/flows"]
skills = ["openhuman-embed/skills"]
diff --git a/crates/openhuman-tui/Cargo.toml b/crates/openhuman-tui/Cargo.toml
index 83b4141128..b55046954e 100644
--- a/crates/openhuman-tui/Cargo.toml
+++ b/crates/openhuman-tui/Cargo.toml
@@ -30,6 +30,7 @@ default = [
"modules",
"storage-sqlite",
"secret-file",
+ "legacy-import",
]
crash-reporting = ["openhuman-rpc/crash-reporting"]
jev = ["openhuman-rpc/jev"]
@@ -48,6 +49,7 @@ storage-mongodb = ["openhuman-rpc/storage-mongodb"]
storage-s3 = ["openhuman-rpc/storage-s3"]
storage-file = ["openhuman-rpc/storage-file"]
secret-file = ["openhuman-rpc/secret-file"]
+legacy-import = ["openhuman-rpc/legacy-import"]
media = ["openhuman-rpc/media"]
flows = ["openhuman-rpc/flows"]
skills = ["openhuman-rpc/skills"]
diff --git a/scripts/ci/product-features.txt b/scripts/ci/product-features.txt
index 48e6e647e4..8ed07c2105 100644
--- a/scripts/ci/product-features.txt
+++ b/scripts/ci/product-features.txt
@@ -114,6 +114,7 @@ storage-sqlite
# The process keyring's encrypted file backend is independent from storage-file.
secret-file
+legacy-import
# OS keychain providers owned by the RPC host layer.
os-keyring