mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 14:45:46 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import type { Command } from "commander";
|
||||
|
||||
import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agents/agent-scope.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import { createSubsystemLogger } from "../logging/subsystem.js";
|
||||
import { loadMoltbotPlugins } from "./loader.js";
|
||||
import { loadOpenClawPlugins } from "./loader.js";
|
||||
import type { PluginLogger } from "./types.js";
|
||||
|
||||
const log = createSubsystemLogger("plugins");
|
||||
|
||||
export function registerPluginCliCommands(program: Command, cfg?: MoltbotConfig) {
|
||||
export function registerPluginCliCommands(program: Command, cfg?: OpenClawConfig) {
|
||||
const config = cfg ?? loadConfig();
|
||||
const workspaceDir = resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config));
|
||||
const logger: PluginLogger = {
|
||||
@@ -18,7 +18,7 @@ export function registerPluginCliCommands(program: Command, cfg?: MoltbotConfig)
|
||||
error: (msg: string) => log.error(msg),
|
||||
debug: (msg: string) => log.debug(msg),
|
||||
};
|
||||
const registry = loadMoltbotPlugins({
|
||||
const registry = loadOpenClawPlugins({
|
||||
config,
|
||||
workspaceDir,
|
||||
logger,
|
||||
|
||||
Reference in New Issue
Block a user