mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:40: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
@@ -425,7 +425,7 @@ describe("inspectGatewayRestart", () => {
|
||||
id: "telegram",
|
||||
origin: "bundled",
|
||||
activated: true,
|
||||
error: "failed to install bundled runtime deps: ENOSPC",
|
||||
error: "failed to load plugin dependency: ENOSPC",
|
||||
},
|
||||
{
|
||||
id: "optional",
|
||||
@@ -458,7 +458,7 @@ describe("inspectGatewayRestart", () => {
|
||||
id: "telegram",
|
||||
origin: "bundled",
|
||||
activated: true,
|
||||
error: "failed to install bundled runtime deps: ENOSPC",
|
||||
error: "failed to load plugin dependency: ENOSPC",
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -467,7 +467,7 @@ describe("inspectGatewayRestart", () => {
|
||||
|
||||
const { renderRestartDiagnostics } = await import("./restart-health.js");
|
||||
expect(renderRestartDiagnostics(snapshot).join("\n")).toContain(
|
||||
"Activated plugin load errors:\n- telegram: failed to install bundled runtime deps: ENOSPC",
|
||||
"Activated plugin load errors:\n- telegram: failed to load plugin dependency: ENOSPC",
|
||||
);
|
||||
});
|
||||
|
||||
@@ -484,7 +484,7 @@ describe("inspectGatewayRestart", () => {
|
||||
id: "telegram",
|
||||
origin: "bundled",
|
||||
activated: true,
|
||||
error: "failed to install bundled runtime deps: ENOSPC",
|
||||
error: "failed to load plugin dependency: ENOSPC",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user