@carrierllc/mcp 0.13.21 → 0.13.24
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/dist/{chunk-IUYX4NKC.js → chunk-YQQUV7AE.js} +9 -6
- package/dist/{chunk-IUYX4NKC.js.map → chunk-YQQUV7AE.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/storefront/eslint.config.mjs +8 -1
- package/templates/storefront/package-lock.json +532 -694
- package/templates/storefront/package.json +20 -12
- package/templates/storefront/pnpm-lock.yaml +1321 -1504
- package/templates/storefront/pnpm-workspace.yaml +7 -0
- package/templates/storefront/src/app/api/checkout/guest/route.ts +174 -114
- package/templates/storefront/src/app/api/orders/[orderId]/cancel/route.ts +11 -6
- package/templates/storefront/src/app/api/orders/[orderId]/top-up-options/route.ts +7 -4
- package/templates/storefront/src/app/api/orders/[orderId]/usage/route.ts +7 -4
- package/templates/storefront/src/app/checkout/success/CheckoutSuccessClient.tsx +22 -17
- package/templates/storefront/src/app/contact/page.tsx +3 -3
- package/templates/storefront/src/app/dashboard/EsimControls.tsx +4 -4
- package/templates/storefront/src/app/help/page.tsx +1 -1
- package/templates/storefront/src/app/shop/ShopClient.tsx +1 -1
- package/templates/storefront/src/app/sign-up/[[...sign-up]]/StorefrontSignUpClient.tsx +3 -2
- package/templates/storefront/src/app/sitemap.ts +1 -0
- package/templates/storefront/src/components/checkout/EmbeddedStripeCheckout.tsx +4 -2
- package/templates/storefront/src/components/faq/FaqSection.tsx +1 -1
- package/templates/storefront/src/components/footer/StorefrontFooter.tsx +2 -2
- package/templates/storefront/src/components/landing/FinalCTA.tsx +1 -1
- package/templates/storefront/src/components/landing/HeroSection.tsx +6 -2
- package/templates/storefront/src/components/nav/StorefrontNav.tsx +2 -1
- package/templates/storefront/src/components/theme/theme-provider.tsx +28 -17
- package/templates/storefront/src/lib/checkout-order-claim.ts +5 -14
- package/templates/storefront/src/lib/order-route-guard.ts +34 -0
- package/templates/storefront/src/middleware.ts +5 -0
- package/templates/storefront/src/vendor/carrier/types.ts +4 -0
- package/templates/storefront/src/vendor/geo/index.ts +5 -5
- package/templates/storefront/src/vendor/ui/brand.ts +1 -1
|
@@ -1820,7 +1820,7 @@ function storefrontScreen(input) {
|
|
|
1820
1820
|
// package.json
|
|
1821
1821
|
var package_default = {
|
|
1822
1822
|
name: "@carrierllc/mcp",
|
|
1823
|
-
version: "0.13.
|
|
1823
|
+
version: "0.13.24",
|
|
1824
1824
|
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).",
|
|
1825
1825
|
license: "MIT",
|
|
1826
1826
|
author: "Carrier (Lifecycle Innovations Limited)",
|
|
@@ -3054,7 +3054,7 @@ async function runWithBudget(method, attempt, budget = ocsBudgetFor(method)) {
|
|
|
3054
3054
|
throw lastTimeout ?? new OcsTimeoutError(method, budget.attemptMs, budget.totalMs, Math.max(attempts, 1));
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
|
-
// ../../packages/ocs-client/dist/chunk-
|
|
3057
|
+
// ../../packages/ocs-client/dist/chunk-HPVVOVWZ.js
|
|
3058
3058
|
var RATE_LIMIT = 10;
|
|
3059
3059
|
var WINDOW_MS = 1e3;
|
|
3060
3060
|
var windows = /* @__PURE__ */ new Map();
|
|
@@ -3320,6 +3320,7 @@ function assertBareIntParam(method, params) {
|
|
|
3320
3320
|
`OCS method "${method}" takes a BARE INTEGER ${bareIntIdName(method)}, but received ${shape}. Sending an object makes OCS reject the whole request with "Cannot deserialize value of type java.lang.Integer from Object value", which surfaces in the UI as an empty panel. Pass the id itself, e.g. call("${method}", 1170).`
|
|
3321
3321
|
);
|
|
3322
3322
|
}
|
|
3323
|
+
var SINGLE_ATTEMPT_METHODS = /* @__PURE__ */ new Set(["affectPackageToSubscriber", "addSubscriberPackage", "deleteSubscriberPackage"]);
|
|
3323
3324
|
var OcsApiError = class extends Error {
|
|
3324
3325
|
constructor(code, message, method, details = {}) {
|
|
3325
3326
|
super(`[${method}] OCS error ${code}: ${message}`);
|
|
@@ -3481,7 +3482,8 @@ var OcsClient = class {
|
|
|
3481
3482
|
const wireParams = applyParamRenames(method, params);
|
|
3482
3483
|
const shapedParams = method === "modifySubscriberStatus" ? nestSubscriberIdParam(wireParams) : wireParams;
|
|
3483
3484
|
const body = JSON.stringify({ [method]: shapedParams });
|
|
3484
|
-
|
|
3485
|
+
const singleAttempt = SINGLE_ATTEMPT_METHODS.has(method);
|
|
3486
|
+
const send = async () => {
|
|
3485
3487
|
await acquireToken(tok);
|
|
3486
3488
|
await acquireEndpointSlot(tok, method, this._priority);
|
|
3487
3489
|
return runWithBudget(method, async (signal, attemptMs) => {
|
|
@@ -3565,8 +3567,9 @@ var OcsClient = class {
|
|
|
3565
3567
|
}
|
|
3566
3568
|
}
|
|
3567
3569
|
return payload;
|
|
3568
|
-
});
|
|
3569
|
-
}
|
|
3570
|
+
}, singleAttempt ? { ...ocsBudgetFor(method), maxAttempts: 1 } : void 0);
|
|
3571
|
+
};
|
|
3572
|
+
return singleAttempt ? send() : retryWithBackoff(send);
|
|
3570
3573
|
}
|
|
3571
3574
|
};
|
|
3572
3575
|
|
|
@@ -5443,4 +5446,4 @@ export {
|
|
|
5443
5446
|
storefrontScreen,
|
|
5444
5447
|
CARRIER_VERSION
|
|
5445
5448
|
};
|
|
5446
|
-
//# sourceMappingURL=chunk-
|
|
5449
|
+
//# sourceMappingURL=chunk-YQQUV7AE.js.map
|