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,5 +1,5 @@
import { describe, expect, it } from "vitest";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import {
estimateUsageCost,
formatTokenCount,
@@ -35,7 +35,7 @@ describe("usage-format", () => {
},
},
},
} as ClawdbotConfig;
} as MoltbotConfig;
const cost = resolveModelCostConfig({
provider: "test",

View File

@@ -1,5 +1,5 @@
import type { NormalizedUsage } from "../agents/usage.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
export type ModelCostConfig = {
input: number;
@@ -34,7 +34,7 @@ export function formatUsd(value?: number): string | undefined {
export function resolveModelCostConfig(params: {
provider?: string;
model?: string;
config?: ClawdbotConfig;
config?: MoltbotConfig;
}): ModelCostConfig | undefined {
const provider = params.provider?.trim();
const model = params.model?.trim();