@github/copilot-sdk-win32-x64 1.0.16 → 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.
- package/copilot-sdk/client.d.ts +1 -0
- package/copilot-sdk/extension.js +383 -242
- package/copilot-sdk/ffiRuntimeHost.d.ts +1 -0
- package/copilot-sdk/generated/rpc.d.ts +649 -14
- package/copilot-sdk/generated/session-events.d.ts +13 -3
- package/copilot-sdk/index.d.ts +1 -1
- package/copilot-sdk/index.js +383 -242
- package/copilot-sdk/session.d.ts +4 -1
- package/copilot-sdk/types.d.ts +17 -2
- package/package.json +3 -2
- package/prebuilds/win32-x64/OneAuthInterop.dll +0 -0
- package/prebuilds/win32-x64/copilot-runtime.exe +0 -0
- package/prebuilds/win32-x64/runtime.node +2 -2
- package/ripgrep/bin/win32-x64/rg.exe +0 -0
- package/schemas/api.schema.json +1022 -21
- package/schemas/session-events.schema.json +23 -5
- package/tgrep/bin/win32-x64/tgrep.exe +0 -0
|
@@ -1358,6 +1358,14 @@ export type ConnectorMcpStatus =
|
|
|
1358
1358
|
| "disabled"
|
|
1359
1359
|
/** The Connector currently has no live server configuration. */
|
|
1360
1360
|
| "not_configured";
|
|
1361
|
+
/**
|
|
1362
|
+
* Session account selection, or null.
|
|
1363
|
+
*
|
|
1364
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1365
|
+
* via the `definition` "ConnectorSessionAccountResult".
|
|
1366
|
+
*/
|
|
1367
|
+
/** @experimental */
|
|
1368
|
+
export type ConnectorSessionAccountResult = ConnectorSessionAccount | null;
|
|
1361
1369
|
/**
|
|
1362
1370
|
* Closed set of public task kinds a connection can negotiate.
|
|
1363
1371
|
*
|
|
@@ -2516,6 +2524,32 @@ export type SessionLogLevel =
|
|
|
2516
2524
|
| "warning"
|
|
2517
2525
|
/** Error message describing a failure. */
|
|
2518
2526
|
| "error";
|
|
2527
|
+
/**
|
|
2528
|
+
* A channel accepted by managedSettings.compose.
|
|
2529
|
+
*
|
|
2530
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2531
|
+
* via the `definition` "ManagedSettingsChannel".
|
|
2532
|
+
*/
|
|
2533
|
+
/** @experimental */
|
|
2534
|
+
export type ManagedSettingsChannel =
|
|
2535
|
+
/** Device policy, the strongest channel. */
|
|
2536
|
+
"device"
|
|
2537
|
+
/** Account or organization policy. */
|
|
2538
|
+
| "server"
|
|
2539
|
+
/** Session-local helper output, the weakest channel. */
|
|
2540
|
+
| "policyHelper";
|
|
2541
|
+
/**
|
|
2542
|
+
* Severity of a managed-settings validation finding.
|
|
2543
|
+
*
|
|
2544
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2545
|
+
* via the `definition` "ManagedSettingsDiagnosticSeverity".
|
|
2546
|
+
*/
|
|
2547
|
+
/** @experimental */
|
|
2548
|
+
export type ManagedSettingsDiagnosticSeverity =
|
|
2549
|
+
/** The runtime rejects the document. */
|
|
2550
|
+
"error"
|
|
2551
|
+
/** The runtime accepts the document but ignores the flagged content. */
|
|
2552
|
+
| "warning";
|
|
2519
2553
|
/**
|
|
2520
2554
|
* UI theme preference per SEP-1865
|
|
2521
2555
|
*
|
|
@@ -3255,6 +3289,18 @@ export type McpServerCardEmbeddedKind = "embedded";
|
|
|
3255
3289
|
*/
|
|
3256
3290
|
/** @experimental */
|
|
3257
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";
|
|
3258
3304
|
/**
|
|
3259
3305
|
* MCP server configuration (stdio, remote HTTP/SSE, or in-process)
|
|
3260
3306
|
*
|
|
@@ -4110,7 +4156,7 @@ export type SandboxConfigSource =
|
|
|
4110
4156
|
/** A repository policy selected the sandbox state. */
|
|
4111
4157
|
| "repository_policy";
|
|
4112
4158
|
/**
|
|
4113
|
-
* Extensible identifier of a sandbox policy feature whose availability varies between hosts. A plain string, so an older client decodes a name added by a newer runtime; ignore names you do not recognize. Known values: `network` — sandboxed commands can reach the network (`network.allowOutbound`, on by default); on Linux this needs the tooling for Bubblewrap's private network namespace, such as slirp4netns. `network_filtering` — host rules and the sandbox proxy (`network.allowedHosts`, `network.blockedHosts`, `network.proxy`); on Linux this needs the same tooling as `network`; on Windows it needs a version with Process Security Environment 1.1 host-loopback support, and a policy that uses it must also set `network.allowLocalNetwork`, because Windows reaches the local proxy only together with private-network access. `denied_paths` — native enforcement of `filesystem.deniedPaths`; on Windows this needs a version whose sandbox contract reports denied-path support. `shell` — shell commands inside the sandbox: bash on macOS and Linux, PowerShell on Windows
|
|
4159
|
+
* Extensible identifier of a sandbox policy feature whose availability varies between hosts. A plain string, so an older client decodes a name added by a newer runtime; ignore names you do not recognize. Known values: `network` — sandboxed commands can reach the network (`network.allowOutbound`, on by default); on Linux this needs the tooling for Bubblewrap's private network namespace, such as slirp4netns. `network_filtering` — host rules and the sandbox proxy (`network.allowedHosts`, `network.blockedHosts`, `network.proxy`); on Linux this needs the same tooling as `network`; on Windows it needs a version with Process Security Environment 1.1 host-loopback support, and a policy that uses it must also set `network.allowLocalNetwork`, because Windows reaches the local proxy only together with private-network access. `denied_paths` — native enforcement of `filesystem.deniedPaths`; on Windows this needs a version whose sandbox contract reports denied-path support. `shell` — shell commands inside the sandbox: bash on macOS and Linux, PowerShell on Windows. `filesystem_enumeration` — enumerate-only filesystem grants, which PowerShell's drive roots use on Windows; this needs a version with Process Security Environment 1.1 filesystem enumeration support. Without it, sandboxed PowerShell still runs, but `Get-Location` may report the drive root, `Set-Location` may fail, and relative paths may resolve against the drive root; the session also receives a `session.warning` with `warningType` `sandbox`. Other platforms always report it.
|
|
4114
4160
|
*
|
|
4115
4161
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4116
4162
|
* via the `definition` "SandboxHostCapabilityName".
|
|
@@ -6949,6 +6995,24 @@ export interface AuthIdentity {
|
|
|
6949
6995
|
registrationId?: string;
|
|
6950
6996
|
copilotUser?: CopilotUserResponse;
|
|
6951
6997
|
}
|
|
6998
|
+
/**
|
|
6999
|
+
* Credential-free identity metadata.
|
|
7000
|
+
*
|
|
7001
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7002
|
+
* via the `definition` "AuthIdentityMetadata".
|
|
7003
|
+
*/
|
|
7004
|
+
/** @experimental */
|
|
7005
|
+
export interface AuthIdentityMetadata {
|
|
7006
|
+
type: AuthInfoType;
|
|
7007
|
+
/**
|
|
7008
|
+
* Identity host.
|
|
7009
|
+
*/
|
|
7010
|
+
host: string;
|
|
7011
|
+
/**
|
|
7012
|
+
* User login.
|
|
7013
|
+
*/
|
|
7014
|
+
login: string;
|
|
7015
|
+
}
|
|
6952
7016
|
/**
|
|
6953
7017
|
* Advance an in-flight login flow, optionally fulfilling an input-required step.
|
|
6954
7018
|
*
|
|
@@ -9054,6 +9118,14 @@ export interface ConnectorCapabilities {
|
|
|
9054
9118
|
* Whether callers select a host-owned GitHub account through an opaque selection ID rather than supplying a provider token.
|
|
9055
9119
|
*/
|
|
9056
9120
|
opaqueAccountSelection: boolean;
|
|
9121
|
+
/**
|
|
9122
|
+
* Whether getAccount is supported. Absence means false.
|
|
9123
|
+
*/
|
|
9124
|
+
sessionAccountSelection?: boolean;
|
|
9125
|
+
/**
|
|
9126
|
+
* Whether reconcile accepts forceConnectorName. Absence means false.
|
|
9127
|
+
*/
|
|
9128
|
+
targetedReconcile?: boolean;
|
|
9057
9129
|
/**
|
|
9058
9130
|
* Maximum accepted polling attempts for one continuation call.
|
|
9059
9131
|
*/
|
|
@@ -9087,6 +9159,18 @@ export interface ConnectorCatalogEntry {
|
|
|
9087
9159
|
* Untrusted service description, when present.
|
|
9088
9160
|
*/
|
|
9089
9161
|
description?: string;
|
|
9162
|
+
/**
|
|
9163
|
+
* Optional catalog logo.
|
|
9164
|
+
*/
|
|
9165
|
+
logo?: string;
|
|
9166
|
+
/**
|
|
9167
|
+
* Optional catalog tier.
|
|
9168
|
+
*/
|
|
9169
|
+
tier?: string;
|
|
9170
|
+
/**
|
|
9171
|
+
* Optional catalog release tag.
|
|
9172
|
+
*/
|
|
9173
|
+
releaseTag?: string;
|
|
9090
9174
|
status: ConnectorCatalogStatus;
|
|
9091
9175
|
/**
|
|
9092
9176
|
* Opaque stable runtime IDs currently projected into the session for this Connector.
|
|
@@ -9232,6 +9316,24 @@ export interface ConnectorReconcileRequest {
|
|
|
9232
9316
|
* When true, refresh the catalog before reconciling. A disabled Connector API performs no service request.
|
|
9233
9317
|
*/
|
|
9234
9318
|
refreshCatalog?: boolean;
|
|
9319
|
+
/**
|
|
9320
|
+
* Optional Connector name to reinitialize. Requires the targetedReconcile capability.
|
|
9321
|
+
*/
|
|
9322
|
+
forceConnectorName?: string;
|
|
9323
|
+
}
|
|
9324
|
+
/**
|
|
9325
|
+
* Session account selection.
|
|
9326
|
+
*
|
|
9327
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9328
|
+
* via the `definition` "ConnectorSessionAccount".
|
|
9329
|
+
*/
|
|
9330
|
+
/** @experimental */
|
|
9331
|
+
export interface ConnectorSessionAccount {
|
|
9332
|
+
/**
|
|
9333
|
+
* Opaque session-scoped account selection ID.
|
|
9334
|
+
*/
|
|
9335
|
+
accountId: string;
|
|
9336
|
+
authInfo: AuthIdentityMetadata;
|
|
9235
9337
|
}
|
|
9236
9338
|
/**
|
|
9237
9339
|
* Remote session connection parameters.
|
|
@@ -12795,6 +12897,130 @@ export interface ManagedMcpServerConfig {
|
|
|
12795
12897
|
*/
|
|
12796
12898
|
headersRefreshTtlMs?: number;
|
|
12797
12899
|
}
|
|
12900
|
+
/**
|
|
12901
|
+
* Lock state and provenance of one managed setting.
|
|
12902
|
+
*
|
|
12903
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12904
|
+
* via the `definition` "ManagedSettingMeta".
|
|
12905
|
+
*/
|
|
12906
|
+
/** @experimental */
|
|
12907
|
+
export interface ManagedSettingMeta {
|
|
12908
|
+
/**
|
|
12909
|
+
* Whether users and repositories may choose a different value. `false` means policy locks the value.
|
|
12910
|
+
*/
|
|
12911
|
+
overridable: boolean;
|
|
12912
|
+
/**
|
|
12913
|
+
* Channel that supplied this scalar value, matching a `layers[].source`: `device`, `server`, or `policyHelper`. These scalar defaults select one winning channel, not a mixed source. Treat unknown values as additional channels; more may be added.
|
|
12914
|
+
*/
|
|
12915
|
+
source: string;
|
|
12916
|
+
}
|
|
12917
|
+
/**
|
|
12918
|
+
* One candidate channel; absent settings represents a channel that delivered no document.
|
|
12919
|
+
*
|
|
12920
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12921
|
+
* via the `definition` "ManagedSettingsComposeLayer".
|
|
12922
|
+
*/
|
|
12923
|
+
/** @experimental */
|
|
12924
|
+
export interface ManagedSettingsComposeLayer {
|
|
12925
|
+
source: ManagedSettingsChannel;
|
|
12926
|
+
/**
|
|
12927
|
+
* Candidate managed-settings document. Omit when the channel delivered none, as in resolve output.
|
|
12928
|
+
*/
|
|
12929
|
+
settings?: JsonValue;
|
|
12930
|
+
}
|
|
12931
|
+
/**
|
|
12932
|
+
* Candidate managed-settings documents to merge without applying them.
|
|
12933
|
+
*
|
|
12934
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12935
|
+
* via the `definition` "ManagedSettingsComposeRequest".
|
|
12936
|
+
*/
|
|
12937
|
+
/** @experimental */
|
|
12938
|
+
export interface ManagedSettingsComposeRequest {
|
|
12939
|
+
/**
|
|
12940
|
+
* One entry per channel. `source` must be `device`, `server`, or `policyHelper`, each at most once (checked at runtime); order does not matter, because channel precedence is fixed. To preview documents from resolve output, map recognized source strings to ManagedSettingsChannel and copy their settings; generated resolve and compose layer types are distinct. Omitted settings means this channel delivered no document. Supplied documents must be valid within the preview limits; warnings are returned in diagnostics. Compose does not reproduce source-failure state or retained enforcement floors from resolve.
|
|
12941
|
+
*/
|
|
12942
|
+
layers: ManagedSettingsComposeLayer[];
|
|
12943
|
+
}
|
|
12944
|
+
/**
|
|
12945
|
+
* The effective managed settings the runtime would enforce for the given documents, in the same shape `managedSettings.resolve` returns.
|
|
12946
|
+
*
|
|
12947
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12948
|
+
* via the `definition` "ManagedSettingsComposeResult".
|
|
12949
|
+
*/
|
|
12950
|
+
/** @experimental */
|
|
12951
|
+
export interface ManagedSettingsComposeResult {
|
|
12952
|
+
resolved: ManagedSettingsResolvedData;
|
|
12953
|
+
values?: ManagedSettingsValues;
|
|
12954
|
+
meta?: ManagedSettingsMeta;
|
|
12955
|
+
/**
|
|
12956
|
+
* Only the supplied channels, strongest first, with canonical documents. Empty canonical documents are represented as absent settings, as in live resolution.
|
|
12957
|
+
*/
|
|
12958
|
+
layers: ManagedSettingsLayer[];
|
|
12959
|
+
/**
|
|
12960
|
+
* Warnings about ignored content, with paths prefixed by the channel name.
|
|
12961
|
+
*/
|
|
12962
|
+
diagnostics: ManagedSettingsDiagnostic[];
|
|
12963
|
+
}
|
|
12964
|
+
/**
|
|
12965
|
+
* Typed effective values of managed settings. Each field mirrors the managed-settings schema key of the same name; more keys are added as they are typed.
|
|
12966
|
+
*
|
|
12967
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12968
|
+
* via the `definition` "ManagedSettingsValues".
|
|
12969
|
+
*/
|
|
12970
|
+
/** @experimental */
|
|
12971
|
+
export interface ManagedSettingsValues {
|
|
12972
|
+
/**
|
|
12973
|
+
* Managed default model identifier, as configured. New sessions start with it; it can name a model the account cannot use, so hosts match it against the listed models.
|
|
12974
|
+
*/
|
|
12975
|
+
model?: string;
|
|
12976
|
+
autoTier?: AutoTier;
|
|
12977
|
+
}
|
|
12978
|
+
/**
|
|
12979
|
+
* Per-key lock state and provenance for `ManagedSettingsValues`, with the same field names. Producers emit each typed key in values and meta together; both outer objects are omitted when no typed key is set.
|
|
12980
|
+
*
|
|
12981
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12982
|
+
* via the `definition` "ManagedSettingsMeta".
|
|
12983
|
+
*/
|
|
12984
|
+
/** @experimental */
|
|
12985
|
+
export interface ManagedSettingsMeta {
|
|
12986
|
+
model?: ManagedSettingMeta;
|
|
12987
|
+
autoTier?: ManagedSettingMeta;
|
|
12988
|
+
}
|
|
12989
|
+
/**
|
|
12990
|
+
* One managed-settings channel and the document it delivered.
|
|
12991
|
+
*
|
|
12992
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12993
|
+
* via the `definition` "ManagedSettingsLayer".
|
|
12994
|
+
*/
|
|
12995
|
+
/** @experimental */
|
|
12996
|
+
export interface ManagedSettingsLayer {
|
|
12997
|
+
/**
|
|
12998
|
+
* Channel identifier: `device` (MDM, plist, registry, or managed file), `server` (account or organization policy), or `policyHelper` (session-local helper output, supported by compose). Treat unknown output values as additional channels; more may be added.
|
|
12999
|
+
*/
|
|
13000
|
+
source: string;
|
|
13001
|
+
/**
|
|
13002
|
+
* Validated managed-settings document this channel delivered. Absent when the channel delivered none.
|
|
13003
|
+
*/
|
|
13004
|
+
settings?: JsonValue;
|
|
13005
|
+
}
|
|
13006
|
+
/**
|
|
13007
|
+
* One validation finding for a managed-settings document.
|
|
13008
|
+
*
|
|
13009
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13010
|
+
* via the `definition` "ManagedSettingsDiagnostic".
|
|
13011
|
+
*/
|
|
13012
|
+
/** @experimental */
|
|
13013
|
+
export interface ManagedSettingsDiagnostic {
|
|
13014
|
+
/**
|
|
13015
|
+
* Dot-separated path of the offending setting, such as `autoTier.overridable`. Empty for the document as a whole.
|
|
13016
|
+
*/
|
|
13017
|
+
path: string;
|
|
13018
|
+
severity: ManagedSettingsDiagnosticSeverity;
|
|
13019
|
+
/**
|
|
13020
|
+
* Human-readable description of the finding.
|
|
13021
|
+
*/
|
|
13022
|
+
message: string;
|
|
13023
|
+
}
|
|
12798
13024
|
/**
|
|
12799
13025
|
* Validated device-managed settings discovered before a session exists.
|
|
12800
13026
|
*
|
|
@@ -12812,6 +13038,100 @@ export interface ManagedSettingsReadResult {
|
|
|
12812
13038
|
*/
|
|
12813
13039
|
errorMessage?: string;
|
|
12814
13040
|
}
|
|
13041
|
+
/** @experimental */
|
|
13042
|
+
export interface ManagedSettingsResolveRequest {
|
|
13043
|
+
/**
|
|
13044
|
+
* Opaque account identifier returned by `account.getAllUsers`. When omitted, the current account is used, or device policy only when no account is signed in.
|
|
13045
|
+
*/
|
|
13046
|
+
selectionId?: string;
|
|
13047
|
+
/**
|
|
13048
|
+
* GitHub token to resolve instead of the current account. The call fails when the token cannot be resolved.
|
|
13049
|
+
*/
|
|
13050
|
+
gitHubToken?: string;
|
|
13051
|
+
/**
|
|
13052
|
+
* Embedding client identity for server policy requests, as in session creation. Omit for the CLI identity.
|
|
13053
|
+
*/
|
|
13054
|
+
clientName?: string;
|
|
13055
|
+
}
|
|
13056
|
+
/**
|
|
13057
|
+
* Effective enterprise managed settings for an account, resolved without a session.
|
|
13058
|
+
*
|
|
13059
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13060
|
+
* via the `definition` "ManagedSettingsResolveResult".
|
|
13061
|
+
*/
|
|
13062
|
+
/** @experimental */
|
|
13063
|
+
export interface ManagedSettingsResolveResult {
|
|
13064
|
+
/**
|
|
13065
|
+
* Printable opaque identity of the account the settings were resolved for, suitable for comparison and storage, not an account selectionId. Absent when no account was available, in which case only device policy is reported.
|
|
13066
|
+
*/
|
|
13067
|
+
account?: string;
|
|
13068
|
+
resolved: ManagedSettingsResolvedData;
|
|
13069
|
+
values?: ManagedSettingsValues;
|
|
13070
|
+
meta?: ManagedSettingsMeta;
|
|
13071
|
+
/**
|
|
13072
|
+
* Each managed-settings channel consulted, strongest first, with the validated document it delivered before merging. `resolved.settings` is the merged result. More channels may be added over time.
|
|
13073
|
+
*/
|
|
13074
|
+
layers: ManagedSettingsLayer[];
|
|
13075
|
+
/**
|
|
13076
|
+
* Warnings about unavailable policy sources or a failed refresh served from cache. A cached response is not proof of a successful live fetch; `resolved.failClosed` separately describes enforcement.
|
|
13077
|
+
*/
|
|
13078
|
+
diagnostics: ManagedSettingsDiagnostic[];
|
|
13079
|
+
}
|
|
13080
|
+
/**
|
|
13081
|
+
* The authoring JSON schema for managed settings recognized by this runtime.
|
|
13082
|
+
*
|
|
13083
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13084
|
+
* via the `definition` "ManagedSettingsSchemaResult".
|
|
13085
|
+
*/
|
|
13086
|
+
/** @experimental */
|
|
13087
|
+
export interface ManagedSettingsSchemaResult {
|
|
13088
|
+
/**
|
|
13089
|
+
* JSON schema (draft 2020-12) with descriptive shared `x-composition` annotations, not a complete runtime composition contract. Model, effortLevel, and contextTier remain coupled; use `managedSettings.compose` for the runtime's effective result.
|
|
13090
|
+
*/
|
|
13091
|
+
schema: JsonValue;
|
|
13092
|
+
/**
|
|
13093
|
+
* Version of the runtime that owns this schema.
|
|
13094
|
+
*/
|
|
13095
|
+
runtimeVersion: string;
|
|
13096
|
+
}
|
|
13097
|
+
/**
|
|
13098
|
+
* A candidate managed-settings document to validate without applying it.
|
|
13099
|
+
*
|
|
13100
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13101
|
+
* via the `definition` "ManagedSettingsValidateRequest".
|
|
13102
|
+
*/
|
|
13103
|
+
/** @experimental */
|
|
13104
|
+
export interface ManagedSettingsValidateRequest {
|
|
13105
|
+
/**
|
|
13106
|
+
* The document to validate: a JSON object, or a string containing the document's JSON text. Preview documents are limited to 1 MiB and 64 levels of nesting, a stricter resource limit than delivered-policy parsing; violations are returned as diagnostics.
|
|
13107
|
+
*/
|
|
13108
|
+
content: JsonValue;
|
|
13109
|
+
/**
|
|
13110
|
+
* Channel the document is meant for (`device`, `server`, or `policyHelper`). Some keys are only honored in some channels; for example, a `policyHelper` registration is ignored in policy-helper output. When omitted, no channel-specific checks run.
|
|
13111
|
+
*/
|
|
13112
|
+
layer?: string;
|
|
13113
|
+
}
|
|
13114
|
+
/**
|
|
13115
|
+
* Result of validating a managed-settings document.
|
|
13116
|
+
*
|
|
13117
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13118
|
+
* via the `definition` "ManagedSettingsValidateResult".
|
|
13119
|
+
*/
|
|
13120
|
+
/** @experimental */
|
|
13121
|
+
export interface ManagedSettingsValidateResult {
|
|
13122
|
+
/**
|
|
13123
|
+
* Whether the runtime would accept the document within the preview resource limits. Always equals whether `settings` is present. An invalid document is rejected as a whole.
|
|
13124
|
+
*/
|
|
13125
|
+
valid: boolean;
|
|
13126
|
+
/**
|
|
13127
|
+
* Canonical form of the document the runtime would apply, with unrecognized keys removed. Absent when the document is invalid.
|
|
13128
|
+
*/
|
|
13129
|
+
settings?: JsonValue;
|
|
13130
|
+
/**
|
|
13131
|
+
* Errors that reject the document and warnings about content the runtime ignores.
|
|
13132
|
+
*/
|
|
13133
|
+
diagnostics: ManagedSettingsDiagnostic[];
|
|
13134
|
+
}
|
|
12815
13135
|
/**
|
|
12816
13136
|
* Result of registering a new marketplace.
|
|
12817
13137
|
*
|
|
@@ -14167,6 +14487,23 @@ export interface McpOauthCancelLoginResult {
|
|
|
14167
14487
|
*/
|
|
14168
14488
|
cancelled: boolean;
|
|
14169
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
|
+
}
|
|
14170
14507
|
/**
|
|
14171
14508
|
* Pending MCP OAuth request ID and host-provided token or cancellation response.
|
|
14172
14509
|
*
|
|
@@ -14195,7 +14532,7 @@ export interface McpOauthHandlePendingResult {
|
|
|
14195
14532
|
success: boolean;
|
|
14196
14533
|
}
|
|
14197
14534
|
/**
|
|
14198
|
-
* Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback
|
|
14535
|
+
* Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback handling, and static OAuth client selection.
|
|
14199
14536
|
*
|
|
14200
14537
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14201
14538
|
* via the `definition` "McpOauthLoginRequest".
|
|
@@ -14231,6 +14568,10 @@ export interface McpOauthLoginRequest {
|
|
|
14231
14568
|
*/
|
|
14232
14569
|
publicClient?: boolean;
|
|
14233
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;
|
|
14234
14575
|
/**
|
|
14235
14576
|
* Required for owned login. Consumes the exact prepareLogin handle once.
|
|
14236
14577
|
* Set forceReauth and display options during preparation, not consumption.
|
|
@@ -14255,9 +14596,13 @@ export interface McpOauthLoginResult {
|
|
|
14255
14596
|
loginId?: string;
|
|
14256
14597
|
status?: McpOwnedOauthLoginStatus;
|
|
14257
14598
|
/**
|
|
14258
|
-
* 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.
|
|
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.
|
|
14259
14600
|
*/
|
|
14260
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;
|
|
14261
14606
|
}
|
|
14262
14607
|
/**
|
|
14263
14608
|
* Effect-free preparation bound to the existing local session, requester and installation, with frozen options.
|
|
@@ -14490,6 +14835,235 @@ export interface McpPrepareInstallRequest {
|
|
|
14490
14835
|
source: McpServerCardReference;
|
|
14491
14836
|
secretStorage: McpInstallationSecretStorage;
|
|
14492
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
|
+
}
|
|
14493
15067
|
/**
|
|
14494
15068
|
* Indicates whether the auto-managed `github` MCP server was removed (false when nothing to remove).
|
|
14495
15069
|
*
|
|
@@ -20255,7 +20829,7 @@ export interface SandboxGrantPathForRequestResult {
|
|
|
20255
20829
|
success: boolean;
|
|
20256
20830
|
}
|
|
20257
20831
|
/**
|
|
20258
|
-
* Whether this host can run one sandbox policy feature. A session whose effective policy uses an unsupported feature fails each sandboxed command with `reason
|
|
20832
|
+
* Whether this host can run one sandbox policy feature. A session whose effective policy uses an unsupported feature fails each sandboxed command with `reason`, except `filesystem_enumeration`, whose absence degrades sandboxed PowerShell instead of failing it.
|
|
20259
20833
|
*
|
|
20260
20834
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20261
20835
|
* via the `definition` "SandboxHostCapability".
|
|
@@ -23624,7 +24198,7 @@ export interface ShellCancelUserRequestedRequest {
|
|
|
23624
24198
|
requestId: string;
|
|
23625
24199
|
}
|
|
23626
24200
|
/**
|
|
23627
|
-
* 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.
|
|
23628
24202
|
*
|
|
23629
24203
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
23630
24204
|
* via the `definition` "ShellExecRequest".
|
|
@@ -23645,7 +24219,7 @@ export interface ShellExecRequest {
|
|
|
23645
24219
|
timeout?: number;
|
|
23646
24220
|
}
|
|
23647
24221
|
/**
|
|
23648
|
-
* Identifier of the spawned process,
|
|
24222
|
+
* Identifier of the spawned shell process, usable with shell.kill while the process is running.
|
|
23649
24223
|
*
|
|
23650
24224
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
23651
24225
|
* via the `definition` "ShellExecResult".
|
|
@@ -23653,7 +24227,7 @@ export interface ShellExecRequest {
|
|
|
23653
24227
|
/** @experimental */
|
|
23654
24228
|
export interface ShellExecResult {
|
|
23655
24229
|
/**
|
|
23656
|
-
*
|
|
24230
|
+
* Identifier usable with shell.kill while the process is running
|
|
23657
24231
|
*/
|
|
23658
24232
|
processId: string;
|
|
23659
24233
|
}
|
|
@@ -29048,15 +29622,45 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
29048
29622
|
/** @experimental */
|
|
29049
29623
|
managedSettings: {
|
|
29050
29624
|
/**
|
|
29051
|
-
* Discovers device-managed settings from production MDM and managed-file sources, validates them against the runtime-owned managed-settings schema, and returns the canonical JSON without requiring a session.
|
|
29625
|
+
* Discovers device-managed settings from production MDM and managed-file sources, validates them against the runtime-owned managed-settings schema, and returns the canonical JSON without requiring a session. `managedSettings.resolve` returns the same device settings together with the account's server policy.
|
|
29052
29626
|
*
|
|
29053
29627
|
* @returns Validated device-managed settings discovered before a session exists.
|
|
29054
29628
|
*/
|
|
29055
29629
|
read: () => Promise<ManagedSettingsReadResult>;
|
|
29056
29630
|
/**
|
|
29057
|
-
* Force-refreshes enterprise managed settings for every account: wipes the persistent server-policy cache (the whole `<cacheHome>/managed-settings` directory) and drops this runtime process's in-memory retained server policy. It does not itself fetch policy — the effect is that the next time a session resolves managed settings for an account, that resolution re-fetches the account's org policy from the network instead of serving a cached response. Note that `managedSettings.read` returns only device/MDM settings and never triggers the account server-policy fetch, so a host implementing "sync account policy" should start a fresh session resolution rather than treat a subsequent `managedSettings.read` as the refreshed org policy. Mirrors the invalidation a sign-out performs, broadened from the one signing-out account to all of them; device/MDM layers describe the machine, not the account, and are left untouched. Rejects if the on-disk cache cannot be removed.
|
|
29631
|
+
* Force-refreshes enterprise managed settings for every account: wipes the persistent server-policy cache (the whole `<cacheHome>/managed-settings` directory) and drops this runtime process's in-memory retained server policy. It does not itself fetch policy — the effect is that the next time a session resolves managed settings for an account, that resolution re-fetches the account's org policy from the network instead of serving a cached response. Note that `managedSettings.read` returns only device/MDM settings and never triggers the account server-policy fetch, so a host implementing "sync account policy" should call `managedSettings.resolve` or start a fresh session resolution rather than treat a subsequent `managedSettings.read` as the refreshed org policy. Mirrors the invalidation a sign-out performs, broadened from the one signing-out account to all of them; device/MDM layers describe the machine, not the account, and are left untouched. Rejects if the on-disk cache cannot be removed.
|
|
29058
29632
|
*/
|
|
29059
29633
|
clearCache: () => Promise<void>;
|
|
29634
|
+
/**
|
|
29635
|
+
* Resolves the effective enterprise managed settings without a session, from the device channel and, when an account is available, the account's server policy through the same per-account cache sessions use. A cached server policy less than an hour old is used without a fetch; otherwise the policy is fetched, and when the fetch fails a cached policy up to 24 hours old is used instead, unless `forceRemoteSettingsRefresh` requires a live fetch. With no account requested or signed in, it reports device policy only; signing out removes the account's cached policy. It can fetch server policy over the network when the cache is stale, so call it off latency-critical paths such as startup rather than before listing models. The policy helper is not run. `layers` lists each channel's document before merging, and `values` and `meta` carry typed effective values and their lock state for the keys typed so far.
|
|
29636
|
+
*
|
|
29637
|
+
* @param params Optional opaque account selection or GitHub token whose managed settings are resolved.
|
|
29638
|
+
*
|
|
29639
|
+
* @returns Effective enterprise managed settings for an account, resolved without a session.
|
|
29640
|
+
*/
|
|
29641
|
+
resolve: (params: ManagedSettingsResolveRequest) => Promise<ManagedSettingsResolveResult>;
|
|
29642
|
+
/**
|
|
29643
|
+
* Returns the managed-settings authoring JSON schema with descriptive `x-composition` annotations aligned with the shared settings-engine vocabulary. These annotations are not a complete runtime composition contract: model, effortLevel, and contextTier remain coupled. Use `managedSettings.compose` for the runtime's effective result. Performs no I/O.
|
|
29644
|
+
*
|
|
29645
|
+
* @returns The authoring JSON schema for managed settings recognized by this runtime.
|
|
29646
|
+
*/
|
|
29647
|
+
schema: () => Promise<ManagedSettingsSchemaResult>;
|
|
29648
|
+
/**
|
|
29649
|
+
* Validates a candidate managed-settings document the way the runtime validates delivered policy, without applying it. Reports errors that would reject the document, warnings for content the runtime ignores, and the canonical document it would apply. Document text nested more than 64 levels deep is rejected. Performs no I/O.
|
|
29650
|
+
*
|
|
29651
|
+
* @param params A candidate managed-settings document to validate without applying it.
|
|
29652
|
+
*
|
|
29653
|
+
* @returns Result of validating a managed-settings document.
|
|
29654
|
+
*/
|
|
29655
|
+
validate: (params: ManagedSettingsValidateRequest) => Promise<ManagedSettingsValidateResult>;
|
|
29656
|
+
/**
|
|
29657
|
+
* Merges candidate managed-settings documents for the device, server, and policy-helper channels into the effective settings the runtime would enforce on this host, using the same precedence and composition rules as live resolution, without applying them. Like live resolution, a server's advisory sandbox force-enable is declined on a host that cannot run the sandbox. Does not fetch policy or read policy files, but may perform blocking OS or subprocess probes for sandbox support. Preview documents are limited to 1 MiB and 64 levels of nesting.
|
|
29658
|
+
*
|
|
29659
|
+
* @param params Candidate managed-settings documents to merge without applying them.
|
|
29660
|
+
*
|
|
29661
|
+
* @returns The effective managed settings the runtime would enforce for the given documents, in the same shape `managedSettings.resolve` returns.
|
|
29662
|
+
*/
|
|
29663
|
+
compose: (params: ManagedSettingsComposeRequest) => Promise<ManagedSettingsComposeResult>;
|
|
29060
29664
|
};
|
|
29061
29665
|
/** @experimental */
|
|
29062
29666
|
runtime: {
|
|
@@ -30241,11 +30845,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
30241
30845
|
/**
|
|
30242
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.
|
|
30243
30847
|
*
|
|
30244
|
-
* @param params Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback
|
|
30848
|
+
* @param params Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback handling, and static OAuth client selection.
|
|
30245
30849
|
*
|
|
30246
30850
|
* @returns OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server.
|
|
30247
30851
|
*/
|
|
30248
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>;
|
|
30249
30859
|
/**
|
|
30250
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.
|
|
30251
30861
|
*
|
|
@@ -30356,6 +30966,25 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
30356
30966
|
*/
|
|
30357
30967
|
listTemplates: (params: McpResourcesListTemplatesRequest) => Promise<McpResourcesListTemplatesResult>;
|
|
30358
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
|
+
};
|
|
30359
30988
|
};
|
|
30360
30989
|
/** @experimental */
|
|
30361
30990
|
diagnostics: {
|
|
@@ -30384,6 +31013,12 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
30384
31013
|
* @returns Feature detection and hard polling limits for the EXPERIMENTAL session connector API.
|
|
30385
31014
|
*/
|
|
30386
31015
|
getCapabilities: () => Promise<ConnectorCapabilities>;
|
|
31016
|
+
/**
|
|
31017
|
+
* Returns the session account selection, or null.
|
|
31018
|
+
*
|
|
31019
|
+
* @returns Session account selection, or null.
|
|
31020
|
+
*/
|
|
31021
|
+
getAccount: () => Promise<ConnectorSessionAccountResult>;
|
|
30387
31022
|
/**
|
|
30388
31023
|
* Returns authoritative session Connector state from current availability, pinned account selection, cached catalog, and live MCP projection without performing a Connector service request.
|
|
30389
31024
|
*
|
|
@@ -30452,7 +31087,7 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
30452
31087
|
/**
|
|
30453
31088
|
* Waits for the live session's in-flight managed-settings application, then returns the retained effective snapshot used by runtime enforcement and by `session.managed_settings_resolved`. It does not perform another account, device, or server resolution, and rejects when resolution has not produced a snapshot.
|
|
30454
31089
|
*
|
|
30455
|
-
* @returns
|
|
31090
|
+
* @returns Effective enterprise managed settings and contributing channels. Session events report applied policy; sessionless resolve reports an account/device snapshot, and compose reports a non-applying preview of candidate documents. Device values take precedence over server values, then the policy helper, per ordinary key, while permissions compose restrictively. Session-local SDK-client policy is included only in session results. Marked experimental while the managed-settings surface stabilizes.
|
|
30456
31091
|
*/
|
|
30457
31092
|
get: () => Promise<ManagedSettingsResolvedData>;
|
|
30458
31093
|
};
|
|
@@ -31124,11 +31759,11 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
31124
31759
|
/** @experimental */
|
|
31125
31760
|
shell: {
|
|
31126
31761
|
/**
|
|
31127
|
-
* Starts a shell command
|
|
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.
|
|
31128
31763
|
*
|
|
31129
|
-
* @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.
|
|
31130
31765
|
*
|
|
31131
|
-
* @returns Identifier of the spawned process,
|
|
31766
|
+
* @returns Identifier of the spawned shell process, usable with shell.kill while the process is running.
|
|
31132
31767
|
*/
|
|
31133
31768
|
exec: (params: ShellExecRequest) => Promise<ShellExecResult>;
|
|
31134
31769
|
/**
|