mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 08:41:41 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user