@github/copilot-sdk 1.0.17-preview.4 → 1.0.17-preview.5
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/dist/cjs/cliVersion.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(cliVersion_exports, {
|
|
|
22
22
|
COPILOT_CLI_VERSION: () => COPILOT_CLI_VERSION
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(cliVersion_exports);
|
|
25
|
-
const COPILOT_CLI_VERSION = "1.0.92-
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.92-5";
|
|
26
26
|
const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
@@ -1948,11 +1948,17 @@ function createSessionRpc(connection, sessionId) {
|
|
|
1948
1948
|
/** @experimental */
|
|
1949
1949
|
mcp: {
|
|
1950
1950
|
/**
|
|
1951
|
-
* Lists MCP servers
|
|
1951
|
+
* Lists materialized MCP servers and their connection status. Cache misses may start and wait for MCP servers.
|
|
1952
1952
|
*
|
|
1953
1953
|
* @returns MCP servers configured for the session, with their connection status and host-level state.
|
|
1954
1954
|
*/
|
|
1955
1955
|
list: async () => connection.sendRequest("session.mcp.list", { sessionId }),
|
|
1956
|
+
/**
|
|
1957
|
+
* 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.
|
|
1958
|
+
*
|
|
1959
|
+
* @returns Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
1960
|
+
*/
|
|
1961
|
+
listConfigured: async () => connection.sendRequest("session.mcp.listConfigured", { sessionId }),
|
|
1956
1962
|
/**
|
|
1957
1963
|
* 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.
|
|
1958
1964
|
*
|
package/dist/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.92-
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.92-5";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
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 | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
18
|
+
export type AuthInfo = HMACAuthInfo | EnvAuthInfo | TokenAuthInfo | TokenProviderAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | AccountAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
19
19
|
/**
|
|
20
20
|
* The provider kind stamped on a signed-in account.
|
|
21
21
|
*
|
|
@@ -383,6 +383,8 @@ 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"
|
|
386
388
|
/** Authentication delegated to the GitHub CLI. */
|
|
387
389
|
| "gh-cli"
|
|
388
390
|
/** Authentication from an API key credential. */
|
|
@@ -445,17 +447,19 @@ export type AuthLoginStep = {
|
|
|
445
447
|
kind: "error";
|
|
446
448
|
};
|
|
447
449
|
/**
|
|
448
|
-
*
|
|
450
|
+
* Disposition of a login attempt, including pending user decisions.
|
|
449
451
|
*
|
|
450
452
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
451
453
|
* via the `definition` "AuthLoginResultStatus".
|
|
452
454
|
*/
|
|
453
455
|
/** @experimental */
|
|
454
456
|
export type AuthLoginResultStatus =
|
|
455
|
-
/** The credential was persisted and the account is signed in. */
|
|
457
|
+
/** The credential was persisted and the selected account is signed in. */
|
|
456
458
|
"completed"
|
|
457
459
|
/** Persistence needs explicit consent to store the token in plaintext. */
|
|
458
460
|
| "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"
|
|
459
463
|
/** The user declined plaintext persistence. */
|
|
460
464
|
| "declined";
|
|
461
465
|
/**
|
|
@@ -4750,7 +4754,7 @@ export type SessionsClientMetadataEntry = {
|
|
|
4750
4754
|
* via the `definition` "SettableAuthInfo".
|
|
4751
4755
|
*/
|
|
4752
4756
|
/** @experimental */
|
|
4753
|
-
export type SettableAuthInfo = HMACAuthInfo | EnvAuthInfo | SettableTokenAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
4757
|
+
export type SettableAuthInfo = HMACAuthInfo | EnvAuthInfo | SettableTokenAuthInfo | CopilotApiTokenAuthInfo | UserAuthInfo | AccountAuthInfo | GhCliAuthInfo | ApiKeyAuthInfo;
|
|
4754
4758
|
/**
|
|
4755
4759
|
* Rust-owned settings predicates exposed across the SDK boundary. Raw feature-flag names are intentionally not part of the contract.
|
|
4756
4760
|
*
|
|
@@ -6405,6 +6409,27 @@ export interface UserAuthInfo {
|
|
|
6405
6409
|
login: string;
|
|
6406
6410
|
copilotUser?: CopilotUserResponse;
|
|
6407
6411
|
}
|
|
6412
|
+
/**
|
|
6413
|
+
* An interactive account whose model provider owns its credentials. It carries no GitHub credential.
|
|
6414
|
+
*
|
|
6415
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6416
|
+
* via the `definition` "AccountAuthInfo".
|
|
6417
|
+
*/
|
|
6418
|
+
/** @experimental */
|
|
6419
|
+
export interface AccountAuthInfo {
|
|
6420
|
+
/**
|
|
6421
|
+
* Provider-owned account authentication.
|
|
6422
|
+
*/
|
|
6423
|
+
type: "account";
|
|
6424
|
+
/**
|
|
6425
|
+
* Host coordinate owned by the account's model provider.
|
|
6426
|
+
*/
|
|
6427
|
+
host: string;
|
|
6428
|
+
/**
|
|
6429
|
+
* Login identifying the provider-owned account.
|
|
6430
|
+
*/
|
|
6431
|
+
login: string;
|
|
6432
|
+
}
|
|
6408
6433
|
/**
|
|
6409
6434
|
* Authentication-info input variant for GitHub CLI credentials, carrying host, login, and the `gh auth token` value.
|
|
6410
6435
|
*
|
|
@@ -7121,6 +7146,28 @@ export interface AuthIdentityMetadata {
|
|
|
7121
7146
|
*/
|
|
7122
7147
|
login: string;
|
|
7123
7148
|
}
|
|
7149
|
+
/**
|
|
7150
|
+
* A credential-free account choice after sign-in.
|
|
7151
|
+
*
|
|
7152
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7153
|
+
* via the `definition` "AuthLoginAccount".
|
|
7154
|
+
*/
|
|
7155
|
+
/** @experimental */
|
|
7156
|
+
export interface AuthLoginAccount {
|
|
7157
|
+
/**
|
|
7158
|
+
* Opaque identifier supplied to the next login step to select this account.
|
|
7159
|
+
*/
|
|
7160
|
+
selectionId: string;
|
|
7161
|
+
/**
|
|
7162
|
+
* Host coordinate owned by the selected account's provider.
|
|
7163
|
+
*/
|
|
7164
|
+
host: string;
|
|
7165
|
+
/**
|
|
7166
|
+
* Human-readable login for the account choice.
|
|
7167
|
+
*/
|
|
7168
|
+
login: string;
|
|
7169
|
+
kind: AccountKind;
|
|
7170
|
+
}
|
|
7124
7171
|
/**
|
|
7125
7172
|
* Advance an in-flight login flow, optionally fulfilling an input-required step.
|
|
7126
7173
|
*
|
|
@@ -7163,7 +7210,7 @@ export interface AuthLoginBegun {
|
|
|
7163
7210
|
step: AuthLoginStep;
|
|
7164
7211
|
}
|
|
7165
7212
|
/**
|
|
7166
|
-
*
|
|
7213
|
+
* Result of an interactive login flow. Pending consent or account selection is not terminal.
|
|
7167
7214
|
*
|
|
7168
7215
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7169
7216
|
* via the `definition` "AuthLoginResultDto".
|
|
@@ -7179,6 +7226,10 @@ export interface AuthLoginResultDto {
|
|
|
7179
7226
|
* Login that was signed in, when completed.
|
|
7180
7227
|
*/
|
|
7181
7228
|
login?: string;
|
|
7229
|
+
/**
|
|
7230
|
+
* Available accounts when sign-in is awaiting account selection, ordered with Microsoft 365 first.
|
|
7231
|
+
*/
|
|
7232
|
+
accounts?: AuthLoginAccount[];
|
|
7182
7233
|
}
|
|
7183
7234
|
/**
|
|
7184
7235
|
* Cancel an in-flight login flow.
|
|
@@ -14268,6 +14319,64 @@ export interface McpConfigUpdateRequest {
|
|
|
14268
14319
|
name: string;
|
|
14269
14320
|
config: McpSerializableServerConfig;
|
|
14270
14321
|
}
|
|
14322
|
+
/**
|
|
14323
|
+
* Effective MCP configuration entry. Configuration enablement is distinct from the optional live observation.
|
|
14324
|
+
*
|
|
14325
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14326
|
+
* via the `definition` "McpConfiguredServer".
|
|
14327
|
+
*/
|
|
14328
|
+
/** @experimental */
|
|
14329
|
+
export interface McpConfiguredServer {
|
|
14330
|
+
/**
|
|
14331
|
+
* Server name (config key)
|
|
14332
|
+
*/
|
|
14333
|
+
name: string;
|
|
14334
|
+
/**
|
|
14335
|
+
* Whether this configured server is enabled after session configuration and policy filtering.
|
|
14336
|
+
*/
|
|
14337
|
+
enabled: boolean;
|
|
14338
|
+
source?: McpServerSource;
|
|
14339
|
+
/**
|
|
14340
|
+
* Plugin name that provided this server, when source is plugin.
|
|
14341
|
+
*/
|
|
14342
|
+
sourcePlugin?: string;
|
|
14343
|
+
/**
|
|
14344
|
+
* Plugin version that provided this server, when source is plugin.
|
|
14345
|
+
*/
|
|
14346
|
+
sourcePluginVersion?: string;
|
|
14347
|
+
/**
|
|
14348
|
+
* Human-readable display name supplied by configuration.
|
|
14349
|
+
*/
|
|
14350
|
+
displayName?: string;
|
|
14351
|
+
live?: McpConfiguredServerState;
|
|
14352
|
+
}
|
|
14353
|
+
/**
|
|
14354
|
+
* Observational state for a matching already materialized MCP server.
|
|
14355
|
+
*
|
|
14356
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14357
|
+
* via the `definition` "McpConfiguredServerState".
|
|
14358
|
+
*/
|
|
14359
|
+
/** @experimental */
|
|
14360
|
+
export interface McpConfiguredServerState {
|
|
14361
|
+
status: McpServerStatus;
|
|
14362
|
+
/**
|
|
14363
|
+
* Observed connection error, when the materialized server failed.
|
|
14364
|
+
*/
|
|
14365
|
+
error?: string;
|
|
14366
|
+
}
|
|
14367
|
+
/**
|
|
14368
|
+
* Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
14369
|
+
*
|
|
14370
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14371
|
+
* via the `definition` "McpConfiguredServerList".
|
|
14372
|
+
*/
|
|
14373
|
+
/** @experimental */
|
|
14374
|
+
export interface McpConfiguredServerList {
|
|
14375
|
+
/**
|
|
14376
|
+
* Effective configured MCP servers.
|
|
14377
|
+
*/
|
|
14378
|
+
servers: McpConfiguredServer[];
|
|
14379
|
+
}
|
|
14271
14380
|
/**
|
|
14272
14381
|
* Result of configuring GitHub MCP.
|
|
14273
14382
|
*
|
|
@@ -31428,11 +31537,17 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
31428
31537
|
/** @experimental */
|
|
31429
31538
|
mcp: {
|
|
31430
31539
|
/**
|
|
31431
|
-
* Lists MCP servers
|
|
31540
|
+
* Lists materialized MCP servers and their connection status. Cache misses may start and wait for MCP servers.
|
|
31432
31541
|
*
|
|
31433
31542
|
* @returns MCP servers configured for the session, with their connection status and host-level state.
|
|
31434
31543
|
*/
|
|
31435
31544
|
list: () => Promise<McpServerList>;
|
|
31545
|
+
/**
|
|
31546
|
+
* 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.
|
|
31547
|
+
*
|
|
31548
|
+
* @returns Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
31549
|
+
*/
|
|
31550
|
+
listConfigured: () => Promise<McpConfiguredServerList>;
|
|
31436
31551
|
/**
|
|
31437
31552
|
* 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.
|
|
31438
31553
|
*
|
package/dist/generated/rpc.js
CHANGED
|
@@ -1920,11 +1920,17 @@ function createSessionRpc(connection, sessionId) {
|
|
|
1920
1920
|
/** @experimental */
|
|
1921
1921
|
mcp: {
|
|
1922
1922
|
/**
|
|
1923
|
-
* Lists MCP servers
|
|
1923
|
+
* Lists materialized MCP servers and their connection status. Cache misses may start and wait for MCP servers.
|
|
1924
1924
|
*
|
|
1925
1925
|
* @returns MCP servers configured for the session, with their connection status and host-level state.
|
|
1926
1926
|
*/
|
|
1927
1927
|
list: async () => connection.sendRequest("session.mcp.list", { sessionId }),
|
|
1928
|
+
/**
|
|
1929
|
+
* 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.
|
|
1930
|
+
*
|
|
1931
|
+
* @returns Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
1932
|
+
*/
|
|
1933
|
+
listConfigured: async () => connection.sendRequest("session.mcp.listConfigured", { sessionId }),
|
|
1928
1934
|
/**
|
|
1929
1935
|
* 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.
|
|
1930
1936
|
*
|
|
@@ -1378,7 +1378,7 @@ export type McpServerStatus =
|
|
|
1378
1378
|
| "pending"
|
|
1379
1379
|
/** The server is configured but disabled. */
|
|
1380
1380
|
| "disabled"
|
|
1381
|
-
/** The server
|
|
1381
|
+
/** The server is not running: it may not have started yet, may have been explicitly stopped, or may be quarantined by restrictive managed policy. It can be restarted on demand when policy permits. */
|
|
1382
1382
|
| "stopped"
|
|
1383
1383
|
/** The server is not configured for this session. */
|
|
1384
1384
|
| "not_configured";
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"url": "https://github.com/github/copilot-agent-runtime.git",
|
|
6
6
|
"directory": "src/sdk/nodejs"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.0.17-preview.
|
|
9
|
-
"copilotCliVersion": "1.0.92-
|
|
8
|
+
"version": "1.0.17-preview.5",
|
|
9
|
+
"copilotCliVersion": "1.0.92-5",
|
|
10
10
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
11
11
|
"main": "./dist/cjs/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -103,18 +103,18 @@
|
|
|
103
103
|
"README.md"
|
|
104
104
|
],
|
|
105
105
|
"copilotRuntime": {
|
|
106
|
-
"sourceSha": "
|
|
107
|
-
"version": "1.0.92-
|
|
106
|
+
"sourceSha": "6d9037e403e4fac0cc65be349f6ab0d9c9351564",
|
|
107
|
+
"version": "1.0.92-5",
|
|
108
108
|
"visibility": "public"
|
|
109
109
|
},
|
|
110
110
|
"optionalDependencies": {
|
|
111
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.17-preview.
|
|
112
|
-
"@github/copilot-sdk-darwin-x64": "1.0.17-preview.
|
|
113
|
-
"@github/copilot-sdk-linux-arm64": "1.0.17-preview.
|
|
114
|
-
"@github/copilot-sdk-linux-x64": "1.0.17-preview.
|
|
115
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.17-preview.
|
|
116
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.17-preview.
|
|
117
|
-
"@github/copilot-sdk-win32-arm64": "1.0.17-preview.
|
|
118
|
-
"@github/copilot-sdk-win32-x64": "1.0.17-preview.
|
|
111
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.17-preview.5",
|
|
112
|
+
"@github/copilot-sdk-darwin-x64": "1.0.17-preview.5",
|
|
113
|
+
"@github/copilot-sdk-linux-arm64": "1.0.17-preview.5",
|
|
114
|
+
"@github/copilot-sdk-linux-x64": "1.0.17-preview.5",
|
|
115
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.17-preview.5",
|
|
116
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.17-preview.5",
|
|
117
|
+
"@github/copilot-sdk-win32-arm64": "1.0.17-preview.5",
|
|
118
|
+
"@github/copilot-sdk-win32-x64": "1.0.17-preview.5"
|
|
119
119
|
}
|
|
120
120
|
}
|