@gymmymac/bob-widget 3.2.14 → 3.2.16

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 CHANGED
@@ -5,6 +5,20 @@ All notable changes to the `@gymmymac/bob-widget` package will be documented in
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v3.2.15] - 2026-03-11
9
+
10
+ ### Fixed
11
+
12
+ - **Server-side add-to-cart now emits `cart_updated` SSE event** — When Bob's AI adds items to the cart via the `add_to_cart` tool, the edge function now correctly populates `_cartItemsToEmit` with full `CartItem`-shaped payloads (`product_id`, `product_name`, `quantity`, `unit_price`, `vehicle_id`, `sku`, `brand`), so the `cart_updated` SSE event fires to the widget.
13
+ - **Widget fires `onAddToCart` for server-initiated cart adds** — `useBobChat` now calls `onAddToCart` for each item in a `cart_updated` event, ensuring the host site handles AI-initiated cart adds identically to manual UI clicks.
14
+ - **`cart_updated` payload shape aligned to `CartItem` interface** — Previously sent `{ productName, quantity }`, now sends full `CartItem` fields matching the host contract.
15
+
16
+ ### Added
17
+
18
+ - **`add_vehicle_to_garage` tool** — Bob can now save a confirmed vehicle to the customer's garage via the Partner API. Guardrailed: requires confirmed REGO lookup and customer email. Bob proactively offers to save new vehicles.
19
+
20
+ ---
21
+
8
22
  ## [v3.2.14] - 2026-03-09
9
23
 
10
24
  ### Fixed