@cimulate/copilot-widget 1.50.1 → 1.50.2
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/CHANGELOG.md +4 -0
- package/dist/messaging.d.ts +10 -6
- package/dist/messaging.es.js +2333 -2322
- package/dist/messaging.umd.js +28 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
`@cimulate/copilot-widget` follows [Semantic Versioning](https://semver.org/). Each entry is a released `package.json` version (deployed on merge to `master`), newest first.
|
|
4
4
|
|
|
5
|
+
## 1.50.2 — 2026-10-14
|
|
6
|
+
|
|
7
|
+
- `cimulate:cart-update` now reports `action: "add"` (with empty `changes`) for the first cart the widget sees when the agent marks the cart summary `cartOperation: "add"` (case-insensitive), instead of `unknown`.
|
|
8
|
+
|
|
5
9
|
## 1.50.1 — 2026-10-14
|
|
6
10
|
|
|
7
11
|
- Messaging telemetry (when enabled in a release) now reports each conversation ending once, with why it ended (reset, ended, closed by the server, expired session, or connection recovery) and how long it had been idle. It also reports when the widget session ends, and how many attempts a reconnect took. It no longer sends separate events for connection changes that the connection state already shows. Telemetry is not enabled in this release. No storefront action or configuration required.
|
package/dist/messaging.d.ts
CHANGED
|
@@ -236,21 +236,25 @@ declare type CartResponseData = {
|
|
|
236
236
|
__action_execution_status__?: "success" | "failure";
|
|
237
237
|
cartSummary: {
|
|
238
238
|
cartDetails: CartDetails;
|
|
239
|
+
cartOperation?: string | null;
|
|
239
240
|
};
|
|
240
241
|
};
|
|
241
242
|
};
|
|
242
243
|
|
|
243
244
|
/**
|
|
244
|
-
* Primary action for a settled cart mutation, derived
|
|
245
|
-
*
|
|
246
|
-
*
|
|
245
|
+
* Primary action for a settled cart mutation, derived from the previous-vs-new
|
|
246
|
+
* cart diff, or from the agent's `cartSummary.cartOperation` (matched
|
|
247
|
+
* case-insensitively) when there is no previous snapshot to diff against:
|
|
247
248
|
* - `add` / `remove` / `quantity` — a single line-level change of that kind
|
|
249
|
+
* - `add` with empty `changes` — the first cart the widget has seen (nothing to
|
|
250
|
+
* diff against), but the agent reported `cartOperation: "add"`
|
|
248
251
|
* - `coupon` — only the applied-coupon set changed
|
|
249
252
|
* - `mixed` — several distinct kinds of change in one turn
|
|
250
253
|
* - `unknown` — a settled turn with nothing reliably diffable: no previous
|
|
251
|
-
* snapshot, identical carts, or a cart-mutation
|
|
252
|
-
* block (an emptied cart and a failed edit are
|
|
253
|
-
* re-fetches rather than trust a fabricated
|
|
254
|
+
* snapshot (and no agent-reported add), identical carts, or a cart-mutation
|
|
255
|
+
* reply that carried no cart block (an emptied cart and a failed edit are
|
|
256
|
+
* indistinguishable, so the host re-fetches rather than trust a fabricated
|
|
257
|
+
* delta)
|
|
254
258
|
*
|
|
255
259
|
* TODO(cart-events): reintroduce a `clear` action (and a distinct `error`
|
|
256
260
|
* signal) once the agent returns a disambiguated response for an emptied cart
|