feat: notify on exec exit

This commit is contained in:
Peter Steinberger
2026-01-17 05:43:27 +00:00
parent 68d35be383
commit 07a3db153d
18 changed files with 130 additions and 32 deletions

View File

@@ -141,6 +141,18 @@ describe("legacy config detection", () => {
});
expect((res.config as { agent?: unknown }).agent).toBeUndefined();
});
it("migrates tools.bash to tools.exec", async () => {
vi.resetModules();
const { migrateLegacyConfig } = await import("./config.js");
const res = migrateLegacyConfig({
tools: {
bash: { timeoutSec: 12 },
},
});
expect(res.changes).toContain("Moved tools.bash → tools.exec.");
expect(res.config?.tools?.exec).toEqual({ timeoutSec: 12 });
expect((res.config?.tools as { bash?: unknown } | undefined)?.bash).toBeUndefined();
});
it("accepts per-agent tools.elevated overrides", async () => {
vi.resetModules();
const { validateConfigObject } = await import("./config.js");