Skip to main content

handle_reactive_inject_files

Function handle_reactive_inject_files 

Source
pub(super) async fn handle_reactive_inject_files(
    __arg0: State<AppState>,
    __arg1: Extension<ReactiveAuthVia>,
    caller: Option<Extension<Caller>>,
    body: Body,
) -> Response
Expand description

POST /agentmux/reactive/inject-files: a jekt from another instance on this machine (full key) or a LAN peer (lan_key), with its files after it (spec §4). The jekt is checked as /agentmux/reactive/inject checks one, before any file byte is read; then each file is streamed into the store, hashed as it goes, and the jekt is delivered with the ones that arrived intact. It is never forwarded on.