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

@@ -3,7 +3,7 @@ import path from "node:path";
import { describe, expect, it } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import {
applyAgentBindings,
applyAgentConfig,
@@ -13,7 +13,7 @@ import {
describe("agents helpers", () => {
it("buildAgentSummaries includes default + configured agents", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
agents: {
defaults: {
workspace: "/main-ws",
@@ -45,7 +45,7 @@ describe("agents helpers", () => {
const work = summaries.find((summary) => summary.id === "work");
expect(main).toBeTruthy();
expect(main?.workspace).toBe(path.join(os.homedir(), "clawd-main"));
expect(main?.workspace).toBe(path.join(os.homedir(), ".openclaw", "workspace-main"));
expect(main?.bindings).toBe(1);
expect(main?.model).toBe("anthropic/claude");
expect(main?.agentDir.endsWith(path.join("agents", "main", "agent"))).toBe(true);
@@ -59,7 +59,7 @@ describe("agents helpers", () => {
});
it("applyAgentConfig merges updates", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
agents: {
list: [{ id: "work", workspace: "/old-ws", model: "anthropic/claude" }],
},
@@ -80,7 +80,7 @@ describe("agents helpers", () => {
});
it("applyAgentBindings skips duplicates and reports conflicts", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
bindings: [
{
agentId: "main",
@@ -111,7 +111,7 @@ describe("agents helpers", () => {
});
it("pruneAgentConfig removes agent, bindings, and allowlist entries", () => {
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
agents: {
list: [
{ id: "work", default: true, workspace: "/work-ws" },