import { SENSITIVE_TOKEN_RE } from "@oh-my-pi/pi-ai/providers/transform-messages"; export interface CredentialPattern { /** Model-visible friendly label for reversible placeholders. */ name: string; source: string; flags?: string; /** * Literal substrings at least one of which every match of `source` * contains. The obfuscator skips the regex over text containing none of * them (`includes` beats a lookbehind regex by orders of magnitude, and the * whole provider context is scanned on every request). Must be exhaustive * for the pattern's alternatives; a pattern without this field is always * scanned. Case-insensitive patterns are matched case-insensitively. */ literalPrefixes?: readonly string[]; } const B = "(?