PermissionGate
Category: Orchestrator
Source: permission_gate.dart
Enums
PermissionDecision
| Value | Description |
|---|---|
allow | |
ask | |
deny |
Classes
PermissionGate
Pure permission decision logic for tool calls.
Combines [ApprovalMode] (confirm vs auto) with per-tool trust and the user's trusted-tool allowlist.
Constructor
dart
const PermissionGate({
required this.approvalMode,
required this.trustedTools,
required this.tools,
required this.cwd,
})Properties
| Property | Type | Description |
|---|---|---|
approvalMode | ApprovalMode | |
trustedTools | Set<String> | |
tools | Map<String, Tool> | |
cwd | String |
Methods
PermissionDecision resolve(ToolCall call)
bool isTrusted(String toolName)
bool needsEarlyConfirmation(String toolName)
Whether this tool needs confirmation at ToolCallPending time.