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
feat(embed): expose config migrations module
Steven Enamakel78084e257e8c
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsindex df019369ba..4563910fc1 100644--- a/crates/openhuman-embed/src/host_internals.rs+++ b/crates/openhuman-embed/src/host_internals.rs@@ -123,6 +123,9 @@ pub mod config {pub mod ops {pub use openhuman_core::config::ops::{load_config_in, load_config_with_timeout};}+ pub mod migrations {+ pub use openhuman_core::config::migrations::run_pending;+ }pub mod rpc {pub use openhuman_core::config::rpc::load_config_with_timeout;}diff --git a/crates/openhuman-tinyhumans/src/register_tests.rs b/crates/openhuman-tinyhumans/src/register_tests.rsindex e6196e6524..175e97638c 100644--- a/crates/openhuman-tinyhumans/src/register_tests.rs+++ b/crates/openhuman-tinyhumans/src/register_tests.rs@@ -8,3 +8,27 @@ fn register_all_is_idempotent() {register_all(&options);register_all(&options);}++#[tokio::test]+async fn boot_registration_supplies_hosted_model_default_and_normalizer_before_context_exists() {+ let _registry = crate::registry_test_lock();+ register_all(&InstallOptions::default());++ let config = openhuman_embed::__host::config::Config::default();+ assert_eq!(+ config.default_model.as_deref(),+ Some(crate::inference::tiers::MODEL_MANAGED_DEFAULT)+ );++ let mut legacy = openhuman_embed::__host::config::Config::default();+ legacy.default_model = Some("reasoning-v1".to_string());+ let tmp = tempfile::tempdir().unwrap();+ legacy.workspace_dir = tmp.path().join("workspace");+ legacy.config_path = tmp.path().join("config.toml");+ tokio::fs::create_dir_all(&legacy.workspace_dir).await.unwrap();+ openhuman_embed::__host::config::migrations::run_pending(&mut legacy).await;+ assert_eq!(+ legacy.default_model.as_deref(),+ Some(crate::inference::tiers::MODEL_MANAGED_DEFAULT)+ );+}