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:
parent
8daa953ef6
commit
eaf770a28e
1 changed files with 9 additions and 3 deletions
|
|
@ -1,12 +1,18 @@
|
||||||
import { platform, arch } from "os";
|
import { platform, arch } from "os";
|
||||||
|
|
||||||
// === Gemini CLI ===
|
// === 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";
|
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") {
|
export function geminiCLIUserAgent(model = "unknown") {
|
||||||
const os = platform() === "win32" ? "windows" : platform();
|
return `GeminiCLI/${GEMINI_CLI_VERSION}/${model || "unknown"} (${platform()}; ${geminiCLIArch()}; terminal)`;
|
||||||
return `GeminiCLI/${GEMINI_CLI_VERSION}/${model || "unknown"} (${os}; ${arch()})`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// === GitHub Copilot ===
|
// === GitHub Copilot ===
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue