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
Merge remote-tracking branch 'upstream/main' into green-all-tests-followup-next
Steven Enamakel8923afcc071c
diff --cc crates/openhuman-core/src/agent/todos/ops.rsindex 7bb005e1c8,229865d335..f7496fafc3--- a/crates/openhuman-core/src/agent/todos/ops.rs+++ b/crates/openhuman-core/src/agent/todos/ops.rs@@@ -2,26 -2,18 +2,25 @@@//!//! A todo list is scoped to one agent session ([`TodoScope::Session`]) or,//! when a tool runs with no session at all, to a scratch list-//! ([`TodoScope::Scratch`]). Both live in the one in-process [`store`];-//! validation, the whole-list write and rendering are TinyAgents'. This file-//! only maps a scope onto a store key. `clear` is for tests and cleanup.+//! ([`TodoScope::Scratch`]). Both live in the one in-process store; the+//! normalisation and rendering are TinyAgents'. The whole-list `replace` is+//! the only write the `todo` tool needs; `clear` is for tests and cleanup.-use std::sync::Arc;--use tinyagents_graph::todos::session_list;-use tinyagents_harness::store::Store;+use serde::{Deserialize, Serialize};+use tinyagents_graph::todos::store as todos;use crate::agent::tinyagents::todos::{session_todos_store, SCRATCH_SESSION_ID};- use crate::agent::todos::types::normalize_cards_for_wire;pub use crate::agent::todos::types::{TaskBoardCard, TaskCardStatus};-pub use tinyagents_graph::todos::TodosSnapshot;++pub use tinyagents_graph::todos::{parse_status, render_markdown};++#[derive(Debug, Clone, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub struct TodosSnapshot {+ pub session_id: Option<String>,+ pub cards: Vec<TaskBoardCard>,+ pub markdown: String,+}#[derive(Debug, Clone, PartialEq, Eq)]pub enum TodoScope {@@@ -42,21 -35,9 +41,20 @@@ impl TodoScope}}-/// The process-wide store every session's list lives in.-pub fn store() -> Arc<dyn Store> {- session_todos_store()+fn snapshot(scope: &TodoScope, value: tinyagents_graph::todos::TodosSnapshot) -> TodosSnapshot {+ TodosSnapshot {+ session_id: scope.session_id().map(str::to_owned),+ cards: value.cards,+ markdown: value.markdown,+ }+}++fn finish(+ scope: &TodoScope,+ result: tinyagents_harness::error::Result<tinyagents_graph::todos::TodosSnapshot>,+) -> Result<TodosSnapshot, String> {- let mut value = result.map_err(|error| error.to_string())?;- normalize_cards_for_wire(&mut value.cards);++ let value = result.map_err(|error| error.to_string())?;+ Ok(snapshot(scope, value))}pub async fn replace(