@github/copilot-sdk-win32-x64 1.0.17-preview.0 → 1.0.17-preview.1

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.
@@ -3289,6 +3289,18 @@ export type McpServerCardEmbeddedKind = "embedded";
3289
3289
  */
3290
3290
  /** @experimental */
3291
3291
  export type McpPlanInstallResult = McpPlanInstallPlanned | CatalogNegotiationRefusedError | CatalogHandleRejectedError | CatalogInvalidRequestError | CatalogAuthenticationRequiredError | CatalogPolicyRejectedError | CatalogNetworkFailureError | CatalogUnsafeRetrievalError | CatalogMalformedCardError | CatalogContractViolationError | CatalogUnavailableTransportError | CatalogNotInstallableError | CatalogUnavailableError;
3292
+ /**
3293
+ * The sender role of an MCP prompt message.
3294
+ *
3295
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3296
+ * via the `definition` "McpPromptRole".
3297
+ */
3298
+ /** @experimental */
3299
+ export type McpPromptRole =
3300
+ /** A message from the user. */
3301
+ "user"
3302
+ /** A message from the assistant. */
3303
+ | "assistant";
3292
3304
  /**
3293
3305
  * MCP server configuration (stdio, remote HTTP/SSE, or in-process)
3294
3306
  *
@@ -14475,6 +14487,23 @@ export interface McpOauthCancelLoginResult {
14475
14487
  */
14476
14488
  cancelled: boolean;
14477
14489
  }
14490
+ /**
14491
+ * Host-delivered callback for a runtime-managed MCP OAuth login.
14492
+ *
14493
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14494
+ * via the `definition` "McpOauthCompleteRequest".
14495
+ */
14496
+ /** @experimental */
14497
+ export interface McpOauthCompleteRequest {
14498
+ /**
14499
+ * Opaque identifier returned by session.mcp.oauth.login for the pending external callback.
14500
+ */
14501
+ authorizationId: string;
14502
+ /**
14503
+ * Full externally visible HTTPS callback URL received by the host, including the authorization response query parameters. Applications behind a reverse proxy must reconstruct the public URL rather than passing an internal proxy URL.
14504
+ */
14505
+ callbackUrl: string;
14506
+ }
14478
14507
  /**
14479
14508
  * Pending MCP OAuth request ID and host-provided token or cancellation response.
14480
14509
  *
@@ -14503,7 +14532,7 @@ export interface McpOauthHandlePendingResult {
14503
14532
  success: boolean;
14504
14533
  }
14505
14534
  /**
14506
- * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.
14535
+ * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback handling, and static OAuth client selection.
14507
14536
  *
14508
14537
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14509
14538
  * via the `definition` "McpOauthLoginRequest".
@@ -14539,6 +14568,10 @@ export interface McpOauthLoginRequest {
14539
14568
  */
14540
14569
  publicClient?: boolean;
14541
14570
  grantType?: McpOauthLoginGrantType;
14571
+ /**
14572
+ * Optional externally visible HTTPS redirect URI for a host-managed callback endpoint. When supplied, the runtime still owns discovery, PKCE, token exchange, persistence, and reconnect, but does not bind a loopback listener or terminate HTTPS. The URI must not contain query parameters or a fragment and must be registered for the selected CIMD, DCR, or static OAuth client.
14573
+ */
14574
+ redirectUri?: string;
14542
14575
  /**
14543
14576
  * Required for owned login. Consumes the exact prepareLogin handle once.
14544
14577
  * Set forceReauth and display options during preparation, not consumption.
@@ -14563,9 +14596,13 @@ export interface McpOauthLoginResult {
14563
14596
  loginId?: string;
14564
14597
  status?: McpOwnedOauthLoginStatus;
14565
14598
  /**
14566
- * URL the caller should open in a browser to complete OAuth. Omitted when cached tokens were still valid and no browser interaction was needed — the server is already reconnected in that case. When present, the runtime starts the callback listener before returning and continues the flow in the background; completion is signaled via session.mcp_server_status_changed.
14599
+ * URL the caller should open in a browser to complete OAuth. Omitted when cached tokens were still valid and no browser interaction was needed — the server is already reconnected in that case. For the default loopback flow, the runtime starts its listener before returning. With redirectUri, the host receives the callback and completes it through session.mcp.oauth.complete. The runtime continues the flow in the background and signals completion via session.mcp_server_status_changed.
14567
14600
  */
14568
14601
  authorizationUrl?: string;
14602
+ /**
14603
+ * Opaque authorization identifier returned only for a host-managed redirect URI. The runtime also sends it as the OAuth state value, so the callback endpoint can read state and pass it with the full callback URL to session.mcp.oauth.complete.
14604
+ */
14605
+ authorizationId?: string;
14569
14606
  }
14570
14607
  /**
14571
14608
  * Effect-free preparation bound to the existing local session, requester and installation, with frozen options.
@@ -14798,6 +14835,235 @@ export interface McpPrepareInstallRequest {
14798
14835
  source: McpServerCardReference;
14799
14836
  secretStorage: McpInstallationSecretStorage;
14800
14837
  }
14838
+ /**
14839
+ * An MCP prompt descriptor. Server-provided non-standard fields are exposed under `additionalProperties`.
14840
+ *
14841
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14842
+ * via the `definition` "McpPrompt".
14843
+ */
14844
+ /** @experimental */
14845
+ export interface McpPrompt {
14846
+ /**
14847
+ * The programmatic name of the prompt
14848
+ */
14849
+ name: string;
14850
+ /**
14851
+ * Human-readable display title
14852
+ */
14853
+ title?: string;
14854
+ /**
14855
+ * Description of what this prompt provides
14856
+ */
14857
+ description?: string;
14858
+ /**
14859
+ * Arguments accepted by the prompt
14860
+ */
14861
+ arguments?: McpPromptArgument[];
14862
+ /**
14863
+ * Icons associated with this prompt
14864
+ */
14865
+ icons?: McpPromptIcon[];
14866
+ /**
14867
+ * Prompt-level metadata
14868
+ */
14869
+ _meta?: {
14870
+ [k: string]: JsonValue | undefined;
14871
+ };
14872
+ /**
14873
+ * Server-provided non-standard descriptor fields
14874
+ */
14875
+ additionalProperties?: {
14876
+ [k: string]: JsonValue | undefined;
14877
+ };
14878
+ }
14879
+ /**
14880
+ * An argument accepted by an MCP prompt.
14881
+ *
14882
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14883
+ * via the `definition` "McpPromptArgument".
14884
+ */
14885
+ /** @experimental */
14886
+ export interface McpPromptArgument {
14887
+ /**
14888
+ * Name of the argument
14889
+ */
14890
+ name: string;
14891
+ /**
14892
+ * Description of the argument
14893
+ */
14894
+ description?: string;
14895
+ /**
14896
+ * Whether the argument is required; omission is distinct from false
14897
+ */
14898
+ required?: boolean;
14899
+ /**
14900
+ * Argument-level metadata
14901
+ */
14902
+ _meta?: {
14903
+ [k: string]: JsonValue | undefined;
14904
+ };
14905
+ /**
14906
+ * Server-provided non-standard argument fields
14907
+ */
14908
+ additionalProperties?: {
14909
+ [k: string]: JsonValue | undefined;
14910
+ };
14911
+ }
14912
+ /**
14913
+ * An MCP prompt icon with standard size hints and preserved non-standard fields.
14914
+ *
14915
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14916
+ * via the `definition` "McpPromptIcon".
14917
+ */
14918
+ /** @experimental */
14919
+ export interface McpPromptIcon {
14920
+ /**
14921
+ * Icon URI
14922
+ */
14923
+ src: string;
14924
+ /**
14925
+ * Icon MIME type, when known
14926
+ */
14927
+ mimeType?: string;
14928
+ /**
14929
+ * Icon sizes, such as `48x48` or `any`
14930
+ */
14931
+ sizes?: string[];
14932
+ /**
14933
+ * Theme hint for this icon
14934
+ */
14935
+ theme?: string;
14936
+ /**
14937
+ * Server-provided non-standard icon fields
14938
+ */
14939
+ additionalProperties?: {
14940
+ [k: string]: JsonValue | undefined;
14941
+ };
14942
+ }
14943
+ /**
14944
+ * An MCP prompt message with opaque JSON content preserved without flattening or content-type filtering.
14945
+ *
14946
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14947
+ * via the `definition` "McpPromptMessage".
14948
+ */
14949
+ /** @experimental */
14950
+ export interface McpPromptMessage {
14951
+ role: McpPromptRole;
14952
+ /**
14953
+ * The original MCP content block, including nested metadata and unfamiliar content types
14954
+ */
14955
+ content: JsonValue;
14956
+ /**
14957
+ * Message-level metadata
14958
+ */
14959
+ _meta?: {
14960
+ [k: string]: JsonValue | undefined;
14961
+ };
14962
+ /**
14963
+ * Server-provided non-standard message fields
14964
+ */
14965
+ additionalProperties?: {
14966
+ [k: string]: JsonValue | undefined;
14967
+ };
14968
+ }
14969
+ /**
14970
+ * MCP server, prompt name, and optional string-valued arguments.
14971
+ *
14972
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14973
+ * via the `definition` "McpPromptsGetRequest".
14974
+ */
14975
+ /** @experimental */
14976
+ export interface McpPromptsGetRequest {
14977
+ /**
14978
+ * Name of the MCP server hosting the prompt
14979
+ */
14980
+ serverName: string;
14981
+ /**
14982
+ * The programmatic name of the prompt
14983
+ */
14984
+ promptName: string;
14985
+ /**
14986
+ * String-valued arguments to pass to the prompt
14987
+ */
14988
+ arguments?: {
14989
+ [k: string]: string | undefined;
14990
+ };
14991
+ }
14992
+ /**
14993
+ * Prompt messages returned by the MCP server without sending them to the model.
14994
+ *
14995
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
14996
+ * via the `definition` "McpPromptsGetResult".
14997
+ */
14998
+ /** @experimental */
14999
+ export interface McpPromptsGetResult {
15000
+ /**
15001
+ * Description of the prompt
15002
+ */
15003
+ description?: string;
15004
+ /**
15005
+ * Ordered prompt messages
15006
+ */
15007
+ messages: McpPromptMessage[];
15008
+ /**
15009
+ * MCP result metadata
15010
+ */
15011
+ _meta?: {
15012
+ [k: string]: JsonValue | undefined;
15013
+ };
15014
+ /**
15015
+ * Server-provided non-standard result fields
15016
+ */
15017
+ additionalProperties?: {
15018
+ [k: string]: JsonValue | undefined;
15019
+ };
15020
+ }
15021
+ /**
15022
+ * MCP server whose prompts to enumerate.
15023
+ *
15024
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
15025
+ * via the `definition` "McpPromptsListRequest".
15026
+ */
15027
+ /** @experimental */
15028
+ export interface McpPromptsListRequest {
15029
+ /**
15030
+ * Name of the MCP server whose prompts to enumerate
15031
+ */
15032
+ serverName: string;
15033
+ /**
15034
+ * Opaque MCP pagination cursor from a prior `nextCursor` value
15035
+ */
15036
+ cursor?: string;
15037
+ }
15038
+ /**
15039
+ * One page of prompts advertised by the named MCP server.
15040
+ *
15041
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
15042
+ * via the `definition` "McpPromptsListResult".
15043
+ */
15044
+ /** @experimental */
15045
+ export interface McpPromptsListResult {
15046
+ /**
15047
+ * Prompts advertised by the server
15048
+ */
15049
+ prompts: McpPrompt[];
15050
+ /**
15051
+ * Opaque cursor for the next page, if the server has more prompts
15052
+ */
15053
+ nextCursor?: string;
15054
+ /**
15055
+ * MCP result metadata
15056
+ */
15057
+ _meta?: {
15058
+ [k: string]: JsonValue | undefined;
15059
+ };
15060
+ /**
15061
+ * Server-provided non-standard result fields
15062
+ */
15063
+ additionalProperties?: {
15064
+ [k: string]: JsonValue | undefined;
15065
+ };
15066
+ }
14801
15067
  /**
14802
15068
  * Indicates whether the auto-managed `github` MCP server was removed (false when nothing to remove).
14803
15069
  *
@@ -23932,7 +24198,7 @@ export interface ShellCancelUserRequestedRequest {
23932
24198
  requestId: string;
23933
24199
  }
23934
24200
  /**
23935
- * Shell command to run, with optional working directory and timeout in milliseconds.
24201
+ * Shell command to run, with optional working directory and timeout in milliseconds. Spawn failures return an RPC error.
23936
24202
  *
23937
24203
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
23938
24204
  * via the `definition` "ShellExecRequest".
@@ -23953,7 +24219,7 @@ export interface ShellExecRequest {
23953
24219
  timeout?: number;
23954
24220
  }
23955
24221
  /**
23956
- * Identifier of the spawned process, used to correlate streamed output and exit notifications.
24222
+ * Identifier of the spawned shell process, usable with shell.kill while the process is running.
23957
24223
  *
23958
24224
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
23959
24225
  * via the `definition` "ShellExecResult".
@@ -23961,7 +24227,7 @@ export interface ShellExecRequest {
23961
24227
  /** @experimental */
23962
24228
  export interface ShellExecResult {
23963
24229
  /**
23964
- * Unique identifier for tracking streamed output
24230
+ * Identifier usable with shell.kill while the process is running
23965
24231
  */
23966
24232
  processId: string;
23967
24233
  }
@@ -30579,11 +30845,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
30579
30845
  /**
30580
30846
  * Starts OAuth authentication for a remote MCP server. Owned servers require the original one-use prepareLogin handle and exact installation ID; manual servers retain the existing direct login behaviour.
30581
30847
  *
30582
- * @param params Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.
30848
+ * @param params Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback handling, and static OAuth client selection.
30583
30849
  *
30584
30850
  * @returns OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server.
30585
30851
  */
30586
30852
  login: (params: McpOauthLoginRequest) => Promise<McpOauthLoginResult>;
30853
+ /**
30854
+ * Completes a runtime-managed MCP OAuth login after the authorization server redirects to a host-managed callback URL.
30855
+ *
30856
+ * @param params Host-delivered callback for a runtime-managed MCP OAuth login.
30857
+ */
30858
+ complete: (params: McpOauthCompleteRequest) => Promise<void>;
30587
30859
  /**
30588
30860
  * Passively probes a configured remote MCP server to classify whether OAuth is required or a cached/override token is accepted. Does not start OAuth, emit pending OAuth requests, or mutate MCP connection state.
30589
30861
  *
@@ -30694,6 +30966,25 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
30694
30966
  */
30695
30967
  listTemplates: (params: McpResourcesListTemplatesRequest) => Promise<McpResourcesListTemplatesResult>;
30696
30968
  };
30969
+ /** @experimental */
30970
+ prompts: {
30971
+ /**
30972
+ * Enumerate one page of prompts a connected MCP server exposes (proxies MCP `prompts/list`). Pass `cursor` to continue from a prior result's `nextCursor`.
30973
+ *
30974
+ * @param params MCP server whose prompts to enumerate.
30975
+ *
30976
+ * @returns One page of prompts advertised by the named MCP server.
30977
+ */
30978
+ list: (params: McpPromptsListRequest) => Promise<McpPromptsListResult>;
30979
+ /**
30980
+ * Get a prompt's messages from a connected MCP server (proxies MCP `prompts/get`). Content is preserved as opaque JSON. Does not send messages to the model, execute tools, or fetch referenced resources.
30981
+ *
30982
+ * @param params MCP server, prompt name, and optional string-valued arguments.
30983
+ *
30984
+ * @returns Prompt messages returned by the MCP server without sending them to the model.
30985
+ */
30986
+ get: (params: McpPromptsGetRequest) => Promise<McpPromptsGetResult>;
30987
+ };
30697
30988
  };
30698
30989
  /** @experimental */
30699
30990
  diagnostics: {
@@ -31468,11 +31759,11 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
31468
31759
  /** @experimental */
31469
31760
  shell: {
31470
31761
  /**
31471
- * Starts a shell command and streams output through session notifications. The command runs as the leader of its own process group (POSIX) or in a dedicated job object (Windows), so a forced termination — via "shell.kill", the request timeout, or session disposal — signals that whole group/job rather than only the direct child. Two gaps are worth planning for: a command that exits on its own does not trigger that teardown, and on POSIX a descendant that moves itself into a new session or process group (for example via "setsid") leaves the signalled group, so either can leave a background process running.
31762
+ * Starts a shell command, returning an RPC error if it cannot be spawned. The command runs as the leader of its own process group (POSIX) or in a dedicated job object (Windows), so a forced termination — via "shell.kill", the request timeout, or session disposal — signals that whole group/job rather than only the direct child. Two gaps are worth planning for: a command that exits on its own does not trigger that teardown, and on POSIX a descendant that moves itself into a new session or process group (for example via "setsid") leaves the signalled group, so either can leave a background process running.
31472
31763
  *
31473
- * @param params Shell command to run, with optional working directory and timeout in milliseconds.
31764
+ * @param params Shell command to run, with optional working directory and timeout in milliseconds. Spawn failures return an RPC error.
31474
31765
  *
31475
- * @returns Identifier of the spawned process, used to correlate streamed output and exit notifications.
31766
+ * @returns Identifier of the spawned shell process, usable with shell.kill while the process is running.
31476
31767
  */
31477
31768
  exec: (params: ShellExecRequest) => Promise<ShellExecResult>;
31478
31769
  /**
@@ -6477,6 +6477,12 @@ export interface ToolExecutionProgressData {
6477
6477
  * Human-readable progress status message (e.g., from an MCP server)
6478
6478
  */
6479
6479
  progressMessage: string;
6480
+ /**
6481
+ * Client-only structured progress metadata. Not model-facing tool output.
6482
+ *
6483
+ * @experimental
6484
+ */
6485
+ structuredContent?: JsonValue;
6480
6486
  /**
6481
6487
  * Tool call ID this progress notification belongs to
6482
6488
  */
@@ -11306,6 +11312,10 @@ export interface AutoModeResolvedData {
11306
11312
  * The routing method the server applied, when Auto Intent ran
11307
11313
  */
11308
11314
  routingMethod?: string;
11315
+ /**
11316
+ * Short human-readable sentence from the routing service explaining why this model was chosen, for display alongside the model. Present only when the service supplied one: it is omitted for on-device selections, when the service did not provide an explanation, and when a replayed decision made no routing call. The text is display-only and drawn from a fixed catalogue; several distinct routing categories share identical wording, so it cannot be used to recover the category or keyed on programmatically.
11317
+ */
11318
+ selectionReason?: string;
11309
11319
  /**
11310
11320
  * Whether a sticky model choice overrode the router result
11311
11321
  */