Context
Flagged by Codex audit. The CLI exposes phone list and phone call but not the single-number read/write endpoints:
GET /v1/convai/phone-numbers/{phone_number_id} → get_phone_number_route
PATCH /v1/convai/phone-numbers/{phone_number_id} → update_phone_number_route
Use case
Retargeting a number to a different agent without logging into the dashboard; inspecting trunk/provider/livekit settings; bulk-editing from a script.
What to do
Add two subcommands under the existing phone tree:
phone show <phone_number_id> (alias get)
phone update <phone_number_id> --patch <json_file>
Follow the same pass-through PATCH pattern as agents update --patch. Optionally add client-side enum validation for livekit_stack (standard|static), outbound_trunk_config.transport (auto|udp|tcp|tls), and media_encryption (disabled|allowed|required).
Files
src/cli.rs (PhoneAction::Show, PhoneAction::Update)
src/commands/phone/show.rs (new), update.rs (new)
src/commands/phone/mod.rs (dispatch)
src/commands/agent_info.rs
src/help.rs (new PHONE_UPDATE_HELP)
Context
Flagged by Codex audit. The CLI exposes
phone listandphone callbut not the single-number read/write endpoints:GET /v1/convai/phone-numbers/{phone_number_id}→get_phone_number_routePATCH /v1/convai/phone-numbers/{phone_number_id}→update_phone_number_routeUse case
Retargeting a number to a different agent without logging into the dashboard; inspecting trunk/provider/livekit settings; bulk-editing from a script.
What to do
Add two subcommands under the existing
phonetree:phone show <phone_number_id>(aliasget)phone update <phone_number_id> --patch <json_file>Follow the same pass-through PATCH pattern as
agents update --patch. Optionally add client-side enum validation forlivekit_stack(standard|static),outbound_trunk_config.transport(auto|udp|tcp|tls), andmedia_encryption(disabled|allowed|required).Files
src/cli.rs(PhoneAction::Show, PhoneAction::Update)src/commands/phone/show.rs(new),update.rs(new)src/commands/phone/mod.rs(dispatch)src/commands/agent_info.rssrc/help.rs(new PHONE_UPDATE_HELP)