fix(cli): repair agent runtime deps during startup · openclaw/openclaw@b48dcab
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -87,6 +87,20 @@ describe("ensureCliCommandBootstrap", () => {
|
87 | 87 | }); |
88 | 88 | }); |
89 | 89 | |
| 90 | +it("loads agent command plugins with bundled runtime repair enabled", async () => { |
| 91 | +await ensureCliCommandBootstrap({ |
| 92 | +runtime: {} as never, |
| 93 | +commandPath: ["agent"], |
| 94 | +loadPlugins: true, |
| 95 | +}); |
| 96 | + |
| 97 | +expect(ensureCliPluginRegistryLoadedMock).toHaveBeenCalledWith({ |
| 98 | +scope: "all", |
| 99 | +routeLogsToStderr: undefined, |
| 100 | +installBundledRuntimeDeps: true, |
| 101 | +}); |
| 102 | +}); |
| 103 | + |
90 | 104 | it("does nothing extra when plugin loading is disabled", async () => { |
91 | 105 | await ensureCliCommandBootstrap({ |
92 | 106 | runtime: {} as never, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。