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 <cursoragent@cursor.com>
This commit is contained in:
NoxzRCW 2026-05-18 15:14:01 +07:00 committed by decolua
parent 8daa953ef6
commit eaf770a28e

View file

@ -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 ===