mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 23:51:46 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { parseConfigPath, setConfigValueAtPath, unsetConfigValueAtPath } from "./config-paths.js";
|
||||
import type { ClawdbotConfig } from "./types.js";
|
||||
import type { MoltbotConfig } from "./types.js";
|
||||
|
||||
type OverrideTree = Record<string, unknown>;
|
||||
|
||||
@@ -64,7 +64,7 @@ export function unsetConfigOverride(pathRaw: string): {
|
||||
return { ok: true, removed };
|
||||
}
|
||||
|
||||
export function applyConfigOverrides(cfg: ClawdbotConfig): ClawdbotConfig {
|
||||
export function applyConfigOverrides(cfg: MoltbotConfig): MoltbotConfig {
|
||||
if (!overrides || Object.keys(overrides).length === 0) return cfg;
|
||||
return mergeOverrides(cfg, overrides) as ClawdbotConfig;
|
||||
return mergeOverrides(cfg, overrides) as MoltbotConfig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user