Expand description
Rule-based permission engine.
PermissionEngine evaluates an ordered list of PermissionRules
against a tool call. Rules are matched on tool name (with optional *
wildcard suffix), a command prefix (for shell-style tools), and a cwd
prefix. The result of the last matching rule wins — order rules from
general to specific.
Structs§
- Permission
Engine - Ordered list of permission rules consulted by the executor before every tool call.
- Permission
Rule - A single permission rule. Use the constructor / builder methods to build one.
Enums§
- Rule
Decision - Outcome of a permission check for a tool call.
- Shell
Kind - Shell dialect used for command-prefix extraction and matching.