mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 04:01:23 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -6,7 +6,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
const tempDirs: string[] = [];
|
||||
|
||||
async function makeTempDir() {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-hooks-e2e-"));
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-hooks-e2e-"));
|
||||
tempDirs.push(dir);
|
||||
return dir;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ describe("hooks install (e2e)", () => {
|
||||
{
|
||||
name: "@acme/hello-hooks",
|
||||
version: "0.0.0",
|
||||
clawdbot: { hooks: ["./hooks/hello-hook"] },
|
||||
moltbot: { hooks: ["./hooks/hello-hook"] },
|
||||
},
|
||||
null,
|
||||
2,
|
||||
@@ -77,7 +77,7 @@ describe("hooks install (e2e)", () => {
|
||||
"---",
|
||||
'name: "hello-hook"',
|
||||
'description: "Test hook"',
|
||||
'metadata: {"clawdbot":{"events":["command:new"]}}',
|
||||
'metadata: {"moltbot":{"events":["command:new"]}}',
|
||||
"---",
|
||||
"",
|
||||
"# Hello Hook",
|
||||
|
||||
Reference in New Issue
Block a user