@agent-os/sse-http
Purpose
Section titled “Purpose”Web Fetch Server-Sent Events codecs and response construction for agentOS stream adapters.
Invariant
Section titled “Invariant”Composers and wire adapters own frame/envelope algebra. This package owns SSE-over-HTTP event/data framing, parsing, Response, and stream lifecycle construction; backends select it when their host exposes Web Fetch APIs.
Minimal Usage
Section titled “Minimal Usage”Adapters call encodeSseHttpJsonEvent or decodeSseHttpEvents for SSE wire framing. Backends pass already-encoded stream chunks or composer frame sources to createSseHttpResponse, createBatchedSubmitRunStreamResponse, or createAttachedStreamSseResponse.
Verification
Section titled “Verification”Run the package and graph gates:
cd packages/transports/sse-http && bun run testbun run typecheck