@anthropic-ai/claude-agent-sdk 0.3.210 → 0.3.212
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.d.ts +8 -6
- package/bridge.mjs +69 -69
- package/browser-sdk.js +36 -36
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +233 -3
- package/sdk.d.ts +64 -6
- package/sdk.mjs +78 -59
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ When you use the Claude Agent SDK, we collect feedback, which includes usage dat
|
|
|
55
55
|
|
|
56
56
|
### How we use your data
|
|
57
57
|
|
|
58
|
-
See our [data usage policies](https://
|
|
58
|
+
See our [data usage policies](https://code.claude.com/docs/en/data-usage).
|
|
59
59
|
|
|
60
60
|
### Privacy safeguards
|
|
61
61
|
|
package/bridge.d.ts
CHANGED
|
@@ -197,16 +197,18 @@ export type RemoteCredentials = {
|
|
|
197
197
|
worker_epoch: number;
|
|
198
198
|
};
|
|
199
199
|
/**
|
|
200
|
-
* Terminal
|
|
201
|
-
* is guaranteed to fail.
|
|
202
|
-
* `"untrusted_device"` (token missing/revoked —
|
|
203
|
-
* `"session_stale_relogin"` (OAuth session older than the
|
|
204
|
-
* re-authenticate).
|
|
200
|
+
* Terminal failure from `fetchRemoteCredentials` — retrying with the same
|
|
201
|
+
* inputs is guaranteed to fail. Server-minted reasons arrive as 403 with
|
|
202
|
+
* `error.resource` set to `"untrusted_device"` (token missing/revoked —
|
|
203
|
+
* enroll) or `"session_stale_relogin"` (OAuth session older than the
|
|
204
|
+
* freshness window — re-authenticate). `"invalid_session_id"` is
|
|
205
|
+
* client-minted: the session id failed validation (`/^[a-zA-Z0-9_-]+$/`)
|
|
206
|
+
* before any request was sent.
|
|
205
207
|
* @alpha
|
|
206
208
|
*/
|
|
207
209
|
export type CredentialsFailure = {
|
|
208
210
|
terminal: true;
|
|
209
|
-
reason: 'untrusted_device' | 'session_stale_relogin';
|
|
211
|
+
reason: 'untrusted_device' | 'session_stale_relogin' | 'invalid_session_id';
|
|
210
212
|
};
|
|
211
213
|
/**
|
|
212
214
|
* Type guard for `fetchRemoteCredentials` results.
|