Skip to content

sanitizeScopeGlobs

sanitizeScopeGlobs(raw): string[]

Defined in: src/house-rules.ts:90

Sanitize proposed/edited scopeGlobs from ANY source (distiller LLM or operator edit): keep only strings, normalize to repo-relative form, drop empty/over-long patterns, dedupe, and cap the count. Anything not a string array → []. The single source of truth so both the distiller and the operator path enforce identical caps (#842).

unknown

string[]