CommandClassification
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/arity.ts:189
Result of classifying a command for allow-list matching.
Properties
Section titled “Properties”pattern
Section titled “pattern”pattern:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/arity.ts:202
Human-facing display pattern, e.g. git checkout * (or ls *). The trailing *
signals “any args/flags”. A prefix that already consumed the whole command (no extra
operands) still gets * for a consistent, honest “future args allowed” affordance.
prefix
Section titled “prefix”prefix:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/arity.ts:196
The meaningful command prefix — binary plus subcommands per the arity table, with
flags removed. This is the allow-list KEY: two commands with the same prefix are the
“same operation” for approval purposes (git checkout main and git checkout -b x
both → git checkout).