mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 10:20:21 +00:00
refactor(config): drop obsolete legacy config aliases
This commit is contained in:
@@ -17,11 +17,11 @@ export function resolveIsNixMode(env: NodeJS.ProcessEnv = process.env): boolean
|
||||
|
||||
export const isNixMode = resolveIsNixMode();
|
||||
|
||||
// Support historical (and occasionally misspelled) legacy state dirs.
|
||||
const LEGACY_STATE_DIRNAMES = [".clawdbot", ".moldbot"] as const;
|
||||
// Support the remaining legacy pre-rebrand state dir.
|
||||
const LEGACY_STATE_DIRNAMES = [".clawdbot"] as const;
|
||||
const NEW_STATE_DIRNAME = ".openclaw";
|
||||
const CONFIG_FILENAME = "openclaw.json";
|
||||
const LEGACY_CONFIG_FILENAMES = ["clawdbot.json", "moldbot.json"] as const;
|
||||
const LEGACY_CONFIG_FILENAMES = ["clawdbot.json"] as const;
|
||||
|
||||
function resolveDefaultHomeDir(): string {
|
||||
return resolveRequiredHomeDir(process.env, os.homedir);
|
||||
|
||||
Reference in New Issue
Block a user