@github/copilot-sdk 1.0.17-preview.9 → 1.0.17-unstable.37553872417.gc9f6176
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 +0 -41
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +2 -44
- package/dist/cjs/extension.js +0 -2
- package/dist/cjs/generated/rpc.js +10 -198
- package/dist/cjs/session.js +0 -67
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.d.ts +0 -1
- package/dist/client.js +2 -44
- package/dist/extension.d.ts +1 -1
- package/dist/extension.js +0 -2
- package/dist/generated/rpc.d.ts +197 -686
- package/dist/generated/rpc.js +10 -198
- package/dist/generated/session-events.d.ts +3 -19
- package/dist/index.d.ts +1 -1
- package/dist/session.d.ts +0 -7
- package/dist/session.js +0 -67
- package/dist/types.d.ts +0 -76
- package/package.json +12 -12
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
15
15
|
* via the `definition` "AuthInfo".
|
|
16
16
|
*/
|
|
17
17
|
/** @experimental */
|
|
18
|
-
export type AuthInfo = HMACAuthInfo | EnvAuthInfo | TokenAuthInfo | TokenProviderAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo |
|
|
18
|
+
export type AuthInfo = HMACAuthInfo | EnvAuthInfo | TokenAuthInfo | TokenProviderAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
19
19
|
/**
|
|
20
20
|
* The provider kind stamped on a signed-in account.
|
|
21
21
|
*
|
|
@@ -383,8 +383,6 @@ export type AuthInfoType =
|
|
|
383
383
|
| "env"
|
|
384
384
|
/** Authentication from an interactive user sign-in. */
|
|
385
385
|
| "user"
|
|
386
|
-
/** Authentication from a selected provider-owned account, without a GitHub credential. */
|
|
387
|
-
| "account"
|
|
388
386
|
/** Authentication delegated to the GitHub CLI. */
|
|
389
387
|
| "gh-cli"
|
|
390
388
|
/** Authentication from an API key credential. */
|
|
@@ -447,19 +445,17 @@ export type AuthLoginStep = {
|
|
|
447
445
|
kind: "error";
|
|
448
446
|
};
|
|
449
447
|
/**
|
|
450
|
-
*
|
|
448
|
+
* Terminal disposition of a login persistence attempt.
|
|
451
449
|
*
|
|
452
450
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
453
451
|
* via the `definition` "AuthLoginResultStatus".
|
|
454
452
|
*/
|
|
455
453
|
/** @experimental */
|
|
456
454
|
export type AuthLoginResultStatus =
|
|
457
|
-
/** The credential was persisted and the
|
|
455
|
+
/** The credential was persisted and the account is signed in. */
|
|
458
456
|
"completed"
|
|
459
457
|
/** Persistence needs explicit consent to store the token in plaintext. */
|
|
460
458
|
| "needs-plaintext-consent"
|
|
461
|
-
/** Credentials are saved; select an account using a returned selectionId as advance input to complete sign-in. */
|
|
462
|
-
| "needs-account-selection"
|
|
463
459
|
/** The user declined plaintext persistence. */
|
|
464
460
|
| "declined";
|
|
465
461
|
/**
|
|
@@ -471,7 +467,6 @@ export type AuthLoginResultStatus =
|
|
|
471
467
|
/** @experimental */
|
|
472
468
|
export type AuthReadValue = {
|
|
473
469
|
account?: AccountStatus;
|
|
474
|
-
authInfo?: AuthIdentity;
|
|
475
470
|
/**
|
|
476
471
|
* Account read-datum variant discriminator.
|
|
477
472
|
*/
|
|
@@ -1363,20 +1358,6 @@ export type ConnectorMcpStatus =
|
|
|
1363
1358
|
| "disabled"
|
|
1364
1359
|
/** The Connector currently has no live server configuration. */
|
|
1365
1360
|
| "not_configured";
|
|
1366
|
-
/**
|
|
1367
|
-
* Availability.
|
|
1368
|
-
*
|
|
1369
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1370
|
-
* via the `definition` "ConnectorDiscoveryAvailability".
|
|
1371
|
-
*/
|
|
1372
|
-
/** @experimental */
|
|
1373
|
-
export type ConnectorDiscoveryAvailability =
|
|
1374
|
-
/** Enabled. */
|
|
1375
|
-
"enabled"
|
|
1376
|
-
/** Disabled. */
|
|
1377
|
-
| "disabled"
|
|
1378
|
-
/** Unavailable. */
|
|
1379
|
-
| "unavailable";
|
|
1380
1361
|
/**
|
|
1381
1362
|
* Session account selection, or null.
|
|
1382
1363
|
*
|
|
@@ -1990,14 +1971,6 @@ export type GitHubTokenAcquireResult = {
|
|
|
1990
1971
|
*/
|
|
1991
1972
|
kind: "cancelled";
|
|
1992
1973
|
};
|
|
1993
|
-
/**
|
|
1994
|
-
* Source for direct repo installs (when marketplace is empty)
|
|
1995
|
-
*
|
|
1996
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1997
|
-
* via the `definition` "InstalledPluginSource".
|
|
1998
|
-
*/
|
|
1999
|
-
/** @experimental */
|
|
2000
|
-
export type InstalledPluginSource = string | InstalledPluginSourceGitHub | InstalledPluginSourceUrl | InstalledPluginSourceLocal;
|
|
2001
1974
|
/**
|
|
2002
1975
|
* Optional compaction parameters.
|
|
2003
1976
|
*
|
|
@@ -2465,6 +2438,14 @@ export type InstallationDecision =
|
|
|
2465
2438
|
| "decline"
|
|
2466
2439
|
/** The user cancelled the pending decision without granting consent. */
|
|
2467
2440
|
| "cancel";
|
|
2441
|
+
/**
|
|
2442
|
+
* Source for direct repo installs (when marketplace is empty)
|
|
2443
|
+
*
|
|
2444
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2445
|
+
* via the `definition` "InstalledPluginSource".
|
|
2446
|
+
*/
|
|
2447
|
+
/** @experimental */
|
|
2448
|
+
export type InstalledPluginSource = string | InstalledPluginSourceGitHub | InstalledPluginSourceUrl | InstalledPluginSourceLocal;
|
|
2468
2449
|
/**
|
|
2469
2450
|
* Which tier this target belongs to
|
|
2470
2451
|
*
|
|
@@ -3401,15 +3382,15 @@ export type SessionContextAttribution = {
|
|
|
3401
3382
|
*/
|
|
3402
3383
|
modelSource: string;
|
|
3403
3384
|
/**
|
|
3404
|
-
*
|
|
3385
|
+
* Maximum prompt tokens the resolved model accepts — the denominator for a `##k/###k` context-usage display. Mirrors `SessionContextInfo.promptTokenLimit`.
|
|
3405
3386
|
*/
|
|
3406
3387
|
promptTokenLimit: number;
|
|
3407
3388
|
/**
|
|
3408
|
-
*
|
|
3389
|
+
* Prompt limit plus the model's output reserve: the full context window `categories.freeSpace` and `categories.buffer` are measured against. Mirrors `SessionContextInfo.limit`.
|
|
3409
3390
|
*/
|
|
3410
3391
|
limit: number;
|
|
3411
3392
|
/**
|
|
3412
|
-
* Output
|
|
3393
|
+
* Output reserve plus the tokens past the buffer-exhaustion blocking threshold. Mirrors `SessionContextInfo.bufferTokens`.
|
|
3413
3394
|
*/
|
|
3414
3395
|
bufferTokens: number;
|
|
3415
3396
|
/**
|
|
@@ -3445,7 +3426,7 @@ export type SessionContextAttribution = {
|
|
|
3445
3426
|
*/
|
|
3446
3427
|
freeSpace: number;
|
|
3447
3428
|
/**
|
|
3448
|
-
*
|
|
3429
|
+
* Output reserve plus post-blocking-threshold buffer.
|
|
3449
3430
|
*/
|
|
3450
3431
|
buffer: number;
|
|
3451
3432
|
};
|
|
@@ -3523,7 +3504,7 @@ export type SessionContextInfo = {
|
|
|
3523
3504
|
*/
|
|
3524
3505
|
totalTokens: number;
|
|
3525
3506
|
/**
|
|
3526
|
-
*
|
|
3507
|
+
* Maximum prompt tokens allowed by the model (or DEFAULT_TOKEN_LIMIT if unspecified)
|
|
3527
3508
|
*/
|
|
3528
3509
|
promptTokenLimit: number;
|
|
3529
3510
|
/**
|
|
@@ -3531,11 +3512,11 @@ export type SessionContextInfo = {
|
|
|
3531
3512
|
*/
|
|
3532
3513
|
compactionThreshold: number;
|
|
3533
3514
|
/**
|
|
3534
|
-
*
|
|
3515
|
+
* Prompt token limit plus the model's full output token limit.
|
|
3535
3516
|
*/
|
|
3536
3517
|
limit: number;
|
|
3537
3518
|
/**
|
|
3538
|
-
* Output
|
|
3519
|
+
* Output reserve plus tokens after the buffer-exhaustion blocking threshold (default 95%)
|
|
3539
3520
|
*/
|
|
3540
3521
|
bufferTokens: number;
|
|
3541
3522
|
} | null;
|
|
@@ -4769,7 +4750,7 @@ export type SessionsClientMetadataEntry = {
|
|
|
4769
4750
|
* via the `definition` "SettableAuthInfo".
|
|
4770
4751
|
*/
|
|
4771
4752
|
/** @experimental */
|
|
4772
|
-
export type SettableAuthInfo = HMACAuthInfo | EnvAuthInfo | SettableTokenAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo |
|
|
4753
|
+
export type SettableAuthInfo = HMACAuthInfo | EnvAuthInfo | SettableTokenAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
4773
4754
|
/**
|
|
4774
4755
|
* Rust-owned settings predicates exposed across the SDK boundary. Raw feature-flag names are intentionally not part of the contract.
|
|
4775
4756
|
*
|
|
@@ -6424,27 +6405,6 @@ export interface UserAuthInfo {
|
|
|
6424
6405
|
login: string;
|
|
6425
6406
|
copilotUser?: CopilotUserResponse;
|
|
6426
6407
|
}
|
|
6427
|
-
/**
|
|
6428
|
-
* An interactive account whose model provider owns its credentials. It carries no GitHub credential.
|
|
6429
|
-
*
|
|
6430
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6431
|
-
* via the `definition` "AccountAuthInfo".
|
|
6432
|
-
*/
|
|
6433
|
-
/** @experimental */
|
|
6434
|
-
export interface AccountAuthInfo {
|
|
6435
|
-
/**
|
|
6436
|
-
* Provider-owned account authentication.
|
|
6437
|
-
*/
|
|
6438
|
-
type: "account";
|
|
6439
|
-
/**
|
|
6440
|
-
* Host coordinate owned by the account's model provider.
|
|
6441
|
-
*/
|
|
6442
|
-
host: string;
|
|
6443
|
-
/**
|
|
6444
|
-
* Login identifying the provider-owned account.
|
|
6445
|
-
*/
|
|
6446
|
-
login: string;
|
|
6447
|
-
}
|
|
6448
6408
|
/**
|
|
6449
6409
|
* Authentication-info input variant for GitHub CLI credentials, carrying host, login, and the `gh auth token` value.
|
|
6450
6410
|
*
|
|
@@ -7161,28 +7121,6 @@ export interface AuthIdentityMetadata {
|
|
|
7161
7121
|
*/
|
|
7162
7122
|
login: string;
|
|
7163
7123
|
}
|
|
7164
|
-
/**
|
|
7165
|
-
* A credential-free account choice after sign-in.
|
|
7166
|
-
*
|
|
7167
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7168
|
-
* via the `definition` "AuthLoginAccount".
|
|
7169
|
-
*/
|
|
7170
|
-
/** @experimental */
|
|
7171
|
-
export interface AuthLoginAccount {
|
|
7172
|
-
/**
|
|
7173
|
-
* Opaque identifier supplied to the next login step to select this account.
|
|
7174
|
-
*/
|
|
7175
|
-
selectionId: string;
|
|
7176
|
-
/**
|
|
7177
|
-
* Host coordinate owned by the selected account's provider.
|
|
7178
|
-
*/
|
|
7179
|
-
host: string;
|
|
7180
|
-
/**
|
|
7181
|
-
* Human-readable login for the account choice.
|
|
7182
|
-
*/
|
|
7183
|
-
login: string;
|
|
7184
|
-
kind: AccountKind;
|
|
7185
|
-
}
|
|
7186
7124
|
/**
|
|
7187
7125
|
* Advance an in-flight login flow, optionally fulfilling an input-required step.
|
|
7188
7126
|
*
|
|
@@ -7225,7 +7163,7 @@ export interface AuthLoginBegun {
|
|
|
7225
7163
|
step: AuthLoginStep;
|
|
7226
7164
|
}
|
|
7227
7165
|
/**
|
|
7228
|
-
*
|
|
7166
|
+
* Terminal result of an interactive login flow.
|
|
7229
7167
|
*
|
|
7230
7168
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7231
7169
|
* via the `definition` "AuthLoginResultDto".
|
|
@@ -7241,10 +7179,6 @@ export interface AuthLoginResultDto {
|
|
|
7241
7179
|
* Login that was signed in, when completed.
|
|
7242
7180
|
*/
|
|
7243
7181
|
login?: string;
|
|
7244
|
-
/**
|
|
7245
|
-
* Available accounts when sign-in is awaiting account selection, ordered with Microsoft 365 first.
|
|
7246
|
-
*/
|
|
7247
|
-
accounts?: AuthLoginAccount[];
|
|
7248
7182
|
}
|
|
7249
7183
|
/**
|
|
7250
7184
|
* Cancel an in-flight login flow.
|
|
@@ -9474,146 +9408,6 @@ export interface ConnectorDisconnectResult {
|
|
|
9474
9408
|
disconnected: boolean;
|
|
9475
9409
|
status: ConnectorStatus;
|
|
9476
9410
|
}
|
|
9477
|
-
/**
|
|
9478
|
-
* Eligible account.
|
|
9479
|
-
*
|
|
9480
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9481
|
-
* via the `definition` "ConnectorDiscoveryAccount".
|
|
9482
|
-
*/
|
|
9483
|
-
/** @experimental */
|
|
9484
|
-
export interface ConnectorDiscoveryAccount {
|
|
9485
|
-
/**
|
|
9486
|
-
* Opaque account ID.
|
|
9487
|
-
*/
|
|
9488
|
-
accountId: string;
|
|
9489
|
-
authInfo: ConnectorDiscoveryAuthInfo;
|
|
9490
|
-
}
|
|
9491
|
-
/**
|
|
9492
|
-
* Account metadata.
|
|
9493
|
-
*
|
|
9494
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9495
|
-
* via the `definition` "ConnectorDiscoveryAuthInfo".
|
|
9496
|
-
*/
|
|
9497
|
-
/** @experimental */
|
|
9498
|
-
export interface ConnectorDiscoveryAuthInfo {
|
|
9499
|
-
type: AuthInfoType;
|
|
9500
|
-
/**
|
|
9501
|
-
* Host.
|
|
9502
|
-
*/
|
|
9503
|
-
host: string;
|
|
9504
|
-
/**
|
|
9505
|
-
* Login.
|
|
9506
|
-
*/
|
|
9507
|
-
login: string;
|
|
9508
|
-
}
|
|
9509
|
-
/**
|
|
9510
|
-
* Eligible accounts.
|
|
9511
|
-
*
|
|
9512
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9513
|
-
* via the `definition` "ConnectorDiscoveryAccountList".
|
|
9514
|
-
*/
|
|
9515
|
-
/** @experimental */
|
|
9516
|
-
export interface ConnectorDiscoveryAccountList {
|
|
9517
|
-
availability: ConnectorDiscoveryAvailability;
|
|
9518
|
-
/**
|
|
9519
|
-
* Eligible accounts.
|
|
9520
|
-
*/
|
|
9521
|
-
accounts: ConnectorDiscoveryAccount[];
|
|
9522
|
-
}
|
|
9523
|
-
/**
|
|
9524
|
-
* Selected account.
|
|
9525
|
-
*
|
|
9526
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9527
|
-
* via the `definition` "ConnectorDiscoveryAccountRequest".
|
|
9528
|
-
*/
|
|
9529
|
-
/** @experimental */
|
|
9530
|
-
export interface ConnectorDiscoveryAccountRequest {
|
|
9531
|
-
/**
|
|
9532
|
-
* Opaque account ID.
|
|
9533
|
-
*/
|
|
9534
|
-
accountId: string;
|
|
9535
|
-
}
|
|
9536
|
-
/**
|
|
9537
|
-
* Feature availability.
|
|
9538
|
-
*
|
|
9539
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9540
|
-
* via the `definition` "ConnectorDiscoveryCapabilities".
|
|
9541
|
-
*/
|
|
9542
|
-
/** @experimental */
|
|
9543
|
-
export interface ConnectorDiscoveryCapabilities {
|
|
9544
|
-
/**
|
|
9545
|
-
* API version.
|
|
9546
|
-
*/
|
|
9547
|
-
apiVersion: number;
|
|
9548
|
-
availability: ConnectorDiscoveryAvailability;
|
|
9549
|
-
/**
|
|
9550
|
-
* Whether accounts are selected by opaque ID.
|
|
9551
|
-
*/
|
|
9552
|
-
opaqueAccountSelection: boolean;
|
|
9553
|
-
/**
|
|
9554
|
-
* Whether results are cached.
|
|
9555
|
-
*/
|
|
9556
|
-
conditionalCache: boolean;
|
|
9557
|
-
}
|
|
9558
|
-
/**
|
|
9559
|
-
* Entry.
|
|
9560
|
-
*
|
|
9561
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9562
|
-
* via the `definition` "ConnectorDiscoveryCatalogEntry".
|
|
9563
|
-
*/
|
|
9564
|
-
/** @experimental */
|
|
9565
|
-
export interface ConnectorDiscoveryCatalogEntry {
|
|
9566
|
-
/**
|
|
9567
|
-
* Name.
|
|
9568
|
-
*/
|
|
9569
|
-
name: string;
|
|
9570
|
-
/**
|
|
9571
|
-
* Display name.
|
|
9572
|
-
*/
|
|
9573
|
-
displayName: string;
|
|
9574
|
-
/**
|
|
9575
|
-
* Description.
|
|
9576
|
-
*/
|
|
9577
|
-
description?: string;
|
|
9578
|
-
/**
|
|
9579
|
-
* Logo.
|
|
9580
|
-
*/
|
|
9581
|
-
logo?: string;
|
|
9582
|
-
/**
|
|
9583
|
-
* Tier.
|
|
9584
|
-
*/
|
|
9585
|
-
tier?: string;
|
|
9586
|
-
/**
|
|
9587
|
-
* Release tag.
|
|
9588
|
-
*/
|
|
9589
|
-
releaseTag?: string;
|
|
9590
|
-
status: ConnectorCatalogStatus;
|
|
9591
|
-
}
|
|
9592
|
-
/**
|
|
9593
|
-
* Entries for the selected account.
|
|
9594
|
-
*
|
|
9595
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9596
|
-
* via the `definition` "ConnectorDiscoveryCatalogResult".
|
|
9597
|
-
*/
|
|
9598
|
-
/** @experimental */
|
|
9599
|
-
export interface ConnectorDiscoveryCatalogResult {
|
|
9600
|
-
/**
|
|
9601
|
-
* Opaque account ID.
|
|
9602
|
-
*/
|
|
9603
|
-
accountId: string;
|
|
9604
|
-
/**
|
|
9605
|
-
* Revision.
|
|
9606
|
-
*/
|
|
9607
|
-
revision: number;
|
|
9608
|
-
/**
|
|
9609
|
-
* Refresh time in Unix epoch milliseconds.
|
|
9610
|
-
*/
|
|
9611
|
-
refreshedAtMs: number;
|
|
9612
|
-
/**
|
|
9613
|
-
* Entries.
|
|
9614
|
-
*/
|
|
9615
|
-
connectors: ConnectorDiscoveryCatalogEntry[];
|
|
9616
|
-
}
|
|
9617
9411
|
/**
|
|
9618
9412
|
* Requests authoritative Connector-to-MCP reconciliation for the pinned account.
|
|
9619
9413
|
*
|
|
@@ -11276,27 +11070,6 @@ export interface FolderTrustCheckResult {
|
|
|
11276
11070
|
*/
|
|
11277
11071
|
trusted: boolean;
|
|
11278
11072
|
}
|
|
11279
|
-
/**
|
|
11280
|
-
* Owner, name, and host of a GitHub repository, as resolved from a git remote URL.
|
|
11281
|
-
*
|
|
11282
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11283
|
-
* via the `definition` "GitHubRepositoryIdentity".
|
|
11284
|
-
*/
|
|
11285
|
-
/** @experimental */
|
|
11286
|
-
export interface GitHubRepositoryIdentity {
|
|
11287
|
-
/**
|
|
11288
|
-
* Repository owner login (user or organization).
|
|
11289
|
-
*/
|
|
11290
|
-
owner: string;
|
|
11291
|
-
/**
|
|
11292
|
-
* Repository name, without the owner prefix or the `.git` suffix.
|
|
11293
|
-
*/
|
|
11294
|
-
name: string;
|
|
11295
|
-
/**
|
|
11296
|
-
* Host the remote points at, for example `github.com` or a GitHub Enterprise hostname.
|
|
11297
|
-
*/
|
|
11298
|
-
host: string;
|
|
11299
|
-
}
|
|
11300
11073
|
/**
|
|
11301
11074
|
* Client environment metadata describing the process that produced a telemetry event.
|
|
11302
11075
|
*
|
|
@@ -11446,123 +11219,6 @@ export interface GitHubTokenAcquireRequest {
|
|
|
11446
11219
|
sessionId?: string;
|
|
11447
11220
|
reason: GitHubTokenAcquireReason;
|
|
11448
11221
|
}
|
|
11449
|
-
/**
|
|
11450
|
-
* Installed plugin record from global state, with marketplace, version, install time, enabled state, cache path, and source.
|
|
11451
|
-
*
|
|
11452
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11453
|
-
* via the `definition` "InstalledPlugin".
|
|
11454
|
-
*/
|
|
11455
|
-
/** @experimental */
|
|
11456
|
-
export interface InstalledPlugin {
|
|
11457
|
-
/**
|
|
11458
|
-
* Plugin name
|
|
11459
|
-
*/
|
|
11460
|
-
name: string;
|
|
11461
|
-
/**
|
|
11462
|
-
* Marketplace the plugin came from (empty string for direct repo installs)
|
|
11463
|
-
*/
|
|
11464
|
-
marketplace: string;
|
|
11465
|
-
/**
|
|
11466
|
-
* Version installed (if available)
|
|
11467
|
-
*/
|
|
11468
|
-
version?: string;
|
|
11469
|
-
/**
|
|
11470
|
-
* Installation timestamp
|
|
11471
|
-
*/
|
|
11472
|
-
installed_at: string;
|
|
11473
|
-
/**
|
|
11474
|
-
* Whether the plugin is currently enabled
|
|
11475
|
-
*/
|
|
11476
|
-
enabled: boolean;
|
|
11477
|
-
/**
|
|
11478
|
-
* Path where the plugin is cached locally
|
|
11479
|
-
*/
|
|
11480
|
-
cache_path?: string;
|
|
11481
|
-
source?: InstalledPluginSource;
|
|
11482
|
-
/**
|
|
11483
|
-
* Per-plugin source fingerprint (a SHA-256 hash of the plugin's catalog source spec plus its resolved source subtree — NOT a Git commit SHA) captured at marketplace install/update time. Auto-update compares it against the freshly recomputed fingerprint to detect a content change that does not bump the version. Absent for pre-existing installs and for direct (non-marketplace) installs.
|
|
11484
|
-
*/
|
|
11485
|
-
source_sha?: string;
|
|
11486
|
-
/**
|
|
11487
|
-
* Absolute path of the marketplace directory a live plugin was resolved from. Present only on live, never-persisted records — those synthesized at session start for a directory/local marketplace, whose cache_path points at the real plugin directory on disk rather than a copy under the installed-plugins cache. Its presence is what marks a record as live, and no record carrying it is ever written to the persisted installedPlugins key.
|
|
11488
|
-
*/
|
|
11489
|
-
installed_from?: string;
|
|
11490
|
-
}
|
|
11491
|
-
/**
|
|
11492
|
-
* Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref or full commit SHA, and optional subpath.
|
|
11493
|
-
*
|
|
11494
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11495
|
-
* via the `definition` "InstalledPluginSourceGitHub".
|
|
11496
|
-
*/
|
|
11497
|
-
/** @experimental */
|
|
11498
|
-
export interface InstalledPluginSourceGitHub {
|
|
11499
|
-
/**
|
|
11500
|
-
* Constant value. Always "github".
|
|
11501
|
-
*/
|
|
11502
|
-
source: "github";
|
|
11503
|
-
/**
|
|
11504
|
-
* GitHub repository in `owner/repo` form.
|
|
11505
|
-
*/
|
|
11506
|
-
repo: string;
|
|
11507
|
-
/**
|
|
11508
|
-
* Optional Git ref to resolve.
|
|
11509
|
-
*/
|
|
11510
|
-
ref?: string;
|
|
11511
|
-
/**
|
|
11512
|
-
* Optional full 40-character hexadecimal commit SHA.
|
|
11513
|
-
*/
|
|
11514
|
-
sha?: string;
|
|
11515
|
-
/**
|
|
11516
|
-
* Optional repository-relative path to the plugin.
|
|
11517
|
-
*/
|
|
11518
|
-
path?: string;
|
|
11519
|
-
}
|
|
11520
|
-
/**
|
|
11521
|
-
* Source descriptor for a direct URL plugin install, with URL, optional ref or full commit SHA, and optional subpath.
|
|
11522
|
-
*
|
|
11523
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11524
|
-
* via the `definition` "InstalledPluginSourceUrl".
|
|
11525
|
-
*/
|
|
11526
|
-
/** @experimental */
|
|
11527
|
-
export interface InstalledPluginSourceUrl {
|
|
11528
|
-
/**
|
|
11529
|
-
* Constant value. Always "url".
|
|
11530
|
-
*/
|
|
11531
|
-
source: "url";
|
|
11532
|
-
/**
|
|
11533
|
-
* URL of the plugin source.
|
|
11534
|
-
*/
|
|
11535
|
-
url: string;
|
|
11536
|
-
/**
|
|
11537
|
-
* Optional Git ref to resolve.
|
|
11538
|
-
*/
|
|
11539
|
-
ref?: string;
|
|
11540
|
-
/**
|
|
11541
|
-
* Optional full 40-character hexadecimal commit SHA.
|
|
11542
|
-
*/
|
|
11543
|
-
sha?: string;
|
|
11544
|
-
/**
|
|
11545
|
-
* Optional source-relative path to the plugin.
|
|
11546
|
-
*/
|
|
11547
|
-
path?: string;
|
|
11548
|
-
}
|
|
11549
|
-
/**
|
|
11550
|
-
* Source descriptor for a direct local plugin install, with a local filesystem path.
|
|
11551
|
-
*
|
|
11552
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11553
|
-
* via the `definition` "InstalledPluginSourceLocal".
|
|
11554
|
-
*/
|
|
11555
|
-
/** @experimental */
|
|
11556
|
-
export interface InstalledPluginSourceLocal {
|
|
11557
|
-
/**
|
|
11558
|
-
* Constant value. Always "local".
|
|
11559
|
-
*/
|
|
11560
|
-
source: "local";
|
|
11561
|
-
/**
|
|
11562
|
-
* Local filesystem path to the plugin.
|
|
11563
|
-
*/
|
|
11564
|
-
path: string;
|
|
11565
|
-
}
|
|
11566
11222
|
/**
|
|
11567
11223
|
* Pending external tool call request ID, with the tool result or an error describing why it failed.
|
|
11568
11224
|
*
|
|
@@ -12797,69 +12453,186 @@ export interface SkillInstallationFileReview {
|
|
|
12797
12453
|
*/
|
|
12798
12454
|
sizeBytes: number;
|
|
12799
12455
|
/**
|
|
12800
|
-
* Declared media type for the file.
|
|
12456
|
+
* Declared media type for the file.
|
|
12457
|
+
*/
|
|
12458
|
+
mediaType: string;
|
|
12459
|
+
/**
|
|
12460
|
+
* Whether the file is installed with executable permissions.
|
|
12461
|
+
*/
|
|
12462
|
+
executable: boolean;
|
|
12463
|
+
/**
|
|
12464
|
+
* SHA-256 digest of the exact file bytes.
|
|
12465
|
+
*/
|
|
12466
|
+
digest: string;
|
|
12467
|
+
}
|
|
12468
|
+
/**
|
|
12469
|
+
* Durable verified Skill ownership summary.
|
|
12470
|
+
*
|
|
12471
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12472
|
+
* via the `definition` "SkillInstallationSummary".
|
|
12473
|
+
*/
|
|
12474
|
+
/** @experimental */
|
|
12475
|
+
export interface SkillInstallationSummary {
|
|
12476
|
+
/**
|
|
12477
|
+
* Exact durable installation receipt identity.
|
|
12478
|
+
*/
|
|
12479
|
+
installationId: string;
|
|
12480
|
+
/**
|
|
12481
|
+
* Operation that installed this Skill.
|
|
12482
|
+
*/
|
|
12483
|
+
operationId: string;
|
|
12484
|
+
/**
|
|
12485
|
+
* Skill invocation name.
|
|
12486
|
+
*/
|
|
12487
|
+
name: string;
|
|
12488
|
+
target: SkillInstallationLocation;
|
|
12489
|
+
/**
|
|
12490
|
+
* Persisted enablement requested for this installation.
|
|
12491
|
+
*/
|
|
12492
|
+
configuredEnabled: boolean;
|
|
12493
|
+
sessionState: SkillInstallationSessionState;
|
|
12494
|
+
source: SkillInstallationSource;
|
|
12495
|
+
catalogue: InstallationCatalogueIdentity;
|
|
12496
|
+
/**
|
|
12497
|
+
* ISO 8601 wall-clock installation time.
|
|
12498
|
+
*/
|
|
12499
|
+
installedAt: string;
|
|
12500
|
+
ownershipState: SkillInstallationOwnershipState;
|
|
12501
|
+
}
|
|
12502
|
+
/**
|
|
12503
|
+
* A response is meaningful only on the connection and request that issued its challenge.
|
|
12504
|
+
*
|
|
12505
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12506
|
+
* via the `definition` "InstallationConfirmationResponse".
|
|
12507
|
+
*/
|
|
12508
|
+
/** @experimental */
|
|
12509
|
+
export interface InstallationConfirmationResponse {
|
|
12510
|
+
/**
|
|
12511
|
+
* Exact challenge from the request.
|
|
12512
|
+
*/
|
|
12513
|
+
confirmationId: string;
|
|
12514
|
+
/**
|
|
12515
|
+
* Exact review commitment from the request.
|
|
12516
|
+
*/
|
|
12517
|
+
reviewFingerprint: string;
|
|
12518
|
+
decision: InstallationDecision;
|
|
12519
|
+
}
|
|
12520
|
+
/**
|
|
12521
|
+
* Installed plugin record from global state, with marketplace, version, install time, enabled state, cache path, and source.
|
|
12522
|
+
*
|
|
12523
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12524
|
+
* via the `definition` "InstalledPlugin".
|
|
12525
|
+
*/
|
|
12526
|
+
/** @experimental */
|
|
12527
|
+
export interface InstalledPlugin {
|
|
12528
|
+
/**
|
|
12529
|
+
* Plugin name
|
|
12530
|
+
*/
|
|
12531
|
+
name: string;
|
|
12532
|
+
/**
|
|
12533
|
+
* Marketplace the plugin came from (empty string for direct repo installs)
|
|
12534
|
+
*/
|
|
12535
|
+
marketplace: string;
|
|
12536
|
+
/**
|
|
12537
|
+
* Version installed (if available)
|
|
12538
|
+
*/
|
|
12539
|
+
version?: string;
|
|
12540
|
+
/**
|
|
12541
|
+
* Installation timestamp
|
|
12542
|
+
*/
|
|
12543
|
+
installed_at: string;
|
|
12544
|
+
/**
|
|
12545
|
+
* Whether the plugin is currently enabled
|
|
12546
|
+
*/
|
|
12547
|
+
enabled: boolean;
|
|
12548
|
+
/**
|
|
12549
|
+
* Path where the plugin is cached locally
|
|
12550
|
+
*/
|
|
12551
|
+
cache_path?: string;
|
|
12552
|
+
source?: InstalledPluginSource;
|
|
12553
|
+
/**
|
|
12554
|
+
* Per-plugin source fingerprint (a SHA-256 hash of the plugin's catalog source spec plus its resolved source subtree — NOT a Git commit SHA) captured at marketplace install/update time. Auto-update compares it against the freshly recomputed fingerprint to detect a content change that does not bump the version. Absent for pre-existing installs and for direct (non-marketplace) installs.
|
|
12555
|
+
*/
|
|
12556
|
+
source_sha?: string;
|
|
12557
|
+
/**
|
|
12558
|
+
* Absolute path of the marketplace directory a live plugin was resolved from. Present only on live, never-persisted records — those synthesized at session start for a directory/local marketplace, whose cache_path points at the real plugin directory on disk rather than a copy under the installed-plugins cache. Its presence is what marks a record as live, and no record carrying it is ever written to the persisted installedPlugins key.
|
|
12559
|
+
*/
|
|
12560
|
+
installed_from?: string;
|
|
12561
|
+
}
|
|
12562
|
+
/**
|
|
12563
|
+
* Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref or full commit SHA, and optional subpath.
|
|
12564
|
+
*
|
|
12565
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12566
|
+
* via the `definition` "InstalledPluginSourceGitHub".
|
|
12567
|
+
*/
|
|
12568
|
+
/** @experimental */
|
|
12569
|
+
export interface InstalledPluginSourceGitHub {
|
|
12570
|
+
/**
|
|
12571
|
+
* Constant value. Always "github".
|
|
12572
|
+
*/
|
|
12573
|
+
source: "github";
|
|
12574
|
+
/**
|
|
12575
|
+
* GitHub repository in `owner/repo` form.
|
|
12576
|
+
*/
|
|
12577
|
+
repo: string;
|
|
12578
|
+
/**
|
|
12579
|
+
* Optional Git ref to resolve.
|
|
12801
12580
|
*/
|
|
12802
|
-
|
|
12581
|
+
ref?: string;
|
|
12803
12582
|
/**
|
|
12804
|
-
*
|
|
12583
|
+
* Optional full 40-character hexadecimal commit SHA.
|
|
12805
12584
|
*/
|
|
12806
|
-
|
|
12585
|
+
sha?: string;
|
|
12807
12586
|
/**
|
|
12808
|
-
*
|
|
12587
|
+
* Optional repository-relative path to the plugin.
|
|
12809
12588
|
*/
|
|
12810
|
-
|
|
12589
|
+
path?: string;
|
|
12811
12590
|
}
|
|
12812
12591
|
/**
|
|
12813
|
-
*
|
|
12592
|
+
* Source descriptor for a direct URL plugin install, with URL, optional ref or full commit SHA, and optional subpath.
|
|
12814
12593
|
*
|
|
12815
12594
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12816
|
-
* via the `definition` "
|
|
12595
|
+
* via the `definition` "InstalledPluginSourceUrl".
|
|
12817
12596
|
*/
|
|
12818
12597
|
/** @experimental */
|
|
12819
|
-
export interface
|
|
12598
|
+
export interface InstalledPluginSourceUrl {
|
|
12820
12599
|
/**
|
|
12821
|
-
*
|
|
12600
|
+
* Constant value. Always "url".
|
|
12822
12601
|
*/
|
|
12823
|
-
|
|
12602
|
+
source: "url";
|
|
12824
12603
|
/**
|
|
12825
|
-
*
|
|
12604
|
+
* URL of the plugin source.
|
|
12826
12605
|
*/
|
|
12827
|
-
|
|
12606
|
+
url: string;
|
|
12828
12607
|
/**
|
|
12829
|
-
*
|
|
12608
|
+
* Optional Git ref to resolve.
|
|
12830
12609
|
*/
|
|
12831
|
-
|
|
12832
|
-
target: SkillInstallationLocation;
|
|
12610
|
+
ref?: string;
|
|
12833
12611
|
/**
|
|
12834
|
-
*
|
|
12612
|
+
* Optional full 40-character hexadecimal commit SHA.
|
|
12835
12613
|
*/
|
|
12836
|
-
|
|
12837
|
-
sessionState: SkillInstallationSessionState;
|
|
12838
|
-
source: SkillInstallationSource;
|
|
12839
|
-
catalogue: InstallationCatalogueIdentity;
|
|
12614
|
+
sha?: string;
|
|
12840
12615
|
/**
|
|
12841
|
-
*
|
|
12616
|
+
* Optional source-relative path to the plugin.
|
|
12842
12617
|
*/
|
|
12843
|
-
|
|
12844
|
-
ownershipState: SkillInstallationOwnershipState;
|
|
12618
|
+
path?: string;
|
|
12845
12619
|
}
|
|
12846
12620
|
/**
|
|
12847
|
-
*
|
|
12621
|
+
* Source descriptor for a direct local plugin install, with a local filesystem path.
|
|
12848
12622
|
*
|
|
12849
12623
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12850
|
-
* via the `definition` "
|
|
12624
|
+
* via the `definition` "InstalledPluginSourceLocal".
|
|
12851
12625
|
*/
|
|
12852
12626
|
/** @experimental */
|
|
12853
|
-
export interface
|
|
12627
|
+
export interface InstalledPluginSourceLocal {
|
|
12854
12628
|
/**
|
|
12855
|
-
*
|
|
12629
|
+
* Constant value. Always "local".
|
|
12856
12630
|
*/
|
|
12857
|
-
|
|
12631
|
+
source: "local";
|
|
12858
12632
|
/**
|
|
12859
|
-
*
|
|
12633
|
+
* Local filesystem path to the plugin.
|
|
12860
12634
|
*/
|
|
12861
|
-
|
|
12862
|
-
decision: InstallationDecision;
|
|
12635
|
+
path: string;
|
|
12863
12636
|
}
|
|
12864
12637
|
/**
|
|
12865
12638
|
* Information about an installed plugin tracked in global state.
|
|
@@ -14495,64 +14268,6 @@ export interface McpConfigUpdateRequest {
|
|
|
14495
14268
|
name: string;
|
|
14496
14269
|
config: McpSerializableServerConfig;
|
|
14497
14270
|
}
|
|
14498
|
-
/**
|
|
14499
|
-
* Effective MCP configuration entry. Configuration enablement is distinct from the optional live observation.
|
|
14500
|
-
*
|
|
14501
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14502
|
-
* via the `definition` "McpConfiguredServer".
|
|
14503
|
-
*/
|
|
14504
|
-
/** @experimental */
|
|
14505
|
-
export interface McpConfiguredServer {
|
|
14506
|
-
/**
|
|
14507
|
-
* Server name (config key)
|
|
14508
|
-
*/
|
|
14509
|
-
name: string;
|
|
14510
|
-
/**
|
|
14511
|
-
* Whether this configured server is enabled after session configuration and policy filtering.
|
|
14512
|
-
*/
|
|
14513
|
-
enabled: boolean;
|
|
14514
|
-
source?: McpServerSource;
|
|
14515
|
-
/**
|
|
14516
|
-
* Plugin name that provided this server, when source is plugin.
|
|
14517
|
-
*/
|
|
14518
|
-
sourcePlugin?: string;
|
|
14519
|
-
/**
|
|
14520
|
-
* Plugin version that provided this server, when source is plugin.
|
|
14521
|
-
*/
|
|
14522
|
-
sourcePluginVersion?: string;
|
|
14523
|
-
/**
|
|
14524
|
-
* Human-readable display name supplied by configuration.
|
|
14525
|
-
*/
|
|
14526
|
-
displayName?: string;
|
|
14527
|
-
live?: McpConfiguredServerState;
|
|
14528
|
-
}
|
|
14529
|
-
/**
|
|
14530
|
-
* Observational state for a matching already materialized MCP server.
|
|
14531
|
-
*
|
|
14532
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14533
|
-
* via the `definition` "McpConfiguredServerState".
|
|
14534
|
-
*/
|
|
14535
|
-
/** @experimental */
|
|
14536
|
-
export interface McpConfiguredServerState {
|
|
14537
|
-
status: McpServerStatus;
|
|
14538
|
-
/**
|
|
14539
|
-
* Observed connection error, when the materialized server failed.
|
|
14540
|
-
*/
|
|
14541
|
-
error?: string;
|
|
14542
|
-
}
|
|
14543
|
-
/**
|
|
14544
|
-
* Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
14545
|
-
*
|
|
14546
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14547
|
-
* via the `definition` "McpConfiguredServerList".
|
|
14548
|
-
*/
|
|
14549
|
-
/** @experimental */
|
|
14550
|
-
export interface McpConfiguredServerList {
|
|
14551
|
-
/**
|
|
14552
|
-
* Effective configured MCP servers.
|
|
14553
|
-
*/
|
|
14554
|
-
servers: McpConfiguredServer[];
|
|
14555
|
-
}
|
|
14556
14271
|
/**
|
|
14557
14272
|
* Result of configuring GitHub MCP.
|
|
14558
14273
|
*
|
|
@@ -16032,10 +15747,6 @@ export interface McpServer {
|
|
|
16032
15747
|
name: string;
|
|
16033
15748
|
status: McpServerStatus;
|
|
16034
15749
|
source?: McpServerSource;
|
|
16035
|
-
/**
|
|
16036
|
-
* Configured URL for an HTTP/SSE server, regardless of configuration source. Omitted for local and in-memory servers.
|
|
16037
|
-
*/
|
|
16038
|
-
url?: string;
|
|
16039
15750
|
/**
|
|
16040
15751
|
* Plugin name that provided this server, when source is plugin.
|
|
16041
15752
|
*/
|
|
@@ -16236,11 +15947,11 @@ export interface MetadataContextHeaviestMessagesResult {
|
|
|
16236
15947
|
/** @experimental */
|
|
16237
15948
|
export interface MetadataContextInfoRequest {
|
|
16238
15949
|
/**
|
|
16239
|
-
*
|
|
15950
|
+
* Maximum prompt tokens allowed by the target model. Pass 0 to use the runtime default.
|
|
16240
15951
|
*/
|
|
16241
15952
|
promptTokenLimit: number;
|
|
16242
15953
|
/**
|
|
16243
|
-
*
|
|
15954
|
+
* Maximum output tokens allowed by the target model. Pass 0 if unknown.
|
|
16244
15955
|
*/
|
|
16245
15956
|
outputTokenLimit: number;
|
|
16246
15957
|
/**
|
|
@@ -16479,10 +16190,6 @@ export interface Model {
|
|
|
16479
16190
|
metadata?: {
|
|
16480
16191
|
[k: string]: JsonValue | undefined;
|
|
16481
16192
|
};
|
|
16482
|
-
/**
|
|
16483
|
-
* Model vendor as the Copilot API reports it, for example "Anthropic" or "Azure OpenAI". Open vocabulary, passed through unchanged. It can name the vendor that serves the model instead of the one that built it, or a label that is not a vendor, such as "Experimental". Absent when the Copilot API reports no vendor.
|
|
16484
|
-
*/
|
|
16485
|
-
vendor?: string;
|
|
16486
16193
|
policy?: ModelPolicy;
|
|
16487
16194
|
billing?: ModelBilling;
|
|
16488
16195
|
/**
|
|
@@ -22338,23 +22045,6 @@ export interface SessionBulkDeleteResult {
|
|
|
22338
22045
|
[k: string]: number | undefined;
|
|
22339
22046
|
};
|
|
22340
22047
|
}
|
|
22341
|
-
/**
|
|
22342
|
-
* The IDE a host is connected to, as reported to the session.
|
|
22343
|
-
*
|
|
22344
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
22345
|
-
* via the `definition` "SessionConnectedIdeInfo".
|
|
22346
|
-
*/
|
|
22347
|
-
/** @experimental */
|
|
22348
|
-
export interface SessionConnectedIdeInfo {
|
|
22349
|
-
/**
|
|
22350
|
-
* Display name of the connected IDE, for example `VS Code`.
|
|
22351
|
-
*/
|
|
22352
|
-
ideName: string;
|
|
22353
|
-
/**
|
|
22354
|
-
* Absolute path of the workspace folder the IDE has open.
|
|
22355
|
-
*/
|
|
22356
|
-
workspaceFolder: string;
|
|
22357
|
-
}
|
|
22358
22048
|
/**
|
|
22359
22049
|
* The enriched metadata records, with summary and context fields backfilled where available. Sessions confirmed empty and unnamed are omitted.
|
|
22360
22050
|
*
|
|
@@ -23186,10 +22876,6 @@ export interface SessionManagedPermissions {
|
|
|
23186
22876
|
* Permission rules that allow matching operations unless another managed source, deny, or ask rule restricts them.
|
|
23187
22877
|
*/
|
|
23188
22878
|
allow?: string[];
|
|
23189
|
-
/**
|
|
23190
|
-
* Closed-world host boundary expressed as `Domain(hostname)`, `Domain(IP)`, or `Domain(*.example.com)` rules. Schemes, ports, paths, queries, and fragments are rejected because every network request must be enforceable at host-level egress. Multiple managed sources intersect their lists; an empty list denies all hosts.
|
|
23191
|
-
*/
|
|
23192
|
-
limitTo?: string[];
|
|
23193
22879
|
}
|
|
23194
22880
|
/**
|
|
23195
22881
|
* Managed settings an SDK host may inject at session startup. Only permissions are accepted in this initial contract.
|
|
@@ -23201,19 +22887,6 @@ export interface SessionManagedPermissions {
|
|
|
23201
22887
|
export interface SessionManagedSettings {
|
|
23202
22888
|
permissions?: SessionManagedPermissions;
|
|
23203
22889
|
}
|
|
23204
|
-
/**
|
|
23205
|
-
* Records which IDE the host is connected to, or clears it.
|
|
23206
|
-
*
|
|
23207
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
23208
|
-
* via the `definition` "SessionMcpSetConnectedIdeInfoParams".
|
|
23209
|
-
*/
|
|
23210
|
-
/** @experimental */
|
|
23211
|
-
export interface SessionMcpSetConnectedIdeInfoParams {
|
|
23212
|
-
/**
|
|
23213
|
-
* The connected IDE. Null or omitted clears the recorded IDE, which is how a host reports that it is disconnected.
|
|
23214
|
-
*/
|
|
23215
|
-
ide?: SessionConnectedIdeInfo | null;
|
|
23216
|
-
}
|
|
23217
22890
|
/**
|
|
23218
22891
|
* Point-in-time snapshot of slow-changing session identifier and state fields
|
|
23219
22892
|
*
|
|
@@ -24048,90 +23721,6 @@ export interface SessionsCloseRequest {
|
|
|
24048
23721
|
/** @experimental */
|
|
24049
23722
|
export interface SessionsCloseResult {
|
|
24050
23723
|
}
|
|
24051
|
-
/**
|
|
24052
|
-
* Identity, state location and starting context for a workspace record.
|
|
24053
|
-
*
|
|
24054
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24055
|
-
* via the `definition` "SessionsCreateWorkspaceRequest".
|
|
24056
|
-
*/
|
|
24057
|
-
/** @experimental */
|
|
24058
|
-
export interface SessionsCreateWorkspaceRequest {
|
|
24059
|
-
/**
|
|
24060
|
-
* Session ID the workspace record belongs to
|
|
24061
|
-
*/
|
|
24062
|
-
sessionId: string;
|
|
24063
|
-
/**
|
|
24064
|
-
* Directory the session's state is written under when no session filesystem provider is configured. Ignored when a provider is configured; the provider's session state path is used instead.
|
|
24065
|
-
*/
|
|
24066
|
-
sessionStatePath: string;
|
|
24067
|
-
/**
|
|
24068
|
-
* `windows` (any letter case) selects Windows path rules. Any other value selects POSIX path rules.
|
|
24069
|
-
*/
|
|
24070
|
-
convention: string;
|
|
24071
|
-
context?: SessionWorkingDirectoryContextWithClient;
|
|
24072
|
-
/**
|
|
24073
|
-
* User-supplied display name for the workspace
|
|
24074
|
-
*/
|
|
24075
|
-
name?: string;
|
|
24076
|
-
}
|
|
24077
|
-
/**
|
|
24078
|
-
* A working-directory context together with the client that produced it.
|
|
24079
|
-
*
|
|
24080
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24081
|
-
* via the `definition` "SessionWorkingDirectoryContextWithClient".
|
|
24082
|
-
*/
|
|
24083
|
-
/** @experimental */
|
|
24084
|
-
export interface SessionWorkingDirectoryContextWithClient {
|
|
24085
|
-
/**
|
|
24086
|
-
* Current working directory path
|
|
24087
|
-
*/
|
|
24088
|
-
cwd: string;
|
|
24089
|
-
/**
|
|
24090
|
-
* Root directory of the git repository
|
|
24091
|
-
*/
|
|
24092
|
-
gitRoot?: string;
|
|
24093
|
-
/**
|
|
24094
|
-
* Repository identifier derived from the git remote URL
|
|
24095
|
-
*/
|
|
24096
|
-
repository?: string;
|
|
24097
|
-
/**
|
|
24098
|
-
* Hosting platform type of the repository
|
|
24099
|
-
*/
|
|
24100
|
-
hostType?: string;
|
|
24101
|
-
/**
|
|
24102
|
-
* Current git branch name
|
|
24103
|
-
*/
|
|
24104
|
-
branch?: string;
|
|
24105
|
-
/**
|
|
24106
|
-
* Raw host string from the git remote URL
|
|
24107
|
-
*/
|
|
24108
|
-
repositoryHost?: string;
|
|
24109
|
-
/**
|
|
24110
|
-
* Head commit of the current git branch
|
|
24111
|
-
*/
|
|
24112
|
-
headCommit?: string;
|
|
24113
|
-
/**
|
|
24114
|
-
* Merge-base commit SHA
|
|
24115
|
-
*/
|
|
24116
|
-
baseCommit?: string;
|
|
24117
|
-
/**
|
|
24118
|
-
* Name of the client that created the session
|
|
24119
|
-
*/
|
|
24120
|
-
clientName?: string;
|
|
24121
|
-
}
|
|
24122
|
-
/**
|
|
24123
|
-
* The workspace record that was written.
|
|
24124
|
-
*
|
|
24125
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24126
|
-
* via the `definition` "SessionsCreateWorkspaceResult".
|
|
24127
|
-
*/
|
|
24128
|
-
/** @experimental */
|
|
24129
|
-
export interface SessionsCreateWorkspaceResult {
|
|
24130
|
-
/**
|
|
24131
|
-
* The created workspace record, as JSON
|
|
24132
|
-
*/
|
|
24133
|
-
workspaceJson: string;
|
|
24134
|
-
}
|
|
24135
23724
|
/**
|
|
24136
23725
|
* Session ID to delete from disk.
|
|
24137
23726
|
*
|
|
@@ -24759,36 +24348,6 @@ export interface SessionsLoadDeferredRepoHooksRequest {
|
|
|
24759
24348
|
*/
|
|
24760
24349
|
sessionId: string;
|
|
24761
24350
|
}
|
|
24762
|
-
/**
|
|
24763
|
-
* Where the session's state lives, as a root directory and the session ID under it.
|
|
24764
|
-
*
|
|
24765
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24766
|
-
* via the `definition` "SessionsLoadWorkspaceRequest".
|
|
24767
|
-
*/
|
|
24768
|
-
/** @experimental */
|
|
24769
|
-
export interface SessionsLoadWorkspaceRequest {
|
|
24770
|
-
/**
|
|
24771
|
-
* Root directory every session's state directory sits under
|
|
24772
|
-
*/
|
|
24773
|
-
sessionsHome: string;
|
|
24774
|
-
/**
|
|
24775
|
-
* Session ID naming the state directory under the sessions home. Rejected when it is absolute or contains a parent component, so it cannot escape the sessions home.
|
|
24776
|
-
*/
|
|
24777
|
-
sessionId: string;
|
|
24778
|
-
}
|
|
24779
|
-
/**
|
|
24780
|
-
* The workspace record on disk, omitted when the session has none.
|
|
24781
|
-
*
|
|
24782
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24783
|
-
* via the `definition` "SessionsLoadWorkspaceResult".
|
|
24784
|
-
*/
|
|
24785
|
-
/** @experimental */
|
|
24786
|
-
export interface SessionsLoadWorkspaceResult {
|
|
24787
|
-
/**
|
|
24788
|
-
* The workspace record, as JSON. Omitted when the record does not exist.
|
|
24789
|
-
*/
|
|
24790
|
-
workspaceJson?: string;
|
|
24791
|
-
}
|
|
24792
24351
|
/**
|
|
24793
24352
|
* Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
|
|
24794
24353
|
*
|
|
@@ -24983,36 +24542,6 @@ export interface SessionsTransferRemoteControlRequest {
|
|
|
24983
24542
|
*/
|
|
24984
24543
|
expectedFromSessionId?: string;
|
|
24985
24544
|
}
|
|
24986
|
-
/**
|
|
24987
|
-
* Where the session's state lives, plus workspace-schema fields to merge into its workspace record. Stored keys outside the schema are not preserved, and a stored `fork_count` is never replaced.
|
|
24988
|
-
*
|
|
24989
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24990
|
-
* via the `definition` "SessionsUpdateWorkspaceFieldsRequest".
|
|
24991
|
-
*/
|
|
24992
|
-
/** @experimental */
|
|
24993
|
-
export interface SessionsUpdateWorkspaceFieldsRequest {
|
|
24994
|
-
/**
|
|
24995
|
-
* Root directory every session's state directory sits under
|
|
24996
|
-
*/
|
|
24997
|
-
sessionsHome: string;
|
|
24998
|
-
/**
|
|
24999
|
-
* Session ID naming the state directory under the sessions home. Rejected when it is absolute or contains a parent component, so it cannot escape the sessions home.
|
|
25000
|
-
*/
|
|
25001
|
-
sessionId: string;
|
|
25002
|
-
/**
|
|
25003
|
-
* Workspace-schema fields to merge into the record, as a JSON object. Fields the object omits keep their stored values, except stored keys outside the schema are not preserved and a stored `fork_count` is never replaced.
|
|
25004
|
-
*/
|
|
25005
|
-
fieldsJson: string;
|
|
25006
|
-
}
|
|
25007
|
-
/**
|
|
25008
|
-
* The merge completed. The record carries the supplied workspace-schema fields, but a stored `fork_count` stays.
|
|
25009
|
-
*
|
|
25010
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
25011
|
-
* via the `definition` "SessionsUpdateWorkspaceFieldsResult".
|
|
25012
|
-
*/
|
|
25013
|
-
/** @experimental */
|
|
25014
|
-
export interface SessionsUpdateWorkspaceFieldsResult {
|
|
25015
|
-
}
|
|
25016
24545
|
/**
|
|
25017
24546
|
* Telemetry engagement ID for the session, when available.
|
|
25018
24547
|
*
|
|
@@ -25614,7 +25143,7 @@ export interface SkillPlanUninstallRequest {
|
|
|
25614
25143
|
policySessionId: string;
|
|
25615
25144
|
}
|
|
25616
25145
|
/**
|
|
25617
|
-
*
|
|
25146
|
+
* Catalog-only metadata for one SDK-provided skill. The complete SKILL.md is fetched separately and lazily.
|
|
25618
25147
|
*
|
|
25619
25148
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
25620
25149
|
* via the `definition` "SkillProviderDescriptor".
|
|
@@ -28010,7 +27539,7 @@ export interface UserSettingMetadata {
|
|
|
28010
27539
|
isDefault: boolean;
|
|
28011
27540
|
}
|
|
28012
27541
|
/**
|
|
28013
|
-
* Per-key metadata for every known user setting
|
|
27542
|
+
* Per-key metadata for every known user setting (settings.json overlaid with the legacy config.json, config.json wins), including settings left at their default. Excludes repository- and enterprise-managed overrides.
|
|
28014
27543
|
*
|
|
28015
27544
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28016
27545
|
* via the `definition` "UserSettingsGetResult".
|
|
@@ -28037,6 +27566,19 @@ export interface UserSettingsSetRequest {
|
|
|
28037
27566
|
*/
|
|
28038
27567
|
settings: JsonValue;
|
|
28039
27568
|
}
|
|
27569
|
+
/**
|
|
27570
|
+
* Outcome of writing user settings.
|
|
27571
|
+
*
|
|
27572
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
27573
|
+
* via the `definition` "UserSettingsSetResult".
|
|
27574
|
+
*/
|
|
27575
|
+
/** @experimental */
|
|
27576
|
+
export interface UserSettingsSetResult {
|
|
27577
|
+
/**
|
|
27578
|
+
* Top-level keys whose write landed in settings.json but is shadowed by a value still present in the legacy config.json (config.json wins on read). The write does not take effect until the legacy value is removed.
|
|
27579
|
+
*/
|
|
27580
|
+
shadowedKeys: string[];
|
|
27581
|
+
}
|
|
28040
27582
|
/**
|
|
28041
27583
|
* Current sharing status and shareable GitHub URL for a session.
|
|
28042
27584
|
*
|
|
@@ -30713,17 +30255,23 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
30713
30255
|
/** @experimental */
|
|
30714
30256
|
settings: {
|
|
30715
30257
|
/**
|
|
30716
|
-
*
|
|
30258
|
+
* Drops this runtime process's in-memory user settings cache so the next settings read observes disk.
|
|
30259
|
+
*/
|
|
30260
|
+
reload: () => Promise<void>;
|
|
30261
|
+
/**
|
|
30262
|
+
* Lists every known user setting (settings.json overlaid with the legacy config.json, config.json wins), each with its effective value, its default, and whether it is at the default — so settings the user has never set still appear with their default value. Does not include repository- or enterprise-managed overrides that the runtime layers on top at session time.
|
|
30717
30263
|
*
|
|
30718
|
-
* @returns Per-key metadata for every known user setting
|
|
30264
|
+
* @returns Per-key metadata for every known user setting (settings.json overlaid with the legacy config.json, config.json wins), including settings left at their default. Excludes repository- and enterprise-managed overrides.
|
|
30719
30265
|
*/
|
|
30720
30266
|
get: () => Promise<UserSettingsGetResult>;
|
|
30721
30267
|
/**
|
|
30722
|
-
* Writes one or more user settings to settings.json, replacing each provided top-level key. A key whose value is null is removed.
|
|
30268
|
+
* Writes one or more user settings to settings.json, replacing each provided top-level key. A key whose value is null is removed. Returns the keys whose new value is shadowed by a legacy config.json entry (config.json wins on read), which the runtime leaves in place — such writes do not take effect until the legacy value is removed.
|
|
30723
30269
|
*
|
|
30724
30270
|
* @param params 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.
|
|
30271
|
+
*
|
|
30272
|
+
* @returns Outcome of writing user settings.
|
|
30725
30273
|
*/
|
|
30726
|
-
set: (params: UserSettingsSetRequest) => Promise<
|
|
30274
|
+
set: (params: UserSettingsSetRequest) => Promise<UserSettingsSetResult>;
|
|
30727
30275
|
};
|
|
30728
30276
|
};
|
|
30729
30277
|
/** @experimental */
|
|
@@ -31022,37 +30570,6 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
31022
30570
|
*/
|
|
31023
30571
|
spawn: (params: AgentRegistrySpawnRequest) => Promise<AgentRegistrySpawnResult>;
|
|
31024
30572
|
};
|
|
31025
|
-
/** @experimental */
|
|
31026
|
-
connectors: {
|
|
31027
|
-
/**
|
|
31028
|
-
* Returns feature availability.
|
|
31029
|
-
*
|
|
31030
|
-
* @returns Feature availability.
|
|
31031
|
-
*/
|
|
31032
|
-
getCapabilities: () => Promise<ConnectorDiscoveryCapabilities>;
|
|
31033
|
-
/**
|
|
31034
|
-
* Returns eligible accounts.
|
|
31035
|
-
*
|
|
31036
|
-
* @returns Eligible accounts.
|
|
31037
|
-
*/
|
|
31038
|
-
getAccounts: () => Promise<ConnectorDiscoveryAccountList>;
|
|
31039
|
-
/**
|
|
31040
|
-
* Lists entries for the selected account.
|
|
31041
|
-
*
|
|
31042
|
-
* @param params Selected account.
|
|
31043
|
-
*
|
|
31044
|
-
* @returns Entries for the selected account.
|
|
31045
|
-
*/
|
|
31046
|
-
list: (params: ConnectorDiscoveryAccountRequest) => Promise<ConnectorDiscoveryCatalogResult>;
|
|
31047
|
-
/**
|
|
31048
|
-
* Refreshes entries for the selected account.
|
|
31049
|
-
*
|
|
31050
|
-
* @param params Selected account.
|
|
31051
|
-
*
|
|
31052
|
-
* @returns Entries for the selected account.
|
|
31053
|
-
*/
|
|
31054
|
-
refresh: (params: ConnectorDiscoveryAccountRequest) => Promise<ConnectorDiscoveryCatalogResult>;
|
|
31055
|
-
};
|
|
31056
30573
|
};
|
|
31057
30574
|
/** Create typed session-scoped RPC methods. */
|
|
31058
30575
|
export declare function createSessionRpc(connection: MessageConnection, sessionId: string): {
|
|
@@ -31911,17 +31428,11 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
31911
31428
|
/** @experimental */
|
|
31912
31429
|
mcp: {
|
|
31913
31430
|
/**
|
|
31914
|
-
* Lists
|
|
31431
|
+
* Lists MCP servers configured for the session, their connection status, and host-level state. The host-level state (disabled/filtered servers, failed/needs-auth/pending connections, mcp3p policy, full config) is empty/zero when no MCP host has been initialized for the session.
|
|
31915
31432
|
*
|
|
31916
31433
|
* @returns MCP servers configured for the session, with their connection status and host-level state.
|
|
31917
31434
|
*/
|
|
31918
31435
|
list: () => Promise<McpServerList>;
|
|
31919
|
-
/**
|
|
31920
|
-
* Lists effective MCP configuration without starting, restarting, authenticating, or waiting for servers. An optional live observation is from an already materialized matching server; this is not a readiness guarantee.
|
|
31921
|
-
*
|
|
31922
|
-
* @returns Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
31923
|
-
*/
|
|
31924
|
-
listConfigured: () => Promise<McpConfiguredServerList>;
|
|
31925
31436
|
/**
|
|
31926
31437
|
* Lists the tools exposed by a connected MCP server on this session's host. This performs a live `tools/list` request. Tool UI metadata is returned independently of whether MCP Apps rendering is enabled for the session.
|
|
31927
31438
|
*
|