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
fix(core): promote internal helpers to public for cross-crate use
Steven Enamakel6f05f22856f6
diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rsindex ff49886f60..ed19d7684b 100644--- a/crates/openhuman-core/src/core/observability.rs+++ b/crates/openhuman-core/src/core/observability.rs@@ -2672,7 +2672,7 @@ pub(crate) fn report_error_message(// reporting, #3567), so it has no caller in a slim build (#5048). Kept compiled// for the crash-reporting carve-out; the allow keeps the disabled build quiet.#[cfg_attr(not(feature = "http-server"), allow(dead_code))]-pub(crate) fn report_warning_message(+pub fn report_warning_message(message: &str,domain: &str,operation: &str,diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rsindex 551b841045..37865e04df 100644--- a/crates/openhuman-core/src/web_chat/mod.rs+++ b/crates/openhuman-core/src/web_chat/mod.rs@@ -53,6 +53,7 @@ pub(crate) use web_errors::{};// Public API — event bus+pub use progress_bridge::unix_epoch_ms;pub use channel_event::{ChatSuggestion, GuardrailPayload, GuardrailReason, QueueItemPayload, SubagentProgressDetail, SubagentUsagePayload, TurnTimingPayload, TurnUsagePayload, WebChannelEvent};pub use egress_surface::register_egress_surface_subscriber;pub use event_bus::{diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rsindex d1fce51ef0..bc21018e65 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs@@ -149,7 +149,7 @@ fn interim_narration_text(buffer: &str) -> Option<String> {/// `pub(crate)` so `web_chat::event_bus` and `core::socketio` can stamp/// `WebChannelEvent.ts` with the same clock instead of keeping a second/// epoch-ms helper in step by hand.-pub(crate) fn unix_epoch_ms() -> u64 {+pub fn unix_epoch_ms() -> u64 {std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map(|d| d.as_millis() as u64)diff --git a/crates/openhuman-rpc/src/server/http/rpc_handler.rs b/crates/openhuman-rpc/src/server/http/rpc_handler.rsindex 1f6eb22aa4..f9f94b73b4 100644--- a/crates/openhuman-rpc/src/server/http/rpc_handler.rs+++ b/crates/openhuman-rpc/src/server/http/rpc_handler.rs@@ -5,13 +5,12 @@ use axum::http::StatusCode;use axum::response::{IntoResponse, Response};use axum::Json;-use super::super::classify::{classify_failure, FailureDisposition, USAGE_BACKOFF_CLIENT_MESSAGE};use openhuman_core::core::invoke::invoke_method;use openhuman_core::core::types::AppState;-use crate::{- RpcError, RpcFailure, RpcRequest, RpcSuccess, StructuredRpcError, JSONRPC_VERSION,- SERVER_ERROR_CODE,-};+use openhuman_core::core::StructuredRpcError;++use super::super::classify::{classify_failure, FailureDisposition, USAGE_BACKOFF_CLIENT_MESSAGE};+use crate::{RpcError, RpcFailure, RpcRequest, RpcSuccess, JSONRPC_VERSION, SERVER_ERROR_CODE};/// Axum handler for JSON-RPC POST requests.///diff --git a/crates/openhuman-rpc/src/server/socketio.rs b/crates/openhuman-rpc/src/server/socketio.rsindex 484314957c..9d4b80f122 100644--- a/crates/openhuman-rpc/src/server/socketio.rs+++ b/crates/openhuman-rpc/src/server/socketio.rs@@ -1324,7 +1324,7 @@ fn replay_parked_approval(socket: &SocketRef, thread_id: &str) {// Replay is a fresh emit to a newly-joined socket, not a resend of the// original event, so stamp `ts` with "now" (same clock as// `publish_web_channel_event`) rather than leaving it unset.- event.ts = Some(openhuman_core::web_chat::progress_bridge::unix_epoch_ms());+ event.ts = Some(openhuman_core::web_chat::unix_epoch_ms());let Ok(payload) = serde_json::to_value(&event) else {return;};@@ -1355,7 +1355,7 @@ fn replay_parked_plan_review(socket: &SocketRef, thread_id: &str) {row.tool_call_id.as_deref(),row.expires_at.as_deref(),);- event.ts = Some(openhuman_core::web_chat::progress_bridge::unix_epoch_ms());+ event.ts = Some(openhuman_core::web_chat::unix_epoch_ms());let Ok(payload) = serde_json::to_value(&event) else {return;};