Skip to main content

handle_wps_publish

Function handle_wps_publish 

Source
pub(super) async fn handle_wps_publish(
    __arg0: State<AppState>,
    __arg1: Json<WpsPublishRequest>,
) -> impl IntoResponse
Expand description

Auth-gated MPS publish endpoint (SPEC_STREAMING_BASH_RUNNER_2026_05_11.md §3.2). agentmux-bashwrap POSTs here while running a Bash command; we forward to the in-process MPS broker so subscribed frontends receive the event. A client event declared in mps_events (client_events!) must carry its payload type, or it is refused with 400; any other event mps_events declares is srv’s alone, and refused with 400.