@anthropic-ai/claude-agent-sdk 0.2.85 → 0.2.86
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 +6 -2
- package/bridge.mjs +51 -51
- package/browser-sdk.js +32 -32
- package/cli.js +8893 -8870
- package/embed.js +1 -1
- package/extractFromBunfs.js +5 -5
- package/manifest.json +18 -18
- package/manifest.zst.json +22 -22
- package/package.json +6 -3
- package/sdk-tools.d.ts +9 -0
- package/sdk.d.ts +113 -4
- package/sdk.mjs +34 -34
package/bridge.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* this file exists to produce a clean .d.ts without walking the implementation
|
|
15
15
|
* import graph.
|
|
16
16
|
*/
|
|
17
|
-
import type {
|
|
17
|
+
import type { PermissionMode, SDKControlRequest, SDKControlResponse, SDKMessage } from './agentSdkTypes.js';
|
|
18
18
|
/**
|
|
19
19
|
* Session state reported to the CCR /worker endpoint.
|
|
20
20
|
* @alpha
|
|
@@ -194,6 +194,10 @@ export declare function createCodeSession(baseUrl: string, accessToken: string,
|
|
|
194
194
|
* Returns credentials or null on failure. The call IS the worker register
|
|
195
195
|
* (bumps epoch server-side), so pass `epoch: creds.worker_epoch` to
|
|
196
196
|
* `attachBridgeSession` to skip a redundant register.
|
|
197
|
+
*
|
|
198
|
+
* `trustedDeviceToken` sets the `X-Trusted-Device-Token` header. Required
|
|
199
|
+
* when the server's `sessions_elevated_auth_enforcement` flag is on
|
|
200
|
+
* (bridge sessions are SecurityTier=ELEVATED). See anthropics/anthropic#274559.
|
|
197
201
|
* @alpha
|
|
198
202
|
*/
|
|
199
|
-
export declare function fetchRemoteCredentials(sessionId: string, baseUrl: string, accessToken: string, timeoutMs: number): Promise<RemoteCredentials | null>;
|
|
203
|
+
export declare function fetchRemoteCredentials(sessionId: string, baseUrl: string, accessToken: string, timeoutMs: number, trustedDeviceToken?: string): Promise<RemoteCredentials | null>;
|