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

@@ -2,11 +2,11 @@ import fs from "node:fs";
import path from "node:path";
import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../../agents/agent-scope.js";
import type { ChannelPluginCatalogEntry } from "../../channels/plugins/catalog.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
import { createSubsystemLogger } from "../../logging/subsystem.js";
import { recordPluginInstall } from "../../plugins/installs.js";
import { enablePluginInConfig } from "../../plugins/enable.js";
import { loadMoltbotPlugins } from "../../plugins/loader.js";
import { loadOpenClawPlugins } from "../../plugins/loader.js";
import { installPluginFromNpmSpec } from "../../plugins/install.js";
import type { RuntimeEnv } from "../../runtime.js";
import type { WizardPrompter } from "../../wizard/prompts.js";
@@ -14,7 +14,7 @@ import type { WizardPrompter } from "../../wizard/prompts.js";
type InstallChoice = "npm" | "local" | "skip";
type InstallResult = {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
installed: boolean;
};
@@ -49,7 +49,7 @@ function resolveLocalPath(
return null;
}
function addPluginLoadPath(cfg: MoltbotConfig, pluginPath: string): MoltbotConfig {
function addPluginLoadPath(cfg: OpenClawConfig, pluginPath: string): OpenClawConfig {
const existing = cfg.plugins?.load?.paths ?? [];
const merged = Array.from(new Set([...existing, pluginPath]));
return {
@@ -95,7 +95,7 @@ async function promptInstallChoice(params: {
}
function resolveInstallDefaultChoice(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
entry: ChannelPluginCatalogEntry;
localPath?: string | null;
}): InstallChoice {
@@ -114,7 +114,7 @@ function resolveInstallDefaultChoice(params: {
}
export async function ensureOnboardingPluginInstalled(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
entry: ChannelPluginCatalogEntry;
prompter: WizardPrompter;
runtime: RuntimeEnv;
@@ -188,14 +188,14 @@ export async function ensureOnboardingPluginInstalled(params: {
}
export function reloadOnboardingPluginRegistry(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
runtime: RuntimeEnv;
workspaceDir?: string;
}): void {
const workspaceDir =
params.workspaceDir ?? resolveAgentWorkspaceDir(params.cfg, resolveDefaultAgentId(params.cfg));
const log = createSubsystemLogger("plugins");
loadMoltbotPlugins({
loadOpenClawPlugins({
config: params.cfg,
workspaceDir,
cache: false,