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,7 +4,7 @@ import os from "node:os";
import path from "node:path";
import { Readable } from "node:stream";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
type SpawnCall = {
command: string;
@@ -82,24 +82,24 @@ describe("sandbox skill mirroring", () => {
});
const runContext = async (workspaceAccess: "none" | "ro") => {
const stateDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-state-"));
const stateDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-state-"));
const bundledDir = path.join(stateDir, "bundled-skills");
await fs.mkdir(bundledDir, { recursive: true });
process.env.CLAWDBOT_STATE_DIR = stateDir;
process.env.CLAWDBOT_BUNDLED_SKILLS_DIR = bundledDir;
process.env.OPENCLAW_STATE_DIR = stateDir;
process.env.OPENCLAW_BUNDLED_SKILLS_DIR = bundledDir;
vi.resetModules();
const { resolveSandboxContext } = await import("./sandbox.js");
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-workspace-"));
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-workspace-"));
await writeSkill({
dir: path.join(workspaceDir, "skills", "demo-skill"),
name: "demo-skill",
description: "Demo skill",
});
const cfg: MoltbotConfig = {
const cfg: OpenClawConfig = {
agents: {
defaults: {
sandbox: {