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
refactor(attachments): expose secure_open to other core modules
oxoxDevb59360b67cd0
diff --git a/crates/openhuman-core/src/agent/attachments/provider.rs b/crates/openhuman-core/src/agent/attachments/provider.rsindex e62de00338..10e95108ff 100644--- a/crates/openhuman-core/src/agent/attachments/provider.rs+++ b/crates/openhuman-core/src/agent/attachments/provider.rs@@ -400,7 +400,7 @@ fn is_local_reference(source: &str) -> bool {}#[path = "provider_open.rs"]-mod open;+pub(crate) mod open;#[cfg(any(test, windows))]use open::normalize_windows_path_for_comparison;use open::secure_open;diff --git a/crates/openhuman-core/src/agent/attachments/provider_open.rs b/crates/openhuman-core/src/agent/attachments/provider_open.rsindex 80563ca4e3..e40654dd1b 100644--- a/crates/openhuman-core/src/agent/attachments/provider_open.rs+++ b/crates/openhuman-core/src/agent/attachments/provider_open.rs@@ -1,7 +1,7 @@//! Platform-specific descriptor/handle-bound attachment opens.#[cfg(unix)]-pub(super) fn secure_open(+pub(crate) fn secure_open(path: &std::path::Path,root: &std::path::Path,) -> std::io::Result<std::fs::File> {@@ -94,7 +94,7 @@ pub(super) fn secure_open(}#[cfg(windows)]-pub(super) fn secure_open(+pub(crate) fn secure_open(path: &std::path::Path,_root: &std::path::Path,) -> std::io::Result<std::fs::File> {@@ -142,7 +142,7 @@ pub(super) fn normalize_windows_path_for_comparison(value: &str) -> String {}#[cfg(not(any(unix, windows)))]-pub(super) fn secure_open(+pub(crate) fn secure_open(_path: &std::path::Path,_root: &std::path::Path,) -> std::io::Result<std::fs::File> {