@cloudcart/storefront-mcp 0.3.3 → 0.3.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"storefront.d.ts","sourceRoot":"","sources":["../../src/prompts/storefront.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,QAoXrB,CAAC"}
1
+ {"version":3,"file":"storefront.d.ts","sourceRoot":"","sources":["../../src/prompts/storefront.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,QAqZrB,CAAC"}
@@ -36,6 +36,27 @@ requests: you write \`#graphql\` documents, not headers.
36
36
 
37
37
  The \`cloudcart-nitrogen\` skill shows the code for each.
38
38
 
39
+ ### Personalisation (Affinity)
40
+
41
+ Nitrogen 2.4.5 and later learn what each visitor leans to — categories,
42
+ brands, sizes, colours, prices — in the visitor's own browser, from the
43
+ storefront's analytics events, and show it: "Recommended for you", their "New",
44
+ categories, brands and filter values in their order, the product page and the
45
+ cards on their size or colour, the cart's suggestions, products on the empty
46
+ cart, an empty search and the missing page. When a storefront lacks it (no
47
+ \`useAffinityProducts\` under \`app/\`), propose it while you plan the pages, not
48
+ as an afterthought: what the visitor will see, where, and what it can bring the
49
+ merchant — larger orders (the cart's suggestions), more sales from the same
50
+ visits, empty pages that sell. Never promise a figure: no uplift has been
51
+ measured. On Nitrogen older than 2.4.5 it needs the move to \`^2.4.5\` first,
52
+ which removes no export.
53
+
54
+ The API sees none of it as a profile. A visitor's lists are ordinary \`products\`
55
+ queries with \`filters\` (\`category\`, \`productVendor\`, \`price\`, \`available\`),
56
+ one alias a list in one document, posted to the storefront's own route — never
57
+ the visitor's interests in a URL — and the pages stay cached for everyone. The
58
+ \`cloudcart-nitrogen-affinity\` skill has the steps.
59
+
39
60
  ## Authentication
40
61
 
41
62
  The storefront's access token goes in \`X-Storefront-Access-Token\`. It names the
@@ -134,8 +155,20 @@ a list comes in the store's own order.
134
155
 
135
156
  For "you may also like", \`product.relatedProducts\` pages through the merchant's
136
157
  linked products, then the product's category; \`product.linkedProducts\` is the
137
- linked ones alone. \`productRecommendations(productId | productHandle, intent)\`
138
- gives a short list: \`RELATED\` or \`COMPLEMENTARY\`.
158
+ linked ones alone. \`productRecommendations(productId | productHandle, intent,
159
+ first)\` gives a short list (10 unless \`first\` says, at most 50):
160
+
161
+ - bound to a product, and leaving out its linked products: \`SIMILAR\` (nearest
162
+ by the meaning of its text), \`UPSELL\` (the same, priced above it),
163
+ \`ALTERNATIVE\` (in stock, near its price: for a sold-out product) and
164
+ \`ACCESSORY\` (from other categories: what goes with it);
165
+ - by a counter, within the product's categories or across the store:
166
+ \`BEST_SELLING\`, \`TRENDING\`, \`NEW_ARRIVALS\`, \`TOP_RATED\`;
167
+ - the merchant's own: \`RELATED\` and \`COMPLEMENTARY\`.
168
+
169
+ \`fallback: false\` makes a kind with nothing to go on answer an empty list, so a
170
+ block titled for it can hide. \`PERSONALIZED\`, \`CART\` and \`BOUGHT_TOGETHER\`
171
+ are deprecated: a visitor's own lists are \`products\` with filters (below).
139
172
 
140
173
  ## Collections
141
174
 
@@ -1 +1 @@
1
- {"version":3,"file":"storefront.js","sourceRoot":"","sources":["../../src/prompts/storefront.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoX/B,CAAC,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"storefront.js","sourceRoot":"","sources":["../../src/prompts/storefront.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqZ/B,CAAC,IAAI,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcart/storefront-mcp",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "MCP server for the CloudCart Storefront GraphQL API — helps AI assistants build storefronts and checkouts that work",
5
5
  "license": "MIT",
6
6
  "repository": {