mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 06:19:31 +00:00
10 lines
417 B
TypeScript
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);
|
|
}
|