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(hosted): thread DispatchCtx through controller handlers
Steven Enamakel9cf661a41165
diff --git a/crates/openhuman-core/src/core/all_extensions_tests.rs b/crates/openhuman-core/src/core/all_extensions_tests.rsindex 3a579b9824..a1539d4bdc 100644--- a/crates/openhuman-core/src/core/all_extensions_tests.rs+++ b/crates/openhuman-core/src/core/all_extensions_tests.rs@@ -5,7 +5,7 @@ use super::*;// ── Controller extensions (crates above the core) ──────────────────────────fn ext_controller(namespace: &'static str, function: &'static str) -> RegisteredController {- fn handler(_params: Map<String, serde_json::Value>) -> ControllerFuture {+ fn handler(_ctx: DispatchCtx, _params: Map<String, serde_json::Value>) -> ControllerFuture {Box::pin(async { Ok(serde_json::json!({"ext": true})) })}RegisteredController {diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rsindex 159a63d7b5..59214c018f 100644--- a/crates/openhuman-core/src/core/all_tests.rs+++ b/crates/openhuman-core/src/core/all_tests.rs@@ -17,7 +17,7 @@ fn schema(}}-fn noop_handler(_params: Map<String, Value>) -> ControllerFuture {+fn noop_handler(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async { Ok(Value::Null) })}diff --git a/crates/openhuman-tinyhumans/src/hosted/announcements/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/announcements/schemas.rsindex 3c466368c6..1577a2f796 100644--- a/crates/openhuman-tinyhumans/src/hosted/announcements/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/announcements/schemas.rs@@ -43,7 +43,7 @@ pub fn announcements_schemas(function: &str) -> ControllerSchema {}}-fn handle_announcements_get_latest(_params: Map<String, Value>) -> ControllerFuture {+fn handle_announcements_get_latest(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::announcements::get_latest_announcement(&config).await?)diff --git a/crates/openhuman-tinyhumans/src/hosted/billing/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/billing/schemas.rsindex dc2be0925d..be6b5ade3c 100644--- a/crates/openhuman-tinyhumans/src/hosted/billing/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/billing/schemas.rs@@ -393,28 +393,28 @@ pub fn billing_schemas(function: &str) -> ControllerSchema {}}-fn handle_billing_get_summary(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_summary(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::get_summary(&config).await?)})}-fn handle_billing_get_current_plan(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_current_plan(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::get_current_plan(&config).await?)})}-fn handle_billing_get_balance(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_balance(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::get_balance(&config).await?)})}-fn handle_billing_purchase_plan(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_purchase_plan(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<PurchasePlanParams>(params)?;@@ -422,14 +422,14 @@ fn handle_billing_purchase_plan(params: Map<String, Value>) -> ControllerFuture})}-fn handle_billing_create_portal_session(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_create_portal_session(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::create_portal_session(&config).await?)})}-fn handle_billing_top_up(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_top_up(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TopUpParams>(params)?;@@ -440,7 +440,7 @@ fn handle_billing_top_up(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_billing_create_coinbase_charge(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_create_coinbase_charge(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<CoinbaseChargeParams>(params)?;@@ -455,7 +455,7 @@ fn handle_billing_create_coinbase_charge(params: Map<String, Value>) -> Controll})}-fn handle_billing_get_transactions(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_transactions(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = if params.is_empty() {@@ -470,14 +470,14 @@ fn handle_billing_get_transactions(params: Map<String, Value>) -> ControllerFutu})}-fn handle_billing_get_auto_recharge(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_auto_recharge(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::get_auto_recharge(&config).await?)})}-fn handle_billing_update_auto_recharge(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_update_auto_recharge(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<JsonValueParams>(params)?;@@ -485,21 +485,21 @@ fn handle_billing_update_auto_recharge(params: Map<String, Value>) -> Controller})}-fn handle_billing_get_cards(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_cards(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::get_cards(&config).await?)})}-fn handle_billing_create_setup_intent(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_create_setup_intent(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::create_setup_intent(&config).await?)})}-fn handle_billing_update_card(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_update_card(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<UpdateCardParams>(params)?;@@ -514,7 +514,7 @@ fn handle_billing_update_card(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_billing_delete_card(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_delete_card(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<CardParams>(params)?;@@ -524,7 +524,7 @@ fn handle_billing_delete_card(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_billing_redeem_coupon(params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_redeem_coupon(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<RedeemCouponParams>(params)?;@@ -532,7 +532,7 @@ fn handle_billing_redeem_coupon(params: Map<String, Value>) -> ControllerFuture})}-fn handle_billing_get_coupons(_params: Map<String, Value>) -> ControllerFuture {+fn handle_billing_get_coupons(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::billing::get_user_coupons(&config).await?)diff --git a/crates/openhuman-tinyhumans/src/hosted/channel_link/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/channel_link/schemas.rsindex 1ec2101164..019116135a 100644--- a/crates/openhuman-tinyhumans/src/hosted/channel_link/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/channel_link/schemas.rs@@ -100,7 +100,7 @@ pub fn channel_link_schemas(function: &str) -> ControllerSchema {}}-fn handle_auth_create_channel_link_token(params: Map<String, Value>) -> ControllerFuture {+fn handle_auth_create_channel_link_token(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<AuthCreateChannelLinkTokenParams>(params)?;@@ -114,14 +114,14 @@ fn handle_auth_create_channel_link_token(params: Map<String, Value>) -> Controll})}-fn handle_telegram_login_start(_params: Map<String, Value>) -> ControllerFuture {+fn handle_telegram_login_start(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::channel_link::telegram_login_start(&config).await?)})}-fn handle_telegram_login_check(params: Map<String, Value>) -> ControllerFuture {+fn handle_telegram_login_check(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let p = deserialize_params::<LinkCheckParams>(params)?;@@ -131,14 +131,14 @@ fn handle_telegram_login_check(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_discord_link_start(_params: Map<String, Value>) -> ControllerFuture {+fn handle_discord_link_start(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::channel_link::discord_link_start(&config).await?)})}-fn handle_discord_link_check(params: Map<String, Value>) -> ControllerFuture {+fn handle_discord_link_check(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let p = deserialize_params::<LinkCheckParams>(params)?;diff --git a/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rsindex 56a3b7105f..2b17c06100 100644--- a/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/oauth/schemas.rs@@ -139,7 +139,7 @@ pub fn oauth_schemas(function: &str) -> ControllerSchema {}}-fn handle_auth_oauth_connect(params: Map<String, Value>) -> ControllerFuture {+fn handle_auth_oauth_connect(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<AuthOauthConnectParams>(params)?;@@ -156,14 +156,14 @@ fn handle_auth_oauth_connect(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_auth_oauth_list_integrations(_params: Map<String, Value>) -> ControllerFuture {+fn handle_auth_oauth_list_integrations(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::oauth::oauth_list_integrations(&config).await?)})}-fn handle_auth_oauth_fetch_integration_tokens(params: Map<String, Value>) -> ControllerFuture {+fn handle_auth_oauth_fetch_integration_tokens(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<AuthOauthIntegrationTokensParams>(params)?;@@ -178,7 +178,7 @@ fn handle_auth_oauth_fetch_integration_tokens(params: Map<String, Value>) -> Con})}-fn handle_auth_oauth_revoke_integration(params: Map<String, Value>) -> ControllerFuture {+fn handle_auth_oauth_revoke_integration(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<AuthOauthRevokeParams>(params)?;@@ -189,7 +189,7 @@ fn handle_auth_oauth_revoke_integration(params: Map<String, Value>) -> Controlle})}-fn handle_auth_oauth_fetch_client_key(params: Map<String, Value>) -> ControllerFuture {+fn handle_auth_oauth_fetch_client_key(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<AuthOauthClientKeyParams>(params)?;diff --git a/crates/openhuman-tinyhumans/src/hosted/referral/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/referral/schemas.rsindex 8387e07af5..48f233edd6 100644--- a/crates/openhuman-tinyhumans/src/hosted/referral/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/referral/schemas.rs@@ -87,14 +87,14 @@ pub fn referral_schemas(function: &str) -> ControllerSchema {}}-fn handle_referral_get_stats(_params: Map<String, Value>) -> ControllerFuture {+fn handle_referral_get_stats(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::referral::get_stats(&config).await?)})}-fn handle_referral_claim(params: Map<String, Value>) -> ControllerFuture {+fn handle_referral_claim(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<ReferralClaimParams>(params)?;diff --git a/crates/openhuman-tinyhumans/src/hosted/team/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/team/schemas.rsindex 47c96c9643..004897edb5 100644--- a/crates/openhuman-tinyhumans/src/hosted/team/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/team/schemas.rs@@ -340,14 +340,14 @@ pub fn team_schemas(function: &str) -> ControllerSchema {}}-fn handle_team_get_usage(_params: Map<String, Value>) -> ControllerFuture {+fn handle_team_get_usage(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::team::get_usage(&config).await?)})}-fn handle_team_list_members(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_list_members(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TeamIdParams>(params)?;@@ -355,14 +355,14 @@ fn handle_team_list_members(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_list_teams(_params: Map<String, Value>) -> ControllerFuture {+fn handle_team_list_teams(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::team::list_teams(&config).await?)})}-fn handle_team_get_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_get_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TeamIdParams>(params)?;@@ -370,7 +370,7 @@ fn handle_team_get_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_create_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_create_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<CreateTeamParams>(params)?;@@ -378,7 +378,7 @@ fn handle_team_create_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_update_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_update_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<UpdateTeamParams>(params)?;@@ -389,7 +389,7 @@ fn handle_team_update_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_delete_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_delete_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TeamIdParams>(params)?;@@ -397,7 +397,7 @@ fn handle_team_delete_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_switch_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_switch_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TeamIdParams>(params)?;@@ -405,7 +405,7 @@ fn handle_team_switch_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_leave_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_leave_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TeamIdParams>(params)?;@@ -413,7 +413,7 @@ fn handle_team_leave_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_join_team(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_join_team(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<JoinTeamParams>(params)?;@@ -421,7 +421,7 @@ fn handle_team_join_team(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_create_invite(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_create_invite(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<InviteParams>(params)?;@@ -437,7 +437,7 @@ fn handle_team_create_invite(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_remove_member(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_remove_member(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<RemoveMemberParams>(params)?;@@ -447,7 +447,7 @@ fn handle_team_remove_member(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_change_member_role(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_change_member_role(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<ChangeRoleParams>(params)?;@@ -463,7 +463,7 @@ fn handle_team_change_member_role(params: Map<String, Value>) -> ControllerFutur})}-fn handle_team_list_invites(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_list_invites(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<TeamIdParams>(params)?;@@ -471,7 +471,7 @@ fn handle_team_list_invites(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_team_revoke_invite(params: Map<String, Value>) -> ControllerFuture {+fn handle_team_revoke_invite(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<RevokeInviteParams>(params)?;diff --git a/crates/openhuman-tinyhumans/src/hosted/webhooks/schemas.rs b/crates/openhuman-tinyhumans/src/hosted/webhooks/schemas.rsindex 81f608c5c9..6ec1009588 100644--- a/crates/openhuman-tinyhumans/src/hosted/webhooks/schemas.rs+++ b/crates/openhuman-tinyhumans/src/hosted/webhooks/schemas.rs@@ -178,14 +178,14 @@ pub fn webhooks_schemas(function: &str) -> ControllerSchema {}}-fn handle_list_tunnels(_params: Map<String, Value>) -> ControllerFuture {+fn handle_list_tunnels(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::webhooks::list_tunnels(&config).await?)})}-fn handle_create_tunnel(params: Map<String, Value>) -> ControllerFuture {+fn handle_create_tunnel(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<WebhookCreateTunnelParams>(params)?;@@ -200,7 +200,7 @@ fn handle_create_tunnel(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_delete_tunnel(params: Map<String, Value>) -> ControllerFuture {+fn handle_delete_tunnel(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<WebhookTunnelIdParams>(params)?;@@ -208,7 +208,7 @@ fn handle_delete_tunnel(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_get_tunnel(params: Map<String, Value>) -> ControllerFuture {+fn handle_get_tunnel(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<WebhookTunnelIdParams>(params)?;@@ -216,7 +216,7 @@ fn handle_get_tunnel(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_update_tunnel(params: Map<String, Value>) -> ControllerFuture {+fn handle_update_tunnel(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let payload = deserialize_params::<WebhookUpdateTunnelParams>(params)?;@@ -229,7 +229,7 @@ fn handle_update_tunnel(params: Map<String, Value>) -> ControllerFuture {})}-fn handle_get_bandwidth(_params: Map<String, Value>) -> ControllerFuture {+fn handle_get_bandwidth(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;to_json(crate::hosted::webhooks::get_bandwidth(&config).await?)