The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style(storage): tidy imports and expose migration progress type
Steven Enamakel5bde7312f077
diff --git a/crates/openhuman-core/src/storage/import/layout_db_tests.rs b/crates/openhuman-core/src/storage/import/layout_db_tests.rsindex 8e68aeca44..42bceea376 100644--- a/crates/openhuman-core/src/storage/import/layout_db_tests.rs+++ b/crates/openhuman-core/src/storage/import/layout_db_tests.rs@@ -1,8 +1,8 @@use super::*;#[cfg(feature = "storage-sqlite")]-use crate::storage::layout::test_fixtures::{fixture_docs, v1_profile};-#[cfg(feature = "storage-sqlite")]use crate::storage::layout::legacy;+#[cfg(feature = "storage-sqlite")]+use crate::storage::layout::test_fixtures::{fixture_docs, v1_profile};use crate::storage::layout::Target;use tempfile::TempDir;diff --git a/crates/openhuman-core/src/storage/import/layout_status.rs b/crates/openhuman-core/src/storage/import/layout_status.rsindex 8960c1ccdb..61e96549e9 100644--- a/crates/openhuman-core/src/storage/import/layout_status.rs+++ b/crates/openhuman-core/src/storage/import/layout_status.rs@@ -20,7 +20,7 @@ struct LegacyProgress {done: bool,}-type MigrationProgress = (Vec<(String, u32)>, Option<i64>);+pub(crate) type MigrationProgress = (Vec<(String, u32)>, Option<i64>);/// Reads completed owner versions and the last completion timestamp from a/// historical Tiny Storage Drivers database without opening it through thediff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rsindex 4d04fe5b0c..8a09f63472 100644--- a/crates/openhuman-core/src/storage/local.rs+++ b/crates/openhuman-core/src/storage/local.rs@@ -151,7 +151,7 @@ async fn open_default_backend(_workspace_dir: PathBuf) -> Result<Arc<dyn Storage)})?;return super::open(&url).await.with_context(|| {- format!("open the default storage for {}", _workspace_dir.display())+ format!("open the default storage for {}", _workspace_dir.display())});}}diff --git a/crates/openhuman-core/src/storage/schema_support_tests.rs b/crates/openhuman-core/src/storage/schema_support_tests.rsindex 25795af3ab..528ff5617b 100644--- a/crates/openhuman-core/src/storage/schema_support_tests.rs+++ b/crates/openhuman-core/src/storage/schema_support_tests.rs@@ -75,8 +75,7 @@ fn owner_conversion_preserves_driver_times_and_absolute_expiry() {updated_ms: Some(200),};let converted = map_legacy_collection(vec![source], "legacy", |rows| {- rows- .into_iter()+ rows.into_iter().map(|row| {Ok(LegacyTargetRecord::new("current", row.id, json!({"current":true}))diff --git a/crates/openhuman-core/src/threads/store/legacy_import_tests.rs b/crates/openhuman-core/src/threads/store/legacy_import_tests.rsindex 197e288b63..2a41b57384 100644--- a/crates/openhuman-core/src/threads/store/legacy_import_tests.rs+++ b/crates/openhuman-core/src/threads/store/legacy_import_tests.rs@@ -1,11 +1,11 @@use super::*;+#[cfg(feature = "storage-sqlite")]+use sha2::Digest;use std::path::Path;#[cfg(feature = "storage-sqlite")]use std::sync::Arc;#[cfg(feature = "storage-sqlite")]use tinystoragedrivers::{CollectionSpec, Precondition, WriteOptions};-#[cfg(feature = "storage-sqlite")]-use sha2::Digest;fn hex(id: &str) -> String {id.bytes().map(|b| format!("{b:02x}")).collect()