Expand description
Persistent per-user controller daemon and its authenticated local protocol.
Structs§
- Create
Session Control - Cancellation and committing a newly started session are one atomic decision.
- Create
Session Request - Daemon
Client - Daemon
Metadata - Daemon
Status - Draft
Preview - Management
Client - A handle to whatever daemon the metadata file advertises, regardless of its
protocol version. It only exposes the frozen management subset (
Ping,Status,Stop), which encodes identically in every protocol version. - Registered
Session - Request
Envelope - Response
Envelope - Resume
Session Request - Runtime
Lifecycle View - Runtime
Notice - Something the daemon did on its own that a surface should report once.
- Runtime
Session View - Runtime
Snapshot - Runtime
State - Session
Preview - Workspace
Listing - Workspace
Snapshot
Enums§
- Daemon
Action Ping,Status, andStopform the frozen management subset: their wire encoding — together withRequestEnvelope,ResponseEnvelope,DaemonStatus, andWebViewerStatus— must never change shape, because clients and daemons of any protocol version rely on them to identify, stop, and replace each other. Every other action may change freely behind aPROTOCOL_VERSIONbump.- Daemon
Reply - Runtime
Lifecycle Kind - WebViewer
Status
Constants§
- MAX_
FRAME_ BYTES - PROTOCOL_
VERSION - RETRY_
DELAY - STOP_
TIMEOUT - How long a daemon is given to exit after it accepts a stop.
Functions§
- connect_
existing - connect_
management - daemon_
process_ is_ alive - Whether a daemon that Mjolnir launched in its own process group is alive.
- ensure_
supported_ daemon_ protocol - metadata_
path - process_
is_ alive - process_
is_ zombie - Whether a non-child process has exited but not yet been reaped.
- read_
frame - read_
metadata - read_
metadata_ any - run_
daemon_ process - wait_
for_ exit - Wait for a process to leave, within
STOP_TIMEOUT. - write_
frame