pinecall 0.11.44 → 0.11.45

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: 886837729958f11d2d4b61a98a498be12856ae1e0ebda3bbc50d55045ff2b239
4
+ data.tar.gz: 9f0bef1f23599f5be7340224f51cda27243277d1409a27713aa16190ba5fd3ca
5
5
  SHA512:
6
- metadata.gz: 7b0982bc5ae1ffafeb2ce34112c60a799100817e1226768aa5d3fb6407703549fbcc46c6b1f1ce14b51e6b74945f1ffb6fcf70b93ac20851132980f78582b2e7
7
- data.tar.gz: 9941b448d88a1794ce15191c27d7084b5e83f89d84ad60d57e9e5fb704b75cb629e8bc8cbaf53d356629237ced0c2516d1c477d1a89710853a3d1eb2b796f079
6
+ metadata.gz: 580f174a43bac26381f04927d72bda4a88e255896f237b01f57c64a77cbf814158f2110b4a397c43801c0071350005e997d42a6f5148476dfcf9765ee3abfa62
7
+ data.tar.gz: 5e4b00a590b4ff6ecfa74e634a43d8db9abbbbb843686b4e851b0ac162e983be73d8a0c10d187f7beef769815a1a431acd94653558fb044d7d00d033ae6334bf
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ 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.45] — a number answers the phone, WhatsApp and SMS at once, and SMS comes through Twilio (2026-11-18)
8
+
9
+ - **`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.
10
+
7
11
  ## [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
12
 
9
13
  - **`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.45"
6
6
  end
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.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pinecall