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,18 +4,18 @@ 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 { buildSystemPromptParams } from "./system-prompt-params.js";
async function makeTempDir(label: string): Promise<string> {
return fs.mkdtemp(path.join(os.tmpdir(), `moltbot-${label}-`));
return fs.mkdtemp(path.join(os.tmpdir(), `openclaw-${label}-`));
}
async function makeRepoRoot(root: string): Promise<void> {
await fs.mkdir(path.join(root, ".git"), { recursive: true });
}
function buildParams(params: { config?: MoltbotConfig; workspaceDir?: string; cwd?: string }) {
function buildParams(params: { config?: OpenClawConfig; workspaceDir?: string; cwd?: string }) {
return buildSystemPromptParams({
config: params.config,
workspaceDir: params.workspaceDir,
@@ -63,7 +63,7 @@ describe("buildSystemPromptParams repo root", () => {
await fs.mkdir(workspaceDir, { recursive: true });
await makeRepoRoot(workspaceDir);
const config: MoltbotConfig = {
const config: OpenClawConfig = {
agents: {
defaults: {
repoRoot,
@@ -83,7 +83,7 @@ describe("buildSystemPromptParams repo root", () => {
await fs.mkdir(workspaceDir, { recursive: true });
await makeRepoRoot(repoRoot);
const config: MoltbotConfig = {
const config: OpenClawConfig = {
agents: {
defaults: {
repoRoot: path.join(temp, "missing"),