@anthropic-ai/claude-agent-sdk 0.3.325 → 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/README.md +1 -1
- package/bridge.mjs +96 -96
- package/browser-sdk.d.ts +7 -0
- package/browser-sdk.js +73 -71
- package/core-2h2qc9qv.mjs +18 -0
- package/core-9sxfsmzx.mjs +18 -0
- package/{core-zg882d22.mjs → core-ba5rrckm.mjs} +2 -2
- package/core-dnsvg8nc.mjs +53 -0
- package/{core-9je8ee1j.mjs → core-h6r54bwv.mjs} +2 -2
- package/core-k67vj6j9.mjs +20 -0
- package/core-qbjntcdf.mjs +18 -0
- package/core-qj4dtgyt.mjs +17 -0
- package/core-rn7tc54w.mjs +17 -0
- package/core-sstebd83.mjs +18 -0
- package/core-td7rt8zt.mjs +17 -0
- package/{core-x3hc9abc.mjs → core-tf03rfab.mjs} +3 -3
- package/core-x4kwpwv9.mjs +16 -0
- package/core-y6bhrwmk.mjs +47 -0
- package/{core-fxa8mwbm.mjs → core-ya1m7gzj.mjs} +3 -3
- package/core.d.ts +1 -0
- package/core.mjs +11 -11
- package/manifest.json +21 -21
- package/manifest.zst.json +25 -25
- package/package.json +25 -21
- package/sdk-tools.d.ts +7 -6
- package/sdk.d.ts +175 -123
- package/sdk.mjs +88 -85
- package/core-0a66n3e7.mjs +0 -16
- package/core-0bmnpbz2.mjs +0 -45
- package/core-ds2jqcef.mjs +0 -19
- package/core-gbbw9cgm.mjs +0 -17
- package/core-msnqqcc2.mjs +0 -42
- package/core-wadgcjfh.mjs +0 -18
- package/core-x20yarwf.mjs +0 -17
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
|