@anthropic-ai/claude-agent-sdk 0.2.96 → 0.2.97

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 CHANGED
@@ -195,6 +195,15 @@ export type CredentialsFailure = {
195
195
  * @alpha
196
196
  */
197
197
  export declare function isCredentialsFailure(r: RemoteCredentials | CredentialsFailure | null): r is CredentialsFailure;
198
+ /**
199
+ * Git source/outcome context attached to a v2 code session on create.
200
+ * @alpha
201
+ */
202
+ export type CodeSessionGitContext = {
203
+ gitRepoUrl: string;
204
+ branch: string;
205
+ defaultBranch?: string;
206
+ };
198
207
  /**
199
208
  * `POST /v1/code/sessions` — create a fresh CCR session. Returns the `cse_*`
200
209
  * session id, or null on any failure (HTTP error, malformed response).
@@ -203,7 +212,7 @@ export declare function isCredentialsFailure(r: RemoteCredentials | CredentialsF
203
212
  * implicit auth, so it works from any process (not just the CLI).
204
213
  * @alpha
205
214
  */
206
- export declare function createCodeSession(baseUrl: string, accessToken: string, title: string, timeoutMs: number, tags?: string[]): Promise<string | null>;
215
+ export declare function createCodeSession(baseUrl: string, accessToken: string, title: string, timeoutMs: number, tags?: string[], gitContext?: CodeSessionGitContext, cwd?: string, model?: string): Promise<string | null>;
207
216
  /**
208
217
  * `POST /v1/code/sessions/{id}/bridge` — mint a worker JWT for the session.
209
218
  * Returns credentials, a `CredentialsFailure` for terminal authz failures