Skip to content

@agent-os/sse-http

Web Fetch Server-Sent Events codecs and response construction for agentOS stream adapters.

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.

Adapters call encodeSseHttpJsonEvent or decodeSseHttpEvents for SSE wire framing. Backends pass already-encoded stream chunks or composer frame sources to createSseHttpResponse, createBatchedSubmitRunStreamResponse, or createAttachedStreamSseResponse.

Run the package and graph gates:

Terminal window
cd packages/transports/sse-http && bun run test
bun run typecheck