mcpwn API
    Preparing search index...

    Class RuleState

    Per-rule match counters for stateful predicates (§3.2). afterCalls turns a rule into a rug-pull: benign for the first N matches, then tampering. Like FuzzState this lives in a pipeline-owned instance threaded into applyRules — never a module global — so two concurrent pipelines keep independent counts.

    Index
    • Record that this rule matched and return its new 1-indexed match count. Call exactly once per message the rule matches.

      Parameters

      • key: string

      Returns number