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,6 +1,6 @@
import type { ChannelId } from "../../channels/plugins/types.js";
import { DEFAULT_CHAT_CHANNEL } from "../../channels/registry.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import {
loadSessionStore,
resolveAgentMainSessionKey,
@@ -14,7 +14,7 @@ import {
} from "../../infra/outbound/targets.js";
export async function resolveDeliveryTarget(
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
agentId: string,
jobPayload: {
channel?: "last" | ChannelId;

View File

@@ -38,7 +38,7 @@ import {
supportsXHighThinking,
} from "../../auto-reply/thinking.js";
import { createOutboundSendDeps, type CliDeps } from "../../cli/outbound-send-deps.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { resolveSessionTranscriptPath, updateSessionStore } from "../../config/sessions.js";
import type { AgentDefaultsConfig } from "../../config/types.js";
import { registerAgentRunContext } from "../../infra/agent-events.js";
@@ -86,7 +86,7 @@ export type RunCronAgentTurnResult = {
};
export async function runCronIsolatedAgentTurn(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
deps: CliDeps;
job: CronJob;
message: string;
@@ -117,7 +117,7 @@ export async function runCronIsolatedAgentTurn(params: {
} else if (overrideModel) {
agentCfg.model = overrideModel;
}
const cfgWithAgentDefaults: ClawdbotConfig = {
const cfgWithAgentDefaults: MoltbotConfig = {
...params.cfg,
agents: Object.assign({}, params.cfg.agents, { defaults: agentCfg }),
};

View File

@@ -1,10 +1,10 @@
import crypto from "node:crypto";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { loadSessionStore, resolveStorePath, type SessionEntry } from "../../config/sessions.js";
export function resolveCronSession(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
sessionKey: string;
nowMs: number;
agentId: string;