refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -3,7 +3,7 @@ import path from "node:path";
import JSON5 from "json5";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import { createConfigIO } from "../config/config.js";
import { resolveConfigPath, resolveOAuthDir, resolveStateDir } from "../config/paths.js";
import { resolveDefaultAgentId } from "../agents/agent-scope.js";
@@ -187,13 +187,13 @@ async function safeAclReset(params: {
}
function setGroupPolicyAllowlist(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
channel: string;
changes: string[];
policyFlips: Set<string>;
}): void {
if (!params.cfg.channels) return;
const section = params.cfg.channels[params.channel as keyof MoltbotConfig["channels"]] as
const section = params.cfg.channels[params.channel as keyof OpenClawConfig["channels"]] as
| Record<string, unknown>
| undefined;
if (!section || typeof section !== "object") return;
@@ -222,7 +222,7 @@ function setGroupPolicyAllowlist(params: {
}
function setWhatsAppGroupAllowFromFromStore(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
storeAllowFrom: string[];
changes: string[];
policyFlips: Set<string>;
@@ -252,8 +252,8 @@ function setWhatsAppGroupAllowFromFromStore(params: {
}
}
function applyConfigFixes(params: { cfg: MoltbotConfig; env: NodeJS.ProcessEnv }): {
cfg: MoltbotConfig;
function applyConfigFixes(params: { cfg: OpenClawConfig; env: NodeJS.ProcessEnv }): {
cfg: OpenClawConfig;
changes: string[];
policyFlips: Set<string>;
} {
@@ -349,7 +349,7 @@ async function collectIncludePathsRecursive(params: {
async function chmodCredentialsAndAgentState(params: {
env: NodeJS.ProcessEnv;
stateDir: string;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
actions: SecurityFixAction[];
applyPerms: (params: {
path: string;