@erdoai/cli 0.149.2 → 0.151.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6382,7 +6382,12 @@ var voiceCmd = program.command("voice").description("A voice agent's phone calls
|
|
|
6382
6382
|
function contactLabel(contact) {
|
|
6383
6383
|
if (!contact) return "-";
|
|
6384
6384
|
const name = [contact.first_name, contact.last_name].filter(Boolean).join(" ");
|
|
6385
|
-
|
|
6385
|
+
let reach = contact.email || contact.phone;
|
|
6386
|
+
if (contact.email && contact.email_check === "confirmed") {
|
|
6387
|
+
reach += " (confirmed)";
|
|
6388
|
+
} else if (contact.email && contact.email_check === "conflict") {
|
|
6389
|
+
reach += contact.email_alternative ? ` (spelled; also heard ${contact.email_alternative})` : " (spelled; heard differently)";
|
|
6390
|
+
}
|
|
6386
6391
|
if (!name && !reach) return "none";
|
|
6387
6392
|
return [name, reach].filter(Boolean).join(" \xB7 ");
|
|
6388
6393
|
}
|