Skip to content

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

refactor(todos): import todo types directly from tinyagents_graph

Steven Enamakelea56bfa25a7c
diff --git a/crates/openhuman-core/src/agent/todos/ops.rs b/crates/openhuman-core/src/agent/todos/ops.rs
index 1c9bab15dd..a3647dc057 100644
--- a/crates/openhuman-core/src/agent/todos/ops.rs
+++ b/crates/openhuman-core/src/agent/todos/ops.rs
@@ -13,8 +13,8 @@ use tinyagents_graph::todos::store as todos;
use tinyagents_harness::store::Store;
use crate::agent::tinyagents::todos::{session_todos_store, SCRATCH_SESSION_ID};
-pub use tinyagents_graph::todos::{TodoItem, TodoStatus};
-pub use tinyagents_graph::todos::TodosSnapshot;
+use tinyagents_graph::todos::TodoItem;
+use tinyagents_graph::todos::TodosSnapshot;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum TodoScope {
diff --git a/crates/openhuman-core/src/agent/tools/todo_tests.rs b/crates/openhuman-core/src/agent/tools/todo_tests.rs
index 2e443cdc6e..7d7963d204 100644
--- a/crates/openhuman-core/src/agent/tools/todo_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/todo_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use crate::agent::todos::ops::{TodoItem, TodoStatus};
+use tinyagents_graph::todos::{TodoItem, TodoStatus};
use serde_json::{json, Value};
/// Serialize tests that share the process-global scratch store. Same lock
diff --git a/crates/openhuman-core/src/threads/ops/live_state.rs b/crates/openhuman-core/src/threads/ops/live_state.rs
index 024a1c07c6..c08808e58d 100644
--- a/crates/openhuman-core/src/threads/ops/live_state.rs
+++ b/crates/openhuman-core/src/threads/ops/live_state.rs
@@ -31,7 +31,7 @@ pub struct ThreadGoalGetResponse {
/// thread has never written one.
#[derive(Debug, Clone, serde::Serialize)]
pub struct ThreadTodosGetResponse {
- pub todos: Vec<crate::agent::todos::ops::TodoItem>,
+ pub todos: Vec<tinyagents_graph::todos::TodoItem>,
}
/// `threads.goal_get` — read a thread's current goal without waiting for the
diff --git a/crates/openhuman-core/src/threads/ops/live_state_tests.rs b/crates/openhuman-core/src/threads/ops/live_state_tests.rs
index d5aedd5ccb..bfce537a75 100644
--- a/crates/openhuman-core/src/threads/ops/live_state_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/live_state_tests.rs
@@ -7,7 +7,7 @@
//! env var at a fresh tempdir for the duration of the test.
use super::*;
-use crate::agent::todos::ops::{TodoItem, TodoStatus};
+use tinyagents_graph::todos::{TodoItem, TodoStatus};
use crate::config::TEST_ENV_LOCK;
#[test]