pinecall 0.11.44 → 0.11.46

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f721f4f5d997cb727f855557083a3d1ea5e068d4d6bebd3b1ed1543a79f22332
4
- data.tar.gz: 3155a58eb21842756c0743fe1fcbc9bcc7876770a03713cea62536b9cde35c9a
3
+ metadata.gz: d3650e38c91241c32be57859dc9d83bbfbd2c534285ad89684d1074623a71af4
4
+ data.tar.gz: b1e31d46952d9891f6c3759b4230eaee8cd44d1dafa6b6f20262d77d34eae952
5
5
  SHA512:
6
- metadata.gz: 7b0982bc5ae1ffafeb2ce34112c60a799100817e1226768aa5d3fb6407703549fbcc46c6b1f1ce14b51e6b74945f1ffb6fcf70b93ac20851132980f78582b2e7
7
- data.tar.gz: 9941b448d88a1794ce15191c27d7084b5e83f89d84ad60d57e9e5fb704b75cb629e8bc8cbaf53d356629237ced0c2516d1c477d1a89710853a3d1eb2b796f079
6
+ metadata.gz: c30807311fa8b59d82b768ac9b44253a6d3b67ca3889fbb9121d570596b81dc23873caee5a06ecbf891ab130bf09445e6fe09a3d6245f214ca6ed5f59c9c3be5
7
+ data.tar.gz: 5ccbe69108e013bdf1759c0466a0f1bb66576a5f0f57b501d9bf2c33ed8530cba630ccf902b57de5665feb4ef5618b5eea3fc7fb0dc644c5afcaa62d778e68e9
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ Every change a person using this gem would notice. The format is
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); version numbers and tags are the
5
5
  maintainer's call.
6
6
 
7
+ ## [0.11.46] — a contact who texts STOP is written to no more, a written conversation opens on the one before, and the audio of an MMS is heard (2026-11-18)
8
+
9
+ - **`optOut` on a WhatsApp or SMS conversation**, and `call.summary` says an SMS conversation's `sms_segments`.
10
+
11
+ ## [0.11.45] — a number answers the phone, WhatsApp and SMS at once, and SMS comes through Twilio (2026-11-18)
12
+
13
+ - **`sms` is a channel.** A call by SMS is written (`medium: text`), and the built-in rule tells the model to write plain, short text.
14
+
7
15
  ## [0.11.44] — a WhatsApp number of your own Meta app is heard and says where each reply stands, a simulated caller rings by phone, and a restarted process keeps its line (2026-11-18)
8
16
 
9
17
  - **`message.status` says where a WhatsApp reply stands.** A reply the agent wrote is sent, then delivered to
@@ -29,7 +29,7 @@ module Pinecall
29
29
  @direction = direction
30
30
  @caller = caller
31
31
  @metadata = metadata || {}
32
- @medium = (medium || (channel.to_s == "whatsapp" ? "text" : "voice")).to_s
32
+ @medium = (medium || (%w[whatsapp sms].include?(channel.to_s) ? "text" : "voice")).to_s
33
33
  @today = today
34
34
  @claimed = claimed
35
35
  @searching = searching
@@ -27,11 +27,15 @@ module Pinecall
27
27
 
28
28
  ON_WHATSAPP = "You are on WhatsApp. Use its formatting: *bold*, _italic_, no headings, no tables, short messages."
29
29
 
30
+ ON_SMS = "You are answering by SMS. Plain text only: no markdown, no lists, no emoji unless the person uses " \
31
+ "them. One short message, a few sentences at most."
32
+
30
33
  module_function
31
34
 
32
35
  # How to write on this channel and medium: WhatsApp's formatting, a website's Markdown, or speech.
33
36
  def channel_rules_for(channel, medium)
34
37
  return ON_WHATSAPP if channel.to_s == "whatsapp"
38
+ return ON_SMS if channel.to_s == "sms"
35
39
 
36
40
  channel.to_s == "web" && medium.to_s == "text" ? ON_A_WEBSITE : SPOKEN
37
41
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Pinecall
4
4
  # Set by the maintainer at release time.
5
- VERSION = "0.11.44"
5
+ VERSION = "0.11.46"
6
6
  end
@@ -112,7 +112,9 @@ module Pinecall
112
112
  cost: { kind: :ref, ref: "Cost", required: true },
113
113
  recording: { kind: :str },
114
114
  simulated: { kind: :bool },
115
- run: { kind: :str, null: true }
115
+ run: { kind: :str, null: true },
116
+ sms_segments: { kind: :int, null: true },
117
+ sms_lent: { kind: :bool, null: true }
116
118
  }.freeze,
117
119
  "CallTransferred" => {
118
120
  to: { kind: :str, required: true },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinecall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.44
4
+ version: 0.11.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pinecall