mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:51:24 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -28,7 +28,7 @@ ${body ?? `# ${name}\n`}
|
||||
|
||||
describe("loadWorkspaceSkillEntries", () => {
|
||||
it("handles an empty managed skills dir without throwing", async () => {
|
||||
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-"));
|
||||
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-"));
|
||||
const managedDir = path.join(workspaceDir, ".managed");
|
||||
await fs.mkdir(managedDir, { recursive: true });
|
||||
|
||||
@@ -41,14 +41,14 @@ describe("loadWorkspaceSkillEntries", () => {
|
||||
});
|
||||
|
||||
it("includes plugin-shipped skills when the plugin is enabled", async () => {
|
||||
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-"));
|
||||
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-"));
|
||||
const managedDir = path.join(workspaceDir, ".managed");
|
||||
const bundledDir = path.join(workspaceDir, ".bundled");
|
||||
const pluginRoot = path.join(workspaceDir, ".clawdbot", "extensions", "open-prose");
|
||||
|
||||
await fs.mkdir(path.join(pluginRoot, "skills", "prose"), { recursive: true });
|
||||
await fs.writeFile(
|
||||
path.join(pluginRoot, "clawdbot.plugin.json"),
|
||||
path.join(pluginRoot, "moltbot.plugin.json"),
|
||||
JSON.stringify(
|
||||
{
|
||||
id: "open-prose",
|
||||
@@ -80,14 +80,14 @@ describe("loadWorkspaceSkillEntries", () => {
|
||||
});
|
||||
|
||||
it("excludes plugin-shipped skills when the plugin is not allowed", async () => {
|
||||
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-"));
|
||||
const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-"));
|
||||
const managedDir = path.join(workspaceDir, ".managed");
|
||||
const bundledDir = path.join(workspaceDir, ".bundled");
|
||||
const pluginRoot = path.join(workspaceDir, ".clawdbot", "extensions", "open-prose");
|
||||
|
||||
await fs.mkdir(path.join(pluginRoot, "skills", "prose"), { recursive: true });
|
||||
await fs.writeFile(
|
||||
path.join(pluginRoot, "clawdbot.plugin.json"),
|
||||
path.join(pluginRoot, "moltbot.plugin.json"),
|
||||
JSON.stringify(
|
||||
{
|
||||
id: "open-prose",
|
||||
|
||||
Reference in New Issue
Block a user