fix(core): enforce V2 tool permissions (#31061)

This commit is contained in:
Kit Langton
2026-06-06 08:00:24 -04:00
committed by GitHub
parent 747b8daafc
commit 4814ab3a3d
10 changed files with 180 additions and 10 deletions
+1
View File
@@ -110,6 +110,7 @@ describe("EditTool", () => {
withTool(tmp.path, (registry) =>
Effect.gen(function* () {
expect((yield* registry.definitions()).map((tool) => tool.name)).toEqual(["edit"])
expect(yield* registry.definitions([{ action: "edit", resource: "*", effect: "deny" }])).toEqual([])
const settled = yield* registry.settle(
call({ path: "hello.txt", oldString: "before", newString: "after" }),
)