@anthropic-ai/claude-agent-sdk 0.3.302 → 0.3.304
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/bridge.mjs +51 -50
- package/browser-sdk.d.ts +17 -0
- package/browser-sdk.js +39 -39
- package/core-2hp8y6j3.mjs +52 -0
- package/core-kjmgdn1p.mjs +35 -0
- package/core.mjs +18 -18
- package/manifest.json +22 -22
- package/manifest.zst.json +26 -26
- package/package.json +12 -12
- package/sdk.d.ts +53 -2
- package/sdk.mjs +63 -63
- package/core-1t4c883z.mjs +0 -35
- package/core-vf1qkp6x.mjs +0 -52
package/browser-sdk.d.ts
CHANGED
|
@@ -182,3 +182,20 @@ export declare function getCcrEvent(query: Query, message: SDKMessage): {
|
|
|
182
182
|
created_at?: string;
|
|
183
183
|
source?: string;
|
|
184
184
|
} | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Closes the event stream of an `sse` query without ending the query. The
|
|
187
|
+
* stream reopens on `resumeSseStream()` or on the query's next send, its own
|
|
188
|
+
* answers to earlier requests included. It then replays the durable events
|
|
189
|
+
* sent meanwhile (or `onCatchUpTruncated` fires). Until then, requests from
|
|
190
|
+
* the remote session, such as permission prompts, wait unanswered. So do the
|
|
191
|
+
* query's own requests in flight and sends still waiting for the first
|
|
192
|
+
* connection. Ephemeral frames and delivery updates sent meanwhile are lost.
|
|
193
|
+
* Returns false for a WebSocket, closed or suspended query.
|
|
194
|
+
*/
|
|
195
|
+
export declare function suspendSseStream(query: Query): boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Reopens the event stream that `suspendSseStream()` closed, resuming after
|
|
198
|
+
* the last event received. Returns false unless `query` is suspended and
|
|
199
|
+
* still open.
|
|
200
|
+
*/
|
|
201
|
+
export declare function resumeSseStream(query: Query): boolean;
|