refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import { makePrompter } from "./onboarding/__tests__/test-utils.js";
import {
applyModelAllowlist,
@@ -53,7 +53,7 @@ describe("promptDefaultModel", () => {
return first?.value ?? "";
});
const prompter = makePrompter({ select });
const config = { agents: { defaults: {} } } as MoltbotConfig;
const config = { agents: { defaults: {} } } as OpenClawConfig;
await promptDefaultModel({
config,
@@ -90,7 +90,7 @@ describe("promptModelAllowlist", () => {
params.options.map((option: { value: string }) => option.value),
);
const prompter = makePrompter({ multiselect });
const config = { agents: { defaults: {} } } as MoltbotConfig;
const config = { agents: { defaults: {} } } as OpenClawConfig;
await promptModelAllowlist({ config, prompter });
@@ -126,7 +126,7 @@ describe("promptModelAllowlist", () => {
params.options.map((option: { value: string }) => option.value),
);
const prompter = makePrompter({ multiselect });
const config = { agents: { defaults: {} } } as MoltbotConfig;
const config = { agents: { defaults: {} } } as OpenClawConfig;
await promptModelAllowlist({
config,
@@ -152,7 +152,7 @@ describe("applyModelAllowlist", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const next = applyModelAllowlist(config, ["openai/gpt-5.2"]);
expect(next.agents?.defaults?.models).toEqual({
@@ -169,7 +169,7 @@ describe("applyModelAllowlist", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const next = applyModelAllowlist(config, []);
expect(next.agents?.defaults?.models).toBeUndefined();
@@ -184,7 +184,7 @@ describe("applyModelFallbacksFromSelection", () => {
model: { primary: "anthropic/claude-opus-4-5" },
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const next = applyModelFallbacksFromSelection(config, [
"anthropic/claude-opus-4-5",
@@ -203,7 +203,7 @@ describe("applyModelFallbacksFromSelection", () => {
model: { primary: "anthropic/claude-opus-4-5", fallbacks: ["openai/gpt-5.2"] },
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const next = applyModelFallbacksFromSelection(config, ["openai/gpt-5.2"]);
expect(next.agents?.defaults?.model).toEqual({