fix(core): enforce V2 tool permissions (#31061)
This commit is contained in:
@@ -101,6 +101,7 @@ describe("ReadTool", () => {
|
||||
const registry = yield* ToolRegistry.Service
|
||||
|
||||
expect(yield* registry.definitions()).toMatchObject([{ name: "read" }])
|
||||
expect(yield* registry.definitions([{ action: "read", resource: "*", effect: "deny" }])).toEqual([])
|
||||
expect(
|
||||
yield* registry.execute({
|
||||
sessionID,
|
||||
|
||||
Reference in New Issue
Block a user