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 { installSkill } from "../agents/skills-install.js";
import { buildWorkspaceSkillStatus } from "../agents/skills-status.js";
import { formatCliCommand } from "../cli/command-format.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";
import type { WizardPrompter } from "../wizard/prompts.js";
import { detectBinary, resolveNodeManagerOptions } from "./onboard-helpers.js";
@@ -26,10 +26,10 @@ function formatSkillHint(skill: {
}
function upsertSkillEntry(
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
skillKey: string,
patch: { apiKey?: string },
): ClawdbotConfig {
): MoltbotConfig {
const entries = { ...cfg.skills?.entries };
const existing = (entries[skillKey] as { apiKey?: string } | undefined) ?? {};
entries[skillKey] = { ...existing, ...patch };
@@ -43,11 +43,11 @@ function upsertSkillEntry(
}
export async function setupSkills(
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
workspaceDir: string,
runtime: RuntimeEnv,
prompter: WizardPrompter,
): Promise<ClawdbotConfig> {
): Promise<MoltbotConfig> {
const report = buildWorkspaceSkillStatus(workspaceDir, { config: cfg });
const eligible = report.skills.filter((s) => s.eligible);
const missing = report.skills.filter((s) => !s.eligible && !s.disabled && !s.blockedByAllowlist);
@@ -101,7 +101,7 @@ export async function setupSkills(
options: resolveNodeManagerOptions(),
})) as "npm" | "pnpm" | "bun";
let next: ClawdbotConfig = {
let next: MoltbotConfig = {
...cfg,
skills: {
...cfg.skills,
@@ -154,7 +154,7 @@ export async function setupSkills(
if (result.stderr) runtime.log(result.stderr.trim());
else if (result.stdout) runtime.log(result.stdout.trim());
runtime.log(
`Tip: run \`${formatCliCommand("clawdbot doctor")}\` to review skills + requirements.`,
`Tip: run \`${formatCliCommand("moltbot doctor")}\` to review skills + requirements.`,
);
runtime.log("Docs: https://docs.molt.bot/skills");
}