@github/copilot-sdk 1.0.12-preview.0 → 1.0.13-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/client.js +0 -6
- package/dist/cjs/generated/rpc.js +2 -2
- package/dist/client.js +0 -6
- package/dist/generated/rpc.d.ts +9 -5
- package/dist/generated/rpc.js +2 -2
- package/package.json +2 -2
package/dist/cjs/client.js
CHANGED
|
@@ -1412,12 +1412,6 @@ class CopilotClient {
|
|
|
1412
1412
|
session["_workspacePath"] = workspacePath;
|
|
1413
1413
|
session.setCapabilities(capabilities);
|
|
1414
1414
|
session.setOpenCanvases(openCanvases ?? []);
|
|
1415
|
-
if (config.mcpServers) {
|
|
1416
|
-
await this.connection.sendRequest("session.mcp.reloadWithConfig", {
|
|
1417
|
-
sessionId,
|
|
1418
|
-
config: { mcpServers: toWireMcpServers(config.mcpServers) }
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
1415
|
if (config.onMcpAuthRequest) {
|
|
1422
1416
|
await this.connection.sendRequest("session.eventLog.registerInterest", {
|
|
1423
1417
|
sessionId,
|
|
@@ -89,9 +89,9 @@ function createServerRpc(connection) {
|
|
|
89
89
|
*/
|
|
90
90
|
getAllUsers: async () => connection.sendRequest("account.getAllUsers", {}),
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Validates and stores authentication credentials. When login is omitted, resolves the authenticated user from the token before persistence.
|
|
93
93
|
*
|
|
94
|
-
* @param params Credentials to store
|
|
94
|
+
* @param params Credentials to validate and store. Omit login to resolve the authenticated user from the token.
|
|
95
95
|
*
|
|
96
96
|
* @returns Result of a successful login; throws on failure
|
|
97
97
|
*/
|
package/dist/client.js
CHANGED
|
@@ -1389,12 +1389,6 @@ class CopilotClient {
|
|
|
1389
1389
|
session["_workspacePath"] = workspacePath;
|
|
1390
1390
|
session.setCapabilities(capabilities);
|
|
1391
1391
|
session.setOpenCanvases(openCanvases ?? []);
|
|
1392
|
-
if (config.mcpServers) {
|
|
1393
|
-
await this.connection.sendRequest("session.mcp.reloadWithConfig", {
|
|
1394
|
-
sessionId,
|
|
1395
|
-
config: { mcpServers: toWireMcpServers(config.mcpServers) }
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
1392
|
if (config.onMcpAuthRequest) {
|
|
1399
1393
|
await this.connection.sendRequest("session.eventLog.registerInterest", {
|
|
1400
1394
|
sessionId,
|
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -2367,6 +2367,8 @@ export type PermissionModeSource =
|
|
|
2367
2367
|
| "slash_command"
|
|
2368
2368
|
/** The mode was set by confirming autopilot behavior. */
|
|
2369
2369
|
| "autopilot_confirmation"
|
|
2370
|
+
/** The mode was set at startup by the `defaultPermissionMode` user setting. */
|
|
2371
|
+
| "user_setting"
|
|
2370
2372
|
/** The mode was set through an RPC caller. */
|
|
2371
2373
|
| "rpc";
|
|
2372
2374
|
/**
|
|
@@ -2407,6 +2409,8 @@ export type PermissionsSetApproveAllSource =
|
|
|
2407
2409
|
| "slash_command"
|
|
2408
2410
|
/** Allow-all was enabled by confirming autopilot behavior. */
|
|
2409
2411
|
| "autopilot_confirmation"
|
|
2412
|
+
/** Allow-all was enabled at startup by the `defaultPermissionMode` user setting. */
|
|
2413
|
+
| "user_setting"
|
|
2410
2414
|
/** Allow-all was enabled through an RPC caller. */
|
|
2411
2415
|
| "rpc";
|
|
2412
2416
|
/**
|
|
@@ -4081,7 +4085,7 @@ export interface AccountQuotaSnapshot {
|
|
|
4081
4085
|
resetDate?: string;
|
|
4082
4086
|
}
|
|
4083
4087
|
/**
|
|
4084
|
-
* Credentials to store
|
|
4088
|
+
* Credentials to validate and store. Omit login to resolve the authenticated user from the token.
|
|
4085
4089
|
*
|
|
4086
4090
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4087
4091
|
* via the `definition` "AccountLoginRequest".
|
|
@@ -4093,9 +4097,9 @@ export interface AccountLoginRequest {
|
|
|
4093
4097
|
*/
|
|
4094
4098
|
host: string;
|
|
4095
4099
|
/**
|
|
4096
|
-
* User login/username
|
|
4100
|
+
* User login/username. When omitted, the runtime validates the token and resolves the login from GitHub.
|
|
4097
4101
|
*/
|
|
4098
|
-
login
|
|
4102
|
+
login?: string;
|
|
4099
4103
|
/**
|
|
4100
4104
|
* GitHub authentication token
|
|
4101
4105
|
*/
|
|
@@ -21818,9 +21822,9 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
21818
21822
|
*/
|
|
21819
21823
|
getAllUsers: () => Promise<AccountGetAllUsersResult>;
|
|
21820
21824
|
/**
|
|
21821
|
-
*
|
|
21825
|
+
* Validates and stores authentication credentials. When login is omitted, resolves the authenticated user from the token before persistence.
|
|
21822
21826
|
*
|
|
21823
|
-
* @param params Credentials to store
|
|
21827
|
+
* @param params Credentials to validate and store. Omit login to resolve the authenticated user from the token.
|
|
21824
21828
|
*
|
|
21825
21829
|
* @returns Result of a successful login; throws on failure
|
|
21826
21830
|
*/
|
package/dist/generated/rpc.js
CHANGED
|
@@ -61,9 +61,9 @@ function createServerRpc(connection) {
|
|
|
61
61
|
*/
|
|
62
62
|
getAllUsers: async () => connection.sendRequest("account.getAllUsers", {}),
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Validates and stores authentication credentials. When login is omitted, resolves the authenticated user from the token before persistence.
|
|
65
65
|
*
|
|
66
|
-
* @param params Credentials to store
|
|
66
|
+
* @param params Credentials to validate and store. Omit login to resolve the authenticated user from the token.
|
|
67
67
|
*
|
|
68
68
|
* @returns Result of a successful login; throws on failure
|
|
69
69
|
*/
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/github/copilot-sdk.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.13-preview.0",
|
|
8
8
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
9
9
|
"main": "./dist/cjs/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"author": "GitHub",
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@github/copilot": "^1.0.81-
|
|
59
|
+
"@github/copilot": "^1.0.81-6",
|
|
60
60
|
"koffi": "^3.1.0",
|
|
61
61
|
"vscode-jsonrpc": "^8.2.1",
|
|
62
62
|
"zod": "^4.3.6"
|