@cloudcart/storefront-mcp 0.3.5 → 0.3.6

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,QAqZrB,CAAC"}
1
+ {"version":3,"file":"storefront.d.ts","sourceRoot":"","sources":["../../src/prompts/storefront.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,QA0drB,CAAC"}
@@ -295,7 +295,23 @@ store's up-sell and cross-sell app they do nothing, and the line gets a warning.
295
295
 
296
296
  Sign in with \`customerLoginCodeSend\`, then \`customerLoginCodeVerify\`, which
297
297
  returns the access token. **There is deliberately no password login and no
298
- password reset.**
298
+ password reset.** The store's confirmation and password links sign the customer
299
+ in by their code instead: \`customerSignInByLink(kind, code)\`, below.
300
+
301
+ **Sign-in with Google**, while \`shop.googleSignIn\` is not null (the store has
302
+ the Google Connect app and keeps accounts). Google's own prompt ("One Tap") or
303
+ button, opened with \`googleSignIn.clientId\` and a nonce the storefront made for
304
+ the visitor, hands the page an ID token: \`customerSignInWithGoogle(idToken,
305
+ nonce)\` signs in the customer the Google account is connected to in the store,
306
+ else the one with its e-mail (connected then). For an e-mail the store has no
307
+ customer for it creates nothing and answers \`registration\` — Google's e-mail,
308
+ names and a \`hash\` — and \`customerCreateWithGoogle(hash, input)\` registers
309
+ them by the store's rules (its policies too) and signs them in, with no code.
310
+ The ID token's \`picture\` and \`given_name\` are the account's picture and
311
+ first name. The client is CloudCart's: Google shows its prompt and button only
312
+ on a domain that client lists, so a storefront's domain is added by CloudCart's
313
+ support. Nitrogen has the pieces: \`getGoogleSignInSettings\`,
314
+ \`customerAccount.signInWithGoogle\`, \`<GoogleOneTap>\`, \`<GoogleSignInButton>\`.
299
315
 
300
316
  \`customer(customerAccessToken)\` is the account area in one query: \`orders\`,
301
317
  \`wishlist\`, \`downloads\`, \`payments\`, \`returns\`, \`addresses\`,
@@ -324,6 +340,59 @@ a sign-in**, by the reference from the notification email. Returns need the
324
340
  merchant's returns app; without it they answer \`null\` or a \`NOT_AVAILABLE\`
325
341
  error.
326
342
 
343
+ ## The links the store sends
344
+
345
+ The store's e-mails, text messages and pushes link to its own domain, so a
346
+ Nitrogen storefront must have a page for each — a missing one leaves the
347
+ customer on its "not found" page. Each path and what serves it:
348
+
349
+ | Path | The API |
350
+ |---|---|
351
+ | \`/account/order/i/{hash}\`, \`/account/order/{hash}\` | \`orderByHash(hash, kind)\` — a guest's order, with \`invoice\` and \`proforma\` |
352
+ | \`/subscribers/subscriptions/{hash}\` | \`subscriberSubscriptions\`, \`subscriberSubscriptionsUpdate\` |
353
+ | \`/subscribers/verify/{hash}\` | \`subscriberEmailVerify\` |
354
+ | \`/subscribers/cart/{hash}\` | \`cartRestoreForSubscriber\` |
355
+ | \`/restore-abandoned/{code}/{source}/{discount?}\` | \`cartRestoreAbandoned\` |
356
+ | \`/cart/{key}\` | \`cartAddFromLink\` |
357
+ | \`/cart/discount:{code}\`, \`/discount/{code}\` | \`cartDiscountCodesUpdate\` |
358
+ | \`/cart/add/{variant}/{quantity?}\` | \`cartLinesAdd\` |
359
+ | \`/auth/confirm-email/{code}\`, \`/auth/reset-password/{code}\` | \`customerSignInByLink(kind, code)\` — signs in at once |
360
+ | \`/tracking/{waybill}\` | \`parcelTracking(waybill)\` |
361
+ | \`/product_preview/create/s/{hash}\` | \`productReviewInvitation\`, \`productReviewCreateFromInvitation\` |
362
+ | \`/account/subscriptions/{reference}\` | \`customer\`'s subscriptions, \`customerSubscription*\` |
363
+ | \`/download/product/…\` | \`productFileLink\` — signed URLs that expire |
364
+ | \`/withdrawal/{reference}\` | \`returnByReference\` |
365
+ | \`/gift-card/{hash}\`, \`/gift-card/pdf/{hash}\` | \`giftCardByHash(hash)\` — the card, its QR and its PDF's signed URLs |
366
+ | \`/gift-card/r/{hash}\`, \`/gift-card\` | \`giftCardRedeem(customerAccessToken, hash \\| code)\` — into the wallet; a guest signs in first |
367
+ | \`/account/gift-cards\`, \`/account/wallet\` | \`customer\`'s \`giftCards\` and \`wallet\` (\`activity(transactionId)\` for \`?filters[id]=\`), \`customerGiftCardResend\` |
368
+ | \`/account/pages\`, \`/private-page/{handle}\` | \`customer\`'s \`memberPages\` and \`privatePage(handle)\` — the Membership app's paid pages; without access the store's message, status 402 |
369
+ | \`/account/subscriptions\` | \`customer\`'s \`subscriptions\`; the product page offers \`sellingPlanGroups\` and adds with \`sellingPlanId\` |
370
+ | \`/bundles\`, \`/bundles/category/{slug}\` | \`products\`, \`collection.products\` with \`ProductFilter.isBundle\` |
371
+ | \`/contacts/{product}\`, \`/about/{product?}\` | \`contactFormSubmit\` — a question about a product; \`/about\` redirects to the contact page |
372
+ | \`/login\`, \`/register\`, \`/forgotten-password\`, \`/auth/forgotten\`, \`/confirm-email?code=\`, \`/account/withdrawals\` | none — the classic storefront's older addresses, redirected to the sign-in page, the registration, \`/auth/confirm-email/{code}\` and the account's returns |
373
+
374
+ **The account's newer parts.** Buy again: the order's page (signed in, or by
375
+ the e-mail's hash) offers it while \`Order.reorderable\`, and \`cartAddFromOrder\`
376
+ puts the order's products into the buyer's cart by the cart's own rules (a
377
+ wallet or gift card order refused). The wallet's top-up: \`customer.wallet.topUp\`
378
+ while the store sells it, and \`customerWalletTopUp\` answers a \`checkoutUrl\` —
379
+ a key, sent to at once and never logged. The e-mail confirmation: an
380
+ unconfirmed customer (\`Customer.emailConfirmed\`) asks the link again with
381
+ \`customerEmailConfirmationSend\`, shown while
382
+ \`checkoutSettings.registration.unconfirmedAccountsRestricted\`.
383
+
384
+ **A campaign's link.** The store's campaign messages (e-mail, text, Viber, web
385
+ push) add \`cc_campaign\` and \`cc_subscriber\` to their links on the store's
386
+ domain. Send both, as they came, to \`campaignLinkOpen(campaign, subscriber)\`
387
+ — it counts the click — take them out of the address, and keep \`cc_campaign\`
388
+ for seven days as the cart's \`CartAttributionInput.campaignLink\`, so the order
389
+ counts for the campaign. Nitrogen's \`Analytics.Provider\` does all three.
390
+
391
+ A hash, code or key in the path is the customer's key: the page is private,
392
+ never cached, and a link that matches nothing answers \`null\` or an error
393
+ without saying why. The checkout's own links (\`/checkout/…\`) are the
394
+ platform's. The \`cloudcart-nitrogen\` skill has each page's route.
395
+
327
396
  ---
328
397
 
329
398
  # Content and shop
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"storefront.js","sourceRoot":"","sources":["../../src/prompts/storefront.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0d/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.5",
3
+ "version": "0.3.6",
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": {