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
+3 -3
View File
@@ -9,7 +9,7 @@ import {
import { listTlonAccountIds, resolveTlonAccount } from "./types.js";
import type { TlonResolvedAccount } from "./types.js";
import type { ClawdbotConfig } from "clawdbot/plugin-sdk";
import type { MoltbotConfig } from "clawdbot/plugin-sdk";
const channel = "tlon" as const;
@@ -18,7 +18,7 @@ function isConfigured(account: TlonResolvedAccount): boolean {
}
function applyAccountConfig(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
accountId: string;
input: {
name?: string;
@@ -29,7 +29,7 @@ function applyAccountConfig(params: {
dmAllowlist?: string[];
autoDiscoverChannels?: boolean;
};
}): ClawdbotConfig {
}): MoltbotConfig {
const { cfg, accountId, input } = params;
const useDefault = accountId === DEFAULT_ACCOUNT_ID;
const base = cfg.channels?.tlon ?? {};