{"_id":"@breadai/transport-http-sse","_rev":"3-82aa3f946e7db48ceb4a7a7f18b48a8c","name":"@breadai/transport-http-sse","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@breadai/transport-http-sse","version":"0.1.0","keywords":["ai","agents","http","sse","event-stream","bread"],"author":"Matteo Zambon <matteo@yeeti.co>","license":"MIT","_id":"@breadai/transport-http-sse@0.1.0","maintainers":[{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"}],"homepage":"https://github.com/matteozambon89/bread","dist":{"shasum":"c51252aa05e02e2512abe508b4b4592f4cda27a3","tarball":"https://registry.npmjs.org/@breadai/transport-http-sse/-/transport-http-sse-0.1.0.tgz","fileCount":12,"integrity":"sha512-+mTp/Y2Ijm0KUOSAbHbgNFY+A+CkOlX3NBTxwOLZALcLaOBxs/lZfGVyk5B2YObFnzNijnzj5NtxJXmU5oFAag==","signatures":[{"sig":"MEUCIF7mLiGLrtYmotztDxPOrkcg5YJ5IyjQ6edM9rwXq+8oAiEAtfji31vNfslH5MU4iC+vawQHOxjY0DokHPKRyiOAfPc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18309},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"c51252aa05e02e2512abe508b4b4592f4cda27a3","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","bread-source":"./src/index.ts"}},"scripts":{"build":"bun build ./src/index.ts --outdir dist --target node --format esm --packages external && tsc --emitDeclarationOnly --outDir dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"},"_integrity":"sha512-+mTp/Y2Ijm0KUOSAbHbgNFY+A+CkOlX3NBTxwOLZALcLaOBxs/lZfGVyk5B2YObFnzNijnzj5NtxJXmU5oFAag==","repository":{"url":"https://github.com/matteozambon89/bread.git","type":"git","directory":"transports/http-sse"},"_npmVersion":"10.8.3","description":"HTTP (SSE) BreadTransport for bread — a mount()-able server ingress plus a remoteAgent() client, browser-EventSource-friendly.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"hono":"^4.8.4","@breadai/core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/transport-http-sse_0.1.0_1786817724591_0.07683787466865422","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@breadai/transport-http-sse","version":"0.1.1","keywords":["ai","agents","http","sse","event-stream","bread"],"author":"Matteo Zambon <matteo@yeeti.co>","license":"MIT","_id":"@breadai/transport-http-sse@0.1.1","maintainers":[{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"}],"homepage":"https://github.com/matteozambon89/bread","dist":{"shasum":"51738263935f6d9f9f7c2441d87d84487ad0f188","tarball":"https://registry.npmjs.org/@breadai/transport-http-sse/-/transport-http-sse-0.1.1.tgz","fileCount":12,"integrity":"sha512-ohHG5mXu+VJXrYvWHX/CKRy93Ato9rLsPbH4uopRhKheCGs+ivI8OU8jkXCaq9xxmV17OjAQdONTgqkm/2v1Rw==","signatures":[{"sig":"MEQCID944pIl3JAvObOrwNNlT/yyG7xV9vwp6rm+LZaQYOSkAiBlQPdSOtWvTiI4XZUQMqTw0l14y9wCsPugM3a4jKMEjQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18309},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"51738263935f6d9f9f7c2441d87d84487ad0f188","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","bread-source":"./src/index.ts"}},"scripts":{"build":"bun build ./src/index.ts --outdir dist --target node --format esm --packages external && tsc --emitDeclarationOnly --outDir dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"},"_integrity":"sha512-ohHG5mXu+VJXrYvWHX/CKRy93Ato9rLsPbH4uopRhKheCGs+ivI8OU8jkXCaq9xxmV17OjAQdONTgqkm/2v1Rw==","repository":{"url":"https://github.com/matteozambon89/bread.git","type":"git","directory":"transports/http-sse"},"_npmVersion":"10.8.3","description":"HTTP (SSE) BreadTransport for bread — a mount()-able server ingress plus a remoteAgent() client, browser-EventSource-friendly.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"hono":"^4.8.4","@breadai/core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/transport-http-sse_0.1.1_1786919712724_0.8533653397421019","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@breadai/transport-http-sse","version":"0.1.2","type":"module","exports":{".":{"bread-source":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@breadai/core":">=0.1.1 <1.0.0","hono":"^4.8.4"},"scripts":{"typecheck":"tsc --noEmit","build":"bun build ./src/index.ts --outdir dist --target node --format esm --packages external && tsc --emitDeclarationOnly --outDir dist"},"description":"HTTP (SSE) BreadTransport for bread — a mount()-able server ingress plus a remoteAgent() client, browser-EventSource-friendly.","license":"MIT","author":"Matteo Zambon <matteo@yeeti.co>","keywords":["ai","agents","http","sse","event-stream","bread"],"repository":{"type":"git","url":"https://github.com/matteozambon89/bread.git","directory":"transports/http-sse"},"homepage":"https://github.com/matteozambon89/bread","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"_id":"@breadai/transport-http-sse@0.1.2","_integrity":"sha512-0lDMjGgOf1o1CjLl1ODpwqw0FY2eaiVBYbKlsCEDLZQcuqCkxNehRT14RZ4onegT9NzXSuijdhPssvTnYfdtjQ==","_nodeVersion":"26.3.0","_npmVersion":"10.8.3","shasum":"c47ba11fbd0db5493474214c48b6c5c83faa788d","dist":{"integrity":"sha512-0lDMjGgOf1o1CjLl1ODpwqw0FY2eaiVBYbKlsCEDLZQcuqCkxNehRT14RZ4onegT9NzXSuijdhPssvTnYfdtjQ==","shasum":"c47ba11fbd0db5493474214c48b6c5c83faa788d","tarball":"https://registry.npmjs.org/@breadai/transport-http-sse/-/transport-http-sse-0.1.2.tgz","fileCount":12,"unpackedSize":19769,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC00MSQ1/ZQKHY7xd/+Jt5+XderycSfnEZA47Okt1SJqwIhAOwJxd+6by0irpA6KAT9MgVU6P3ltaXOJVhD2+V+pgGY"}]},"_npmUser":{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"},"directories":{},"maintainers":[{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/transport-http-sse_0.1.2_1788713740461_0.6139798801042959"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-15T18:15:24.382Z","modified":"2026-09-06T16:55:40.758Z","0.1.0":"2026-08-15T18:15:24.738Z","0.1.1":"2026-08-16T22:35:12.857Z","0.1.2":"2026-09-06T16:55:40.592Z"},"author":"Matteo Zambon <matteo@yeeti.co>","license":"MIT","homepage":"https://github.com/matteozambon89/bread","keywords":["ai","agents","http","sse","event-stream","bread"],"repository":{"type":"git","url":"https://github.com/matteozambon89/bread.git","directory":"transports/http-sse"},"description":"HTTP (SSE) BreadTransport for bread — a mount()-able server ingress plus a remoteAgent() client, browser-EventSource-friendly.","maintainers":[{"name":"matteozambon89","email":"matteo.zambon.89@gmail.com"}],"readme":"<p align=\"center\">\n  <a href=\"https://github.com/matteozambon89/bread\">\n    <img alt=\"bread\" src=\"https://cdn.jsdelivr.net/gh/matteozambon89/bread/assets/brand/mark-light-512.png\" height=\"64\">\n  </a>\n</p>\n\n# @breadai/transport-http-sse\n\nHTTP (SSE) [`BreadTransport`](../../docs/transports.md) for [bread](https://github.com/matteozambon89/bread) —\na `mount()`-able server ingress plus a `remoteAgent()` client, using Server-Sent Events. The\nbrowser-`EventSource`-friendly alternative to `@breadai/transport-http-chunked`; preserves today's\nexact wire format (`data: {type,payload}\\n\\n`, `id: <seq>`, `Last-Event-ID`/`?after=` catch-up), so\nexisting curl/`EventSource` examples keep working unchanged.\n\n## Install\n\n```bash\nbun add @breadai/transport-http-sse\n```\n\n## Usage\n\n```ts\n// bread.config.ts\nimport { transport } from '@breadai/transport-http-sse'\n\nexport default defineConfig({\n  entrypoints: ['writer'],\n  store: store({ path: './bread.db' }),\n  transport: transport(),\n})\n```\n\n```ts\n// Consuming a remote bread instance's mounted routes (config.remoteAgents)\nimport { remoteAgent } from '@breadai/transport-http-sse'\n\nexport default defineConfig({\n  entrypoints: ['local'],\n  store: store({ path: './bread.db' }),\n  remoteAgents: {\n    researcher: remoteAgent({ url: 'http://remote:3000' }),\n  },\n})\n```\n\n## What `mount()` adds\n\nSame four routes as `@breadai/transport-http-chunked` (`POST /agents/:id/run`,\n`POST /pipelines/:id/run`, `POST /resume/:checkpointId`, `GET /runs/:runId/stream`), reimplemented\ngenerically against the public `BreadInstance` surface — no private config access, so a failure\nthat would otherwise throw before the stream starts (e.g. an unknown pipeline id) surfaces as an\nSSE `{type:'error', payload:{code,message}}` event instead of a 404 or a torn-down connection.\n\n## Semantics\n\n- `transport()`'s pub/sub + bounded replay is the embedded `streamTransport()` — single-process\n  only. Cross-replica fan-out is `@breadai/transport-redis`'s job (see `docs/transports.md`'s known\n  gap on combining the two).\n- `remoteAgent()`'s `run()` is a plain SSE line reader — no reconnect/replay logic of its own today.\n","readmeFilename":"README.md"}