@anthropic-ai/claude-agent-sdk 0.2.84 → 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 +7 -3
- package/bridge.mjs +48 -48
- package/browser-sdk.js +32 -32
- package/cli.js +7414 -7326
- 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 -114
- package/sdk.d.ts +160 -6
- package/sdk.mjs +34 -34
- package/resvg.wasm +0 -0
- package/vendor/tree-sitter-bash/arm64-darwin/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/arm64-linux/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/arm64-win32/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/x64-darwin/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/x64-linux/tree-sitter-bash.node +0 -0
- package/vendor/tree-sitter-bash/x64-win32/tree-sitter-bash.node +0 -0
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
|
|
@@ -188,12 +188,16 @@ export type RemoteCredentials = {
|
|
|
188
188
|
* implicit auth, so it works from any process (not just the CLI).
|
|
189
189
|
* @alpha
|
|
190
190
|
*/
|
|
191
|
-
export declare function createCodeSession(baseUrl: string, accessToken: string, title: string, timeoutMs: number): Promise<string | null>;
|
|
191
|
+
export declare function createCodeSession(baseUrl: string, accessToken: string, title: string, timeoutMs: number, tags?: string[]): Promise<string | null>;
|
|
192
192
|
/**
|
|
193
193
|
* `POST /v1/code/sessions/{id}/bridge` — mint a worker JWT for the session.
|
|
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>;
|