Skip to content

Commit 08d6bfe

Browse files
Copilotfriggeri
andcommitted
Address code review feedback - update comments and regenerate files
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
1 parent 3dc2893 commit 08d6bfe

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

dotnet/src/SdkProtocolVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Code generated by generate-protocol-version.ts. DO NOT EDIT.
1+
// Code generated by update-protocol-version.ts. DO NOT EDIT.
22

33
namespace GitHub.Copilot.SDK;
44

go/sdk_protocol_version.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/github/copilot-sdk.git"
66
},
7-
"version": "0.1.8",
7+
"version": "0.1.0",
88
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
99
"main": "./dist/index.js",
1010
"types": "./dist/index.d.ts",

nodejs/scripts/update-protocol-version.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const tsCode = `/*--------------------------------------------------------------
4141
export const SDK_PROTOCOL_VERSION = ${version};
4242
4343
/**
44-
* Gets the SDK protocol version from sdk-protocol-version.json.
44+
* Gets the SDK protocol version.
4545
* @returns The protocol version number
4646
*/
4747
export function getSdkProtocolVersion(): number {
@@ -52,7 +52,7 @@ fs.writeFileSync(path.join(rootDir, "nodejs", "src", "sdkProtocolVersion.ts"), t
5252
console.log(" ✓ nodejs/src/sdkProtocolVersion.ts");
5353

5454
// Generate Go
55-
const goCode = `// Code generated by generate-protocol-version.ts. DO NOT EDIT.
55+
const goCode = `// Code generated by update-protocol-version.ts. DO NOT EDIT.
5656
5757
package copilot
5858
@@ -69,7 +69,7 @@ fs.writeFileSync(path.join(rootDir, "go", "sdk_protocol_version.go"), goCode);
6969
console.log(" ✓ go/sdk_protocol_version.go");
7070

7171
// Generate Python
72-
const pythonCode = `# Code generated by generate-protocol-version.ts. DO NOT EDIT.
72+
const pythonCode = `# Code generated by update-protocol-version.ts. DO NOT EDIT.
7373
7474
"""
7575
SDK Protocol Version for the Copilot SDK.
@@ -93,7 +93,7 @@ fs.writeFileSync(path.join(rootDir, "python", "copilot", "sdk_protocol_version.p
9393
console.log(" ✓ python/copilot/sdk_protocol_version.py");
9494

9595
// Generate C#
96-
const csharpCode = `// Code generated by generate-protocol-version.ts. DO NOT EDIT.
96+
const csharpCode = `// Code generated by update-protocol-version.ts. DO NOT EDIT.
9797
9898
namespace GitHub.Copilot.SDK;
9999

nodejs/src/sdkProtocolVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
export const SDK_PROTOCOL_VERSION = 1;
1212

1313
/**
14-
* Gets the SDK protocol version from sdk-protocol-version.json.
14+
* Gets the SDK protocol version.
1515
* @returns The protocol version number
1616
*/
1717
export function getSdkProtocolVersion(): number {

python/copilot/sdk_protocol_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Code generated by generate-protocol-version.ts. DO NOT EDIT.
1+
# Code generated by update-protocol-version.ts. DO NOT EDIT.
22

33
"""
44
SDK Protocol Version for the Copilot SDK.

0 commit comments

Comments
 (0)