@getdial/cli 0.21.1 → 0.22.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/cli.js CHANGED
@@ -157,6 +157,7 @@ const call = program
157
157
  .option("--outbound-instruction <text>", "system prompt for the agent that will speak")
158
158
  .option("--language <bcp47>", "BCP-47 language tag for the call (default: auto-detect from the destination number's country, alongside en-US)")
159
159
  .option("--voice-gender <male|female>", "voice gender for the agent (default: female; pass male to override)")
160
+ .option("--transfer-to <e164>", "forward-to number, E.164: the agent waits for a real human (riding out hold/IVR) then cold-transfers the call here")
160
161
  .option("--idempotency-key <key>", "unique key (e.g. a UUID) making the placement idempotent: re-running with the same key returns the already-placed call instead of dialing again")
161
162
  .option("--from-number-id <id>", "phoneNumberId to call from (defaults to onboard's number)")
162
163
  .option("--json", "machine-readable output")
@@ -170,6 +171,7 @@ const call = program
170
171
  outboundInstruction: opts.outboundInstruction,
171
172
  language: opts.language,
172
173
  voiceGender: opts.voiceGender,
174
+ transferTo: opts.transferTo,
173
175
  idempotencyKey: opts.idempotencyKey,
174
176
  fromNumberId: opts.fromNumberId,
175
177
  json: !!opts.json,
@@ -8,6 +8,7 @@ export async function runCallSend(opts) {
8
8
  outboundInstruction: opts.outboundInstruction,
9
9
  language: opts.language,
10
10
  voiceGender: opts.voiceGender,
11
+ transferTo: opts.transferTo,
11
12
  idempotencyKey: opts.idempotencyKey,
12
13
  fromNumberId: opts.fromNumberId,
13
14
  });
@@ -11,6 +11,7 @@ export async function placeCall(opts) {
11
11
  ...(opts.language && { language: opts.language }),
12
12
  // Omitted → the server uses the default voice gender (female).
13
13
  ...(opts.voiceGender ? { voiceGender: opts.voiceGender } : {}),
14
+ ...(opts.transferTo ? { transferTo: opts.transferTo } : {}),
14
15
  }, auth.apiKey, opts.idempotencyKey ? { "idempotency-key": opts.idempotencyKey } : undefined);
15
16
  if (!res.ok)
16
17
  throw new DialError("call_failed", res.error, res.status);
@@ -7,6 +7,7 @@ const inputSchema = {
7
7
  outboundInstruction: z.string().min(1).describe("System prompt for the AI voice agent on this call"),
8
8
  language: z.string().optional().describe("BCP-47 language tag for the call. Omit to auto-detect from the destination number's country (alongside en-US)."),
9
9
  voiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for the agent; the default is female"),
10
+ transferTo: z.string().optional().describe("Forward-to number, E.164: the agent waits for a real human (riding out hold/IVR) then cold-transfers the call here. Must differ from `to` and the from number."),
10
11
  idempotencyKey: z.string().optional().describe("Unique key (e.g. a UUID) making the placement idempotent: retrying with the same key returns the already-placed call instead of dialing again"),
11
12
  fromNumberId: z.string().optional().describe("Number id to call from; defaults to your primary number"),
12
13
  };
@@ -26,6 +27,7 @@ export const placeCallTool = {
26
27
  outboundInstruction: args.outboundInstruction,
27
28
  language: args.language,
28
29
  voiceGender: args.voiceGender,
30
+ transferTo: args.transferTo,
29
31
  idempotencyKey: args.idempotencyKey,
30
32
  fromNumberId: args.fromNumberId,
31
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getdial/cli",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "Dial CLI — install, sign up, and run the local listen service.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/skills.tar.gz CHANGED
Binary file