Skip to main content

Module protocol

Module protocol 

Source
Expand description

Protocol types for CLI <-> Backend communication

Defines the message format for the remote control WebSocket connection.

Structs§

NegotiatedProtocol
Negotiated protocol state after handshake
OrgPolicies
Organization-level policies that override user settings.
PrioritizedCommand
Wrapper for prioritized commands
ProtocolAccept
Protocol accept message sent by backend in response
ProtocolHello
Protocol hello message sent by CLI during registration
RemoteAgentInfo
Information about a remote agent
RetryPolicy
Retry policy for failed commands

Enums§

AgentEventType
Types of agent events
BackendCommand
Messages FROM Backend TO CLI
CommandPriority
Priority level for commands
CompressionAlgorithm
Compression algorithms supported for attachments
DeviceStatus
Device allowlist status returned by backend during authentication.
ProtocolCapability
Capabilities that can be negotiated between CLI and backend
RemoteMessage
Messages FROM CLI TO Backend
StreamChunkType
Types of stream chunks

Constants§

MIN_PROTOCOL_VERSION
Minimum supported protocol version
PROTOCOL_VERSION
Current protocol version
SUPPORTED_VERSIONS
All supported protocol versions (newest first)

Functions§

compute_device_fingerprint
Compute a stable device fingerprint: SHA-256(machine_id || hostname || os).