pub fn input_snapshot(text: &str) -> String
Build a privacy-safe InputChanged payload: redact secret-looking tokens, then keep only the trailing INPUT_SNAPSHOT_MAX_CHARS chars (the tail is what the user is currently typing).
InputChanged
INPUT_SNAPSHOT_MAX_CHARS