@github/copilot-sdk 1.0.6-preview.0 → 1.0.6

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.
@@ -3,7 +3,7 @@
3
3
  * Generated from: api.schema.json
4
4
  */
5
5
  import type { MessageConnection } from "vscode-jsonrpc/node.js";
6
- import type { AbortReason, Attachment, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpServerSource, McpServerStatus, PermissionPromptRequest, PermissionRule, ReasoningSummary, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, UserToolSessionApproval } from "./session-events.js";
6
+ import type { AbortReason, Attachment, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpServerSource, McpServerStatus, PermissionPromptRequest, PermissionRule, ReasoningSummary, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, UserToolSessionApproval, Verbosity } from "./session-events.js";
7
7
  /**
8
8
  * Initial authentication info for the session.
9
9
  *
@@ -188,6 +188,20 @@ export type AgentRegistrySpawnValidationErrorField =
188
188
  | "model"
189
189
  /** The permissionMode parameter */
190
190
  | "permissionMode";
191
+ /**
192
+ * Current or requested allow-all mode.
193
+ *
194
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
195
+ * via the `definition` "PermissionsAllowAllMode".
196
+ */
197
+ /** @experimental */
198
+ export type PermissionsAllowAllMode =
199
+ /** Permission requests follow the normal approval flow. */
200
+ "off"
201
+ /** Tool, path, and URL permission requests are automatically approved. */
202
+ | "on"
203
+ /** Permission requests follow the normal approval flow with an LLM advisory recommendation attached; clients may choose to auto-approve requests the judge evaluated as acceptable. */
204
+ | "auto";
191
205
  /**
192
206
  * Authentication type
193
207
  *
@@ -266,6 +280,82 @@ export type ContentFilterMode =
266
280
  | "markdown"
267
281
  /** Remove characters that can hide directives. */
268
282
  | "hidden_characters";
283
+ /**
284
+ * Source category for a collected debug bundle entry.
285
+ *
286
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
287
+ * via the `definition` "DebugCollectLogsSource".
288
+ */
289
+ /** @experimental */
290
+ export type DebugCollectLogsSource =
291
+ /** Session event log. */
292
+ "events"
293
+ /** Process log for the session. */
294
+ | "process-log"
295
+ /** Interactive shell log for the session. */
296
+ | "shell-log"
297
+ /** Caller-provided diagnostic entry. */
298
+ | "additional";
299
+ /**
300
+ * Destination for the redacted debug bundle.
301
+ *
302
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
303
+ * via the `definition` "DebugCollectLogsDestination".
304
+ */
305
+ /** @experimental */
306
+ export type DebugCollectLogsDestination = {
307
+ /**
308
+ * Absolute or server-relative path for the .tgz archive to create.
309
+ */
310
+ outputPath: string;
311
+ /**
312
+ * When true, create the archive atomically without overwriting an existing file by appending ` (N)` before the extension as needed. Defaults to false.
313
+ */
314
+ noOverwrite?: boolean;
315
+ kind: "archive";
316
+ } | {
317
+ /**
318
+ * Directory where redacted files should be staged. The directory is created if needed.
319
+ */
320
+ outputDirectory: string;
321
+ kind: "directory";
322
+ };
323
+ /**
324
+ * Kind of caller-provided debug log entry.
325
+ *
326
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
327
+ * via the `definition` "DebugCollectLogsEntryKind".
328
+ */
329
+ /** @experimental */
330
+ export type DebugCollectLogsEntryKind =
331
+ /** Include a single server-local file. */
332
+ "file"
333
+ /** Include files from a server-local directory recursively. */
334
+ | "directory";
335
+ /**
336
+ * How a collected debug entry should be redacted before being staged.
337
+ *
338
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
339
+ * via the `definition` "DebugCollectLogsRedaction".
340
+ */
341
+ /** @experimental */
342
+ export type DebugCollectLogsRedaction =
343
+ /** Redact the file as plain UTF-8 log text. */
344
+ "plain-text"
345
+ /** Redact each non-empty line as a session event JSON object, falling back to plain-text redaction for malformed lines. */
346
+ | "events-jsonl";
347
+ /**
348
+ * Destination kind that was written.
349
+ *
350
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
351
+ * via the `definition` "DebugCollectLogsResultKind".
352
+ */
353
+ /** @experimental */
354
+ export type DebugCollectLogsResultKind =
355
+ /** A .tgz archive was written. */
356
+ "archive"
357
+ /** A directory containing redacted files was written. */
358
+ | "directory";
269
359
  /**
270
360
  * Server transport type: stdio, http, sse (deprecated), or memory
271
361
  *
@@ -756,6 +846,59 @@ export type McpSetEnvValueModeDetails =
756
846
  "direct"
757
847
  /** Treat MCP server environment values as host-side references to resolve before launch. */
758
848
  | "indirect";
849
+ /**
850
+ * Per-source context-window attribution, or null if the session has not yet been initialized (no system prompt or tool metadata cached).
851
+ *
852
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
853
+ * via the `definition` "SessionContextAttribution".
854
+ */
855
+ /** @experimental */
856
+ export type SessionContextAttribution = {
857
+ /**
858
+ * Total token count of the current context window the entries are measured against (system message + conversation messages + tool definitions — the same total reported by /context). Divide an entry's `tokens` by this to derive its share.
859
+ */
860
+ totalTokens: number;
861
+ /**
862
+ * Flat list of per-source attribution entries. Group by `kind` and render unrecognized kinds generically. Nesting and rollups are expressed via `parentId`.
863
+ */
864
+ entries: {
865
+ /**
866
+ * Source category for this entry. Not a closed set — tolerate unknown values. Known values today: `skill`, `subagent`, `mcpServer`, `tool`, `system`, `toolDefinition`, `plugin`.
867
+ */
868
+ kind: string;
869
+ /**
870
+ * Identifier for this entry, formed by joining its `kind` and source name (e.g. `tool:bash`, `skill:tmux`, `toolDefinition:bash`); unique within the snapshot. Use it to match the same entry across snapshots, to correlate with other APIs (skill/agent/MCP registries), and as the `parentId` target for nesting. Distinct from the human-facing `label`.
871
+ */
872
+ id: string;
873
+ /**
874
+ * Human-readable display label, e.g. `bash` or `skill: tmux`. Presentation-only; may be localized/reformatted without notice — do not key off it.
875
+ */
876
+ label: string;
877
+ /**
878
+ * Token count currently in context attributable to this entry.
879
+ */
880
+ tokens: number;
881
+ /**
882
+ * Optional `id` of the parent entry: e.g. a `plugin` entry parenting its `skill`/`mcpServer` entries, or the `system` entry parenting `toolDefinition` entries. Omitted for top-level entries.
883
+ */
884
+ parentId?: string;
885
+ /**
886
+ * Supplementary per-entry metadata (e.g. `messageCount`, `role`, `evictable`, `pluginSource`). Values are stringified; parse as needed and ignore unrecognized keys.
887
+ */
888
+ attributes?: {
889
+ [k: string]: string | undefined;
890
+ };
891
+ }[];
892
+ /**
893
+ * Successful compaction history for the session.
894
+ */
895
+ compactions: {
896
+ /**
897
+ * Number of successful compactions in this session.
898
+ */
899
+ count: number;
900
+ };
901
+ } | null;
759
902
  /**
760
903
  * Token breakdown for the current context window, or null if the session has not yet been initialized (no system prompt or tool metadata cached).
761
904
  *
@@ -1126,7 +1269,7 @@ export type ProviderEndpointTransport =
1126
1269
  /** WebSocket transport. */
1127
1270
  | "websockets";
1128
1271
  /**
1129
- * Schema for the `PushAttachment` type.
1272
+ * Attachment union accepted by push input, covering files, directories, GitHub objects, blobs, snippets, and extension context.
1130
1273
  *
1131
1274
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1132
1275
  * via the `definition` "PushAttachment".
@@ -1483,6 +1626,52 @@ export type SessionsOpenProgressStatus =
1483
1626
  "in-progress"
1484
1627
  /** The step has completed successfully. */
1485
1628
  | "complete";
1629
+ /**
1630
+ * Rust-owned settings predicates exposed across the SDK boundary. Raw feature-flag names are intentionally not part of the contract.
1631
+ *
1632
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1633
+ * via the `definition` "SessionSettingsPredicateName".
1634
+ */
1635
+ /** @experimental */
1636
+ export type SessionSettingsPredicateName =
1637
+ /** Whether the security-tools feature flag enables security tool wiring. */
1638
+ "securityToolsEnabled"
1639
+ /** Whether third-party security tools should receive the security prompt. */
1640
+ | "thirdPartySecurityPromptEnabled"
1641
+ /** Whether validation may run in parallel. */
1642
+ | "parallelValidationEnabled"
1643
+ /** Whether runtime timing telemetry is enabled. */
1644
+ | "runtimeTimingTelemetryEnabled"
1645
+ /** Whether the co-author hook is enabled. */
1646
+ | "coAuthorHookEnabled"
1647
+ /** Whether Chronicle integration is enabled. */
1648
+ | "chronicleEnabled"
1649
+ /** Whether content-exclusion policy may self-fetch data. */
1650
+ | "contentExclusionSelfFetchEnabled"
1651
+ /** Whether Claude Opus token-limit caps should be applied. */
1652
+ | "capClaudeOpusTokenLimitsEnabled"
1653
+ /** Whether code-review behavior is enabled. */
1654
+ | "codeReviewFeatureEnabled"
1655
+ /** Whether CCA should use the TypeScript autofind behavior. */
1656
+ | "ccaUseTsAutofindEnabled"
1657
+ /** Whether the dependency checker is enabled. */
1658
+ | "dependencyCheckerEnabled"
1659
+ /** Whether the Dependabot checker is enabled. */
1660
+ | "dependabotCheckerEnabled"
1661
+ /** Whether the CodeQL checker is enabled. */
1662
+ | "codeqlCheckerEnabled"
1663
+ /** Whether trivial-change handling is enabled. */
1664
+ | "trivialChangeEnabled"
1665
+ /** Whether trivial-change skip behavior is enabled. */
1666
+ | "trivialChangeSkipEnabled"
1667
+ /** Whether trivial-change handling is enabled for code review. */
1668
+ | "trivialChangeEnabledForCodeReview"
1669
+ /** Whether trivial-change skip behavior is enabled for code review. */
1670
+ | "trivialChangeSkipEnabledForCodeReview"
1671
+ /** Whether trivial-change handling is enabled for a specific tool. */
1672
+ | "trivialChangeEnabledForTool"
1673
+ /** Whether trivial-change skip behavior is enabled for a specific tool. */
1674
+ | "trivialChangeSkipEnabledForTool";
1486
1675
  /**
1487
1676
  * Which session sources to include. Defaults to `local` for backward compatibility.
1488
1677
  *
@@ -1619,7 +1808,7 @@ export type TaskExecutionMode =
1619
1808
  /** The task is managed in the background. */
1620
1809
  | "background";
1621
1810
  /**
1622
- * Schema for the `TaskInfo` type.
1811
+ * Tracked task union returned by task APIs, containing either an agent task or a shell task.
1623
1812
  *
1624
1813
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1625
1814
  * via the `definition` "TaskInfo".
@@ -1661,7 +1850,7 @@ export type UIAutoModeSwitchResponse =
1661
1850
  /** Decline the automatic mode switch. */
1662
1851
  | "no";
1663
1852
  /**
1664
- * Schema for the `UIElicitationFieldValue` type.
1853
+ * Submitted UI elicitation field value: string, number, boolean, or an array of strings.
1665
1854
  *
1666
1855
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1667
1856
  * via the `definition` "UIElicitationFieldValue".
@@ -1828,7 +2017,7 @@ export interface AbortResult {
1828
2017
  error?: string;
1829
2018
  }
1830
2019
  /**
1831
- * Schema for the `AccountAllUsers` type.
2020
+ * Authenticated account entry returned by `account.getAllUsers`, with auth info and an optional associated token.
1832
2021
  *
1833
2022
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1834
2023
  * via the `definition` "AccountAllUsers".
@@ -1842,7 +2031,7 @@ export interface AccountAllUsers {
1842
2031
  token?: string;
1843
2032
  }
1844
2033
  /**
1845
- * Schema for the `HMACAuthInfo` type.
2034
+ * Authentication-info variant for GitHub-internal HMAC auth, carrying the public GitHub host and HMAC secret.
1846
2035
  *
1847
2036
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1848
2037
  * via the `definition` "HMACAuthInfo".
@@ -1871,18 +2060,48 @@ export interface HMACAuthInfo {
1871
2060
  */
1872
2061
  /** @experimental */
1873
2062
  export interface CopilotUserResponse {
2063
+ /**
2064
+ * GitHub login of the authenticated user.
2065
+ */
1874
2066
  login?: string;
2067
+ /**
2068
+ * Copilot access SKU identifier (e.g. `free_limited_copilot`, `copilot_for_business_seat_quota`) used to gate model and feature access.
2069
+ */
1875
2070
  access_type_sku?: string;
2071
+ /**
2072
+ * Opaque analytics tracking identifier for the user, forwarded from the Copilot API.
2073
+ */
1876
2074
  analytics_tracking_id?: string;
2075
+ /**
2076
+ * Date the Copilot seat was assigned to the user, if applicable.
2077
+ */
1877
2078
  assigned_date?: ({
1878
2079
  [k: string]: unknown | undefined;
1879
2080
  } | string) | null;
2081
+ /**
2082
+ * Whether the user is eligible to sign up for the free/limited Copilot tier.
2083
+ */
1880
2084
  can_signup_for_limited?: boolean;
2085
+ /**
2086
+ * Whether Copilot chat is enabled for the user.
2087
+ */
1881
2088
  chat_enabled?: boolean;
2089
+ /**
2090
+ * Copilot plan name for the user (e.g. `individual`, `business`, `enterprise`).
2091
+ */
1882
2092
  copilot_plan?: string;
2093
+ /**
2094
+ * Whether `.copilotignore` content-exclusion support is enabled for the user.
2095
+ */
1883
2096
  copilotignore_enabled?: boolean;
1884
2097
  endpoints?: CopilotUserResponseEndpoints;
2098
+ /**
2099
+ * Logins of the organizations the user belongs to.
2100
+ */
1885
2101
  organization_login_list?: string[];
2102
+ /**
2103
+ * Organizations the user belongs to, each with an optional login and display name.
2104
+ */
1886
2105
  organization_list?: ({
1887
2106
  [k: string]: unknown | undefined;
1888
2107
  } | ({
@@ -1893,30 +2112,72 @@ export interface CopilotUserResponse {
1893
2112
  [k: string]: unknown | undefined;
1894
2113
  } | string) | null;
1895
2114
  } | null)[]) | null;
2115
+ /**
2116
+ * Whether the Codex agent is enabled for the user.
2117
+ */
1896
2118
  codex_agent_enabled?: boolean;
2119
+ /**
2120
+ * Whether MCP (Model Context Protocol) support is enabled for the user.
2121
+ */
1897
2122
  is_mcp_enabled?: ({
1898
2123
  [k: string]: unknown | undefined;
1899
2124
  } | boolean) | null;
2125
+ /**
2126
+ * Date the user's usage quota next resets, as a raw string from the Copilot API; see `quota_reset_date_utc` for the UTC-normalized value.
2127
+ */
1900
2128
  quota_reset_date?: string;
1901
2129
  quota_snapshots?: CopilotUserResponseQuotaSnapshots;
2130
+ /**
2131
+ * Whether the user's telemetry is subject to restricted-data handling.
2132
+ */
1902
2133
  restricted_telemetry?: boolean;
2134
+ /**
2135
+ * Whether the user is a GitHub/Microsoft staff member.
2136
+ */
1903
2137
  is_staff?: boolean;
2138
+ /**
2139
+ * Raw passthrough of the Copilot API `te` flag for the user (an opaque server-side eligibility signal surfaced in telemetry); not otherwise interpreted by the runtime.
2140
+ */
1904
2141
  te?: boolean;
2142
+ /**
2143
+ * Whether the account is on usage-based (token/AI-credit) billing rather than a fixed premium-request quota.
2144
+ */
1905
2145
  token_based_billing?: boolean;
2146
+ /**
2147
+ * Whether the user is able to upgrade their Copilot plan.
2148
+ */
1906
2149
  can_upgrade_plan?: boolean;
2150
+ /**
2151
+ * UTC-normalized form of `quota_reset_date` (the date the user's usage quota next resets).
2152
+ */
1907
2153
  quota_reset_date_utc?: string;
2154
+ /**
2155
+ * Per-category quota allotments for free/limited-tier users, keyed by quota category.
2156
+ */
1908
2157
  limited_user_quotas?: {
1909
2158
  [k: string]: number | undefined;
1910
2159
  };
2160
+ /**
2161
+ * Date the free/limited-tier user's quotas next reset, as a raw string from the Copilot API.
2162
+ */
1911
2163
  limited_user_reset_date?: string;
2164
+ /**
2165
+ * Per-category monthly quota allotments, keyed by quota category.
2166
+ */
1912
2167
  monthly_quotas?: {
1913
2168
  [k: string]: number | undefined;
1914
2169
  };
2170
+ /**
2171
+ * Whether cloud session storage is enabled for the user.
2172
+ */
1915
2173
  cloud_session_storage_enabled?: boolean;
2174
+ /**
2175
+ * Whether CLI remote control is enabled for the user.
2176
+ */
1916
2177
  cli_remote_control_enabled?: boolean;
1917
2178
  }
1918
2179
  /**
1919
- * Schema for the `CopilotUserResponseEndpoints` type.
2180
+ * Endpoint URLs from the raw Copilot `/copilot_internal/v2/token` user-response passthrough.
1920
2181
  *
1921
2182
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1922
2183
  * via the `definition` "CopilotUserResponseEndpoints".
@@ -1929,7 +2190,7 @@ export interface CopilotUserResponseEndpoints {
1929
2190
  telemetry?: string;
1930
2191
  }
1931
2192
  /**
1932
- * Schema for the `CopilotUserResponseQuotaSnapshots` type.
2193
+ * Quota snapshot map from the raw Copilot user-response passthrough, with chat, completions, premium-interactions, and other entries.
1933
2194
  *
1934
2195
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1935
2196
  * via the `definition` "CopilotUserResponseQuotaSnapshots".
@@ -1955,70 +2216,178 @@ export interface CopilotUserResponseQuotaSnapshots {
1955
2216
  } | null) | undefined;
1956
2217
  }
1957
2218
  /**
1958
- * Schema for the `CopilotUserResponseQuotaSnapshotsChat` type.
2219
+ * Chat quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
1959
2220
  *
1960
2221
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1961
2222
  * via the `definition` "CopilotUserResponseQuotaSnapshotsChat".
1962
2223
  */
1963
2224
  /** @experimental */
1964
2225
  export interface CopilotUserResponseQuotaSnapshotsChat {
2226
+ /**
2227
+ * Number of requests/units included in the entitlement for this period; `-1` denotes an unlimited entitlement.
2228
+ */
1965
2229
  entitlement?: number;
2230
+ /**
2231
+ * Count of additional pay-per-request usage consumed this period beyond the entitlement.
2232
+ */
1966
2233
  overage_count?: number;
2234
+ /**
2235
+ * Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
2236
+ */
1967
2237
  overage_permitted?: boolean;
2238
+ /**
2239
+ * Percentage of the entitlement remaining at the snapshot timestamp.
2240
+ */
1968
2241
  percent_remaining?: number;
2242
+ /**
2243
+ * Identifier of the quota bucket this snapshot describes.
2244
+ */
1969
2245
  quota_id?: string;
2246
+ /**
2247
+ * Amount of quota remaining at the snapshot timestamp.
2248
+ */
1970
2249
  quota_remaining?: number;
2250
+ /**
2251
+ * Remaining entitlement/quota amount at the snapshot timestamp.
2252
+ */
1971
2253
  remaining?: number;
2254
+ /**
2255
+ * Whether the entitlement for this category is unlimited.
2256
+ */
1972
2257
  unlimited?: boolean;
2258
+ /**
2259
+ * UTC timestamp when this snapshot was captured.
2260
+ */
1973
2261
  timestamp_utc?: string;
2262
+ /**
2263
+ * Whether the user currently has quota available; when `false` and not unlimited, further requests are blocked until the quota resets.
2264
+ */
1974
2265
  has_quota?: boolean;
2266
+ /**
2267
+ * Unix epoch time, in seconds, when this quota next resets.
2268
+ */
1975
2269
  quota_reset_at?: number;
2270
+ /**
2271
+ * Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
2272
+ */
1976
2273
  token_based_billing?: boolean;
1977
2274
  }
1978
2275
  /**
1979
- * Schema for the `CopilotUserResponseQuotaSnapshotsCompletions` type.
2276
+ * Completions quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
1980
2277
  *
1981
2278
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
1982
2279
  * via the `definition` "CopilotUserResponseQuotaSnapshotsCompletions".
1983
2280
  */
1984
2281
  /** @experimental */
1985
2282
  export interface CopilotUserResponseQuotaSnapshotsCompletions {
2283
+ /**
2284
+ * Number of requests/units included in the entitlement for this period; `-1` denotes an unlimited entitlement.
2285
+ */
1986
2286
  entitlement?: number;
2287
+ /**
2288
+ * Count of additional pay-per-request usage consumed this period beyond the entitlement.
2289
+ */
1987
2290
  overage_count?: number;
2291
+ /**
2292
+ * Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
2293
+ */
1988
2294
  overage_permitted?: boolean;
2295
+ /**
2296
+ * Percentage of the entitlement remaining at the snapshot timestamp.
2297
+ */
1989
2298
  percent_remaining?: number;
2299
+ /**
2300
+ * Identifier of the quota bucket this snapshot describes.
2301
+ */
1990
2302
  quota_id?: string;
2303
+ /**
2304
+ * Amount of quota remaining at the snapshot timestamp.
2305
+ */
1991
2306
  quota_remaining?: number;
2307
+ /**
2308
+ * Remaining entitlement/quota amount at the snapshot timestamp.
2309
+ */
1992
2310
  remaining?: number;
2311
+ /**
2312
+ * Whether the entitlement for this category is unlimited.
2313
+ */
1993
2314
  unlimited?: boolean;
2315
+ /**
2316
+ * UTC timestamp when this snapshot was captured.
2317
+ */
1994
2318
  timestamp_utc?: string;
2319
+ /**
2320
+ * Whether the user currently has quota available; when `false` and not unlimited, further requests are blocked until the quota resets.
2321
+ */
1995
2322
  has_quota?: boolean;
2323
+ /**
2324
+ * Unix epoch time, in seconds, when this quota next resets.
2325
+ */
1996
2326
  quota_reset_at?: number;
2327
+ /**
2328
+ * Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
2329
+ */
1997
2330
  token_based_billing?: boolean;
1998
2331
  }
1999
2332
  /**
2000
- * Schema for the `CopilotUserResponseQuotaSnapshotsPremiumInteractions` type.
2333
+ * Premium-interactions quota snapshot from the raw Copilot user-response passthrough, with entitlement, overage, remaining quota, reset, and billing fields.
2001
2334
  *
2002
2335
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2003
2336
  * via the `definition` "CopilotUserResponseQuotaSnapshotsPremiumInteractions".
2004
2337
  */
2005
2338
  /** @experimental */
2006
2339
  export interface CopilotUserResponseQuotaSnapshotsPremiumInteractions {
2340
+ /**
2341
+ * Number of requests/units included in the entitlement for this period; `-1` denotes an unlimited entitlement.
2342
+ */
2007
2343
  entitlement?: number;
2344
+ /**
2345
+ * Count of additional pay-per-request usage consumed this period beyond the entitlement.
2346
+ */
2008
2347
  overage_count?: number;
2348
+ /**
2349
+ * Whether usage may continue at pay-per-request rates once the entitlement is exhausted.
2350
+ */
2009
2351
  overage_permitted?: boolean;
2352
+ /**
2353
+ * Percentage of the entitlement remaining at the snapshot timestamp.
2354
+ */
2010
2355
  percent_remaining?: number;
2356
+ /**
2357
+ * Identifier of the quota bucket this snapshot describes.
2358
+ */
2011
2359
  quota_id?: string;
2360
+ /**
2361
+ * Amount of quota remaining at the snapshot timestamp.
2362
+ */
2012
2363
  quota_remaining?: number;
2364
+ /**
2365
+ * Remaining entitlement/quota amount at the snapshot timestamp.
2366
+ */
2013
2367
  remaining?: number;
2368
+ /**
2369
+ * Whether the entitlement for this category is unlimited.
2370
+ */
2014
2371
  unlimited?: boolean;
2372
+ /**
2373
+ * UTC timestamp when this snapshot was captured.
2374
+ */
2015
2375
  timestamp_utc?: string;
2376
+ /**
2377
+ * Whether the user currently has quota available; when `false` and not unlimited, further requests are blocked until the quota resets.
2378
+ */
2016
2379
  has_quota?: boolean;
2380
+ /**
2381
+ * Unix epoch time, in seconds, when this quota next resets.
2382
+ */
2017
2383
  quota_reset_at?: number;
2384
+ /**
2385
+ * Whether this category uses usage-based (token/AI-credit) billing rather than a fixed premium-request count.
2386
+ */
2018
2387
  token_based_billing?: boolean;
2019
2388
  }
2020
2389
  /**
2021
- * Schema for the `EnvAuthInfo` type.
2390
+ * Authentication-info variant for a token sourced from an environment variable, with host, optional login, token, and env var name.
2022
2391
  *
2023
2392
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2024
2393
  * via the `definition` "EnvAuthInfo".
@@ -2048,7 +2417,7 @@ export interface EnvAuthInfo {
2048
2417
  copilotUser?: CopilotUserResponse;
2049
2418
  }
2050
2419
  /**
2051
- * Schema for the `TokenAuthInfo` type.
2420
+ * Authentication-info variant for SDK-configured token authentication, carrying host and the secret token value.
2052
2421
  *
2053
2422
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2054
2423
  * via the `definition` "TokenAuthInfo".
@@ -2070,7 +2439,7 @@ export interface TokenAuthInfo {
2070
2439
  copilotUser?: CopilotUserResponse;
2071
2440
  }
2072
2441
  /**
2073
- * Schema for the `CopilotApiTokenAuthInfo` type.
2442
+ * Authentication-info variant for direct Copilot API token auth sourced from environment variables, with public GitHub host.
2074
2443
  *
2075
2444
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2076
2445
  * via the `definition` "CopilotApiTokenAuthInfo".
@@ -2088,7 +2457,7 @@ export interface CopilotApiTokenAuthInfo {
2088
2457
  copilotUser?: CopilotUserResponse;
2089
2458
  }
2090
2459
  /**
2091
- * Schema for the `UserAuthInfo` type.
2460
+ * Authentication-info variant for OAuth user auth, with host and login; the token remains in the runtime secret store.
2092
2461
  *
2093
2462
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2094
2463
  * via the `definition` "UserAuthInfo".
@@ -2110,7 +2479,7 @@ export interface UserAuthInfo {
2110
2479
  copilotUser?: CopilotUserResponse;
2111
2480
  }
2112
2481
  /**
2113
- * Schema for the `GhCliAuthInfo` type.
2482
+ * Authentication-info variant for GitHub CLI credentials, carrying host, login, and the `gh auth token` value.
2114
2483
  *
2115
2484
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2116
2485
  * via the `definition` "GhCliAuthInfo".
@@ -2136,7 +2505,7 @@ export interface GhCliAuthInfo {
2136
2505
  copilotUser?: CopilotUserResponse;
2137
2506
  }
2138
2507
  /**
2139
- * Schema for the `ApiKeyAuthInfo` type.
2508
+ * Authentication-info variant for API-key authentication to a non-GitHub LLM provider, carrying the secret `apiKey` and host.
2140
2509
  *
2141
2510
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2142
2511
  * via the `definition` "ApiKeyAuthInfo".
@@ -2194,7 +2563,7 @@ export interface AccountGetQuotaResult {
2194
2563
  };
2195
2564
  }
2196
2565
  /**
2197
- * Schema for the `AccountQuotaSnapshot` type.
2566
+ * Quota usage snapshot for a Copilot quota type, including entitlement, used requests, overage, reset date, and remaining percentage.
2198
2567
  *
2199
2568
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2200
2569
  * via the `definition` "AccountQuotaSnapshot".
@@ -2292,7 +2661,7 @@ export interface AccountLogoutResult {
2292
2661
  hasMoreUsers: boolean;
2293
2662
  }
2294
2663
  /**
2295
- * Schema for the `AgentDiscoveryPath` type.
2664
+ * Canonical directory where custom agents can be discovered or created, with scope, preference, and optional project path.
2296
2665
  *
2297
2666
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2298
2667
  * via the `definition` "AgentDiscoveryPath".
@@ -2340,7 +2709,7 @@ export interface AgentGetCurrentResult {
2340
2709
  agent?: AgentInfo | null;
2341
2710
  }
2342
2711
  /**
2343
- * Schema for the `AgentInfo` type.
2712
+ * Custom agent metadata, including identifiers, display details, source, tools, model, MCP servers, skills, and file path.
2344
2713
  *
2345
2714
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2346
2715
  * via the `definition` "AgentInfo".
@@ -2687,12 +3056,13 @@ export interface AllowAllPermissionSetResult {
2687
3056
  */
2688
3057
  success: boolean;
2689
3058
  /**
2690
- * Authoritative allow-all state after the mutation
3059
+ * Authoritative full allow-all state after the mutation
2691
3060
  */
2692
3061
  enabled: boolean;
3062
+ mode?: PermissionsAllowAllMode;
2693
3063
  }
2694
3064
  /**
2695
- * Current full allow-all permission state.
3065
+ * Current allow-all permission mode.
2696
3066
  *
2697
3067
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2698
3068
  * via the `definition` "AllowAllPermissionState".
@@ -2703,6 +3073,7 @@ export interface AllowAllPermissionState {
2703
3073
  * Whether full allow-all permissions are currently active
2704
3074
  */
2705
3075
  enabled: boolean;
3076
+ mode?: PermissionsAllowAllMode;
2706
3077
  }
2707
3078
  /**
2708
3079
  * Cancellation result for a user-requested shell command.
@@ -3102,7 +3473,7 @@ export interface CommandList {
3102
3473
  commands: SlashCommandInfo[];
3103
3474
  }
3104
3475
  /**
3105
- * Schema for the `SlashCommandInfo` type.
3476
+ * Slash-command metadata with name, aliases, description, kind, input hint, execution allowance, and schedulability.
3106
3477
  *
3107
3478
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3108
3479
  * via the `definition` "SlashCommandInfo".
@@ -3148,6 +3519,10 @@ export interface SlashCommandInput {
3148
3519
  * Hint to display when command input has not been provided
3149
3520
  */
3150
3521
  hint: string;
3522
+ /**
3523
+ * Optional literal choices the input accepts, each with a human-facing description; clients may render these as selectable options
3524
+ */
3525
+ choices?: SlashCommandInputChoice[];
3151
3526
  /**
3152
3527
  * When true, the command requires non-empty input; clients should render the input hint as required
3153
3528
  */
@@ -3158,6 +3533,23 @@ export interface SlashCommandInput {
3158
3533
  */
3159
3534
  preserveMultilineInput?: boolean;
3160
3535
  }
3536
+ /**
3537
+ * A literal choice the command input accepts, with a human-facing description
3538
+ *
3539
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3540
+ * via the `definition` "SlashCommandInputChoice".
3541
+ */
3542
+ /** @experimental */
3543
+ export interface SlashCommandInputChoice {
3544
+ /**
3545
+ * The literal choice value (e.g. 'on', 'off', 'show')
3546
+ */
3547
+ name: string;
3548
+ /**
3549
+ * Human-readable description shown alongside the choice
3550
+ */
3551
+ description: string;
3552
+ }
3161
3553
  /**
3162
3554
  * Pending command request ID and an optional error if the client handler failed.
3163
3555
  *
@@ -3241,7 +3633,7 @@ export interface CommandsRespondToQueuedCommandRequest {
3241
3633
  result: QueuedCommandResult;
3242
3634
  }
3243
3635
  /**
3244
- * Schema for the `QueuedCommandHandled` type.
3636
+ * Queued-command response indicating the host executed the command, with an optional flag to stop queue processing.
3245
3637
  *
3246
3638
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3247
3639
  * via the `definition` "QueuedCommandHandled".
@@ -3258,7 +3650,7 @@ export interface QueuedCommandHandled {
3258
3650
  stopProcessingQueue?: boolean;
3259
3651
  }
3260
3652
  /**
3261
- * Schema for the `QueuedCommandNotHandled` type.
3653
+ * Queued-command response indicating the host did not execute the command and the queue may continue.
3262
3654
  *
3263
3655
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3264
3656
  * via the `definition` "QueuedCommandNotHandled".
@@ -3436,6 +3828,31 @@ export interface ConnectRemoteSessionParams {
3436
3828
  */
3437
3829
  sessionId: string;
3438
3830
  }
3831
+ /**
3832
+ * A single large message currently in context.
3833
+ *
3834
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3835
+ * via the `definition` "ContextHeaviestMessage".
3836
+ */
3837
+ /** @experimental */
3838
+ export interface ContextHeaviestMessage {
3839
+ /**
3840
+ * Stable identifier for this message within the snapshot.
3841
+ */
3842
+ id: string;
3843
+ /**
3844
+ * Human-readable source label, e.g. `tool: bash` or `skill: tmux`. Presentation-only.
3845
+ */
3846
+ label: string;
3847
+ /**
3848
+ * Role of the chat message (`user`, `assistant`, or `tool`).
3849
+ */
3850
+ role: string;
3851
+ /**
3852
+ * Token count currently in context for this individual message.
3853
+ */
3854
+ tokens: number;
3855
+ }
3439
3856
  /**
3440
3857
  * The currently selected model, reasoning effort, and context tier for the session. The context tier reflects `Session.getContextTier()`, restored from the session journal on resume.
3441
3858
  *
@@ -3494,7 +3911,143 @@ export interface CurrentToolMetadata {
3494
3911
  deferLoading?: boolean;
3495
3912
  }
3496
3913
  /**
3497
- * Schema for the `DiscoveredMcpServer` type.
3914
+ * A file included in the redacted debug bundle.
3915
+ *
3916
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3917
+ * via the `definition` "DebugCollectLogsCollectedEntry".
3918
+ */
3919
+ /** @experimental */
3920
+ export interface DebugCollectLogsCollectedEntry {
3921
+ /**
3922
+ * Relative path of the file in the staged bundle/archive.
3923
+ */
3924
+ bundlePath: string;
3925
+ source: DebugCollectLogsSource;
3926
+ /**
3927
+ * Redacted output size in bytes.
3928
+ */
3929
+ sizeBytes: number;
3930
+ }
3931
+ /**
3932
+ * A caller-provided server-local file or directory to include in the debug bundle.
3933
+ *
3934
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3935
+ * via the `definition` "DebugCollectLogsEntry".
3936
+ */
3937
+ /** @experimental */
3938
+ export interface DebugCollectLogsEntry {
3939
+ kind: DebugCollectLogsEntryKind;
3940
+ /**
3941
+ * Server-local source path to read.
3942
+ */
3943
+ path: string;
3944
+ /**
3945
+ * Relative path to use inside the staged bundle/archive.
3946
+ */
3947
+ bundlePath: string;
3948
+ redaction?: DebugCollectLogsRedaction;
3949
+ /**
3950
+ * When true, collection fails if this entry cannot be read. Defaults to false, which records the entry in `skippedEntries`.
3951
+ */
3952
+ required?: boolean;
3953
+ }
3954
+ /**
3955
+ * Built-in session diagnostics to include in the bundle. Omitted fields default to true.
3956
+ *
3957
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3958
+ * via the `definition` "DebugCollectLogsInclude".
3959
+ */
3960
+ /** @experimental */
3961
+ export interface DebugCollectLogsInclude {
3962
+ /**
3963
+ * Include the session event log (`events.jsonl`). Defaults to true.
3964
+ */
3965
+ events?: boolean;
3966
+ /**
3967
+ * Include process logs for the session. Defaults to true.
3968
+ */
3969
+ processLogs?: boolean;
3970
+ /**
3971
+ * Include interactive shell logs written under the session's `shell-logs` directory. Defaults to true.
3972
+ */
3973
+ shellLogs?: boolean;
3974
+ /**
3975
+ * Server-local path to the session's events.jsonl file. Internal callers normally omit this and let the runtime derive it from the session.
3976
+ */
3977
+ eventsPath?: string;
3978
+ /**
3979
+ * Server-local path to the current process log. When set, it is included as `process.log` and its directory is searched for prior logs from the same session.
3980
+ */
3981
+ currentProcessLogPath?: string;
3982
+ /**
3983
+ * Server-local process log directory to search when `currentProcessLogPath` is unavailable, useful for collecting logs for inactive sessions.
3984
+ */
3985
+ processLogDirectory?: string;
3986
+ /**
3987
+ * Maximum number of previous process logs to include. Defaults to 5.
3988
+ */
3989
+ previousProcessLogLimit?: number;
3990
+ }
3991
+ /**
3992
+ * Options for collecting a redacted session debug bundle.
3993
+ *
3994
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3995
+ * via the `definition` "DebugCollectLogsRequest".
3996
+ */
3997
+ /** @experimental */
3998
+ export interface DebugCollectLogsRequest {
3999
+ destination: DebugCollectLogsDestination;
4000
+ include?: DebugCollectLogsInclude;
4001
+ /**
4002
+ * Caller-provided server-local files or directories to include in addition to the runtime's built-in session diagnostics. This lets host applications add their own diagnostics without changing the API shape.
4003
+ */
4004
+ additionalEntries?: DebugCollectLogsEntry[];
4005
+ }
4006
+ /**
4007
+ * Result of collecting a redacted debug bundle.
4008
+ *
4009
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4010
+ * via the `definition` "DebugCollectLogsResult".
4011
+ */
4012
+ /** @experimental */
4013
+ export interface DebugCollectLogsResult {
4014
+ kind: DebugCollectLogsResultKind;
4015
+ /**
4016
+ * Actual archive path or staging directory path written. This may differ from the requested path when no-overwrite suffixing or fallback-to-temp-directory was needed.
4017
+ */
4018
+ path: string;
4019
+ /**
4020
+ * Files included in the redacted bundle.
4021
+ */
4022
+ entries: DebugCollectLogsCollectedEntry[];
4023
+ /**
4024
+ * Optional files or directories that could not be included.
4025
+ */
4026
+ skippedEntries?: DebugCollectLogsSkippedEntry[];
4027
+ }
4028
+ /**
4029
+ * An optional debug bundle entry that could not be included.
4030
+ *
4031
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4032
+ * via the `definition` "DebugCollectLogsSkippedEntry".
4033
+ */
4034
+ /** @experimental */
4035
+ export interface DebugCollectLogsSkippedEntry {
4036
+ /**
4037
+ * Relative path requested for this bundle entry.
4038
+ */
4039
+ bundlePath: string;
4040
+ /**
4041
+ * Server-local source path that could not be read.
4042
+ */
4043
+ path?: string;
4044
+ /**
4045
+ * Reason the entry was skipped.
4046
+ */
4047
+ reason: string;
4048
+ }
4049
+ /**
4050
+ * MCP server discovered by `mcp.discover`, with config source, optional plugin source, transport type, and enabled state.
3498
4051
  *
3499
4052
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3500
4053
  * via the `definition` "DiscoveredMcpServer".
@@ -3648,7 +4201,7 @@ export interface ExecuteCommandResult {
3648
4201
  error?: string;
3649
4202
  }
3650
4203
  /**
3651
- * Schema for the `Extension` type.
4204
+ * Discovered extension metadata, including source-qualified ID, name, discovery source, status, and optional process ID.
3652
4205
  *
3653
4206
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3654
4207
  * via the `definition` "Extension".
@@ -3770,6 +4323,10 @@ export interface ExternalToolTextResultForLlm {
3770
4323
  * Structured content blocks from the tool
3771
4324
  */
3772
4325
  contents?: ExternalToolTextResultForLlmContent[];
4326
+ /**
4327
+ * Tool references returned by a tool-search override: names of deferred tools to surface to the model. When set, the tool result is materialized as `tool_reference` content blocks (rather than plain text) so the model knows which deferred tools are now available.
4328
+ */
4329
+ toolReferences?: string[];
3773
4330
  }
3774
4331
  /**
3775
4332
  * Binary result returned by a tool for the model
@@ -4160,7 +4717,7 @@ export interface GitHubTelemetryEvent {
4160
4717
  client?: GitHubTelemetryClientInfo;
4161
4718
  }
4162
4719
  /**
4163
- * Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding for the session.
4720
+ * Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding during the `server.connect` handshake.
4164
4721
  *
4165
4722
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4166
4723
  * via the `definition` "GitHubTelemetryNotification".
@@ -4168,9 +4725,9 @@ export interface GitHubTelemetryEvent {
4168
4725
  /** @experimental */
4169
4726
  export interface GitHubTelemetryNotification {
4170
4727
  /**
4171
- * Session the telemetry event belongs to.
4728
+ * Session the telemetry event belongs to, when it is session-scoped. Omitted for sessionless events (for example, `server.sendTelemetry` calls with no session id), which are still forwarded to opted-in connections.
4172
4729
  */
4173
- sessionId: string;
4730
+ sessionId?: string;
4174
4731
  /**
4175
4732
  * Whether this is a restricted telemetry event (cli.restricted_telemetry). Hosts must route restricted events to first-party Microsoft stores only.
4176
4733
  */
@@ -4346,7 +4903,7 @@ export interface HistoryTruncateResult {
4346
4903
  eventsRemoved: number;
4347
4904
  }
4348
4905
  /**
4349
- * Schema for the `InstalledPlugin` type.
4906
+ * Installed plugin record from global state, with marketplace, version, install time, enabled state, cache path, and source.
4350
4907
  *
4351
4908
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4352
4909
  * via the `definition` "InstalledPlugin".
@@ -4380,7 +4937,7 @@ export interface InstalledPlugin {
4380
4937
  source?: InstalledPluginSource;
4381
4938
  }
4382
4939
  /**
4383
- * Schema for the `InstalledPluginSourceGitHub` type.
4940
+ * Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref, and optional subpath.
4384
4941
  *
4385
4942
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4386
4943
  * via the `definition` "InstalledPluginSourceGitHub".
@@ -4396,7 +4953,7 @@ export interface InstalledPluginSourceGitHub {
4396
4953
  path?: string;
4397
4954
  }
4398
4955
  /**
4399
- * Schema for the `InstalledPluginSourceUrl` type.
4956
+ * Source descriptor for a direct URL plugin install, with URL, optional ref, and optional subpath.
4400
4957
  *
4401
4958
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4402
4959
  * via the `definition` "InstalledPluginSourceUrl".
@@ -4412,7 +4969,7 @@ export interface InstalledPluginSourceUrl {
4412
4969
  path?: string;
4413
4970
  }
4414
4971
  /**
4415
- * Schema for the `InstalledPluginSourceLocal` type.
4972
+ * Source descriptor for a direct local plugin install, with a local filesystem path.
4416
4973
  *
4417
4974
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4418
4975
  * via the `definition` "InstalledPluginSourceLocal".
@@ -4455,7 +5012,7 @@ export interface InstalledPluginInfo {
4455
5012
  enabled: boolean;
4456
5013
  }
4457
5014
  /**
4458
- * Schema for the `InstructionDiscoveryPath` type.
5015
+ * Canonical file or directory where custom instructions can be discovered or created, with location, kind, preference, and project path.
4459
5016
  *
4460
5017
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4461
5018
  * via the `definition` "InstructionDiscoveryPath".
@@ -4538,7 +5095,7 @@ export interface InstructionsGetSourcesResult {
4538
5095
  sources: InstructionSource[];
4539
5096
  }
4540
5097
  /**
4541
- * Schema for the `InstructionSource` type.
5098
+ * Loaded instruction source for a session, including path, content, category, location, applicability, and optional description.
4542
5099
  *
4543
5100
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4544
5101
  * via the `definition` "InstructionSource".
@@ -4658,6 +5215,18 @@ export interface LlmInferenceHttpRequestStartRequest {
4658
5215
  url: string;
4659
5216
  headers: LlmInferenceHeaders;
4660
5217
  transport?: LlmInferenceHttpRequestStartTransport;
5218
+ /**
5219
+ * Stable per-agent-instance id attributing this request to a specific agent trajectory. Present when the request originates from an agent turn; absent for requests issued outside any agent context (e.g. some SDK callers). A request with an `agentId` but no `parentAgentId` is a root-agent request; one carrying both is a subagent request. Sourced from the runtime's per-request agent context and surfaced on the envelope independently of transport, so it is available for both first-party (CAPI) and BYOK/custom-provider requests; on the CAPI transport the runtime derives the upstream `X-Agent-Task-Id` header from this same context. Consumers routing each provider call to a training trajectory should key on this rather than on lifecycle events, since it is available on the request path before sampling.
5220
+ */
5221
+ agentId?: string;
5222
+ /**
5223
+ * Id of the parent agent that spawned the agent issuing this request. Present only for subagent requests; absent for root-agent requests and non-agent requests. Combined with `agentId`, this lets consumers attribute a call to a child trajectory versus the root. Like `agentId`, it comes from the runtime's per-request agent context independently of transport; on the CAPI transport the runtime derives the upstream `X-Parent-Agent-Id` header from this same context.
5224
+ */
5225
+ parentAgentId?: string;
5226
+ /**
5227
+ * Coarse classification of the interaction that produced this request. Open string for forward-compatibility; known values include `conversation-agent`, `conversation-subagent`, `conversation-sampling`, `conversation-background`, `conversation-compaction`, and `conversation-user`. Absent when the runtime did not classify the request. Comes from the runtime's per-request agent context independently of transport; on the CAPI transport the runtime derives the upstream `X-Interaction-Type` header from this same context.
5228
+ */
5229
+ interactionType?: string;
4661
5230
  }
4662
5231
  /**
4663
5232
  * Acknowledgement. Returning successfully simply means the SDK accepted the start frame; it does not imply the request will succeed.
@@ -4773,7 +5342,7 @@ export interface LlmInferenceSetProviderResult {
4773
5342
  success: boolean;
4774
5343
  }
4775
5344
  /**
4776
- * Schema for the `LocalSessionMetadataValue` type.
5345
+ * Persisted local session metadata, including identifiers, timestamps, summary/name, client, context, detached state, and task ID.
4777
5346
  *
4778
5347
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4779
5348
  * via the `definition` "LocalSessionMetadataValue".
@@ -4986,7 +5555,7 @@ export interface MarketplaceListResult {
4986
5555
  marketplaces: MarketplaceInfo[];
4987
5556
  }
4988
5557
  /**
4989
- * Schema for the `MarketplaceRefreshEntry` type.
5558
+ * Per-marketplace refresh result, including marketplace name, success flag, and optional failure error.
4990
5559
  *
4991
5560
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
4992
5561
  * via the `definition` "MarketplaceRefreshEntry".
@@ -5037,7 +5606,7 @@ export interface MarketplaceRemoveResult {
5037
5606
  dependentPlugins?: string[];
5038
5607
  }
5039
5608
  /**
5040
- * Schema for the `McpAllowedServer` type.
5609
+ * MCP server allowed by policy, with server name and optional PII-free explanatory note.
5041
5610
  *
5042
5611
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5043
5612
  * via the `definition` "McpAllowedServer".
@@ -5252,7 +5821,7 @@ export interface McpAppsReadResourceResult {
5252
5821
  contents: McpAppsResourceContent[];
5253
5822
  }
5254
5823
  /**
5255
- * Schema for the `McpAppsResourceContent` type.
5824
+ * MCP Apps resource content with URI, optional MIME type, text or base64 blob, and resource metadata.
5256
5825
  *
5257
5826
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5258
5827
  * via the `definition` "McpAppsResourceContent".
@@ -5640,7 +6209,7 @@ export interface McpExecuteSamplingResult {
5640
6209
  [k: string]: unknown | undefined;
5641
6210
  }
5642
6211
  /**
5643
- * Schema for the `McpFilteredServer` type.
6212
+ * MCP server filtered by policy, with name, reason, optional redacted reason, and enterprise login.
5644
6213
  *
5645
6214
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5646
6215
  * via the `definition` "McpFilteredServer".
@@ -5815,7 +6384,7 @@ export interface McpListToolsResult {
5815
6384
  tools: McpTools[];
5816
6385
  }
5817
6386
  /**
5818
- * Schema for the `McpTools` type.
6387
+ * MCP tool metadata with tool name and optional description.
5819
6388
  *
5820
6389
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5821
6390
  * via the `definition` "McpTools".
@@ -5909,15 +6478,6 @@ export interface McpOauthLoginResult {
5909
6478
  */
5910
6479
  authorizationUrl?: string;
5911
6480
  }
5912
- /**
5913
- * Empty result after recording the MCP OAuth response.
5914
- *
5915
- * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5916
- * via the `definition` "McpOauthRespondResult".
5917
- */
5918
- /** @experimental */
5919
- export interface McpOauthRespondResult {
5920
- }
5921
6481
  /**
5922
6482
  * Indicates whether the auto-managed `github` MCP server was removed (false when nothing to remove).
5923
6483
  *
@@ -5947,7 +6507,7 @@ export interface McpSamplingExecutionResult {
5947
6507
  error?: string;
5948
6508
  }
5949
6509
  /**
5950
- * Schema for the `McpServer` type.
6510
+ * MCP server status entry, including config source/plugin source and any connection error.
5951
6511
  *
5952
6512
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5953
6513
  * via the `definition` "McpServer".
@@ -6050,6 +6610,49 @@ export interface MemoryConfiguration {
6050
6610
  */
6051
6611
  enabled: boolean;
6052
6612
  }
6613
+ /**
6614
+ * Per-source attribution breakdown for the session's current context window, or null if uninitialized.
6615
+ *
6616
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6617
+ * via the `definition` "MetadataContextAttributionResult".
6618
+ */
6619
+ /** @experimental */
6620
+ export interface MetadataContextAttributionResult {
6621
+ /**
6622
+ * Per-source context-window attribution, or null if the session has not yet been initialized (no system prompt or tool metadata cached).
6623
+ */
6624
+ contextAttribution?: SessionContextAttribution | null;
6625
+ }
6626
+ /**
6627
+ * Parameters for the heaviest-messages query.
6628
+ *
6629
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6630
+ * via the `definition` "MetadataContextHeaviestMessagesRequest".
6631
+ */
6632
+ /** @experimental */
6633
+ export interface MetadataContextHeaviestMessagesRequest {
6634
+ /**
6635
+ * Maximum number of messages to return, most-expensive first. Omit for the server default.
6636
+ */
6637
+ limit?: number;
6638
+ }
6639
+ /**
6640
+ * The heaviest individual messages in the session's context window, most-expensive first.
6641
+ *
6642
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6643
+ * via the `definition` "MetadataContextHeaviestMessagesResult".
6644
+ */
6645
+ /** @experimental */
6646
+ export interface MetadataContextHeaviestMessagesResult {
6647
+ /**
6648
+ * Total token count of the current context window, so callers can compute each message's share without a second call.
6649
+ */
6650
+ totalTokens: number;
6651
+ /**
6652
+ * Heaviest messages, most-expensive first.
6653
+ */
6654
+ messages: ContextHeaviestMessage[];
6655
+ }
6053
6656
  /**
6054
6657
  * Model identifier and token limits used to compute the context-info breakdown.
6055
6658
  *
@@ -6255,7 +6858,7 @@ export interface MetadataSnapshotRemoteMetadataRepository {
6255
6858
  branch: string;
6256
6859
  }
6257
6860
  /**
6258
- * Schema for the `Model` type.
6861
+ * Copilot model metadata, including identifier, display name, capabilities, policy, billing, reasoning efforts, and picker categories.
6259
6862
  *
6260
6863
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6261
6864
  * via the `definition` "Model".
@@ -6619,6 +7222,7 @@ export interface ModelSwitchToRequest {
6619
7222
  */
6620
7223
  reasoningEffort?: string;
6621
7224
  reasoningSummary?: ReasoningSummary;
7225
+ verbosity?: Verbosity;
6622
7226
  modelCapabilities?: ModelCapabilitiesOverride;
6623
7227
  contextTier?: ContextTier;
6624
7228
  }
@@ -6750,7 +7354,7 @@ export interface NameSetRequest {
6750
7354
  name: string;
6751
7355
  }
6752
7356
  /**
6753
- * Schema for the `OptionsUpdateAdditionalContentExclusionPolicy` type.
7357
+ * Content-exclusion policy supplied to `session.options.update`, with rules, last-updated data, and scope.
6754
7358
  *
6755
7359
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6756
7360
  * via the `definition` "OptionsUpdateAdditionalContentExclusionPolicy".
@@ -6762,7 +7366,7 @@ export interface OptionsUpdateAdditionalContentExclusionPolicy {
6762
7366
  scope: OptionsUpdateAdditionalContentExclusionPolicyScope;
6763
7367
  }
6764
7368
  /**
6765
- * Schema for the `OptionsUpdateAdditionalContentExclusionPolicyRule` type.
7369
+ * Single content-exclusion rule supplied to `session.options.update`, with paths, match conditions, and source.
6766
7370
  *
6767
7371
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6768
7372
  * via the `definition` "OptionsUpdateAdditionalContentExclusionPolicyRule".
@@ -6775,7 +7379,7 @@ export interface OptionsUpdateAdditionalContentExclusionPolicyRule {
6775
7379
  source: OptionsUpdateAdditionalContentExclusionPolicyRuleSource;
6776
7380
  }
6777
7381
  /**
6778
- * Schema for the `OptionsUpdateAdditionalContentExclusionPolicyRuleSource` type.
7382
+ * Source descriptor for a `session.options.update` content-exclusion rule, with source name and type.
6779
7383
  *
6780
7384
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6781
7385
  * via the `definition` "OptionsUpdateAdditionalContentExclusionPolicyRuleSource".
@@ -6786,7 +7390,7 @@ export interface OptionsUpdateAdditionalContentExclusionPolicyRuleSource {
6786
7390
  type: string;
6787
7391
  }
6788
7392
  /**
6789
- * Schema for the `PendingPermissionRequest` type.
7393
+ * Pending permission prompt reconstructed from event history, with request ID and user-facing prompt details.
6790
7394
  *
6791
7395
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6792
7396
  * via the `definition` "PendingPermissionRequest".
@@ -6813,7 +7417,7 @@ export interface PendingPermissionRequestList {
6813
7417
  items: PendingPermissionRequest[];
6814
7418
  }
6815
7419
  /**
6816
- * Schema for the `PermissionDecisionApproveOnce` type.
7420
+ * Permission-decision request variant to approve only the current permission request.
6817
7421
  *
6818
7422
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6819
7423
  * via the `definition` "PermissionDecisionApproveOnce".
@@ -6826,7 +7430,7 @@ export interface PermissionDecisionApproveOnce {
6826
7430
  kind: "approve-once";
6827
7431
  }
6828
7432
  /**
6829
- * Schema for the `PermissionDecisionApproveForSession` type.
7433
+ * Permission-decision request variant to approve for the rest of the session, with optional tool approval or URL domain.
6830
7434
  *
6831
7435
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6832
7436
  * via the `definition` "PermissionDecisionApproveForSession".
@@ -6844,7 +7448,7 @@ export interface PermissionDecisionApproveForSession {
6844
7448
  domain?: string;
6845
7449
  }
6846
7450
  /**
6847
- * Schema for the `PermissionDecisionApproveForSessionApprovalCommands` type.
7451
+ * Session-scoped approval details for specific command identifiers.
6848
7452
  *
6849
7453
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6850
7454
  * via the `definition` "PermissionDecisionApproveForSessionApprovalCommands".
@@ -6861,7 +7465,7 @@ export interface PermissionDecisionApproveForSessionApprovalCommands {
6861
7465
  commandIdentifiers: string[];
6862
7466
  }
6863
7467
  /**
6864
- * Schema for the `PermissionDecisionApproveForSessionApprovalRead` type.
7468
+ * Session-scoped approval details for read-only filesystem operations.
6865
7469
  *
6866
7470
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6867
7471
  * via the `definition` "PermissionDecisionApproveForSessionApprovalRead".
@@ -6874,7 +7478,7 @@ export interface PermissionDecisionApproveForSessionApprovalRead {
6874
7478
  kind: "read";
6875
7479
  }
6876
7480
  /**
6877
- * Schema for the `PermissionDecisionApproveForSessionApprovalWrite` type.
7481
+ * Session-scoped approval details for filesystem write operations.
6878
7482
  *
6879
7483
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6880
7484
  * via the `definition` "PermissionDecisionApproveForSessionApprovalWrite".
@@ -6887,7 +7491,7 @@ export interface PermissionDecisionApproveForSessionApprovalWrite {
6887
7491
  kind: "write";
6888
7492
  }
6889
7493
  /**
6890
- * Schema for the `PermissionDecisionApproveForSessionApprovalMcp` type.
7494
+ * Session-scoped approval details for an MCP server tool, or all tools on the server when `toolName` is null.
6891
7495
  *
6892
7496
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6893
7497
  * via the `definition` "PermissionDecisionApproveForSessionApprovalMcp".
@@ -6908,7 +7512,7 @@ export interface PermissionDecisionApproveForSessionApprovalMcp {
6908
7512
  toolName: string | null;
6909
7513
  }
6910
7514
  /**
6911
- * Schema for the `PermissionDecisionApproveForSessionApprovalMcpSampling` type.
7515
+ * Session-scoped approval details for MCP sampling requests from a server.
6912
7516
  *
6913
7517
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6914
7518
  * via the `definition` "PermissionDecisionApproveForSessionApprovalMcpSampling".
@@ -6925,7 +7529,7 @@ export interface PermissionDecisionApproveForSessionApprovalMcpSampling {
6925
7529
  serverName: string;
6926
7530
  }
6927
7531
  /**
6928
- * Schema for the `PermissionDecisionApproveForSessionApprovalMemory` type.
7532
+ * Session-scoped approval details for writes to long-term memory.
6929
7533
  *
6930
7534
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6931
7535
  * via the `definition` "PermissionDecisionApproveForSessionApprovalMemory".
@@ -6938,7 +7542,7 @@ export interface PermissionDecisionApproveForSessionApprovalMemory {
6938
7542
  kind: "memory";
6939
7543
  }
6940
7544
  /**
6941
- * Schema for the `PermissionDecisionApproveForSessionApprovalCustomTool` type.
7545
+ * Session-scoped approval details for a custom tool, keyed by tool name.
6942
7546
  *
6943
7547
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6944
7548
  * via the `definition` "PermissionDecisionApproveForSessionApprovalCustomTool".
@@ -6955,7 +7559,7 @@ export interface PermissionDecisionApproveForSessionApprovalCustomTool {
6955
7559
  toolName: string;
6956
7560
  }
6957
7561
  /**
6958
- * Schema for the `PermissionDecisionApproveForSessionApprovalExtensionManagement` type.
7562
+ * Session-scoped approval details for extension-management operations, optionally narrowed by operation.
6959
7563
  *
6960
7564
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6961
7565
  * via the `definition` "PermissionDecisionApproveForSessionApprovalExtensionManagement".
@@ -6972,7 +7576,7 @@ export interface PermissionDecisionApproveForSessionApprovalExtensionManagement
6972
7576
  operation?: string;
6973
7577
  }
6974
7578
  /**
6975
- * Schema for the `PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess` type.
7579
+ * Session-scoped approval details for an extension's permission-gated capability access, keyed by extension name.
6976
7580
  *
6977
7581
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6978
7582
  * via the `definition` "PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess".
@@ -6989,7 +7593,7 @@ export interface PermissionDecisionApproveForSessionApprovalExtensionPermissionA
6989
7593
  extensionName: string;
6990
7594
  }
6991
7595
  /**
6992
- * Schema for the `PermissionDecisionApproveForLocation` type.
7596
+ * Permission-decision request variant to approve and persist a permission for a project location, with approval details and location key.
6993
7597
  *
6994
7598
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
6995
7599
  * via the `definition` "PermissionDecisionApproveForLocation".
@@ -7007,7 +7611,7 @@ export interface PermissionDecisionApproveForLocation {
7007
7611
  locationKey: string;
7008
7612
  }
7009
7613
  /**
7010
- * Schema for the `PermissionDecisionApproveForLocationApprovalCommands` type.
7614
+ * Location-scoped approval details for specific command identifiers.
7011
7615
  *
7012
7616
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7013
7617
  * via the `definition` "PermissionDecisionApproveForLocationApprovalCommands".
@@ -7024,7 +7628,7 @@ export interface PermissionDecisionApproveForLocationApprovalCommands {
7024
7628
  commandIdentifiers: string[];
7025
7629
  }
7026
7630
  /**
7027
- * Schema for the `PermissionDecisionApproveForLocationApprovalRead` type.
7631
+ * Location-scoped approval details for read-only filesystem operations.
7028
7632
  *
7029
7633
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7030
7634
  * via the `definition` "PermissionDecisionApproveForLocationApprovalRead".
@@ -7037,7 +7641,7 @@ export interface PermissionDecisionApproveForLocationApprovalRead {
7037
7641
  kind: "read";
7038
7642
  }
7039
7643
  /**
7040
- * Schema for the `PermissionDecisionApproveForLocationApprovalWrite` type.
7644
+ * Location-scoped approval details for filesystem write operations.
7041
7645
  *
7042
7646
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7043
7647
  * via the `definition` "PermissionDecisionApproveForLocationApprovalWrite".
@@ -7050,7 +7654,7 @@ export interface PermissionDecisionApproveForLocationApprovalWrite {
7050
7654
  kind: "write";
7051
7655
  }
7052
7656
  /**
7053
- * Schema for the `PermissionDecisionApproveForLocationApprovalMcp` type.
7657
+ * Location-scoped approval details for an MCP server tool, or all tools on the server when `toolName` is null.
7054
7658
  *
7055
7659
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7056
7660
  * via the `definition` "PermissionDecisionApproveForLocationApprovalMcp".
@@ -7071,7 +7675,7 @@ export interface PermissionDecisionApproveForLocationApprovalMcp {
7071
7675
  toolName: string | null;
7072
7676
  }
7073
7677
  /**
7074
- * Schema for the `PermissionDecisionApproveForLocationApprovalMcpSampling` type.
7678
+ * Location-scoped approval details for MCP sampling requests from a server.
7075
7679
  *
7076
7680
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7077
7681
  * via the `definition` "PermissionDecisionApproveForLocationApprovalMcpSampling".
@@ -7088,7 +7692,7 @@ export interface PermissionDecisionApproveForLocationApprovalMcpSampling {
7088
7692
  serverName: string;
7089
7693
  }
7090
7694
  /**
7091
- * Schema for the `PermissionDecisionApproveForLocationApprovalMemory` type.
7695
+ * Location-scoped approval details for writes to long-term memory.
7092
7696
  *
7093
7697
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7094
7698
  * via the `definition` "PermissionDecisionApproveForLocationApprovalMemory".
@@ -7101,7 +7705,7 @@ export interface PermissionDecisionApproveForLocationApprovalMemory {
7101
7705
  kind: "memory";
7102
7706
  }
7103
7707
  /**
7104
- * Schema for the `PermissionDecisionApproveForLocationApprovalCustomTool` type.
7708
+ * Location-scoped approval details for a custom tool, keyed by tool name.
7105
7709
  *
7106
7710
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7107
7711
  * via the `definition` "PermissionDecisionApproveForLocationApprovalCustomTool".
@@ -7118,7 +7722,7 @@ export interface PermissionDecisionApproveForLocationApprovalCustomTool {
7118
7722
  toolName: string;
7119
7723
  }
7120
7724
  /**
7121
- * Schema for the `PermissionDecisionApproveForLocationApprovalExtensionManagement` type.
7725
+ * Location-scoped approval details for extension-management operations, optionally narrowed by operation.
7122
7726
  *
7123
7727
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7124
7728
  * via the `definition` "PermissionDecisionApproveForLocationApprovalExtensionManagement".
@@ -7135,7 +7739,7 @@ export interface PermissionDecisionApproveForLocationApprovalExtensionManagement
7135
7739
  operation?: string;
7136
7740
  }
7137
7741
  /**
7138
- * Schema for the `PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess` type.
7742
+ * Location-scoped approval details for an extension's permission-gated capability access, keyed by extension name.
7139
7743
  *
7140
7744
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7141
7745
  * via the `definition` "PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess".
@@ -7152,7 +7756,7 @@ export interface PermissionDecisionApproveForLocationApprovalExtensionPermission
7152
7756
  extensionName: string;
7153
7757
  }
7154
7758
  /**
7155
- * Schema for the `PermissionDecisionApprovePermanently` type.
7759
+ * Permission-decision request variant to permanently approve a URL domain across sessions.
7156
7760
  *
7157
7761
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7158
7762
  * via the `definition` "PermissionDecisionApprovePermanently".
@@ -7169,7 +7773,7 @@ export interface PermissionDecisionApprovePermanently {
7169
7773
  domain: string;
7170
7774
  }
7171
7775
  /**
7172
- * Schema for the `PermissionDecisionReject` type.
7776
+ * Permission-decision request variant to reject a pending permission request, with optional feedback.
7173
7777
  *
7174
7778
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7175
7779
  * via the `definition` "PermissionDecisionReject".
@@ -7186,7 +7790,7 @@ export interface PermissionDecisionReject {
7186
7790
  feedback?: string;
7187
7791
  }
7188
7792
  /**
7189
- * Schema for the `PermissionDecisionUserNotAvailable` type.
7793
+ * Permission-decision variant indicating no user was available to confirm the request.
7190
7794
  *
7191
7795
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7192
7796
  * via the `definition` "PermissionDecisionUserNotAvailable".
@@ -7199,7 +7803,7 @@ export interface PermissionDecisionUserNotAvailable {
7199
7803
  kind: "user-not-available";
7200
7804
  }
7201
7805
  /**
7202
- * Schema for the `PermissionDecisionApproved` type.
7806
+ * Permission-decision variant indicating the request was approved.
7203
7807
  *
7204
7808
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7205
7809
  * via the `definition` "PermissionDecisionApproved".
@@ -7212,7 +7816,7 @@ export interface PermissionDecisionApproved {
7212
7816
  kind: "approved";
7213
7817
  }
7214
7818
  /**
7215
- * Schema for the `PermissionDecisionApprovedForSession` type.
7819
+ * Permission-decision variant indicating approval was remembered for the session, with approval details.
7216
7820
  *
7217
7821
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7218
7822
  * via the `definition` "PermissionDecisionApprovedForSession".
@@ -7226,7 +7830,7 @@ export interface PermissionDecisionApprovedForSession {
7226
7830
  approval: UserToolSessionApproval;
7227
7831
  }
7228
7832
  /**
7229
- * Schema for the `PermissionDecisionApprovedForLocation` type.
7833
+ * Permission-decision variant indicating approval was persisted for a project location, with approval details and location key.
7230
7834
  *
7231
7835
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7232
7836
  * via the `definition` "PermissionDecisionApprovedForLocation".
@@ -7244,7 +7848,7 @@ export interface PermissionDecisionApprovedForLocation {
7244
7848
  locationKey: string;
7245
7849
  }
7246
7850
  /**
7247
- * Schema for the `PermissionDecisionCancelled` type.
7851
+ * Permission-decision variant indicating the request was cancelled before use, with an optional reason.
7248
7852
  *
7249
7853
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7250
7854
  * via the `definition` "PermissionDecisionCancelled".
@@ -7261,7 +7865,7 @@ export interface PermissionDecisionCancelled {
7261
7865
  reason?: string;
7262
7866
  }
7263
7867
  /**
7264
- * Schema for the `PermissionDecisionDeniedByRules` type.
7868
+ * Permission-decision variant indicating explicit denial by permission rules, with the matching rules.
7265
7869
  *
7266
7870
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7267
7871
  * via the `definition` "PermissionDecisionDeniedByRules".
@@ -7278,7 +7882,7 @@ export interface PermissionDecisionDeniedByRules {
7278
7882
  rules: PermissionRule[];
7279
7883
  }
7280
7884
  /**
7281
- * Schema for the `PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser` type.
7885
+ * Permission-decision variant indicating no approval rule matched and user confirmation was unavailable.
7282
7886
  *
7283
7887
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7284
7888
  * via the `definition` "PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser".
@@ -7291,7 +7895,7 @@ export interface PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUse
7291
7895
  kind: "denied-no-approval-rule-and-could-not-request-from-user";
7292
7896
  }
7293
7897
  /**
7294
- * Schema for the `PermissionDecisionDeniedInteractivelyByUser` type.
7898
+ * Permission-decision variant indicating the user denied an interactive prompt, with optional feedback and force-reject flag.
7295
7899
  *
7296
7900
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7297
7901
  * via the `definition` "PermissionDecisionDeniedInteractivelyByUser".
@@ -7312,7 +7916,7 @@ export interface PermissionDecisionDeniedInteractivelyByUser {
7312
7916
  forceReject?: boolean;
7313
7917
  }
7314
7918
  /**
7315
- * Schema for the `PermissionDecisionDeniedByContentExclusionPolicy` type.
7919
+ * Permission-decision variant indicating denial by content-exclusion policy, with path and message.
7316
7920
  *
7317
7921
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7318
7922
  * via the `definition` "PermissionDecisionDeniedByContentExclusionPolicy".
@@ -7333,7 +7937,7 @@ export interface PermissionDecisionDeniedByContentExclusionPolicy {
7333
7937
  message: string;
7334
7938
  }
7335
7939
  /**
7336
- * Schema for the `PermissionDecisionDeniedByPermissionRequestHook` type.
7940
+ * Permission-decision variant indicating denial by a permission request hook, with optional message and interrupt flag.
7337
7941
  *
7338
7942
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7339
7943
  * via the `definition` "PermissionDecisionDeniedByPermissionRequestHook".
@@ -7382,7 +7986,7 @@ export interface PermissionLocationAddToolApprovalParams {
7382
7986
  approval: PermissionsLocationsAddToolApprovalDetails;
7383
7987
  }
7384
7988
  /**
7385
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsCommands` type.
7989
+ * Location-persisted tool approval details for specific command identifiers.
7386
7990
  *
7387
7991
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7388
7992
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsCommands".
@@ -7399,7 +8003,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsCommands {
7399
8003
  commandIdentifiers: string[];
7400
8004
  }
7401
8005
  /**
7402
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsRead` type.
8006
+ * Location-persisted tool approval details for read-only filesystem operations.
7403
8007
  *
7404
8008
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7405
8009
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsRead".
@@ -7412,7 +8016,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsRead {
7412
8016
  kind: "read";
7413
8017
  }
7414
8018
  /**
7415
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsWrite` type.
8019
+ * Location-persisted tool approval details for filesystem write operations.
7416
8020
  *
7417
8021
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7418
8022
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsWrite".
@@ -7425,7 +8029,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsWrite {
7425
8029
  kind: "write";
7426
8030
  }
7427
8031
  /**
7428
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsMcp` type.
8032
+ * Location-persisted tool approval details for an MCP server tool, or all tools when `toolName` is null.
7429
8033
  *
7430
8034
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7431
8035
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsMcp".
@@ -7446,7 +8050,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsMcp {
7446
8050
  toolName: string | null;
7447
8051
  }
7448
8052
  /**
7449
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsMcpSampling` type.
8053
+ * Location-persisted tool approval details for MCP sampling requests from a server.
7450
8054
  *
7451
8055
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7452
8056
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsMcpSampling".
@@ -7463,7 +8067,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsMcpSampling {
7463
8067
  serverName: string;
7464
8068
  }
7465
8069
  /**
7466
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsMemory` type.
8070
+ * Location-persisted tool approval details for writes to long-term memory.
7467
8071
  *
7468
8072
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7469
8073
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsMemory".
@@ -7476,7 +8080,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsMemory {
7476
8080
  kind: "memory";
7477
8081
  }
7478
8082
  /**
7479
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsCustomTool` type.
8083
+ * Location-persisted tool approval details for a custom tool, keyed by tool name.
7480
8084
  *
7481
8085
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7482
8086
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsCustomTool".
@@ -7493,7 +8097,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsCustomTool {
7493
8097
  toolName: string;
7494
8098
  }
7495
8099
  /**
7496
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsExtensionManagement` type.
8100
+ * Location-persisted tool approval details for extension-management operations, optionally narrowed by operation.
7497
8101
  *
7498
8102
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7499
8103
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsExtensionManagement".
@@ -7510,7 +8114,7 @@ export interface PermissionsLocationsAddToolApprovalDetailsExtensionManagement {
7510
8114
  operation?: string;
7511
8115
  }
7512
8116
  /**
7513
- * Schema for the `PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess` type.
8117
+ * Location-persisted tool approval details for an extension's permission-gated capability access, keyed by extension name.
7514
8118
  *
7515
8119
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7516
8120
  * via the `definition` "PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess".
@@ -7760,7 +8364,7 @@ export interface PermissionRulesSet {
7760
8364
  denied: PermissionRule[];
7761
8365
  }
7762
8366
  /**
7763
- * Schema for the `PermissionsConfigureAdditionalContentExclusionPolicy` type.
8367
+ * Content-exclusion policy supplied to `session.permissions.configure`, with rules, last-updated data, and scope.
7764
8368
  *
7765
8369
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7766
8370
  * via the `definition` "PermissionsConfigureAdditionalContentExclusionPolicy".
@@ -7772,7 +8376,7 @@ export interface PermissionsConfigureAdditionalContentExclusionPolicy {
7772
8376
  scope: PermissionsConfigureAdditionalContentExclusionPolicyScope;
7773
8377
  }
7774
8378
  /**
7775
- * Schema for the `PermissionsConfigureAdditionalContentExclusionPolicyRule` type.
8379
+ * Single content-exclusion rule supplied to `session.permissions.configure`, with paths, match conditions, and source.
7776
8380
  *
7777
8381
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7778
8382
  * via the `definition` "PermissionsConfigureAdditionalContentExclusionPolicyRule".
@@ -7785,7 +8389,7 @@ export interface PermissionsConfigureAdditionalContentExclusionPolicyRule {
7785
8389
  source: PermissionsConfigureAdditionalContentExclusionPolicyRuleSource;
7786
8390
  }
7787
8391
  /**
7788
- * Schema for the `PermissionsConfigureAdditionalContentExclusionPolicyRuleSource` type.
8392
+ * Source descriptor for a `session.permissions.configure` content-exclusion rule, with source name and type.
7789
8393
  *
7790
8394
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
7791
8395
  * via the `definition` "PermissionsConfigureAdditionalContentExclusionPolicyRuleSource".
@@ -7999,17 +8603,22 @@ export interface PermissionsResetSessionApprovalsResult {
7999
8603
  success: boolean;
8000
8604
  }
8001
8605
  /**
8002
- * Whether to enable full allow-all permissions for the session.
8606
+ * Allow-all mode to apply for the session.
8003
8607
  *
8004
8608
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
8005
8609
  * via the `definition` "PermissionsSetAllowAllRequest".
8006
8610
  */
8007
8611
  /** @experimental */
8008
8612
  export interface PermissionsSetAllowAllRequest {
8613
+ mode?: PermissionsAllowAllMode;
8009
8614
  /**
8010
- * Whether to enable full allow-all permissions
8615
+ * Legacy full allow-all toggle. Prefer `mode`; when `mode` is omitted, `enabled: true` is treated as `mode: "on"` and any other value is treated as `mode: "off"`.
8011
8616
  */
8012
- enabled: boolean;
8617
+ enabled?: boolean;
8618
+ /**
8619
+ * Optional model id for the `auto` mode auto-approval LLM judging. Only meaningful when `mode` is `auto`; ignored otherwise. When omitted, the session's active model is used.
8620
+ */
8621
+ model?: string;
8013
8622
  source?: PermissionsSetAllowAllSource;
8014
8623
  }
8015
8624
  /**
@@ -8232,7 +8841,7 @@ export interface PlanUpdateRequest {
8232
8841
  content: string;
8233
8842
  }
8234
8843
  /**
8235
- * Schema for the `Plugin` type.
8844
+ * Session plugin metadata, with name, marketplace, optional version, and enabled state.
8236
8845
  *
8237
8846
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
8238
8847
  * via the `definition` "Plugin".
@@ -8417,6 +9026,10 @@ export interface PluginsReloadRequest {
8417
9026
  * Re-load user, plugin, and (subject to `deferRepoHooks`) repo hooks. Defaults to true. Has no effect when the host has not registered a hook reloader (e.g. remote sessions).
8418
9027
  */
8419
9028
  reloadHooks?: boolean;
9029
+ /**
9030
+ * Re-discover and relaunch subprocess extensions (including plugin-shipped extensions) after refreshing plugins. Defaults to true. Has no effect when the session has no active extension controller (e.g. extensions were not requested for the session).
9031
+ */
9032
+ reloadExtensions?: boolean;
8420
9033
  /**
8421
9034
  * When true, skip repo-level hooks during the hook reload. Use before folder trust is confirmed; load them post-trust via `sessions.loadDeferredRepoHooks`.
8422
9035
  */
@@ -8453,7 +9066,7 @@ export interface PluginsUpdateRequest {
8453
9066
  name: string;
8454
9067
  }
8455
9068
  /**
8456
- * Schema for the `PluginUpdateAllEntry` type.
9069
+ * Per-plugin result from updating all plugins, with versions, skills installed, success flag, and optional error.
8457
9070
  *
8458
9071
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
8459
9072
  * via the `definition` "PluginUpdateAllEntry".
@@ -8523,36 +9136,6 @@ export interface PluginUpdateResult {
8523
9136
  */
8524
9137
  skillsInstalled: number;
8525
9138
  }
8526
- /**
8527
- * Batch of spawn events plus a cursor for follow-up polls.
8528
- *
8529
- * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
8530
- * via the `definition` "PollSpawnedSessionsResult".
8531
- */
8532
- /** @experimental */
8533
- export interface PollSpawnedSessionsResult {
8534
- /**
8535
- * Spawn events emitted since the supplied cursor.
8536
- */
8537
- events: SessionsPollSpawnedSessionsEvent[];
8538
- /**
8539
- * Opaque cursor to pass back to receive only events after this batch.
8540
- */
8541
- cursor: string;
8542
- }
8543
- /**
8544
- * Schema for the `SessionsPollSpawnedSessionsEvent` type.
8545
- *
8546
- * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
8547
- * via the `definition` "SessionsPollSpawnedSessionsEvent".
8548
- */
8549
- /** @experimental */
8550
- export interface SessionsPollSpawnedSessionsEvent {
8551
- /**
8552
- * Session id of the newly-spawned session.
8553
- */
8554
- sessionId: string;
8555
- }
8556
9139
  /**
8557
9140
  * BYOK providers and/or models to add to the session's registry at runtime. Both fields are optional; provide providers, models, or both.
8558
9141
  *
@@ -9235,7 +9818,7 @@ export interface PushAttachmentBlob {
9235
9818
  displayName?: string;
9236
9819
  }
9237
9820
  /**
9238
- * Schema for the `QueuePendingItems` type.
9821
+ * User-facing pending queue entry, with kind and display text for a queued message, slash command, or model change.
9239
9822
  *
9240
9823
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
9241
9824
  * via the `definition` "QueuePendingItems".
@@ -9287,7 +9870,7 @@ export interface QueueRemoveMostRecentResult {
9287
9870
  /** @experimental */
9288
9871
  export interface RegisterEventInterestParams {
9289
9872
  /**
9290
- * The event type the consumer wants the runtime to treat as 'observed' for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. `mcp.oauth_required`: when interest is registered the runtime delegates the full interactive OAuth flow to the consumer; when no interest is registered the runtime installs a browserless fallback that silently reuses cached tokens). SDK clients that long-poll events do NOT automatically appear as listeners to these gating checks — they must explicitly call `registerInterest` for each event type they want the runtime to count as having a consumer. Multiple registrations for the same event type from the same or different consumers are tracked independently and must each be released. See: `mcp.oauth_required`, `sampling.requested`, `auto_mode_switch.requested`, `session_limits_exhausted.requested`, `user_input.requested`, `elicitation.requested`, `command.queued`, `exit_plan_mode.requested`.
9873
+ * The event type the consumer wants the runtime to treat as 'observed' for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. `mcp.oauth_required`: when interest is registered the runtime delegates OAuth token acquisition to the consumer; when no interest is registered OAuth-required servers become needs-auth). SDK clients that long-poll events do NOT automatically appear as listeners to these gating checks — they must explicitly call `registerInterest` for each event type they want the runtime to count as having a consumer. Multiple registrations for the same event type from the same or different consumers are tracked independently and must each be released. See: `mcp.oauth_required`, `sampling.requested`, `auto_mode_switch.requested`, `session_limits_exhausted.requested`, `user_input.requested`, `elicitation.requested`, `command.queued`, `exit_plan_mode.requested`.
9291
9874
  */
9292
9875
  eventType: string;
9293
9876
  }
@@ -9720,14 +10303,6 @@ export interface SandboxConfigUserPolicyNetwork {
9720
10303
  * Whether traffic to local/loopback addresses is allowed.
9721
10304
  */
9722
10305
  allowLocalNetwork?: boolean;
9723
- /**
9724
- * Hosts allowed in addition to the base policy.
9725
- */
9726
- allowedHosts?: string[];
9727
- /**
9728
- * Hosts explicitly blocked.
9729
- */
9730
- blockedHosts?: string[];
9731
10306
  }
9732
10307
  /**
9733
10308
  * macOS seatbelt-specific options.
@@ -9766,7 +10341,7 @@ export interface SandboxConfigUserPolicyExperimentalSeatbelt {
9766
10341
  keychainAccess?: boolean;
9767
10342
  }
9768
10343
  /**
9769
- * Schema for the `ScheduleEntry` type.
10344
+ * Scheduled prompt entry with ID, timing (`intervalMs`, `cron`, or `at`), prompt text, recurrence, and next run time.
9770
10345
  *
9771
10346
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
9772
10347
  * via the `definition` "ScheduleEntry".
@@ -9986,7 +10561,7 @@ export interface ServerInstructionSourceList {
9986
10561
  sources: InstructionSource[];
9987
10562
  }
9988
10563
  /**
9989
- * Schema for the `ServerSkill` type.
10564
+ * Server-side skill metadata, including name, description, source, enabled/invocable state, path, project path, and argument hint.
9990
10565
  *
9991
10566
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
9992
10567
  * via the `definition` "ServerSkill".
@@ -10237,7 +10812,7 @@ export interface SessionFsReaddirResult {
10237
10812
  error?: SessionFsError;
10238
10813
  }
10239
10814
  /**
10240
- * Schema for the `SessionFsReaddirWithTypesEntry` type.
10815
+ * Directory entry returned by session filesystem `readdirWithTypes`, with name and entry type.
10241
10816
  *
10242
10817
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10243
10818
  * via the `definition` "SessionFsReaddirWithTypesEntry".
@@ -10541,7 +11116,7 @@ export interface SessionFsWriteFileRequest {
10541
11116
  mode?: number;
10542
11117
  }
10543
11118
  /**
10544
- * Schema for the `SessionInstalledPlugin` type.
11119
+ * Installed plugin record for a session, with marketplace, version, install time, enabled state, cache path, and source.
10545
11120
  *
10546
11121
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10547
11122
  * via the `definition` "SessionInstalledPlugin".
@@ -10575,7 +11150,7 @@ export interface SessionInstalledPlugin {
10575
11150
  source?: SessionInstalledPluginSource;
10576
11151
  }
10577
11152
  /**
10578
- * Schema for the `SessionInstalledPluginSourceGitHub` type.
11153
+ * Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref, and optional subpath.
10579
11154
  *
10580
11155
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10581
11156
  * via the `definition` "SessionInstalledPluginSourceGitHub".
@@ -10591,7 +11166,7 @@ export interface SessionInstalledPluginSourceGitHub {
10591
11166
  path?: string;
10592
11167
  }
10593
11168
  /**
10594
- * Schema for the `SessionInstalledPluginSourceUrl` type.
11169
+ * Source descriptor for a direct URL plugin install, with URL, optional ref, and optional subpath.
10595
11170
  *
10596
11171
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10597
11172
  * via the `definition` "SessionInstalledPluginSourceUrl".
@@ -10607,7 +11182,7 @@ export interface SessionInstalledPluginSourceUrl {
10607
11182
  path?: string;
10608
11183
  }
10609
11184
  /**
10610
- * Schema for the `SessionInstalledPluginSourceLocal` type.
11185
+ * Source descriptor for a direct local plugin install, with a local filesystem path.
10611
11186
  *
10612
11187
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10613
11188
  * via the `definition` "SessionInstalledPluginSourceLocal".
@@ -10782,6 +11357,7 @@ export interface SessionOpenOptions {
10782
11357
  */
10783
11358
  reasoningEffort?: string;
10784
11359
  reasoningSummary?: SessionOpenOptionsReasoningSummary;
11360
+ verbosity?: Verbosity;
10785
11361
  /**
10786
11362
  * Identifier of the client driving the session.
10787
11363
  */
@@ -10798,6 +11374,10 @@ export interface SessionOpenOptions {
10798
11374
  * Stable integration identifier for analytics.
10799
11375
  */
10800
11376
  integrationId?: string;
11377
+ /**
11378
+ * Opt-in: self-fetch and enforce enterprise managed settings at session bootstrap.
11379
+ */
11380
+ enableManagedSettings?: boolean;
10801
11381
  /**
10802
11382
  * Feature-flag values resolved by the host.
10803
11383
  */
@@ -10975,7 +11555,7 @@ export interface SessionOpenOptions {
10975
11555
  sessionCapabilities?: SessionCapability[];
10976
11556
  }
10977
11557
  /**
10978
- * Schema for the `SessionOpenOptionsAdditionalContentExclusionPolicy` type.
11558
+ * Content-exclusion policy supplied to `sessions.open` options, with rules, last-updated data, and scope.
10979
11559
  *
10980
11560
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10981
11561
  * via the `definition` "SessionOpenOptionsAdditionalContentExclusionPolicy".
@@ -10987,7 +11567,7 @@ export interface SessionOpenOptionsAdditionalContentExclusionPolicy {
10987
11567
  scope: SessionOpenOptionsAdditionalContentExclusionPolicyScope;
10988
11568
  }
10989
11569
  /**
10990
- * Schema for the `SessionOpenOptionsAdditionalContentExclusionPolicyRule` type.
11570
+ * Single content-exclusion rule supplied to `sessions.open` options, with paths, match conditions, and source.
10991
11571
  *
10992
11572
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
10993
11573
  * via the `definition` "SessionOpenOptionsAdditionalContentExclusionPolicyRule".
@@ -11000,7 +11580,7 @@ export interface SessionOpenOptionsAdditionalContentExclusionPolicyRule {
11000
11580
  source: SessionOpenOptionsAdditionalContentExclusionPolicyRuleSource;
11001
11581
  }
11002
11582
  /**
11003
- * Schema for the `SessionOpenOptionsAdditionalContentExclusionPolicyRuleSource` type.
11583
+ * Source descriptor for a `sessions.open` content-exclusion rule, with source name and type.
11004
11584
  *
11005
11585
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11006
11586
  * via the `definition` "SessionOpenOptionsAdditionalContentExclusionPolicyRuleSource".
@@ -11172,7 +11752,7 @@ export interface SessionOpenResult {
11172
11752
  progress?: SessionsOpenProgress[];
11173
11753
  }
11174
11754
  /**
11175
- * Schema for the `SessionsOpenProgress` type.
11755
+ * `sessions.open` handoff progress update with step, status, and optional message.
11176
11756
  *
11177
11757
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11178
11758
  * via the `definition` "SessionsOpenProgress".
@@ -11316,6 +11896,134 @@ export interface SessionSetCredentialsResult {
11316
11896
  */
11317
11897
  copilotUserResolved?: boolean;
11318
11898
  }
11899
+ /**
11900
+ * Availability of built-in job tools surfaced to boundary consumers.
11901
+ *
11902
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11903
+ * via the `definition` "SessionSettingsBuiltInToolAvailabilitySnapshot".
11904
+ */
11905
+ /** @experimental */
11906
+ export interface SessionSettingsBuiltInToolAvailabilitySnapshot {
11907
+ reportProgress?: boolean;
11908
+ createPullRequest?: boolean;
11909
+ }
11910
+ /**
11911
+ * Named Rust-owned settings predicate to evaluate for this session.
11912
+ *
11913
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11914
+ * via the `definition` "SessionSettingsEvaluatePredicateRequest".
11915
+ */
11916
+ /** @experimental */
11917
+ export interface SessionSettingsEvaluatePredicateRequest {
11918
+ name: SessionSettingsPredicateName;
11919
+ /**
11920
+ * Tool name for tool-scoped predicates such as trivial-change handling.
11921
+ */
11922
+ toolName?: string;
11923
+ }
11924
+ /**
11925
+ * Result of evaluating a Rust-owned settings predicate.
11926
+ *
11927
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11928
+ * via the `definition` "SessionSettingsEvaluatePredicateResult".
11929
+ */
11930
+ /** @experimental */
11931
+ export interface SessionSettingsEvaluatePredicateResult {
11932
+ enabled: boolean;
11933
+ }
11934
+ /**
11935
+ * Redacted job settings for a session. The job nonce is excluded.
11936
+ *
11937
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11938
+ * via the `definition` "SessionSettingsJobSnapshot".
11939
+ */
11940
+ /** @experimental */
11941
+ export interface SessionSettingsJobSnapshot {
11942
+ eventType?: string;
11943
+ isTriggerJob?: boolean;
11944
+ builtInToolAvailability?: SessionSettingsBuiltInToolAvailabilitySnapshot;
11945
+ }
11946
+ /**
11947
+ * Redacted model routing settings for a session.
11948
+ *
11949
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11950
+ * via the `definition` "SessionSettingsModelSnapshot".
11951
+ */
11952
+ /** @experimental */
11953
+ export interface SessionSettingsModelSnapshot {
11954
+ model?: string;
11955
+ defaultReasoningEffort?: string;
11956
+ instanceId?: string;
11957
+ callbackUrl?: string;
11958
+ }
11959
+ /**
11960
+ * Online-evaluation settings safe to expose across the SDK boundary.
11961
+ *
11962
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11963
+ * via the `definition` "SessionSettingsOnlineEvaluationSnapshot".
11964
+ */
11965
+ /** @experimental */
11966
+ export interface SessionSettingsOnlineEvaluationSnapshot {
11967
+ disableOnlineEvaluation?: boolean;
11968
+ enableOnlineEvaluationOutputFile?: boolean;
11969
+ }
11970
+ /**
11971
+ * Redacted repository and GitHub host settings for a session.
11972
+ *
11973
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11974
+ * via the `definition` "SessionSettingsRepoSnapshot".
11975
+ */
11976
+ /** @experimental */
11977
+ export interface SessionSettingsRepoSnapshot {
11978
+ name?: string;
11979
+ id?: number;
11980
+ branch?: string;
11981
+ commit?: string;
11982
+ readWrite?: boolean;
11983
+ ownerName?: string;
11984
+ ownerId?: number;
11985
+ serverUrl?: string;
11986
+ host?: string;
11987
+ hostProtocol?: string;
11988
+ secretScanningUrl?: string;
11989
+ prCommitCount?: number;
11990
+ }
11991
+ /**
11992
+ * Redacted, serializable view of session runtime settings for SDK boundary consumers. Secrets and raw feature flags are intentionally excluded.
11993
+ *
11994
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
11995
+ * via the `definition` "SessionSettingsSnapshot".
11996
+ */
11997
+ /** @experimental */
11998
+ export interface SessionSettingsSnapshot {
11999
+ version?: string;
12000
+ clientName?: string;
12001
+ timeoutMs?: number;
12002
+ startTimeMs?: number;
12003
+ repo: SessionSettingsRepoSnapshot;
12004
+ model: SessionSettingsModelSnapshot;
12005
+ validation: SessionSettingsValidationSnapshot;
12006
+ job: SessionSettingsJobSnapshot;
12007
+ onlineEvaluation: SessionSettingsOnlineEvaluationSnapshot;
12008
+ }
12009
+ /**
12010
+ * Redacted validation and memory-tool settings for a session.
12011
+ *
12012
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12013
+ * via the `definition` "SessionSettingsValidationSnapshot".
12014
+ */
12015
+ /** @experimental */
12016
+ export interface SessionSettingsValidationSnapshot {
12017
+ timeout?: number;
12018
+ dependabotTimeout?: number;
12019
+ codeqlEnabled?: boolean;
12020
+ codeReviewEnabled?: boolean;
12021
+ codeReviewModel?: string;
12022
+ advisoryEnabled?: boolean;
12023
+ secretScanningEnabled?: boolean;
12024
+ memoryStoreEnabled?: boolean;
12025
+ memoryVoteEnabled?: boolean;
12026
+ }
11319
12027
  /**
11320
12028
  * UUID prefix to resolve to a unique session ID.
11321
12029
  *
@@ -11558,17 +12266,6 @@ export interface SessionsLoadDeferredRepoHooksRequest {
11558
12266
  */
11559
12267
  sessionId: string;
11560
12268
  }
11561
- /** @experimental */
11562
- export interface SessionsPollSpawnedSessionsRequest {
11563
- /**
11564
- * Opaque cursor returned by a previous poll. Omit on the first call to receive any spawn events buffered since the runtime started.
11565
- */
11566
- cursor?: string;
11567
- /**
11568
- * Milliseconds to wait for new spawn events when the cursor is at the tail. 0 (default) returns immediately even if no events are buffered. Capped at 60000ms.
11569
- */
11570
- waitMs?: number;
11571
- }
11572
12269
  /**
11573
12270
  * Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
11574
12271
  *
@@ -11772,6 +12469,7 @@ export interface SessionUpdateOptionsParams {
11772
12469
  */
11773
12470
  reasoningEffort?: string;
11774
12471
  reasoningSummary?: OptionsUpdateReasoningSummary;
12472
+ verbosity?: Verbosity;
11775
12473
  /**
11776
12474
  * Identifier of the client driving the session.
11777
12475
  */
@@ -12074,7 +12772,7 @@ export interface ShutdownRequest {
12074
12772
  reason?: string;
12075
12773
  }
12076
12774
  /**
12077
- * Schema for the `Skill` type.
12775
+ * Skill metadata available to a session, with name, description, source, enabled/invocable state, path, plugin, and argument hint.
12078
12776
  *
12079
12777
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12080
12778
  * via the `definition` "Skill".
@@ -12112,7 +12810,7 @@ export interface Skill {
12112
12810
  argumentHint?: string;
12113
12811
  }
12114
12812
  /**
12115
- * Schema for the `SkillDiscoveryPath` type.
12813
+ * Canonical directory where skills can be discovered or created, with scope, preference, and optional project path.
12116
12814
  *
12117
12815
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12118
12816
  * via the `definition` "SkillDiscoveryPath".
@@ -12250,7 +12948,7 @@ export interface SkillsGetInvokedResult {
12250
12948
  skills: SkillsInvokedSkill[];
12251
12949
  }
12252
12950
  /**
12253
- * Schema for the `SkillsInvokedSkill` type.
12951
+ * Skill invocation record with name, path, content, allowed tools, and turn number.
12254
12952
  *
12255
12953
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12256
12954
  * via the `definition` "SkillsInvokedSkill".
@@ -12296,7 +12994,7 @@ export interface SkillsLoadDiagnostics {
12296
12994
  errors: string[];
12297
12995
  }
12298
12996
  /**
12299
- * Schema for the `SlashCommandAgentPromptResult` type.
12997
+ * Slash-command invocation result that submits an agent prompt, with display prompt, optional mode, and settings-change flag.
12300
12998
  *
12301
12999
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12302
13000
  * via the `definition` "SlashCommandAgentPromptResult".
@@ -12322,7 +13020,7 @@ export interface SlashCommandAgentPromptResult {
12322
13020
  runtimeSettingsChanged?: boolean;
12323
13021
  }
12324
13022
  /**
12325
- * Schema for the `SlashCommandCompletedResult` type.
13023
+ * Slash-command invocation result indicating completion, with optional message and settings-change flag.
12326
13024
  *
12327
13025
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12328
13026
  * via the `definition` "SlashCommandCompletedResult".
@@ -12343,7 +13041,7 @@ export interface SlashCommandCompletedResult {
12343
13041
  runtimeSettingsChanged?: boolean;
12344
13042
  }
12345
13043
  /**
12346
- * Schema for the `SlashCommandTextResult` type.
13044
+ * Slash-command invocation result containing text output plus Markdown/ANSI rendering flags.
12347
13045
  *
12348
13046
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12349
13047
  * via the `definition` "SlashCommandTextResult".
@@ -12372,7 +13070,7 @@ export interface SlashCommandTextResult {
12372
13070
  runtimeSettingsChanged?: boolean;
12373
13071
  }
12374
13072
  /**
12375
- * Schema for the `SlashCommandSelectSubcommandResult` type.
13073
+ * Slash-command invocation result asking the client to present subcommand options for a parent command.
12376
13074
  *
12377
13075
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12378
13076
  * via the `definition` "SlashCommandSelectSubcommandResult".
@@ -12401,7 +13099,7 @@ export interface SlashCommandSelectSubcommandResult {
12401
13099
  runtimeSettingsChanged?: boolean;
12402
13100
  }
12403
13101
  /**
12404
- * Schema for the `SlashCommandSelectSubcommandOption` type.
13102
+ * Selectable slash-command subcommand option with name, description, and optional group label.
12405
13103
  *
12406
13104
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12407
13105
  * via the `definition` "SlashCommandSelectSubcommandOption".
@@ -12440,7 +13138,7 @@ export interface SubagentSettingsEntry {
12440
13138
  contextTier?: SubagentSettingsEntryContextTier;
12441
13139
  }
12442
13140
  /**
12443
- * Schema for the `TaskAgentInfo` type.
13141
+ * Tracked background agent task metadata, including IDs, status, timing, agent type, prompt, model, result, and latest response.
12444
13142
  *
12445
13143
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12446
13144
  * via the `definition` "TaskAgentInfo".
@@ -12519,7 +13217,7 @@ export interface TaskAgentInfo {
12519
13217
  idleSince?: string;
12520
13218
  }
12521
13219
  /**
12522
- * Schema for the `TaskAgentProgress` type.
13220
+ * Progress snapshot for an agent task, with recent activity lines and optional latest intent.
12523
13221
  *
12524
13222
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12525
13223
  * via the `definition` "TaskAgentProgress".
@@ -12540,7 +13238,7 @@ export interface TaskAgentProgress {
12540
13238
  latestIntent?: string;
12541
13239
  }
12542
13240
  /**
12543
- * Schema for the `TaskProgressLine` type.
13241
+ * Timestamped display line for task progress output or recent agent activity.
12544
13242
  *
12545
13243
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12546
13244
  * via the `definition` "TaskProgressLine".
@@ -12557,7 +13255,7 @@ export interface TaskProgressLine {
12557
13255
  timestamp: string;
12558
13256
  }
12559
13257
  /**
12560
- * Schema for the `TaskShellInfo` type.
13258
+ * Tracked shell task metadata, including ID, command, status, timing, attachment/execution mode, log path, and PID.
12561
13259
  *
12562
13260
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12563
13261
  * via the `definition` "TaskShellInfo".
@@ -12618,7 +13316,7 @@ export interface TaskList {
12618
13316
  tasks: TaskInfo[];
12619
13317
  }
12620
13318
  /**
12621
- * Schema for the `TaskShellProgress` type.
13319
+ * Progress snapshot for a shell task, with recent stdout/stderr output and optional process ID.
12622
13320
  *
12623
13321
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12624
13322
  * via the `definition` "TaskShellProgress".
@@ -12876,7 +13574,7 @@ export interface TelemetrySetFeatureOverridesRequest {
12876
13574
  };
12877
13575
  }
12878
13576
  /**
12879
- * Schema for the `Tool` type.
13577
+ * Built-in tool metadata with identifier, optional namespaced name, description, input-parameter schema, and usage instructions.
12880
13578
  *
12881
13579
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
12882
13580
  * via the `definition` "Tool".
@@ -13011,7 +13709,7 @@ export interface UIElicitationArrayAnyOfFieldItems {
13011
13709
  anyOf: UIElicitationArrayAnyOfFieldItemsAnyOf[];
13012
13710
  }
13013
13711
  /**
13014
- * Schema for the `UIElicitationArrayAnyOfFieldItemsAnyOf` type.
13712
+ * Selectable option for a UI elicitation multi-select array item, with submitted value and display label.
13015
13713
  *
13016
13714
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13017
13715
  * via the `definition` "UIElicitationArrayAnyOfFieldItemsAnyOf".
@@ -13178,7 +13876,7 @@ export interface UIElicitationStringOneOfField {
13178
13876
  default?: string;
13179
13877
  }
13180
13878
  /**
13181
- * Schema for the `UIElicitationStringOneOfFieldOneOf` type.
13879
+ * Selectable option for a UI elicitation single-select string field, with submitted value and display label.
13182
13880
  *
13183
13881
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13184
13882
  * via the `definition` "UIElicitationStringOneOfFieldOneOf".
@@ -13344,7 +14042,7 @@ export interface UIEphemeralQueryResult {
13344
14042
  answer: string;
13345
14043
  }
13346
14044
  /**
13347
- * Schema for the `UIExitPlanModeResponse` type.
14045
+ * User response for a pending exit-plan-mode request, with approval state, selected action, auto-approve flag, and feedback.
13348
14046
  *
13349
14047
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13350
14048
  * via the `definition` "UIExitPlanModeResponse".
@@ -13491,7 +14189,7 @@ export interface UIHandlePendingUserInputRequest {
13491
14189
  response: UIUserInputResponse;
13492
14190
  }
13493
14191
  /**
13494
- * Schema for the `UIUserInputResponse` type.
14192
+ * User response for a pending user-input request, with answer text and whether it was typed freeform.
13495
14193
  *
13496
14194
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13497
14195
  * via the `definition` "UIUserInputResponse".
@@ -13614,7 +14312,7 @@ export interface UsageGetMetricsResult {
13614
14312
  lastCallOutputTokens: number;
13615
14313
  }
13616
14314
  /**
13617
- * Schema for the `UsageMetricsTokenDetail` type.
14315
+ * Session-wide token-detail entry containing the accumulated token count for one token type.
13618
14316
  *
13619
14317
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13620
14318
  * via the `definition` "UsageMetricsTokenDetail".
@@ -13652,7 +14350,7 @@ export interface UsageMetricsCodeChanges {
13652
14350
  filesModified: string[];
13653
14351
  }
13654
14352
  /**
13655
- * Schema for the `UsageMetricsModelMetric` type.
14353
+ * Per-model usage metrics, including request counts/costs, token usage, nano-AI units, and per-token-type details.
13656
14354
  *
13657
14355
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13658
14356
  * via the `definition` "UsageMetricsModelMetric".
@@ -13719,7 +14417,7 @@ export interface UsageMetricsModelMetricUsage {
13719
14417
  reasoningTokens?: number;
13720
14418
  }
13721
14419
  /**
13722
- * Schema for the `UsageMetricsModelMetricTokenDetail` type.
14420
+ * Per-model token-detail entry containing the accumulated token count for one token type.
13723
14421
  *
13724
14422
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13725
14423
  * via the `definition` "UsageMetricsModelMetricTokenDetail".
@@ -13924,7 +14622,7 @@ export interface WorkspaceDiffResult {
13924
14622
  isFallback: boolean;
13925
14623
  }
13926
14624
  /**
13927
- * Schema for the `WorkspacesCheckpoints` type.
14625
+ * Workspace checkpoint metadata with assigned number, human-readable title, and checkpoint filename.
13928
14626
  *
13929
14627
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
13930
14628
  * via the `definition` "WorkspacesCheckpoints".
@@ -14760,6 +15458,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
14760
15458
  setCredentials: (params: SessionSetCredentialsParams) => Promise<SessionSetCredentialsResult>;
14761
15459
  };
14762
15460
  /** @experimental */
15461
+ debug: {
15462
+ /**
15463
+ * Collects a redacted session debug log bundle into a local archive or staging directory. The runtime includes session-owned logs by default and accepts caller-provided diagnostic entries so host applications can add their own files without changing this API shape.
15464
+ *
15465
+ * @param params Options for collecting a redacted session debug bundle.
15466
+ *
15467
+ * @returns Result of collecting a redacted debug bundle.
15468
+ */
15469
+ collectLogs: (params: DebugCollectLogsRequest) => Promise<DebugCollectLogsResult>;
15470
+ };
15471
+ /** @experimental */
14763
15472
  canvas: {
14764
15473
  /**
14765
15474
  * Lists canvases declared for the session.
@@ -15598,17 +16307,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
15598
16307
  */
15599
16308
  setApproveAll: (params: PermissionsSetApproveAllRequest) => Promise<PermissionsSetApproveAllResult>;
15600
16309
  /**
15601
- * Enables or disables full allow-all permissions (tools, paths, and URLs) for the session. Used by attach-mode clients (e.g. LocalRpcSession's `/allow-all` forwarder) to flip the target session's permission state. Unlike `setApproveAll`, this swaps in the unrestricted path and URL managers and emits `session.permissions_changed` on transition. The result returns the authoritative post-mutation state so callers can update their local mirrors without racing the `session.permissions_changed` notification on the same wire.
16310
+ * Sets the allow-all permission mode for the session. Used by attach-mode clients (e.g. LocalRpcSession's `/allow-all` forwarder) to flip the target session's permission state. The `on` mode swaps in unrestricted path and URL managers and emits `session.permissions_changed` on transition; the `auto` mode keeps normal prompt paths active while attaching LLM safety recommendations. The result returns the authoritative post-mutation state so callers can update their local mirrors without racing the `session.permissions_changed` notification on the same wire.
15602
16311
  *
15603
- * @param params Whether to enable full allow-all permissions for the session.
16312
+ * @param params Allow-all mode to apply for the session.
15604
16313
  *
15605
16314
  * @returns Indicates whether the operation succeeded and reports the post-mutation state.
15606
16315
  */
15607
16316
  setAllowAll: (params: PermissionsSetAllowAllRequest) => Promise<AllowAllPermissionSetResult>;
15608
16317
  /**
15609
- * Returns whether full allow-all permissions are currently active for the session.
16318
+ * Returns the current allow-all permission mode for the session.
15610
16319
  *
15611
- * @returns Current full allow-all permission state.
16320
+ * @returns Current allow-all permission mode.
15612
16321
  */
15613
16322
  getAllowAll: () => Promise<AllowAllPermissionState>;
15614
16323
  /**
@@ -15778,6 +16487,20 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
15778
16487
  * @returns Token breakdown for the session's current context window, or null if uninitialized.
15779
16488
  */
15780
16489
  contextInfo: (params: MetadataContextInfoRequest) => Promise<MetadataContextInfoResult>;
16490
+ /**
16491
+ * Returns the experimental per-source attribution breakdown of the session's current context window as a flat list of entries (skills, subagents, MCP servers, built-in tools, plugin rollups, system/tool-definition costs, with nesting via parentId), plus the successful compaction count. The heaviest individual messages are available separately via `metadata.getContextHeaviestMessages`. Returns null until the session has initialized its system prompt and tool metadata.
16492
+ *
16493
+ * @returns Per-source attribution breakdown for the session's current context window, or null if uninitialized.
16494
+ */
16495
+ getContextAttribution: () => Promise<MetadataContextAttributionResult>;
16496
+ /**
16497
+ * Returns the largest individual messages currently in the session's context window, most-expensive first. Companion to `metadata.getContextAttribution`. Returns an empty list until the session has initialized.
16498
+ *
16499
+ * @param params Parameters for the heaviest-messages query.
16500
+ *
16501
+ * @returns The heaviest individual messages in the session's context window, most-expensive first.
16502
+ */
16503
+ getContextHeaviestMessages: (params: MetadataContextHeaviestMessagesRequest) => Promise<MetadataContextHeaviestMessagesResult>;
15781
16504
  /**
15782
16505
  * Records a working-directory/git context change and emits a `session.context_changed` event.
15783
16506
  *
@@ -16169,9 +16892,9 @@ export interface LlmInferenceHandler {
16169
16892
  /** @experimental */
16170
16893
  export interface GitHubTelemetryHandler {
16171
16894
  /**
16172
- * Forwards a single GitHub telemetry event to a host connection that opted into telemetry forwarding for the session.
16895
+ * Forwards a single GitHub telemetry event to a host connection that opted into telemetry forwarding during the `server.connect` handshake. Opted-in connections receive every event the runtime emits after the handshake — across all sessions, plus sessionless events (for example, `server.sendTelemetry` calls with no session id).
16173
16896
  *
16174
- * @param params Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding for the session.
16897
+ * @param params Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding during the `server.connect` handshake.
16175
16898
  */
16176
16899
  event(params: GitHubTelemetryNotification): Promise<void>;
16177
16900
  }