@anthropic-ai/claude-agent-sdk 0.3.225 → 0.3.227
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.d.ts +8 -3
- package/bridge.mjs +81 -81
- package/browser-sdk.js +54 -53
- package/manifest.json +22 -22
- package/manifest.zst.json +26 -26
- package/package.json +10 -10
- package/sdk-tools.d.ts +40 -5
- package/sdk.d.ts +5 -1
- package/sdk.mjs +76 -75
package/bridge.d.ts
CHANGED
|
@@ -176,8 +176,12 @@ export type AttachBridgeSessionOptions = {
|
|
|
176
176
|
* Transport died permanently. 401 = JWT expired (re-attach with fresh
|
|
177
177
|
* secret), 4090 = epoch superseded (no longer the active worker),
|
|
178
178
|
* 4091 = CCRClient init failed, 4092 = codeless close (defensive
|
|
179
|
-
* fallback — cause unknown),
|
|
180
|
-
*
|
|
179
|
+
* fallback — cause unknown), 4093 = presence heartbeats kept failing
|
|
180
|
+
* while the SSE stream stayed healthy (transport self-heal candidate),
|
|
181
|
+
* 4094 = worker credential expired or rejected on the request path
|
|
182
|
+
* (heartbeat/write auth exhaustion — re-attach with a fresh secret,
|
|
183
|
+
* like 401), 403/404 = permanent SSE HTTP rejection. Transient
|
|
184
|
+
* disconnects (503, network blips) retry indefinitely inside
|
|
181
185
|
* SSETransport and do NOT fire this.
|
|
182
186
|
*/
|
|
183
187
|
onClose?: (code?: number) => void;
|
|
@@ -299,7 +303,8 @@ export type CreateSessionFailure = {
|
|
|
299
303
|
detail: string | undefined;
|
|
300
304
|
};
|
|
301
305
|
/**
|
|
302
|
-
* Type guard for `createCodeSession` results.
|
|
306
|
+
* Type guard for `createCodeSession` results. Matches only `terminal: true`
|
|
307
|
+
* failures — a `CredentialsRejection` (`terminal: false`) does not match.
|
|
303
308
|
* @alpha
|
|
304
309
|
*/
|
|
305
310
|
export declare function isCreateSessionFailure(r: string | CreateSessionFailure | CredentialsRejection | null): r is CreateSessionFailure;
|