r026: add dynamic agent toolbox integration

This commit is contained in:
Mikei386 committed 2026-08-29 12:44:29 +02:00
1 parent 3c03924110
commit 63542bb29e
13 files changed
+184 -11

No files matched your search

+10
View File
@@ -23,6 +23,16 @@ describe("secure tool configuration", () => {
expect(cfg.enabledTools).toEqual([]);
});
test("toolbox integration is opt-in and parsed independently", () => {
const off = parseConfig("MUA_API_KEY=test\nMUA_ENABLED_TOOLS=none\n");
const on = parseConfig(
"MUA_API_KEY=test\nMUA_ENABLED_TOOLS=none\nMUA_TOOLBOX_ENABLED=true\n",
);
expect(off.toolboxEnabled).toBe(false);
expect(on.toolboxEnabled).toBe(true);
expect(on.enabledTools).toEqual([]);
});
test("an enabled legacy update also exposes the safer batch update", () => {
const cfg = parseConfig(
"MUA_API_KEY=test\nMUA_ENABLED_TOOLS=unraid_docker_update\n",