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
refactor(memory): name the contract for the value types that already live there\n\nFive import sites reached `GraphRelationRecord`, `MemoryItemKind`,\n`NamespaceMemoryHit`, `NamespaceDocumentInput` and `NamespaceRetrievalContext`\nthrough `tinymemory_core::store`, which re-exports them from the contract\n(`tinycortex-api` is a re-export of `tinymemory-api`). Same items either way —\nthe compiler proves it — but a `tinymemory_core::` path is a compile-time link\nthis host is shedding (#5560), and each one holds the crate in the build.\n\n`helpers.rs` keeps exactly one engine import, and says why: `MemoryClientRef`\nis the engine handle, which has no contract twin yet — that is the last\nbucket of the migration, not this commit.\n\n`TreeKind` is deliberately not repointed: it is tinycortex-owned with no\ncontract home, so its two call sites wait for the upstream batch.\n\n
Shanu239224724491
diff --git a/src/core/memory_cli.rs b/src/core/memory_cli.rsindex 64baf51c90..2ea2ac63f0 100644--- a/src/core/memory_cli.rs+++ b/src/core/memory_cli.rs@@ -15,8 +15,8 @@ use anyhow::Result;use std::io::Read;use std::path::PathBuf;+use crate::openhuman::memory::api::types::NamespaceDocumentInput;use tinymemory_core::ingestion::{MemoryIngestionConfig, MemoryIngestionRequest};-use tinymemory_core::store::NamespaceDocumentInput;/// Entry point for `openhuman memory <subcommand>`.pub fn run_memory_command(args: &[String]) -> Result<()> {diff --git a/src/openhuman/memory/mod.rs b/src/openhuman/memory/mod.rsindex 4a47cbb973..9129da4ec1 100644--- a/src/openhuman/memory/mod.rs+++ b/src/openhuman/memory/mod.rs@@ -138,5 +138,5 @@ pub use tinymemory_core::traits::{// Types that external tests and consumers historically imported from// `memory::*`. The definitions moved to sibling crates during the memory// refactor; these aliases keep the public surface stable.-pub use tinymemory_core::store::types::NamespaceDocumentInput;+pub use crate::openhuman::memory::api::types::NamespaceDocumentInput;pub use tinymemory_core::store::{MemoryClient, UnifiedMemory};diff --git a/src/openhuman/memory/ops/documents.rs b/src/openhuman/memory/ops/documents.rsindex 812a951e90..8b90ed80ac 100644--- a/src/openhuman/memory/ops/documents.rs+++ b/src/openhuman/memory/ops/documents.rs@@ -7,6 +7,7 @@ use serde::{Deserialize, Serialize};use crate::openhuman::memory::api::provider::MemoryProvider;use crate::openhuman::memory::api::types::NamespaceDocumentInput;+use crate::openhuman::memory::api::types::NamespaceRetrievalContext;use crate::openhuman::memory::{ApiEnvelope, DeleteDocumentRequest, DeleteDocumentResponse, EmptyRequest, ListDocumentsRequest,ListDocumentsResponse, ListNamespacesResponse, MemoryIngestionConfig, MemoryIngestionResult,@@ -15,7 +16,6 @@ use crate::openhuman::memory::{RecallMemoriesResponse,};use crate::rpc::RpcOutcome;-use tinymemory_core::store::NamespaceRetrievalContext;use super::envelope::{envelope, error_envelope, memory_counts};use super::guard::active_memory_guard;diff --git a/src/openhuman/memory/ops/helpers.rs b/src/openhuman/memory/ops/helpers.rsindex 268c80a6e9..a1f4b4ccf3 100644--- a/src/openhuman/memory/ops/helpers.rs+++ b/src/openhuman/memory/ops/helpers.rs@@ -13,8 +13,15 @@ use crate::openhuman::memory::{MemoryDocumentSummary, MemoryRetrievalChunk, MemoryRetrievalContext, MemoryRetrievalEntity,MemoryRetrievalRelation, QueryNamespaceRequest,};-use tinymemory_core::store::GraphRelationRecord;-use tinymemory_core::store::{MemoryClientRef, MemoryItemKind, NamespaceMemoryHit};+// Contract vocabulary named at the contract, engine handle named at the+// engine: the three value types resolve to the same items either way+// (tinycortex-api re-exports tinymemory-api), but a `tinymemory_core::` path+// is a compile-time link this host is shedding (#5560), so only the handle —+// which has no contract twin yet — still names the crate.+use crate::openhuman::memory::api::types::{+ GraphRelationRecord, MemoryItemKind, NamespaceMemoryHit,+};+use tinymemory_core::store::MemoryClientRef;// ---------------------------------------------------------------------------// Formatting helpersdiff --git a/src/openhuman/memory/ops/learn.rs b/src/openhuman/memory/ops/learn.rsindex 2b322ec181..9dd89b68a2 100644--- a/src/openhuman/memory/ops/learn.rs+++ b/src/openhuman/memory/ops/learn.rs@@ -168,7 +168,7 @@ mod tests {use tempfile::TempDir;use super::*;- use tinymemory_core::store::NamespaceDocumentInput;+ use crate::openhuman::memory::api::types::NamespaceDocumentInput;fn ensure_memory_client() {crate::openhuman::memory::ops::ensure_shared_memory_client();diff --git a/src/openhuman/memory/ops_tests.rs b/src/openhuman/memory/ops_tests.rsindex 107da92aae..2f65de495e 100644--- a/src/openhuman/memory/ops_tests.rs+++ b/src/openhuman/memory/ops_tests.rs@@ -4,7 +4,7 @@use serde_json::json;use super::{build_retrieval_context, filter_hits_by_document_ids, format_llm_context_message};-use tinymemory_core::store::GraphRelationRecord;+use crate::openhuman::memory::api::types::GraphRelationRecord;use tinymemory_core::store::{MemoryItemKind, NamespaceMemoryHit, RetrievalScoreBreakdown};fn sample_hit() -> NamespaceMemoryHit {