Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(security/approval): format controller registration calls

Steven Enamakel65d733aa2f8e
diff --git a/crates/openhuman-core/src/security/approval/schemas.rs b/crates/openhuman-core/src/security/approval/schemas.rs
index 851044d63c..23221abbcf 100644
--- a/crates/openhuman-core/src/security/approval/schemas.rs
+++ b/crates/openhuman-core/src/security/approval/schemas.rs
@@ -197,7 +197,11 @@ fn handle_list_pending(ctx: DispatchCtx, params: Map<String, Value>) -> Controll
}
fn list_pending_controller() -> BoundRegisteredController {
- BoundRegisteredController::typed(schemas("list_pending"), parse_list_pending, run_list_pending)
+ BoundRegisteredController::typed(
+ schemas("list_pending"),
+ parse_list_pending,
+ run_list_pending,
+ )
}
fn run_list_pending(ctx: DispatchCtx, agent_id: Option<String>) -> ControllerFuture {
@@ -235,7 +239,11 @@ fn handle_get_gate_state(_ctx: DispatchCtx, params: Map<String, Value>) -> Contr
}
fn get_gate_state_controller() -> BoundRegisteredController {
- BoundRegisteredController::typed(schemas("get_gate_state"), parse_get_gate_state, run_get_gate_state)
+ BoundRegisteredController::typed(
+ schemas("get_gate_state"),
+ parse_get_gate_state,
+ run_get_gate_state,
+ )
}
fn run_get_gate_state(_ctx: DispatchCtx, _parsed: ()) -> ControllerFuture {