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

@@ -6,7 +6,7 @@ import type { AgentMessage } from "@mariozechner/pi-agent-core";
import { SessionManager } from "@mariozechner/pi-coding-agent";
import { describe, expect, it, afterEach } from "vitest";
import { loadMoltbotPlugins } from "../plugins/loader.js";
import { loadOpenClawPlugins } from "../plugins/loader.js";
import { resetGlobalHookRunner } from "../plugins/hook-runner-global.js";
import { guardSessionManager } from "./session-tool-result-guard-wrapper.js";
@@ -18,7 +18,7 @@ function writeTempPlugin(params: { dir: string; id: string; body: string }): str
const file = path.join(pluginDir, `${params.id}.mjs`);
fs.writeFileSync(file, params.body, "utf-8");
fs.writeFileSync(
path.join(pluginDir, "moltbot.plugin.json"),
path.join(pluginDir, "openclaw.plugin.json"),
JSON.stringify(
{
id: params.id,
@@ -67,8 +67,8 @@ describe("tool_result_persist hook", () => {
});
it("composes transforms in priority order and allows stripping toolResult.details", () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-toolpersist-"));
process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR = "/nonexistent/bundled/plugins";
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-toolpersist-"));
process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = "/nonexistent/bundled/plugins";
const pluginA = writeTempPlugin({
dir: tmp,
@@ -94,7 +94,7 @@ describe("tool_result_persist hook", () => {
} };`,
});
loadMoltbotPlugins({
loadOpenClawPlugins({
cache: false,
workspaceDir: tmp,
config: {