@fiodos/cli 0.1.32 → 0.1.33
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/package.json +1 -1
- package/src/shopifyTheme.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiodos/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"description": "Fiodos CLI — analyzes your app's source code and generates the in-app voice-agent manifest, then wires the orb. Powers `npx @fiodos/cli analyze`.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"bin": {
|
package/src/shopifyTheme.js
CHANGED
|
@@ -108,6 +108,10 @@ function universalSurfaceDoc(storeDomain) {
|
|
|
108
108
|
universalRoutes: ['/', '/collections/all', '/search', '/cart'],
|
|
109
109
|
universalActions: [
|
|
110
110
|
{ intent: 'search_products', handler: 'shopifySearchProducts', api: '{baseUrl}/search/suggest.json' },
|
|
111
|
+
// The search→cart bridge: suggest.json returns product ids/handles but
|
|
112
|
+
// NEVER variant ids, and cart/add.js only accepts variant ids. This
|
|
113
|
+
// endpoint (universal on every store) turns a handle into its variants.
|
|
114
|
+
{ intent: 'get_product_details', handler: 'shopifyGetProductDetails', api: '{baseUrl}/products/{handle}.js' },
|
|
111
115
|
{ intent: 'add_to_cart', handler: 'shopifyAddToCart', api: '{baseUrl}/cart/add.js' },
|
|
112
116
|
{ intent: 'get_cart', handler: 'shopifyGetCart', api: '{baseUrl}/cart.js' },
|
|
113
117
|
{ intent: 'update_cart_item', handler: 'shopifyUpdateCartItem', api: '{baseUrl}/cart/change.js' },
|