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,10 +1,10 @@
import { describe, expect, it } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import { resolveHeartbeatVisibility } from "./heartbeat-visibility.js";
describe("resolveHeartbeatVisibility", () => {
it("returns default values when no config is provided", () => {
const cfg = {} as MoltbotConfig;
const cfg = {} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "telegram" });
expect(result).toEqual({
@@ -25,7 +25,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "telegram" });
@@ -52,7 +52,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "telegram" });
@@ -88,7 +88,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({
cfg,
@@ -120,7 +120,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({
cfg,
@@ -151,7 +151,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "telegram" });
@@ -174,7 +174,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({
cfg,
@@ -195,7 +195,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "whatsapp" });
@@ -215,7 +215,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "discord" });
@@ -237,7 +237,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "slack" });
@@ -259,7 +259,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "webchat" });
@@ -271,7 +271,7 @@ describe("resolveHeartbeatVisibility", () => {
});
it("webchat returns defaults when no channel defaults configured", () => {
const cfg = {} as MoltbotConfig;
const cfg = {} as OpenClawConfig;
const result = resolveHeartbeatVisibility({ cfg, channel: "webchat" });
@@ -291,7 +291,7 @@ describe("resolveHeartbeatVisibility", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const result = resolveHeartbeatVisibility({
cfg,