Skip to content

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

chore: files changed crates/openhuman-core/src/memory/backfill.rs,crates/openhuman-core/src/memory/l

Steven Enamakel1866720ed77f
diff --git a/crates/openhuman-core/src/memory/backfill.rs b/crates/openhuman-core/src/memory/backfill.rs
index c61b4013a2..8990d6712e 100644
--- a/crates/openhuman-core/src/memory/backfill.rs
+++ b/crates/openhuman-core/src/memory/backfill.rs
@@ -5,7 +5,7 @@
//! source, the state-KV checkpoint, consent, engine binding and task
//! lifetime.
-use std::path::PathBuf;
+use std::path::{Path, PathBuf};
use std::sync::Arc;
use crate::config::Config;
diff --git a/crates/openhuman-core/src/memory/lifecycle/date_hint.rs b/crates/openhuman-core/src/memory/lifecycle/date_hint.rs
index 3af9057dbf..b5200d266e 100644
--- a/crates/openhuman-core/src/memory/lifecycle/date_hint.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/date_hint.rs
@@ -39,7 +39,7 @@ impl DateHintModel for HostDateHintModel {
};
let system = format!(
"{}\n\n{instruction}",
- crate::agent::prompts::current_datetime_line(Some(&zone))
+ crate::prompts::current_datetime_line(Some(&zone))
);
let mut request = tinyinference_llm::model::ModelRequest::new(vec![
tinyinference_llm::message::Message::system(system),
diff --git a/crates/openhuman-core/src/memory/lifecycle/session_hooks.rs b/crates/openhuman-core/src/memory/lifecycle/session_hooks.rs
index 9557d8b07e..b53916edd9 100644
--- a/crates/openhuman-core/src/memory/lifecycle/session_hooks.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/session_hooks.rs
@@ -42,8 +42,10 @@ pub(super) struct PendingMemoryTurn {
/// The provider channel that owns a logged conversation, if this turn came
/// from an external channel. Event-context labels such as `cron`, `voice`, and
/// `mcp_server` are not channel owners.
-fn logged_channel(origin: Option<&crate::agent::turn_origin::AgentTurnOrigin>) -> Option<String> {
- let Some(crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {
+fn logged_channel(
+ origin: Option<&crate::security::turn_origin::AgentTurnOrigin>,
+) -> Option<String> {
+ let Some(crate::security::turn_origin::AgentTurnOrigin::ExternalChannel {
channel,
message_id,
..
diff --git a/crates/openhuman-core/src/memory/lifecycle/session_hooks_tests.rs b/crates/openhuman-core/src/memory/lifecycle/session_hooks_tests.rs
index 5393a869be..96c046a241 100644
--- a/crates/openhuman-core/src/memory/lifecycle/session_hooks_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/session_hooks_tests.rs
@@ -6,8 +6,8 @@ use tinyinference_llm::ToolCall;
fn external_channel_origin(
channel: &str,
message_id: &str,
-) -> crate::agent::turn_origin::AgentTurnOrigin {
- crate::agent::turn_origin::AgentTurnOrigin::ExternalChannel {
+) -> crate::security::turn_origin::AgentTurnOrigin {
+ crate::security::turn_origin::AgentTurnOrigin::ExternalChannel {
channel: channel.into(),
sender: None,
sender_name: None,
@@ -31,7 +31,7 @@ fn logged_channel_keeps_normalized_custom_external_provider_ids() {
#[test]
fn logged_channel_is_none_for_non_channel_origins_none_and_cron_replays() {
- use crate::agent::turn_origin::{AgentTurnOrigin, TrustedAutomationSource};
+ use crate::security::turn_origin::{AgentTurnOrigin, TrustedAutomationSource};
assert_eq!(logged_channel(None), None);
assert_eq!(logged_channel(Some(&AgentTurnOrigin::Cli)), None);
@@ -65,7 +65,7 @@ async fn session_pre_and_post_turn_use_the_external_channel_origin_not_event_lab
prelude: &mut OpenHumanTurnPrelude,
engine: &tinymemory_api::conformance::ReferenceEngine,
thread_id: &str,
- origin: Option<crate::agent::turn_origin::AgentTurnOrigin>,
+ origin: Option<crate::security::turn_origin::AgentTurnOrigin>,
expected_channel: Option<&str>,
) {
prelude.thread_id = Some(thread_id.into());
@@ -174,7 +174,7 @@ async fn session_pre_and_post_turn_use_the_external_channel_origin_not_event_lab
)
.await;
- use crate::agent::turn_origin::{AgentTurnOrigin, TrustedAutomationSource};
+ use crate::security::turn_origin::{AgentTurnOrigin, TrustedAutomationSource};
log_turn(
&mut prelude,
&engine,