fn get_text(pairs: &[(Value, Value)], key: &str) -> Option<String>
Helper to extract a text string from a CBOR map by key.