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 { beforeEach, describe, expect, it, vi } from "vitest";
import type { CliDeps } from "../cli/deps.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";
import type { SessionEntry } from "../config/sessions.js";
@@ -37,7 +37,7 @@ describe("deliverAgentCommandResult", () => {
});
it("prefers explicit accountId for outbound delivery", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),
@@ -74,7 +74,7 @@ describe("deliverAgentCommandResult", () => {
});
it("falls back to session accountId for implicit delivery", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),
@@ -110,7 +110,7 @@ describe("deliverAgentCommandResult", () => {
});
it("does not infer accountId for explicit delivery targets", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),
@@ -150,7 +150,7 @@ describe("deliverAgentCommandResult", () => {
});
it("skips session accountId when channel differs", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),
@@ -186,7 +186,7 @@ describe("deliverAgentCommandResult", () => {
});
it("uses session last channel when none is provided", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),
@@ -221,7 +221,7 @@ describe("deliverAgentCommandResult", () => {
});
it("uses reply overrides for delivery routing", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),
@@ -261,7 +261,7 @@ describe("deliverAgentCommandResult", () => {
});
it("prefixes nested agent outputs with context", async () => {
const cfg = {} as ClawdbotConfig;
const cfg = {} as MoltbotConfig;
const deps = {} as CliDeps;
const runtime = {
log: vi.fn(),