Files
openclaw/extensions/google/gemini-cli-auth-home.ts
2026-06-18 11:09:14 +08:00

10 lines
417 B
TypeScript

import crypto from "node:crypto";
import path from "node:path";
export const GOOGLE_GEMINI_CLI_PROVIDER_ID = "google-gemini-cli";
export function resolveGeminiCliProfileHome(agentDir: string, profileId: string): string {
const profileHash = crypto.createHash("sha256").update(profileId).digest("hex").slice(0, 24);
return path.join(agentDir, `${GOOGLE_GEMINI_CLI_PROVIDER_ID}-home`, "profiles", profileHash);
}