The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(core): widen visibility of PII normalization internals
Steven Enamakele4b112ecc0b6
diff --git a/crates/openhuman-core/src/memory/safety/pii/normalize.rs b/crates/openhuman-core/src/memory/safety/pii/normalize.rsindex 4941364cd9..3408065420 100644--- a/crates/openhuman-core/src/memory/safety/pii/normalize.rs+++ b/crates/openhuman-core/src/memory/safety/pii/normalize.rs@@ -14,7 +14,7 @@// normalized view can be spliced onto the exact original bytes.pub(crate) struct NormalizedView {- pub(super) normalized: String,+ pub(crate) normalized: String,// For each byte offset i in `normalized`, `byte_map[i]` is the byte offset// in the original string where the corresponding char *starts*.// The last entry maps the normalized length to the original length, so@@ -118,31 +118,31 @@ fn fold_char(c: char) -> char {/// "run this class's precise regex"; an unset flag means the class cannot/// possibly match, so its regex is skipped (and never compiled).#[derive(Default, Clone, Copy)]-pub(super) struct Candidates {- pub(super) cpf_fmt: bool,- pub(super) cnpj_fmt: bool,- pub(super) cuit: bool,- pub(super) iban: bool,- pub(super) cc: bool,- pub(super) cnpj_bare: bool,- pub(super) cpf_bare: bool,- pub(super) aadhaar_fmt: bool,- pub(super) aadhaar_kw: bool,- pub(super) dni: bool,- pub(super) nie: bool,- pub(super) nino: bool,- pub(super) ssn: bool,- pub(super) rrn: bool,- pub(super) rfc: bool,- pub(super) pan_in: bool,- pub(super) phone_e164: bool,- pub(super) phone_nanp: bool,- pub(super) mynumber: bool,+pub(crate) struct Candidates {+ pub(crate) cpf_fmt: bool,+ pub(crate) cnpj_fmt: bool,+ pub(crate) cuit: bool,+ pub(crate) iban: bool,+ pub(crate) cc: bool,+ pub(crate) cnpj_bare: bool,+ pub(crate) cpf_bare: bool,+ pub(crate) aadhaar_fmt: bool,+ pub(crate) aadhaar_kw: bool,+ pub(crate) dni: bool,+ pub(crate) nie: bool,+ pub(crate) nino: bool,+ pub(crate) ssn: bool,+ pub(crate) rrn: bool,+ pub(crate) rfc: bool,+ pub(crate) pan_in: bool,+ pub(crate) phone_e164: bool,+ pub(crate) phone_nanp: bool,+ pub(crate) mynumber: bool,}impl Candidates {/// True if any class is a candidate — i.e. the text is worth a precise pass.- pub(super) fn any(&self) -> bool {+ pub(crate) fn any(&self) -> bool {self.cpf_fmt|| self.cnpj_fmt|| self.cuit