@@ -73,10 +73,9 @@ export interface AgentEvent {
7373 data ?: string
7474 /**
7575 * Structured discriminant for tool failures on `tool_end` events
76- * (JSON-encoded with a `type` field on the top level, e.g.
77- * `{"type":"version_conflict","path":"doc.md","expected":"etag-1","actual":"etag-2"}`).
78- * Undefined on success or untyped failure. Streaming consumers parse
79- * this to branch on the failure kind without scanning `toolOutput`.
76+ * (JSON-encoded with a `type` field). `None` on success or untyped
77+ * failure. Lets streaming consumers branch on the failure kind
78+ * without scanning `tool_output`.
8079 */
8180 errorKindJson ?: string
8281}
@@ -126,7 +125,7 @@ export interface ToolResult {
126125 * Structured discriminant for tool failures, JSON-encoded with a
127126 * `type` field on the top level — e.g.
128127 * `{"type":"version_conflict","path":"doc.md","expected":"etag-1","actual":"etag-2"}`.
129- * Undefined on success or untyped failure. SDK callers parse it to
128+ * `None` on success or untyped failure. SDK callers parse it to
130129 * branch on the failure kind without scanning the `output` string.
131130 */
132131 errorKindJson ?: string
@@ -225,16 +224,6 @@ export interface InlineSkill {
225224 /** Markdown content for the skill. */
226225 content : string
227226}
228- export interface AutoDelegationOptions {
229- /** Enable runtime-driven automatic child-agent delegation. */
230- enabled ?: boolean
231- /** Allow automatic delegation to launch multiple child agents in parallel. */
232- autoParallel ?: boolean
233- /** Minimum local confidence required to auto-delegate a child task. */
234- minConfidence ?: number
235- /** Maximum number of automatic child tasks per user request. */
236- maxTasks ?: number
237- }
238227export interface JsMemoryStore {
239228 backend : string
240229 dir ?: string
@@ -305,20 +294,21 @@ export interface JsS3BackendConfig {
305294 */
306295 maxGrepBytesPerObject ?: number
307296 /**
308- * Concurrent object downloads during `grep`. Defaults to 8 on the Rust
309- * side. Set lower when the gitserver / S3 endpoint rate-limits
297+ * Concurrent object downloads during `grep`. Defaults to 8 on the
298+ * Rust side. Set lower when the gitserver / S3 endpoint rate-limits
310299 * aggressively; set higher when latency dominates. Ignored when
311300 * `searchEnabled` is `false`.
312301 */
313302 searchConcurrency ?: number
314303}
315304/**
316- * Configuration for a `RemoteGitBackend` — an HTTP/JSON client that
305+ * Configuration for a [ `RemoteGitBackend`] — an HTTP/JSON client that
317306 * brings the `git` tool to non-local workspaces (S3, future container /
318307 * DFS).
319308 *
320309 * Pass alongside `workspaceBackend` on a session to attach remote git
321- * on top of any filesystem backend.
310+ * on top of any filesystem backend. The protocol is specified in the
311+ * repository RFC `apps/docs/content/docs/en/code/rfcs/workspace-remote-git.mdx`.
322312 */
323313export interface JsRemoteGitBackendConfig {
324314 /**
@@ -333,14 +323,15 @@ export interface JsRemoteGitBackendConfig {
333323 repoId : string
334324 /**
335325 * Bearer token sent as `Authorization: Bearer <token>`. Required in
336- * production; omitting it emits a server-side warning and is only safe
326+ * production; omitting it emits a `tracing::warn!` and is only safe
337327 * on a trusted localhost gitserver.
338328 */
339329 bearerToken ?: string
340330 /**
341- * mTLS client certificate path (PEM). When set together with `clientKeyPem`,
342- * the backend reads both files at construction and configures mTLS on the
343- * HTTP client. Setting only one of the pair errors at construction.
331+ * mTLS client certificate path (PEM). When set together with
332+ * `clientKeyPem`, the backend reads both files at construction and
333+ * configures mTLS on the HTTP client. Setting only one of the pair
334+ * errors at construction.
344335 */
345336 clientCertPem ?: string
346337 /**
@@ -444,12 +435,19 @@ export interface PendingConfirmation {
444435 /** Milliseconds remaining before the confirmation times out. */
445436 remainingMs : number
446437}
447- /** Retention limits for large tool/program artifacts. */
448- export interface ArtifactStoreLimits {
449- /** Maximum number of artifacts retained by a session. */
450- maxArtifacts ?: number
451- /** Maximum total artifact content bytes retained by a session. */
452- maxBytes ?: number
438+ export interface AutoDelegationOptions {
439+ /** Enable runtime-driven automatic child-agent delegation. */
440+ enabled ?: boolean
441+ /**
442+ * Allow automatic delegation to launch multiple child agents in parallel.
443+ *
444+ * Manual `parallel_task` calls remain available when this is false.
445+ */
446+ autoParallel ?: boolean
447+ /** Minimum local confidence required to auto-delegate a child task. */
448+ minConfidence ?: number
449+ /** Maximum number of automatic child tasks per user request. */
450+ maxTasks ?: number
453451}
454452export interface SessionOptions {
455453 /** Override the default model. Format: "provider/model" (e.g., "openai/gpt-4o"). */
@@ -668,6 +666,13 @@ export interface SessionOptions {
668666 */
669667 maxExecutionTimeMs ?: number
670668}
669+ /** Retention limits for large tool/program artifacts. */
670+ export interface ArtifactStoreLimits {
671+ /** Maximum number of artifacts retained by a session. */
672+ maxArtifacts ?: number
673+ /** Maximum total artifact content bytes retained by a session. */
674+ maxBytes ?: number
675+ }
671676/** A single message in conversation history. */
672677export interface MessageObject {
673678 role : string
@@ -1174,6 +1179,18 @@ export declare class Session {
11741179 currentRun ( ) : Promise < any >
11751180 /** Return active tool calls observed for the currently running operation. */
11761181 activeTools ( ) : Promise < any >
1182+ /**
1183+ * Look up a delegated subagent task by id. Resolves to `null` when no
1184+ * such task has been observed in this session.
1185+ */
1186+ subagentTask ( taskId : string ) : Promise < any >
1187+ /**
1188+ * Return snapshots of every delegated subagent task observed in this
1189+ * session (including completed and failed ones), oldest first.
1190+ */
1191+ subagentTasks ( ) : Promise < any >
1192+ /** Return snapshots of subagent tasks still in `running` state. */
1193+ pendingSubagentTasks ( ) : Promise < any >
11771194 /** Cancel a specific run only if it is still the active run. */
11781195 cancelRun ( runId : string ) : Promise < boolean >
11791196 /** Execute a tool by name, bypassing the LLM. */
@@ -1261,9 +1278,9 @@ export declare class Session {
12611278 /** Return compact execution trace events recorded for this session. */
12621279 traceEvents ( ) : any
12631280 /** Return structured verification reports recorded for this session. */
1264- verificationReports ( ) : Array < VerificationReport >
1281+ verificationReports ( ) : any
12651282 /** Add externally produced verification reports to this session. */
1266- recordVerificationReports ( reports : Array < VerificationReport > | VerificationReport ) : void
1283+ recordVerificationReports ( reports : any ) : void
12671284 /** Return a structured verification summary for this session. */
12681285 verificationSummary ( ) : any
12691286 /** Return a concise human-readable verification summary for this session. */
@@ -1369,7 +1386,7 @@ export declare class Session {
13691386 /** Return full model-visible tool definitions currently registered on this session. */
13701387 toolDefinitions ( ) : any
13711388 /** Return a stored tool artifact by URI, or null if it is not retained. */
1372- getArtifact ( artifactUri : string ) : ToolArtifact | null
1389+ getArtifact ( artifactUri : string ) : any
13731390 /**
13741391 * Register a hook for lifecycle event interception.
13751392 *
0 commit comments