@github/copilot-sdk 1.0.27 → 1.0.28
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 +1 -1
- package/dist/cjs/session.js +10 -1
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/generated/session-events.d.ts +16 -0
- package/dist/session.js +10 -1
- package/dist/types.d.ts +2 -0
- package/package.json +12 -12
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.
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.105";
|
|
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 = {
|
package/dist/cjs/session.js
CHANGED
|
@@ -1041,7 +1041,15 @@ class CopilotSession {
|
|
|
1041
1041
|
void this._executeCommandAndRespond(requestId, commandName, command, args);
|
|
1042
1042
|
} else if (event.type === "elicitation.requested") {
|
|
1043
1043
|
if (this.elicitationHandler) {
|
|
1044
|
-
const {
|
|
1044
|
+
const {
|
|
1045
|
+
message,
|
|
1046
|
+
requestedSchema,
|
|
1047
|
+
mode,
|
|
1048
|
+
elicitationSource,
|
|
1049
|
+
elicitationSourceDisplayName,
|
|
1050
|
+
url,
|
|
1051
|
+
requestId
|
|
1052
|
+
} = event.data;
|
|
1045
1053
|
void this._handleElicitationRequest(
|
|
1046
1054
|
{
|
|
1047
1055
|
sessionId: this.sessionId,
|
|
@@ -1049,6 +1057,7 @@ class CopilotSession {
|
|
|
1049
1057
|
requestedSchema,
|
|
1050
1058
|
mode,
|
|
1051
1059
|
elicitationSource,
|
|
1060
|
+
elicitationSourceDisplayName,
|
|
1052
1061
|
url
|
|
1053
1062
|
},
|
|
1054
1063
|
requestId
|
package/dist/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.105";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
|
@@ -9803,6 +9803,10 @@ export interface PermissionRequestMcp {
|
|
|
9803
9803
|
* Whether this MCP tool is read-only (no side effects)
|
|
9804
9804
|
*/
|
|
9805
9805
|
readOnly: boolean;
|
|
9806
|
+
/**
|
|
9807
|
+
* Display label for a Connector-owned MCP server, from the trusted Connector catalog; absent for other servers. `serverName` stays the identity for approvals and rules.
|
|
9808
|
+
*/
|
|
9809
|
+
serverDisplayName?: string;
|
|
9806
9810
|
/**
|
|
9807
9811
|
* Name of the MCP server providing the tool
|
|
9808
9812
|
*/
|
|
@@ -10408,6 +10412,10 @@ export interface PermissionPromptRequestMcp {
|
|
|
10408
10412
|
* @experimental
|
|
10409
10413
|
*/
|
|
10410
10414
|
permissionRecommendation?: PermissionRecommendation;
|
|
10415
|
+
/**
|
|
10416
|
+
* Display label for a Connector-owned MCP server, from the trusted Connector catalog; absent for other servers. `serverName` stays the identity for approvals and rules.
|
|
10417
|
+
*/
|
|
10418
|
+
serverDisplayName?: string;
|
|
10411
10419
|
/**
|
|
10412
10420
|
* Name of the MCP server providing the tool
|
|
10413
10421
|
*/
|
|
@@ -11604,6 +11612,10 @@ export interface ElicitationRequestedData {
|
|
|
11604
11612
|
* The source that initiated the request (MCP server name, or absent for agent-initiated)
|
|
11605
11613
|
*/
|
|
11606
11614
|
elicitationSource?: string;
|
|
11615
|
+
/**
|
|
11616
|
+
* Display label for a Connector-owned MCP server that initiated the request, from the trusted Connector catalog; absent for other sources. `elicitationSource` stays the identity.
|
|
11617
|
+
*/
|
|
11618
|
+
elicitationSourceDisplayName?: string;
|
|
11607
11619
|
/**
|
|
11608
11620
|
* Message describing what information is needed from the user
|
|
11609
11621
|
*/
|
|
@@ -11730,6 +11742,10 @@ export interface SamplingRequestedData {
|
|
|
11730
11742
|
* Unique identifier for this sampling request; used to respond via session.respondToSampling()
|
|
11731
11743
|
*/
|
|
11732
11744
|
requestId: string;
|
|
11745
|
+
/**
|
|
11746
|
+
* Display label for a Connector-owned MCP server, from the trusted Connector catalog; absent for other servers. `serverName` stays the identity for request matching.
|
|
11747
|
+
*/
|
|
11748
|
+
serverDisplayName?: string;
|
|
11733
11749
|
/**
|
|
11734
11750
|
* Name of the MCP server that initiated the sampling request
|
|
11735
11751
|
*/
|
package/dist/session.js
CHANGED
|
@@ -1028,7 +1028,15 @@ class CopilotSession {
|
|
|
1028
1028
|
void this._executeCommandAndRespond(requestId, commandName, command, args);
|
|
1029
1029
|
} else if (event.type === "elicitation.requested") {
|
|
1030
1030
|
if (this.elicitationHandler) {
|
|
1031
|
-
const {
|
|
1031
|
+
const {
|
|
1032
|
+
message,
|
|
1033
|
+
requestedSchema,
|
|
1034
|
+
mode,
|
|
1035
|
+
elicitationSource,
|
|
1036
|
+
elicitationSourceDisplayName,
|
|
1037
|
+
url,
|
|
1038
|
+
requestId
|
|
1039
|
+
} = event.data;
|
|
1032
1040
|
void this._handleElicitationRequest(
|
|
1033
1041
|
{
|
|
1034
1042
|
sessionId: this.sessionId,
|
|
@@ -1036,6 +1044,7 @@ class CopilotSession {
|
|
|
1036
1044
|
requestedSchema,
|
|
1037
1045
|
mode,
|
|
1038
1046
|
elicitationSource,
|
|
1047
|
+
elicitationSourceDisplayName,
|
|
1039
1048
|
url
|
|
1040
1049
|
},
|
|
1041
1050
|
requestId
|
package/dist/types.d.ts
CHANGED
|
@@ -880,6 +880,8 @@ export interface ElicitationContext {
|
|
|
880
880
|
mode?: "form" | "url";
|
|
881
881
|
/** The source that initiated the request (e.g. MCP server name). */
|
|
882
882
|
elicitationSource?: string;
|
|
883
|
+
/** Trusted display label of a Connector-owned MCP server that initiated the request, such as "Work IQ". */
|
|
884
|
+
elicitationSourceDisplayName?: string;
|
|
883
885
|
/** URL to open in the user's browser (url mode only). */
|
|
884
886
|
url?: string;
|
|
885
887
|
}
|
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.
|
|
9
|
-
"copilotCliVersion": "1.0.
|
|
8
|
+
"version": "1.0.28",
|
|
9
|
+
"copilotCliVersion": "1.0.105",
|
|
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",
|
|
@@ -114,18 +114,18 @@
|
|
|
114
114
|
"README.md"
|
|
115
115
|
],
|
|
116
116
|
"copilotRuntime": {
|
|
117
|
-
"sourceSha": "
|
|
118
|
-
"version": "1.0.
|
|
117
|
+
"sourceSha": "845c22879d426535d97901908014b807e0b68d0f",
|
|
118
|
+
"version": "1.0.105",
|
|
119
119
|
"visibility": "public"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.
|
|
123
|
-
"@github/copilot-sdk-darwin-x64": "1.0.
|
|
124
|
-
"@github/copilot-sdk-linux-arm64": "1.0.
|
|
125
|
-
"@github/copilot-sdk-linux-x64": "1.0.
|
|
126
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.
|
|
127
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.
|
|
128
|
-
"@github/copilot-sdk-win32-arm64": "1.0.
|
|
129
|
-
"@github/copilot-sdk-win32-x64": "1.0.
|
|
122
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.28",
|
|
123
|
+
"@github/copilot-sdk-darwin-x64": "1.0.28",
|
|
124
|
+
"@github/copilot-sdk-linux-arm64": "1.0.28",
|
|
125
|
+
"@github/copilot-sdk-linux-x64": "1.0.28",
|
|
126
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.28",
|
|
127
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.28",
|
|
128
|
+
"@github/copilot-sdk-win32-arm64": "1.0.28",
|
|
129
|
+
"@github/copilot-sdk-win32-x64": "1.0.28"
|
|
130
130
|
}
|
|
131
131
|
}
|