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

@@ -1,7 +1,7 @@
import { getChannelPlugin, listChannelPlugins } from "../channels/plugins/index.js";
import { formatCliCommand } from "../cli/command-format.js";
import type { ClawdbotConfig } from "../config/config.js";
import { CONFIG_PATH_CLAWDBOT } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import { CONFIG_PATH } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";
import { note } from "../terminal/note.js";
import { shortenHomePath } from "../utils.js";
@@ -9,9 +9,9 @@ import { confirm, select } from "./configure.shared.js";
import { guardCancel } from "./onboard-helpers.js";
export async function removeChannelConfigWizard(
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
runtime: RuntimeEnv,
): Promise<ClawdbotConfig> {
): Promise<MoltbotConfig> {
let next = { ...cfg };
const listConfiguredChannels = () =>
@@ -24,8 +24,8 @@ export async function removeChannelConfigWizard(
if (configured.length === 0) {
note(
[
"No channel config found in clawdbot.json.",
`Tip: \`${formatCliCommand("clawdbot channels status")}\` shows what is configured and enabled.`,
"No channel config found in moltbot.json.",
`Tip: \`${formatCliCommand("moltbot channels status")}\` shows what is configured and enabled.`,
].join("\n"),
"Remove channel",
);
@@ -52,7 +52,7 @@ export async function removeChannelConfigWizard(
const label = getChannelPlugin(channel)?.meta.label ?? channel;
const confirmed = guardCancel(
await confirm({
message: `Delete ${label} configuration from ${shortenHomePath(CONFIG_PATH_CLAWDBOT)}?`,
message: `Delete ${label} configuration from ${shortenHomePath(CONFIG_PATH)}?`,
initialValue: false,
}),
runtime,
@@ -64,7 +64,7 @@ export async function removeChannelConfigWizard(
next = {
...next,
channels: Object.keys(nextChannels).length
? (nextChannels as ClawdbotConfig["channels"])
? (nextChannels as MoltbotConfig["channels"])
: undefined,
};