mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-25 23:47:20 +00:00
perf(plugins): lazy-create jiti loader
This commit is contained in:
@@ -66,7 +66,7 @@ describe("loadOpenClawPlugins", () => {
|
||||
id: "bundled",
|
||||
body: `export default { id: "bundled", register() {} };`,
|
||||
dir: bundledDir,
|
||||
filename: "bundled.ts",
|
||||
filename: "bundled.js",
|
||||
});
|
||||
process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = bundledDir;
|
||||
|
||||
@@ -121,9 +121,9 @@ describe("loadOpenClawPlugins", () => {
|
||||
outbound: { deliveryMode: "direct" }
|
||||
}
|
||||
});
|
||||
} };`,
|
||||
} };`,
|
||||
dir: bundledDir,
|
||||
filename: "telegram.ts",
|
||||
filename: "telegram.js",
|
||||
});
|
||||
process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = bundledDir;
|
||||
|
||||
@@ -150,7 +150,7 @@ describe("loadOpenClawPlugins", () => {
|
||||
id: "memory-core",
|
||||
body: `export default { id: "memory-core", kind: "memory", register() {} };`,
|
||||
dir: bundledDir,
|
||||
filename: "memory-core.ts",
|
||||
filename: "memory-core.js",
|
||||
});
|
||||
process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = bundledDir;
|
||||
|
||||
@@ -180,7 +180,7 @@ describe("loadOpenClawPlugins", () => {
|
||||
name: "@openclaw/memory-core",
|
||||
version: "1.2.3",
|
||||
description: "Memory plugin package",
|
||||
openclaw: { extensions: ["./index.ts"] },
|
||||
openclaw: { extensions: ["./index.js"] },
|
||||
}),
|
||||
"utf-8",
|
||||
);
|
||||
@@ -188,7 +188,7 @@ describe("loadOpenClawPlugins", () => {
|
||||
id: "memory-core",
|
||||
body: `export default { id: "memory-core", kind: "memory", name: "Memory (Core)", register() {} };`,
|
||||
dir: pluginDir,
|
||||
filename: "index.ts",
|
||||
filename: "index.js",
|
||||
});
|
||||
|
||||
process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = bundledDir;
|
||||
|
||||
Reference in New Issue
Block a user