pub struct DaemonHello {
pub client_version: String,
pub protocol_version: u32,
pub logical_workspace: Option<LogicalWorkspaceWire>,
}Expand description
Pre-handshake header sent as the very first frame by a CLI client.
The server responds with DaemonHelloResponse before the
JSON-RPC request loop begins.
Fields§
§client_version: StringFree-form client identifier (env!("CARGO_PKG_VERSION") plus
user-agent suffix). Informational only.
protocol_version: u32Wire protocol version. Phase 8a accepts exactly 1.
logical_workspace: Option<LogicalWorkspaceWire>Optional logical-workspace binding hint (STEP_6 of the
workspace-aware-cross-repo plan). When present, every
subsequent daemon/load on this connection that does not
itself supply logical_workspace inherits this binding —
keeping today’s anonymous behaviour for clients that do not
set the hint.
#[serde(default)] so older clients (and the standalone
sqry-mcp / sqry-lsp shims that have not yet learned about
logical workspaces) keep working with None. The daemon
router synthesises one WorkspaceKey per source root with
workspace_id = Some(this id).
Trait Implementations§
Source§impl Clone for DaemonHello
impl Clone for DaemonHello
Source§fn clone(&self) -> DaemonHello
fn clone(&self) -> DaemonHello
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more