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

@@ -4,7 +4,7 @@ import type {
ChannelDirectoryEntryKind,
ChannelId,
} from "../../channels/plugins/types.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { defaultRuntime, type RuntimeEnv } from "../../runtime.js";
import { buildDirectoryCacheKey, DirectoryCache } from "./directory-cache.js";
import {
@@ -30,7 +30,7 @@ export type ResolveMessagingTargetResult =
| { ok: false; error: Error; candidates?: ChannelDirectoryEntry[] };
export async function resolveChannelTarget(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
channel: ChannelId;
input: string;
accountId?: string | null;
@@ -177,7 +177,7 @@ function resolveMatch(params: {
}
async function listDirectoryEntries(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
channel: ChannelId;
accountId?: string | null;
kind: ChannelDirectoryEntryKind;
@@ -213,7 +213,7 @@ async function listDirectoryEntries(params: {
}
async function getDirectoryEntries(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
channel: ChannelId;
accountId?: string | null;
kind: ChannelDirectoryEntryKind;
@@ -281,7 +281,7 @@ function pickAmbiguousMatch(
}
export async function resolveMessagingTarget(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
channel: ChannelId;
input: string;
accountId?: string | null;
@@ -397,7 +397,7 @@ export async function resolveMessagingTarget(params: {
}
export async function lookupDirectoryDisplay(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
channel: ChannelId;
targetId: string;
accountId?: string | null;