fix(test): sync AGENTS_WITH_TODO_DENY with tool-config-handler implementation
This commit is contained in:
parent
05c04838f4
commit
9f804c2a6a
@ -1161,8 +1161,6 @@ describe("per-agent todowrite/todoread deny when task_system enabled", () => {
|
|||||||
getAgentDisplayName("sisyphus"),
|
getAgentDisplayName("sisyphus"),
|
||||||
getAgentDisplayName("hephaestus"),
|
getAgentDisplayName("hephaestus"),
|
||||||
getAgentDisplayName("atlas"),
|
getAgentDisplayName("atlas"),
|
||||||
])
|
|
||||||
const AGENTS_WITHOUT_TODO_DENY = new Set([
|
|
||||||
getAgentDisplayName("prometheus"),
|
getAgentDisplayName("prometheus"),
|
||||||
getAgentDisplayName("sisyphus-junior"),
|
getAgentDisplayName("sisyphus-junior"),
|
||||||
])
|
])
|
||||||
@ -1206,10 +1204,6 @@ describe("per-agent todowrite/todoread deny when task_system enabled", () => {
|
|||||||
expect(agentResult[agentName]?.permission?.todowrite).toBe("deny")
|
expect(agentResult[agentName]?.permission?.todowrite).toBe("deny")
|
||||||
expect(agentResult[agentName]?.permission?.todoread).toBe("deny")
|
expect(agentResult[agentName]?.permission?.todoread).toBe("deny")
|
||||||
}
|
}
|
||||||
for (const agentName of AGENTS_WITHOUT_TODO_DENY) {
|
|
||||||
expect(agentResult[agentName]?.permission?.todowrite).toBeUndefined()
|
|
||||||
expect(agentResult[agentName]?.permission?.todoread).toBeUndefined()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test("does not deny todowrite/todoread when task_system is disabled", async () => {
|
test("does not deny todowrite/todoread when task_system is disabled", async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user