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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pinecall/call_world.rb +1 -1
- data/lib/pinecall/rules.rb +4 -0
- data/lib/pinecall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 886837729958f11d2d4b61a98a498be12856ae1e0ebda3bbc50d55045ff2b239
|
|
4
|
+
data.tar.gz: 9f0bef1f23599f5be7340224f51cda27243277d1409a27713aa16190ba5fd3ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/pinecall/call_world.rb
CHANGED
|
@@ -29,7 +29,7 @@ module Pinecall
|
|
|
29
29
|
@direction = direction
|
|
30
30
|
@caller = caller
|
|
31
31
|
@metadata = metadata || {}
|
|
32
|
-
@medium = (medium || (channel.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
|
data/lib/pinecall/rules.rb
CHANGED
|
@@ -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
|
data/lib/pinecall/version.rb
CHANGED