@sub-zero/cocoa 0.1.0 → 0.2.0

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cocoa
2
2
 
3
- A bottom-right support chat bubble for any web application. Cocoa connects visitors
3
+ A circular Cocoa portrait button that opens support chat at the bottom right of any web application. Cocoa connects visitors
4
4
  to your SubZero chatbot and puts conversations in **Agents → Chatbots**, where your
5
5
  team can view, reply, approve agent drafts, and take over.
6
6
 
@@ -135,10 +135,10 @@ redirects rejected. An allowed website origin controls embedding; it does not
135
135
  verify the visitor's identity. Do not provide account-specific private data
136
136
  based only on a name typed into chat.
137
137
 
138
- For Content Security Policy, allow the API under `connect-src`, the script source
138
+ For Content Security Policy, allow `data:` under `img-src` for the bundled Cocoa portrait, the API under `connect-src`, the script source
139
139
  under `script-src`, and supply a valid nonce through the `nonce` option (or script
140
140
  nonce attribute) for the widget stylesheet. The widget uses DOM APIs and is
141
- compatible with Trusted Types enforcement. No remote fonts, images,
141
+ compatible with Trusted Types enforcement. The supplied Cocoa portrait is bundled in the widget, so it needs no external image host. No remote fonts, images,
142
142
  iframes, analytics, model SDKs, or third-party styles are loaded.
143
143
 
144
144
  Existing SubZero chat webhooks and human approval policies apply unchanged. RDK
@@ -163,3 +163,9 @@ contains only `dist`, this README, and package metadata. Do not publish the priv
163
163
  Angular application root. Review the version and `npm pack --dry-run` output before
164
164
  publishing. No open-source license is granted (`UNLICENSED`); the source repository
165
165
  may be private.
166
+
167
+ ## Incident handoff
168
+
169
+ The visible **Get further help** action opens a review form. The visitor chooses a correspondence email and explicitly submits an incident; neither opening chat nor mentioning an email creates one. The current visitor session authorizes creation in the chatbot's project. A confirmed reference survives reload, and failed submissions retain their text and idempotency key for retry. The team's follow-up is by email. The email is not verified account identity.
170
+
171
+ Requires the SubZero chat-escalation API. Closed conversations can still submit while their visitor credential is valid; paused deployments cannot accept new submissions. No model call is needed for handoff. `reset()` clears the chat, pending form and visitor credential; call it on logout/account changes. SMTP acknowledgement delivery retries are at-least-once; a stable Message-ID assists threading but cannot guarantee exactly-once delivery by an external mail server.