@github/copilot-sdk 0.1.11 → 0.1.12
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/sdkProtocolVersion.d.ts +10 -0
- package/dist/sdkProtocolVersion.js +3 -2
- package/package.json +2 -2
- package/dist/nodejs/src/sdkProtocolVersion.d.ts +0 -5
- /package/dist/{nodejs/src/client.d.ts → client.d.ts} +0 -0
- /package/dist/{nodejs/src/generated → generated}/session-events.d.ts +0 -0
- /package/dist/{nodejs/src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{nodejs/src/session.d.ts → session.d.ts} +0 -0
- /package/dist/{nodejs/src/types.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SDK protocol version.
|
|
3
|
+
* This must match the version expected by the copilot-agent-runtime server.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SDK_PROTOCOL_VERSION = 1;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the SDK protocol version.
|
|
8
|
+
* @returns The protocol version number
|
|
9
|
+
*/
|
|
10
|
+
export declare function getSdkProtocolVersion(): number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const SDK_PROTOCOL_VERSION = 1;
|
|
2
2
|
function getSdkProtocolVersion() {
|
|
3
|
-
return
|
|
3
|
+
return SDK_PROTOCOL_VERSION;
|
|
4
4
|
}
|
|
5
5
|
export {
|
|
6
|
+
SDK_PROTOCOL_VERSION,
|
|
6
7
|
getSdkProtocolVersion
|
|
7
8
|
};
|
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": "0.1.
|
|
7
|
+
"version": "0.1.12",
|
|
8
8
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint:fix": "eslint --fix \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"generate:session-types": "tsx scripts/generate-session-types.ts",
|
|
29
|
-
"update:protocol-version": "tsx scripts/
|
|
29
|
+
"update:protocol-version": "tsx scripts/update-protocol-version.ts",
|
|
30
30
|
"prepublishOnly": "npm run build",
|
|
31
31
|
"package": "npm run clean && npm run build && node scripts/set-version.js && npm pack && npm version 0.1.0 --no-git-tag-version --allow-same-version"
|
|
32
32
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|