From eaf770a28e893e4b96a82084194943973fb29fc0 Mon Sep 17 00:00:00 2001 From: NoxzRCW <115419063+NoxzRCW@users.noreply.github.com> Date: Mon, 18 May 2026 15:14:01 +0700 Subject: [PATCH] chore(gemini-cli): bump version to 0.34.0 and refine user-agent - GEMINI_CLI_VERSION 0.31.0 -> 0.34.0 - UA now appends `terminal` suffix and maps ia32 -> x86 Co-authored-by: Cursor --- open-sse/config/appConstants.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/open-sse/config/appConstants.js b/open-sse/config/appConstants.js index 6229fdf..ba1ccf3 100644 --- a/open-sse/config/appConstants.js +++ b/open-sse/config/appConstants.js @@ -1,12 +1,18 @@ import { platform, arch } from "os"; // === Gemini CLI === -export const GEMINI_CLI_VERSION = "0.31.0"; +export const GEMINI_CLI_VERSION = "0.34.0"; export const GEMINI_CLI_API_CLIENT = "google-genai-sdk/1.41.0 gl-node/v22.19.0"; +// Map Node arch to Gemini CLI arch string (x64/x86/arm64/...) +function geminiCLIArch() { + const a = arch(); + if (a === "ia32") return "x86"; + return a; +} + export function geminiCLIUserAgent(model = "unknown") { - const os = platform() === "win32" ? "windows" : platform(); - return `GeminiCLI/${GEMINI_CLI_VERSION}/${model || "unknown"} (${os}; ${arch()})`; + return `GeminiCLI/${GEMINI_CLI_VERSION}/${model || "unknown"} (${platform()}; ${geminiCLIArch()}; terminal)`; } // === GitHub Copilot ===