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 fs from "node:fs/promises";
import path from "node:path";
import { resolveAgentWorkspaceDir } from "../../agents/agent-scope.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { loadSessionStore, resolveStorePath } from "../../config/sessions.js";
import { listAgentsForGateway } from "../../gateway/session-utils.js";
@@ -14,7 +14,7 @@ async function fileExists(p: string): Promise<boolean> {
}
}
export async function getAgentLocalStatuses(cfg: ClawdbotConfig) {
export async function getAgentLocalStatuses(cfg: MoltbotConfig) {
const agentList = listAgentsForGateway(cfg);
const now = Date.now();

View File

@@ -7,7 +7,7 @@ import type {
ChannelId,
ChannelPlugin,
} from "../../channels/plugins/types.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { formatAge } from "./format.js";
export type ChannelRow = {
@@ -78,7 +78,7 @@ const formatAccountLabel = (params: { accountId: string; name?: string }) => {
const resolveAccountEnabled = (
plugin: ChannelPlugin,
account: unknown,
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
): boolean => {
if (plugin.config.isEnabled) return plugin.config.isEnabled(account, cfg);
const enabled = asRecord(account).enabled;
@@ -88,7 +88,7 @@ const resolveAccountEnabled = (
const resolveAccountConfigured = async (
plugin: ChannelPlugin,
account: unknown,
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
): Promise<boolean> => {
if (plugin.config.isConfigured) {
return await plugin.config.isConfigured(account, cfg);
@@ -100,7 +100,7 @@ const resolveAccountConfigured = async (
const buildAccountSnapshot = (params: {
plugin: ChannelPlugin;
account: unknown;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
accountId: string;
enabled: boolean;
configured: boolean;
@@ -116,7 +116,7 @@ const buildAccountSnapshot = (params: {
const formatAllowFrom = (params: {
plugin: ChannelPlugin;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
accountId?: string | null;
allowFrom: Array<string | number>;
}) => {
@@ -132,7 +132,7 @@ const formatAllowFrom = (params: {
const buildAccountNotes = (params: {
plugin: ChannelPlugin;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
entry: ChannelAccountRow;
}) => {
const { plugin, cfg, entry } = params;
@@ -206,7 +206,7 @@ function collectMissingPaths(accounts: ChannelAccountRow[]): string[] {
function summarizeTokenConfig(params: {
plugin: ChannelPlugin;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
accounts: ChannelAccountRow[];
showSecrets: boolean;
}): { state: "ok" | "setup" | "warn" | null; detail: string | null } {
@@ -291,7 +291,7 @@ function summarizeTokenConfig(params: {
// `status --all` channels table.
// Keep this generic: channel-specific rules belong in the channel plugin.
export async function buildChannelsTable(
cfg: ClawdbotConfig,
cfg: MoltbotConfig,
opts?: { showSecrets?: boolean },
): Promise<{
rows: ChannelRow[];

View File

@@ -140,7 +140,7 @@ export async function buildStatusAllReportLines(params: {
});
const lines: string[] = [];
lines.push(heading("Clawdbot status --all"));
lines.push(heading("Moltbot status --all"));
lines.push("");
lines.push(heading("Overview"));
lines.push(overview.trimEnd());