Skip to main content

Module system

Module system 

Source
Expand description

system.* (non-handshake) method types — system.ping, system.version, system.log_tail.

system.handshake lives in super::handshake because it has enough surface area (params, result, session, features) to deserve its own module.

Structs§

LogTailParams
system.log_tail params — sized “last N lines of agent.log” so support handoff diagnostics fit a single message inside the 1 MiB framing cap (SPEC §2.12.2).
LogTailResult
system.log_tail response.
PingParams
system.ping takes no params and returns no body. Both shapes are kept as explicit unit-like structs (rather than ()) so the dispatcher can write from_value::<PingParams>(_) symmetrically with every other method.
PingResult
system.ping response. Carries the agent’s monotonic clock at the moment it answered — clients use the (sent_at, received_at) pair for one-way latency estimates without needing a separate API.
VersionParams
system.version takes no params.
VersionResult
system.version response — agent + client app version pair (the client may not know its own published “intended” version when auto-update is in flight, hence why both come from the agent which owns the manifest).