Skip to main content

Crate codewhale_execpolicy

Crate codewhale_execpolicy 

Source

Modules§

bash_arity
Bash arity dictionary for command-prefix allow rule matching.

Structs§

ExecPolicyAmendment
A proposed amendment to the execution policy, suggesting new trusted prefixes.
ExecPolicyContext
Input context provided to the execution policy engine for a single check.
ExecPolicyDecision
The result of evaluating a command against the execution policy.
ExecPolicyEngine
Ruleset
A named set of allow/deny prefix rules at a given priority layer.
ToolAskRule
Typed rule that marks a tool invocation as requiring approval.

Enums§

AskForApproval
Policy mode controlling when tool invocations require human approval.
ExecApprovalRequirement
The approval requirement determined by the execution policy engine.
RulesetLayer
Priority layer for a permission ruleset. Higher ordinal = higher priority. On conflict, the highest-priority layer’s longest matching prefix wins.