@carrierllc/mcp 0.11.17 → 0.13.0

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.
Files changed (39) hide show
  1. package/dist/{chunk-EHGZRVSO.js → chunk-ZUUC3J4J.js} +26 -3
  2. package/dist/chunk-ZUUC3J4J.js.map +1 -0
  3. package/dist/cli.js +397 -16
  4. package/dist/cli.js.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/package.json +1 -1
  7. package/plugin/carrier/agents/carrier-storefront-builder.md +3 -3
  8. package/plugin/carrier/skills/storefront/SKILL.md +2 -2
  9. package/templates/storefront/src/app/activate/[orderId]/ActivateClient.tsx +205 -17
  10. package/templates/storefront/src/app/activate/[orderId]/page.tsx +1 -1
  11. package/templates/storefront/src/app/api/checkout/guest/route.ts +72 -9
  12. package/templates/storefront/src/app/api/orders/[orderId]/cancel/route.ts +33 -0
  13. package/templates/storefront/src/app/api/orders/[orderId]/email/route.ts +73 -0
  14. package/templates/storefront/src/app/api/orders/[orderId]/top-up-options/route.ts +28 -0
  15. package/templates/storefront/src/app/api/orders/[orderId]/usage/route.ts +25 -0
  16. package/templates/storefront/src/app/api/profile/phone/route.ts +1 -1
  17. package/templates/storefront/src/app/checkout/[templateId]/CheckoutClient.tsx +142 -39
  18. package/templates/storefront/src/app/checkout/success/CheckoutSuccessClient.tsx +1 -1
  19. package/templates/storefront/src/app/checkout/success/page.tsx +1 -1
  20. package/templates/storefront/src/app/dashboard/EsimControls.tsx +293 -0
  21. package/templates/storefront/src/app/dashboard/page.tsx +12 -1
  22. package/templates/storefront/src/app/shop/ShopClient.tsx +126 -5
  23. package/templates/storefront/src/app/sign-up/[[...sign-up]]/StorefrontSignUpClient.tsx +1 -1
  24. package/templates/storefront/src/app/sign-up/[[...sign-up]]/page.tsx +1 -1
  25. package/templates/storefront/src/brand.config.ts +19 -0
  26. package/templates/storefront/src/components/checkout/EmbeddedStripeCheckout.tsx +191 -0
  27. package/templates/storefront/src/components/landing/PlanCard.tsx +12 -4
  28. package/templates/storefront/src/lib/checkout-order-claim.ts +113 -8
  29. package/templates/storefront/src/lib/esim-install.ts +74 -0
  30. package/templates/storefront/src/lib/order-route-guard.ts +85 -0
  31. package/templates/storefront/src/lib/qr-delivery-email.ts +106 -0
  32. package/templates/storefront/src/middleware.ts +1 -1
  33. package/templates/storefront/src/vendor/carrier/client.ts +86 -1
  34. package/templates/storefront/src/vendor/carrier/types.ts +34 -0
  35. package/templates/storefront/src/vendor/email/qr-delivery.ts +254 -0
  36. package/templates/storefront/src/vendor/email/resend.ts +140 -0
  37. package/templates/storefront/src/vendor/geo/index.ts +45 -0
  38. package/templates/storefront/src/vendor/ui/brand.ts +8 -1
  39. package/dist/chunk-EHGZRVSO.js.map +0 -1
@@ -423,10 +423,14 @@ var CARRIER_BRAND = {
423
423
  name: "Carrier",
424
424
  legalName: "Lifecycle Innovations Limited",
425
425
  tagline: "Programmable connectivity, on demand.",
426
+ description: "Data that works in 200+ countries. Instant QR activation. Human support.",
426
427
  domain: "carrier.llc",
427
428
  supportEmail: "support@carrier.llc",
428
429
  supportUrl: "https://carrier.llc/help",
429
430
  supportWhatsapp: "+17864604829",
431
+ emailFromName: "Carrier",
432
+ emailFromMailbox: "hello",
433
+ appUrl: "https://carrier.llc",
430
434
  colors: {
431
435
  bg: "#080C16",
432
436
  accent: "#FF6B35",
@@ -514,6 +518,18 @@ function renderEnv(brand) {
514
518
  `# Guest checkout calls Stripe server-side. Without this, checkout fails at`,
515
519
  `# request time while every other page keeps working.`,
516
520
  `STRIPE_SECRET_KEY=`,
521
+ `# Optional. With a publishable key the payment form is embedded in this`,
522
+ `# site's own checkout page; without one the customer is sent to Stripe's`,
523
+ `# hosted page and back. Both take money \u2014 the embedded one loses fewer`,
524
+ `# people on the way.`,
525
+ `NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=`,
526
+ `# Optional. Sends the eSIM QR code by email once an order is ready.`,
527
+ `# \`carrier site email\` authenticates you at Resend in the browser and`,
528
+ `# fills this in. Without it the storefront still sells and activates; the`,
529
+ `# activation page just says email delivery is not set up.`,
530
+ `# The from-address is composed from brand.config.ts (emailFromMailbox +`,
531
+ `# domain), so verify that domain at resend.com/domains first.`,
532
+ `RESEND_API_KEY=`,
517
533
  `# Clerk \u2014 \`carrier site clerk\` fills these in, or paste them from dashboard.clerk.com`,
518
534
  `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=`,
519
535
  `CLERK_SECRET_KEY=`,
@@ -529,9 +545,16 @@ var TEMPLATE_ENV_KEYS = {
529
545
  NEXT_PUBLIC_CARRIER_API_URL: "public",
530
546
  NEXT_PUBLIC_APP_URL: "public",
531
547
  NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: "public",
548
+ // Optional. Present: checkout is embedded in the storefront's own page.
549
+ // Absent: checkout redirects to Stripe's hosted page, which still works.
550
+ NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: "public",
532
551
  CARRIER_API_KEY: "secret",
533
552
  CLERK_SECRET_KEY: "secret",
534
- STRIPE_SECRET_KEY: "secret"
553
+ STRIPE_SECRET_KEY: "secret",
554
+ // Optional. Present: the storefront emails the QR code to whoever paid.
555
+ // Absent: the activation page says email delivery is not set up, and every
556
+ // install route it shows on screen still works.
557
+ RESEND_API_KEY: "secret"
535
558
  };
536
559
  function keysOfKind(kind) {
537
560
  return Object.keys(TEMPLATE_ENV_KEYS).filter(
@@ -1792,7 +1815,7 @@ function storefrontScreen(input) {
1792
1815
  // package.json
1793
1816
  var package_default = {
1794
1817
  name: "@carrierllc/mcp",
1795
- version: "0.11.17",
1818
+ version: "0.13.0",
1796
1819
  description: "Carrier MCP \u2014 natural-language control of MVNO/eSIM fleets via eSIMVault OCS. Stdio mode for direct integration with Claude Desktop, Cursor, Windsurf, and MCP-compatible clients. Ships the `carrier` CLI (plugin install + white-label eSIM storefront scaffold).",
1797
1820
  license: "MIT",
1798
1821
  author: "Carrier (Lifecycle Innovations Limited)",
@@ -4336,4 +4359,4 @@ export {
4336
4359
  storefrontScreen,
4337
4360
  CARRIER_VERSION
4338
4361
  };
4339
- //# sourceMappingURL=chunk-EHGZRVSO.js.map
4362
+ //# sourceMappingURL=chunk-ZUUC3J4J.js.map