fix(scripts): check current Gemini CLI version source

This commit is contained in:
lycaon
2026-06-17 00:16:36 -06:00
parent 8eeb707387
commit 9a39b0093f
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -2,6 +2,10 @@
## [Unreleased]
### Changed
- Updated the default Gemini CLI user-agent version fallback to 0.46.0.
## [16.0.2] - 2026-06-16
### Fixed
+1 -1
View File
@@ -4,7 +4,7 @@
* GeminiCLI/VERSION/MODEL (PLATFORM; ARCH; SURFACE)
*/
export function getGeminiCliUserAgent(modelId = "gemini-3.1-pro-preview"): string {
const version = process.env.PI_AI_GEMINI_CLI_VERSION || "0.35.3";
const version = process.env.PI_AI_GEMINI_CLI_VERSION || "0.46.0";
const platform = process.platform === "win32" ? "win32" : process.platform;
const arch = process.arch === "x64" ? "x64" : process.arch;
return `GeminiCLI/${version}/${modelId} (${platform}; ${arch}; terminal)`;
+1 -1
View File
@@ -17,7 +17,7 @@ import * as path from "node:path";
const PROVIDER_FILE = path.join(
import.meta.dir,
"../packages/ai/src/providers/google-gemini-cli.ts",
"../packages/catalog/src/wire/gemini-headers.ts",
);
interface VersionCheck {