MCPcopy
hub / github.com/infinitered/reactotron / ParsedRules

Interface ParsedRules

lib/reactotron-mcp/src/redaction.ts:196–203  ·  view source on GitHub ↗

Precomputed form of a rules object, reused across redact() calls.

Source from the content-addressed store, hash-verified

194
195/** Precomputed form of a rules object, reused across redact() calls. */
196interface ParsedRules {
197 sensitiveKeysLower: Set<string>
198 /** All valuePatterns folded into a single alternation; null when no valid patterns. */
199 combinedValueRegex: RegExp | null
200 statePathPatterns: string[]
201 /** Cached `statePathPatterns.length > 0` — gates path-string allocation. */
202 trackPaths: boolean
203}
204
205/**
206 * Validate each pattern individually so one bad regex doesn't kill the rest,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected