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

@@ -12,7 +12,7 @@ vi.mock("./agent.js", () => ({
agentCommand: vi.fn(),
}));
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import * as configModule from "../config/config.js";
import { callGateway } from "../gateway/call.js";
import type { RuntimeEnv } from "../runtime.js";
@@ -27,7 +27,7 @@ const runtime: RuntimeEnv = {
const configSpy = vi.spyOn(configModule, "loadConfig");
function mockConfig(storePath: string, overrides?: Partial<ClawdbotConfig>) {
function mockConfig(storePath: string, overrides?: Partial<MoltbotConfig>) {
configSpy.mockReturnValue({
agents: {
defaults: {
@@ -50,7 +50,7 @@ beforeEach(() => {
describe("agentCliCommand", () => {
it("uses gateway by default", async () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-agent-cli-"));
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-agent-cli-"));
const store = path.join(dir, "sessions.json");
mockConfig(store);
@@ -75,7 +75,7 @@ describe("agentCliCommand", () => {
});
it("falls back to embedded agent when gateway fails", async () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-agent-cli-"));
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-agent-cli-"));
const store = path.join(dir, "sessions.json");
mockConfig(store);
@@ -97,7 +97,7 @@ describe("agentCliCommand", () => {
});
it("skips gateway when --local is set", async () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-agent-cli-"));
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-agent-cli-"));
const store = path.join(dir, "sessions.json");
mockConfig(store);