@github/copilot-sdk-darwin-arm64 1.0.16 → 1.0.17-preview.0
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 +132 -16
- package/copilot-sdk/ffiRuntimeHost.d.ts +1 -0
- package/copilot-sdk/generated/rpc.d.ts +349 -5
- package/copilot-sdk/generated/session-events.d.ts +3 -3
- package/copilot-sdk/index.d.ts +1 -1
- package/copilot-sdk/index.js +132 -16
- package/copilot-sdk/session.d.ts +4 -1
- package/copilot-sdk/types.d.ts +17 -2
- package/package.json +3 -2
- package/prebuilds/darwin-arm64/copilot-runtime +0 -0
- package/prebuilds/darwin-arm64/runtime.node +2 -2
- package/ripgrep/bin/darwin-arm64/rg +0 -0
- package/schemas/api.schema.json +556 -12
- package/schemas/session-events.schema.json +5 -5
- package/tgrep/bin/darwin-arm64/tgrep +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
|
*
|
|
@@ -4110,7 +4144,7 @@ export type SandboxConfigSource =
|
|
|
4110
4144
|
/** A repository policy selected the sandbox state. */
|
|
4111
4145
|
| "repository_policy";
|
|
4112
4146
|
/**
|
|
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
|
|
4147
|
+
* 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
4148
|
*
|
|
4115
4149
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4116
4150
|
* via the `definition` "SandboxHostCapabilityName".
|
|
@@ -6949,6 +6983,24 @@ export interface AuthIdentity {
|
|
|
6949
6983
|
registrationId?: string;
|
|
6950
6984
|
copilotUser?: CopilotUserResponse;
|
|
6951
6985
|
}
|
|
6986
|
+
/**
|
|
6987
|
+
* Credential-free identity metadata.
|
|
6988
|
+
*
|
|
6989
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6990
|
+
* via the `definition` "AuthIdentityMetadata".
|
|
6991
|
+
*/
|
|
6992
|
+
/** @experimental */
|
|
6993
|
+
export interface AuthIdentityMetadata {
|
|
6994
|
+
type: AuthInfoType;
|
|
6995
|
+
/**
|
|
6996
|
+
* Identity host.
|
|
6997
|
+
*/
|
|
6998
|
+
host: string;
|
|
6999
|
+
/**
|
|
7000
|
+
* User login.
|
|
7001
|
+
*/
|
|
7002
|
+
login: string;
|
|
7003
|
+
}
|
|
6952
7004
|
/**
|
|
6953
7005
|
* Advance an in-flight login flow, optionally fulfilling an input-required step.
|
|
6954
7006
|
*
|
|
@@ -9054,6 +9106,14 @@ export interface ConnectorCapabilities {
|
|
|
9054
9106
|
* Whether callers select a host-owned GitHub account through an opaque selection ID rather than supplying a provider token.
|
|
9055
9107
|
*/
|
|
9056
9108
|
opaqueAccountSelection: boolean;
|
|
9109
|
+
/**
|
|
9110
|
+
* Whether getAccount is supported. Absence means false.
|
|
9111
|
+
*/
|
|
9112
|
+
sessionAccountSelection?: boolean;
|
|
9113
|
+
/**
|
|
9114
|
+
* Whether reconcile accepts forceConnectorName. Absence means false.
|
|
9115
|
+
*/
|
|
9116
|
+
targetedReconcile?: boolean;
|
|
9057
9117
|
/**
|
|
9058
9118
|
* Maximum accepted polling attempts for one continuation call.
|
|
9059
9119
|
*/
|
|
@@ -9087,6 +9147,18 @@ export interface ConnectorCatalogEntry {
|
|
|
9087
9147
|
* Untrusted service description, when present.
|
|
9088
9148
|
*/
|
|
9089
9149
|
description?: string;
|
|
9150
|
+
/**
|
|
9151
|
+
* Optional catalog logo.
|
|
9152
|
+
*/
|
|
9153
|
+
logo?: string;
|
|
9154
|
+
/**
|
|
9155
|
+
* Optional catalog tier.
|
|
9156
|
+
*/
|
|
9157
|
+
tier?: string;
|
|
9158
|
+
/**
|
|
9159
|
+
* Optional catalog release tag.
|
|
9160
|
+
*/
|
|
9161
|
+
releaseTag?: string;
|
|
9090
9162
|
status: ConnectorCatalogStatus;
|
|
9091
9163
|
/**
|
|
9092
9164
|
* Opaque stable runtime IDs currently projected into the session for this Connector.
|
|
@@ -9232,6 +9304,24 @@ export interface ConnectorReconcileRequest {
|
|
|
9232
9304
|
* When true, refresh the catalog before reconciling. A disabled Connector API performs no service request.
|
|
9233
9305
|
*/
|
|
9234
9306
|
refreshCatalog?: boolean;
|
|
9307
|
+
/**
|
|
9308
|
+
* Optional Connector name to reinitialize. Requires the targetedReconcile capability.
|
|
9309
|
+
*/
|
|
9310
|
+
forceConnectorName?: string;
|
|
9311
|
+
}
|
|
9312
|
+
/**
|
|
9313
|
+
* Session account selection.
|
|
9314
|
+
*
|
|
9315
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9316
|
+
* via the `definition` "ConnectorSessionAccount".
|
|
9317
|
+
*/
|
|
9318
|
+
/** @experimental */
|
|
9319
|
+
export interface ConnectorSessionAccount {
|
|
9320
|
+
/**
|
|
9321
|
+
* Opaque session-scoped account selection ID.
|
|
9322
|
+
*/
|
|
9323
|
+
accountId: string;
|
|
9324
|
+
authInfo: AuthIdentityMetadata;
|
|
9235
9325
|
}
|
|
9236
9326
|
/**
|
|
9237
9327
|
* Remote session connection parameters.
|
|
@@ -12795,6 +12885,130 @@ export interface ManagedMcpServerConfig {
|
|
|
12795
12885
|
*/
|
|
12796
12886
|
headersRefreshTtlMs?: number;
|
|
12797
12887
|
}
|
|
12888
|
+
/**
|
|
12889
|
+
* Lock state and provenance of one managed setting.
|
|
12890
|
+
*
|
|
12891
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12892
|
+
* via the `definition` "ManagedSettingMeta".
|
|
12893
|
+
*/
|
|
12894
|
+
/** @experimental */
|
|
12895
|
+
export interface ManagedSettingMeta {
|
|
12896
|
+
/**
|
|
12897
|
+
* Whether users and repositories may choose a different value. `false` means policy locks the value.
|
|
12898
|
+
*/
|
|
12899
|
+
overridable: boolean;
|
|
12900
|
+
/**
|
|
12901
|
+
* 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.
|
|
12902
|
+
*/
|
|
12903
|
+
source: string;
|
|
12904
|
+
}
|
|
12905
|
+
/**
|
|
12906
|
+
* One candidate channel; absent settings represents a channel that delivered no document.
|
|
12907
|
+
*
|
|
12908
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12909
|
+
* via the `definition` "ManagedSettingsComposeLayer".
|
|
12910
|
+
*/
|
|
12911
|
+
/** @experimental */
|
|
12912
|
+
export interface ManagedSettingsComposeLayer {
|
|
12913
|
+
source: ManagedSettingsChannel;
|
|
12914
|
+
/**
|
|
12915
|
+
* Candidate managed-settings document. Omit when the channel delivered none, as in resolve output.
|
|
12916
|
+
*/
|
|
12917
|
+
settings?: JsonValue;
|
|
12918
|
+
}
|
|
12919
|
+
/**
|
|
12920
|
+
* Candidate managed-settings documents to merge without applying them.
|
|
12921
|
+
*
|
|
12922
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12923
|
+
* via the `definition` "ManagedSettingsComposeRequest".
|
|
12924
|
+
*/
|
|
12925
|
+
/** @experimental */
|
|
12926
|
+
export interface ManagedSettingsComposeRequest {
|
|
12927
|
+
/**
|
|
12928
|
+
* 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.
|
|
12929
|
+
*/
|
|
12930
|
+
layers: ManagedSettingsComposeLayer[];
|
|
12931
|
+
}
|
|
12932
|
+
/**
|
|
12933
|
+
* The effective managed settings the runtime would enforce for the given documents, in the same shape `managedSettings.resolve` returns.
|
|
12934
|
+
*
|
|
12935
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12936
|
+
* via the `definition` "ManagedSettingsComposeResult".
|
|
12937
|
+
*/
|
|
12938
|
+
/** @experimental */
|
|
12939
|
+
export interface ManagedSettingsComposeResult {
|
|
12940
|
+
resolved: ManagedSettingsResolvedData;
|
|
12941
|
+
values?: ManagedSettingsValues;
|
|
12942
|
+
meta?: ManagedSettingsMeta;
|
|
12943
|
+
/**
|
|
12944
|
+
* Only the supplied channels, strongest first, with canonical documents. Empty canonical documents are represented as absent settings, as in live resolution.
|
|
12945
|
+
*/
|
|
12946
|
+
layers: ManagedSettingsLayer[];
|
|
12947
|
+
/**
|
|
12948
|
+
* Warnings about ignored content, with paths prefixed by the channel name.
|
|
12949
|
+
*/
|
|
12950
|
+
diagnostics: ManagedSettingsDiagnostic[];
|
|
12951
|
+
}
|
|
12952
|
+
/**
|
|
12953
|
+
* 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.
|
|
12954
|
+
*
|
|
12955
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12956
|
+
* via the `definition` "ManagedSettingsValues".
|
|
12957
|
+
*/
|
|
12958
|
+
/** @experimental */
|
|
12959
|
+
export interface ManagedSettingsValues {
|
|
12960
|
+
/**
|
|
12961
|
+
* 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.
|
|
12962
|
+
*/
|
|
12963
|
+
model?: string;
|
|
12964
|
+
autoTier?: AutoTier;
|
|
12965
|
+
}
|
|
12966
|
+
/**
|
|
12967
|
+
* 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.
|
|
12968
|
+
*
|
|
12969
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12970
|
+
* via the `definition` "ManagedSettingsMeta".
|
|
12971
|
+
*/
|
|
12972
|
+
/** @experimental */
|
|
12973
|
+
export interface ManagedSettingsMeta {
|
|
12974
|
+
model?: ManagedSettingMeta;
|
|
12975
|
+
autoTier?: ManagedSettingMeta;
|
|
12976
|
+
}
|
|
12977
|
+
/**
|
|
12978
|
+
* One managed-settings channel and the document it delivered.
|
|
12979
|
+
*
|
|
12980
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12981
|
+
* via the `definition` "ManagedSettingsLayer".
|
|
12982
|
+
*/
|
|
12983
|
+
/** @experimental */
|
|
12984
|
+
export interface ManagedSettingsLayer {
|
|
12985
|
+
/**
|
|
12986
|
+
* 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.
|
|
12987
|
+
*/
|
|
12988
|
+
source: string;
|
|
12989
|
+
/**
|
|
12990
|
+
* Validated managed-settings document this channel delivered. Absent when the channel delivered none.
|
|
12991
|
+
*/
|
|
12992
|
+
settings?: JsonValue;
|
|
12993
|
+
}
|
|
12994
|
+
/**
|
|
12995
|
+
* One validation finding for a managed-settings document.
|
|
12996
|
+
*
|
|
12997
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12998
|
+
* via the `definition` "ManagedSettingsDiagnostic".
|
|
12999
|
+
*/
|
|
13000
|
+
/** @experimental */
|
|
13001
|
+
export interface ManagedSettingsDiagnostic {
|
|
13002
|
+
/**
|
|
13003
|
+
* Dot-separated path of the offending setting, such as `autoTier.overridable`. Empty for the document as a whole.
|
|
13004
|
+
*/
|
|
13005
|
+
path: string;
|
|
13006
|
+
severity: ManagedSettingsDiagnosticSeverity;
|
|
13007
|
+
/**
|
|
13008
|
+
* Human-readable description of the finding.
|
|
13009
|
+
*/
|
|
13010
|
+
message: string;
|
|
13011
|
+
}
|
|
12798
13012
|
/**
|
|
12799
13013
|
* Validated device-managed settings discovered before a session exists.
|
|
12800
13014
|
*
|
|
@@ -12812,6 +13026,100 @@ export interface ManagedSettingsReadResult {
|
|
|
12812
13026
|
*/
|
|
12813
13027
|
errorMessage?: string;
|
|
12814
13028
|
}
|
|
13029
|
+
/** @experimental */
|
|
13030
|
+
export interface ManagedSettingsResolveRequest {
|
|
13031
|
+
/**
|
|
13032
|
+
* Opaque account identifier returned by `account.getAllUsers`. When omitted, the current account is used, or device policy only when no account is signed in.
|
|
13033
|
+
*/
|
|
13034
|
+
selectionId?: string;
|
|
13035
|
+
/**
|
|
13036
|
+
* GitHub token to resolve instead of the current account. The call fails when the token cannot be resolved.
|
|
13037
|
+
*/
|
|
13038
|
+
gitHubToken?: string;
|
|
13039
|
+
/**
|
|
13040
|
+
* Embedding client identity for server policy requests, as in session creation. Omit for the CLI identity.
|
|
13041
|
+
*/
|
|
13042
|
+
clientName?: string;
|
|
13043
|
+
}
|
|
13044
|
+
/**
|
|
13045
|
+
* Effective enterprise managed settings for an account, resolved without a session.
|
|
13046
|
+
*
|
|
13047
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13048
|
+
* via the `definition` "ManagedSettingsResolveResult".
|
|
13049
|
+
*/
|
|
13050
|
+
/** @experimental */
|
|
13051
|
+
export interface ManagedSettingsResolveResult {
|
|
13052
|
+
/**
|
|
13053
|
+
* 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.
|
|
13054
|
+
*/
|
|
13055
|
+
account?: string;
|
|
13056
|
+
resolved: ManagedSettingsResolvedData;
|
|
13057
|
+
values?: ManagedSettingsValues;
|
|
13058
|
+
meta?: ManagedSettingsMeta;
|
|
13059
|
+
/**
|
|
13060
|
+
* 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.
|
|
13061
|
+
*/
|
|
13062
|
+
layers: ManagedSettingsLayer[];
|
|
13063
|
+
/**
|
|
13064
|
+
* 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.
|
|
13065
|
+
*/
|
|
13066
|
+
diagnostics: ManagedSettingsDiagnostic[];
|
|
13067
|
+
}
|
|
13068
|
+
/**
|
|
13069
|
+
* The authoring JSON schema for managed settings recognized by this runtime.
|
|
13070
|
+
*
|
|
13071
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13072
|
+
* via the `definition` "ManagedSettingsSchemaResult".
|
|
13073
|
+
*/
|
|
13074
|
+
/** @experimental */
|
|
13075
|
+
export interface ManagedSettingsSchemaResult {
|
|
13076
|
+
/**
|
|
13077
|
+
* 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.
|
|
13078
|
+
*/
|
|
13079
|
+
schema: JsonValue;
|
|
13080
|
+
/**
|
|
13081
|
+
* Version of the runtime that owns this schema.
|
|
13082
|
+
*/
|
|
13083
|
+
runtimeVersion: string;
|
|
13084
|
+
}
|
|
13085
|
+
/**
|
|
13086
|
+
* A candidate managed-settings document to validate without applying it.
|
|
13087
|
+
*
|
|
13088
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13089
|
+
* via the `definition` "ManagedSettingsValidateRequest".
|
|
13090
|
+
*/
|
|
13091
|
+
/** @experimental */
|
|
13092
|
+
export interface ManagedSettingsValidateRequest {
|
|
13093
|
+
/**
|
|
13094
|
+
* 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.
|
|
13095
|
+
*/
|
|
13096
|
+
content: JsonValue;
|
|
13097
|
+
/**
|
|
13098
|
+
* 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.
|
|
13099
|
+
*/
|
|
13100
|
+
layer?: string;
|
|
13101
|
+
}
|
|
13102
|
+
/**
|
|
13103
|
+
* Result of validating a managed-settings document.
|
|
13104
|
+
*
|
|
13105
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13106
|
+
* via the `definition` "ManagedSettingsValidateResult".
|
|
13107
|
+
*/
|
|
13108
|
+
/** @experimental */
|
|
13109
|
+
export interface ManagedSettingsValidateResult {
|
|
13110
|
+
/**
|
|
13111
|
+
* 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.
|
|
13112
|
+
*/
|
|
13113
|
+
valid: boolean;
|
|
13114
|
+
/**
|
|
13115
|
+
* Canonical form of the document the runtime would apply, with unrecognized keys removed. Absent when the document is invalid.
|
|
13116
|
+
*/
|
|
13117
|
+
settings?: JsonValue;
|
|
13118
|
+
/**
|
|
13119
|
+
* Errors that reject the document and warnings about content the runtime ignores.
|
|
13120
|
+
*/
|
|
13121
|
+
diagnostics: ManagedSettingsDiagnostic[];
|
|
13122
|
+
}
|
|
12815
13123
|
/**
|
|
12816
13124
|
* Result of registering a new marketplace.
|
|
12817
13125
|
*
|
|
@@ -20255,7 +20563,7 @@ export interface SandboxGrantPathForRequestResult {
|
|
|
20255
20563
|
success: boolean;
|
|
20256
20564
|
}
|
|
20257
20565
|
/**
|
|
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
|
|
20566
|
+
* 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
20567
|
*
|
|
20260
20568
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20261
20569
|
* via the `definition` "SandboxHostCapability".
|
|
@@ -29048,15 +29356,45 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
29048
29356
|
/** @experimental */
|
|
29049
29357
|
managedSettings: {
|
|
29050
29358
|
/**
|
|
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.
|
|
29359
|
+
* 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
29360
|
*
|
|
29053
29361
|
* @returns Validated device-managed settings discovered before a session exists.
|
|
29054
29362
|
*/
|
|
29055
29363
|
read: () => Promise<ManagedSettingsReadResult>;
|
|
29056
29364
|
/**
|
|
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.
|
|
29365
|
+
* 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
29366
|
*/
|
|
29059
29367
|
clearCache: () => Promise<void>;
|
|
29368
|
+
/**
|
|
29369
|
+
* 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.
|
|
29370
|
+
*
|
|
29371
|
+
* @param params Optional opaque account selection or GitHub token whose managed settings are resolved.
|
|
29372
|
+
*
|
|
29373
|
+
* @returns Effective enterprise managed settings for an account, resolved without a session.
|
|
29374
|
+
*/
|
|
29375
|
+
resolve: (params: ManagedSettingsResolveRequest) => Promise<ManagedSettingsResolveResult>;
|
|
29376
|
+
/**
|
|
29377
|
+
* 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.
|
|
29378
|
+
*
|
|
29379
|
+
* @returns The authoring JSON schema for managed settings recognized by this runtime.
|
|
29380
|
+
*/
|
|
29381
|
+
schema: () => Promise<ManagedSettingsSchemaResult>;
|
|
29382
|
+
/**
|
|
29383
|
+
* 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.
|
|
29384
|
+
*
|
|
29385
|
+
* @param params A candidate managed-settings document to validate without applying it.
|
|
29386
|
+
*
|
|
29387
|
+
* @returns Result of validating a managed-settings document.
|
|
29388
|
+
*/
|
|
29389
|
+
validate: (params: ManagedSettingsValidateRequest) => Promise<ManagedSettingsValidateResult>;
|
|
29390
|
+
/**
|
|
29391
|
+
* 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.
|
|
29392
|
+
*
|
|
29393
|
+
* @param params Candidate managed-settings documents to merge without applying them.
|
|
29394
|
+
*
|
|
29395
|
+
* @returns The effective managed settings the runtime would enforce for the given documents, in the same shape `managedSettings.resolve` returns.
|
|
29396
|
+
*/
|
|
29397
|
+
compose: (params: ManagedSettingsComposeRequest) => Promise<ManagedSettingsComposeResult>;
|
|
29060
29398
|
};
|
|
29061
29399
|
/** @experimental */
|
|
29062
29400
|
runtime: {
|
|
@@ -30384,6 +30722,12 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
30384
30722
|
* @returns Feature detection and hard polling limits for the EXPERIMENTAL session connector API.
|
|
30385
30723
|
*/
|
|
30386
30724
|
getCapabilities: () => Promise<ConnectorCapabilities>;
|
|
30725
|
+
/**
|
|
30726
|
+
* Returns the session account selection, or null.
|
|
30727
|
+
*
|
|
30728
|
+
* @returns Session account selection, or null.
|
|
30729
|
+
*/
|
|
30730
|
+
getAccount: () => Promise<ConnectorSessionAccountResult>;
|
|
30387
30731
|
/**
|
|
30388
30732
|
* Returns authoritative session Connector state from current availability, pinned account selection, cached catalog, and live MCP projection without performing a Connector service request.
|
|
30389
30733
|
*
|
|
@@ -30452,7 +30796,7 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
30452
30796
|
/**
|
|
30453
30797
|
* 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
30798
|
*
|
|
30455
|
-
* @returns
|
|
30799
|
+
* @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
30800
|
*/
|
|
30457
30801
|
get: () => Promise<ManagedSettingsResolvedData>;
|
|
30458
30802
|
};
|
|
@@ -11312,7 +11312,7 @@ export interface AutoModeResolvedData {
|
|
|
11312
11312
|
stickyOverride?: boolean;
|
|
11313
11313
|
}
|
|
11314
11314
|
/**
|
|
11315
|
-
* Session event "session.managed_settings_resolved".
|
|
11315
|
+
* Session event "session.managed_settings_resolved". Effective enterprise managed settings applied to the session and their contributing channels. Emitted whenever managed policy is applied or reapplied, including session start, resume, and account switch. This ephemeral live snapshot is delivered to subscribers but not persisted to the session event log; initial resolution occurs before session.start.
|
|
11316
11316
|
*/
|
|
11317
11317
|
/** @experimental */
|
|
11318
11318
|
export interface ManagedSettingsResolvedEvent {
|
|
@@ -11343,7 +11343,7 @@ export interface ManagedSettingsResolvedEvent {
|
|
|
11343
11343
|
type: "session.managed_settings_resolved";
|
|
11344
11344
|
}
|
|
11345
11345
|
/**
|
|
11346
|
-
*
|
|
11346
|
+
* 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.
|
|
11347
11347
|
*/
|
|
11348
11348
|
/** @experimental */
|
|
11349
11349
|
export interface ManagedSettingsResolvedData {
|
|
@@ -12157,7 +12157,7 @@ export interface McpServerStatusChangedEvent {
|
|
|
12157
12157
|
*/
|
|
12158
12158
|
export interface McpServerStatusChangedData {
|
|
12159
12159
|
/**
|
|
12160
|
-
* Runtime configuration provenance for a failed
|
|
12160
|
+
* Runtime configuration provenance for a connected or failed server, or unknown when unavailable. Additional string values may be introduced.
|
|
12161
12161
|
*/
|
|
12162
12162
|
configSource?: string;
|
|
12163
12163
|
/**
|
package/copilot-sdk/index.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export { defineWorkflow, WorkflowResumeError, isWorkflowRunTerminal } from "./wo
|
|
|
13
13
|
export { Canvas, CanvasError, createCanvas, type CanvasAction, type CanvasDeclaration, type CanvasHostContext, type CanvasHostContextCapabilities, type CanvasJsonSchema, type CanvasOptions, } from "./canvas.js";
|
|
14
14
|
export { defineTool, approveAll, createAttributedPermissionResult, convertMcpCallToolResult, createSessionFsAdapter, CopilotRequestHandler, CopilotWebSocketHandler, CopilotWebSocketCloseStatus, CopilotWebSocketForwarder, SessionFsSqliteTransactionFailure, SYSTEM_MESSAGE_SECTIONS, } from "./types.js";
|
|
15
15
|
export type * from "./generated/session-events.js";
|
|
16
|
-
export type { AskUserVariant, CommandContext, CommandDefinition, CommandHandler, CanvasProviderIdentity, CloudSessionOptions, CloudSessionRepository, ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorStatus, AutoModeSwitchHandler, AutoModeSwitchRequest, AutoModeSwitchResponse, AgentStopHandler, AgentStopHookInput, AgentStopHookOutput, UserPromptTransformedHandler, UserPromptTransformedHookInput, UserPromptTransformedHookOutput, CopilotClientInfo, CopilotClientMode, CopilotClientOptions, InstallationConfirmationHandler, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, CopilotExpAssignmentResponse, StdioRuntimeConnection, InProcessRuntimeConnection, TcpRuntimeConnection, UriRuntimeConnection, ChildProcessRuntimeConnection, CustomAgentConfig, ElicitationFieldValue, ElicitationHandler, ElicitationParams, ElicitationContext, ElicitationResult, ElicitationSchema, ElicitationSchemaField, ExpConfigEntry, ExpFlagValue, ExitPlanModeHandler, ExitPlanModeRequest, ExitPlanModeResult, ExtensionLaunchProfile, ExtensionLaunchProvider, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, ExtensionInfo, ForegroundSessionInfo, GetAuthStatusResponse, GetStatusResponse, GitHubMcpToolConfig, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTokenProvider, GitHubTokenProviderArgs, GitHubTokenProviderResult, InfiniteSessionConfig, LargeToolOutputConfig, MemoryConfiguration, UiInputOptions, MCPStdioServerConfig, MCPHTTPServerConfig, MCPServerConfig, DefaultAgentConfig, BearerTokenProvider, ExtensionContextAttachment, MessageOptions, ResponseSchema, MessageSource, ManagedSettings, ManagedSettingsPermissions, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext, AutoTier, CapiSessionOptions, CurrentModel, ModelSwitchAutoTierResult, ModelSwitchAutoTierStatus, ModelCapabilities, ModelCapabilitiesOverride, ModelInfo, ModelPolicy, NamedProviderConfig, PermissionHandler, PermissionRequest, PermissionRequestedData, PermissionRequestedEvent, PermissionRequestResult, AttributedPermissionResult, PermissionDecisionContext, PermissionDecisionOutcome, PermissionDecisionSource, PermissionDecisionSurface, PermissionResponseCapability, ProviderConfig, ProviderModelConfig, ProviderTokenArgs, RemoteSessionMode, SandboxConfigSource, ResumeSessionConfig, SectionOverride, SectionOverrideAction, SectionTransformFn, SessionCapabilities, SessionConfig, SessionConfigBase, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionHooks, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, SessionFsSqliteStatement, SessionFsSqliteTransactionErrorClass, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
|
|
16
|
+
export type { AskUserVariant, CommandContext, CommandDefinition, CommandHandler, CanvasProviderIdentity, CloudSessionOptions, CloudSessionRepository, AuthIdentityMetadata, AuthInfoType, ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorSessionAccount, ConnectorSessionAccountResult, ConnectorStatus, AutoModeSwitchHandler, AutoModeSwitchRequest, AutoModeSwitchResponse, AgentStopHandler, AgentStopHookInput, AgentStopHookOutput, UserPromptTransformedHandler, UserPromptTransformedHookInput, UserPromptTransformedHookOutput, CopilotClientInfo, CopilotClientMode, CopilotClientOptions, InstallationConfirmationHandler, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, CopilotExpAssignmentResponse, StdioRuntimeConnection, InProcessRuntimeConnection, TcpRuntimeConnection, UriRuntimeConnection, ChildProcessRuntimeConnection, CustomAgentConfig, ElicitationFieldValue, ElicitationHandler, ElicitationParams, ElicitationContext, ElicitationResult, ElicitationSchema, ElicitationSchemaField, ExpConfigEntry, ExpFlagValue, ExitPlanModeHandler, ExitPlanModeRequest, ExitPlanModeResult, ExtensionLaunchProfile, ExtensionLaunchProvider, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, ExtensionInfo, ForegroundSessionInfo, GetAuthStatusResponse, GetStatusResponse, GitHubMcpToolConfig, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTokenProvider, GitHubTokenProviderArgs, GitHubTokenProviderResult, InfiniteSessionConfig, LargeToolOutputConfig, MemoryConfiguration, UiInputOptions, MCPStdioServerConfig, MCPHTTPServerConfig, MCPServerConfig, DefaultAgentConfig, BearerTokenProvider, ExtensionContextAttachment, MessageOptions, ResponseSchema, MessageSource, ManagedSettings, ManagedSettingsPermissions, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext, AutoTier, CapiSessionOptions, CurrentModel, ModelSwitchAutoTierResult, ModelSwitchAutoTierStatus, ModelCapabilities, ModelCapabilitiesOverride, ModelInfo, ModelPolicy, NamedProviderConfig, PermissionHandler, PermissionRequest, PermissionRequestedData, PermissionRequestedEvent, PermissionRequestResult, AttributedPermissionResult, PermissionDecisionContext, PermissionDecisionOutcome, PermissionDecisionSource, PermissionDecisionSurface, PermissionResponseCapability, ProviderConfig, ProviderModelConfig, ProviderTokenArgs, RemoteSessionMode, SandboxConfigSource, ResumeSessionConfig, TranscriptRecovery, SectionOverride, SectionOverrideAction, SectionTransformFn, SessionCapabilities, SessionConfig, SessionConfigBase, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionHooks, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, SessionFsSqliteStatement, SessionFsSqliteTransactionErrorClass, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
|
|
17
17
|
export type { JsonValue, WorkflowRunOptions, WorkflowResumeOptions, WorkflowLimitOverrides, WorkflowResumeErrorCode, SessionWorkflowApi, WorkflowAgentOptions, WorkflowContext, WorkflowDefinition, WorkflowHandle, WorkflowJsonSchema, WorkflowLimits, WorkflowMeta, WorkflowPipelineStage, WorkflowStepOptions, WorkflowRunResult, WorkflowRunStatus, WorkflowRunSummary, WorkflowListRunsOptions, WorkflowRunsPage, WorkflowRunDetail, WorkflowProgressPage, WorkflowProgressLine, WorkflowPhaseObservation, WorkflowPhaseStatus, WorkflowAgentSummary, } from "./workflow.js";
|