getpatter 0.5.2 → 0.5.3

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/README.md CHANGED
@@ -91,7 +91,7 @@ cp .env.example .env
91
91
  # Edit .env with your API keys
92
92
  ```
93
93
 
94
- > **Telnyx:** Telnyx is a fully supported telephony provider alternative to Twilio. Both carriers receive equal support for DTMF, transfer, recording, and metrics.
94
+ > **Telnyx:** Telnyx is a fully supported telephony provider alternative to Twilio. Both carriers receive equal support for DTMF, transfer, and metrics. Recording is Twilio-only.
95
95
 
96
96
  ## Voice Modes
97
97
 
@@ -110,7 +110,7 @@ new Patter({
110
110
  carrier: Twilio | Telnyx;
111
111
  phoneNumber: string;
112
112
  webhookUrl?: string; // Public hostname. Mutually exclusive with tunnel.
113
- tunnel?: CloudflareTunnel | StaticTunnel; // Or pass tunnel: true on serve() for dev.
113
+ tunnel?: CloudflareTunnel | StaticTunnel | boolean; // `true` is shorthand for new CloudflareTunnel().
114
114
  })
115
115
  ```
116
116
 
@@ -119,7 +119,7 @@ new Patter({
119
119
  | `carrier` | `Twilio` / `Telnyx` | Carrier instance. Reads env vars by default. |
120
120
  | `phoneNumber` | `string` | Your phone number in E.164 format. |
121
121
  | `webhookUrl` | `string` | Public hostname your local server is reachable on. |
122
- | `tunnel` | instance | `new CloudflareTunnel()` or `new StaticTunnel({ hostname: ... })`. |
122
+ | `tunnel` | `CloudflareTunnel \| StaticTunnel \| boolean` | `new CloudflareTunnel()`, `new StaticTunnel({ hostname: ... })`, or `true` (shorthand for `new CloudflareTunnel()`). |
123
123
 
124
124
  ### `phone.agent()`
125
125
 
@@ -226,7 +226,7 @@ import { Patter, Twilio, DeepgramSTT, ElevenLabsTTS } from "getpatter";
226
226
  const phone = new Patter({ carrier: new Twilio(), phoneNumber: "+15550001234" });
227
227
  const agent = phone.agent({
228
228
  stt: new DeepgramSTT(), // reads DEEPGRAM_API_KEY
229
- tts: new ElevenLabsTTS({ voice: "rachel" }), // reads ELEVENLABS_API_KEY
229
+ tts: new ElevenLabsTTS({ voice: "sarah" }), // reads ELEVENLABS_API_KEY
230
230
  systemPrompt: "You are a helpful voice assistant.",
231
231
  });
232
232
  await phone.serve({ agent, tunnel: true });
@@ -241,7 +241,7 @@ const phone = new Patter({ carrier: new Twilio(), phoneNumber: "+15550001234" })
241
241
  const agent = phone.agent({
242
242
  stt: new DeepgramSTT(), // reads DEEPGRAM_API_KEY
243
243
  llm: new AnthropicLLM(), // reads ANTHROPIC_API_KEY
244
- tts: new ElevenLabsTTS({ voiceId: "rachel" }), // reads ELEVENLABS_API_KEY
244
+ tts: new ElevenLabsTTS({ voiceId: "sarah" }), // reads ELEVENLABS_API_KEY
245
245
  systemPrompt: "You are a helpful voice assistant.",
246
246
  });
247
247
  await phone.serve({ agent, tunnel: true });
@@ -1,4 +1,4 @@
1
- import "./chunk-OOIUSZB4.mjs";
1
+ import "./chunk-QHHBUCMT.mjs";
2
2
 
3
3
  // src/banner.ts
4
4
  var BANNER = `
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLogger
3
- } from "./chunk-FMNRCP5X.mjs";
4
- import "./chunk-OOIUSZB4.mjs";
3
+ } from "./chunk-VJVDG4V5.mjs";
4
+ import "./chunk-QHHBUCMT.mjs";
5
5
 
6
6
  // src/carrier-config.ts
7
7
  var TWILIO_API_BASE = "https://api.twilio.com/2010-04-01";