fix(automation): harden announce delivery + cron coding profile (#25813 #25821 #25822)

Co-authored-by: Shawn <shenghuikevin@shenghuideMac-mini.local>
Co-authored-by: 不做了睡大觉 <user@example.com>
Co-authored-by: Marcus Widing <widing.marcus@gmail.com>
This commit is contained in:
Peter Steinberger
2026-02-24 23:48:49 +00:00
parent 36d1e1dcff
commit 53f9b7d4e7
7 changed files with 255 additions and 30 deletions

View File

@@ -120,4 +120,23 @@ describe("tools invoke HTTP denylist", () => {
expect(cronRes.status).toBe(200);
});
it("keeps cron available under coding profile without exposing gateway", async () => {
cfg = {
tools: {
profile: "coding",
},
gateway: {
tools: {
allow: ["cron"],
},
},
};
const cronRes = await invoke("cron");
const gatewayRes = await invoke("gateway");
expect(cronRes.status).toBe(200);
expect(gatewayRes.status).toBe(404);
});
});