Effect schemas for permission config: the ask/allow/deny actions, per-target rule maps, and the per-tool permission input (with shorthand normalization) used to decide which operations require confirmation.

Members

(static, constant) Action

Schema for a single permission decision: "ask", "allow", or "deny".

(static, constant) Info

Schema for a fully-decoded permission config; accepts the shorthand or object input and decodes to the per-tool object form.

(static, constant) Object

Schema for a map of target pattern to Action (per-target rules).

(static, constant) Rule

Schema for a permission rule: either a single Action or an Object of per-target actions.

Methods

(inner) normalizeInput(input) → {Object}

Normalize a permission input into its object form.

Parameters:
NameTypeDescription
inputstring | Object

Either an Action shorthand string or a per-target rule object.

Returns:

{ "*": input } for a string shorthand, or the object unchanged.

Type: 
Object