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
chore: files changed crates/openhuman-core/src/cron/schemas_tests.rs,crates/openhuman-core/src/memor
Steven Enamakel90b8f347f3c1
diff --git a/crates/openhuman-core/src/cron/schemas_tests.rs b/crates/openhuman-core/src/cron/schemas_tests.rsindex e87d86b82a..9581f2ecd6 100644--- a/crates/openhuman-core/src/cron/schemas_tests.rs+++ b/crates/openhuman-core/src/cron/schemas_tests.rs@@ -4,7 +4,7 @@ use crate::core::all::{expect_schema_output_names, expect_schema_required_inputs,};// Additional names from the extracted schema handler modules.-use super::handlers::{read_optional_u64, read_required, type_name};+use super::handlers::{read_optional_u64, read_required};use crate::core::TypeSchema;use serde_json::{json, Map, Value};use tempfile::TempDir;diff --git a/crates/openhuman-core/src/memory/brain_tests.rs b/crates/openhuman-core/src/memory/brain_tests.rsindex cfc63ab8ce..1af5b76cf2 100644--- a/crates/openhuman-core/src/memory/brain_tests.rs+++ b/crates/openhuman-core/src/memory/brain_tests.rs@@ -130,7 +130,12 @@ async fn text_is_ingested_searched_counted_and_forgotten_per_source() {"one belief build per source");- let counts = sources(&config, &tinymemory_tools::layout::identity::Identity::root()).await.unwrap();+ let counts = sources(+ &config,+ &tinymemory_tools::layout::identity::Identity::root(),+ )+ .await+ .unwrap();assert_eq!(counts.root, "root");assert_eq!(counts.sources.len(), 2);assert_eq!(counts.unfiled, 0);@@ -192,7 +197,12 @@ async fn ingest_refuses_bad_input() {},] {assert!(matches!(- ingest(&config, &tinymemory_tools::layout::identity::Identity::root(), params).await,+ ingest(+ &config,+ &tinymemory_tools::layout::identity::Identity::root(),+ params+ )+ .await,Err(Error::InvalidRequest(_))));}@@ -323,7 +333,12 @@ async fn ingest_refuses_a_credential_store_a_system_root_traversal_and_null_byteformat!("{}/../guide.md", notes.display()),format!("{}\0.md", tmp.path().join("guide").display()),] {- let result = ingest(&config, &tinymemory_tools::layout::identity::Identity::root(), path_params(path.clone())).await;+ let result = ingest(+ &config,+ &tinymemory_tools::layout::identity::Identity::root(),+ path_params(path.clone()),+ )+ .await;assert!(matches!(result, Err(Error::InvalidRequest(_))),"{path:?}: {result:?}"diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rsindex eb94c8dec4..5cbb777c63 100644--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs@@ -1,7 +1,10 @@use super::*;use crate::cron::client::testing as cron_store;use crate::storage::{MemoryStorage, Scope};+use serde_json::json;use serde_json::Value;+use sha2::Digest;+use std::collections::BTreeMap;use tempfile::TempDir;use tinyflows_drivers::catalog::FlowCatalogDocuments;@@ -41,6 +44,31 @@ fn backend() -> Arc<dyn StorageBackend> {Arc::new(MemoryStorage::new())}+/// Hash the legacy files while ignoring SQLite's transient shared-memory state.+fn tree(root: &Path) -> BTreeMap<String, String> {+ fn walk(dir: &Path, root: &Path, out: &mut BTreeMap<String, String>) {+ for entry in std::fs::read_dir(dir).unwrap() {+ let path = entry.unwrap().path();+ if path.is_dir() {+ walk(&path, root, out);+ } else {+ let bytes = std::fs::read(&path).unwrap();+ let name = path.to_string_lossy();+ if name.ends_with("-shm") || (name.ends_with("-wal") && bytes.is_empty()) {+ continue;+ }+ out.insert(+ path.strip_prefix(root).unwrap().display().to_string(),+ hex::encode(sha2::Sha256::digest(bytes)),+ );+ }+ }+ }+ let mut out = BTreeMap::new();+ walk(root, root, &mut out);+ out+}+fn documents(backend: &Arc<dyn StorageBackend>,scope: &Scope,