refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

@@ -3,7 +3,7 @@ import path from "node:path";
import type { Command } from "commander";
import { loadConfig, writeConfigFile } from "../config/config.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import { resolveArchiveKind } from "../infra/archive.js";
import { installPluginFromNpmSpec, installPluginFromPath } from "../plugins/install.js";
import { recordPluginInstall } from "../plugins/installs.js";
@@ -67,9 +67,9 @@ function formatPluginLine(plugin: PluginRecord, verbose = false): string {
}
function applySlotSelectionForPlugin(
config: ClawdbotConfig,
config: MoltbotConfig,
pluginId: string,
): { config: ClawdbotConfig; warnings: string[] } {
): { config: MoltbotConfig; warnings: string[] } {
const report = buildPluginStatusReport({ config });
const plugin = report.plugins.find((entry) => entry.id === pluginId);
if (!plugin) {
@@ -94,7 +94,7 @@ function logSlotWarnings(warnings: string[]) {
export function registerPluginsCli(program: Command) {
const plugins = program
.command("plugins")
.description("Manage Clawdbot plugins/extensions")
.description("Manage Moltbot plugins/extensions")
.addHelpText(
"after",
() =>
@@ -246,7 +246,7 @@ export function registerPluginsCli(program: Command) {
.argument("<id>", "Plugin id")
.action(async (id: string) => {
const cfg = loadConfig();
let next: ClawdbotConfig = {
let next: MoltbotConfig = {
...cfg,
plugins: {
...cfg.plugins,
@@ -308,7 +308,7 @@ export function registerPluginsCli(program: Command) {
process.exit(1);
}
let next: ClawdbotConfig = {
let next: MoltbotConfig = {
...cfg,
plugins: {
...cfg.plugins,
@@ -353,7 +353,7 @@ export function registerPluginsCli(program: Command) {
process.exit(1);
}
let next: ClawdbotConfig = {
let next: MoltbotConfig = {
...cfg,
plugins: {
...cfg.plugins,
@@ -417,7 +417,7 @@ export function registerPluginsCli(program: Command) {
process.exit(1);
}
let next: ClawdbotConfig = {
let next: MoltbotConfig = {
...cfg,
plugins: {
...cfg.plugins,