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: reorder imports and module declarations
Steven Enamakel31bf132e5e32
diff --git a/crates/openhuman-core/src/attachments/provider.rs b/crates/openhuman-core/src/attachments/provider.rsindex 48696148e5..21cbcfecf7 100644--- a/crates/openhuman-core/src/attachments/provider.rs+++ b/crates/openhuman-core/src/attachments/provider.rs@@ -446,13 +446,13 @@ impl ChatModel<()> for AttachmentModel {mod cache;#[path = "provider_fallback.rs"]mod fallback;+#[path = "provider_injected_tests.rs"]+mod injected_tests;#[path = "provider_source.rs"]mod source;#[cfg(test)]#[path = "provider_tests.rs"]mod tests;-#[path = "provider_injected_tests.rs"]-mod injected_tests;#[cfg(test)]#[path = "provider_context_tests.rs"]diff --git a/crates/openhuman-core/src/mcp/ui/tools.rs b/crates/openhuman-core/src/mcp/ui/tools.rsindex 18d8077529..efba6f68cd 100644--- a/crates/openhuman-core/src/mcp/ui/tools.rs+++ b/crates/openhuman-core/src/mcp/ui/tools.rs@@ -9,12 +9,12 @@use std::path::{Component, Path, PathBuf};use async_trait::async_trait;-use serde_json::{json, Value};+use serde_json::{Value, json};use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolExposure, ToolResult, ToolRunContext};use super::cache::{self, InlineEntry};use super::resolve::{MAX_RESOURCE_BYTES, MAX_STRUCTURED_BYTES};-use super::types::{McpUiPresentation, UiCsp, UiFlavor, UiResource, MCP_APP_MIME, MCP_UI_KIND};+use super::types::{MCP_APP_MIME, MCP_UI_KIND, McpUiPresentation, UiCsp, UiFlavor, UiResource};use tinymcp_bus::ui::extract_links;/// The tool's registered name.@@ -116,8 +116,8 @@ pub async fn read_confined() -> Result<String, String> {ctx.spawn_blocking(move || {use std::io::Read;- let file = crate::security::secure_open::secure_open(&resolved, &root)- .map_err(|error| {+ let file =+ crate::security::secure_open::secure_open(&resolved, &root).map_err(|error| {tracing::debug!(?error, "[mcp_ui] show_ui refused the file open");"the file is not inside the workspace or a skill bundle".to_string()})?;@@ -212,7 +212,7 @@ impl Tool for ShowUiTool {_ => {return Ok(ToolResult::error("show_ui: pass exactly one of `html` or `path`",- ))+ ));}};if html.trim().is_empty() {