Merge pull request #2843 from lyc-aon/fix/check-spoofed-versions-source

fix(scripts): check current Gemini CLI version source
This commit is contained in:
Can Bölük
2026-06-17 11:28:49 +02:00
committed by GitHub
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -2,6 +2,9 @@
## [Unreleased]
### Changed
- Updated the default Gemini CLI user-agent version fallback to 0.46.0.
### Fixed
- Routed google-antigravity default baseUrl to the stable primary daily endpoint in the catalog generator and all fallback snapshots, resolving connection drops on heavy queries.
+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 {