@carrierllc/mcp 0.13.19 → 0.13.21

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/cli.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  verifyStorefront,
40
40
  walletScreen,
41
41
  which
42
- } from "./chunk-NUVSW46O.js";
42
+ } from "./chunk-IUYX4NKC.js";
43
43
  import {
44
44
  copyTree,
45
45
  exists,
@@ -243,12 +243,15 @@ async function patchBrandConfig(path, brand) {
243
243
  setField("accentLight", deriveAccentLight(brand.colors.accent));
244
244
  setField("bg", brand.colors.bg);
245
245
  const socialEntries = Object.entries(brand.social).filter(([, v]) => v);
246
- const socialBody = socialEntries.map(([k, v]) => ` ${k}: ${JSON.stringify(v)},`).join("\n");
246
+ const socialLines = [
247
+ ` x: ${JSON.stringify(brand.social.x ?? "")},`,
248
+ ...socialEntries.filter(([k]) => k !== "x").map(([k, v]) => ` ${k}: ${JSON.stringify(v)},`)
249
+ ];
247
250
  src = src.replace(
248
251
  /social:\s*\{[^}]*\}/s,
249
- socialEntries.length ? `social: {
250
- ${socialBody}
251
- }` : "social: {}"
252
+ `social: {
253
+ ${socialLines.join("\n")}
254
+ }`
252
255
  );
253
256
  await writeFile(path, src);
254
257
  }
@@ -341,12 +344,13 @@ function parseCountryInput(raw) {
341
344
  const added = codesFor(part);
342
345
  if (!added) return { ok: false, message: "Countries are names, such as France, or codes such as FR." };
343
346
  for (const code of added) {
344
- if (regions.length >= 40) break;
347
+ if (regions.length >= MAX_REGIONS_PER_PLAN) break;
345
348
  if (!regions.includes(code)) regions.push(code);
346
349
  }
347
350
  }
348
351
  return { ok: true, regions };
349
352
  }
353
+ var MAX_REGIONS_PER_PLAN = 250;
350
354
  function parseAmount(raw, unit, message, max, whole) {
351
355
  const text3 = raw.trim().replace(unit, "").trim();
352
356
  if (text3 === "" || !/^\d+(\.\d+)?$/.test(text3)) return { ok: false, message };