pinecall 0.11.49 → 0.11.50

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: dde422389671de8ee487daaded827a5e1a254759e97178108642468fef25c749
4
- data.tar.gz: bf96e3b082ab0db8b16e4760a867f5dcc16ff49a240ff4695d76f7545f51de48
3
+ metadata.gz: 9fbd2c5265d9e152ee94a46e55ceb2a60cb45882b0e4689cdbe43f90563971f4
4
+ data.tar.gz: b2c014505b937068dda35fdfd319c54ce3bac36797cb8cdabe3a30aa7a4115e7
5
5
  SHA512:
6
- metadata.gz: 5458beb59a9aa409fee120059015cbe42c19401d89e709c03563dd524321f084e4697a1f57d2e283c3abecd3c26927a12806291f22239b85cf53c67a0f1ab6f6
7
- data.tar.gz: d344d854156f541baca348bb14f8ab54183e583a9f9c7ceb171196d2d23263552e2dbb92dbdfe8d2e7b4e0038273ebf32b98e7c8849d55fdbdf4f6844324d40f
6
+ metadata.gz: dc7f31d9766d16477e0ceba075745606cc1b19ca3cb28292c963652ea4238533f470ae5e31763b872f97f623cd310518d7d0176a4a9c60f4a8cf9d5aaa948970
7
+ data.tar.gz: aa4e59ce476be5db7ff95b8caecc4ca04804c826f8586100a80adcddeeebbb264530f11c5e5d07766eff2e7c213de0ca485e65714be00ac2a83ac93fa6e8ad6f
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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.50] — an agent answers email, each thread its own conversation, its replies set in the org's layout (2026-11-19)
8
+
9
+ - **The channel `email`**: a call's `channel` may say it, it is written (`medium: text`), and the built-in rules tell
10
+ the model to write a whole email in one message; `channelRules` (`channel_rules`) takes `email` for the agent's own.
11
+
7
12
  ## [0.11.49] — a flow writes to somebody by SMS, and an open written conversation reads as open (2026-11-18)
8
13
 
9
14
  - **`step.text(to, Agent, words)`**: a flow has an agent send a contact one SMS first, from a number it answers SMS
@@ -29,7 +29,7 @@ module Pinecall
29
29
  @direction = direction
30
30
  @caller = caller
31
31
  @metadata = metadata || {}
32
- @medium = (medium || (%w[whatsapp sms].include?(channel.to_s) ? "text" : "voice")).to_s
32
+ @medium = (medium || (%w[whatsapp sms email].include?(channel.to_s) ? "text" : "voice")).to_s
33
33
  @today = today
34
34
  @claimed = claimed
35
35
  @searching = searching
@@ -30,15 +30,20 @@ module Pinecall
30
30
  ON_SMS = "You are answering by SMS. Plain text only: no markdown, no lists, no emoji unless the person uses " \
31
31
  "them. One short message, a few sentences at most."
32
32
 
33
+ ON_EMAIL = "You are answering an email. Write the whole reply in one message: a greeting with the person's " \
34
+ "name when you know it, short paragraphs, a list with - when you give steps or options, **bold** " \
35
+ "for what they must not miss, links written out. Answer everything they asked. Close with a " \
36
+ "one-line sign-off. No subject line: it is set for you."
37
+
33
38
  # The framework's own rules, by the name an agent writes its own under: a spoken call, a website's
34
- # written chat, WhatsApp, SMS.
35
- CHANNEL_RULES = { voice: SPOKEN, chat: ON_A_WEBSITE, whatsapp: ON_WHATSAPP, sms: ON_SMS }.freeze
39
+ # written chat, WhatsApp, SMS, email.
40
+ CHANNEL_RULES = { voice: SPOKEN, chat: ON_A_WEBSITE, whatsapp: ON_WHATSAPP, sms: ON_SMS, email: ON_EMAIL }.freeze
36
41
 
37
42
  module_function
38
43
 
39
- # The name a channel's rules are written under: `whatsapp`, `sms`, a website's `chat`, else `voice`.
44
+ # The name a channel's rules are written under: `whatsapp`, `sms`, `email`, a website's `chat`, else `voice`.
40
45
  def channel_name_of(channel, medium)
41
- return channel.to_sym if %w[whatsapp sms].include?(channel.to_s)
46
+ return channel.to_sym if %w[whatsapp sms email].include?(channel.to_s)
42
47
 
43
48
  channel.to_s == "web" && medium.to_s == "text" ? :chat : :voice
44
49
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Pinecall
4
4
  # Set by the maintainer at release time.
5
- VERSION = "0.11.49"
5
+ VERSION = "0.11.50"
6
6
  end
@@ -7,7 +7,7 @@ module Pinecall
7
7
  module Enums
8
8
  # The door the public came through: a phone call over SIP, the browser widget over WebRTC,
9
9
  # or WhatsApp text.
10
- CHANNEL = %w[phone web whatsapp].freeze
10
+ CHANNEL = %w[phone web whatsapp sms email].freeze
11
11
  # The tool the platform puts in front of a model that may hang up. Its tool.call and its
12
12
  # tool.result are both the platform's, so an app answers none.
13
13
  END_CALL = "end_call"
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.49
4
+ version: 0.11.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pinecall