@github/copilot-sdk 1.0.17-preview.7 → 1.0.17-unstable.37397886721.gad270aa
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 +1 -172
- 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 +7 -502
- package/dist/generated/rpc.js +1 -172
- package/dist/generated/session-events.d.ts +1 -15
- 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 -69
- 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
|
/**
|
|
@@ -1362,20 +1358,6 @@ export type ConnectorMcpStatus =
|
|
|
1362
1358
|
| "disabled"
|
|
1363
1359
|
/** The Connector currently has no live server configuration. */
|
|
1364
1360
|
| "not_configured";
|
|
1365
|
-
/**
|
|
1366
|
-
* Availability.
|
|
1367
|
-
*
|
|
1368
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1369
|
-
* via the `definition` "ConnectorDiscoveryAvailability".
|
|
1370
|
-
*/
|
|
1371
|
-
/** @experimental */
|
|
1372
|
-
export type ConnectorDiscoveryAvailability =
|
|
1373
|
-
/** Enabled. */
|
|
1374
|
-
"enabled"
|
|
1375
|
-
/** Disabled. */
|
|
1376
|
-
| "disabled"
|
|
1377
|
-
/** Unavailable. */
|
|
1378
|
-
| "unavailable";
|
|
1379
1361
|
/**
|
|
1380
1362
|
* Session account selection, or null.
|
|
1381
1363
|
*
|
|
@@ -4768,7 +4750,7 @@ export type SessionsClientMetadataEntry = {
|
|
|
4768
4750
|
* via the `definition` "SettableAuthInfo".
|
|
4769
4751
|
*/
|
|
4770
4752
|
/** @experimental */
|
|
4771
|
-
export type SettableAuthInfo = HMACAuthInfo | EnvAuthInfo | SettableTokenAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo |
|
|
4753
|
+
export type SettableAuthInfo = HMACAuthInfo | EnvAuthInfo | SettableTokenAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
4772
4754
|
/**
|
|
4773
4755
|
* Rust-owned settings predicates exposed across the SDK boundary. Raw feature-flag names are intentionally not part of the contract.
|
|
4774
4756
|
*
|
|
@@ -6423,27 +6405,6 @@ export interface UserAuthInfo {
|
|
|
6423
6405
|
login: string;
|
|
6424
6406
|
copilotUser?: CopilotUserResponse;
|
|
6425
6407
|
}
|
|
6426
|
-
/**
|
|
6427
|
-
* An interactive account whose model provider owns its credentials. It carries no GitHub credential.
|
|
6428
|
-
*
|
|
6429
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6430
|
-
* via the `definition` "AccountAuthInfo".
|
|
6431
|
-
*/
|
|
6432
|
-
/** @experimental */
|
|
6433
|
-
export interface AccountAuthInfo {
|
|
6434
|
-
/**
|
|
6435
|
-
* Provider-owned account authentication.
|
|
6436
|
-
*/
|
|
6437
|
-
type: "account";
|
|
6438
|
-
/**
|
|
6439
|
-
* Host coordinate owned by the account's model provider.
|
|
6440
|
-
*/
|
|
6441
|
-
host: string;
|
|
6442
|
-
/**
|
|
6443
|
-
* Login identifying the provider-owned account.
|
|
6444
|
-
*/
|
|
6445
|
-
login: string;
|
|
6446
|
-
}
|
|
6447
6408
|
/**
|
|
6448
6409
|
* Authentication-info input variant for GitHub CLI credentials, carrying host, login, and the `gh auth token` value.
|
|
6449
6410
|
*
|
|
@@ -7160,28 +7121,6 @@ export interface AuthIdentityMetadata {
|
|
|
7160
7121
|
*/
|
|
7161
7122
|
login: string;
|
|
7162
7123
|
}
|
|
7163
|
-
/**
|
|
7164
|
-
* A credential-free account choice after sign-in.
|
|
7165
|
-
*
|
|
7166
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7167
|
-
* via the `definition` "AuthLoginAccount".
|
|
7168
|
-
*/
|
|
7169
|
-
/** @experimental */
|
|
7170
|
-
export interface AuthLoginAccount {
|
|
7171
|
-
/**
|
|
7172
|
-
* Opaque identifier supplied to the next login step to select this account.
|
|
7173
|
-
*/
|
|
7174
|
-
selectionId: string;
|
|
7175
|
-
/**
|
|
7176
|
-
* Host coordinate owned by the selected account's provider.
|
|
7177
|
-
*/
|
|
7178
|
-
host: string;
|
|
7179
|
-
/**
|
|
7180
|
-
* Human-readable login for the account choice.
|
|
7181
|
-
*/
|
|
7182
|
-
login: string;
|
|
7183
|
-
kind: AccountKind;
|
|
7184
|
-
}
|
|
7185
7124
|
/**
|
|
7186
7125
|
* Advance an in-flight login flow, optionally fulfilling an input-required step.
|
|
7187
7126
|
*
|
|
@@ -7224,7 +7163,7 @@ export interface AuthLoginBegun {
|
|
|
7224
7163
|
step: AuthLoginStep;
|
|
7225
7164
|
}
|
|
7226
7165
|
/**
|
|
7227
|
-
*
|
|
7166
|
+
* Terminal result of an interactive login flow.
|
|
7228
7167
|
*
|
|
7229
7168
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7230
7169
|
* via the `definition` "AuthLoginResultDto".
|
|
@@ -7240,10 +7179,6 @@ export interface AuthLoginResultDto {
|
|
|
7240
7179
|
* Login that was signed in, when completed.
|
|
7241
7180
|
*/
|
|
7242
7181
|
login?: string;
|
|
7243
|
-
/**
|
|
7244
|
-
* Available accounts when sign-in is awaiting account selection, ordered with Microsoft 365 first.
|
|
7245
|
-
*/
|
|
7246
|
-
accounts?: AuthLoginAccount[];
|
|
7247
7182
|
}
|
|
7248
7183
|
/**
|
|
7249
7184
|
* Cancel an in-flight login flow.
|
|
@@ -9473,146 +9408,6 @@ export interface ConnectorDisconnectResult {
|
|
|
9473
9408
|
disconnected: boolean;
|
|
9474
9409
|
status: ConnectorStatus;
|
|
9475
9410
|
}
|
|
9476
|
-
/**
|
|
9477
|
-
* Eligible account.
|
|
9478
|
-
*
|
|
9479
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9480
|
-
* via the `definition` "ConnectorDiscoveryAccount".
|
|
9481
|
-
*/
|
|
9482
|
-
/** @experimental */
|
|
9483
|
-
export interface ConnectorDiscoveryAccount {
|
|
9484
|
-
/**
|
|
9485
|
-
* Opaque account ID.
|
|
9486
|
-
*/
|
|
9487
|
-
accountId: string;
|
|
9488
|
-
authInfo: ConnectorDiscoveryAuthInfo;
|
|
9489
|
-
}
|
|
9490
|
-
/**
|
|
9491
|
-
* Account metadata.
|
|
9492
|
-
*
|
|
9493
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9494
|
-
* via the `definition` "ConnectorDiscoveryAuthInfo".
|
|
9495
|
-
*/
|
|
9496
|
-
/** @experimental */
|
|
9497
|
-
export interface ConnectorDiscoveryAuthInfo {
|
|
9498
|
-
type: AuthInfoType;
|
|
9499
|
-
/**
|
|
9500
|
-
* Host.
|
|
9501
|
-
*/
|
|
9502
|
-
host: string;
|
|
9503
|
-
/**
|
|
9504
|
-
* Login.
|
|
9505
|
-
*/
|
|
9506
|
-
login: string;
|
|
9507
|
-
}
|
|
9508
|
-
/**
|
|
9509
|
-
* Eligible accounts.
|
|
9510
|
-
*
|
|
9511
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9512
|
-
* via the `definition` "ConnectorDiscoveryAccountList".
|
|
9513
|
-
*/
|
|
9514
|
-
/** @experimental */
|
|
9515
|
-
export interface ConnectorDiscoveryAccountList {
|
|
9516
|
-
availability: ConnectorDiscoveryAvailability;
|
|
9517
|
-
/**
|
|
9518
|
-
* Eligible accounts.
|
|
9519
|
-
*/
|
|
9520
|
-
accounts: ConnectorDiscoveryAccount[];
|
|
9521
|
-
}
|
|
9522
|
-
/**
|
|
9523
|
-
* Selected account.
|
|
9524
|
-
*
|
|
9525
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9526
|
-
* via the `definition` "ConnectorDiscoveryAccountRequest".
|
|
9527
|
-
*/
|
|
9528
|
-
/** @experimental */
|
|
9529
|
-
export interface ConnectorDiscoveryAccountRequest {
|
|
9530
|
-
/**
|
|
9531
|
-
* Opaque account ID.
|
|
9532
|
-
*/
|
|
9533
|
-
accountId: string;
|
|
9534
|
-
}
|
|
9535
|
-
/**
|
|
9536
|
-
* Feature availability.
|
|
9537
|
-
*
|
|
9538
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9539
|
-
* via the `definition` "ConnectorDiscoveryCapabilities".
|
|
9540
|
-
*/
|
|
9541
|
-
/** @experimental */
|
|
9542
|
-
export interface ConnectorDiscoveryCapabilities {
|
|
9543
|
-
/**
|
|
9544
|
-
* API version.
|
|
9545
|
-
*/
|
|
9546
|
-
apiVersion: number;
|
|
9547
|
-
availability: ConnectorDiscoveryAvailability;
|
|
9548
|
-
/**
|
|
9549
|
-
* Whether accounts are selected by opaque ID.
|
|
9550
|
-
*/
|
|
9551
|
-
opaqueAccountSelection: boolean;
|
|
9552
|
-
/**
|
|
9553
|
-
* Whether results are cached.
|
|
9554
|
-
*/
|
|
9555
|
-
conditionalCache: boolean;
|
|
9556
|
-
}
|
|
9557
|
-
/**
|
|
9558
|
-
* Entry.
|
|
9559
|
-
*
|
|
9560
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9561
|
-
* via the `definition` "ConnectorDiscoveryCatalogEntry".
|
|
9562
|
-
*/
|
|
9563
|
-
/** @experimental */
|
|
9564
|
-
export interface ConnectorDiscoveryCatalogEntry {
|
|
9565
|
-
/**
|
|
9566
|
-
* Name.
|
|
9567
|
-
*/
|
|
9568
|
-
name: string;
|
|
9569
|
-
/**
|
|
9570
|
-
* Display name.
|
|
9571
|
-
*/
|
|
9572
|
-
displayName: string;
|
|
9573
|
-
/**
|
|
9574
|
-
* Description.
|
|
9575
|
-
*/
|
|
9576
|
-
description?: string;
|
|
9577
|
-
/**
|
|
9578
|
-
* Logo.
|
|
9579
|
-
*/
|
|
9580
|
-
logo?: string;
|
|
9581
|
-
/**
|
|
9582
|
-
* Tier.
|
|
9583
|
-
*/
|
|
9584
|
-
tier?: string;
|
|
9585
|
-
/**
|
|
9586
|
-
* Release tag.
|
|
9587
|
-
*/
|
|
9588
|
-
releaseTag?: string;
|
|
9589
|
-
status: ConnectorCatalogStatus;
|
|
9590
|
-
}
|
|
9591
|
-
/**
|
|
9592
|
-
* Entries for the selected account.
|
|
9593
|
-
*
|
|
9594
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9595
|
-
* via the `definition` "ConnectorDiscoveryCatalogResult".
|
|
9596
|
-
*/
|
|
9597
|
-
/** @experimental */
|
|
9598
|
-
export interface ConnectorDiscoveryCatalogResult {
|
|
9599
|
-
/**
|
|
9600
|
-
* Opaque account ID.
|
|
9601
|
-
*/
|
|
9602
|
-
accountId: string;
|
|
9603
|
-
/**
|
|
9604
|
-
* Revision.
|
|
9605
|
-
*/
|
|
9606
|
-
revision: number;
|
|
9607
|
-
/**
|
|
9608
|
-
* Refresh time in Unix epoch milliseconds.
|
|
9609
|
-
*/
|
|
9610
|
-
refreshedAtMs: number;
|
|
9611
|
-
/**
|
|
9612
|
-
* Entries.
|
|
9613
|
-
*/
|
|
9614
|
-
connectors: ConnectorDiscoveryCatalogEntry[];
|
|
9615
|
-
}
|
|
9616
9411
|
/**
|
|
9617
9412
|
* Requests authoritative Connector-to-MCP reconciliation for the pinned account.
|
|
9618
9413
|
*
|
|
@@ -11275,27 +11070,6 @@ export interface FolderTrustCheckResult {
|
|
|
11275
11070
|
*/
|
|
11276
11071
|
trusted: boolean;
|
|
11277
11072
|
}
|
|
11278
|
-
/**
|
|
11279
|
-
* Owner, name, and host of a GitHub repository, as resolved from a git remote URL.
|
|
11280
|
-
*
|
|
11281
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11282
|
-
* via the `definition` "GitHubRepositoryIdentity".
|
|
11283
|
-
*/
|
|
11284
|
-
/** @experimental */
|
|
11285
|
-
export interface GitHubRepositoryIdentity {
|
|
11286
|
-
/**
|
|
11287
|
-
* Repository owner login (user or organization).
|
|
11288
|
-
*/
|
|
11289
|
-
owner: string;
|
|
11290
|
-
/**
|
|
11291
|
-
* Repository name, without the owner prefix or the `.git` suffix.
|
|
11292
|
-
*/
|
|
11293
|
-
name: string;
|
|
11294
|
-
/**
|
|
11295
|
-
* Host the remote points at, for example `github.com` or a GitHub Enterprise hostname.
|
|
11296
|
-
*/
|
|
11297
|
-
host: string;
|
|
11298
|
-
}
|
|
11299
11073
|
/**
|
|
11300
11074
|
* Client environment metadata describing the process that produced a telemetry event.
|
|
11301
11075
|
*
|
|
@@ -14494,64 +14268,6 @@ export interface McpConfigUpdateRequest {
|
|
|
14494
14268
|
name: string;
|
|
14495
14269
|
config: McpSerializableServerConfig;
|
|
14496
14270
|
}
|
|
14497
|
-
/**
|
|
14498
|
-
* Effective MCP configuration entry. Configuration enablement is distinct from the optional live observation.
|
|
14499
|
-
*
|
|
14500
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14501
|
-
* via the `definition` "McpConfiguredServer".
|
|
14502
|
-
*/
|
|
14503
|
-
/** @experimental */
|
|
14504
|
-
export interface McpConfiguredServer {
|
|
14505
|
-
/**
|
|
14506
|
-
* Server name (config key)
|
|
14507
|
-
*/
|
|
14508
|
-
name: string;
|
|
14509
|
-
/**
|
|
14510
|
-
* Whether this configured server is enabled after session configuration and policy filtering.
|
|
14511
|
-
*/
|
|
14512
|
-
enabled: boolean;
|
|
14513
|
-
source?: McpServerSource;
|
|
14514
|
-
/**
|
|
14515
|
-
* Plugin name that provided this server, when source is plugin.
|
|
14516
|
-
*/
|
|
14517
|
-
sourcePlugin?: string;
|
|
14518
|
-
/**
|
|
14519
|
-
* Plugin version that provided this server, when source is plugin.
|
|
14520
|
-
*/
|
|
14521
|
-
sourcePluginVersion?: string;
|
|
14522
|
-
/**
|
|
14523
|
-
* Human-readable display name supplied by configuration.
|
|
14524
|
-
*/
|
|
14525
|
-
displayName?: string;
|
|
14526
|
-
live?: McpConfiguredServerState;
|
|
14527
|
-
}
|
|
14528
|
-
/**
|
|
14529
|
-
* Observational state for a matching already materialized MCP server.
|
|
14530
|
-
*
|
|
14531
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14532
|
-
* via the `definition` "McpConfiguredServerState".
|
|
14533
|
-
*/
|
|
14534
|
-
/** @experimental */
|
|
14535
|
-
export interface McpConfiguredServerState {
|
|
14536
|
-
status: McpServerStatus;
|
|
14537
|
-
/**
|
|
14538
|
-
* Observed connection error, when the materialized server failed.
|
|
14539
|
-
*/
|
|
14540
|
-
error?: string;
|
|
14541
|
-
}
|
|
14542
|
-
/**
|
|
14543
|
-
* Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
14544
|
-
*
|
|
14545
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14546
|
-
* via the `definition` "McpConfiguredServerList".
|
|
14547
|
-
*/
|
|
14548
|
-
/** @experimental */
|
|
14549
|
-
export interface McpConfiguredServerList {
|
|
14550
|
-
/**
|
|
14551
|
-
* Effective configured MCP servers.
|
|
14552
|
-
*/
|
|
14553
|
-
servers: McpConfiguredServer[];
|
|
14554
|
-
}
|
|
14555
14271
|
/**
|
|
14556
14272
|
* Result of configuring GitHub MCP.
|
|
14557
14273
|
*
|
|
@@ -22329,23 +22045,6 @@ export interface SessionBulkDeleteResult {
|
|
|
22329
22045
|
[k: string]: number | undefined;
|
|
22330
22046
|
};
|
|
22331
22047
|
}
|
|
22332
|
-
/**
|
|
22333
|
-
* The IDE a host is connected to, as reported to the session.
|
|
22334
|
-
*
|
|
22335
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
22336
|
-
* via the `definition` "SessionConnectedIdeInfo".
|
|
22337
|
-
*/
|
|
22338
|
-
/** @experimental */
|
|
22339
|
-
export interface SessionConnectedIdeInfo {
|
|
22340
|
-
/**
|
|
22341
|
-
* Display name of the connected IDE, for example `VS Code`.
|
|
22342
|
-
*/
|
|
22343
|
-
ideName: string;
|
|
22344
|
-
/**
|
|
22345
|
-
* Absolute path of the workspace folder the IDE has open.
|
|
22346
|
-
*/
|
|
22347
|
-
workspaceFolder: string;
|
|
22348
|
-
}
|
|
22349
22048
|
/**
|
|
22350
22049
|
* The enriched metadata records, with summary and context fields backfilled where available. Sessions confirmed empty and unnamed are omitted.
|
|
22351
22050
|
*
|
|
@@ -23188,19 +22887,6 @@ export interface SessionManagedPermissions {
|
|
|
23188
22887
|
export interface SessionManagedSettings {
|
|
23189
22888
|
permissions?: SessionManagedPermissions;
|
|
23190
22889
|
}
|
|
23191
|
-
/**
|
|
23192
|
-
* Records which IDE the host is connected to, or clears it.
|
|
23193
|
-
*
|
|
23194
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
23195
|
-
* via the `definition` "SessionMcpSetConnectedIdeInfoParams".
|
|
23196
|
-
*/
|
|
23197
|
-
/** @experimental */
|
|
23198
|
-
export interface SessionMcpSetConnectedIdeInfoParams {
|
|
23199
|
-
/**
|
|
23200
|
-
* The connected IDE. Null or omitted clears the recorded IDE, which is how a host reports that it is disconnected.
|
|
23201
|
-
*/
|
|
23202
|
-
ide?: SessionConnectedIdeInfo | null;
|
|
23203
|
-
}
|
|
23204
22890
|
/**
|
|
23205
22891
|
* Point-in-time snapshot of slow-changing session identifier and state fields
|
|
23206
22892
|
*
|
|
@@ -24035,90 +23721,6 @@ export interface SessionsCloseRequest {
|
|
|
24035
23721
|
/** @experimental */
|
|
24036
23722
|
export interface SessionsCloseResult {
|
|
24037
23723
|
}
|
|
24038
|
-
/**
|
|
24039
|
-
* Identity, state location and starting context for a workspace record.
|
|
24040
|
-
*
|
|
24041
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24042
|
-
* via the `definition` "SessionsCreateWorkspaceRequest".
|
|
24043
|
-
*/
|
|
24044
|
-
/** @experimental */
|
|
24045
|
-
export interface SessionsCreateWorkspaceRequest {
|
|
24046
|
-
/**
|
|
24047
|
-
* Session ID the workspace record belongs to
|
|
24048
|
-
*/
|
|
24049
|
-
sessionId: string;
|
|
24050
|
-
/**
|
|
24051
|
-
* 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.
|
|
24052
|
-
*/
|
|
24053
|
-
sessionStatePath: string;
|
|
24054
|
-
/**
|
|
24055
|
-
* `windows` (any letter case) selects Windows path rules. Any other value selects POSIX path rules.
|
|
24056
|
-
*/
|
|
24057
|
-
convention: string;
|
|
24058
|
-
context?: SessionWorkingDirectoryContextWithClient;
|
|
24059
|
-
/**
|
|
24060
|
-
* User-supplied display name for the workspace
|
|
24061
|
-
*/
|
|
24062
|
-
name?: string;
|
|
24063
|
-
}
|
|
24064
|
-
/**
|
|
24065
|
-
* A working-directory context together with the client that produced it.
|
|
24066
|
-
*
|
|
24067
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24068
|
-
* via the `definition` "SessionWorkingDirectoryContextWithClient".
|
|
24069
|
-
*/
|
|
24070
|
-
/** @experimental */
|
|
24071
|
-
export interface SessionWorkingDirectoryContextWithClient {
|
|
24072
|
-
/**
|
|
24073
|
-
* Current working directory path
|
|
24074
|
-
*/
|
|
24075
|
-
cwd: string;
|
|
24076
|
-
/**
|
|
24077
|
-
* Root directory of the git repository
|
|
24078
|
-
*/
|
|
24079
|
-
gitRoot?: string;
|
|
24080
|
-
/**
|
|
24081
|
-
* Repository identifier derived from the git remote URL
|
|
24082
|
-
*/
|
|
24083
|
-
repository?: string;
|
|
24084
|
-
/**
|
|
24085
|
-
* Hosting platform type of the repository
|
|
24086
|
-
*/
|
|
24087
|
-
hostType?: string;
|
|
24088
|
-
/**
|
|
24089
|
-
* Current git branch name
|
|
24090
|
-
*/
|
|
24091
|
-
branch?: string;
|
|
24092
|
-
/**
|
|
24093
|
-
* Raw host string from the git remote URL
|
|
24094
|
-
*/
|
|
24095
|
-
repositoryHost?: string;
|
|
24096
|
-
/**
|
|
24097
|
-
* Head commit of the current git branch
|
|
24098
|
-
*/
|
|
24099
|
-
headCommit?: string;
|
|
24100
|
-
/**
|
|
24101
|
-
* Merge-base commit SHA
|
|
24102
|
-
*/
|
|
24103
|
-
baseCommit?: string;
|
|
24104
|
-
/**
|
|
24105
|
-
* Name of the client that created the session
|
|
24106
|
-
*/
|
|
24107
|
-
clientName?: string;
|
|
24108
|
-
}
|
|
24109
|
-
/**
|
|
24110
|
-
* The workspace record that was written.
|
|
24111
|
-
*
|
|
24112
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24113
|
-
* via the `definition` "SessionsCreateWorkspaceResult".
|
|
24114
|
-
*/
|
|
24115
|
-
/** @experimental */
|
|
24116
|
-
export interface SessionsCreateWorkspaceResult {
|
|
24117
|
-
/**
|
|
24118
|
-
* The created workspace record, as JSON
|
|
24119
|
-
*/
|
|
24120
|
-
workspaceJson: string;
|
|
24121
|
-
}
|
|
24122
23724
|
/**
|
|
24123
23725
|
* Session ID to delete from disk.
|
|
24124
23726
|
*
|
|
@@ -24746,36 +24348,6 @@ export interface SessionsLoadDeferredRepoHooksRequest {
|
|
|
24746
24348
|
*/
|
|
24747
24349
|
sessionId: string;
|
|
24748
24350
|
}
|
|
24749
|
-
/**
|
|
24750
|
-
* Where the session's state lives, as a root directory and the session ID under it.
|
|
24751
|
-
*
|
|
24752
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24753
|
-
* via the `definition` "SessionsLoadWorkspaceRequest".
|
|
24754
|
-
*/
|
|
24755
|
-
/** @experimental */
|
|
24756
|
-
export interface SessionsLoadWorkspaceRequest {
|
|
24757
|
-
/**
|
|
24758
|
-
* Root directory every session's state directory sits under
|
|
24759
|
-
*/
|
|
24760
|
-
sessionsHome: string;
|
|
24761
|
-
/**
|
|
24762
|
-
* 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.
|
|
24763
|
-
*/
|
|
24764
|
-
sessionId: string;
|
|
24765
|
-
}
|
|
24766
|
-
/**
|
|
24767
|
-
* The workspace record on disk, omitted when the session has none.
|
|
24768
|
-
*
|
|
24769
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24770
|
-
* via the `definition` "SessionsLoadWorkspaceResult".
|
|
24771
|
-
*/
|
|
24772
|
-
/** @experimental */
|
|
24773
|
-
export interface SessionsLoadWorkspaceResult {
|
|
24774
|
-
/**
|
|
24775
|
-
* The workspace record, as JSON. Omitted when the record does not exist.
|
|
24776
|
-
*/
|
|
24777
|
-
workspaceJson?: string;
|
|
24778
|
-
}
|
|
24779
24351
|
/**
|
|
24780
24352
|
* Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
|
|
24781
24353
|
*
|
|
@@ -24970,36 +24542,6 @@ export interface SessionsTransferRemoteControlRequest {
|
|
|
24970
24542
|
*/
|
|
24971
24543
|
expectedFromSessionId?: string;
|
|
24972
24544
|
}
|
|
24973
|
-
/**
|
|
24974
|
-
* 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.
|
|
24975
|
-
*
|
|
24976
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24977
|
-
* via the `definition` "SessionsUpdateWorkspaceFieldsRequest".
|
|
24978
|
-
*/
|
|
24979
|
-
/** @experimental */
|
|
24980
|
-
export interface SessionsUpdateWorkspaceFieldsRequest {
|
|
24981
|
-
/**
|
|
24982
|
-
* Root directory every session's state directory sits under
|
|
24983
|
-
*/
|
|
24984
|
-
sessionsHome: string;
|
|
24985
|
-
/**
|
|
24986
|
-
* 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.
|
|
24987
|
-
*/
|
|
24988
|
-
sessionId: string;
|
|
24989
|
-
/**
|
|
24990
|
-
* 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.
|
|
24991
|
-
*/
|
|
24992
|
-
fieldsJson: string;
|
|
24993
|
-
}
|
|
24994
|
-
/**
|
|
24995
|
-
* The merge completed. The record carries the supplied workspace-schema fields, but a stored `fork_count` stays.
|
|
24996
|
-
*
|
|
24997
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24998
|
-
* via the `definition` "SessionsUpdateWorkspaceFieldsResult".
|
|
24999
|
-
*/
|
|
25000
|
-
/** @experimental */
|
|
25001
|
-
export interface SessionsUpdateWorkspaceFieldsResult {
|
|
25002
|
-
}
|
|
25003
24545
|
/**
|
|
25004
24546
|
* Telemetry engagement ID for the session, when available.
|
|
25005
24547
|
*
|
|
@@ -25601,7 +25143,7 @@ export interface SkillPlanUninstallRequest {
|
|
|
25601
25143
|
policySessionId: string;
|
|
25602
25144
|
}
|
|
25603
25145
|
/**
|
|
25604
|
-
*
|
|
25146
|
+
* Catalog-only metadata for one SDK-provided skill. The complete SKILL.md is fetched separately and lazily.
|
|
25605
25147
|
*
|
|
25606
25148
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
25607
25149
|
* via the `definition` "SkillProviderDescriptor".
|
|
@@ -31028,37 +30570,6 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
31028
30570
|
*/
|
|
31029
30571
|
spawn: (params: AgentRegistrySpawnRequest) => Promise<AgentRegistrySpawnResult>;
|
|
31030
30572
|
};
|
|
31031
|
-
/** @experimental */
|
|
31032
|
-
connectors: {
|
|
31033
|
-
/**
|
|
31034
|
-
* Returns feature availability.
|
|
31035
|
-
*
|
|
31036
|
-
* @returns Feature availability.
|
|
31037
|
-
*/
|
|
31038
|
-
getCapabilities: () => Promise<ConnectorDiscoveryCapabilities>;
|
|
31039
|
-
/**
|
|
31040
|
-
* Returns eligible accounts.
|
|
31041
|
-
*
|
|
31042
|
-
* @returns Eligible accounts.
|
|
31043
|
-
*/
|
|
31044
|
-
getAccounts: () => Promise<ConnectorDiscoveryAccountList>;
|
|
31045
|
-
/**
|
|
31046
|
-
* Lists entries for the selected account.
|
|
31047
|
-
*
|
|
31048
|
-
* @param params Selected account.
|
|
31049
|
-
*
|
|
31050
|
-
* @returns Entries for the selected account.
|
|
31051
|
-
*/
|
|
31052
|
-
list: (params: ConnectorDiscoveryAccountRequest) => Promise<ConnectorDiscoveryCatalogResult>;
|
|
31053
|
-
/**
|
|
31054
|
-
* Refreshes entries for the selected account.
|
|
31055
|
-
*
|
|
31056
|
-
* @param params Selected account.
|
|
31057
|
-
*
|
|
31058
|
-
* @returns Entries for the selected account.
|
|
31059
|
-
*/
|
|
31060
|
-
refresh: (params: ConnectorDiscoveryAccountRequest) => Promise<ConnectorDiscoveryCatalogResult>;
|
|
31061
|
-
};
|
|
31062
30573
|
};
|
|
31063
30574
|
/** Create typed session-scoped RPC methods. */
|
|
31064
30575
|
export declare function createSessionRpc(connection: MessageConnection, sessionId: string): {
|
|
@@ -31917,17 +31428,11 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
31917
31428
|
/** @experimental */
|
|
31918
31429
|
mcp: {
|
|
31919
31430
|
/**
|
|
31920
|
-
* 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.
|
|
31921
31432
|
*
|
|
31922
31433
|
* @returns MCP servers configured for the session, with their connection status and host-level state.
|
|
31923
31434
|
*/
|
|
31924
31435
|
list: () => Promise<McpServerList>;
|
|
31925
|
-
/**
|
|
31926
|
-
* 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.
|
|
31927
|
-
*
|
|
31928
|
-
* @returns Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
31929
|
-
*/
|
|
31930
|
-
listConfigured: () => Promise<McpConfiguredServerList>;
|
|
31931
31436
|
/**
|
|
31932
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.
|
|
31933
31438
|
*
|