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: files changed crates/openhuman-core/src/agent/schemas.rs,crates/openhuman-core/src/config/sch
Steven Enamakela6f1497c8e2c
diff --git a/crates/openhuman-core/src/agent/schemas.rs b/crates/openhuman-core/src/agent/schemas.rsindex 3223d17e24..0fa6317e14 100644--- a/crates/openhuman-core/src/agent/schemas.rs+++ b/crates/openhuman-core/src/agent/schemas.rs@@ -305,7 +305,7 @@ fn handle_server_status(_ctx: DispatchCtx, _params: Map<String, Value>) -> Contr}fn handle_list_definitions(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let defs = crate::agent::library::list_definition_metadata(&ctx).await?;Ok(serde_json::json!({ "definitions": defs }))})@@ -578,7 +578,7 @@ fn local_catalog_models_from_config(}fn handle_registry_snapshot(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {use tinyagents_registry::{ComponentKind, ComponentMetadata, RegistrySnapshot};let mut components: Vec<ComponentMetadata> = Vec::new();diff --git a/crates/openhuman-core/src/config/schemas/controllers/agent.rs b/crates/openhuman-core/src/config/schemas/controllers/agent.rsindex 968de15297..7c294eed5e 100644--- a/crates/openhuman-core/src/config/schemas/controllers/agent.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/agent.rs@@ -63,7 +63,7 @@ pub(super) fn handle_get_agent_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {log::debug!("[config][rpc] get_agent_settings enter");match config_rpc::get_agent_settings(&ctx).await {Ok(outcome) => {diff --git a/crates/openhuman-core/src/config/schemas/controllers/inference.rs b/crates/openhuman-core/src/config/schemas/controllers/inference.rsindex 3abeb45e6d..c85d5396ea 100644--- a/crates/openhuman-core/src/config/schemas/controllers/inference.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/inference.rs@@ -15,7 +15,7 @@ pub(super) fn handle_get_config(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::load_and_get_config_snapshot(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::load_and_get_config_snapshot(&ctx).await?) })}pub(super) fn handle_get_client_config(@@ -238,7 +238,7 @@ pub(super) fn handle_resolve_api_url(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::load_and_resolve_api_url(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::load_and_resolve_api_url(&ctx).await?) })}pub(super) fn handle_get_runtime_flags(diff --git a/crates/openhuman-core/src/config/schemas/controllers/integrations.rs b/crates/openhuman-core/src/config/schemas/controllers/integrations.rsindex 047e18d7fb..544175915c 100644--- a/crates/openhuman-core/src/config/schemas/controllers/integrations.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/integrations.rs@@ -38,7 +38,7 @@ pub(super) fn handle_get_search_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {log::debug!("[config][rpc] get_search_settings enter");match config_rpc::get_search_settings(&ctx).await {Ok(outcome) => {@@ -87,7 +87,7 @@ pub(super) fn handle_get_composio_trigger_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {log::debug!("[config][rpc] get_composio_trigger_settings enter");match config_rpc::get_composio_trigger_settings(&ctx).await {Ok(outcome) => {diff --git a/crates/openhuman-core/src/config/schemas/controllers/voice.rs b/crates/openhuman-core/src/config/schemas/controllers/voice.rsindex 66860d6bd7..f9d158450d 100644--- a/crates/openhuman-core/src/config/schemas/controllers/voice.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/voice.rs@@ -14,7 +14,7 @@ pub(super) fn handle_get_dictation_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::get_dictation_settings(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::get_dictation_settings(&ctx).await?) })}pub(super) fn handle_update_dictation_settings(@@ -39,7 +39,7 @@ pub(super) fn handle_get_voice_server_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::get_voice_server_settings(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::get_voice_server_settings(&ctx).await?) })}pub(super) fn handle_update_voice_server_settings(diff --git a/crates/openhuman-core/src/config/schemas/controllers/workspace.rs b/crates/openhuman-core/src/config/schemas/controllers/workspace.rsindex aa20d0c311..8836f45a47 100644--- a/crates/openhuman-core/src/config/schemas/controllers/workspace.rs+++ b/crates/openhuman-core/src/config/schemas/controllers/workspace.rs@@ -74,7 +74,7 @@ pub(super) fn handle_get_user_timezone(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(crate::core::Outcome::single_log(config_rpc::user_timezone_json(&config),@@ -87,7 +87,7 @@ pub(super) fn handle_get_analytics_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {use crate::core::Outcome;let config = config_rpc::load_config_with_timeout(&ctx).await?;let result = serde_json::json!({@@ -104,7 +104,7 @@ pub(super) fn handle_get_dashboard_settings(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::get_dashboard_settings(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::get_dashboard_settings(&ctx).await?) })}pub(super) fn handle_agent_server_status(@@ -118,7 +118,7 @@ pub(super) fn handle_reset_local_data(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::reset_local_data(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::reset_local_data(&ctx).await?) })}pub(crate) fn handle_get_data_paths(@@ -169,7 +169,7 @@ pub(crate) fn handle_get_agent_paths(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {log::debug!("[config][rpc] get_agent_paths enter");match config_rpc::get_agent_paths(&ctx).await {Ok(outcome) => {@@ -218,7 +218,7 @@ pub(super) fn handle_get_onboarding_completed(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async { to_json(config_rpc::get_onboarding_completed(&ctx).await?) })+ Box::pin(async move { to_json(config_rpc::get_onboarding_completed(&ctx).await?) })}pub(super) fn handle_set_onboarding_completed(diff --git a/crates/openhuman-core/src/cron/schemas.rs b/crates/openhuman-core/src/cron/schemas.rsindex 0897f191c6..0bf2111fb1 100644--- a/crates/openhuman-core/src/cron/schemas.rs+++ b/crates/openhuman-core/src/cron/schemas.rs@@ -404,7 +404,7 @@ fn handle_add(ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture}fn handle_list(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(crate::cron::rpc::cron_list(&config).await?)})diff --git a/crates/openhuman-core/src/desktop/control/schemas.rs b/crates/openhuman-core/src/desktop/control/schemas.rsindex 5b44abdeb2..94ed8c836a 100644--- a/crates/openhuman-core/src/desktop/control/schemas.rs+++ b/crates/openhuman-core/src/desktop/control/schemas.rs@@ -77,7 +77,7 @@ fn schema(function: &'static str) -> ControllerSchema {}fn status(ctx: DispatchCtx, _: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = crate::config::rpc::load_config_with_timeout(&ctx).await.map_err(|error| format!("config unavailable: {error}"))?;@@ -102,7 +102,7 @@ fn set_enabled(ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture}fn probe(ctx: DispatchCtx, _: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = crate::config::rpc::load_config_with_timeout(&ctx).await.map_err(|error| format!("config unavailable: {error}"))?;@@ -112,7 +112,7 @@ fn probe(ctx: DispatchCtx, _: Map<String, Value>) -> ControllerFuture {}fn pending(ctx: DispatchCtx, _: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = crate::config::rpc::load_config_with_timeout(&ctx).await.map_err(|error| format!("config unavailable: {error}"))?;diff --git a/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs b/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rsindex 36efcf927a..820e3462bf 100644--- a/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs+++ b/crates/openhuman-core/src/integrations/composio/schemas/handlers_connections.rs@@ -16,7 +16,7 @@ pub(super) fn handle_list_toolkits(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(ops::composio_list_toolkits(&config).await?)})@@ -26,7 +26,7 @@ pub(super) fn handle_list_capabilities(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(ops::composio_list_capabilities(&config).await?)})@@ -36,7 +36,7 @@ pub(super) fn handle_list_agent_ready_toolkits(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(ops::composio_list_agent_ready_toolkits(&config).await?)})@@ -46,7 +46,7 @@ pub(super) fn handle_list_connections(ctx: DispatchCtx,_params: Map<String, Value>,) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(ops::composio_list_connections(&config).await?)})diff --git a/crates/openhuman-core/src/integrations/task_sources/schemas.rs b/crates/openhuman-core/src/integrations/task_sources/schemas.rsindex ee23f8e4f8..ebd3ee8480 100644--- a/crates/openhuman-core/src/integrations/task_sources/schemas.rs+++ b/crates/openhuman-core/src/integrations/task_sources/schemas.rs@@ -408,7 +408,7 @@ pub fn schemas(function: &str) -> ControllerSchema {}fn handle_list(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(ops::list(&config).await?)})@@ -516,7 +516,7 @@ fn handle_list_databases(ctx: DispatchCtx, params: Map<String, Value>) -> Contro}fn handle_status(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {let config = config_rpc::load_config_with_timeout(&ctx).await?;to_json(ops::status(&config).await?)})diff --git a/crates/openhuman-core/src/modules/web3_service.rs b/crates/openhuman-core/src/modules/web3_service.rsindex b27a841ba2..9ab14aae23 100644--- a/crates/openhuman-core/src/modules/web3_service.rs+++ b/crates/openhuman-core/src/modules/web3_service.rs@@ -133,7 +133,7 @@ fn register_shutdown_hook(ctx: &DispatchCtx, ) {if WEB3_SHUTDOWN_HOOK_REGISTERED.swap(true, Ordering::AcqRel) {return;}- crate::core::shutdown::register(|| async {+ crate::core::shutdown::register(move || async {WEB3_SHUTDOWN_HOOK_REGISTERED.store(false, Ordering::Release);let mut active = service().lock().await;let Some(current) = active.as_ref() else {diff --git a/crates/openhuman-core/src/modules/x402_service.rs b/crates/openhuman-core/src/modules/x402_service.rsindex b25a9eadfb..e7c5eb8368 100644--- a/crates/openhuman-core/src/modules/x402_service.rs+++ b/crates/openhuman-core/src/modules/x402_service.rs@@ -198,7 +198,7 @@ fn register_shutdown_hook(ctx: &DispatchCtx, ) {if X402_SHUTDOWN_HOOK_REGISTERED.swap(true, Ordering::AcqRel) {return;}- crate::core::shutdown::register(|| async {+ crate::core::shutdown::register(move || async {X402_SHUTDOWN_HOOK_REGISTERED.store(false, Ordering::Release);let mut active = service().lock().await;let Some(current) = active.as_ref() else {diff --git a/crates/openhuman-core/src/platform/update/schemas.rs b/crates/openhuman-core/src/platform/update/schemas.rsindex e33e10189d..db0aa29ae3 100644--- a/crates/openhuman-core/src/platform/update/schemas.rs+++ b/crates/openhuman-core/src/platform/update/schemas.rs@@ -131,7 +131,7 @@ fn handle_check(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFut}fn handle_run(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async { to_json(crate::platform::update::rpc::update_run(&ctx).await) })+ Box::pin(async move { to_json(crate::platform::update::rpc::update_run(&ctx).await) })}fn handle_apply(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {diff --git a/crates/openhuman-core/src/sandbox/schemas.rs b/crates/openhuman-core/src/sandbox/schemas.rsindex f14a84085d..c659430717 100644--- a/crates/openhuman-core/src/sandbox/schemas.rs+++ b/crates/openhuman-core/src/sandbox/schemas.rs@@ -285,7 +285,7 @@ fn handle_resolve_policy(ctx: DispatchCtx, params: Map<String, Value>) -> Contro}fn handle_cleanup_orphans(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {gate()?;let config = match crate::config::ops::load_config_with_timeout(&ctx).await {Ok(config) => config,diff --git a/crates/openhuman-core/src/security/schemas.rs b/crates/openhuman-core/src/security/schemas.rsindex 807ad9c75d..75fe00aa31 100644--- a/crates/openhuman-core/src/security/schemas.rs+++ b/crates/openhuman-core/src/security/schemas.rs@@ -41,7 +41,7 @@ pub fn schemas(function: &str) -> ControllerSchema {}fn handle_policy_info(ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {+ Box::pin(async move {log::debug!("[security][rpc] policy_info enter");match crate::security::rpc::load_and_get_security_policy_info(&ctx).await {Ok(outcome) => {