fix(cli): repair agent runtime deps during startup

This commit is contained in:
Peter Steinberger
2026-05-01 11:52:01 +01:00
parent ef832f83f6
commit b48dcab1b5
4 changed files with 18 additions and 0 deletions

View File

@@ -87,6 +87,20 @@ describe("ensureCliCommandBootstrap", () => {
});
});
it("loads agent command plugins with bundled runtime repair enabled", async () => {
await ensureCliCommandBootstrap({
runtime: {} as never,
commandPath: ["agent"],
loadPlugins: true,
});
expect(ensureCliPluginRegistryLoadedMock).toHaveBeenCalledWith({
scope: "all",
routeLogsToStderr: undefined,
installBundledRuntimeDeps: true,
});
});
it("does nothing extra when plugin loading is disabled", async () => {
await ensureCliCommandBootstrap({
runtime: {} as never,