Skip to main content

Module client

Module client 

Source
Expand description

Client → Daemon messages.

Every request carries an id so the daemon’s response.ok / response.error / session.list.result can be correlated back to the caller.

§Wire-format notes

The TS daemon expects camelCase fields (e.g. sessionId, approvalId). Every struct-like variant below gets a per-variant rename_all = "camelCase" so session_id serializes as sessionId, etc. #[serde(rename_all)] on the enum itself only affects variant names, not variant fields — hence the repetition.

Structs§

Attachment
One-shot attachment pushed with session.send.

Enums§

ClientMessage
Tagged union of every message a client can send the daemon.
SearchScope
SendPriority
Mid-turn priority hint.
SessionImportSource
Source of a session.import bundle.