Skip to main content

Module protocol

Module protocol 

Source
Expand description

Sidecar protocol types — line-JSON over stdio.

The host treats sidecars as lego-block processes: it starts them, sends generic trigger frames, and consumes generic status/text frames. Plugin semantics live entirely outside core.

Wire format: one JSON object per line on the sidecar’s stdin/stdout.

Enums§

InsertTextMode
How text emitted by a sidecar should be applied to the input buffer.
SidecarCommand
Commands sent from Synaps CLI to the sidecar (one per line, JSON).
SidecarFrame
Frames emitted by the sidecar (one per line, JSON).

Constants§

SIDECAR_PROTOCOL_VERSION
Protocol version understood by this build.