matchesUsageLimit
matchesUsageLimit(
tail):boolean
Defined in: src/usage-halt.ts:28
Returns true when the given tail text matches Claude Code’s usage-limit wording.
Centralized here so wording drift is tuned in one place. Patterns are intentionally specific to avoid false positives on benign text such as “rate limit your requests” or “limit the number of connections”.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean