Module muxbus_handlers

Module muxbus_handlers 

Source
Expand description

MuxBus cloud connectivity RPC handlers.

Three commands:

  • muxbus.login โ€” PKCE browser flow (blocks until complete or timeout)
  • muxbus.status โ€” current credential status
  • muxbus.disconnect โ€” clear stored credentials

Structsยง

MuxBusLoginReq ๐Ÿ”’
MuxBusLoginResp ๐Ÿ”’
MuxBusStatusResp ๐Ÿ”’

Constantsยง

COMMAND_MUXBUS_DISCONNECT
COMMAND_MUXBUS_LOGIN
COMMAND_MUXBUS_STATUS

Functionsยง

inject_muxbus_env
Inject MUXBUS_TOKEN into spawn env if credentials are stored and valid. Token refresh is async โ€” this path just injects whatever is currently stored. Agents should re-spawn after the user refreshes via muxbus.login if the token expires.
register_muxbus_handlers