data/hooks/permission_hooks library
Classes
- FilePermissionChecker
- Checks file-system permissions against sandbox rules and protected paths.
- GitPermissionChecker
- Checks permissions for git operations.
- PermissionAuditEntry
- A single audit log entry.
- PermissionAuditLog
- Records all permission requests and decisions for auditing.
- PermissionCache
- TTL-aware cache for PermissionDecisions.
- PermissionDecision
- The result of evaluating a PermissionRequest against rules.
- PermissionPatternMatcher
- Utility class for matching permission patterns against values.
- PermissionRequest
- A request to perform a permissioned operation.
- PermissionRule
- A single permission rule that matches requests by scope, action, and resource pattern.
- PermissionRuleSet
- An ordered collection of PermissionRules with a default fallback level.
- ToolPermissionChecker
- Checks permissions for tool execution, including input validation and dangerous command detection.
Enums
- PermissionLevel
- The decision level for a permission request.
- PermissionScope
- Categories of operations that require permission checks.
- RiskLevel
- Risk classification for a permission request.