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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pinecall/call_world.rb +1 -1
- data/lib/pinecall/rules.rb +4 -0
- data/lib/pinecall/version.rb +1 -1
- data/lib/pinecall/wire/shapes_call_events.rb +3 -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: d3650e38c91241c32be57859dc9d83bbfbd2c534285ad89684d1074623a71af4
|
|
4
|
+
data.tar.gz: b1e31d46952d9891f6c3759b4230eaee8cd44d1dafa6b6f20262d77d34eae952
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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
|
@@ -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 },
|