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

@@ -29,7 +29,7 @@ const mocks = vi.hoisted(() => {
return {
store,
resolveMoltbotAgentDir: vi.fn().mockReturnValue("/tmp/moltbot-agent"),
resolveOpenClawAgentDir: vi.fn().mockReturnValue("/tmp/openclaw-agent"),
ensureAuthProfileStore: vi.fn().mockReturnValue(store),
listProfilesForProvider: vi.fn((s: typeof store, provider: string) => {
return Object.entries(s.profiles)
@@ -39,7 +39,7 @@ const mocks = vi.hoisted(() => {
resolveAuthProfileDisplayLabel: vi.fn(({ profileId }: { profileId: string }) => profileId),
resolveAuthStorePathForDisplay: vi
.fn()
.mockReturnValue("/tmp/moltbot-agent/auth-profiles.json"),
.mockReturnValue("/tmp/openclaw-agent/auth-profiles.json"),
resolveEnvApiKey: vi.fn((provider: string) => {
if (provider === "openai") {
return {
@@ -72,7 +72,7 @@ const mocks = vi.hoisted(() => {
});
vi.mock("../../agents/agent-paths.js", () => ({
resolveMoltbotAgentDir: mocks.resolveMoltbotAgentDir,
resolveOpenClawAgentDir: mocks.resolveOpenClawAgentDir,
}));
vi.mock("../../agents/auth-profiles.js", async (importOriginal) => {
@@ -118,7 +118,7 @@ describe("modelsStatusCommand auth overview", () => {
const payload = JSON.parse(String((runtime.log as vi.Mock).mock.calls[0][0]));
expect(payload.defaultModel).toBe("anthropic/claude-opus-4-5");
expect(payload.auth.storePath).toBe("/tmp/moltbot-agent/auth-profiles.json");
expect(payload.auth.storePath).toBe("/tmp/openclaw-agent/auth-profiles.json");
expect(payload.auth.shellEnvFallback.enabled).toBe(true);
expect(payload.auth.shellEnvFallback.appliedKeys).toContain("OPENAI_API_KEY");
expect(payload.auth.missingProvidersInUse).toEqual([]);