Skip to content

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

refactor(memory): replace tinymemory_core references with tinymemory_api

Steven Enamakel371e55ad4f95
diff --git a/src/openhuman/memory/host.rs b/src/openhuman/memory/host.rs
index f02367f4e6..b7eaf8a4a7 100644
--- a/src/openhuman/memory/host.rs
+++ b/src/openhuman/memory/host.rs
@@ -23,7 +23,7 @@
//!
//! Call [`install_memory_event_sink`] once during startup, before any memory
//! work begins. Until it runs, the core drops its events silently rather than
-//! failing — see `tinymemory_core::events`.
+//! failing — see `tinymemory_api::events`.
use std::path::PathBuf;
use std::sync::Arc;
@@ -194,7 +194,7 @@ impl MemoryEventSink for BusEventSink {
/// Wire [`BusEventSink`] into `tinymemory-core`. Call once during startup,
/// before any memory work begins.
pub fn install_memory_event_sink() {
- tinymemory_core::events::set_event_sink(Arc::new(BusEventSink));
+ tinymemory_api::events::set_event_sink(Arc::new(BusEventSink));
log::debug!("[memory:host] event sink installed");
}
diff --git a/src/openhuman/memory/ops/sync.rs b/src/openhuman/memory/ops/sync.rs
index f2492dad31..e2b465e33f 100644
--- a/src/openhuman/memory/ops/sync.rs
+++ b/src/openhuman/memory/ops/sync.rs
@@ -6,7 +6,7 @@
use crate::openhuman::config::rpc as config_rpc;
use crate::openhuman::memory::sync::composio;
use crate::rpc::RpcOutcome;
-use tinymemory_core::sync_events::{emit_sync_stage, MemorySyncStage, MemorySyncTrigger};
+use tinymemory_api::sync_events::{emit_sync_stage, MemorySyncStage, MemorySyncTrigger};
/// Parameters for `memory_sync_channel`.
#[derive(Debug, serde::Deserialize)]
diff --git a/src/openhuman/memory/sync/composio/bus.rs b/src/openhuman/memory/sync/composio/bus.rs
index 14a5db3e2e..bc5b4211d2 100644
--- a/src/openhuman/memory/sync/composio/bus.rs
+++ b/src/openhuman/memory/sync/composio/bus.rs
@@ -615,8 +615,8 @@ impl EventHandler<DomainEvent> for ComposioConnectionCreatedSubscriber {
.collect();
toolkits.sort();
toolkits.dedup();
- tinymemory_core::events::publish(
- tinymemory_core::events::MemoryEvent::ComposioIntegrationsChanged {
+ tinymemory_api::events::publish(
+ tinymemory_api::events::MemoryEvent::ComposioIntegrationsChanged {
toolkits: toolkits.clone(),
},
);
@@ -918,8 +918,8 @@ impl EventHandler<DomainEvent> for ComposioConfigChangedSubscriber {
.collect();
toolkits.sort();
toolkits.dedup();
- tinymemory_core::events::publish(
- tinymemory_core::events::MemoryEvent::ComposioIntegrationsChanged {
+ tinymemory_api::events::publish(
+ tinymemory_api::events::MemoryEvent::ComposioIntegrationsChanged {
toolkits: toolkits.clone(),
},
);
diff --git a/src/openhuman/memory/sync_events_bridge.rs b/src/openhuman/memory/sync_events_bridge.rs
index ecb4fafd6e..e851e34688 100644
--- a/src/openhuman/memory/sync_events_bridge.rs
+++ b/src/openhuman/memory/sync_events_bridge.rs
@@ -1,6 +1,6 @@
//! The `core::bus` subscriber half of the memory sync-stage stream.
//!
-//! [`tinymemory_core::sync_events`] owns the vocabulary (`MemorySyncTrigger`,
+//! [`tinymemory_api::sync_events`] owns the vocabulary (`MemorySyncTrigger`,
//! `MemorySyncStage`) and the *emit* side, which goes out through the seam's
//! event sink. What lives here is the *subscribe* side: the bridge that
//! translates lower-level ingestion events into the coarse stage stream the
@@ -20,7 +20,7 @@ use tinybus::SubscriptionHandle;
use crate::core::bus::BUS;
use crate::core::events::DomainEvent;
use crate::openhuman::config::Config;
-use tinymemory_core::sync_events::{
+use tinymemory_api::sync_events::{
emit_sync_stage, extract_mem_src_id, MemorySyncStage, MemorySyncTrigger,
};
diff --git a/src/openhuman/memory/sync_pipeline_e2e_tests.rs b/src/openhuman/memory/sync_pipeline_e2e_tests.rs
index 638e1e7897..31ac64f67e 100644
--- a/src/openhuman/memory/sync_pipeline_e2e_tests.rs
+++ b/src/openhuman/memory/sync_pipeline_e2e_tests.rs
@@ -34,7 +34,7 @@ use tinymemory_core::store::chunks::store::{
count_chunks, count_chunks_by_lifecycle_status, CHUNK_STATUS_BUFFERED,
};
use tinymemory_core::store::trees::{store as tree_store, types::TreeKind};
-use tinymemory_core::sync_events::{emit_sync_stage, MemorySyncStage, MemorySyncTrigger};
+use tinymemory_api::sync_events::{emit_sync_stage, MemorySyncStage, MemorySyncTrigger};
// ── helpers ─────────────────────────────────────────────────────────────