refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 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 { loadClawdbotPlugins } from "../plugins/loader.js";
import { loadMoltbotPlugins } 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, "clawdbot.plugin.json"),
path.join(pluginDir, "moltbot.plugin.json"),
JSON.stringify(
{
id: params.id,
@@ -67,7 +67,7 @@ describe("tool_result_persist hook", () => {
});
it("composes transforms in priority order and allows stripping toolResult.details", () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-toolpersist-"));
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-toolpersist-"));
process.env.CLAWDBOT_BUNDLED_PLUGINS_DIR = "/nonexistent/bundled/plugins";
const pluginA = writeTempPlugin({
@@ -94,7 +94,7 @@ describe("tool_result_persist hook", () => {
} };`,
});
loadClawdbotPlugins({
loadMoltbotPlugins({
cache: false,
workspaceDir: tmp,
config: {