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,13 +1,13 @@
import type { ImageContent } from "@mariozechner/pi-ai";
import { resolveHeartbeatPrompt } from "../auto-reply/heartbeat.js";
import type { ThinkLevel } from "../auto-reply/thinking.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import { isTruthyEnvValue } from "../infra/env.js";
import { shouldLogVerbose } from "../globals.js";
import { createSubsystemLogger } from "../logging/subsystem.js";
import { runCommandWithTimeout } from "../process/exec.js";
import { resolveUserPath } from "../utils.js";
import { resolveClawdbotDocsPath } from "./docs-path.js";
import { resolveMoltbotDocsPath } from "./docs-path.js";
import { resolveSessionAgentIds } from "./agent-scope.js";
import { makeBootstrapWarn, resolveBootstrapContextForRun } from "./bootstrap-files.js";
import { resolveCliBackendConfig } from "./cli-backends.js";
@@ -37,7 +37,7 @@ export async function runCliAgent(params: {
sessionKey?: string;
sessionFile: string;
workspaceDir: string;
config?: ClawdbotConfig;
config?: MoltbotConfig;
prompt: string;
provider: string;
model?: string;
@@ -86,7 +86,7 @@ export async function runCliAgent(params: {
sessionAgentId === defaultAgentId
? resolveHeartbeatPrompt(params.config?.agents?.defaults?.heartbeat?.prompt)
: undefined;
const docsPath = await resolveClawdbotDocsPath({
const docsPath = await resolveMoltbotDocsPath({
workspaceDir,
argv1: process.argv[1],
cwd: process.cwd(),
@@ -303,7 +303,7 @@ export async function runClaudeCliAgent(params: {
sessionKey?: string;
sessionFile: string;
workspaceDir: string;
config?: ClawdbotConfig;
config?: MoltbotConfig;
prompt: string;
provider?: string;
model?: string;