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

@@ -1,12 +1,12 @@
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
export type PluginEnableResult = {
config: MoltbotConfig;
config: OpenClawConfig;
enabled: boolean;
reason?: string;
};
function ensureAllowlisted(cfg: MoltbotConfig, pluginId: string): MoltbotConfig {
function ensureAllowlisted(cfg: OpenClawConfig, pluginId: string): OpenClawConfig {
const allow = cfg.plugins?.allow;
if (!Array.isArray(allow) || allow.includes(pluginId)) return cfg;
return {
@@ -18,7 +18,7 @@ function ensureAllowlisted(cfg: MoltbotConfig, pluginId: string): MoltbotConfig
};
}
export function enablePluginInConfig(cfg: MoltbotConfig, pluginId: string): PluginEnableResult {
export function enablePluginInConfig(cfg: OpenClawConfig, pluginId: string): PluginEnableResult {
if (cfg.plugins?.enabled === false) {
return { config: cfg, enabled: false, reason: "plugins disabled" };
}
@@ -33,7 +33,7 @@ export function enablePluginInConfig(cfg: MoltbotConfig, pluginId: string): Plug
enabled: true,
},
};
let next: MoltbotConfig = {
let next: OpenClawConfig = {
...cfg,
plugins: {
...cfg.plugins,