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
chore: bump tinymcp to 0.9.0 and refresh formatting
Steven Enamakel9ec9bf761db8
diff --git a/Cargo.lock b/Cargo.lockindex ada5be5561..03fafe5520 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -7074,7 +7074,7 @@ dependencies = [[[package]]name = "tinymcp"-version = "0.8.1"+version = "0.9.0"dependencies = ["anyhow","async-trait",@@ -7103,7 +7103,7 @@ dependencies = [[[package]]name = "tinymcp-bus"-version = "0.8.1"+version = "0.9.0"dependencies = ["schemars","serde",diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex bfba85659f..170051d427 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -175,7 +175,9 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {.map(|spec| spec.name.clone()).collect();ensure_snapshot_tools_are_executable(- &visible_tool_names, &tools, &synthesized_tools,+ &visible_tool_names,+ &tools,+ &synthesized_tools,&request.run_context.data.recorded_tool_names,)?;// The harness must speak the dialect this session's prompt wasdiff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rsindex 1fea0954a8..cd44eb3b89 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs@@ -71,9 +71,16 @@ impl OpenHumanSessionHost {// Persisted declarations are historical facts, while the hook still// supplies the only executable sources and current policy.options.run_context.data.recorded_tool_names = std::sync::Arc::new(- self.runtime_session.as_ref()+ self.runtime_session+ .as_ref().and_then(|runtime| runtime.recorded_tools())- .map(|snapshot| snapshot.specs().iter().map(|spec| spec.name.clone()).collect())+ .map(|snapshot| {+ snapshot+ .specs()+ .iter()+ .map(|spec| spec.name.clone())+ .collect()+ }).unwrap_or_default(),);let agent_id = self.agent_definition_id.clone();diff --git a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rsindex 85b8961690..46414b12d3 100644--- a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs@@ -604,19 +604,28 @@ fn resumed_thread_with_retired_podcast_tool_remains_usable() {struct ArchivedAudioTool;#[async_trait::async_trait]impl tinytools::Tool for ArchivedAudioTool {- fn name(&self) -> &str { RETIRED }- fn description(&self) -> &str { "Archived audio generation" }- fn parameters_schema(&self) -> Value { json!({"type": "object"}) }+ fn name(&self) -> &str {+ RETIRED+ }+ fn description(&self) -> &str {+ "Archived audio generation"+ }+ fn parameters_schema(&self) -> Value {+ json!({"type": "object"})+ }async fn execute(&self, _: Value) -> anyhow::Result<tinytools::ToolResult> {Ok(tinytools::ToolResult::success("historical audio artifact"))}}let root = tempfile::tempdir().expect("tempdir");let workspace = root.path().join("workspace");- let first_model = model(vec![- response(Vec::new(), vec![call("old-call", RETIRED, json!({}))]),- ModelResponse::assistant("saved audio reply"),- ], true);+ let first_model = model(+ vec![+ response(Vec::new(), vec![call("old-call", RETIRED, json!({}))]),+ ModelResponse::assistant("saved audio reply"),+ ],+ true,+ );let chat_model: Arc<dyn ChatModel<()>> = first_model;let mut first = crate::agent::SessionHostBuilder::new().chat_model(chat_model)@@ -625,30 +634,61 @@ fn resumed_thread_with_retired_podcast_tool_remains_usable() {.workspace_dir(workspace.clone()).action_dir(root.path().to_path_buf()).tool_dispatcher(Box::new(tinytools_agent::dialect::NativeDialect))- .build().expect("archive host");+ .build()+ .expect("archive host");first.set_thread_id(Some("retired-audio-thread"));- first.turn("save this old conversation").await.expect("archive turn");+ first+ .turn("save this old conversation")+ .await+ .expect("archive turn");let transcript_path = stem_path(root.path(), &first.session_id().expect("session id"));let archived = read_transcript(&transcript_path).expect("saved transcript");- assert!(archived.tools.as_ref().expect("recorded declarations").as_array()- .expect("declarations array").iter().any(|spec| spec["name"] == RETIRED));+ assert!(archived+ .tools+ .as_ref()+ .expect("recorded declarations")+ .as_array()+ .expect("declarations array")+ .iter()+ .any(|spec| spec["name"] == RETIRED));let archived_bytes = std::fs::read(&transcript_path).expect("archived bytes");drop(first);- let next = model(vec![- response(Vec::new(), vec![call("retired-call", RETIRED, json!({}))]),- ModelResponse::assistant("continued without the retired tool"),- ], true);+ let next = model(+ vec![+ response(Vec::new(), vec![call("retired-call", RETIRED, json!({}))]),+ ModelResponse::assistant("continued without the retired tool"),+ ],+ true,+ );let mut resumed = build_host(root.path(), next.clone(), true, "retired-audio-thread");- assert!(resumed.resume_bound_session().await.expect("resume archive"));+ assert!(resumed+ .resume_bound_session()+ .await+ .expect("resume archive"));// An explicit host tool belt is authoritative, while archived declarations// remain intact in the durable transcript.- assert_eq!(std::fs::read(&transcript_path).expect("resumed bytes"), archived_bytes);- resumed.turn("continue this conversation").await.expect("usable resumed turn");+ assert_eq!(+ std::fs::read(&transcript_path).expect("resumed bytes"),+ archived_bytes+ );+ resumed+ .turn("continue this conversation")+ .await+ .expect("usable resumed turn");let requests = serde_json::to_string(&next.requests()).expect("requests");- assert!(requests.contains("historical audio artifact"), "historical tool results replay");- assert!(requests.contains("retired-call"), "missing tool call is returned to the model");- assert!(requests.contains("unknown tool"), "missing executor is a recoverable tool error");+ assert!(+ requests.contains("historical audio artifact"),+ "historical tool results replay"+ );+ assert!(+ requests.contains("retired-call"),+ "missing tool call is returned to the model"+ );+ assert!(+ requests.contains("unknown tool"),+ "missing executor is a recoverable tool error"+ );let config = crate::config::Config {workspace_dir: workspace,@@ -658,11 +698,18 @@ fn resumed_thread_with_retired_podcast_tool_remains_usable() {};let security = Arc::new(crate::security::SecurityPolicy::default());let live = crate::tools::ops::all_tools(- Arc::new(config.clone()), &security, crate::security::AuditLogger::disabled(),- &config.browser, &config.http_request, root.path(),- &std::collections::HashMap::new(), &config,+ Arc::new(config.clone()),+ &security,+ crate::security::AuditLogger::disabled(),+ &config.browser,+ &config.http_request,+ root.path(),+ &std::collections::HashMap::new(),+ &config,+ );+ assert!(+ !live.iter().any(|tool| tool.name() == RETIRED),+ "retired tool must not be restored to the live registry");- assert!(!live.iter().any(|tool| tool.name() == RETIRED),- "retired tool must not be restored to the live registry");});}diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 94fee5515f..0a5094309f 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -222,9 +222,7 @@ fn voice_controllers_registered_when_feature_on() {fn voice_controllers_absent_when_feature_off() {let schemas = all_controller_schemas();assert!(- !schemas- .iter()- .any(|s| s.namespace == "voice"),+ !schemas.iter().any(|s| s.namespace == "voice"),"voice controllers must be compiled out when the `voice` feature is off");}diff --git a/crates/openhuman-core/src/tools/ops_tool_groups.rs b/crates/openhuman-core/src/tools/ops_tool_groups.rsindex 47c9ad0c4b..75837d99f9 100644--- a/crates/openhuman-core/src/tools/ops_tool_groups.rs+++ b/crates/openhuman-core/src/tools/ops_tool_groups.rs@@ -107,10 +107,7 @@ pub(crate) fn tool_group(name: &str) -> crate::core::all::DomainGroup {return DomainGroup::Media;}// Voice family prefixes.- if name.starts_with("voice_")- || name.starts_with("tts_")- || name.starts_with("stt_")- {+ if name.starts_with("voice_") || name.starts_with("tts_") || name.starts_with("stt_") {return DomainGroup::Voice;}// Memory family (harness-kept): the single `memory` tool.diff --git a/scripts/ci/storage-bypass-baseline.json b/scripts/ci/storage-bypass-baseline.jsonindex 2f4aa9b316..c373e0030b 100644--- a/scripts/ci/storage-bypass-baseline.json+++ b/scripts/ci/storage-bypass-baseline.json@@ -468,20 +468,6 @@"text": "if let Err(err) = tokio::fs::write(&output_path, &bytes).await {","occurrence": 1},- {- "rule": "json-write",- "path": "crates/openhuman-core/src/voice/audio_toolkit/ops.rs",- "line": 62,- "text": "tokio::fs::write(&resolved, &bytes)",- "occurrence": 1- },- {- "rule": "json-write",- "path": "crates/openhuman-core/src/voice/audio_toolkit/ops.rs",- "line": 408,- "text": "tokio::fs::write(&resolved_path, email.formatted())",- "occurrence": 1- },{"rule": "json-write","path": "crates/openhuman-core/src/voice/ops.rs",