test(plugin-handlers): update all plugin handler tests

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-10 15:53:25 +09:00
parent c21c3630ca
commit 77af6c643e
5 changed files with 218 additions and 123 deletions
@@ -267,23 +267,6 @@ describe("applyToolConfig", () => {
})
})
describe("#given prometheus agent permissions", () => {
describe("#when applying tool config", () => {
it("#then should deny task delegation tools for prometheus", () => {
const params = createParams({ agents: ["prometheus"] })
applyToolConfig(params)
const agent = params.agentResult.prometheus as {
permission: Record<string, unknown>
}
expect(agent.permission.task).toBe("deny")
expect(agent.permission["task_*"]).toBe("deny")
expect(agent.permission.teammate).toBe("deny")
})
})
})
describe("#given disabled_tools includes 'question'", () => {
let originalConfigContent: string | undefined
let originalCliRunMode: string | undefined