[LocalMode] Detect PII with on-device NER (Xenova/bert-base-NER, BIO prefixes stripped, low-confidence filtered), redact it with reverse-offset [<TYPE>] placeholders honoring per-type toggles plus a core redactPII() regex pass (emails/phones/SSNs/cards), render entity insights (stats bar + relationship graph),
pnpm dlx shadcn@latest add "https://registry.directory/r/localmode-ai/ui/blocks/privacy/pii-redactor.json"