@github/copilot-sdk 1.0.20-preview.2 → 1.0.21-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/README.md +37 -0
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +5 -0
- package/dist/cjs/generated/rpc.js +210 -19
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.js +5 -0
- package/dist/generated/rpc.d.ts +535 -78
- package/dist/generated/rpc.js +210 -19
- package/dist/generated/session-events.d.ts +32 -2
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +43 -5
- package/package.json +13 -14
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -16,6 +16,32 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
16
16
|
*/
|
|
17
17
|
/** @experimental */
|
|
18
18
|
export type AuthInfo = HMACAuthInfo | EnvAuthInfo | TokenAuthInfo | TokenProviderAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | AccountAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
19
|
+
/**
|
|
20
|
+
* Authentication type
|
|
21
|
+
*
|
|
22
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
23
|
+
* via the `definition` "AuthInfoType".
|
|
24
|
+
*/
|
|
25
|
+
/** @experimental */
|
|
26
|
+
export type AuthInfoType =
|
|
27
|
+
/** Authentication provided by a GitHub App HMAC credential. */
|
|
28
|
+
"hmac"
|
|
29
|
+
/** Authentication resolved from environment-provided credentials. */
|
|
30
|
+
| "env"
|
|
31
|
+
/** Authentication from an interactive user sign-in. */
|
|
32
|
+
| "user"
|
|
33
|
+
/** Authentication from a selected provider-owned account, without a GitHub credential. */
|
|
34
|
+
| "account"
|
|
35
|
+
/** Authentication delegated to the GitHub CLI. */
|
|
36
|
+
| "gh-cli"
|
|
37
|
+
/** Authentication from an API key credential. */
|
|
38
|
+
| "api-key"
|
|
39
|
+
/** Authentication from a GitHub token. */
|
|
40
|
+
| "token"
|
|
41
|
+
/** Authentication from an SDK GitHub token callback. */
|
|
42
|
+
| "token-provider"
|
|
43
|
+
/** Authentication from a Copilot API token. */
|
|
44
|
+
| "copilot-api-token";
|
|
19
45
|
/**
|
|
20
46
|
* The provider kind stamped on a signed-in account.
|
|
21
47
|
*
|
|
@@ -369,32 +395,6 @@ export type LoginProviderKind =
|
|
|
369
395
|
| "proxima"
|
|
370
396
|
/** Microsoft Entra sign-in that derives a GitHub (EMU) credential. */
|
|
371
397
|
| "entra";
|
|
372
|
-
/**
|
|
373
|
-
* Authentication type
|
|
374
|
-
*
|
|
375
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
376
|
-
* via the `definition` "AuthInfoType".
|
|
377
|
-
*/
|
|
378
|
-
/** @experimental */
|
|
379
|
-
export type AuthInfoType =
|
|
380
|
-
/** Authentication provided by a GitHub App HMAC credential. */
|
|
381
|
-
"hmac"
|
|
382
|
-
/** Authentication resolved from environment-provided credentials. */
|
|
383
|
-
| "env"
|
|
384
|
-
/** Authentication from an interactive user sign-in. */
|
|
385
|
-
| "user"
|
|
386
|
-
/** Authentication from a selected provider-owned account, without a GitHub credential. */
|
|
387
|
-
| "account"
|
|
388
|
-
/** Authentication delegated to the GitHub CLI. */
|
|
389
|
-
| "gh-cli"
|
|
390
|
-
/** Authentication from an API key credential. */
|
|
391
|
-
| "api-key"
|
|
392
|
-
/** Authentication from a GitHub token. */
|
|
393
|
-
| "token"
|
|
394
|
-
/** Authentication from an SDK GitHub token callback. */
|
|
395
|
-
| "token-provider"
|
|
396
|
-
/** Authentication from a Copilot API token. */
|
|
397
|
-
| "copilot-api-token";
|
|
398
398
|
/**
|
|
399
399
|
* One step in an interactive login flow. The consumer acts on the step and calls advance to proceed. Browser-open is encoded as two distinct steps by design: `open-url` is CONSUMER-driven (the provider surfaces the authorize URL and the consumer opens it — github.com/GHEC web), while `needs-interaction` is PROVIDER-driven (the provider opens the browser or broker UI itself and does not surface a URL — Entra).
|
|
400
400
|
*
|
|
@@ -6573,6 +6573,33 @@ export interface ApiKeyAuthInfo {
|
|
|
6573
6573
|
host: string;
|
|
6574
6574
|
copilotUser?: CopilotUserResponse;
|
|
6575
6575
|
}
|
|
6576
|
+
/**
|
|
6577
|
+
* Credential-free authentication identity safe to expose to hosts and user interfaces.
|
|
6578
|
+
*
|
|
6579
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6580
|
+
* via the `definition` "AuthIdentity".
|
|
6581
|
+
*/
|
|
6582
|
+
/** @experimental */
|
|
6583
|
+
export interface AuthIdentity {
|
|
6584
|
+
type: AuthInfoType;
|
|
6585
|
+
/**
|
|
6586
|
+
* Authentication host
|
|
6587
|
+
*/
|
|
6588
|
+
host: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* Authenticated login, when available
|
|
6591
|
+
*/
|
|
6592
|
+
login?: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Name of the environment variable that supplied the credential, when applicable
|
|
6595
|
+
*/
|
|
6596
|
+
envVar?: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Opaque SDK GitHub credential registration backing this identity. Routing metadata only; never a credential.
|
|
6599
|
+
*/
|
|
6600
|
+
registrationId?: string;
|
|
6601
|
+
copilotUser?: CopilotUserResponse;
|
|
6602
|
+
}
|
|
6576
6603
|
/**
|
|
6577
6604
|
* Current authentication state
|
|
6578
6605
|
*
|
|
@@ -6883,6 +6910,12 @@ export interface AgentInfo {
|
|
|
6883
6910
|
* Authored base prompt for the agent. Runtime prompt assembly may add dynamic context at invocation time. Omitted from `session.agent.list` unless `includePrompt` is true.
|
|
6884
6911
|
*/
|
|
6885
6912
|
prompt?: string;
|
|
6913
|
+
/**
|
|
6914
|
+
* Declarative hook actions keyed by event name, executed only while this agent is active.
|
|
6915
|
+
*/
|
|
6916
|
+
hooks?: {
|
|
6917
|
+
[k: string]: JsonValue[] | undefined;
|
|
6918
|
+
};
|
|
6886
6919
|
}
|
|
6887
6920
|
/**
|
|
6888
6921
|
* Agents available to the session.
|
|
@@ -7116,6 +7149,10 @@ export interface AgentReloadResult {
|
|
|
7116
7149
|
*/
|
|
7117
7150
|
/** @experimental */
|
|
7118
7151
|
export interface AgentsDiscoverRequest {
|
|
7152
|
+
/**
|
|
7153
|
+
* Explicit discovery-only agent roots, separate from customAgents and filesystem grants. Available without ambient discovery, subject to managed/source disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
|
|
7154
|
+
*/
|
|
7155
|
+
agentDirectories?: string[];
|
|
7119
7156
|
/**
|
|
7120
7157
|
* Optional list of project directory paths to scan for project-scoped agents. When omitted or empty, only user/plugin/remote-independent agents are returned (no project scan).
|
|
7121
7158
|
*/
|
|
@@ -7173,6 +7210,10 @@ export interface AgentSetPromptRequest {
|
|
|
7173
7210
|
*/
|
|
7174
7211
|
/** @experimental */
|
|
7175
7212
|
export interface AgentsGetDiscoveryPathsRequest {
|
|
7213
|
+
/**
|
|
7214
|
+
* Explicit discovery-only agent roots to enumerate, including configured missing directories. Relative paths resolve against the request's effective working directory when supplied. These are not filesystem grants or preferred creation targets. Null and omission are equivalent.
|
|
7215
|
+
*/
|
|
7216
|
+
agentDirectories?: string[];
|
|
7176
7217
|
/**
|
|
7177
7218
|
* Optional list of project directory paths. When omitted or empty, only the user-level directory is returned.
|
|
7178
7219
|
*/
|
|
@@ -7200,33 +7241,6 @@ export interface ProviderDescriptor {
|
|
|
7200
7241
|
*/
|
|
7201
7242
|
available: boolean;
|
|
7202
7243
|
}
|
|
7203
|
-
/**
|
|
7204
|
-
* Credential-free authentication identity safe to expose to hosts and user interfaces.
|
|
7205
|
-
*
|
|
7206
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7207
|
-
* via the `definition` "AuthIdentity".
|
|
7208
|
-
*/
|
|
7209
|
-
/** @experimental */
|
|
7210
|
-
export interface AuthIdentity {
|
|
7211
|
-
type: AuthInfoType;
|
|
7212
|
-
/**
|
|
7213
|
-
* Authentication host
|
|
7214
|
-
*/
|
|
7215
|
-
host: string;
|
|
7216
|
-
/**
|
|
7217
|
-
* Authenticated login, when available
|
|
7218
|
-
*/
|
|
7219
|
-
login?: string;
|
|
7220
|
-
/**
|
|
7221
|
-
* Name of the environment variable that supplied the credential, when applicable
|
|
7222
|
-
*/
|
|
7223
|
-
envVar?: string;
|
|
7224
|
-
/**
|
|
7225
|
-
* Opaque SDK GitHub credential registration backing this identity. Routing metadata only; never a credential.
|
|
7226
|
-
*/
|
|
7227
|
-
registrationId?: string;
|
|
7228
|
-
copilotUser?: CopilotUserResponse;
|
|
7229
|
-
}
|
|
7230
7244
|
/**
|
|
7231
7245
|
* Credential-free identity metadata.
|
|
7232
7246
|
*
|
|
@@ -12094,6 +12108,10 @@ export interface HistoryTruncateResult {
|
|
|
12094
12108
|
*/
|
|
12095
12109
|
/** @experimental */
|
|
12096
12110
|
export interface HooksDiscoverRequest {
|
|
12111
|
+
/**
|
|
12112
|
+
* Explicit discovery-only file-hook roots, separate from callback hooks and filesystem grants. Available without ambient discovery or repository file-hook enablement, subject to managed/hook disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
|
|
12113
|
+
*/
|
|
12114
|
+
hookDirectories?: string[];
|
|
12097
12115
|
/**
|
|
12098
12116
|
* Optional project directory paths whose trusted repository and project-expanded plugin hooks should be discovered. When omitted or empty, user, managed-policy, and globally enabled installed or explicit plugin hooks are returned without project expansion.
|
|
12099
12117
|
*/
|
|
@@ -13187,6 +13205,10 @@ export interface InstructionDiscoveryPathList {
|
|
|
13187
13205
|
*/
|
|
13188
13206
|
/** @experimental */
|
|
13189
13207
|
export interface InstructionsDiscoverRequest {
|
|
13208
|
+
/**
|
|
13209
|
+
* Explicit discovery-only instruction roots using existing SDK instruction formats, not filesystem grants. Available without ambient discovery, subject to instruction/managed disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
|
|
13210
|
+
*/
|
|
13211
|
+
instructionDirectories?: string[];
|
|
13190
13212
|
/**
|
|
13191
13213
|
* Optional list of project directory paths to scan for repository/working-directory instruction sources. When omitted or empty, only user-level and plugin instruction sources are returned (no project scan).
|
|
13192
13214
|
*/
|
|
@@ -13204,6 +13226,10 @@ export interface InstructionsDiscoverRequest {
|
|
|
13204
13226
|
*/
|
|
13205
13227
|
/** @experimental */
|
|
13206
13228
|
export interface InstructionsGetDiscoveryPathsRequest {
|
|
13229
|
+
/**
|
|
13230
|
+
* Explicit discovery-only instruction roots to enumerate, including configured missing directories. Relative paths resolve against the request's effective working directory when supplied. These are not filesystem grants or preferred creation targets. Null and omission are equivalent.
|
|
13231
|
+
*/
|
|
13232
|
+
instructionDirectories?: string[];
|
|
13207
13233
|
/**
|
|
13208
13234
|
* Optional list of project directory paths. When omitted or empty, only the user-level targets are returned.
|
|
13209
13235
|
*/
|
|
@@ -17134,6 +17160,64 @@ export interface ModelCapabilitiesOverrideLimitsVision {
|
|
|
17134
17160
|
*/
|
|
17135
17161
|
max_prompt_image_size?: number;
|
|
17136
17162
|
}
|
|
17163
|
+
/**
|
|
17164
|
+
* Host presentation state the reasoning-summaries policy depends on.
|
|
17165
|
+
*
|
|
17166
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
17167
|
+
* via the `definition` "ModelGetReasoningSummariesRequest".
|
|
17168
|
+
*/
|
|
17169
|
+
/** @experimental */
|
|
17170
|
+
export interface ModelGetReasoningSummariesRequest {
|
|
17171
|
+
/**
|
|
17172
|
+
* The host's persisted `showReasoning` user setting, omitted when unset.
|
|
17173
|
+
*/
|
|
17174
|
+
persistedShowReasoning?: boolean;
|
|
17175
|
+
/**
|
|
17176
|
+
* Whether the host is currently showing reasoning summaries. Defaults to false.
|
|
17177
|
+
*/
|
|
17178
|
+
summariesVisible?: boolean;
|
|
17179
|
+
}
|
|
17180
|
+
/**
|
|
17181
|
+
* Reasoning-summaries presentation policy for the session's current model.
|
|
17182
|
+
*
|
|
17183
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
17184
|
+
* via the `definition` "ModelGetReasoningSummariesResult".
|
|
17185
|
+
*/
|
|
17186
|
+
/** @experimental */
|
|
17187
|
+
export interface ModelGetReasoningSummariesResult {
|
|
17188
|
+
/**
|
|
17189
|
+
* False until the session has a model catalog and a selected model. This read never resolves the catalog itself, and the runtime emits no readiness notification, so repeating this call alone leaves `ready` false indefinitely on a session that has neither listed models nor run a turn. `session.model.list` is the prerequisite and the signal: it resolves and caches the catalog for the session, so a successful return means the next read is ready. The exception is a session that resolves models without a Copilot catalog, that is a BYOK registry or an alternate provider: `session.model.list` returns an empty list without caching a catalog, so `ready` stays false and this policy is unavailable there. While false, every model-policy field is false and `visibility` is omitted; `experimentSettled` is independent of readiness and still reports the assignment state.
|
|
17190
|
+
*/
|
|
17191
|
+
ready: boolean;
|
|
17192
|
+
/**
|
|
17193
|
+
* Whether the session's reasoning-summaries experiment assignment has settled. False means this read does not wait for a pending assignment and reports the experiment-derived fields conservatively: `showHiddenHint` is false and `visibility` falls back to `persistedShowReasoning`, or is omitted when none was supplied. A host that wants the assigned answer re-reads until this is true.
|
|
17194
|
+
*/
|
|
17195
|
+
experimentSettled: boolean;
|
|
17196
|
+
/**
|
|
17197
|
+
* Whether turns on this session produce reasoning summaries, honouring an explicit session reasoning-summary override.
|
|
17198
|
+
*/
|
|
17199
|
+
sessionShowsSummaries: boolean;
|
|
17200
|
+
/**
|
|
17201
|
+
* Whether the selected model shows reasoning summaries by default.
|
|
17202
|
+
*/
|
|
17203
|
+
modelDefaultShowsSummaries: boolean;
|
|
17204
|
+
/**
|
|
17205
|
+
* Whether the selected model emits reasoning headers.
|
|
17206
|
+
*/
|
|
17207
|
+
showReasoningHeaders: boolean;
|
|
17208
|
+
/**
|
|
17209
|
+
* Default reasoning visibility, and only meaningful once `ready` is true: false when the session produces no summaries, else the persisted setting, else the experiment's default. While `ready` is true it is omitted only when all three are unavailable, that is when the session produces summaries, no `persistedShowReasoning` was supplied, and `experimentSettled` is false. While `ready` is false there is no model policy to report and this field is always omitted, so an absent value alone does not imply a pending experiment.
|
|
17210
|
+
*/
|
|
17211
|
+
visibility?: boolean;
|
|
17212
|
+
/**
|
|
17213
|
+
* Whether to show the hint that reasoning summaries are hidden. Always false while `experimentSettled` is false.
|
|
17214
|
+
*/
|
|
17215
|
+
showHiddenHint: boolean;
|
|
17216
|
+
/**
|
|
17217
|
+
* Whether the supplied `persistedShowReasoning` setting only restates the model default. This reports a redundancy, not a standing instruction to delete the setting: it stays true for as long as the setting and the model default agree, including for a user who later chose that value deliberately. It exists for a one-time migration of a legacy setting written before the model default made it redundant, so a host that acts on it owns the cleanup and must gate it behind its own persisted `done` marker, delete only a setting whose value still matches the one it read, and never repeat the deletion on a later launch. Under an off-by-default reasoning-summaries experiment an explicit `showReasoning: true` opt-in also reads as redundant on a summary-producing model, so an ungated host would keep deleting that opt-in and hide summaries again on every launch.
|
|
17218
|
+
*/
|
|
17219
|
+
clearRedundantSetting: boolean;
|
|
17220
|
+
}
|
|
17137
17221
|
/**
|
|
17138
17222
|
* List of Copilot models available to the resolved user, including capabilities and billing metadata.
|
|
17139
17223
|
*
|
|
@@ -23894,15 +23978,27 @@ export interface SessionOpenOptions {
|
|
|
23894
23978
|
*/
|
|
23895
23979
|
allowAllMcpServerInstructions?: boolean;
|
|
23896
23980
|
/**
|
|
23897
|
-
*
|
|
23981
|
+
* Explicit discovery-only skill roots, not filesystem grants. Available without enableConfigDiscovery, subject to skill/managed disables. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
23898
23982
|
*/
|
|
23899
23983
|
skillDirectories?: string[];
|
|
23984
|
+
/**
|
|
23985
|
+
* Explicit discovery-only agent roots, separate from customAgents and filesystem grants. Available without enableConfigDiscovery, subject to managed/source disables. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
23986
|
+
*/
|
|
23987
|
+
agentDirectories?: string[];
|
|
23988
|
+
/**
|
|
23989
|
+
* Explicit discovery-only instruction roots using existing SDK instruction formats, not filesystem grants. Available without enableConfigDiscovery, subject to instruction/managed disables. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
23990
|
+
*/
|
|
23991
|
+
instructionDirectories?: string[];
|
|
23992
|
+
/**
|
|
23993
|
+
* Explicit discovery-only file-hook roots, separate from callback hooks and filesystem grants. Available without enableConfigDiscovery or enableFileHooks, which controls repository-origin hooks only; hook/managed disables still apply. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
23994
|
+
*/
|
|
23995
|
+
hookDirectories?: string[];
|
|
23900
23996
|
/**
|
|
23901
23997
|
* Skill scan directories and descendants excluded from discovery. Supports `~`-relative paths.
|
|
23902
23998
|
*/
|
|
23903
23999
|
ignoredSkillsLocations?: string[];
|
|
23904
24000
|
/**
|
|
23905
|
-
* Whether skill loading is enabled. When omitted, an SDK skill provider
|
|
24001
|
+
* Whether skill loading is enabled. When omitted, explicit SDK skill roots or an SDK skill provider enable skills independently of enableConfigDiscovery.
|
|
23906
24002
|
*/
|
|
23907
24003
|
enableSkills?: boolean;
|
|
23908
24004
|
/**
|
|
@@ -25679,9 +25775,21 @@ export interface SessionUpdateOptionsParams {
|
|
|
25679
25775
|
*/
|
|
25680
25776
|
allowAllMcpServerInstructions?: boolean;
|
|
25681
25777
|
/**
|
|
25682
|
-
*
|
|
25778
|
+
* Explicit discovery-only skill roots, not filesystem grants. Available without enableConfigDiscovery, subject to skill/managed disables. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
25683
25779
|
*/
|
|
25684
25780
|
skillDirectories?: string[];
|
|
25781
|
+
/**
|
|
25782
|
+
* Explicit discovery-only agent roots, separate from customAgents and filesystem grants. Available without enableConfigDiscovery, subject to managed/source disables. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
25783
|
+
*/
|
|
25784
|
+
agentDirectories?: string[];
|
|
25785
|
+
/**
|
|
25786
|
+
* Explicit discovery-only instruction roots using existing SDK instruction formats, not filesystem grants. Available without enableConfigDiscovery, subject to instruction/managed disables. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
25787
|
+
*/
|
|
25788
|
+
instructionDirectories?: string[];
|
|
25789
|
+
/**
|
|
25790
|
+
* Explicit discovery-only file-hook roots, separate from callback hooks and filesystem grants. Available without enableConfigDiscovery or enableFileHooks, which controls repository-origin hooks only; hook/managed disables still apply. Relative SDK paths resolve once when supplied against the request's effective workingDirectory; retained roots do not move on cwd changes. Null and omission are equivalent; [] clears only the explicit SDK contribution.
|
|
25791
|
+
*/
|
|
25792
|
+
hookDirectories?: string[];
|
|
25685
25793
|
/**
|
|
25686
25794
|
* Skill scan directories and descendants excluded from discovery. Supports `~`-relative paths.
|
|
25687
25795
|
*/
|
|
@@ -25789,7 +25897,7 @@ export interface SessionUpdateOptionsParams {
|
|
|
25789
25897
|
*/
|
|
25790
25898
|
organizationCustomInstructions?: string;
|
|
25791
25899
|
/**
|
|
25792
|
-
* Whether to enable
|
|
25900
|
+
* Whether to enable repository-origin file hooks from `.github/hooks/` and trusted repository-configured roots. Does not control explicit hookDirectories or SDK callback hooks.
|
|
25793
25901
|
*/
|
|
25794
25902
|
enableFileHooks?: boolean;
|
|
25795
25903
|
/**
|
|
@@ -25801,7 +25909,7 @@ export interface SessionUpdateOptionsParams {
|
|
|
25801
25909
|
*/
|
|
25802
25910
|
enableSessionStore?: boolean;
|
|
25803
25911
|
/**
|
|
25804
|
-
* Whether skill loading is enabled. Explicit false disables every source, including a bound SDK provider; changing the value invalidates the loaded skill snapshot. When omitted, creation falls back to enableConfigDiscovery unless an SDK skill provider
|
|
25912
|
+
* Whether skill loading is enabled. Explicit false disables every source, including explicit SDK roots and a bound SDK provider; changing the value invalidates the loaded skill snapshot. When omitted, creation falls back to enableConfigDiscovery unless explicit SDK skill roots or an SDK skill provider are supplied.
|
|
25805
25913
|
*/
|
|
25806
25914
|
enableSkills?: boolean;
|
|
25807
25915
|
contextTier?: OptionsUpdateContextTier;
|
|
@@ -26256,7 +26364,7 @@ export interface SkillsDiscoverRequest {
|
|
|
26256
26364
|
*/
|
|
26257
26365
|
projectPaths?: string[];
|
|
26258
26366
|
/**
|
|
26259
|
-
*
|
|
26367
|
+
* Explicit discovery-only skill roots, not filesystem grants. Available without ambient discovery, subject to skill/managed disables. Relative paths resolve against the request's effective working directory when supplied. Null and omission are equivalent; an empty array contributes no explicit roots.
|
|
26260
26368
|
*/
|
|
26261
26369
|
skillDirectories?: string[];
|
|
26262
26370
|
/**
|
|
@@ -26311,6 +26419,10 @@ export interface SkillSetEnabledRequest {
|
|
|
26311
26419
|
*/
|
|
26312
26420
|
/** @experimental */
|
|
26313
26421
|
export interface SkillsGetDiscoveryPathsRequest {
|
|
26422
|
+
/**
|
|
26423
|
+
* Explicit discovery-only skill roots to enumerate, including configured missing directories. Relative paths resolve against the request's effective working directory when supplied. These are not filesystem grants or preferred creation targets. Null and omission are equivalent.
|
|
26424
|
+
*/
|
|
26425
|
+
skillDirectories?: string[];
|
|
26314
26426
|
/**
|
|
26315
26427
|
* Optional list of project directory paths. When omitted or empty, only personal and custom directories are returned.
|
|
26316
26428
|
*/
|
|
@@ -28363,6 +28475,107 @@ export interface UserSettingMetadata {
|
|
|
28363
28475
|
*/
|
|
28364
28476
|
isDefault: boolean;
|
|
28365
28477
|
}
|
|
28478
|
+
/**
|
|
28479
|
+
* A single top-level setting subtree to validate and write.
|
|
28480
|
+
*
|
|
28481
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28482
|
+
* via the `definition` "UserSettingsApplyTopKeyRequest".
|
|
28483
|
+
*/
|
|
28484
|
+
/** @experimental */
|
|
28485
|
+
export interface UserSettingsApplyTopKeyRequest {
|
|
28486
|
+
/**
|
|
28487
|
+
* Canonical path of the setting the caller is editing. Currently informational only.
|
|
28488
|
+
*/
|
|
28489
|
+
canonicalPath: string[];
|
|
28490
|
+
/**
|
|
28491
|
+
* Top-level setting name to write.
|
|
28492
|
+
*/
|
|
28493
|
+
topKey: string;
|
|
28494
|
+
/**
|
|
28495
|
+
* Value to write for the whole top-level key. Omitted when `delete` is true. Explicit null is preserved and validated as null.
|
|
28496
|
+
*/
|
|
28497
|
+
value?: JsonValue | null;
|
|
28498
|
+
/**
|
|
28499
|
+
* True to remove the top-level key instead of writing it.
|
|
28500
|
+
*/
|
|
28501
|
+
delete?: boolean;
|
|
28502
|
+
/**
|
|
28503
|
+
* Records that the user chose an update channel explicitly, so the one-time staff channel migration stops reapplying. Honored only for the `autoUpdatesChannel` key.
|
|
28504
|
+
*/
|
|
28505
|
+
completeStaffUpdateChannelMigration?: boolean;
|
|
28506
|
+
}
|
|
28507
|
+
/**
|
|
28508
|
+
* Outcome of validating and writing one top-level setting subtree.
|
|
28509
|
+
*
|
|
28510
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28511
|
+
* via the `definition` "UserSettingsApplyTopKeyResult".
|
|
28512
|
+
*/
|
|
28513
|
+
/** @experimental */
|
|
28514
|
+
export interface UserSettingsApplyTopKeyResult {
|
|
28515
|
+
/**
|
|
28516
|
+
* `ok` when the value was written, `validation-error` when it was rejected before any write, `write-error` when validation passed but the write failed.
|
|
28517
|
+
*/
|
|
28518
|
+
status: string;
|
|
28519
|
+
/**
|
|
28520
|
+
* Problems found, present only when `status` is `validation-error`.
|
|
28521
|
+
*/
|
|
28522
|
+
issues?: UserSettingsValidationIssue[];
|
|
28523
|
+
/**
|
|
28524
|
+
* Why the write failed, present only when `status` is `write-error`.
|
|
28525
|
+
*/
|
|
28526
|
+
error?: string | null;
|
|
28527
|
+
}
|
|
28528
|
+
/**
|
|
28529
|
+
* One problem found while validating a setting value.
|
|
28530
|
+
*
|
|
28531
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28532
|
+
* via the `definition` "UserSettingsValidationIssue".
|
|
28533
|
+
*/
|
|
28534
|
+
/** @experimental */
|
|
28535
|
+
export interface UserSettingsValidationIssue {
|
|
28536
|
+
/**
|
|
28537
|
+
* Where in the settings tree the problem sits, as object keys and array indices. The first element is the top-level key; a whole-value problem is reported as that single key.
|
|
28538
|
+
*/
|
|
28539
|
+
path: JsonValue[];
|
|
28540
|
+
/**
|
|
28541
|
+
* Human-readable description of the problem.
|
|
28542
|
+
*/
|
|
28543
|
+
message: string;
|
|
28544
|
+
}
|
|
28545
|
+
/**
|
|
28546
|
+
* Selects which settings file paths to resolve.
|
|
28547
|
+
*
|
|
28548
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28549
|
+
* via the `definition` "UserSettingsGetPathsRequest".
|
|
28550
|
+
*/
|
|
28551
|
+
/** @experimental */
|
|
28552
|
+
export interface UserSettingsGetPathsRequest {
|
|
28553
|
+
/**
|
|
28554
|
+
* Absolute path of a repository root. Supply it to also resolve that repository's two settings file paths; omit it to resolve only the user path.
|
|
28555
|
+
*/
|
|
28556
|
+
repoRoot?: string;
|
|
28557
|
+
}
|
|
28558
|
+
/**
|
|
28559
|
+
* On-disk locations of the settings files this runtime reads. A path is reported whether or not the file exists.
|
|
28560
|
+
*
|
|
28561
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28562
|
+
* via the `definition` "UserSettingsGetPathsResult".
|
|
28563
|
+
*/
|
|
28564
|
+
/** @experimental */
|
|
28565
|
+
export interface UserSettingsGetPathsResult {
|
|
28566
|
+
/**
|
|
28567
|
+
* The user settings file: `settings.json` under the resolved Copilot home. This is the file `user.settings.get`, `user.settings.load`, and `user.settings.set` read and write.
|
|
28568
|
+
*/
|
|
28569
|
+
userSettings: string;
|
|
28570
|
+
/**
|
|
28571
|
+
* The repository's checked-in settings file, or null when no repository root was supplied.
|
|
28572
|
+
*/
|
|
28573
|
+
repoSettings?: string | null;
|
|
28574
|
+
/**
|
|
28575
|
+
* The repository's local, untracked settings file, or null when no repository root was supplied.
|
|
28576
|
+
*/
|
|
28577
|
+
repoLocalSettings?: string | null;
|
|
28578
|
+
}
|
|
28366
28579
|
/**
|
|
28367
28580
|
* Per-key metadata for every known user setting in settings.json, including settings left at their default. Excludes repository- and enterprise-managed overrides.
|
|
28368
28581
|
*
|
|
@@ -28378,6 +28591,178 @@ export interface UserSettingsGetResult {
|
|
|
28378
28591
|
[k: string]: UserSettingMetadata;
|
|
28379
28592
|
};
|
|
28380
28593
|
}
|
|
28594
|
+
/**
|
|
28595
|
+
* Top-level user-setting keys grouped by who may govern them.
|
|
28596
|
+
*
|
|
28597
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28598
|
+
* via the `definition` "UserSettingsGovernanceKeysResult".
|
|
28599
|
+
*/
|
|
28600
|
+
/** @experimental */
|
|
28601
|
+
export interface UserSettingsGovernanceKeysResult {
|
|
28602
|
+
/**
|
|
28603
|
+
* Top-level keys a repository may override through `.github/copilot/settings.json` or `.github/copilot/settings.local.json`.
|
|
28604
|
+
*/
|
|
28605
|
+
repo: string[];
|
|
28606
|
+
/**
|
|
28607
|
+
* Top-level keys a repository may override through a Claude-compatible repository config.
|
|
28608
|
+
*/
|
|
28609
|
+
claudeRepo: string[];
|
|
28610
|
+
/**
|
|
28611
|
+
* Top-level keys an enterprise policy may fix through managed settings.
|
|
28612
|
+
*/
|
|
28613
|
+
managed: string[];
|
|
28614
|
+
}
|
|
28615
|
+
/**
|
|
28616
|
+
* Contents of settings.json as stored, for a caller about to rewrite it.
|
|
28617
|
+
*
|
|
28618
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28619
|
+
* via the `definition` "UserSettingsLoadForEditResult".
|
|
28620
|
+
*/
|
|
28621
|
+
/** @experimental */
|
|
28622
|
+
export interface UserSettingsLoadForEditResult {
|
|
28623
|
+
/**
|
|
28624
|
+
* `ok` when the file parsed, `missing` when there is no file yet, `invalid` when the file exists but will not parse.
|
|
28625
|
+
*/
|
|
28626
|
+
status: string;
|
|
28627
|
+
/**
|
|
28628
|
+
* Parsed contents, present only when `status` is `ok`.
|
|
28629
|
+
*/
|
|
28630
|
+
settings?: JsonValue;
|
|
28631
|
+
}
|
|
28632
|
+
/**
|
|
28633
|
+
* Settings object whose key names should be canonicalized.
|
|
28634
|
+
*
|
|
28635
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28636
|
+
* via the `definition` "UserSettingsNormalizeRequest".
|
|
28637
|
+
*/
|
|
28638
|
+
/** @experimental */
|
|
28639
|
+
export interface UserSettingsNormalizeRequest {
|
|
28640
|
+
/**
|
|
28641
|
+
* Free-form settings object, possibly using legacy or snake_case key names.
|
|
28642
|
+
*/
|
|
28643
|
+
settings: JsonValue;
|
|
28644
|
+
}
|
|
28645
|
+
/**
|
|
28646
|
+
* Settings object with canonical key names.
|
|
28647
|
+
*
|
|
28648
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28649
|
+
* via the `definition` "UserSettingsNormalizeResult".
|
|
28650
|
+
*/
|
|
28651
|
+
/** @experimental */
|
|
28652
|
+
export interface UserSettingsNormalizeResult {
|
|
28653
|
+
/**
|
|
28654
|
+
* The same settings with every legacy or snake_case key renamed to its canonical spelling.
|
|
28655
|
+
*/
|
|
28656
|
+
settings: JsonValue;
|
|
28657
|
+
}
|
|
28658
|
+
/**
|
|
28659
|
+
* One setting that will not take effect, and why.
|
|
28660
|
+
*
|
|
28661
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28662
|
+
* via the `definition` "UserSettingsProblem".
|
|
28663
|
+
*/
|
|
28664
|
+
/** @experimental */
|
|
28665
|
+
export interface UserSettingsProblem {
|
|
28666
|
+
/**
|
|
28667
|
+
* Stable identifier for this problem within the reported set, so a caller can track a selection across refreshes.
|
|
28668
|
+
*/
|
|
28669
|
+
id: string;
|
|
28670
|
+
/**
|
|
28671
|
+
* What is wrong in machine-readable form, for a caller that wants to branch rather than display.
|
|
28672
|
+
*/
|
|
28673
|
+
kind: string;
|
|
28674
|
+
/**
|
|
28675
|
+
* Coarse grouping for the problem, for a caller that presents problems in sections.
|
|
28676
|
+
*/
|
|
28677
|
+
category: string;
|
|
28678
|
+
source: UserSettingsProblemLocation;
|
|
28679
|
+
/**
|
|
28680
|
+
* The offending key as written in the file, when the problem is attributable to a single key. Absent when the whole file is at fault.
|
|
28681
|
+
*/
|
|
28682
|
+
rawKey?: string;
|
|
28683
|
+
/**
|
|
28684
|
+
* Why the setting will not take effect. Never contains the setting's value, which may be a token or another secret.
|
|
28685
|
+
*/
|
|
28686
|
+
explanation: string;
|
|
28687
|
+
}
|
|
28688
|
+
/**
|
|
28689
|
+
* The settings layer a problem was found in.
|
|
28690
|
+
*
|
|
28691
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28692
|
+
* via the `definition` "UserSettingsProblemLocation".
|
|
28693
|
+
*/
|
|
28694
|
+
/** @experimental */
|
|
28695
|
+
export interface UserSettingsProblemLocation {
|
|
28696
|
+
/**
|
|
28697
|
+
* Which layer this is: `user`, `repo`, or `local`.
|
|
28698
|
+
*/
|
|
28699
|
+
kind: string;
|
|
28700
|
+
/**
|
|
28701
|
+
* The caller-supplied display label for the layer.
|
|
28702
|
+
*/
|
|
28703
|
+
label: string;
|
|
28704
|
+
/**
|
|
28705
|
+
* Absolute path of the file backing this layer.
|
|
28706
|
+
*/
|
|
28707
|
+
filePath: string;
|
|
28708
|
+
}
|
|
28709
|
+
/**
|
|
28710
|
+
* One already-loaded settings layer to diagnose.
|
|
28711
|
+
*
|
|
28712
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28713
|
+
* via the `definition` "UserSettingsProblemSource".
|
|
28714
|
+
*/
|
|
28715
|
+
/** @experimental */
|
|
28716
|
+
export interface UserSettingsProblemSource {
|
|
28717
|
+
/**
|
|
28718
|
+
* Which layer this is: `user`, `repo`, or `local`.
|
|
28719
|
+
*/
|
|
28720
|
+
kind: string;
|
|
28721
|
+
/**
|
|
28722
|
+
* Caller-chosen display label for the layer, echoed back on each problem so a caller can group by layer without re-deriving its own naming.
|
|
28723
|
+
*/
|
|
28724
|
+
label: string;
|
|
28725
|
+
/**
|
|
28726
|
+
* Absolute path of the file backing this layer.
|
|
28727
|
+
*/
|
|
28728
|
+
filePath: string;
|
|
28729
|
+
/**
|
|
28730
|
+
* The layer's settings exactly as loaded, unnormalized. Empty when the file is missing or failed to parse.
|
|
28731
|
+
*/
|
|
28732
|
+
config?: {
|
|
28733
|
+
[k: string]: unknown | undefined;
|
|
28734
|
+
};
|
|
28735
|
+
/**
|
|
28736
|
+
* True when the file itself failed to parse, so its keys could not be read at all.
|
|
28737
|
+
*/
|
|
28738
|
+
invalid?: boolean;
|
|
28739
|
+
}
|
|
28740
|
+
/**
|
|
28741
|
+
* The settings layers to diagnose.
|
|
28742
|
+
*
|
|
28743
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28744
|
+
* via the `definition` "UserSettingsProblemsRequest".
|
|
28745
|
+
*/
|
|
28746
|
+
/** @experimental */
|
|
28747
|
+
export interface UserSettingsProblemsRequest {
|
|
28748
|
+
/**
|
|
28749
|
+
* Layers to diagnose, in the precedence order the caller applies them.
|
|
28750
|
+
*/
|
|
28751
|
+
sources?: UserSettingsProblemSource[];
|
|
28752
|
+
}
|
|
28753
|
+
/**
|
|
28754
|
+
* The settings that will not take effect across the given layers.
|
|
28755
|
+
*
|
|
28756
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28757
|
+
* via the `definition` "UserSettingsProblemsResult".
|
|
28758
|
+
*/
|
|
28759
|
+
/** @experimental */
|
|
28760
|
+
export interface UserSettingsProblemsResult {
|
|
28761
|
+
/**
|
|
28762
|
+
* Each setting that will not take effect, and why. Empty when every layer is healthy.
|
|
28763
|
+
*/
|
|
28764
|
+
problems?: UserSettingsProblem[];
|
|
28765
|
+
}
|
|
28381
28766
|
/**
|
|
28382
28767
|
* Partial user settings to write to settings.json. Each top-level key is written individually, replacing the existing value; a key whose value is null is removed.
|
|
28383
28768
|
*
|
|
@@ -28391,6 +28776,57 @@ export interface UserSettingsSetRequest {
|
|
|
28391
28776
|
*/
|
|
28392
28777
|
settings: JsonValue;
|
|
28393
28778
|
}
|
|
28779
|
+
/**
|
|
28780
|
+
* A single top-level setting subtree to validate.
|
|
28781
|
+
*
|
|
28782
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28783
|
+
* via the `definition` "UserSettingsValidateRequest".
|
|
28784
|
+
*/
|
|
28785
|
+
/** @experimental */
|
|
28786
|
+
export interface UserSettingsValidateRequest {
|
|
28787
|
+
/**
|
|
28788
|
+
* Top-level setting name to validate.
|
|
28789
|
+
*/
|
|
28790
|
+
topKey: string;
|
|
28791
|
+
/**
|
|
28792
|
+
* Value to validate. Omitted when `delete` is true.
|
|
28793
|
+
*/
|
|
28794
|
+
value?: JsonValue;
|
|
28795
|
+
/**
|
|
28796
|
+
* True to validate a removal of this key. The current settings file is not read.
|
|
28797
|
+
*/
|
|
28798
|
+
delete?: boolean;
|
|
28799
|
+
}
|
|
28800
|
+
/**
|
|
28801
|
+
* Outcome of validating one top-level setting subtree.
|
|
28802
|
+
*
|
|
28803
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28804
|
+
* via the `definition` "UserSettingsValidateResult".
|
|
28805
|
+
*/
|
|
28806
|
+
/** @experimental */
|
|
28807
|
+
export interface UserSettingsValidateResult {
|
|
28808
|
+
/**
|
|
28809
|
+
* True when the subtree is valid.
|
|
28810
|
+
*/
|
|
28811
|
+
ok: boolean;
|
|
28812
|
+
/**
|
|
28813
|
+
* Problems found, empty when `ok` is true.
|
|
28814
|
+
*/
|
|
28815
|
+
issues?: UserSettingsValidationIssue[];
|
|
28816
|
+
}
|
|
28817
|
+
/**
|
|
28818
|
+
* The whole content to store in the user settings file.
|
|
28819
|
+
*
|
|
28820
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28821
|
+
* via the `definition` "UserSettingsWriteAllRequest".
|
|
28822
|
+
*/
|
|
28823
|
+
/** @experimental */
|
|
28824
|
+
export interface UserSettingsWriteAllRequest {
|
|
28825
|
+
/**
|
|
28826
|
+
* The settings object to store. It replaces the file's entire content, so a key absent here is removed.
|
|
28827
|
+
*/
|
|
28828
|
+
settings: JsonValue;
|
|
28829
|
+
}
|
|
28394
28830
|
/**
|
|
28395
28831
|
* Current sharing status and shareable GitHub URL for a session.
|
|
28396
28832
|
*
|
|
@@ -30089,6 +30525,19 @@ export interface HostGetConfigurationResult {
|
|
|
30089
30525
|
/** @experimental */
|
|
30090
30526
|
export interface HostReadyResult {
|
|
30091
30527
|
}
|
|
30528
|
+
/**
|
|
30529
|
+
* The resolved feature flags, keyed by flag name.
|
|
30530
|
+
*
|
|
30531
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
30532
|
+
* via the `definition` "FeatureFlagsResolveResult".
|
|
30533
|
+
*/
|
|
30534
|
+
/** @experimental */
|
|
30535
|
+
export interface FeatureFlagsResolveResult {
|
|
30536
|
+
/**
|
|
30537
|
+
* Whether the flag is enabled for this population.
|
|
30538
|
+
*/
|
|
30539
|
+
[k: string]: boolean | undefined;
|
|
30540
|
+
}
|
|
30092
30541
|
/**
|
|
30093
30542
|
* Ordered managed permission verdicts and the supplied policy's fail-closed posture.
|
|
30094
30543
|
*
|
|
@@ -30996,6 +31445,25 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
30996
31445
|
disable: (params: DiscoveredExtensionsDisableRequest) => Promise<void>;
|
|
30997
31446
|
};
|
|
30998
31447
|
/** @experimental */
|
|
31448
|
+
instructions: {
|
|
31449
|
+
/**
|
|
31450
|
+
* Discovers instruction sources across user, repository, and plugin sources.
|
|
31451
|
+
*
|
|
31452
|
+
* @param params Optional project paths to include in instruction discovery.
|
|
31453
|
+
*
|
|
31454
|
+
* @returns Instruction sources discovered across user, repository, and plugin sources.
|
|
31455
|
+
*/
|
|
31456
|
+
discover: (params: InstructionsDiscoverRequest) => Promise<ServerInstructionSourceList>;
|
|
31457
|
+
/**
|
|
31458
|
+
* Returns the canonical files and directories where a client may create custom instructions that the runtime will recognize, including ones that do not exist yet. Repository targets become active once created.
|
|
31459
|
+
*
|
|
31460
|
+
* @param params Optional project paths to include when enumerating instruction discovery targets.
|
|
31461
|
+
*
|
|
31462
|
+
* @returns Canonical files and directories where custom instructions can be created so the runtime will recognize them.
|
|
31463
|
+
*/
|
|
31464
|
+
getDiscoveryPaths: (params: InstructionsGetDiscoveryPathsRequest) => Promise<InstructionDiscoveryPathList>;
|
|
31465
|
+
};
|
|
31466
|
+
/** @experimental */
|
|
30999
31467
|
skills: {
|
|
31000
31468
|
/**
|
|
31001
31469
|
* Plans installation of a verified Agent Finder Skill candidate without writing files. The returned review is safe to present to a user and installing always leaves the Skill disabled until separately enabled.
|
|
@@ -31248,25 +31716,6 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
31248
31716
|
getDiscoveryPaths: (params: AgentsGetDiscoveryPathsRequest) => Promise<AgentDiscoveryPathList>;
|
|
31249
31717
|
};
|
|
31250
31718
|
/** @experimental */
|
|
31251
|
-
instructions: {
|
|
31252
|
-
/**
|
|
31253
|
-
* Discovers instruction sources across user, repository, and plugin sources.
|
|
31254
|
-
*
|
|
31255
|
-
* @param params Optional project paths to include in instruction discovery.
|
|
31256
|
-
*
|
|
31257
|
-
* @returns Instruction sources discovered across user, repository, and plugin sources.
|
|
31258
|
-
*/
|
|
31259
|
-
discover: (params: InstructionsDiscoverRequest) => Promise<ServerInstructionSourceList>;
|
|
31260
|
-
/**
|
|
31261
|
-
* Returns the canonical files and directories where a client may create custom instructions that the runtime will recognize, including ones that do not exist yet. Repository targets become active once created.
|
|
31262
|
-
*
|
|
31263
|
-
* @param params Optional project paths to include when enumerating instruction discovery targets.
|
|
31264
|
-
*
|
|
31265
|
-
* @returns Canonical files and directories where custom instructions can be created so the runtime will recognize them.
|
|
31266
|
-
*/
|
|
31267
|
-
getDiscoveryPaths: (params: InstructionsGetDiscoveryPathsRequest) => Promise<InstructionDiscoveryPathList>;
|
|
31268
|
-
};
|
|
31269
|
-
/** @experimental */
|
|
31270
31719
|
commands: {
|
|
31271
31720
|
/**
|
|
31272
31721
|
* Lists the well-known built-in slash commands that work as the first message in a new session (e.g. /plan, /env), without requiring an active session. Commands that depend on session state, authentication, or a synced session are omitted.
|
|
@@ -32033,6 +32482,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
32033
32482
|
* @returns Update the session's reasoning effort without changing the selected model. Use `switchTo` instead when you also need to change the model. The runtime stores the effort on the session and applies it to subsequent turns.
|
|
32034
32483
|
*/
|
|
32035
32484
|
setReasoningEffort: (params: ModelSetReasoningEffortRequest) => Promise<ModelSetReasoningEffortResult>;
|
|
32485
|
+
/**
|
|
32486
|
+
* Computes whether the session's current model shows reasoning summaries and how a host should present them: the default Ctrl+T visibility, reasoning headers, the hidden-summaries hint, and whether a persisted `showReasoning` setting is redundant. The runtime folds in the session's model catalog, selection and reasoning-summaries experiment assignment; the host supplies only its own persisted setting and current visibility. This method reads the session's resolved model catalog rather than resolving it, so call `session.model.list` first on a session that has not listed models or run a turn; until then the result is `ready: false`. A session that resolves models without a Copilot catalog, that is a BYOK registry or an alternate provider, never caches one and stays `ready: false`.
|
|
32487
|
+
*
|
|
32488
|
+
* @param params Host presentation state the reasoning-summaries policy depends on.
|
|
32489
|
+
*
|
|
32490
|
+
* @returns Reasoning-summaries presentation policy for the session's current model.
|
|
32491
|
+
*/
|
|
32492
|
+
getReasoningSummaries: (params: ModelGetReasoningSummariesRequest) => Promise<ModelGetReasoningSummariesResult>;
|
|
32036
32493
|
/**
|
|
32037
32494
|
* Lists models available to this session using its own auth and integration context. Connected hosts (CLI TUI, GitHub App) should call this through the session client so remote sessions return the remote CLI's available models rather than the caller's.
|
|
32038
32495
|
*
|