Expand description
MuxBus cloud connectivity RPC handlers.
Five commands:
muxbus.login— PKCE browser flow (blocks until complete or timeout)muxbus.login.cancel— abort an in-flightmuxbus.login(e.g. user closed the browser)muxbus.status— current credential statusmuxbus.disconnect— clear stored credentialsmuxbus.cloudconfig— the cloud settings srv resolved, and where they came from
Structs§
- MuxBus
Cloud Config Req - Empty request for
muxbus.cloudconfig: a struct rather than()so the stub’s{}deserializes, like the request shapes above. - MuxBus
Cloud Config Resp - Result of
muxbus.cloudconfig: the AgentMux Cloud settings srv resolved (SPEC_CLOUD_SETTINGS_DISCOVERY_2026_09_27.md §3.2). A build compiled without a Cognito client id asks this whether sign-in is possible anyway. - MuxBus
Disconnect Req - MuxBus
Disconnect Resp - Result of
muxbus.disconnect. Was an inlinejson!({}); the stub already typed itRecord<string, never>, which is exactly what an empty struct generates. - MuxBus
Login Cancel Req - Empty request shapes for
muxbus.login.cancel,muxbus.statusandmuxbus.disconnect. The handlers ignore their payload, but these must be structs rather than(): the stub calls all three with{}, and serde deserializes()only from JSONnull, so a unit Req would reject every real call at runtime while compiling and passing every CI gate – thebookmarks.listbug. - MuxBus
Login Cancel Resp - MuxBus
Login Req - MuxBus
Login Resp - MuxBus
Status Req - MuxBus
Status Resp
Enums§
- MuxBus
Cloud Config Source - Where
muxbus.cloudconfig’s settings came from.
Constants§
- COMMAND_
MUXBUS_ CLOUDCONFIG - COMMAND_
MUXBUS_ DISCONNECT - COMMAND_
MUXBUS_ LOGIN - COMMAND_
MUXBUS_ LOGIN_ CANCEL - COMMAND_
MUXBUS_ STATUS
Functions§
- clear_
wan_ 🔒peer_ cache - W3-S (
SPEC_WAN_JEKT_VERIFICATION_2026_09_24.md§2.3): cached peer records belong to the account they were fetched under. Best-effort — the records are self-certifying, so a stale one can’t verify a forgery; this only keeps one account’s directory from answering for another’s. - cloud_
config 🔒 - What
muxbus.cloudconfigreports for a discovery result. - register_
muxbus_ handlers