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 { afterAll, beforeAll, describe, expect, it } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import { resolveTelegramReactionLevel } from "./reaction-level.js";
describe("resolveTelegramReactionLevel", () => {
@@ -19,7 +19,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("defaults to minimal level when reactionLevel is not set", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: { telegram: {} },
};
@@ -31,7 +31,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("returns off level with no reactions enabled", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: { telegram: { reactionLevel: "off" } },
};
@@ -43,7 +43,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("returns ack level with only ackEnabled", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: { telegram: { reactionLevel: "ack" } },
};
@@ -55,7 +55,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("returns minimal level with agent reactions enabled and minimal guidance", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: { telegram: { reactionLevel: "minimal" } },
};
@@ -67,7 +67,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("returns extensive level with agent reactions enabled and extensive guidance", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: { telegram: { reactionLevel: "extensive" } },
};
@@ -79,7 +79,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("resolves reaction level from a specific account", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: {
telegram: {
reactionLevel: "ack",
@@ -98,7 +98,7 @@ describe("resolveTelegramReactionLevel", () => {
});
it("falls back to global level when account has no reactionLevel", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
channels: {
telegram: {
reactionLevel: "minimal",