Skip to content

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

refactor(storage): update collection spec imports

Steven Enamakel4b8cea5785ef
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rs
index ae1d8b3c12..dd8fe703b5 100644
--- a/crates/openhuman-core/src/config/schema/mod.rs
+++ b/crates/openhuman-core/src/config/schema/mod.rs
@@ -36,7 +36,7 @@ pub use profile_layout::{users_dir, ProfileLayout};
mod identity_cost;
pub(crate) mod load;
pub(crate) use load::config_from_toml_str;
-pub(crate) use load::source::storage_schema::storage_schema as config_storage_schema;
+pub(crate) use load::source::storage_schema::collection_specs as config_storage_collections;
pub use load::{
action_dir_env_override, active_user_marker_path, active_workspace_dir,
active_workspace_dir_cached, active_workspace_snapshot, clear_active_user, default_action_dir,
diff --git a/crates/openhuman-core/src/platform/cost/mod.rs b/crates/openhuman-core/src/platform/cost/mod.rs
index d2c3f13752..606e515048 100644
--- a/crates/openhuman-core/src/platform/cost/mod.rs
+++ b/crates/openhuman-core/src/platform/cost/mod.rs
@@ -9,7 +9,7 @@ pub mod scope;
mod storage_schema;
pub mod tools;
pub mod tracker;
-pub use storage_schema::storage_schema;
+pub(crate) use storage_schema::collection_specs;
mod tracker_documents;
pub mod types;
diff --git a/crates/openhuman-core/src/storage/schema.rs b/crates/openhuman-core/src/storage/schema.rs
index 649edc842b..0de4de5075 100644
--- a/crates/openhuman-core/src/storage/schema.rs
+++ b/crates/openhuman-core/src/storage/schema.rs
@@ -32,18 +32,16 @@ fn declared_collections() -> Vec<CollectionSpec> {
collections.extend(tinyagents_session::port::drivers::collections());
collections.extend(tinyagents_graph::storage::collections());
collections.extend(tinyagents_tasks::storage::collections());
- collections.extend(crate::security::approval::storage_schema::collection_specs());
- collections.extend(crate::security::devices::storage_schema::collection_specs());
- collections.extend(crate::desktop::notifications::storage_schema::collection_specs());
- collections.extend(crate::integrations::task_sources::storage_schema::collection_specs());
- collections.extend(crate::artifacts::storage_schema::collection_specs());
- collections.extend(crate::platform::cost::storage_schema::collection_specs());
- collections.extend(crate::config::schema::load::source::storage_schema::collection_specs());
- collections.extend(crate::profiles::storage_schema::collection_specs());
- collections.extend(crate::threads::store::storage_schema::collection_specs());
- collections.extend(
- crate::agent::orchestration::subagent_sessions::storage_schema::collection_specs(),
- );
+ collections.extend(crate::security::approval::collection_specs());
+ collections.extend(crate::security::devices::collection_specs());
+ collections.extend(crate::desktop::notifications::collection_specs());
+ collections.extend(crate::integrations::task_sources::collection_specs());
+ collections.extend(crate::artifacts::collection_specs());
+ collections.extend(crate::platform::cost::collection_specs());
+ collections.extend(crate::config::schema::config_storage_collections());
+ collections.extend(crate::profiles::collection_specs());
+ collections.extend(crate::threads::store::collection_specs());
+ collections.extend(crate::agent::orchestration::subagent_sessions::collection_specs());
collections.extend(super::agents::collection_specs());
#[cfg(feature = "skills")]