Skip to content

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

fix(modules): align host adapters with released module contracts

Steven Enamakelf123d4cdbe4a
diff --git a/Cargo.lock b/Cargo.lock
index 7cc9152952..0647aa8fcc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -174,7 +174,7 @@ version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -185,7 +185,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -801,7 +801,7 @@ dependencies = [
"cap-primitives",
"cap-std",
"io-lifetimes 3.0.1",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -818,7 +818,7 @@ dependencies = [
"maybe-owned",
"rustix",
"rustix-linux-procfs",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
"winx",
]
@@ -1119,6 +1119,16 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "command-group"
+version = "5.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a68fa787550392a9d58f44c21a3022cfb3ea3e2458b7f85d3b399d0ceeccf409"
+dependencies = [
+ "nix 0.27.1",
+ "winapi",
+]
+
[[package]]
name = "compact_str"
version = "0.9.1"
@@ -1862,7 +1872,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -2115,7 +2125,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4061,6 +4071,17 @@ dependencies = [
"jni-sys 0.3.1",
]
+[[package]]
+name = "nix"
+version = "0.27.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
+dependencies = [
+ "bitflags 2.13.2",
+ "cfg-if",
+ "libc",
+]
+
[[package]]
name = "nix"
version = "0.29.0"
@@ -4120,7 +4141,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5559,7 +5580,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6104,7 +6125,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6172,7 +6193,7 @@ dependencies = [
"security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6752,7 +6773,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7060,10 +7081,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
- "getrandom 0.3.4",
+ "getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7076,7 +7097,7 @@ dependencies = [
"parking_lot",
"rustix",
"signal-hook",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7551,28 +7572,31 @@ dependencies = [
[[package]]
name = "tinycomputer-accessibility"
-version = "0.10.1"
+version = "0.11.0"
dependencies = [
"arboard",
+ "command-group",
"cpal",
"enigo",
"log",
"serde",
"serde_json",
"thiserror 2.0.20",
+ "tinycomputer-bus",
]
[[package]]
name = "tinycomputer-bus"
-version = "0.10.1"
+version = "0.11.0"
dependencies = [
"serde",
"serde_json",
+ "thiserror 2.0.20",
]
[[package]]
name = "tinyconnectors"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"async-trait",
"chrono",
@@ -7592,7 +7616,7 @@ dependencies = [
[[package]]
name = "tinyconnectors-bus"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"serde",
"serde_json",
@@ -7600,7 +7624,7 @@ dependencies = [
[[package]]
name = "tinyconnectors-sync"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"async-trait",
"serde",
@@ -7611,7 +7635,7 @@ dependencies = [
[[package]]
name = "tinydocs-bus"
-version = "0.1.22"
+version = "0.2.0"
dependencies = [
"serde",
"thiserror 2.0.20",
@@ -7945,7 +7969,7 @@ dependencies = [
[[package]]
name = "tinymcp"
-version = "0.6.0"
+version = "0.7.0"
dependencies = [
"anyhow",
"async-trait",
@@ -7962,6 +7986,7 @@ dependencies = [
"thiserror 2.0.20",
"tinymcp-bus",
"tinytools",
+ "tinytools-std",
"tokio",
"tokio-stream",
"tracing",
@@ -7972,7 +7997,7 @@ dependencies = [
[[package]]
name = "tinymcp-bus"
-version = "0.6.0"
+version = "0.7.0"
dependencies = [
"schemars",
"serde",
@@ -9506,7 +9531,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index c8458b9963..e73633c377 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,6 +51,7 @@ openhuman-tinyhumans = { path = "crates/openhuman-tinyhumans", default-features
# `Tool` trait. Without this, MCP tools would not satisfy the harness's trait.
tinytools = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools" }
tinytools-agent = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools-agent" }
+tinytools-std = { path = "vendor/tinyagents/vendor/tinytools/crates/tinytools-std" }
[patch."https://github.com/tinyhumansai/tinystoragedrivers"]
# tinyflows names the storage crates by git tag so it can build on its own.
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index d913a103a7..090f909804 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -747,7 +747,7 @@ dependencies = [
"cap-primitives",
"cap-std",
"io-lifetimes 3.0.1",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -764,7 +764,7 @@ dependencies = [
"maybe-owned",
"rustix",
"rustix-linux-procfs",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
"winx",
]
@@ -996,6 +996,16 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "command-group"
+version = "5.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a68fa787550392a9d58f44c21a3022cfb3ea3e2458b7f85d3b399d0ceeccf409"
+dependencies = [
+ "nix 0.27.1",
+ "winapi",
+]
+
[[package]]
name = "compression-codecs"
version = "0.4.43"
@@ -1627,7 +1637,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.3",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1946,7 +1956,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3889,7 +3899,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3951,6 +3961,17 @@ version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+[[package]]
+name = "nix"
+version = "0.27.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
+dependencies = [
+ "bitflags 2.13.2",
+ "cfg-if",
+ "libc",
+]
+
[[package]]
name = "nix"
version = "0.29.0"
@@ -4013,7 +4034,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5487,7 +5508,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5928,7 +5949,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5996,7 +6017,7 @@ dependencies = [
"security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6630,7 +6651,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7419,10 +7440,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
- "getrandom 0.3.4",
+ "getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7855,28 +7876,31 @@ dependencies = [
[[package]]
name = "tinycomputer-accessibility"
-version = "0.10.1"
+version = "0.11.0"
dependencies = [
"arboard",
+ "command-group",
"cpal",
"enigo",
"log",
"serde",
"serde_json",
"thiserror 2.0.20",
+ "tinycomputer-bus",
]
[[package]]
name = "tinycomputer-bus"
-version = "0.10.1"
+version = "0.11.0"
dependencies = [
"serde",
"serde_json",
+ "thiserror 2.0.20",
]
[[package]]
name = "tinyconnectors"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"async-trait",
"chrono",
@@ -7896,7 +7920,7 @@ dependencies = [
[[package]]
name = "tinyconnectors-bus"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"serde",
"serde_json",
@@ -7904,7 +7928,7 @@ dependencies = [
[[package]]
name = "tinyconnectors-sync"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"async-trait",
"serde",
@@ -7915,7 +7939,7 @@ dependencies = [
[[package]]
name = "tinydocs-bus"
-version = "0.1.22"
+version = "0.2.0"
dependencies = [
"serde",
"thiserror 2.0.20",
@@ -8249,7 +8273,7 @@ dependencies = [
[[package]]
name = "tinymcp"
-version = "0.6.0"
+version = "0.7.0"
dependencies = [
"anyhow",
"async-trait",
@@ -8266,6 +8290,7 @@ dependencies = [
"thiserror 2.0.20",
"tinymcp-bus",
"tinytools",
+ "tinytools-std",
"tokio",
"tokio-stream",
"tracing",
@@ -8276,7 +8301,7 @@ dependencies = [
[[package]]
name = "tinymcp-bus"
-version = "0.6.0"
+version = "0.7.0"
dependencies = [
"schemars 1.2.2",
"serde",
@@ -8969,7 +8994,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.20",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -9080,7 +9105,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -9722,7 +9747,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.48.0",
+ "windows-sys 0.61.2",
]
[[package]]
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index 7e89463b77..b2065d0360 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -302,6 +302,7 @@ e2e-test-support = ["openhuman-rpc/e2e-test-support"]
# `Tool` trait. Without this, MCP tools would not satisfy the harness's trait.
tinytools = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools" }
tinytools-agent = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools-agent" }
+tinytools-std = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools-std" }
[patch."https://github.com/tinyhumansai/tinyinference"]
# Crates in this world name tinyinference by git rev; without this the shell
diff --git a/crates/openhuman-core/src/mcp/registry/supervisor_events.rs b/crates/openhuman-core/src/mcp/registry/supervisor_events.rs
index 20a8b99afa..186d156bae 100644
--- a/crates/openhuman-core/src/mcp/registry/supervisor_events.rs
+++ b/crates/openhuman-core/src/mcp/registry/supervisor_events.rs
@@ -47,7 +47,7 @@ pub fn domain_events_for(workspace: &Path, events: &[SupervisorEvent]) -> Vec<Do
}
fn domain_event_for(workspace: &Path, event: &SupervisorEvent) -> Option<DomainEvent> {
- let server = event.server();
+ let server = event.server()?;
let server_id = server.server_id.clone();
let qualified_name = server.qualified_name.clone();
let workspace_dir = workspace.to_path_buf();
diff --git a/crates/openhuman-core/src/mcp/registry/supervisor_events_tests.rs b/crates/openhuman-core/src/mcp/registry/supervisor_events_tests.rs
index b1e672ad1b..84f080a862 100644
--- a/crates/openhuman-core/src/mcp/registry/supervisor_events_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/supervisor_events_tests.rs
@@ -20,6 +20,11 @@ fn server() -> ServerRef {
}
}
+#[test]
+fn an_unknown_supervisor_event_has_no_host_domain_event() {
+ assert!(domain_events_for(workspace(), &[SupervisorEvent::Unknown]).is_empty());
+}
+
#[test]
fn an_answered_probe_is_not_an_event() {
// One row per server per minute would bury everything else in the log.
diff --git a/crates/openhuman-core/src/mcp/registry/tools.rs b/crates/openhuman-core/src/mcp/registry/tools.rs
index ba2772dabb..b9e14faab1 100644
--- a/crates/openhuman-core/src/mcp/registry/tools.rs
+++ b/crates/openhuman-core/src/mcp/registry/tools.rs
@@ -27,9 +27,8 @@ use async_trait::async_trait;
use serde_json::Value;
use crate::config::Config;
-use tinymcp_bus::agent_tools::{
- normalize_tool_arguments, AgentToolEffect, AgentToolSpec, RegistryTool,
-};
+use tinymcp::agent_tools::normalize_tool_arguments;
+use tinymcp_bus::agent_tools::{AgentToolEffect, AgentToolSpec, RegistryTool};
use tinytools::{PermissionLevel, Tool, ToolExposure, ToolResult};
use super::ops;
diff --git a/crates/openhuman-core/src/mcp/server/handler.rs b/crates/openhuman-core/src/mcp/server/handler.rs
index df650cda49..864d634338 100644
--- a/crates/openhuman-core/src/mcp/server/handler.rs
+++ b/crates/openhuman-core/src/mcp/server/handler.rs
@@ -17,7 +17,8 @@ use std::sync::Arc;
use futures_util::future::BoxFuture;
use serde_json::{Map, Value};
use tinymcp::{
- McpServerHandler, RequestContext, ResourceSpec, ServerInfo, ServerToolSpec, ToolCallError,
+ McpServerHandler, RequestContext, RequestContextExt, ResourceSpec, ServerInfo, ServerToolSpec,
+ ToolCallError,
};
use super::{resources, subagent_depth, tools};
diff --git a/crates/openhuman-core/src/modules/documents.rs b/crates/openhuman-core/src/modules/documents.rs
index b5cce601ba..dec0f9082c 100644
--- a/crates/openhuman-core/src/modules/documents.rs
+++ b/crates/openhuman-core/src/modules/documents.rs
@@ -387,6 +387,58 @@ pub async fn extract_document(
.map_err(|e| classify(&e))
}
+/// Convert an Office/PDF document to Markdown through the module's held-output contract.
+///
+/// # Errors
+/// Returns a module/transfer failure or rejects non-UTF-8 output.
+pub async fn convert_markdown(
+ config: &Config,
+ document: &[u8],
+ format: tinydocs_bus::DocumentFormat,
+) -> Result<String, DocumentCallError> {
+ let (runtime, record) = ready(config).await?;
+ let proxy = proxy(runtime, record)?;
+ let (destination, path, interface) = address(record)?;
+ let handle: OutputRef = runtime
+ .connection()
+ .call_with_stream(
+ destination,
+ path,
+ interface,
+ member(methods::CONVERT_MARKDOWN)?,
+ |stream| serde_json::json!([format, stream]),
+ document,
+ )
+ .await
+ .map_err(|error| classify(&error))?;
+ String::from_utf8(collect(&proxy, handle).await?)
+ .map_err(|_| DocumentCallError::Failed("converted Markdown was not valid UTF-8".into()))
+}
+
+/// Identify and measure encoded image bytes in the owning TinyDocs module.
+///
+/// # Errors
+/// Returns the module's input rejection or a module/transfer failure.
+pub async fn inspect_image(
+ config: &Config,
+ image: &[u8],
+) -> Result<tinydocs_bus::ImageFacts, DocumentCallError> {
+ let (runtime, record) = ready(config).await?;
+ let (destination, path, interface) = address(record)?;
+ runtime
+ .connection()
+ .call_with_stream(
+ destination,
+ path,
+ interface,
+ member(methods::INSPECT_IMAGE)?,
+ |stream| serde_json::json!([stream]),
+ image,
+ )
+ .await
+ .map_err(|error| classify(&error))
+}
+
/// Render selected PDF pages and collect/release every held PNG output.
pub async fn render_pdf(
config: &Config,
diff --git a/crates/openhuman-core/src/modules/documents_tests.rs b/crates/openhuman-core/src/modules/documents_tests.rs
index f58664de50..105b016d69 100644
--- a/crates/openhuman-core/src/modules/documents_tests.rs
+++ b/crates/openhuman-core/src/modules/documents_tests.rs
@@ -131,6 +131,14 @@ async fn a_disabled_host_reports_unavailable_without_starting_a_broker() {
super::extract_document(&config, b"%PDF-1.4\n", &extraction).await,
Err(DocumentCallError::Unavailable(_))
));
+ assert!(matches!(
+ super::convert_markdown(&config, b"%PDF-1.4\n", tinydocs_bus::DocumentFormat::Pdf).await,
+ Err(DocumentCallError::Unavailable(_))
+ ));
+ assert!(matches!(
+ super::inspect_image(&config, b"image").await,
+ Err(DocumentCallError::Unavailable(_))
+ ));
let rendering = tinydocs_bus::RenderPdfSpec {
pages: vec![1],
max_dimension: 256,
@@ -168,6 +176,8 @@ fn every_member_this_client_calls_is_one_the_contract_declares() {
methods::GENERATE_PPTX,
methods::EXTRACT_TEXT,
methods::EXTRACT_DOCUMENT,
+ methods::CONVERT_MARKDOWN,
+ methods::INSPECT_IMAGE,
methods::RENDER_PDF,
methods::READ_OUTPUT,
methods::RELEASE_OUTPUT,
diff --git a/crates/openhuman-core/src/modules/registry/records_computer.rs b/crates/openhuman-core/src/modules/registry/records_computer.rs
index b49264301f..85f85d2f66 100644
--- a/crates/openhuman-core/src/modules/registry/records_computer.rs
+++ b/crates/openhuman-core/src/modules/registry/records_computer.rs
@@ -8,45 +8,45 @@ pub(crate) const TINYCOMPUTER: ModuleRecord = ModuleRecord {
description: "Permission-aware desktop and browser observation and control",
bus_name: names::INTERFACE,
object_path: names::OBJECT_PATH,
- version: "0.10.1",
- release_url: "https://github.com/tinyhumansai/tinycomputer/releases/tag/v0.10.1",
- // Verbatim from the published tinycomputer v0.10.1 checksum.toml. Linux remains outside
+ version: "0.11.0",
+ release_url: "https://github.com/tinyhumansai/tinycomputer/releases/tag/v0.11.0",
+ // Verbatim from the published tinycomputer v0.11.0 checksum.toml. Linux remains outside
// the initial product surface; this registry admits macOS and Windows.
assets: &[
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinycomputer-0.10.1-macos-26-arm64.tar.gz",
- sha256: "39d1ca3db737c26b4d39d9a22c16da7845735c6349dd012c59533499498af874",
+ archive: "tinycomputer-0.11.0-macos-26-arm64.tar.gz",
+ sha256: "3a8e20a809262be2154c1b7339fed2a627c13c32b2a7b9de52e4d54ced94a994",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinycomputer-0.10.1-macos-26-x86_64.tar.gz",
- sha256: "b135b0885cc8d8eaff250d6fb781f7f9e1c8bdbf86dacf2dc44a291c18a1d9ae",
+ archive: "tinycomputer-0.11.0-macos-26-x86_64.tar.gz",
+ sha256: "a61a79cb63798b844009cc8c69575690d6b2d5a25b637e0b05d559b14ad66c10",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinycomputer-0.10.1-macos-15-arm64.tar.gz",
- sha256: "14d55317c96dc0a89bc66b1248da68096d81f0a39b5a7ab8a286db8bbba55368",
+ archive: "tinycomputer-0.11.0-macos-15-arm64.tar.gz",
+ sha256: "4654e5143f81ac0865df37cc25ab3a003c7fe91edb0942c0d44d6382519d2b05",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinycomputer-0.10.1-macos-15-x86_64.tar.gz",
- sha256: "c8694118a5e8ac11f3785acda9023044c443bf5ae820695fce17b8c72af00fd0",
+ archive: "tinycomputer-0.11.0-macos-15-x86_64.tar.gz",
+ sha256: "38eddc6ed86dbed7c91a36bda3ab8fe7cd46db1dd467a84003bfadf5a54ec2b7",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinycomputer-0.10.1-windows-2025-x86_64.zip",
- sha256: "91315b4cefc5a4d034e43d8d5fa287fbac3cb80a74ada4da842c1569b203516f",
+ archive: "tinycomputer-0.11.0-windows-2025-x86_64.zip",
+ sha256: "b65b7ea2f8f678e5a55920b8d72ae62642e3e03ba44e0db78bc8807e8c62520d",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinycomputer-0.10.1-windows-2022-x86_64.zip",
- sha256: "5907acb6d46e8ea33ef5024bf8f5586d17259db92560990a9e320aae9a5e3bbf",
+ archive: "tinycomputer-0.11.0-windows-2022-x86_64.zip",
+ sha256: "494efca1d2aee2b8371bebc70cb6b791426ada4bc35da0524c7317fd084e9157",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinycomputer-0.10.1-windows-11-arm64.zip",
- sha256: "71a7052fcb5cd70bf2ce8a41996978177882a2a41a2601f746bce519fa1fc642",
+ archive: "tinycomputer-0.11.0-windows-11-arm64.zip",
+ sha256: "df97f97f18ed670e57b8b79775fc9bc4cbe44b59f9320c957f93f89f7eba41c0",
},
],
load: LoadPolicy::Lazy,
diff --git a/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs b/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
index f1e5564e54..bb153a62a8 100644
--- a/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
+++ b/crates/openhuman-core/src/modules/registry/records_docs_wallet.rs
@@ -11,63 +11,63 @@ pub(crate) const TINYDOCS: ModuleRecord = ModuleRecord {
description: "Document synthesis, Office/PDF extraction, and PDF rendering",
bus_name: "ai.tinyhumans.tinydocs.Documents",
object_path: "/ai/tinyhumans/tinydocs/Documents",
- version: "0.1.22",
- release_url: "https://github.com/tinyhumansai/tinydocs/releases/tag/v0.1.22",
+ version: "0.2.0",
+ release_url: "https://github.com/tinyhumansai/tinydocs/releases/tag/v0.2.0",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinydocs-module-0.1.22-ubuntu-24.04-x86_64.tar.gz",
- sha256: "b96f7bd28bed47dd89d17c56dec6d3e98a1053342d0edb54d05487bfa264ab28",
+ archive: "tinydocs-module-0.2.0-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "2db0db216f6bd25e07d66cd13485672dd2edcd84bed9c4f5ee383f603ced7c95",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinydocs-module-0.1.22-ubuntu-24.04-arm64.tar.gz",
- sha256: "b43f1f3c8a7d26020d38eb50ab787271d1540205a30ab421f0bf89421ce719fc",
+ archive: "tinydocs-module-0.2.0-ubuntu-24.04-arm64.tar.gz",
+ sha256: "9d77120bceac02ac607192f12884023c8f10a18baecef18acb3694ecb8b42217",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinydocs-module-0.1.22-ubuntu-22.04-x86_64.tar.gz",
- sha256: "22c07a48c6e1f684bd16f309bd1045ff766c52205c7f4df6edec84aadbe0c59a",
+ archive: "tinydocs-module-0.2.0-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "d3a84df5f375a9774183dd5c1fd344ac373752b54473a6d2fb611c7cab5142d2",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinydocs-module-0.1.22-ubuntu-22.04-arm64.tar.gz",
- sha256: "d58ce05f62e5367d0b1f996e1b52c1e73006fac91b97b0104c562481c60c2c58",
+ archive: "tinydocs-module-0.2.0-ubuntu-22.04-arm64.tar.gz",
+ sha256: "fa094051f186e085db8bdc304215aa5553c0f29c958b78cc337623815e62c39a",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinydocs-module-0.1.22-macos-26-arm64.tar.gz",
- sha256: "56086b08fe560b9281db6ee86123bff213c81a7686a549b5dc3d18a5c1a6fbe4",
+ archive: "tinydocs-module-0.2.0-macos-26-arm64.tar.gz",
+ sha256: "94553eef6029b61ad135d406000e7ccfb03857e68be03fed990d8912b9b1995f",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinydocs-module-0.1.22-macos-26-x86_64.tar.gz",
- sha256: "4ee4ea1c0b4832057d21d975400f08f08ae385a5137ac9335d73dfd5e8cb5dd2",
+ archive: "tinydocs-module-0.2.0-macos-26-x86_64.tar.gz",
+ sha256: "b01bba79f64731534ca93c89d045cfdd8cd8d6ce34249810a99e76735e4e3b59",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinydocs-module-0.1.22-macos-15-arm64.tar.gz",
- sha256: "9f2625614fe342609302a09a303a3fd03f1c0c29e4030b103d8d1b03387f7ce0",
+ archive: "tinydocs-module-0.2.0-macos-15-arm64.tar.gz",
+ sha256: "b92f0b31d942f56784bf9fd6897736595f5c1bf39db34a7115e5d9ddafb0fe72",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinydocs-module-0.1.22-macos-15-x86_64.tar.gz",
- sha256: "04f69b78b2b4c73f407b7faf71dedc1481dd941b0f9a6477159874338b749b13",
+ archive: "tinydocs-module-0.2.0-macos-15-x86_64.tar.gz",
+ sha256: "2f6ff91ff580462a234e7476bb0dc3c6fda975786e2ea920b0a85ece3df760d8",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinydocs-module-0.1.22-windows-2025-x86_64.zip",
- sha256: "27d70441b427bb94b3ceb30500eea0f86f253ba998d68eaaeb4c62be2569ade8",
+ archive: "tinydocs-module-0.2.0-windows-2025-x86_64.zip",
+ sha256: "e799aca9485cff97eceb4a3f8f6882c5e92abb17e639a68d2f774fcf57f035c2",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinydocs-module-0.1.22-windows-2022-x86_64.zip",
- sha256: "47852edcc57f2b6d626f68310f66fee9bf926833a83b52310671998803924c99",
+ archive: "tinydocs-module-0.2.0-windows-2022-x86_64.zip",
+ sha256: "5a271fa3a9c472cdd531d259db92dc04512199ac1cd586fdf31c3af14c3299fb",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinydocs-module-0.1.22-windows-11-arm64.zip",
- sha256: "e6f4b174f52e61f643d6c13fc424718c8dcd41c7cee2826a3ec6c20391413396",
+ archive: "tinydocs-module-0.2.0-windows-11-arm64.zip",
+ sha256: "15541820df3ff69621485846d328495d42d06e7d9b2e73c42eea5af2242a9a4c",
},
],
load: LoadPolicy::Lazy,
diff --git a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs
index f067acaad9..1decab1d99 100644
--- a/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs
+++ b/crates/openhuman-core/src/modules/registry/records_mcp_connectors.rs
@@ -27,63 +27,63 @@ pub(crate) const TINYMCP: ModuleRecord = ModuleRecord {
description: "Model Context Protocol client: transports, registry, and the write-audit log",
bus_name: "ai.tinyhumans.tinymcp.Mcp",
object_path: "/ai/tinyhumans/tinymcp/Mcp",
- version: "0.6.0",
- release_url: "https://github.com/tinyhumansai/tinymcp/releases/tag/v0.6.0",
+ version: "0.7.0",
+ release_url: "https://github.com/tinyhumansai/tinymcp/releases/tag/v0.7.0",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinymcp-0.6.0-ubuntu-24.04-x86_64.tar.gz",
- sha256: "f32a322f180e24cc942e6744f9be9458eebb2e97c1be67795eb51c03b6cecb42",
+ archive: "tinymcp-0.7.0-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "cc38ec12db4f666ce753c3f8cad45c912ecac05b10d29ae6c4402c5a909017ed",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinymcp-0.6.0-ubuntu-24.04-arm64.tar.gz",
- sha256: "cbf0dfc454198b62b6d44830f215abac78100cb211b103984b6b25dbc3eeba41",
+ archive: "tinymcp-0.7.0-ubuntu-24.04-arm64.tar.gz",
+ sha256: "69c3b4815c4e22b09f1beff947a2d0083f573e0944b6a7e74b5df33a3b69f04e",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinymcp-0.6.0-ubuntu-22.04-x86_64.tar.gz",
- sha256: "8ffe34e4fa3d7076cef9dcb755182824bdaaadf6f9182dea098c72e99f5a6081",
+ archive: "tinymcp-0.7.0-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "1e21133f322a73537edf02034adf0d66aeb395430bbca01d3287c6946074be23",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinymcp-0.6.0-ubuntu-22.04-arm64.tar.gz",
- sha256: "7ec7ad75767910696fe472acfd17808cb4b7259b7b3d477cefe133313524bd75",
+ archive: "tinymcp-0.7.0-ubuntu-22.04-arm64.tar.gz",
+ sha256: "596d94927544ae5afb2da40f9a5154582d8c3dc563e4f7c6b49ade018105eff7",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinymcp-0.6.0-macos-26-arm64.tar.gz",
- sha256: "4b0c76f358d80bd7f108fd6c66e8cd881a97271eafa393960360fcd8559a1a7c",
+ archive: "tinymcp-0.7.0-macos-26-arm64.tar.gz",
+ sha256: "ce4b602ebbdea3bf954665d19a24d3f1a00f3b617fa5a5d5c3e2d0bfd756c3a6",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinymcp-0.6.0-macos-26-x86_64.tar.gz",
- sha256: "7934a57ca96aa1525cdd14fa4bd31c47d24b38f957401795569f7f2b92cda761",
+ archive: "tinymcp-0.7.0-macos-26-x86_64.tar.gz",
+ sha256: "08337e35a5d1b55ae0d93f4ab39ebc184e4a7ccc724ac30c854e8d9cdce68b07",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinymcp-0.6.0-macos-15-arm64.tar.gz",
- sha256: "6fd14c70d5ea1bd140d97b8512f754032afe6e794dfcff6b42d4b925769ce9fe",
+ archive: "tinymcp-0.7.0-macos-15-arm64.tar.gz",
+ sha256: "5168dd6bfb9971570ac641ffc1e4ec57a887114e7596c27b3d34037f5cc90be9",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinymcp-0.6.0-macos-15-x86_64.tar.gz",
- sha256: "7430221adcb2d8bcda3c010f600df0fcdbe2acf5854d657562601ad561a3fad4",
+ archive: "tinymcp-0.7.0-macos-15-x86_64.tar.gz",
+ sha256: "303d4c3f63da26925fe699a49ffa4794c703360227032a0f0bf56531cf7cdaa0",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinymcp-0.6.0-windows-2025-x86_64.zip",
- sha256: "fab6aebe81bc57f86e1c024d77ea0a01fa08f28204ff186bb57c3f581520d62c",
+ archive: "tinymcp-0.7.0-windows-2025-x86_64.zip",
+ sha256: "f970135226193e8a16f5fb269edf42d44a5871b085097b41e026c65697d57938",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinymcp-0.6.0-windows-2022-x86_64.zip",
- sha256: "b490eee140645da47b6eb5edf579af92e3889f25e40fb76ace579afd4e506a66",
+ archive: "tinymcp-0.7.0-windows-2022-x86_64.zip",
+ sha256: "57c998febc1798c5d37718ce4d5714adcd5dc5ac38b3cf851100d5d8b1202119",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinymcp-0.6.0-windows-11-arm64.zip",
- sha256: "af8eb16669df093e6dda87a8099e78ce67ec90c8262691249a47b93862480e29",
+ archive: "tinymcp-0.7.0-windows-11-arm64.zip",
+ sha256: "95411bf518fc75976f0ce716d4e31093f0579a888effbb1667228784d42c3df8",
},
],
load: LoadPolicy::Lazy,
@@ -94,63 +94,63 @@ pub(crate) const TINYCONNECTORS: ModuleRecord = ModuleRecord {
description: "OAuth connector integrations: accounts, actions, and triggers",
bus_name: "ai.tinyhumans.connectors.Composio",
object_path: "/ai/tinyhumans/connectors/Composio",
- version: "0.13.2",
- release_url: "https://github.com/tinyhumansai/tinyconnectors/releases/tag/v0.13.2",
+ version: "0.14.0",
+ release_url: "https://github.com/tinyhumansai/tinyconnectors/releases/tag/v0.14.0",
assets: &[
PlatformAsset {
host_key: "ubuntu-24.04-x86_64",
- archive: "tinyconnectors-0.13.2-ubuntu-24.04-x86_64.tar.gz",
- sha256: "aeab20e2cc5fe2849b78150d3df919cb72f1f1d5b0485cae5a07b84b81784ffc",
+ archive: "tinyconnectors-0.14.0-ubuntu-24.04-x86_64.tar.gz",
+ sha256: "836bffa2fe4f935c8504f608e08bdf023326d1285fc977fd37149f2799899478",
},
PlatformAsset {
host_key: "ubuntu-24.04-arm64",
- archive: "tinyconnectors-0.13.2-ubuntu-24.04-arm64.tar.gz",
- sha256: "185b91fe3354bd0346e1281b34e066abc092e52a856e4ed3de9f6359c1e05cce",
+ archive: "tinyconnectors-0.14.0-ubuntu-24.04-arm64.tar.gz",
+ sha256: "b7dbafe019aca715e55444a37b5ff4fc469ef2bcc675dfa987e1de626e70fd22",
},
PlatformAsset {
host_key: "ubuntu-22.04-x86_64",
- archive: "tinyconnectors-0.13.2-ubuntu-22.04-x86_64.tar.gz",
- sha256: "72cdb1705acd7598b66d529808191e4eeeb9c83c672061abfa1c92eec112fc8a",
+ archive: "tinyconnectors-0.14.0-ubuntu-22.04-x86_64.tar.gz",
+ sha256: "a29cb970b385cf8cd40998baa3b6f040447196d019a8d3413d67ca64a6509687",
},
PlatformAsset {
host_key: "ubuntu-22.04-arm64",
- archive: "tinyconnectors-0.13.2-ubuntu-22.04-arm64.tar.gz",
- sha256: "05ac114ba4575407aaca39016339ff334affa88a9652c1f66b4dcc1d59f9e7e9",
+ archive: "tinyconnectors-0.14.0-ubuntu-22.04-arm64.tar.gz",
+ sha256: "e961477b9cac1892beef8b498ba4f44daa4b39b8dddf277ec49496e3869427b5",
},
PlatformAsset {
host_key: "macos-26-arm64",
- archive: "tinyconnectors-0.13.2-macos-26-arm64.tar.gz",
- sha256: "2ad04ea45d9c89f7cedfcc4d7448cae70c5468c7460d9ed8a742376040360700",
+ archive: "tinyconnectors-0.14.0-macos-26-arm64.tar.gz",
+ sha256: "5a24f1eabb0f246a5954e4d6f93cc0feeaed4fe6bfbf1fceb7399078e0e5734a",
},
PlatformAsset {
host_key: "macos-26-x86_64",
- archive: "tinyconnectors-0.13.2-macos-26-x86_64.tar.gz",
- sha256: "24e3ab0cfb624118d7371957341661f6e23b1c8379129257c6365395101cebfc",
+ archive: "tinyconnectors-0.14.0-macos-26-x86_64.tar.gz",
+ sha256: "5df7dbc74b2f39174e57695c5556ab4c232b775897e7bd534be015ead01ef51b",
},
PlatformAsset {
host_key: "macos-15-arm64",
- archive: "tinyconnectors-0.13.2-macos-15-arm64.tar.gz",
- sha256: "6985646cde86616dc60ad3637867db2b8ea2e722ff9990cc4875dd27e68619b0",
+ archive: "tinyconnectors-0.14.0-macos-15-arm64.tar.gz",
+ sha256: "ea8010163f279f14e25a4ad884b4665e24385c560dd2caf46e8c80220556ba11",
},
PlatformAsset {
host_key: "macos-15-x86_64",
- archive: "tinyconnectors-0.13.2-macos-15-x86_64.tar.gz",
- sha256: "dd47655c4a5ef6344978c6780fb8400490e7c5e251dfb57ff99cd3050309fc08",
+ archive: "tinyconnectors-0.14.0-macos-15-x86_64.tar.gz",
+ sha256: "508e44cc9cd273dcbd2d269295ab0b7009efb1a27d3244ba9adde6b297306db1",
},
PlatformAsset {
host_key: "windows-2025-x86_64",
- archive: "tinyconnectors-0.13.2-windows-2025-x86_64.zip",
- sha256: "0c1e4569fc655425f6a945dba57fc73c0f01dccc80d84ce297f44386b71202fe",
+ archive: "tinyconnectors-0.14.0-windows-2025-x86_64.zip",
+ sha256: "5a5e62e8d11bbdc792c9d8fd2a9b59bcea9add80978457ea0faa7c058cd48546",
},
PlatformAsset {
host_key: "windows-2022-x86_64",
- archive: "tinyconnectors-0.13.2-windows-2022-x86_64.zip",
- sha256: "d0e07c73fce16619c1ff5265dc5f49c5ac8812534ec3b2dfb53edd7419ee1083",
+ archive: "tinyconnectors-0.14.0-windows-2022-x86_64.zip",
+ sha256: "1560ed909f338a5bf1118d644d44e1fbeee5c26461241df9f24630e3f9ba3cbe",
},
PlatformAsset {
host_key: "windows-11-arm64",
- archive: "tinyconnectors-0.13.2-windows-11-arm64.zip",
- sha256: "0ae07bf8dacd998fd0edb9097a6e808c94c16059523ae416b150f0477bd4f9ad",
+ archive: "tinyconnectors-0.14.0-windows-11-arm64.zip",
+ sha256: "0bdfb0424ad62fc93ba66a7d8dd7063a39ae8656b78d2e65f4f1a6425aec3279",
},
],
// Lazy: a user with no connected accounts should not pay to load it, and
diff --git a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs
index a865d63577..5d31e5ba78 100644
--- a/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mcp_server_tools.rs
@@ -22,6 +22,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use serde_json::Value;
use tinymcp::tools::{McpExposure, McpServerTool, McpToolInvoker, McpToolSource, SecretScrubber};
+use tinymcp::McpRemoteToolExt;
use tinytools::{PermissionLevel, Tool, ToolCategory, ToolExposure, ToolResult};
use crate::config::{Config, McpToolExposure};
diff --git a/crates/openhuman-core/src/tools/impl/presentation/mod.rs b/crates/openhuman-core/src/tools/impl/presentation/mod.rs
index d9547675ae..20affa97d3 100644
--- a/crates/openhuman-core/src/tools/impl/presentation/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/presentation/mod.rs
@@ -27,7 +27,6 @@
//! #3026 Files panel, and the orchestrator grounding rule in #3029
//! continue to work without change.
-use crate::tools::implementations::document::format::spec::ImageFormat;
use std::path::PathBuf;
use std::sync::Arc;
use std::time::Duration;
@@ -64,6 +63,41 @@ const GENERATION_TIMEOUT: Duration = Duration::from_secs(30);
/// coordinating with the orchestrator agent definition list.
pub const TOOL_NAME: &str = "generate_presentation";
+#[async_trait]
+trait ImageInspector: Sync {
+ async fn inspect(&self, bytes: &[u8]) -> Result<tinydocs_bus::ImageFacts, String>;
+}
+
+struct ModuleImageInspector<'a> {
+ config: Option<&'a crate::config::Config>,
+}
+
+#[async_trait]
+impl ImageInspector for ModuleImageInspector<'_> {
+ async fn inspect(&self, bytes: &[u8]) -> Result<tinydocs_bus::ImageFacts, String> {
+ let loaded;
+ let config = match self.config {
+ Some(config) => config,
+ None => {
+ loaded = crate::config::ops::load_config_with_timeout()
+ .await
+ .map_err(|error| format!("config unavailable: {error}"))?;
+ &loaded
+ }
+ };
+ crate::modules::documents::ensure_ready(config)
+ .await
+ .map_err(|error| error.to_string())?;
+ tokio::time::timeout(
+ GENERATION_TIMEOUT,
+ crate::modules::documents::inspect_image(config, bytes),
+ )
+ .await
+ .map_err(|_| "image inspection timed out".to_string())?
+ .map_err(|error| error.to_string())
+ }
+}
+
/// One-shot `.pptx` generator. See module docs for the request flow.
pub struct PresentationTool {
workspace_dir: PathBuf,
@@ -406,6 +440,20 @@ impl PresentationTool {
async fn resolve_images(
&self,
input: &GeneratePresentationInput,
+ ) -> (Vec<Vec<ResolvedSlideImage>>, Vec<String>) {
+ self.resolve_images_with_inspector(
+ input,
+ &ModuleImageInspector {
+ config: self.config.as_ref(),
+ },
+ )
+ .await
+ }
+
+ async fn resolve_images_with_inspector(
+ &self,
+ input: &GeneratePresentationInput,
+ inspector: &impl ImageInspector,
) -> (Vec<Vec<ResolvedSlideImage>>, Vec<String>) {
let mut per_slide: Vec<Vec<ResolvedSlideImage>> = Vec::with_capacity(input.slides.len());
let mut warnings: Vec<String> = Vec::new();
@@ -413,7 +461,7 @@ impl PresentationTool {
for (slide_idx, spec) in input.slides.iter().enumerate() {
let mut resolved = Vec::with_capacity(spec.images.len());
for (img_idx, image) in spec.images.iter().enumerate() {
- match self.resolve_one_image(image).await {
+ match self.resolve_one_image(image, inspector).await {
Ok(r) => resolved.push(r),
Err(reason) => {
// 1-based indices in the message (matches how the
@@ -436,7 +484,11 @@ impl PresentationTool {
/// Returns `Err(reason)` (a short human-readable string) when the
/// image cannot be embedded — the caller turns that into a skip
/// warning.
- async fn resolve_one_image(&self, image: &SlideImage) -> Result<ResolvedSlideImage, String> {
+ async fn resolve_one_image(
+ &self,
+ image: &SlideImage,
+ inspector: &impl ImageInspector,
+ ) -> Result<ResolvedSlideImage, String> {
let bytes = match &image.source {
SlideImageSource::Artifact { artifact_id } => {
read_artifact_bytes(&self.workspace_dir, &self.files_dir, artifact_id)
@@ -479,24 +531,13 @@ impl PresentationTool {
));
}
- // Identification and measurement live in `crate::tools::implementations::document::format::spec::image`, which
- // is ungated: a host resolving image bytes has to do this to build a
- // spec, and it must not need the writer to do it. One implementation
- // also means the host and the module cannot disagree about what is
- // embeddable.
- let format = ImageFormat::sniff(&bytes).ok_or_else(|| {
- "unsupported image type (only PNG and JPEG are embeddable)".to_string()
- })?;
-
- let (width_px, height_px) = format
- .dimensions(&bytes)
- .ok_or_else(|| format!("could not read {format} dimensions (corrupt header?)"))?;
+ let facts = inspector.inspect(&bytes).await?;
Ok(ResolvedSlideImage {
bytes,
- format,
- width_px,
- height_px,
+ format: facts.format,
+ width_px: facts.width_px,
+ height_px: facts.height_px,
caption: image.caption.clone(),
})
}
diff --git a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs
index 2722ba2fce..a57d312e70 100644
--- a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs
@@ -273,6 +273,14 @@ async fn execute_embeds_file_image_into_deck() {
#[tokio::test]
async fn execute_skips_unsupported_mime_image_with_warning() {
+ struct UnsupportedImage;
+ #[async_trait]
+ impl ImageInspector for UnsupportedImage {
+ async fn inspect(&self, bytes: &[u8]) -> Result<tinydocs_bus::ImageFacts, String> {
+ assert_eq!(bytes, b"i am plain text, not an image");
+ Err("unsupported image type (only PNG and JPEG are embeddable)".into())
+ }
+ }
let ws = workspace();
let txt_path = ws.path().join("notanimage.txt");
std::fs::write(&txt_path, b"i am plain text, not an image").expect("write txt");
@@ -287,7 +295,9 @@ async fn execute_skips_unsupported_mime_image_with_warning() {
}]
});
let input: GeneratePresentationInput = serde_json::from_value(args).expect("args parse");
- let (resolved, warnings) = tool.resolve_images(&input).await;
+ let (resolved, warnings) = tool
+ .resolve_images_with_inspector(&input, &UnsupportedImage)
+ .await;
// Partial success: the deck still renders, the bad image is reported.
assert!(
resolved.iter().all(Vec::is_empty),
diff --git a/crates/openhuman-core/src/util/sanitize.rs b/crates/openhuman-core/src/util/sanitize.rs
index 52d5c953aa..9b5bb77fdf 100644
--- a/crates/openhuman-core/src/util/sanitize.rs
+++ b/crates/openhuman-core/src/util/sanitize.rs
@@ -1,6 +1,6 @@
//! Sanitization helpers for untrusted text bound for a model's context.
//!
-//! The implementation moved to `tinymcp_bus`, which is where the MCP transports
+//! The implementation is shared through `tinymcp`, which is where the MCP transports
//! apply it to every remote tool description before a caller sees one. Two
//! copies of a security-relevant stripping rule in two repositories would
//! drift, and this one is also used for *skill* descriptions from the
@@ -10,7 +10,7 @@
//! Re-exported under the path this module has always been at, so callers keep
//! their spelling.
-pub use tinymcp_bus::sanitize::{
+pub use tinymcp::sanitize::{
sanitize_for_llm, strip_control_chars, strip_instruction_fences, truncate_utf8_safe,
MAX_DESCRIPTION_BYTES, MAX_TITLE_BYTES,
};
diff --git a/vendor/tinycomputer b/vendor/tinycomputer
index cee0f0b7cc..8f50df63e4 160000
--- a/vendor/tinycomputer
+++ b/vendor/tinycomputer
@@ -1 +1 @@
-Subproject commit cee0f0b7ccafe4df4f0e643ba8ffe80c3f942015
+Subproject commit 8f50df63e46455a86f2b57f295f86ab8569df99e
diff --git a/vendor/tinyconnectors b/vendor/tinyconnectors
index afccaa4c2c..8b35ca5e96 160000
--- a/vendor/tinyconnectors
+++ b/vendor/tinyconnectors
@@ -1 +1 @@
-Subproject commit afccaa4c2c31ee1e51359f7e8e98c9fe879ac417
+Subproject commit 8b35ca5e96b824934b68dc2a7b136776dc17fece
diff --git a/vendor/tinydocs b/vendor/tinydocs
index d5eb283594..f95c461e07 160000
--- a/vendor/tinydocs
+++ b/vendor/tinydocs
@@ -1 +1 @@
-Subproject commit d5eb283594c70b44882a4dafc57973a95a70f584
+Subproject commit f95c461e071233d2a86ecb029318e0e4aa2df46c
diff --git a/vendor/tinymcp b/vendor/tinymcp
index 32d4c78f5f..08f55681e9 160000
--- a/vendor/tinymcp
+++ b/vendor/tinymcp
@@ -1 +1 @@
-Subproject commit 32d4c78f5fba31344440ec1ba9b192acf8c87d40
+Subproject commit 08f55681e9f471fd86ab6e778eb656828bd9d18c