diff --git a/nodejs/scripts/update-protocol-version.ts b/nodejs/scripts/update-protocol-version.ts index ef3ac9a2f5..a75a3ea488 100644 --- a/nodejs/scripts/update-protocol-version.ts +++ b/nodejs/scripts/update-protocol-version.ts @@ -10,6 +10,7 @@ * - go/sdk_protocol_version.go * - python/copilot/_sdk_protocol_version.py * - dotnet/src/SdkProtocolVersion.cs + * - rust/src/sdk_protocol_version.rs * * Run this script whenever the protocol version changes. */ @@ -56,13 +57,13 @@ const goCode = `// Code generated by update-protocol-version.ts. DO NOT EDIT. package copilot -// SdkProtocolVersion is the SDK protocol version. +// SDKProtocolVersion is the SDK protocol version. // This must match the version expected by the copilot-agent-runtime server. -const SdkProtocolVersion = ${version} +const SDKProtocolVersion = ${version} -// GetSdkProtocolVersion returns the SDK protocol version. -func GetSdkProtocolVersion() int { - return SdkProtocolVersion +// GetSDKProtocolVersion returns the SDK protocol version. +func GetSDKProtocolVersion() int { + return SDKProtocolVersion } `; fs.writeFileSync(path.join(rootDir, "go", "sdk_protocol_version.go"), goCode); @@ -95,7 +96,7 @@ console.log(" ✓ python/copilot/_sdk_protocol_version.py"); // Generate C# const csharpCode = `// Code generated by update-protocol-version.ts. DO NOT EDIT. -namespace GitHub.Copilot.SDK; +namespace GitHub.Copilot; /// /// Provides the SDK protocol version.