Skip to main content

Module framing

Module framing 

Source
Expand description

Re-exports from sqry_daemon_protocol::framing.

Phase 8c U1 extracted the framing codec into the sqry-daemon-protocol leaf crate. Keeping this module as a thin re-export shim lets every Phase 8a/8b call site inside sqry-daemon (ipc::framing::X) continue to compile unchanged.

Enums§

FrameError
Errors surfaced by the JSON-flavoured codec helpers in this module.

Constants§

MAX_FRAME_BYTES
Per-frame ceiling. Values above this limit are rejected at read_frame / write_frame boundaries. The bound is generous enough for Phase 8b’s largest expected MCP tool responses (subgraph exports on monorepo-scale graphs) without forcing the complexity of a chunked protocol.

Functions§

read_frame
Read a single framed blob.
read_frame_json
Read a framed JSON blob and decode into T. Returns Ok(None) on a clean frame-boundary EOF.
write_frame
Write a single framed blob. Returns io::ErrorKind::InvalidInput if body.len() > MAX_FRAME_BYTES.
write_frame_json
Write a typed value as a framed JSON blob.