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 type { MsgContext } from "../../auto-reply/templating.js";
import { getChannelPlugin } from "../../channels/plugins/index.js";
import type { ChannelId } from "../../channels/plugins/types.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { recordSessionMetaFromInbound, resolveStorePath } from "../../config/sessions.js";
import { parseDiscordTarget } from "../../discord/targets.js";
import { parseIMessageTarget, normalizeIMessageHandle } from "../../imessage/targets.js";
@@ -37,7 +37,7 @@ export type OutboundSessionRoute = {
};
export type ResolveOutboundSessionRouteParams = {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
channel: ChannelId;
agentId: string;
accountId?: string | null;
@@ -100,7 +100,7 @@ function inferPeerKind(params: {
}
function buildBaseSessionKey(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
agentId: string;
channel: ChannelId;
peer: RoutePeer;
@@ -116,7 +116,7 @@ function buildBaseSessionKey(params: {
// Best-effort mpim detection: allowlist/config, then Slack API (if token available).
async function resolveSlackChannelType(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
accountId?: string | null;
channelId: string;
}): Promise<"channel" | "group" | "dm" | "unknown"> {
@@ -805,7 +805,7 @@ export async function resolveOutboundSessionRoute(
}
export async function ensureOutboundSessionEntry(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
agentId: string;
channel: ChannelId;
accountId?: string | null;