Protocol version 1
Each request and response is one UTF-8 JSON object per line. Both carry
protocolVersion: 1 and the request id. Responses also echo the operation
for valid request envelopes.
| Operation | Purpose |
|---|---|
|
Return SVG structure and literal-color occurrences. |
|
Validate SVG, manifest, selectors, and palette values. |
|
Produce one requested preview/output mode. |
|
Return structurally sanitized SVG. |
|
Return a named artifact map for requested delivery modes. |
Responses include ok, optional result, and diagnostics. Transport or
process failures are reported by the adapter; protocol and operation failures
remain structured diagnostics.
The D structs and process launcher intentionally live in separate modules so
field-level alignment can change without coupling process ownership to the
editor model.