ZapProtocol class abstract final

NDJSON envelope helpers for the ZAP wire protocol.

One JSON object per line, in and out — the same discipline as the agent shell wire (#808). The host (zfa zap serve) reads request envelopes from stdin and writes reply envelopes to stdout; this codec is the single place lines are encoded/decoded.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decodeLine(String line) Map<String, Object?>
Decode one NDJSON line into a message map.
encodeLine(Map<String, Object?> message) String
Encode message as a single NDJSON line (terminated with \n).
envelope(String type, String id, String ts, Map<String, Object?> fields) Map<String, Object?>
Convenience envelope builder: zap/type/id/ts + fields.