@anthropic-ai/claude-agent-sdk 0.3.324 → 0.3.326

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/browser-sdk.d.ts CHANGED
@@ -40,6 +40,13 @@ export type SSEOptions = {
40
40
  * surface (web / iOS / Android / desktop) itself.
41
41
  */
42
42
  headers?: Record<string, string>;
43
+ /**
44
+ * Called for every connection attempt, reconnects included, in place of the
45
+ * SDK's own GET; `overHttp` sends that GET. The returned status and SSE body
46
+ * are read as the GET's would be. Carry `init.headers`, which hold the resume
47
+ * point. When `init.signal` aborts, reject the promise and end the body.
48
+ */
49
+ fetchStream?: (url: string, init: RequestInit, overHttp: () => Promise<Response>) => Promise<Response>;
43
50
  /**
44
51
  * Resume cursor for the first connect: the stream delivers only events
45
52
  * whose `sequence_num` is greater. For a consumer that seeded its