Merge 68838cdd9c4e29105c0aa9af3d9adfd77e1889f9 into 5e417b44e1540f528d2ae63e3e20229a902d1db2

This commit is contained in:
biefan 2026-03-20 23:53:06 -03:00 committed by GitHub
commit 036c37f565
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -198,7 +198,7 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
label: "cron",
description: "Schedule tasks",
sectionId: "automation",
profiles: ["coding"],
profiles: [],
includeInOpenClawGroup: true,
},
{

View File

@ -56,7 +56,7 @@ describe("tool-policy", () => {
it("resolves known profiles and ignores unknown ones", () => {
const coding = resolveToolProfilePolicy("coding");
expect(coding?.allow).toContain("read");
expect(coding?.allow).toContain("cron");
expect(coding?.allow).not.toContain("cron");
expect(coding?.allow).not.toContain("gateway");
expect(resolveToolProfilePolicy("nope")).toBeUndefined();
});

View File

@ -125,10 +125,11 @@ describe("tools invoke HTTP denylist", () => {
expect(cronRes.status).toBe(200);
});
it("keeps cron available under coding profile without exposing gateway", async () => {
it("requires an explicit tool allow override to expose cron under coding profile", async () => {
cfg = {
tools: {
profile: "coding",
allow: ["cron"],
},
gateway: {
tools: {