Skip to content

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

chore(deps): update dependencies and bootstrap wiring

Steven Enamakel777ad531cb8b
diff --git a/Cargo.lock b/Cargo.lock
index d386a7cd67..16a955edbb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4564,7 +4564,6 @@ dependencies = [
"regex",
"reqwest 0.12.28",
"reqwest 0.13.5",
- "rusqlite",
"rustls",
"schemars",
"sentry",
@@ -4673,7 +4672,6 @@ dependencies = [
"openhuman-tinyhumans",
"parking_lot",
"reqwest 0.12.28",
- "rusqlite",
"sentry",
"serde",
"serde_json",
diff --git a/crates/openhuman-core/src/core/runtime/bootstrap.rs b/crates/openhuman-core/src/core/runtime/bootstrap.rs
index f431f37948..4603baefa2 100644
--- a/crates/openhuman-core/src/core/runtime/bootstrap.rs
+++ b/crates/openhuman-core/src/core/runtime/bootstrap.rs
@@ -32,6 +32,20 @@ pub(crate) async fn bootstrap_core_runtime(
};
let workspace_dir = cfg.workspace_dir.clone();
+ // --- Legacy store import ---------------------------------------------
+ // With a storage backend installed, bring the workspace's per-domain
+ // SQLite files (approvals, devices, notifications, task sources) into it
+ // once, read-only, before anything below opens those stores. A no-op
+ // without a backend; failures are logged and retried at the next boot.
+ for report in crate::storage::import::run(&cfg).await {
+ if let Err(error) = report.outcome {
+ log::warn!(
+ "[runtime] legacy {} store import failed: {error:#}",
+ report.domain
+ );
+ }
+ }
+
// --- Event bus bootstrap ---
// Ensure the global event bus is initialized (no-op if already done by start_channels).
crate::core::bus::init().await.expect("bus init");
diff --git a/crates/openhuman-core/src/storage/import/snapshot.rs b/crates/openhuman-core/src/storage/import/snapshot.rs
index 82434f4ca3..4d451cd8a8 100644
--- a/crates/openhuman-core/src/storage/import/snapshot.rs
+++ b/crates/openhuman-core/src/storage/import/snapshot.rs
@@ -69,7 +69,7 @@ impl Snapshot {
/// When the copy cannot be opened with the SQLite driver or read.
#[cfg(feature = "storage-sqlite")]
pub fn driver_docs(&self, collections: fn() -> Vec<CollectionSpec>) -> Result<Vec<Record>> {
- use tinystoragedrivers::{DocumentStore, DocumentStoreExt, Query, Scope, StorageBackend};
+ use tinystoragedrivers::{DocumentStoreExt, Query, Scope, StorageBackend};
let storage = tinystoragedrivers::sqlite::SqliteStorage::open(&self.db)
.with_context(|| format!("open the copy {}", self.db.display()))?;