@ph0ny/cli 0.2.0 → 0.2.1
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/commands/call.js +1 -1
- package/package.json +2 -2
package/dist/commands/call.js
CHANGED
|
@@ -187,7 +187,7 @@ async function resolveDefaults(voice, agent, from, dryRun) {
|
|
|
187
187
|
if (!from) {
|
|
188
188
|
const numbers = (await voice.phoneNumbers.list()).filter((n) => n.status === 'active');
|
|
189
189
|
if (!numbers.length) {
|
|
190
|
-
throw new UsageError('No active phone number on this account;
|
|
190
|
+
throw new UsageError('No active phone number on this account; buy one with POST /v1/phone-numbers/provision or pass --from.', 'NO_NUMBER');
|
|
191
191
|
}
|
|
192
192
|
if (numbers.length > 1) {
|
|
193
193
|
throw new UsageError(`Pass --from, one of this account's ${numbers.length} active numbers: ${numbers.map((n) => n.e164).join(', ')}.`, 'MISSING_ARG');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ph0ny/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Command-line interface for the ph0ny Voice API — transcribe, translate and synthesize speech, agents, knowledge, voices, video translation, and outbound calls",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"commander": "^12.1.0",
|
|
24
24
|
"dotenv": "^16.6.1",
|
|
25
25
|
"ora": "^8.2.0",
|
|
26
|
-
"@ph0ny/sdk": "0.2.
|
|
26
|
+
"@ph0ny/sdk": "0.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^20.19.43",
|