mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:30:42 +00:00
refactor: simplify plugin dependency handling
Simplify plugin installation and runtime loading around package-manager-owned dependencies, with Jiti reserved for local/TS fallback paths. Also scans npm plugin install roots so hoisted transitive dependencies are covered by dependency denylist and node_modules symlink checks.
This commit is contained in:
committed by
GitHub
parent
2e8e9cd6ca
commit
ed8f50f240
@@ -56,7 +56,6 @@ describe("ensureCliCommandBootstrap", () => {
|
||||
expect(ensureCliPluginRegistryLoadedMock).toHaveBeenCalledWith({
|
||||
scope: "channels",
|
||||
routeLogsToStderr: true,
|
||||
installBundledRuntimeDeps: false,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -73,7 +72,7 @@ describe("ensureCliCommandBootstrap", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("loads configured channel plugins without repairing runtime deps for read-only channel commands", async () => {
|
||||
it("loads configured channel plugins without package-manager repair for read-only channel commands", async () => {
|
||||
await ensureCliCommandBootstrap({
|
||||
runtime: {} as never,
|
||||
commandPath: ["channels", "resolve"],
|
||||
@@ -83,7 +82,6 @@ describe("ensureCliCommandBootstrap", () => {
|
||||
expect(ensureCliPluginRegistryLoadedMock).toHaveBeenCalledWith({
|
||||
scope: "configured-channels",
|
||||
routeLogsToStderr: undefined,
|
||||
installBundledRuntimeDeps: false,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -97,7 +95,6 @@ describe("ensureCliCommandBootstrap", () => {
|
||||
expect(ensureCliPluginRegistryLoadedMock).toHaveBeenCalledWith({
|
||||
scope: "all",
|
||||
routeLogsToStderr: undefined,
|
||||
installBundledRuntimeDeps: true,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user