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

@@ -7,7 +7,7 @@ import {
normalizeProviderId,
modelKey,
} from "./model-selection.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
describe("model-selection", () => {
describe("normalizeProviderId", () => {
@@ -49,7 +49,7 @@ describe("model-selection", () => {
describe("buildModelAliasIndex", () => {
it("should build alias index from config", () => {
const cfg: Partial<ClawdbotConfig> = {
const cfg: Partial<MoltbotConfig> = {
agents: {
defaults: {
models: {
@@ -61,7 +61,7 @@ describe("model-selection", () => {
};
const index = buildModelAliasIndex({
cfg: cfg as ClawdbotConfig,
cfg: cfg as MoltbotConfig,
defaultProvider: "anthropic",
});
@@ -105,7 +105,7 @@ describe("model-selection", () => {
describe("resolveConfiguredModelRef", () => {
it("should fall back to anthropic and warn if provider is missing for non-alias", () => {
const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {});
const cfg: Partial<ClawdbotConfig> = {
const cfg: Partial<MoltbotConfig> = {
agents: {
defaults: {
model: "claude-3-5-sonnet",
@@ -114,7 +114,7 @@ describe("model-selection", () => {
};
const result = resolveConfiguredModelRef({
cfg: cfg as ClawdbotConfig,
cfg: cfg as MoltbotConfig,
defaultProvider: "google",
defaultModel: "gemini-pro",
});
@@ -127,9 +127,9 @@ describe("model-selection", () => {
});
it("should use default provider/model if config is empty", () => {
const cfg: Partial<ClawdbotConfig> = {};
const cfg: Partial<MoltbotConfig> = {};
const result = resolveConfiguredModelRef({
cfg: cfg as ClawdbotConfig,
cfg: cfg as MoltbotConfig,
defaultProvider: "openai",
defaultModel: "gpt-4",
});