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,5 +1,5 @@
import { describe, expect, test } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import type { SessionEntry } from "../config/sessions.js";
import { applySessionsPatchToStore } from "./sessions-patch.js";
@@ -7,7 +7,7 @@ describe("gateway sessions patch", () => {
test("persists elevatedLevel=off (does not clear)", async () => {
const store: Record<string, SessionEntry> = {};
const res = await applySessionsPatchToStore({
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
store,
storeKey: "agent:main:main",
patch: { elevatedLevel: "off" },
@@ -20,7 +20,7 @@ describe("gateway sessions patch", () => {
test("persists elevatedLevel=on", async () => {
const store: Record<string, SessionEntry> = {};
const res = await applySessionsPatchToStore({
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
store,
storeKey: "agent:main:main",
patch: { elevatedLevel: "on" },
@@ -35,7 +35,7 @@ describe("gateway sessions patch", () => {
"agent:main:main": { elevatedLevel: "off" } as SessionEntry,
};
const res = await applySessionsPatchToStore({
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
store,
storeKey: "agent:main:main",
patch: { elevatedLevel: null },
@@ -48,7 +48,7 @@ describe("gateway sessions patch", () => {
test("rejects invalid elevatedLevel values", async () => {
const store: Record<string, SessionEntry> = {};
const res = await applySessionsPatchToStore({
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
store,
storeKey: "agent:main:main",
patch: { elevatedLevel: "maybe" },
@@ -71,7 +71,7 @@ describe("gateway sessions patch", () => {
} as SessionEntry,
};
const res = await applySessionsPatchToStore({
cfg: {} as MoltbotConfig,
cfg: {} as OpenClawConfig,
store,
storeKey: "agent:main:main",
patch: { model: "openai/gpt-5.2" },