Skip to content

ApprovalEntryType

ApprovalEntryType = "shell" | "tool" | "mcpTool"

Defined in: core/dist/config/shell-policy.d.ts:299

EXT-71 ยง3.1 โ€” the subject axis of a rule entry, and only that. The schema twin is APPROVAL_ENTRY_TYPES in config/schema.ts. What holds the two together is approvalEntrySchema.spec.ts, where a list of ApprovalEntry-typed literals is parsed by that schema: a value either side stops accepting fails there. That is a weaker pin than a direct equality assertion โ€” it catches a narrowing, not a widening on one side alone.