Expand description
Admin CLI gateway route: streams systemprompt subprocess output over SSE.
Exposes a single authenticated endpoint that validates and forwards an argv
to the CLI binary, propagating the caller’s session/context/auth into the
child’s environment and relaying stdout/stderr as CliOutputEvent frames.
The child runs in its own process group and is killed, with its output
forwarders aborted, when the SSE stream is dropped — a client that
disconnects does not leave the command running.
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.