mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 15:01:41 +03:00
refactor: rename to openclaw
This commit is contained in:
+3
-3
@@ -26,12 +26,12 @@ export function resolveUserPathWithHome(input: string, home?: string): string {
|
||||
}
|
||||
|
||||
export function resolveGatewayStateDir(env: Record<string, string | undefined>): string {
|
||||
const override = env.CLAWDBOT_STATE_DIR?.trim();
|
||||
const override = env.OPENCLAW_STATE_DIR?.trim();
|
||||
if (override) {
|
||||
const home = override.startsWith("~") ? resolveHomeDir(env) : undefined;
|
||||
return resolveUserPathWithHome(override, home);
|
||||
}
|
||||
const home = resolveHomeDir(env);
|
||||
const suffix = resolveGatewayProfileSuffix(env.CLAWDBOT_PROFILE);
|
||||
return path.join(home, `.clawdbot${suffix}`);
|
||||
const suffix = resolveGatewayProfileSuffix(env.OPENCLAW_PROFILE);
|
||||
return path.join(home, `.openclaw${suffix}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user