diff --git a/.changeset/reusable-stream-subpath-export.md b/.changeset/reusable-stream-subpath-export.md new file mode 100644 index 0000000..63b8751 --- /dev/null +++ b/.changeset/reusable-stream-subpath-export.md @@ -0,0 +1,5 @@ +--- +"@openrouter/agent": patch +--- + +Add a `./reusable-stream` subpath export so consumers can import `ReusableReadableStream` directly (`@openrouter/agent/reusable-stream`) instead of going through the root barrel or patching the package. Mirrors the existing `./tool-event-broadcaster` entry; both replay classes are the units consumers need when asserting stream-retention behavior against the published package. diff --git a/packages/agent/package.json b/packages/agent/package.json index cd1908e..4e8c7ef 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -88,6 +88,10 @@ "types": "./esm/lib/tool-event-broadcaster.d.ts", "default": "./esm/lib/tool-event-broadcaster.js" }, + "./reusable-stream": { + "types": "./esm/lib/reusable-stream.d.ts", + "default": "./esm/lib/reusable-stream.js" + }, "./turn-context": { "types": "./esm/lib/turn-context.d.ts", "default": "./esm/lib/turn-context.js"