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

@@ -4,13 +4,13 @@ import os from "node:os";
import path from "node:path";
import { describe, expect, it, vi } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import type { AuthProfileStore } from "./auth-profiles.js";
import { saveAuthProfileStore } from "./auth-profiles.js";
import { AUTH_STORE_VERSION } from "./auth-profiles/constants.js";
import { runWithModelFallback } from "./model-fallback.js";
function makeCfg(overrides: Partial<MoltbotConfig> = {}): MoltbotConfig {
function makeCfg(overrides: Partial<OpenClawConfig> = {}): OpenClawConfig {
return {
agents: {
defaults: {
@@ -21,7 +21,7 @@ function makeCfg(overrides: Partial<MoltbotConfig> = {}): MoltbotConfig {
},
},
...overrides,
} as MoltbotConfig;
} as OpenClawConfig;
}
describe("runWithModelFallback", () => {
@@ -125,7 +125,7 @@ describe("runWithModelFallback", () => {
});
it("skips providers when all profiles are in cooldown", async () => {
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-auth-"));
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-auth-"));
const provider = `cooldown-test-${crypto.randomUUID()}`;
const profileId = `${provider}:default`;
@@ -180,7 +180,7 @@ describe("runWithModelFallback", () => {
});
it("does not skip when any profile is available", async () => {
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-auth-"));
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-auth-"));
const provider = `cooldown-mixed-${crypto.randomUUID()}`;
const profileA = `${provider}:a`;
const profileB = `${provider}:b`;
@@ -279,7 +279,7 @@ describe("runWithModelFallback", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const calls: Array<{ provider: string; model: string }> = [];
@@ -316,7 +316,7 @@ describe("runWithModelFallback", () => {
},
},
},
} as MoltbotConfig;
} as OpenClawConfig;
const calls: Array<{ provider: string; model: string }> = [];