@github/copilot-sdk 1.0.23-preview.2 → 1.0.23-preview.3
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/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/generated/rpc.d.ts +17 -2
- package/dist/generated/session-events.d.ts +20 -0
- package/package.json +13 -13
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.99-
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.99-3";
|
|
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/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.99-
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.99-3";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -994,7 +994,9 @@ export type CatalogCapability =
|
|
|
994
994
|
/** Understands catalog.planInstallFromReference, which plans installing whatever resource an Agent Finder materialisation reference pins. It plans only kinds whose installation capability the caller also requires: skill-confirmed-installation for Skills, agent-plugin-confirmed-installation for Agent Plugins. Advertised only by runtimes with the Skill installation engine linked. */
|
|
995
995
|
| "catalog-reference-installation"
|
|
996
996
|
/** Understands catalog.getSavedFeed and catalog.getGeneratedFeed, which retrieve a saved or generated feed with entries projected exactly like catalog.search candidates. Requires catalog-search-credential-required; add catalog-search-session-bound to bind the retrieval to a selected session. */
|
|
997
|
-
| "catalog-feeds"
|
|
997
|
+
| "catalog-feeds"
|
|
998
|
+
/** Understands the optional `categories` filter on catalog.search, which the runtime forwards to the catalog authority. Required to send the filter, so an older runtime refuses the request instead of silently returning unfiltered results. */
|
|
999
|
+
| "catalog-search-categories";
|
|
998
1000
|
/**
|
|
999
1001
|
* Bounded extensible wire-feature identifier. Known values are described by `CatalogCapability`; newer callers may send future identifiers so an older runtime can return a typed negotiation refusal instead of failing schema validation. Capability negotiation establishes contract understanding, while each operation's result separately reports runtime availability.
|
|
1000
1002
|
*
|
|
@@ -1134,7 +1136,9 @@ export type CatalogInvalidRequestField =
|
|
|
1134
1136
|
/** The saved feed ID, or the generated feed strategy or key, was missing or malformed. */
|
|
1135
1137
|
| "feed"
|
|
1136
1138
|
/** The trust tier filter was empty, repeated a tier or named an unknown tier. */
|
|
1137
|
-
| "trustTiers"
|
|
1139
|
+
| "trustTiers"
|
|
1140
|
+
/** The category filter was empty, too long, repeated a category or contained a value that is not a lowercase slug. */
|
|
1141
|
+
| "categories";
|
|
1138
1142
|
/**
|
|
1139
1143
|
* How a card failed validation
|
|
1140
1144
|
*
|
|
@@ -10172,6 +10176,13 @@ export interface CatalogSearchRequest {
|
|
|
10172
10176
|
* @maxItems 3
|
|
10173
10177
|
*/
|
|
10174
10178
|
kinds?: [CatalogCandidateKind] | [CatalogCandidateKind, CatalogCandidateKind] | [CatalogCandidateKind, CatalogCandidateKind, CatalogCandidateKind];
|
|
10179
|
+
/**
|
|
10180
|
+
* Restrict results to resources in at least one of these server-defined workflow categories, such as `design` or `test`. Requires the `catalog-search-categories` capability. Each value is a lowercase slug; the known set is not exhaustive, and a category the server does not recognise matches nothing. Omit to search every category.
|
|
10181
|
+
*
|
|
10182
|
+
* @minItems 1
|
|
10183
|
+
* @maxItems 10
|
|
10184
|
+
*/
|
|
10185
|
+
categories?: [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string];
|
|
10175
10186
|
page?: CatalogSearchPage;
|
|
10176
10187
|
}
|
|
10177
10188
|
/**
|
|
@@ -25779,6 +25790,10 @@ export interface SessionOpenOptions {
|
|
|
25779
25790
|
* @experimental
|
|
25780
25791
|
*/
|
|
25781
25792
|
additionalContentExclusionPolicies?: SessionOpenOptionsAdditionalContentExclusionPolicy[];
|
|
25793
|
+
/**
|
|
25794
|
+
* Live gate for repository-origin file hooks, including the primary repository, trusted repository-configured roots, and accepted startup additional directories (including CLI --add-dir). False suppresses these hooks; explicit hookDirectories and SDK callbacks are independent. Additional-root eligibility and the DISABLE_ADDITIONAL_DIRECTORY_HOOKS escape hatch are captured at create/cold resume, not expanded by later grants or feature-flag changes. Discovery uses containing Git roots, so supply only trusted repositories: commands and prompts need no further approval. Policy, hook-disable settings, and sandbox rules still apply. Provider-backed sessions skip repository hooks with a warning on omission, skip silently on false, and reject explicit true.
|
|
25795
|
+
*/
|
|
25796
|
+
enableFileHooks?: boolean;
|
|
25782
25797
|
memory?: MemoryConfiguration;
|
|
25783
25798
|
/**
|
|
25784
25799
|
* Capabilities enabled for this session.
|
|
@@ -786,6 +786,14 @@ export type AssistantUsageApiEndpoint =
|
|
|
786
786
|
| "/responses"
|
|
787
787
|
/** WebSocket Responses API endpoint. */
|
|
788
788
|
| "ws:/responses";
|
|
789
|
+
/**
|
|
790
|
+
* How the runtime fell back to an uncompressed request body after a compressed body was rejected
|
|
791
|
+
*/
|
|
792
|
+
export type ModelCallRequestBodyCompressionFallback =
|
|
793
|
+
/** A compressed body was rejected with HTTP 400 or 415 and this outcome comes from the single uncompressed resend. */
|
|
794
|
+
"retried"
|
|
795
|
+
/** Request body compression was already turned off for the session by an earlier rejection, so the body was sent uncompressed. */
|
|
796
|
+
| "disabled";
|
|
789
797
|
/**
|
|
790
798
|
* Content-Encoding applied to the request body sent on the wire
|
|
791
799
|
*/
|
|
@@ -6777,6 +6785,12 @@ export interface AssistantUsageData {
|
|
|
6777
6785
|
* Serialized (uncompressed) byte length of the request body, before any Content-Encoding. A content-free size signal.
|
|
6778
6786
|
*/
|
|
6779
6787
|
requestBodyBytes?: number;
|
|
6788
|
+
requestBodyCompressionFallback?: ModelCallRequestBodyCompressionFallback;
|
|
6789
|
+
requestBodyCompressionFallbackFrom?: ModelCallRequestBodyEncoding;
|
|
6790
|
+
/**
|
|
6791
|
+
* HTTP status that rejected the compressed body before the uncompressed resend; present only when requestBodyCompressionFallback is retried
|
|
6792
|
+
*/
|
|
6793
|
+
requestBodyCompressionRejectedStatus?: number;
|
|
6780
6794
|
requestBodyEncoding?: ModelCallRequestBodyEncoding;
|
|
6781
6795
|
/**
|
|
6782
6796
|
* Byte length of the request body actually sent on the wire for the attempt that produced this outcome, after any Content-Encoding. Equals requestBodyBytes when the body was not compressed.
|
|
@@ -6988,6 +7002,12 @@ export interface ModelCallFailureData {
|
|
|
6988
7002
|
* Serialized (uncompressed) byte length of the failed request body, before any Content-Encoding. A content-free size signal.
|
|
6989
7003
|
*/
|
|
6990
7004
|
requestBodyBytes?: number;
|
|
7005
|
+
requestBodyCompressionFallback?: ModelCallRequestBodyCompressionFallback;
|
|
7006
|
+
requestBodyCompressionFallbackFrom?: ModelCallRequestBodyEncoding;
|
|
7007
|
+
/**
|
|
7008
|
+
* HTTP status that rejected the compressed body before the uncompressed resend; present only when requestBodyCompressionFallback is retried
|
|
7009
|
+
*/
|
|
7010
|
+
requestBodyCompressionRejectedStatus?: number;
|
|
6991
7011
|
requestBodyEncoding?: ModelCallRequestBodyEncoding;
|
|
6992
7012
|
/**
|
|
6993
7013
|
* Byte length of the failed request body actually sent on the wire, after any Content-Encoding. Equals requestBodyBytes when the body was not compressed.
|
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.23-preview.
|
|
9
|
-
"copilotCliVersion": "1.0.99-
|
|
8
|
+
"version": "1.0.23-preview.3",
|
|
9
|
+
"copilotCliVersion": "1.0.99-3",
|
|
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",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"zod": "4.3.6"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
+
"@hpke/core": "^1.9.0",
|
|
76
77
|
"@microsoft/agent-host-protocol-v09": "npm:@microsoft/agent-host-protocol@0.9.0",
|
|
77
78
|
"@platformatic/vfs": "^0.3.0",
|
|
78
79
|
"@types/node": "^25.2.0",
|
|
@@ -84,7 +85,6 @@
|
|
|
84
85
|
"eslint": "^9.0.0",
|
|
85
86
|
"file-entry-cache": "file:./scripts/eslint-file-cache",
|
|
86
87
|
"glob": "^13.0.1",
|
|
87
|
-
"hpke-js": "^1.8.0",
|
|
88
88
|
"json-schema": "^0.4.0",
|
|
89
89
|
"json-schema-to-typescript": "^15.0.4",
|
|
90
90
|
"prettier": "file:../../../third_party/build-tools/prettier-3.8.1",
|
|
@@ -112,18 +112,18 @@
|
|
|
112
112
|
"README.md"
|
|
113
113
|
],
|
|
114
114
|
"copilotRuntime": {
|
|
115
|
-
"sourceSha": "
|
|
116
|
-
"version": "1.0.99-
|
|
115
|
+
"sourceSha": "a408f87a893e2126164b60ef936972cfca65dcf2",
|
|
116
|
+
"version": "1.0.99-3",
|
|
117
117
|
"visibility": "public"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.23-preview.
|
|
121
|
-
"@github/copilot-sdk-darwin-x64": "1.0.23-preview.
|
|
122
|
-
"@github/copilot-sdk-linux-arm64": "1.0.23-preview.
|
|
123
|
-
"@github/copilot-sdk-linux-x64": "1.0.23-preview.
|
|
124
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.23-preview.
|
|
125
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.23-preview.
|
|
126
|
-
"@github/copilot-sdk-win32-arm64": "1.0.23-preview.
|
|
127
|
-
"@github/copilot-sdk-win32-x64": "1.0.23-preview.
|
|
120
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.23-preview.3",
|
|
121
|
+
"@github/copilot-sdk-darwin-x64": "1.0.23-preview.3",
|
|
122
|
+
"@github/copilot-sdk-linux-arm64": "1.0.23-preview.3",
|
|
123
|
+
"@github/copilot-sdk-linux-x64": "1.0.23-preview.3",
|
|
124
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.23-preview.3",
|
|
125
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.23-preview.3",
|
|
126
|
+
"@github/copilot-sdk-win32-arm64": "1.0.23-preview.3",
|
|
127
|
+
"@github/copilot-sdk-win32-x64": "1.0.23-preview.3"
|
|
128
128
|
}
|
|
129
129
|
}
|