vercel 54.12.2 → 54.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 (50) hide show
  1. package/dist/chunks/{add-SYDJV2T4.js → add-PVEKZBHH.js} +4 -4
  2. package/dist/chunks/{chunk-4643KU3X.js → chunk-4KAFHBYE.js} +1 -1
  3. package/dist/chunks/{chunk-EF7I74B3.js → chunk-5UCWXYNH.js} +86 -2
  4. package/dist/chunks/{chunk-TUDFOYDC.js → chunk-6D6CSOSK.js} +3 -3
  5. package/dist/chunks/{chunk-OBN3CMNI.js → chunk-6K3WJDFA.js} +4 -4
  6. package/dist/chunks/{chunk-HFZBZ5RL.js → chunk-7CJZCFLW.js} +2 -2
  7. package/dist/chunks/{chunk-KY27SDWY.js → chunk-7OZWGXPA.js} +1 -1
  8. package/dist/chunks/{chunk-VX2CL5SM.js → chunk-ABOX5TXU.js} +2 -2
  9. package/dist/chunks/{chunk-MVNPVHFE.js → chunk-ADLWAO5W.js} +4 -4
  10. package/dist/chunks/{chunk-H2V3VLCZ.js → chunk-C3VH3X5Y.js} +2 -2
  11. package/dist/chunks/{chunk-S6JBHRRQ.js → chunk-FPRA7U2P.js} +1 -1
  12. package/dist/chunks/{chunk-AYYWS2SR.js → chunk-G7QWUIGS.js} +1 -1
  13. package/dist/chunks/{chunk-MPJHH4XH.js → chunk-NR67NDOY.js} +54 -3
  14. package/dist/chunks/{chunk-BKBME5J7.js → chunk-OEM7RB3X.js} +1 -1
  15. package/dist/chunks/{chunk-RWBYP6J5.js → chunk-S4VHXL2Y.js} +1 -1
  16. package/dist/chunks/{chunk-HZCLVVUY.js → chunk-UAI4ESAJ.js} +4 -4
  17. package/dist/chunks/{chunk-EWCHYBUM.js → chunk-V2WFM23D.js} +1 -1
  18. package/dist/chunks/{chunk-4XUOV2X3.js → chunk-V4GROAUJ.js} +1 -1
  19. package/dist/chunks/{chunk-2OG4XEO7.js → chunk-Y76J3TGD.js} +1 -1
  20. package/dist/chunks/{chunk-X4M2XSJZ.js → chunk-Z7KOKD2G.js} +1 -1
  21. package/dist/chunks/{compile-vercel-config-ANNU2HBR.js → compile-vercel-config-MD37D2F7.js} +1 -1
  22. package/dist/chunks/{delete-CSL7GQUM.js → delete-6EMDCXSA.js} +2 -2
  23. package/dist/chunks/{disable-WRZTPAJJ.js → disable-FLJ27NHG.js} +2 -2
  24. package/dist/chunks/{discard-L2YVL23C.js → discard-KEIII6RM.js} +2 -2
  25. package/dist/chunks/{edit-VXYNQVBR.js → edit-DOL2ZJPG.js} +3 -3
  26. package/dist/chunks/{enable-OWXV2G3V.js → enable-PZWZIETT.js} +2 -2
  27. package/dist/chunks/{export-6KAIMGH6.js → export-2PFHAELC.js} +2 -2
  28. package/dist/chunks/{inspect-UZ5CC3HV.js → inspect-WPWOZJ2K.js} +3 -3
  29. package/dist/chunks/{list-PHVOL64I.js → list-4R5DCLTB.js} +2 -2
  30. package/dist/chunks/{list-7BYAGN5B.js → list-ZT7QK2H7.js} +3 -3
  31. package/dist/chunks/{ls-5QIP5PDC.js → ls-4JTXQXMQ.js} +4 -4
  32. package/dist/chunks/{publish-6KB6TNYM.js → publish-JV4J3SOA.js} +2 -2
  33. package/dist/chunks/{query-2PCHFFUA.js → query-N22EYSZZ.js} +2 -2
  34. package/dist/chunks/{reorder-AN4IH7VE.js → reorder-TG53BKW4.js} +2 -2
  35. package/dist/chunks/{restore-CA72EKHV.js → restore-U7O4VESA.js} +2 -2
  36. package/dist/chunks/{rm-ZEX7PISI.js → rm-XA4LYZXI.js} +4 -4
  37. package/dist/chunks/{rule-inspect-ZMHGGEUM.js → rule-inspect-HC745CYT.js} +4 -4
  38. package/dist/chunks/{rules-XNQ4LDXH.js → rules-RMN72YHN.js} +6 -6
  39. package/dist/chunks/{schema-Q2JNER6Z.js → schema-CZVKUXM6.js} +2 -2
  40. package/dist/chunks/{update-WMWLJRV2.js → update-PU3WLIA7.js} +4 -4
  41. package/dist/commands/build/index.js +9 -9
  42. package/dist/commands/deploy/index.js +10 -10
  43. package/dist/commands/dev/index.js +8 -8
  44. package/dist/commands/env/index.js +4 -4
  45. package/dist/commands/link/index.js +7 -7
  46. package/dist/commands/list/index.js +3 -3
  47. package/dist/commands-bulk.js +671 -574
  48. package/dist/index.js +8 -8
  49. package/dist/version.mjs +1 -1
  50. package/package.json +15 -15
@@ -31,7 +31,7 @@ import {
31
31
  runInteractiveEditLoop,
32
32
  stripQuotes,
33
33
  validateActionFlags
34
- } from "./chunks/chunk-RWBYP6J5.js";
34
+ } from "./chunks/chunk-S4VHXL2Y.js";
35
35
  import {
36
36
  getRouteVersions
37
37
  } from "./chunks/chunk-AHU7WNL2.js";
@@ -48,7 +48,7 @@ import {
48
48
  parsePosition,
49
49
  parseSubcommandArgs,
50
50
  withGlobalFlags
51
- } from "./chunks/chunk-AYYWS2SR.js";
51
+ } from "./chunks/chunk-G7QWUIGS.js";
52
52
  import {
53
53
  normalizeRepeatableStringFilters
54
54
  } from "./chunks/chunk-5SYDEK2N.js";
@@ -64,11 +64,11 @@ import {
64
64
  resolveOpenApiTagForTeamsCli,
65
65
  setAutoUpdate,
66
66
  tryOpenApiFallback
67
- } from "./chunks/chunk-MVNPVHFE.js";
67
+ } from "./chunks/chunk-ADLWAO5W.js";
68
68
  import {
69
69
  getUpdateCommand,
70
70
  isGlobal
71
- } from "./chunks/chunk-4XUOV2X3.js";
71
+ } from "./chunks/chunk-V4GROAUJ.js";
72
72
  import {
73
73
  Now,
74
74
  collectContactInformation,
@@ -89,14 +89,14 @@ import {
89
89
  require_format,
90
90
  require_jsonlines,
91
91
  setupDomain
92
- } from "./chunks/chunk-HZCLVVUY.js";
92
+ } from "./chunks/chunk-UAI4ESAJ.js";
93
93
  import {
94
94
  getGlobalPathConfig,
95
95
  persistAuthConfig,
96
96
  readLocalConfig,
97
97
  sleep,
98
98
  writeToConfigFile
99
- } from "./chunks/chunk-H2V3VLCZ.js";
99
+ } from "./chunks/chunk-C3VH3X5Y.js";
100
100
  import "./chunks/chunk-V5P25P7F.js";
101
101
  import {
102
102
  ellipsis,
@@ -124,7 +124,7 @@ import {
124
124
  import {
125
125
  formatEnvironment,
126
126
  validateLsArgs
127
- } from "./chunks/chunk-2OG4XEO7.js";
127
+ } from "./chunks/chunk-Y76J3TGD.js";
128
128
  import {
129
129
  validateJsonOutput
130
130
  } from "./chunks/chunk-XPKWKPWA.js";
@@ -168,6 +168,7 @@ import {
168
168
  buyCommand,
169
169
  buySubcommand,
170
170
  cacheCommand,
171
+ categoriesSubcommand,
171
172
  certsCommand,
172
173
  checkSubcommand,
173
174
  checksAddFlags,
@@ -376,7 +377,7 @@ import {
376
377
  webAnalyticsSubcommand,
377
378
  webhooksCommand,
378
379
  whoamiCommand
379
- } from "./chunks/chunk-MPJHH4XH.js";
380
+ } from "./chunks/chunk-NR67NDOY.js";
380
381
  import {
381
382
  metricsCommand,
382
383
  schemaSubcommand
@@ -418,26 +419,26 @@ import {
418
419
  import "./chunks/chunk-ZTPOJE63.js";
419
420
  import {
420
421
  main
421
- } from "./chunks/chunk-OBN3CMNI.js";
422
- import "./chunks/chunk-S6JBHRRQ.js";
422
+ } from "./chunks/chunk-6K3WJDFA.js";
423
+ import "./chunks/chunk-FPRA7U2P.js";
423
424
  import {
424
425
  require_execa
425
426
  } from "./chunks/chunk-YI3JV6GM.js";
426
427
  import {
427
428
  ensureLink
428
- } from "./chunks/chunk-HFZBZ5RL.js";
429
- import "./chunks/chunk-TUDFOYDC.js";
429
+ } from "./chunks/chunk-7CJZCFLW.js";
430
+ import "./chunks/chunk-6D6CSOSK.js";
430
431
  import {
431
432
  AGENT_ACTION,
432
433
  AGENT_REASON,
433
434
  AGENT_STATUS
434
435
  } from "./chunks/chunk-LJ5WXXG6.js";
435
- import "./chunks/chunk-EWCHYBUM.js";
436
- import "./chunks/chunk-BKBME5J7.js";
436
+ import "./chunks/chunk-V2WFM23D.js";
437
+ import "./chunks/chunk-OEM7RB3X.js";
437
438
  import {
438
439
  detectExplicitScope,
439
440
  getScope
440
- } from "./chunks/chunk-X4M2XSJZ.js";
441
+ } from "./chunks/chunk-Z7KOKD2G.js";
441
442
  import {
442
443
  help
443
444
  } from "./chunks/chunk-VNUNCNPE.js";
@@ -487,7 +488,7 @@ import {
487
488
  selectAndParseRemoteUrl,
488
489
  selectOrg,
489
490
  ua_default
490
- } from "./chunks/chunk-EF7I74B3.js";
491
+ } from "./chunks/chunk-5UCWXYNH.js";
491
492
  import {
492
493
  TelemetryClient
493
494
  } from "./chunks/chunk-J5273CSE.js";
@@ -870,7 +871,7 @@ async function activity(client) {
870
871
  return 0;
871
872
  }
872
873
  telemetry2.trackCliSubcommandLs(subcommandOriginal);
873
- const listFn = (await import("./chunks/list-PHVOL64I.js")).default;
874
+ const listFn = (await import("./chunks/list-4R5DCLTB.js")).default;
874
875
  return listFn(client, telemetry2);
875
876
  }
876
877
  }
@@ -1339,17 +1340,17 @@ async function alerts(client) {
1339
1340
  switch (subcommand) {
1340
1341
  case "inspect": {
1341
1342
  telemetry2.trackCliSubcommandInspect(subcommandOriginal);
1342
- const inspectFn = (await import("./chunks/inspect-UZ5CC3HV.js")).default;
1343
+ const inspectFn = (await import("./chunks/inspect-WPWOZJ2K.js")).default;
1343
1344
  return inspectFn(client, args);
1344
1345
  }
1345
1346
  case "rules": {
1346
1347
  telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
1347
- const rulesFn = (await import("./chunks/rules-XNQ4LDXH.js")).default;
1348
+ const rulesFn = (await import("./chunks/rules-RMN72YHN.js")).default;
1348
1349
  return rulesFn(client, args);
1349
1350
  }
1350
1351
  default: {
1351
1352
  telemetry2.trackCliSubcommandLs(subcommandOriginal);
1352
- const listFn = (await import("./chunks/list-7BYAGN5B.js")).default;
1353
+ const listFn = (await import("./chunks/list-ZT7QK2H7.js")).default;
1353
1354
  return listFn(client, telemetry2);
1354
1355
  }
1355
1356
  }
@@ -18746,14 +18747,14 @@ async function buildConditionGroupLoop(client, planInfo, prePopulated) {
18746
18747
  }
18747
18748
  async function buildConditionInteractive(client, planInfo) {
18748
18749
  const availableTypes = getAvailableConditionTypes(planInfo);
18749
- const categories = /* @__PURE__ */ new Map();
18750
+ const categories2 = /* @__PURE__ */ new Map();
18750
18751
  for (const ct of availableTypes) {
18751
- const existing = categories.get(ct.category) || [];
18752
+ const existing = categories2.get(ct.category) || [];
18752
18753
  existing.push(ct);
18753
- categories.set(ct.category, existing);
18754
+ categories2.set(ct.category, existing);
18754
18755
  }
18755
18756
  const choices = [];
18756
- for (const [category, types] of categories) {
18757
+ for (const [category, types] of categories2) {
18757
18758
  const label = CATEGORY_LABELS[category] || category;
18758
18759
  choices.push({
18759
18760
  value: `__sep_${category}`,
@@ -28868,9 +28869,15 @@ async function autoProvisionResource(client, integrationSlug, productSlug, name,
28868
28869
  var import_chalk124 = __toESM(require_source(), 1);
28869
28870
 
28870
28871
  // src/util/integration/fetch-marketplace-integrations-list.ts
28871
- async function fetchMarketplaceIntegrationsList(client) {
28872
+ async function fetchMarketplaceIntegrationsList(client, categories2) {
28873
+ const params = new URLSearchParams({ integrationType: "marketplace" });
28874
+ if (categories2?.length) {
28875
+ for (const category of categories2) {
28876
+ params.append("category", category);
28877
+ }
28878
+ }
28872
28879
  return client.fetch(
28873
- "/v2/integrations/integrations?integrationType=marketplace",
28880
+ `/v2/integrations/integrations?${params.toString()}`,
28874
28881
  {
28875
28882
  json: true
28876
28883
  }
@@ -31160,6 +31167,12 @@ var IntegrationTelemetryClient = class extends TelemetryClient {
31160
31167
  value: actual
31161
31168
  });
31162
31169
  }
31170
+ trackCliSubcommandCategories(actual) {
31171
+ this.trackCliSubcommand({
31172
+ subcommand: "categories",
31173
+ value: actual
31174
+ });
31175
+ }
31163
31176
  trackCliSubcommandRemove(actual) {
31164
31177
  this.trackCliSubcommand({
31165
31178
  subcommand: "remove",
@@ -33649,16 +33662,86 @@ async function update3(client, argv) {
33649
33662
  return 0;
33650
33663
  }
33651
33664
 
33652
- // src/commands/integration/discover.ts
33665
+ // src/commands/integration/categories.ts
33653
33666
  var import_chalk140 = __toESM(require_source(), 1);
33654
33667
 
33668
+ // src/util/integration/fetch-integration-categories.ts
33669
+ async function fetchIntegrationCategories(client) {
33670
+ return client.fetch("/v2/integrations/categories", {
33671
+ json: true
33672
+ });
33673
+ }
33674
+
33675
+ // src/commands/integration/categories.ts
33676
+ async function categories(client, args) {
33677
+ let parsedArguments = null;
33678
+ const flagsSpecification = getFlagsSpecification(
33679
+ categoriesSubcommand.options
33680
+ );
33681
+ try {
33682
+ parsedArguments = parseArguments(args, flagsSpecification);
33683
+ } catch (error) {
33684
+ printError(error);
33685
+ return 1;
33686
+ }
33687
+ if (parsedArguments.args.length > 0) {
33688
+ output_manager_default.error(
33689
+ "Invalid number of arguments. Usage: `vercel integration categories`"
33690
+ );
33691
+ return 1;
33692
+ }
33693
+ const formatResult = validateJsonOutput(parsedArguments.flags);
33694
+ if (!formatResult.valid) {
33695
+ output_manager_default.error(formatResult.error);
33696
+ return 1;
33697
+ }
33698
+ const asJson = formatResult.jsonOutput;
33699
+ output_manager_default.spinner("Fetching integration categories...", 500);
33700
+ let fetched;
33701
+ try {
33702
+ fetched = await fetchIntegrationCategories(client);
33703
+ } catch (error) {
33704
+ output_manager_default.error(
33705
+ `Failed to fetch integration categories: ${error.message}`
33706
+ );
33707
+ return 1;
33708
+ }
33709
+ output_manager_default.stopSpinner();
33710
+ const projected = fetched.map(({ slug, title: title4 }) => ({ slug, title: title4 }));
33711
+ if (asJson) {
33712
+ client.stdout.write(
33713
+ `${JSON.stringify({ categories: projected }, null, 2)}
33714
+ `
33715
+ );
33716
+ return 0;
33717
+ }
33718
+ if (projected.length === 0) {
33719
+ output_manager_default.log("No integration categories found.");
33720
+ return 0;
33721
+ }
33722
+ const useCompactFormat = client.stderr.columns > 0 && client.stderr.columns < 80;
33723
+ const formattedOutput = useCompactFormat ? formatCompactList(projected) : formatTable2(projected);
33724
+ output_manager_default.log("Available marketplace categories:\n" + formattedOutput);
33725
+ return 0;
33726
+ }
33727
+ function formatTable2(items) {
33728
+ return table(
33729
+ [
33730
+ ["Slug", "Title"].map((header) => import_chalk140.default.bold(import_chalk140.default.cyan(header))),
33731
+ ...items.map((item) => [item.slug, item.title])
33732
+ ],
33733
+ { hsep: 4 }
33734
+ );
33735
+ }
33736
+ function formatCompactList(items) {
33737
+ return items.map((item) => `${import_chalk140.default.bold(item.slug)} ${item.title}`).join("\n");
33738
+ }
33739
+
33740
+ // src/commands/integration/discover.ts
33741
+ var import_chalk141 = __toESM(require_source(), 1);
33742
+
33655
33743
  // src/util/telemetry/commands/integration/discover.ts
33656
33744
  var IntegrationDiscoverTelemetryClient = class extends TelemetryClient {
33657
- trackCliFlagJson(v) {
33658
- if (v) {
33659
- this.trackCliFlag("json");
33660
- }
33661
- }
33662
33745
  trackCliArgumentQuery(v) {
33663
33746
  if (v) {
33664
33747
  this.trackCliArgument({
@@ -33667,15 +33750,18 @@ var IntegrationDiscoverTelemetryClient = class extends TelemetryClient {
33667
33750
  });
33668
33751
  }
33669
33752
  }
33753
+ trackCliOptionCategory(v) {
33754
+ if (v?.length) {
33755
+ for (const _value of v) {
33756
+ this.trackCliOption({
33757
+ option: "category",
33758
+ value: this.redactedValue
33759
+ });
33760
+ }
33761
+ }
33762
+ }
33670
33763
  };
33671
33764
 
33672
- // src/util/integration/fetch-integration-categories.ts
33673
- async function fetchIntegrationCategories(client) {
33674
- return client.fetch("/v2/integrations/categories", {
33675
- json: true
33676
- });
33677
- }
33678
-
33679
33765
  // src/commands/integration/discover.ts
33680
33766
  var KNOWN_PROTOCOL_TYPES = /* @__PURE__ */ new Set([
33681
33767
  "storage",
@@ -33719,19 +33805,20 @@ async function discover(client, args) {
33719
33805
  }
33720
33806
  const query = parsedArguments.args[0] ?? "";
33721
33807
  telemetry2.trackCliArgumentQuery(query);
33808
+ const categoryFilters = parsedArguments.flags["--category"];
33809
+ telemetry2.trackCliOptionCategory(categoryFilters);
33722
33810
  const formatResult = validateJsonOutput(parsedArguments.flags);
33723
33811
  if (!formatResult.valid) {
33724
33812
  output_manager_default.error(formatResult.error);
33725
33813
  return 1;
33726
33814
  }
33727
33815
  const asJson = formatResult.jsonOutput;
33728
- telemetry2.trackCliFlagJson(parsedArguments.flags["--json"]);
33729
33816
  output_manager_default.spinner("Fetching marketplace integrations...", 500);
33730
33817
  let integrations;
33731
- let categories = [];
33818
+ let categories2 = [];
33732
33819
  try {
33733
33820
  const [integrationsResult, categoriesResult] = await Promise.allSettled([
33734
- fetchMarketplaceIntegrationsList(client),
33821
+ fetchMarketplaceIntegrationsList(client, categoryFilters),
33735
33822
  fetchIntegrationCategories(client)
33736
33823
  ]);
33737
33824
  if (integrationsResult.status === "rejected") {
@@ -33739,7 +33826,7 @@ async function discover(client, args) {
33739
33826
  }
33740
33827
  integrations = integrationsResult.value;
33741
33828
  if (categoriesResult.status === "fulfilled") {
33742
- categories = categoriesResult.value;
33829
+ categories2 = categoriesResult.value;
33743
33830
  } else {
33744
33831
  output_manager_default.warn(
33745
33832
  `Failed to fetch integration categories. Continuing without categories: ${categoriesResult.reason instanceof Error ? categoriesResult.reason.message : String(categoriesResult.reason)}`
@@ -33752,7 +33839,7 @@ async function discover(client, args) {
33752
33839
  return 1;
33753
33840
  }
33754
33841
  const categoryTitleById = new Map(
33755
- categories.map((category) => [category.id, category.title])
33842
+ categories2.map((category) => [category.id, category.title])
33756
33843
  );
33757
33844
  const results = [];
33758
33845
  for (const integration of integrations) {
@@ -33809,21 +33896,21 @@ async function discover(client, args) {
33809
33896
  return 0;
33810
33897
  }
33811
33898
  const useCompactFormat = client.stderr.columns > 0 && client.stderr.columns < 120;
33812
- const formattedOutput = useCompactFormat ? formatCompactList(filtered) : formatTable2(filtered);
33899
+ const formattedOutput = useCompactFormat ? formatCompactList2(filtered) : formatTable3(filtered);
33813
33900
  output_manager_default.log("Available marketplace products:\n" + formattedOutput);
33814
33901
  return 0;
33815
33902
  }
33816
- function formatTable2(products) {
33903
+ function formatTable3(products) {
33817
33904
  return table(
33818
33905
  [
33819
33906
  ["Product Name", "Slug", "Provider", "Description"].map(
33820
- (header) => import_chalk140.default.bold(import_chalk140.default.cyan(header))
33907
+ (header) => import_chalk141.default.bold(import_chalk141.default.cyan(header))
33821
33908
  ),
33822
33909
  ...products.map((product) => [
33823
33910
  product.name,
33824
33911
  product.slug,
33825
33912
  product.provider,
33826
- product.description || import_chalk140.default.gray("-")
33913
+ product.description || import_chalk141.default.gray("-")
33827
33914
  ])
33828
33915
  ],
33829
33916
  { hsep: 4 }
@@ -33833,10 +33920,10 @@ function matchesSearchTerm2(product, term) {
33833
33920
  const lower = term.toLowerCase();
33834
33921
  return product.name.toLowerCase().includes(lower) || product.slug.toLowerCase().includes(lower) || product.provider.toLowerCase().includes(lower) || product.description.toLowerCase().includes(lower) || product.tags.some((tag) => tag.toLowerCase().includes(lower));
33835
33922
  }
33836
- function formatCompactList(products) {
33923
+ function formatCompactList2(products) {
33837
33924
  return products.map((product) => {
33838
33925
  return [
33839
- `${import_chalk140.default.bold(product.name)} (${product.slug})`,
33926
+ `${import_chalk141.default.bold(product.name)} (${product.slug})`,
33840
33927
  ` Provider: ${product.provider}`,
33841
33928
  ` Description: ${product.description || "-"}`
33842
33929
  ].join("\n");
@@ -33844,7 +33931,7 @@ function formatCompactList(products) {
33844
33931
  }
33845
33932
 
33846
33933
  // src/commands/integration/guide.ts
33847
- var import_chalk141 = __toESM(require_source(), 1);
33934
+ var import_chalk142 = __toESM(require_source(), 1);
33848
33935
 
33849
33936
  // src/util/telemetry/commands/integration/guide.ts
33850
33937
  var IntegrationGuideTelemetryClient = class extends TelemetryClient {
@@ -33919,7 +34006,7 @@ async function guide(client, subArgs) {
33919
34006
  if (products.length > 1) {
33920
34007
  output_manager_default.log("Available products:");
33921
34008
  for (const p of products) {
33922
- output_manager_default.log(` ${import_chalk141.default.cyan(p.slug)} ${p.name}`);
34009
+ output_manager_default.log(` ${import_chalk142.default.cyan(p.slug)} ${p.name}`);
33923
34010
  }
33924
34011
  }
33925
34012
  return 1;
@@ -33934,7 +34021,7 @@ async function guide(client, subArgs) {
33934
34021
  );
33935
34022
  output_manager_default.log("Available products:");
33936
34023
  for (const p of products) {
33937
- output_manager_default.log(` ${import_chalk141.default.cyan(p.slug)} ${p.name}`);
34024
+ output_manager_default.log(` ${import_chalk142.default.cyan(p.slug)} ${p.name}`);
33938
34025
  }
33939
34026
  return 1;
33940
34027
  }
@@ -33967,7 +34054,7 @@ async function guide(client, subArgs) {
33967
34054
  );
33968
34055
  output_manager_default.log("Available frameworks:");
33969
34056
  for (const g of guides) {
33970
- output_manager_default.log(` ${import_chalk141.default.cyan(g.framework)} ${g.title}`);
34057
+ output_manager_default.log(` ${import_chalk142.default.cyan(g.framework)} ${g.title}`);
33971
34058
  }
33972
34059
  return 1;
33973
34060
  }
@@ -34050,7 +34137,7 @@ async function fetchAllMarketplaceInstallations(client) {
34050
34137
  }
34051
34138
 
34052
34139
  // src/commands/integration/installations-list.ts
34053
- var import_chalk142 = __toESM(require_source(), 1);
34140
+ var import_chalk143 = __toESM(require_source(), 1);
34054
34141
  function pickIntegrationKey(row) {
34055
34142
  const integration = row.integration;
34056
34143
  if (integration && typeof integration.slug === "string") {
@@ -34105,7 +34192,7 @@ async function installationsList(client, argv) {
34105
34192
  return 0;
34106
34193
  }
34107
34194
  const headers = ["Installation", "Integration", "Owner"].map(
34108
- (h) => import_chalk142.default.cyan(h)
34195
+ (h) => import_chalk143.default.cyan(h)
34109
34196
  );
34110
34197
  const lines = [
34111
34198
  headers,
@@ -34132,7 +34219,7 @@ ${table(lines, { hsep: 2 }).replace(/^/gm, " ")}
34132
34219
  }
34133
34220
 
34134
34221
  // src/commands/integration/accept-terms.ts
34135
- var import_chalk143 = __toESM(require_source(), 1);
34222
+ var import_chalk144 = __toESM(require_source(), 1);
34136
34223
 
34137
34224
  // src/util/integration/marketplace-install-integration.ts
34138
34225
  async function installMarketplaceIntegration(client, integrationIdOrSlug, acceptedPolicies) {
@@ -34275,7 +34362,7 @@ async function acceptTerms(client, argv) {
34275
34362
  return 0;
34276
34363
  }
34277
34364
  output_manager_default.log(
34278
- `Integration ${import_chalk143.default.bold(integration.slug)} is already installed for this team.`
34365
+ `Integration ${import_chalk144.default.bold(integration.slug)} is already installed for this team.`
34279
34366
  );
34280
34367
  return 0;
34281
34368
  }
@@ -34323,7 +34410,7 @@ async function acceptTerms(client, argv) {
34323
34410
  return 0;
34324
34411
  }
34325
34412
  output_manager_default.success(
34326
- `Terms accepted. Integration ${import_chalk143.default.bold(integration.slug)} is installed for this team.`
34413
+ `Terms accepted. Integration ${import_chalk144.default.bold(integration.slug)} is installed for this team.`
34327
34414
  );
34328
34415
  logPolicyLinksSummary(policyLinks);
34329
34416
  return 0;
@@ -34345,7 +34432,7 @@ async function acceptTerms(client, argv) {
34345
34432
  return 0;
34346
34433
  }
34347
34434
  output_manager_default.log(
34348
- `Integration ${import_chalk143.default.bold(integration.slug)} is already installed for this team.`
34435
+ `Integration ${import_chalk144.default.bold(integration.slug)} is already installed for this team.`
34349
34436
  );
34350
34437
  return 0;
34351
34438
  }
@@ -34362,6 +34449,7 @@ var COMMAND_CONFIG28 = {
34362
34449
  open: getCommandAliases(openSubcommand3),
34363
34450
  list: getCommandAliases(listSubcommand11),
34364
34451
  installations: getCommandAliases(installationsSubcommand),
34452
+ categories: getCommandAliases(categoriesSubcommand),
34365
34453
  discover: getCommandAliases(discoverSubcommand),
34366
34454
  guide: getCommandAliases(guideSubcommand),
34367
34455
  balance: getCommandAliases(balanceSubcommand),
@@ -34462,6 +34550,15 @@ async function main21(client) {
34462
34550
  telemetry2.trackCliSubcommandInstallations(subcommandOriginal);
34463
34551
  return installationsList(client, subArgs);
34464
34552
  }
34553
+ case "categories": {
34554
+ if (needHelp) {
34555
+ telemetry2.trackCliFlagHelp("integration", subcommandOriginal);
34556
+ printHelp(categoriesSubcommand);
34557
+ return 0;
34558
+ }
34559
+ telemetry2.trackCliSubcommandCategories(subcommandOriginal);
34560
+ return categories(client, subArgs);
34561
+ }
34465
34562
  case "discover": {
34466
34563
  if (needHelp) {
34467
34564
  telemetry2.trackCliFlagHelp("integration", subcommandOriginal);
@@ -34692,7 +34789,7 @@ async function logout2(client) {
34692
34789
 
34693
34790
  // src/commands/logs/index.ts
34694
34791
  var import_error_utils14 = __toESM(require_dist(), 1);
34695
- var import_chalk144 = __toESM(require_source(), 1);
34792
+ var import_chalk145 = __toESM(require_source(), 1);
34696
34793
  var import_format21 = __toESM(require_format(), 1);
34697
34794
 
34698
34795
  // src/util/logs-v2.ts
@@ -35108,7 +35205,7 @@ function getInspectCommand(deployment, contextName, { plain = false } = {}) {
35108
35205
  function printNonLiveDeploymentError(deployment, contextName) {
35109
35206
  const inspectCommand2 = getInspectCommand(deployment, contextName);
35110
35207
  output_manager_default.error(
35111
- `Logs are unavailable because deployment ${import_chalk144.default.bold(
35208
+ `Logs are unavailable because deployment ${import_chalk145.default.bold(
35112
35209
  deployment.id
35113
35210
  )} never reached READY and ended in ${deployment.readyState}.
35114
35211
  Run ${inspectCommand2} for deployment details.`
@@ -35123,7 +35220,7 @@ async function resolveLogsTarget(client, { contextName, deploymentOption, projec
35123
35220
  } catch (err) {
35124
35221
  if (err instanceof DeploymentNotFound) {
35125
35222
  output_manager_default.error(
35126
- `Deployment not found: ${deploymentOption} under ${import_chalk144.default.bold(
35223
+ `Deployment not found: ${deploymentOption} under ${import_chalk145.default.bold(
35127
35224
  contextName
35128
35225
  )}`
35129
35226
  );
@@ -35146,7 +35243,7 @@ async function resolveLogsTarget(client, { contextName, deploymentOption, projec
35146
35243
  output_manager_default.stopSpinner();
35147
35244
  if (project instanceof ProjectNotFound) {
35148
35245
  output_manager_default.error(
35149
- `Project not found: ${deployment.projectId} under ${import_chalk144.default.bold(
35246
+ `Project not found: ${deployment.projectId} under ${import_chalk145.default.bold(
35150
35247
  contextName
35151
35248
  )}`
35152
35249
  );
@@ -35158,13 +35255,13 @@ async function resolveLogsTarget(client, { contextName, deploymentOption, projec
35158
35255
  output_manager_default.stopSpinner();
35159
35256
  if (explicitProject instanceof ProjectNotFound) {
35160
35257
  output_manager_default.error(
35161
- `Project not found: ${projectOption} under ${import_chalk144.default.bold(contextName)}`
35258
+ `Project not found: ${projectOption} under ${import_chalk145.default.bold(contextName)}`
35162
35259
  );
35163
35260
  return { exitCode: 1 };
35164
35261
  }
35165
35262
  if (explicitProject.id !== project.id) {
35166
35263
  output_manager_default.error(
35167
- `The deployment "${deploymentOption}" does not belong to "${projectOption}" project. Remove either the deployment selection or the ${import_chalk144.default.bold(
35264
+ `The deployment "${deploymentOption}" does not belong to "${projectOption}" project. Remove either the deployment selection or the ${import_chalk145.default.bold(
35168
35265
  "--project"
35169
35266
  )} option.`
35170
35267
  );
@@ -35185,7 +35282,7 @@ async function resolveLogsTarget(client, { contextName, deploymentOption, projec
35185
35282
  output_manager_default.stopSpinner();
35186
35283
  if (project instanceof ProjectNotFound) {
35187
35284
  output_manager_default.error(
35188
- `Project not found: ${projectOption} under ${import_chalk144.default.bold(contextName)}`
35285
+ `Project not found: ${projectOption} under ${import_chalk145.default.bold(contextName)}`
35189
35286
  );
35190
35287
  return { exitCode: 1 };
35191
35288
  }
@@ -35204,7 +35301,7 @@ async function resolveLogsTarget(client, { contextName, deploymentOption, projec
35204
35301
  output_manager_default.error(
35205
35302
  `Your codebase isn't linked to a project on Vercel. Run ${getCommandName(
35206
35303
  "link"
35207
- )} to begin, or specify a project with ${import_chalk144.default.bold("--project")}.`
35304
+ )} to begin, or specify a project with ${import_chalk145.default.bold("--project")}.`
35208
35305
  );
35209
35306
  return { exitCode: 1 };
35210
35307
  }
@@ -35295,10 +35392,10 @@ async function logs(client) {
35295
35392
  { flag: "--search", value: searchOption },
35296
35393
  { flag: "--request-id", value: requestIdOption }
35297
35394
  ];
35298
- const usedIncompatible = incompatibleFlags.filter((f) => f.value !== void 0 && f.value !== null).map((f) => import_chalk144.default.bold(f.flag));
35395
+ const usedIncompatible = incompatibleFlags.filter((f) => f.value !== void 0 && f.value !== null).map((f) => import_chalk145.default.bold(f.flag));
35299
35396
  if (usedIncompatible.length > 0) {
35300
35397
  output_manager_default.error(
35301
- `The ${import_chalk144.default.bold("--follow")} flag does not support filtering. Remove: ${usedIncompatible.join(", ")}`
35398
+ `The ${import_chalk145.default.bold("--follow")} flag does not support filtering. Remove: ${usedIncompatible.join(", ")}`
35302
35399
  );
35303
35400
  return 1;
35304
35401
  }
@@ -35359,13 +35456,13 @@ async function logs(client) {
35359
35456
  if (!deploymentId) {
35360
35457
  if (noBranchFlagValue) {
35361
35458
  output_manager_default.error(
35362
- `The ${import_chalk144.default.bold("--follow")} flag requires a deployment. Specify one with ${import_chalk144.default.bold("--deployment")} or remove ${import_chalk144.default.bold("--no-branch")} to auto-detect from the current git branch.`
35459
+ `The ${import_chalk145.default.bold("--follow")} flag requires a deployment. Specify one with ${import_chalk145.default.bold("--deployment")} or remove ${import_chalk145.default.bold("--no-branch")} to auto-detect from the current git branch.`
35363
35460
  );
35364
35461
  return 1;
35365
35462
  }
35366
35463
  if (!branchOption) {
35367
35464
  output_manager_default.error(
35368
- `The ${import_chalk144.default.bold("--follow")} flag requires a deployment. Specify one with ${import_chalk144.default.bold("--deployment")} or run from within a git repository.`
35465
+ `The ${import_chalk145.default.bold("--follow")} flag requires a deployment. Specify one with ${import_chalk145.default.bold("--deployment")} or run from within a git repository.`
35369
35466
  );
35370
35467
  return 1;
35371
35468
  }
@@ -35381,7 +35478,7 @@ async function logs(client) {
35381
35478
  output_manager_default.stopSpinner();
35382
35479
  if (!branchDeployment) {
35383
35480
  output_manager_default.error(
35384
- `No deployments found for branch "${branchOption}". Deploy this branch first or specify a deployment with ${import_chalk144.default.bold("--deployment")}.`
35481
+ `No deployments found for branch "${branchOption}". Deploy this branch first or specify a deployment with ${import_chalk145.default.bold("--deployment")}.`
35385
35482
  );
35386
35483
  return 1;
35387
35484
  }
@@ -35392,7 +35489,7 @@ async function logs(client) {
35392
35489
  }
35393
35490
  if (!jsonOption) {
35394
35491
  output_manager_default.print(
35395
- `Streaming logs for deployment ${import_chalk144.default.bold(deploymentId)} starting from ${import_chalk144.default.bold((0, import_format21.default)(Date.now(), TIME_ONLY_FORMAT))}
35492
+ `Streaming logs for deployment ${import_chalk145.default.bold(deploymentId)} starting from ${import_chalk145.default.bold((0, import_format21.default)(Date.now(), TIME_ONLY_FORMAT))}
35396
35493
 
35397
35494
  `
35398
35495
  );
@@ -35473,10 +35570,10 @@ async function logs(client) {
35473
35570
  }
35474
35571
  output_manager_default.stopSpinner();
35475
35572
  if (!jsonOption) {
35476
- const branchSuffix = branchOption ? ` on branch ${import_chalk144.default.cyan(branchOption)}` : "";
35573
+ const branchSuffix = branchOption ? ` on branch ${import_chalk145.default.cyan(branchOption)}` : "";
35477
35574
  if (logs2.length === 0) {
35478
35575
  output_manager_default.print(
35479
- import_chalk144.default.dim(
35576
+ import_chalk145.default.dim(
35480
35577
  `No logs found for ${formatProject(orgSlug, projectSlug)}${branchSuffix}
35481
35578
  `
35482
35579
  )
@@ -35502,12 +35599,12 @@ async function logs(client) {
35502
35599
  {
35503
35600
  label: "TIME",
35504
35601
  getValue: (row) => row.time,
35505
- format: (padded) => import_chalk144.default.dim(padded)
35602
+ format: (padded) => import_chalk145.default.dim(padded)
35506
35603
  },
35507
35604
  {
35508
35605
  label: "HOST",
35509
35606
  getValue: (row) => row.host,
35510
- format: (padded) => import_chalk144.default.dim(padded)
35607
+ format: (padded) => import_chalk145.default.dim(padded)
35511
35608
  },
35512
35609
  {
35513
35610
  label: "LEVEL",
@@ -35525,26 +35622,26 @@ async function logs(client) {
35525
35622
  {
35526
35623
  label: "STATUS",
35527
35624
  getValue: (row) => row.status,
35528
- format: (padded, row) => row.statusCode <= 0 ? import_chalk144.default.gray(padded) : colorizeStatus(padded, row.statusCode)
35625
+ format: (padded, row) => row.statusCode <= 0 ? import_chalk145.default.gray(padded) : colorizeStatus(padded, row.statusCode)
35529
35626
  },
35530
35627
  {
35531
35628
  label: "MESSAGE",
35532
35629
  width: "stretch",
35533
35630
  getValue: (row) => row.message || "(no message)",
35534
- format: (padded, row) => row.message ? colorizeMessage(padded, row.level) : import_chalk144.default.dim(padded)
35631
+ format: (padded, row) => row.message ? colorizeMessage(padded, row.level) : import_chalk145.default.dim(padded)
35535
35632
  }
35536
35633
  ];
35537
35634
  const formatted = table2({
35538
35635
  columns,
35539
35636
  rows: rowData,
35540
35637
  tableWidth: terminalWidth,
35541
- formatHeader: (header) => import_chalk144.default.dim(header),
35638
+ formatHeader: (header) => import_chalk145.default.dim(header),
35542
35639
  formatRow: expandOption ? (rowStr, row) => {
35543
35640
  if (row.logs.length > 0) {
35544
35641
  const renderedLogs = row.logs.map((log) => {
35545
35642
  const message = log.message.replace(/\n/g, " ").trim();
35546
35643
  const safeMessage = message || "(no message)";
35547
- const truncatedIndicator = log.messageTruncated ? import_chalk144.default.gray("\u2026") : "";
35644
+ const truncatedIndicator = log.messageTruncated ? import_chalk145.default.gray("\u2026") : "";
35548
35645
  return `${colorizeMessage(safeMessage, log.level)}${truncatedIndicator}`;
35549
35646
  }).join("\n");
35550
35647
  return `${rowStr}
@@ -35559,7 +35656,7 @@ ${renderedLogs}
35559
35656
  output_manager_default.print(row + "\n");
35560
35657
  }
35561
35658
  output_manager_default.print(
35562
- import_chalk144.default.gray(
35659
+ import_chalk145.default.gray(
35563
35660
  `Fetched ${logs2.length} logs for ${formatProject(orgSlug, projectSlug)}${branchSuffix}
35564
35661
  `
35565
35662
  )
@@ -35571,26 +35668,26 @@ ${renderedLogs}
35571
35668
  function colorizeLevel(formatted, level) {
35572
35669
  switch (level) {
35573
35670
  case "fatal":
35574
- return import_chalk144.default.red.bold(formatted);
35671
+ return import_chalk145.default.red.bold(formatted);
35575
35672
  case "error":
35576
- return import_chalk144.default.red(formatted);
35673
+ return import_chalk145.default.red(formatted);
35577
35674
  case "warning":
35578
- return import_chalk144.default.yellow(formatted);
35675
+ return import_chalk145.default.yellow(formatted);
35579
35676
  default:
35580
- return import_chalk144.default.dim(formatted);
35677
+ return import_chalk145.default.dim(formatted);
35581
35678
  }
35582
35679
  }
35583
35680
  function colorizeStatus(formatted, statusCode) {
35584
35681
  if (statusCode >= 500) {
35585
- return import_chalk144.default.red(formatted);
35682
+ return import_chalk145.default.red(formatted);
35586
35683
  } else if (statusCode >= 400) {
35587
- return import_chalk144.default.yellow(formatted);
35684
+ return import_chalk145.default.yellow(formatted);
35588
35685
  } else if (statusCode >= 300) {
35589
- return import_chalk144.default.cyan(formatted);
35686
+ return import_chalk145.default.cyan(formatted);
35590
35687
  } else if (statusCode >= 200) {
35591
- return import_chalk144.default.green(formatted);
35688
+ return import_chalk145.default.green(formatted);
35592
35689
  }
35593
- return import_chalk144.default.gray(formatted);
35690
+ return import_chalk145.default.gray(formatted);
35594
35691
  }
35595
35692
  function getSourceIcon(source) {
35596
35693
  switch (source) {
@@ -35613,11 +35710,11 @@ function colorizeMessage(message, level) {
35613
35710
  switch (level) {
35614
35711
  case "fatal":
35615
35712
  case "error":
35616
- return import_chalk144.default.red(message);
35713
+ return import_chalk145.default.red(message);
35617
35714
  case "warning":
35618
- return import_chalk144.default.yellow(message);
35715
+ return import_chalk145.default.yellow(message);
35619
35716
  default:
35620
- return import_chalk144.default.dim(message);
35717
+ return import_chalk145.default.dim(message);
35621
35718
  }
35622
35719
  }
35623
35720
 
@@ -36305,7 +36402,7 @@ async function metrics(client) {
36305
36402
  return 0;
36306
36403
  }
36307
36404
  telemetry2.trackCliSubcommandSchema(subcommandOriginal);
36308
- const schemaFn = (await import("./chunks/schema-Q2JNER6Z.js")).default;
36405
+ const schemaFn = (await import("./chunks/schema-CZVKUXM6.js")).default;
36309
36406
  return schemaFn(client, telemetry2);
36310
36407
  }
36311
36408
  default: {
@@ -36318,14 +36415,14 @@ async function metrics(client) {
36318
36415
  output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
36319
36416
  return 2;
36320
36417
  }
36321
- const queryFn = (await import("./chunks/query-2PCHFFUA.js")).default;
36418
+ const queryFn = (await import("./chunks/query-N22EYSZZ.js")).default;
36322
36419
  return queryFn(client, telemetry2);
36323
36420
  }
36324
36421
  }
36325
36422
  }
36326
36423
 
36327
36424
  // src/commands/microfrontends/pull.ts
36328
- var import_chalk145 = __toESM(require_source(), 1);
36425
+ var import_chalk146 = __toESM(require_source(), 1);
36329
36426
  import { join as join5 } from "path";
36330
36427
  var import_fs_extra = __toESM(require_lib(), 1);
36331
36428
  var VERCEL_DIR = ".vercel";
@@ -36356,7 +36453,7 @@ async function pull2(client) {
36356
36453
  client.config.currentTeam = org.type === "team" ? org.id : void 0;
36357
36454
  const { contextName } = await getScope(client);
36358
36455
  output_manager_default.spinner(
36359
- `Fetching microfrontends configuration in ${import_chalk145.default.bold(contextName)}`
36456
+ `Fetching microfrontends configuration in ${import_chalk146.default.bold(contextName)}`
36360
36457
  );
36361
36458
  let rawConfig;
36362
36459
  const dpl = parsedArgs.flags["--dpl"];
@@ -36394,11 +36491,11 @@ async function pull2(client) {
36394
36491
  const microfrontendsStamp = stamp_default();
36395
36492
  output_manager_default.print(
36396
36493
  `${prependEmoji(
36397
- `Downloaded microfrontends configuration to ${import_chalk145.default.bold(
36494
+ `Downloaded microfrontends configuration to ${import_chalk146.default.bold(
36398
36495
  humanizePath(
36399
36496
  join5(currentDirectory, VERCEL_DIR, VERCEL_DIR_MICROFRONTENDS)
36400
36497
  )
36401
- )} ${import_chalk145.default.gray(microfrontendsStamp())}`,
36498
+ )} ${import_chalk146.default.gray(microfrontendsStamp())}`,
36402
36499
  emoji("success")
36403
36500
  )}
36404
36501
  `
@@ -36412,7 +36509,7 @@ async function pull2(client) {
36412
36509
  }
36413
36510
 
36414
36511
  // src/commands/microfrontends/create-group.ts
36415
- var import_chalk146 = __toESM(require_source(), 1);
36512
+ var import_chalk147 = __toESM(require_source(), 1);
36416
36513
  import { writeFile as writeFile4 } from "fs/promises";
36417
36514
  import { existsSync } from "fs";
36418
36515
  import { join as join6 } from "path";
@@ -36497,7 +36594,7 @@ async function createGroup(client) {
36497
36594
  "A microfrontends group allows multiple projects to be composed into one application with a seamless user experience."
36498
36595
  );
36499
36596
  output_manager_default.log(
36500
- `Creating a new microfrontends group for team ${import_chalk146.default.bold(teamSlug)}.`
36597
+ `Creating a new microfrontends group for team ${import_chalk147.default.bold(teamSlug)}.`
36501
36598
  );
36502
36599
  output_manager_default.log("");
36503
36600
  const groupsResponse = await fetchMicrofrontendsGroups(client, team.id);
@@ -36757,29 +36854,29 @@ async function createGroup(client) {
36757
36854
  const newProjectCount = selectedProjects.length;
36758
36855
  const totalAfter = existingMfeProjectCount + newProjectCount;
36759
36856
  output_manager_default.log("");
36760
- output_manager_default.log(import_chalk146.default.bold("Billing"));
36761
- output_manager_default.log(` ${import_chalk146.default.bold("Team:")} ${teamSlug}`);
36857
+ output_manager_default.log(import_chalk147.default.bold("Billing"));
36858
+ output_manager_default.log(` ${import_chalk147.default.bold("Team:")} ${teamSlug}`);
36762
36859
  output_manager_default.log(
36763
- ` ${import_chalk146.default.bold("Adding:")} ${newProjectCount} microfrontends project${newProjectCount > 1 ? "s" : ""}`
36860
+ ` ${import_chalk147.default.bold("Adding:")} ${newProjectCount} microfrontends project${newProjectCount > 1 ? "s" : ""}`
36764
36861
  );
36765
36862
  let projectFee;
36766
36863
  if (totalAfter <= freeProjects) {
36767
- projectFee = import_chalk146.default.green("Free") + ` (first ${freeProjects} included)`;
36864
+ projectFee = import_chalk147.default.green("Free") + ` (first ${freeProjects} included)`;
36768
36865
  } else if (existingMfeProjectCount >= freeProjects) {
36769
- projectFee = import_chalk146.default.yellow(`$250.00/month x ${newProjectCount}`) + ` project${newProjectCount > 1 ? "s" : ""}`;
36866
+ projectFee = import_chalk147.default.yellow(`$250.00/month x ${newProjectCount}`) + ` project${newProjectCount > 1 ? "s" : ""}`;
36770
36867
  } else {
36771
36868
  const freeRemaining = freeProjects - existingMfeProjectCount;
36772
36869
  const paidProjects = newProjectCount - freeRemaining;
36773
- projectFee = import_chalk146.default.green(`${freeRemaining} free`) + ", " + import_chalk146.default.yellow(`$250.00/month x ${paidProjects}`);
36870
+ projectFee = import_chalk147.default.green(`${freeRemaining} free`) + ", " + import_chalk147.default.yellow(`$250.00/month x ${paidProjects}`);
36774
36871
  }
36775
- output_manager_default.log(` ${import_chalk146.default.bold("Project fee:")} ${projectFee}`);
36872
+ output_manager_default.log(` ${import_chalk147.default.bold("Project fee:")} ${projectFee}`);
36776
36873
  output_manager_default.log(
36777
- ` ${import_chalk146.default.bold("Request fee:")} ${import_chalk146.default.yellow("$2.00")} per million microfrontends routed requests`
36874
+ ` ${import_chalk147.default.bold("Request fee:")} ${import_chalk147.default.yellow("$2.00")} per million microfrontends routed requests`
36778
36875
  );
36779
36876
  output_manager_default.log("");
36780
36877
  if (totalAfter <= freeProjects) {
36781
36878
  output_manager_default.log(
36782
- `This group is within the free tier, so no project fee will be charged to ${import_chalk146.default.bold(teamSlug)}'s bill. Request fees still apply for microfrontends routed requests.`
36879
+ `This group is within the free tier, so no project fee will be charged to ${import_chalk147.default.bold(teamSlug)}'s bill. Request fees still apply for microfrontends routed requests.`
36783
36880
  );
36784
36881
  } else {
36785
36882
  const newPaidProjects = Math.min(
@@ -36787,7 +36884,7 @@ async function createGroup(client) {
36787
36884
  totalAfter - freeProjects
36788
36885
  );
36789
36886
  output_manager_default.log(
36790
- `By proceeding, ${import_chalk146.default.bold(teamSlug)} will be charged for ${newPaidProjects} additional paid project${newPaidProjects > 1 ? "s" : ""} on the team's monthly bill.`
36887
+ `By proceeding, ${import_chalk147.default.bold(teamSlug)} will be charged for ${newPaidProjects} additional paid project${newPaidProjects > 1 ? "s" : ""} on the team's monthly bill.`
36791
36888
  );
36792
36889
  }
36793
36890
  output_manager_default.log("");
@@ -36830,7 +36927,7 @@ async function createGroup(client) {
36830
36927
  output_manager_default.stopSpinner();
36831
36928
  const settingsUrl = `https://vercel.com/${teamSlug}/${defaultApp.name}/settings/microfrontends`;
36832
36929
  output_manager_default.success(
36833
- `Microfrontends group "${groupName}" created ${import_chalk146.default.gray(createStamp())}`
36930
+ `Microfrontends group "${groupName}" created ${import_chalk147.default.gray(createStamp())}`
36834
36931
  );
36835
36932
  output_manager_default.log(
36836
36933
  `View microfrontends group: ${output_manager_default.link(settingsUrl, settingsUrl, { fallback: false })}`
@@ -36844,14 +36941,14 @@ async function createGroup(client) {
36844
36941
  if (!existsSync(configPath)) {
36845
36942
  output_manager_default.log("");
36846
36943
  output_manager_default.log(
36847
- `No changes to production traffic will take effect until a ${import_chalk146.default.bold("microfrontends.json")} is added to the default app. This configuration file specifies the path routing for the microfrontends group.`
36944
+ `No changes to production traffic will take effect until a ${import_chalk147.default.bold("microfrontends.json")} is added to the default app. This configuration file specifies the path routing for the microfrontends group.`
36848
36945
  );
36849
36946
  const shouldCreate = client.stdin.isTTY && !isNonInteractive && await client.input.confirm("Create a microfrontends.json now?", true);
36850
36947
  if (shouldCreate) {
36851
36948
  const routingPaths = {};
36852
36949
  for (const project of otherProjects) {
36853
36950
  output_manager_default.log(
36854
- `Enter routing paths for ${import_chalk146.default.bold(project.name)} (comma-separated, e.g. /docs, /docs/*)`
36951
+ `Enter routing paths for ${import_chalk147.default.bold(project.name)} (comma-separated, e.g. /docs, /docs/*)`
36855
36952
  );
36856
36953
  const pathsInput = await client.input.text({
36857
36954
  message: `Paths for ${project.name}:`,
@@ -36878,7 +36975,7 @@ async function createGroup(client) {
36878
36975
  productionAlias
36879
36976
  );
36880
36977
  await writeFile4(configPath, config + "\n", "utf-8");
36881
- output_manager_default.success(`Created ${import_chalk146.default.bold("microfrontends.json")}`);
36978
+ output_manager_default.success(`Created ${import_chalk147.default.bold("microfrontends.json")}`);
36882
36979
  output_manager_default.log(
36883
36980
  "Create a preview deployment to test microfrontends before deploying to production."
36884
36981
  );
@@ -36886,7 +36983,7 @@ async function createGroup(client) {
36886
36983
  }
36887
36984
  } else {
36888
36985
  output_manager_default.log(
36889
- `Next step: Add a ${import_chalk146.default.bold("microfrontends.json")} to your default app. See ${output_manager_default.link("https://vercel.com/docs/microfrontends/path-routing", "https://vercel.com/docs/microfrontends/path-routing", { fallback: false })}`
36986
+ `Next step: Add a ${import_chalk147.default.bold("microfrontends.json")} to your default app. See ${output_manager_default.link("https://vercel.com/docs/microfrontends/path-routing", "https://vercel.com/docs/microfrontends/path-routing", { fallback: false })}`
36890
36987
  );
36891
36988
  }
36892
36989
  return 0;
@@ -36963,7 +37060,7 @@ function parseProjectDefaultRouteFlags(projectDefaultRouteFlags, selectedProject
36963
37060
  }
36964
37061
 
36965
37062
  // src/commands/microfrontends/add-to-group.ts
36966
- var import_chalk147 = __toESM(require_source(), 1);
37063
+ var import_chalk148 = __toESM(require_source(), 1);
36967
37064
  async function addToGroup(client) {
36968
37065
  let parsedArgs;
36969
37066
  const flagsSpecification = getFlagsSpecification(
@@ -37017,7 +37114,7 @@ async function addToGroup(client) {
37017
37114
  return 1;
37018
37115
  }
37019
37116
  output_manager_default.log(
37020
- `Adding project ${import_chalk147.default.bold(project.name)} to a microfrontends group on ${import_chalk147.default.bold(teamSlug)}.`
37117
+ `Adding project ${import_chalk148.default.bold(project.name)} to a microfrontends group on ${import_chalk148.default.bold(teamSlug)}.`
37021
37118
  );
37022
37119
  output_manager_default.log("");
37023
37120
  const groupFlag = parsedArgs.flags["--group"];
@@ -37107,28 +37204,28 @@ async function addToGroup(client) {
37107
37204
  });
37108
37205
  }
37109
37206
  output_manager_default.log("");
37110
- output_manager_default.log(import_chalk147.default.bold("Billing"));
37111
- output_manager_default.log(` ${import_chalk147.default.bold("Team:")} ${teamSlug}`);
37207
+ output_manager_default.log(import_chalk148.default.bold("Billing"));
37208
+ output_manager_default.log(` ${import_chalk148.default.bold("Team:")} ${teamSlug}`);
37112
37209
  let projectFee;
37113
37210
  if (totalAfter <= freeProjects) {
37114
- projectFee = import_chalk147.default.green("Free") + ` (first ${freeProjects} included)`;
37211
+ projectFee = import_chalk148.default.green("Free") + ` (first ${freeProjects} included)`;
37115
37212
  } else if (existingMfeProjectCount >= freeProjects) {
37116
- projectFee = import_chalk147.default.yellow("$250.00/month");
37213
+ projectFee = import_chalk148.default.yellow("$250.00/month");
37117
37214
  } else {
37118
- projectFee = import_chalk147.default.yellow("$250.00/month") + ` (${freeProjects} free projects used)`;
37215
+ projectFee = import_chalk148.default.yellow("$250.00/month") + ` (${freeProjects} free projects used)`;
37119
37216
  }
37120
- output_manager_default.log(` ${import_chalk147.default.bold("Project fee:")} ${projectFee}`);
37217
+ output_manager_default.log(` ${import_chalk148.default.bold("Project fee:")} ${projectFee}`);
37121
37218
  output_manager_default.log(
37122
- ` ${import_chalk147.default.bold("Request fee:")} ${import_chalk147.default.yellow("$2.00")} per million microfrontends routed requests`
37219
+ ` ${import_chalk148.default.bold("Request fee:")} ${import_chalk148.default.yellow("$2.00")} per million microfrontends routed requests`
37123
37220
  );
37124
37221
  output_manager_default.log("");
37125
37222
  if (totalAfter <= freeProjects) {
37126
37223
  output_manager_default.log(
37127
- `Adding "${project.name}" is within the free tier, so no project fee will be charged to ${import_chalk147.default.bold(teamSlug)}'s bill. Request fees still apply for microfrontends routed requests.`
37224
+ `Adding "${project.name}" is within the free tier, so no project fee will be charged to ${import_chalk148.default.bold(teamSlug)}'s bill. Request fees still apply for microfrontends routed requests.`
37128
37225
  );
37129
37226
  } else {
37130
37227
  output_manager_default.log(
37131
- `By proceeding, ${import_chalk147.default.bold(teamSlug)} will be charged for this project on the team's monthly bill.`
37228
+ `By proceeding, ${import_chalk148.default.bold(teamSlug)} will be charged for this project on the team's monthly bill.`
37132
37229
  );
37133
37230
  }
37134
37231
  output_manager_default.log("");
@@ -37169,7 +37266,7 @@ async function addToGroup(client) {
37169
37266
  output_manager_default.stopSpinner();
37170
37267
  const settingsUrl = `https://vercel.com/${teamSlug}/${project.name}/settings/microfrontends`;
37171
37268
  output_manager_default.success(
37172
- `Project "${project.name}" added to group "${selectedGroup.group.name}" ${import_chalk147.default.gray(addStamp())}`
37269
+ `Project "${project.name}" added to group "${selectedGroup.group.name}" ${import_chalk148.default.gray(addStamp())}`
37173
37270
  );
37174
37271
  output_manager_default.log(
37175
37272
  `View microfrontends group: ${output_manager_default.link(settingsUrl, settingsUrl, { fallback: false })}`
@@ -37181,7 +37278,7 @@ async function addToGroup(client) {
37181
37278
  }
37182
37279
 
37183
37280
  // src/commands/microfrontends/remove-from-group.ts
37184
- var import_chalk148 = __toESM(require_source(), 1);
37281
+ var import_chalk149 = __toESM(require_source(), 1);
37185
37282
  async function removeFromGroup(client) {
37186
37283
  let parsedArgs;
37187
37284
  const flagsSpecification = getFlagsSpecification(
@@ -37238,7 +37335,7 @@ async function removeFromGroup(client) {
37238
37335
  return 1;
37239
37336
  }
37240
37337
  output_manager_default.log(
37241
- `Removing project ${import_chalk148.default.bold(project.name)} from microfrontends group ${import_chalk148.default.bold(projectGroup.group.name)} on ${import_chalk148.default.bold(teamSlug)}.`
37338
+ `Removing project ${import_chalk149.default.bold(project.name)} from microfrontends group ${import_chalk149.default.bold(projectGroup.group.name)} on ${import_chalk149.default.bold(teamSlug)}.`
37242
37339
  );
37243
37340
  output_manager_default.log(
37244
37341
  `After removal, "${project.name}" will no longer be a child app in the group and will not be part of the composed application.`
@@ -37313,7 +37410,7 @@ async function removeFromGroup(client) {
37313
37410
  }
37314
37411
  output_manager_default.stopSpinner();
37315
37412
  output_manager_default.success(
37316
- `Project "${project.name}" removed from group "${projectGroup.group.name}" ${import_chalk148.default.gray(removeStamp())}`
37413
+ `Project "${project.name}" removed from group "${projectGroup.group.name}" ${import_chalk149.default.gray(removeStamp())}`
37317
37414
  );
37318
37415
  if (isReferencedInConfig) {
37319
37416
  output_manager_default.log(
@@ -37324,7 +37421,7 @@ async function removeFromGroup(client) {
37324
37421
  }
37325
37422
 
37326
37423
  // src/commands/microfrontends/delete-group.ts
37327
- var import_chalk149 = __toESM(require_source(), 1);
37424
+ var import_chalk150 = __toESM(require_source(), 1);
37328
37425
  async function deleteGroup(client) {
37329
37426
  let parsedArgs;
37330
37427
  const flagsSpecification = getFlagsSpecification(
@@ -37394,7 +37491,7 @@ async function deleteGroup(client) {
37394
37491
  ) : void 0;
37395
37492
  if (linkedGroup && client.stdin.isTTY) {
37396
37493
  const useLinkedGroup = await client.input.confirm(
37397
- `Delete microfrontends group "${linkedGroup.group.name}" (linked to ${import_chalk149.default.bold(linkedProject.name)})?`,
37494
+ `Delete microfrontends group "${linkedGroup.group.name}" (linked to ${import_chalk150.default.bold(linkedProject.name)})?`,
37398
37495
  true
37399
37496
  );
37400
37497
  if (useLinkedGroup) {
@@ -37430,14 +37527,14 @@ async function deleteGroup(client) {
37430
37527
  const projectCount = selectedGroup.projects.length;
37431
37528
  output_manager_default.log("");
37432
37529
  output_manager_default.log(
37433
- `This will delete the microfrontends group ${import_chalk149.default.bold(groupName)} and all of its settings.`
37530
+ `This will delete the microfrontends group ${import_chalk150.default.bold(groupName)} and all of its settings.`
37434
37531
  );
37435
37532
  if (projectCount > 0) {
37436
37533
  output_manager_default.log(
37437
37534
  `${projectCount} project${projectCount > 1 ? "s" : ""} will be removed from the group.`
37438
37535
  );
37439
37536
  }
37440
- output_manager_default.log(import_chalk149.default.red("This action is not reversible."));
37537
+ output_manager_default.log(import_chalk150.default.red("This action is not reversible."));
37441
37538
  output_manager_default.log("");
37442
37539
  if (!autoConfirm) {
37443
37540
  if (!client.stdin.isTTY) {
@@ -37447,7 +37544,7 @@ async function deleteGroup(client) {
37447
37544
  return 1;
37448
37545
  }
37449
37546
  const typedName = await client.input.text({
37450
- message: `Type ${import_chalk149.default.bold(groupName)} to confirm deletion:`,
37547
+ message: `Type ${import_chalk150.default.bold(groupName)} to confirm deletion:`,
37451
37548
  validate: (val) => {
37452
37549
  if (val !== groupName) {
37453
37550
  return `You must type "${groupName}" to confirm.`;
@@ -37482,7 +37579,7 @@ async function deleteGroup(client) {
37482
37579
  }
37483
37580
  output_manager_default.stopSpinner();
37484
37581
  output_manager_default.success(
37485
- `Microfrontends group "${groupName}" deleted ${import_chalk149.default.gray(deleteStamp())}`
37582
+ `Microfrontends group "${groupName}" deleted ${import_chalk150.default.gray(deleteStamp())}`
37486
37583
  );
37487
37584
  return 0;
37488
37585
  }
@@ -37490,7 +37587,7 @@ async function deleteGroup(client) {
37490
37587
  // src/commands/microfrontends/inspect-group.ts
37491
37588
  import { existsSync as existsSync2 } from "fs";
37492
37589
  import { join as join7 } from "path";
37493
- var import_chalk150 = __toESM(require_source(), 1);
37590
+ var import_chalk151 = __toESM(require_source(), 1);
37494
37591
  async function inspectGroup(client) {
37495
37592
  let parsedArgs;
37496
37593
  const flagsSpecification = getFlagsSpecification(
@@ -37650,7 +37747,7 @@ async function inspectGroup(client) {
37650
37747
  rows.push(["Package name", project.packageName]);
37651
37748
  }
37652
37749
  if (!project.inGroupConfig) {
37653
- rows.push(["In config", (0, import_chalk150.red)("no")]);
37750
+ rows.push(["In config", (0, import_chalk151.red)("no")]);
37654
37751
  }
37655
37752
  const projectTable = table(rows);
37656
37753
  output_manager_default.log(projectTable);
@@ -38728,7 +38825,7 @@ async function openCommandHandler(client) {
38728
38825
  }
38729
38826
 
38730
38827
  // src/commands/project/add.ts
38731
- var import_chalk151 = __toESM(require_source(), 1);
38828
+ var import_chalk152 = __toESM(require_source(), 1);
38732
38829
  var import_ms19 = __toESM(require_ms(), 1);
38733
38830
 
38734
38831
  // src/util/telemetry/commands/project/add.ts
@@ -38761,12 +38858,12 @@ async function add8(client, argv) {
38761
38858
  const { args } = parsedArgs;
38762
38859
  if (args.length !== 1) {
38763
38860
  output_manager_default.error(
38764
- `Invalid number of arguments. Usage: ${import_chalk151.default.cyan(
38861
+ `Invalid number of arguments. Usage: ${import_chalk152.default.cyan(
38765
38862
  `${getCommandName("project add <name>")}`
38766
38863
  )}`
38767
38864
  );
38768
38865
  if (args.length > 1) {
38769
- const example = import_chalk151.default.cyan(
38866
+ const example = import_chalk152.default.cyan(
38770
38867
  `${getCommandName(`project add "${args.join(" ")}"`)}`
38771
38868
  );
38772
38869
  output_manager_default.log(
@@ -38794,15 +38891,15 @@ async function add8(client, argv) {
38794
38891
  const elapsed2 = (0, import_ms19.default)(Date.now() - start);
38795
38892
  const { contextName } = await getScope(client);
38796
38893
  output_manager_default.log(
38797
- `${import_chalk151.default.cyan("Success!")} Project ${import_chalk151.default.bold(
38894
+ `${import_chalk152.default.cyan("Success!")} Project ${import_chalk152.default.bold(
38798
38895
  name.toLowerCase()
38799
- )} added (${import_chalk151.default.bold(contextName)}) ${import_chalk151.default.gray(`[${elapsed2}]`)}`
38896
+ )} added (${import_chalk152.default.bold(contextName)}) ${import_chalk152.default.gray(`[${elapsed2}]`)}`
38800
38897
  );
38801
38898
  return 0;
38802
38899
  }
38803
38900
 
38804
38901
  // src/commands/project/access-summary.ts
38805
- var import_chalk152 = __toESM(require_source(), 1);
38902
+ var import_chalk153 = __toESM(require_source(), 1);
38806
38903
  async function accessSummary(client, argv) {
38807
38904
  let parsedArgs;
38808
38905
  const flagsSpecification = getFlagsSpecification(
@@ -38868,7 +38965,7 @@ async function accessSummary(client, argv) {
38868
38965
  return 0;
38869
38966
  }
38870
38967
  const rows = [
38871
- ["Role", "Count"].map((h) => (0, import_chalk152.gray)(h)),
38968
+ ["Role", "Count"].map((h) => (0, import_chalk153.gray)(h)),
38872
38969
  ...entries.map(([role, count]) => [role, String(count)])
38873
38970
  ];
38874
38971
  client.stderr.write(`${table(rows, { hsep: 3 })}
@@ -38877,7 +38974,7 @@ async function accessSummary(client, argv) {
38877
38974
  }
38878
38975
 
38879
38976
  // src/commands/project/checks.ts
38880
- var import_chalk153 = __toESM(require_source(), 1);
38977
+ var import_chalk154 = __toESM(require_source(), 1);
38881
38978
 
38882
38979
  // src/commands/project/checks-add.ts
38883
38980
  import { readFileSync as readFileSync3 } from "fs";
@@ -39426,7 +39523,7 @@ async function checks(client, argv) {
39426
39523
  return 0;
39427
39524
  }
39428
39525
  const rows = [
39429
- ["ID", "Name", "Blocking", "Target"].map((h) => (0, import_chalk153.gray)(h)),
39526
+ ["ID", "Name", "Blocking", "Target"].map((h) => (0, import_chalk154.gray)(h)),
39430
39527
  ...list15.map((c) => [
39431
39528
  String(c.id ?? c.checkId ?? ""),
39432
39529
  String(c.name ?? ""),
@@ -39442,7 +39539,7 @@ async function checks(client, argv) {
39442
39539
  }
39443
39540
 
39444
39541
  // src/commands/project/inspect.ts
39445
- var import_chalk154 = __toESM(require_source(), 1);
39542
+ var import_chalk155 = __toESM(require_source(), 1);
39446
39543
  var import_frameworks = __toESM(require_frameworks(), 1);
39447
39544
 
39448
39545
  // src/util/telemetry/commands/project/inspect.ts
@@ -39483,7 +39580,7 @@ async function inspect5(client, argv) {
39483
39580
  telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
39484
39581
  if (args.length !== 0 && args.length !== 1) {
39485
39582
  output_manager_default.error(
39486
- `Invalid number of arguments. Usage: ${import_chalk154.default.cyan(
39583
+ `Invalid number of arguments. Usage: ${import_chalk155.default.cyan(
39487
39584
  `${getCommandName("project inspect <name>")}`
39488
39585
  )}`
39489
39586
  );
@@ -39498,42 +39595,42 @@ async function inspect5(client, argv) {
39498
39595
  });
39499
39596
  const org = await getTeamById(client, project.accountId);
39500
39597
  const projectSlugLink = formatProject(org.slug, project.name);
39501
- output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk154.default.gray(inspectStamp())}`);
39598
+ output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk155.default.gray(inspectStamp())}`);
39502
39599
  output_manager_default.print("\n");
39503
- output_manager_default.print(import_chalk154.default.bold(" General\n\n"));
39504
- output_manager_default.print(` ${import_chalk154.default.cyan("ID")} ${project.id}
39600
+ output_manager_default.print(import_chalk155.default.bold(" General\n\n"));
39601
+ output_manager_default.print(` ${import_chalk155.default.cyan("ID")} ${project.id}
39505
39602
  `);
39506
- output_manager_default.print(` ${import_chalk154.default.cyan("Name")} ${project.name}
39603
+ output_manager_default.print(` ${import_chalk155.default.cyan("Name")} ${project.name}
39507
39604
  `);
39508
- output_manager_default.print(` ${import_chalk154.default.cyan("Owner")} ${org.name}
39605
+ output_manager_default.print(` ${import_chalk155.default.cyan("Owner")} ${org.name}
39509
39606
  `);
39510
39607
  output_manager_default.print(
39511
- ` ${import_chalk154.default.cyan("Created At")} ${formatDate(project.createdAt)}
39608
+ ` ${import_chalk155.default.cyan("Created At")} ${formatDate(project.createdAt)}
39512
39609
  `
39513
39610
  );
39514
39611
  output_manager_default.print(
39515
- ` ${import_chalk154.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
39612
+ ` ${import_chalk155.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
39516
39613
  `
39517
39614
  );
39518
39615
  output_manager_default.print(
39519
- ` ${import_chalk154.default.cyan("Node.js Version")} ${project.nodeVersion}
39616
+ ` ${import_chalk155.default.cyan("Node.js Version")} ${project.nodeVersion}
39520
39617
  `
39521
39618
  );
39522
39619
  const framework = import_frameworks.frameworkList.find((f) => f.slug === project.framework);
39523
39620
  output_manager_default.print("\n");
39524
- output_manager_default.print(import_chalk154.default.bold(" Framework Settings\n\n"));
39525
- output_manager_default.print(` ${import_chalk154.default.cyan("Framework Preset")} ${framework?.name}
39621
+ output_manager_default.print(import_chalk155.default.bold(" Framework Settings\n\n"));
39622
+ output_manager_default.print(` ${import_chalk155.default.cyan("Framework Preset")} ${framework?.name}
39526
39623
  `);
39527
39624
  output_manager_default.print(
39528
- ` ${import_chalk154.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk154.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
39625
+ ` ${import_chalk155.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk155.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
39529
39626
  `
39530
39627
  );
39531
39628
  output_manager_default.print(
39532
- ` ${import_chalk154.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk154.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
39629
+ ` ${import_chalk155.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk155.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
39533
39630
  `
39534
39631
  );
39535
39632
  output_manager_default.print(
39536
- ` ${import_chalk154.default.cyan("Install Command")} ${project.installCommand ?? import_chalk154.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
39633
+ ` ${import_chalk155.default.cyan("Install Command")} ${project.installCommand ?? import_chalk155.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
39537
39634
  `
39538
39635
  );
39539
39636
  output_manager_default.print("\n");
@@ -39542,7 +39639,7 @@ async function inspect5(client, argv) {
39542
39639
 
39543
39640
  // src/commands/project/list.ts
39544
39641
  var import_ms20 = __toESM(require_ms(), 1);
39545
- var import_chalk155 = __toESM(require_source(), 1);
39642
+ var import_chalk156 = __toESM(require_source(), 1);
39546
39643
 
39547
39644
  // src/util/telemetry/commands/project/list.ts
39548
39645
  var ProjectListTelemetryClient = class extends TelemetryClient {
@@ -39608,7 +39705,7 @@ async function list10(client, argv) {
39608
39705
  const { args, flags: opts } = parsedArgs;
39609
39706
  if (args.length !== 0) {
39610
39707
  output_manager_default.error(
39611
- `Invalid number of arguments. Usage: ${import_chalk155.default.cyan(
39708
+ `Invalid number of arguments. Usage: ${import_chalk156.default.cyan(
39612
39709
  `${getCommandName("project ls")}`
39613
39710
  )}`
39614
39711
  );
@@ -39618,7 +39715,7 @@ async function list10(client, argv) {
39618
39715
  const { contextName } = await getScope(client, {
39619
39716
  resolveLocalScope: true
39620
39717
  });
39621
- output_manager_default.spinner(`Fetching projects in ${import_chalk155.default.bold(contextName)}`);
39718
+ output_manager_default.spinner(`Fetching projects in ${import_chalk156.default.bold(contextName)}`);
39622
39719
  const flags = processFlags(opts, telemetryClient);
39623
39720
  if ("error" in flags) {
39624
39721
  output_manager_default.stopSpinner();
@@ -39706,7 +39803,7 @@ function outputJson4(client, projectList, metadata) {
39706
39803
  function outputTable(projectList, options) {
39707
39804
  const { contextName, elapsed: elapsed2, deprecated, opts, pagination } = options;
39708
39805
  output_manager_default.log(
39709
- `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk155.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk155.default.gray(`[${elapsed2}]`)}`
39806
+ `${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk156.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk156.default.gray(`[${elapsed2}]`)}`
39710
39807
  );
39711
39808
  if (projectList.length > 0) {
39712
39809
  printProjectsTable(projectList);
@@ -39716,12 +39813,12 @@ function outputTable(projectList, options) {
39716
39813
  function printProjectsTable(projectList) {
39717
39814
  const tablePrint = table(
39718
39815
  [
39719
- TABLE_HEADERS.map((header) => import_chalk155.default.bold(import_chalk155.default.cyan(header))),
39816
+ TABLE_HEADERS.map((header) => import_chalk156.default.bold(import_chalk156.default.cyan(header))),
39720
39817
  ...projectList.flatMap((project) => [
39721
39818
  [
39722
- import_chalk155.default.bold(project.name),
39819
+ import_chalk156.default.bold(project.name),
39723
39820
  getLatestProdUrl(project),
39724
- import_chalk155.default.gray((0, import_ms20.default)(Date.now() - project.updatedAt)),
39821
+ import_chalk156.default.gray((0, import_ms20.default)(Date.now() - project.updatedAt)),
39725
39822
  project.nodeVersion ?? ""
39726
39823
  ]
39727
39824
  ])
@@ -39748,7 +39845,7 @@ function getLatestProdUrl(project) {
39748
39845
  }
39749
39846
 
39750
39847
  // src/commands/project/members.ts
39751
- var import_chalk156 = __toESM(require_source(), 1);
39848
+ var import_chalk157 = __toESM(require_source(), 1);
39752
39849
  async function members(client, argv) {
39753
39850
  let parsedArgs;
39754
39851
  const flagsSpecification = getFlagsSpecification(membersSubcommand.options);
@@ -39818,7 +39915,7 @@ async function members(client, argv) {
39818
39915
  return 0;
39819
39916
  }
39820
39917
  const rows = [
39821
- ["uid", "Identity", "Role", "Team Role"].map((str) => (0, import_chalk156.gray)(str)),
39918
+ ["uid", "Identity", "Role", "Team Role"].map((str) => (0, import_chalk157.gray)(str)),
39822
39919
  ...projectMembers.map((member) => [
39823
39920
  member.uid,
39824
39921
  member.username || member.email || "",
@@ -39832,7 +39929,7 @@ async function members(client, argv) {
39832
39929
  }
39833
39930
 
39834
39931
  // src/commands/project/access-groups.ts
39835
- var import_chalk157 = __toESM(require_source(), 1);
39932
+ var import_chalk158 = __toESM(require_source(), 1);
39836
39933
  async function accessGroups(client, argv) {
39837
39934
  let parsedArgs;
39838
39935
  const flagsSpecification = getFlagsSpecification(
@@ -39905,7 +40002,7 @@ async function accessGroups(client, argv) {
39905
40002
  return 0;
39906
40003
  }
39907
40004
  const rows = [
39908
- ["id", "Name", "Role"].map((str) => (0, import_chalk157.gray)(str)),
40005
+ ["id", "Name", "Role"].map((str) => (0, import_chalk158.gray)(str)),
39909
40006
  ...(result.accessGroups || []).map((group) => [
39910
40007
  group.id,
39911
40008
  group.name,
@@ -39918,7 +40015,7 @@ async function accessGroups(client, argv) {
39918
40015
  }
39919
40016
 
39920
40017
  // src/commands/project/rename.ts
39921
- var import_chalk158 = __toESM(require_source(), 1);
40018
+ var import_chalk159 = __toESM(require_source(), 1);
39922
40019
  var import_ms21 = __toESM(require_ms(), 1);
39923
40020
 
39924
40021
  // src/util/telemetry/commands/project/rename.ts
@@ -39959,7 +40056,7 @@ async function rename(client, argv) {
39959
40056
  const { args } = parsedArgs;
39960
40057
  if (args.length !== 2) {
39961
40058
  output_manager_default.error(
39962
- `Invalid number of arguments. Usage: ${import_chalk158.default.cyan(
40059
+ `Invalid number of arguments. Usage: ${import_chalk159.default.cyan(
39963
40060
  `${getCommandName("project rename <name> <new-name>")}`
39964
40061
  )}`
39965
40062
  );
@@ -39996,9 +40093,9 @@ async function rename(client, argv) {
39996
40093
  }
39997
40094
  const elapsed2 = (0, import_ms21.default)(Date.now() - start);
39998
40095
  output_manager_default.log(
39999
- `${import_chalk158.default.cyan("Success!")} Project ${import_chalk158.default.bold(
40096
+ `${import_chalk159.default.cyan("Success!")} Project ${import_chalk159.default.bold(
40000
40097
  project.name
40001
- )} renamed to ${import_chalk158.default.bold(renamedProject.name)} ${import_chalk158.default.gray(
40098
+ )} renamed to ${import_chalk159.default.bold(renamedProject.name)} ${import_chalk159.default.gray(
40002
40099
  `[${elapsed2}]`
40003
40100
  )}`
40004
40101
  );
@@ -40006,7 +40103,7 @@ async function rename(client, argv) {
40006
40103
  }
40007
40104
 
40008
40105
  // src/commands/project/rm.ts
40009
- var import_chalk159 = __toESM(require_source(), 1);
40106
+ var import_chalk160 = __toESM(require_source(), 1);
40010
40107
  var import_ms22 = __toESM(require_ms(), 1);
40011
40108
 
40012
40109
  // src/util/telemetry/commands/project/rm.ts
@@ -40040,7 +40137,7 @@ async function rm8(client, argv) {
40040
40137
  const { args } = parsedArgs;
40041
40138
  if (args.length !== 1) {
40042
40139
  output_manager_default.error(
40043
- `Invalid number of arguments. Usage: ${import_chalk159.default.cyan(
40140
+ `Invalid number of arguments. Usage: ${import_chalk160.default.cyan(
40044
40141
  `${getCommandName("project rm <name>")}`
40045
40142
  )}`
40046
40143
  );
@@ -40070,7 +40167,7 @@ async function rm8(client, argv) {
40070
40167
  }
40071
40168
  const elapsed2 = (0, import_ms22.default)(Date.now() - start);
40072
40169
  output_manager_default.log(
40073
- `${import_chalk159.default.cyan("Success!")} Project ${import_chalk159.default.bold(name)} removed ${import_chalk159.default.gray(
40170
+ `${import_chalk160.default.cyan("Success!")} Project ${import_chalk160.default.bold(name)} removed ${import_chalk160.default.gray(
40074
40171
  `[${elapsed2}]`
40075
40172
  )}`
40076
40173
  );
@@ -40079,20 +40176,20 @@ async function rm8(client, argv) {
40079
40176
  async function readConfirmation3(client, projectName) {
40080
40177
  output_manager_default.print(
40081
40178
  prependEmoji(
40082
- `The project ${import_chalk159.default.bold(projectName)} will be removed permanently.
40179
+ `The project ${import_chalk160.default.bold(projectName)} will be removed permanently.
40083
40180
  It will also delete everything under the project including deployments.
40084
40181
  `,
40085
40182
  emoji("warning")
40086
40183
  )
40087
40184
  );
40088
40185
  return await client.input.confirm(
40089
- `${import_chalk159.default.bold.red("Are you sure?")}`,
40186
+ `${import_chalk160.default.bold.red("Are you sure?")}`,
40090
40187
  false
40091
40188
  );
40092
40189
  }
40093
40190
 
40094
40191
  // src/commands/project/token.ts
40095
- var import_chalk160 = __toESM(require_source(), 1);
40192
+ var import_chalk161 = __toESM(require_source(), 1);
40096
40193
  async function getOidcToken(client, argv) {
40097
40194
  const flagsSpecification = getFlagsSpecification(tokenSubcommand2.options);
40098
40195
  let parsedArgs;
@@ -40112,7 +40209,7 @@ async function getOidcToken(client, argv) {
40112
40209
  client.nonInteractive = true;
40113
40210
  if (args.length > 1) {
40114
40211
  output_manager_default.error(
40115
- `Invalid number of arguments. Usage: ${import_chalk160.default.cyan(
40212
+ `Invalid number of arguments. Usage: ${import_chalk161.default.cyan(
40116
40213
  `${getCommandName("project token <name>")}`
40117
40214
  )}`
40118
40215
  );
@@ -40318,7 +40415,7 @@ async function webAnalytics(client, argv) {
40318
40415
  }
40319
40416
 
40320
40417
  // src/commands/project/protection.ts
40321
- var import_chalk161 = __toESM(require_source(), 1);
40418
+ var import_chalk162 = __toESM(require_source(), 1);
40322
40419
  var PROTECTION_ACTIONS = ["enable", "disable"];
40323
40420
  var DEFAULT_SKEW_PROTECTION_MAX_AGE = 2592e3;
40324
40421
  var ENABLED_DEPLOYMENT_TYPE = "prod_deployment_urls_and_all_previews";
@@ -40664,7 +40761,7 @@ async function protection(client, argv) {
40664
40761
  return 0;
40665
40762
  }
40666
40763
  output_manager_default.log(
40667
- `${import_chalk161.default.bold("Deployment protection")} ${action === "enable" ? "enabled" : "disabled"} for ${import_chalk161.default.cyan(project.name)}`
40764
+ `${import_chalk162.default.bold("Deployment protection")} ${action === "enable" ? "enabled" : "disabled"} for ${import_chalk162.default.cyan(project.name)}`
40668
40765
  );
40669
40766
  return 0;
40670
40767
  }
@@ -40683,14 +40780,14 @@ async function protection(client, argv) {
40683
40780
  return 0;
40684
40781
  }
40685
40782
  output_manager_default.log(
40686
- `${import_chalk161.default.bold("Protection settings")} for ${import_chalk161.default.cyan(project.name)} (${project.id})`
40783
+ `${import_chalk162.default.bold("Protection settings")} for ${import_chalk162.default.cyan(project.name)} (${project.id})`
40687
40784
  );
40688
40785
  if (Object.keys(slice).length === 0) {
40689
40786
  output_manager_default.log("No deployment protection fields returned for this project.");
40690
40787
  return 0;
40691
40788
  }
40692
40789
  for (const [k, v] of Object.entries(slice)) {
40693
- output_manager_default.log(`${import_chalk161.default.cyan(`${k}:`)} ${JSON.stringify(v)}`);
40790
+ output_manager_default.log(`${import_chalk162.default.cyan(`${k}:`)} ${JSON.stringify(v)}`);
40694
40791
  }
40695
40792
  return 0;
40696
40793
  }
@@ -40964,10 +41061,10 @@ var import_ms25 = __toESM(require_ms(), 1);
40964
41061
  var import_error_utils15 = __toESM(require_dist(), 1);
40965
41062
 
40966
41063
  // src/commands/promote/request-promote.ts
40967
- var import_chalk165 = __toESM(require_source(), 1);
41064
+ var import_chalk166 = __toESM(require_source(), 1);
40968
41065
 
40969
41066
  // src/util/projects/get-project-by-deployment.ts
40970
- var import_chalk162 = __toESM(require_source(), 1);
41067
+ var import_chalk163 = __toESM(require_source(), 1);
40971
41068
  async function getProjectByDeployment({
40972
41069
  client,
40973
41070
  deployId
@@ -40983,7 +41080,7 @@ async function getProjectByDeployment({
40983
41080
  let team;
40984
41081
  try {
40985
41082
  output_manager_default?.spinner(
40986
- `Fetching deployment "${deployId}" in ${import_chalk162.default.bold(contextName)}\u2026`
41083
+ `Fetching deployment "${deployId}" in ${import_chalk163.default.bold(contextName)}\u2026`
40987
41084
  );
40988
41085
  const [teamResult, deploymentResult] = await Promise.allSettled([
40989
41086
  config.currentTeam ? getTeamById(client, config.currentTeam) : void 0,
@@ -41000,12 +41097,12 @@ async function getProjectByDeployment({
41000
41097
  team = teamResult.value;
41001
41098
  deployment = deploymentResult.value;
41002
41099
  output_manager_default?.log(
41003
- `Fetching deployment "${deployId}" in ${import_chalk162.default.bold(contextName)}\u2026`
41100
+ `Fetching deployment "${deployId}" in ${import_chalk163.default.bold(contextName)}\u2026`
41004
41101
  );
41005
41102
  if (deployment.team?.id) {
41006
41103
  if (!team || deployment.team.id !== team.id) {
41007
41104
  const err = new Error(
41008
- team ? `Deployment doesn't belong to current team ${import_chalk162.default.bold(
41105
+ team ? `Deployment doesn't belong to current team ${import_chalk163.default.bold(
41009
41106
  contextName
41010
41107
  )}` : `Deployment belongs to a different team`
41011
41108
  );
@@ -41014,7 +41111,7 @@ async function getProjectByDeployment({
41014
41111
  }
41015
41112
  } else if (team) {
41016
41113
  const err = new Error(
41017
- `Deployment doesn't belong to current team ${import_chalk162.default.bold(contextName)}`
41114
+ `Deployment doesn't belong to current team ${import_chalk163.default.bold(contextName)}`
41018
41115
  );
41019
41116
  err.code = "ERR_INVALID_TEAM";
41020
41117
  throw err;
@@ -41040,22 +41137,22 @@ async function getProjectByDeployment({
41040
41137
  var import_ms24 = __toESM(require_ms(), 1);
41041
41138
 
41042
41139
  // src/commands/promote/status.ts
41043
- var import_chalk164 = __toESM(require_source(), 1);
41140
+ var import_chalk165 = __toESM(require_source(), 1);
41044
41141
  var import_ms23 = __toESM(require_ms(), 1);
41045
41142
 
41046
41143
  // src/util/alias/render-alias-status.ts
41047
- var import_chalk163 = __toESM(require_source(), 1);
41144
+ var import_chalk164 = __toESM(require_source(), 1);
41048
41145
  function renderAliasStatus(status3) {
41049
41146
  if (status3 === "completed") {
41050
- return import_chalk163.default.green(status3);
41147
+ return import_chalk164.default.green(status3);
41051
41148
  }
41052
41149
  if (status3 === "failed") {
41053
- return import_chalk163.default.red(status3);
41150
+ return import_chalk164.default.red(status3);
41054
41151
  }
41055
41152
  if (status3 === "skipped") {
41056
- return import_chalk163.default.gray(status3);
41153
+ return import_chalk164.default.gray(status3);
41057
41154
  }
41058
- return import_chalk163.default.yellow(status3);
41155
+ return import_chalk164.default.yellow(status3);
41059
41156
  }
41060
41157
 
41061
41158
  // src/commands/rolling-release/request-rolling-release.ts
@@ -41156,7 +41253,7 @@ async function promoteStatus({
41156
41253
  }
41157
41254
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
41158
41255
  output_manager_default.log(
41159
- `The promotion exceeded its deadline - rerun ${import_chalk164.default.bold(
41256
+ `The promotion exceeded its deadline - rerun ${import_chalk165.default.bold(
41160
41257
  `${packageName} promote ${toDeploymentId}`
41161
41258
  )} to try again`
41162
41259
  );
@@ -41220,16 +41317,16 @@ async function renderJobSucceeded({
41220
41317
  let deploymentInfo = "";
41221
41318
  try {
41222
41319
  const deployment = await getDeployment(client, contextName, toDeploymentId);
41223
- deploymentInfo = `${import_chalk164.default.bold(deployment.url)} (${toDeploymentId})`;
41320
+ deploymentInfo = `${import_chalk165.default.bold(deployment.url)} (${toDeploymentId})`;
41224
41321
  } catch (err) {
41225
41322
  output_manager_default.debug(
41226
41323
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
41227
41324
  );
41228
- deploymentInfo = import_chalk164.default.bold(toDeploymentId);
41325
+ deploymentInfo = import_chalk165.default.bold(toDeploymentId);
41229
41326
  }
41230
41327
  const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
41231
41328
  output_manager_default.log(
41232
- `Success! ${import_chalk164.default.bold(
41329
+ `Success! ${import_chalk165.default.bold(
41233
41330
  project.name
41234
41331
  )} was promoted to ${deploymentInfo} ${duration}`
41235
41332
  );
@@ -41277,7 +41374,7 @@ async function requestPromote({
41277
41374
  }
41278
41375
  );
41279
41376
  output_manager_default.log(
41280
- `Successfully created new deployment of ${import_chalk165.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
41377
+ `Successfully created new deployment of ${import_chalk166.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
41281
41378
  );
41282
41379
  return 0;
41283
41380
  }
@@ -41298,7 +41395,7 @@ async function requestPromote({
41298
41395
  }
41299
41396
  if (timeout !== void 0 && (0, import_ms24.default)(timeout) === 0) {
41300
41397
  output_manager_default.log(
41301
- `Successfully requested promote of ${import_chalk165.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
41398
+ `Successfully requested promote of ${import_chalk166.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
41302
41399
  );
41303
41400
  output_manager_default.log(`To check promote status, run ${getCommandName("promote")}.`);
41304
41401
  return 0;
@@ -41420,11 +41517,11 @@ var promote_default = async (client) => {
41420
41517
  };
41421
41518
 
41422
41519
  // src/commands/redeploy/index.ts
41423
- var import_chalk167 = __toESM(require_source(), 1);
41520
+ var import_chalk168 = __toESM(require_source(), 1);
41424
41521
  var import_client = __toESM(require_dist2(), 1);
41425
41522
 
41426
41523
  // src/util/deploy/get-deployment-by-id-or-url.ts
41427
- var import_chalk166 = __toESM(require_source(), 1);
41524
+ var import_chalk167 = __toESM(require_source(), 1);
41428
41525
  async function getDeploymentByIdOrURL({
41429
41526
  client,
41430
41527
  contextName,
@@ -41440,7 +41537,7 @@ async function getDeploymentByIdOrURL({
41440
41537
  let team;
41441
41538
  try {
41442
41539
  output_manager_default.spinner(
41443
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk166.default.bold(contextName)}\u2026`
41540
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk167.default.bold(contextName)}\u2026`
41444
41541
  );
41445
41542
  const [teamResult, deploymentResult] = await Promise.allSettled([
41446
41543
  config.currentTeam ? getTeamById(client, config.currentTeam) : void 0,
@@ -41457,7 +41554,7 @@ async function getDeploymentByIdOrURL({
41457
41554
  team = teamResult.value;
41458
41555
  deployment = deploymentResult.value;
41459
41556
  output_manager_default.log(
41460
- `Fetching deployment "${deployIdOrUrl}" in ${import_chalk166.default.bold(contextName)}\u2026`
41557
+ `Fetching deployment "${deployIdOrUrl}" in ${import_chalk167.default.bold(contextName)}\u2026`
41461
41558
  );
41462
41559
  } finally {
41463
41560
  output_manager_default.stopSpinner();
@@ -41465,7 +41562,7 @@ async function getDeploymentByIdOrURL({
41465
41562
  if (deployment.team?.id) {
41466
41563
  if (!team || deployment.team.id !== team.id) {
41467
41564
  const err = new Error(
41468
- team ? `Deployment doesn't belong to current team ${import_chalk166.default.bold(
41565
+ team ? `Deployment doesn't belong to current team ${import_chalk167.default.bold(
41469
41566
  contextName
41470
41567
  )}` : `Deployment belongs to a different team`
41471
41568
  );
@@ -41474,7 +41571,7 @@ async function getDeploymentByIdOrURL({
41474
41571
  }
41475
41572
  } else if (team) {
41476
41573
  const err = new Error(
41477
- `Deployment doesn't belong to current team ${import_chalk166.default.bold(contextName)}`
41574
+ `Deployment doesn't belong to current team ${import_chalk167.default.bold(contextName)}`
41478
41575
  );
41479
41576
  err.code = "ERR_INVALID_TEAM";
41480
41577
  throw err;
@@ -41603,10 +41700,10 @@ async function redeploy(client) {
41603
41700
  if (customEnvironmentSlugOrId && customEnvironment) {
41604
41701
  isProdDeployment = customEnvironment.type === "production";
41605
41702
  }
41606
- printAlignedLabel("Inspect", import_chalk167.default.cyan(deployment.inspectorUrl));
41703
+ printAlignedLabel("Inspect", import_chalk168.default.cyan(deployment.inspectorUrl));
41607
41704
  printAlignedLabel(
41608
41705
  isProdDeployment ? "Production" : "Preview",
41609
- import_chalk167.default.cyan(previewUrl),
41706
+ import_chalk168.default.cyan(previewUrl),
41610
41707
  isProdDeployment ? { gutter: "\u25B2" } : {}
41611
41708
  );
41612
41709
  if (!client.stdout.isTTY) {
@@ -41657,7 +41754,7 @@ async function redeploy(client) {
41657
41754
  if (event.type === "alias-assigned" && !Array.isArray(event.payload) && event.payload.target === "production" && event.payload.alias && event.payload.alias.length > 0) {
41658
41755
  const primaryDomain = event.payload.alias[0];
41659
41756
  const prodUrl = `https://${primaryDomain}`;
41660
- printAlignedLabel("Aliased", import_chalk167.default.cyan(prodUrl), {
41757
+ printAlignedLabel("Aliased", import_chalk168.default.cyan(prodUrl), {
41661
41758
  gutter: "\u25B2"
41662
41759
  });
41663
41760
  }
@@ -41696,7 +41793,7 @@ async function redeploy(client) {
41696
41793
  output_manager_default.prettyError(err);
41697
41794
  if ((0, import_error_utils16.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
41698
41795
  output_manager_default.error(
41699
- `Use ${import_chalk167.default.bold("vc switch")} to change your current team`
41796
+ `Use ${import_chalk168.default.bold("vc switch")} to change your current team`
41700
41797
  );
41701
41798
  }
41702
41799
  return 1;
@@ -41704,7 +41801,7 @@ async function redeploy(client) {
41704
41801
  }
41705
41802
 
41706
41803
  // src/commands/redirects/list.ts
41707
- var import_chalk168 = __toESM(require_source(), 1);
41804
+ var import_chalk169 = __toESM(require_source(), 1);
41708
41805
  var import_pluralize9 = __toESM(require_pluralize(), 1);
41709
41806
 
41710
41807
  // src/commands/redirects/shared.ts
@@ -41891,7 +41988,7 @@ async function list11(client, argv) {
41891
41988
  const stagingVersion = versions.find((v) => v.isStaging);
41892
41989
  if (!stagingVersion) {
41893
41990
  output_manager_default.error(
41894
- `No staging version found for ${import_chalk168.default.bold(project.name)}. Run ${import_chalk168.default.cyan(
41991
+ `No staging version found for ${import_chalk169.default.bold(project.name)}. Run ${import_chalk169.default.cyan(
41895
41992
  "vercel redirects list-versions"
41896
41993
  )} to see available versions.`
41897
41994
  );
@@ -41915,7 +42012,7 @@ async function list11(client, argv) {
41915
42012
  );
41916
42013
  if (!version) {
41917
42014
  output_manager_default.error(
41918
- `Version "${versionIdFlag}" not found. Run ${import_chalk168.default.cyan(
42015
+ `Version "${versionIdFlag}" not found. Run ${import_chalk169.default.cyan(
41919
42016
  "vercel redirects list-versions"
41920
42017
  )} to see available versions.`
41921
42018
  );
@@ -41925,7 +42022,7 @@ async function list11(client, argv) {
41925
42022
  versionName = version.name || version.id;
41926
42023
  }
41927
42024
  const lsStamp = stamp_default();
41928
- let spinnerMessage = `Fetching redirects for ${import_chalk168.default.bold(project.name)}`;
42025
+ let spinnerMessage = `Fetching redirects for ${import_chalk169.default.bold(project.name)}`;
41929
42026
  if (versionName) {
41930
42027
  spinnerMessage += ` (version: ${versionName})`;
41931
42028
  }
@@ -41946,46 +42043,46 @@ async function list11(client, argv) {
41946
42043
  const removed = redirects.filter((r) => r.action === "-");
41947
42044
  const unchanged = redirects.filter((r) => !r.action);
41948
42045
  output_manager_default.log(
41949
- `Changes in staging version ${import_chalk168.default.bold(versionName || "")} ${import_chalk168.default.gray(lsStamp())}`
42046
+ `Changes in staging version ${import_chalk169.default.bold(versionName || "")} ${import_chalk169.default.gray(lsStamp())}`
41950
42047
  );
41951
42048
  if (added.length === 0 && removed.length === 0) {
41952
42049
  output_manager_default.log("\n No changes from production version\n");
41953
42050
  } else {
41954
42051
  if (added.length > 0) {
41955
42052
  output_manager_default.print(`
41956
- ${import_chalk168.default.bold(import_chalk168.default.green(`Added (${added.length}):`))}
42053
+ ${import_chalk169.default.bold(import_chalk169.default.green(`Added (${added.length}):`))}
41957
42054
  `);
41958
42055
  output_manager_default.print(formatRedirectsTable(added, "+"));
41959
42056
  }
41960
42057
  if (removed.length > 0) {
41961
42058
  output_manager_default.print(`
41962
- ${import_chalk168.default.bold(import_chalk168.default.red(`Removed (${removed.length}):`))}
42059
+ ${import_chalk169.default.bold(import_chalk169.default.red(`Removed (${removed.length}):`))}
41963
42060
  `);
41964
42061
  output_manager_default.print(formatRedirectsTable(removed, "-"));
41965
42062
  }
41966
42063
  if (unchanged.length > 0) {
41967
42064
  output_manager_default.print(
41968
42065
  `
41969
- ${import_chalk168.default.gray(`${unchanged.length} redirect${unchanged.length === 1 ? "" : "s"} unchanged`)}
42066
+ ${import_chalk169.default.gray(`${unchanged.length} redirect${unchanged.length === 1 ? "" : "s"} unchanged`)}
41970
42067
  `
41971
42068
  );
41972
42069
  }
41973
42070
  output_manager_default.print("\n");
41974
42071
  }
41975
42072
  } else {
41976
- let resultMessage = `${(0, import_pluralize9.default)("Redirect", redirects.length, true)} found for ${import_chalk168.default.bold(
42073
+ let resultMessage = `${(0, import_pluralize9.default)("Redirect", redirects.length, true)} found for ${import_chalk169.default.bold(
41977
42074
  project.name
41978
42075
  )}`;
41979
42076
  if (versionName) {
41980
- resultMessage += ` ${import_chalk168.default.gray(`(version: ${versionName})`)}`;
42077
+ resultMessage += ` ${import_chalk169.default.gray(`(version: ${versionName})`)}`;
41981
42078
  }
41982
42079
  if (search2) {
41983
42080
  resultMessage += ` matching "${search2}"`;
41984
42081
  }
41985
42082
  if (pagination) {
41986
- resultMessage += ` ${import_chalk168.default.gray(`(page ${pagination.page} of ${pagination.numPages})`)}`;
42083
+ resultMessage += ` ${import_chalk169.default.gray(`(page ${pagination.page} of ${pagination.numPages})`)}`;
41987
42084
  }
41988
- resultMessage += ` ${import_chalk168.default.gray(lsStamp())}`;
42085
+ resultMessage += ` ${import_chalk169.default.gray(lsStamp())}`;
41989
42086
  output_manager_default.log(resultMessage);
41990
42087
  if (client.nonInteractive && redirects.length === 0 && !staging && !versionIdFlag) {
41991
42088
  output_manager_default.log(
@@ -42014,7 +42111,7 @@ function formatRedirectsTable(redirects, actionSymbol) {
42014
42111
  const rows = redirects.map((redirect) => {
42015
42112
  const status3 = redirect.statusCode || (redirect.permanent ? 308 : 307);
42016
42113
  const prefix = actionSymbol || "";
42017
- const colorFn = actionSymbol === "+" ? import_chalk168.default.green : actionSymbol === "-" ? import_chalk168.default.red : (s) => s;
42114
+ const colorFn = actionSymbol === "+" ? import_chalk169.default.green : actionSymbol === "-" ? import_chalk169.default.red : (s) => s;
42018
42115
  return [
42019
42116
  colorFn(`${prefix} ${redirect.source}`),
42020
42117
  colorFn(`${redirect.destination}`),
@@ -42029,7 +42126,7 @@ function formatRedirectsTable(redirects, actionSymbol) {
42029
42126
  }
42030
42127
 
42031
42128
  // src/commands/redirects/list-versions.ts
42032
- var import_chalk169 = __toESM(require_source(), 1);
42129
+ var import_chalk170 = __toESM(require_source(), 1);
42033
42130
  var import_ms26 = __toESM(require_ms(), 1);
42034
42131
  var import_pluralize10 = __toESM(require_pluralize(), 1);
42035
42132
  async function listVersions(client, argv) {
@@ -42042,13 +42139,13 @@ async function listVersions(client, argv) {
42042
42139
  const { project, org } = link;
42043
42140
  const teamId = org.type === "team" ? org.id : void 0;
42044
42141
  const lsStamp = stamp_default();
42045
- output_manager_default.spinner(`Fetching redirect versions for ${import_chalk169.default.bold(project.name)}`);
42142
+ output_manager_default.spinner(`Fetching redirect versions for ${import_chalk170.default.bold(project.name)}`);
42046
42143
  const { versions } = await getRedirectVersions(client, project.id, teamId);
42047
42144
  const sortedVersions = sortVersions(versions).slice(0, 20);
42048
42145
  output_manager_default.log(
42049
- `${(0, import_pluralize10.default)("Version", sortedVersions.length, true)} found for ${import_chalk169.default.bold(
42146
+ `${(0, import_pluralize10.default)("Version", sortedVersions.length, true)} found for ${import_chalk170.default.bold(
42050
42147
  project.name
42051
- )} ${import_chalk169.default.gray(lsStamp())}`
42148
+ )} ${import_chalk170.default.gray(lsStamp())}`
42052
42149
  );
42053
42150
  if (sortedVersions.length > 0) {
42054
42151
  output_manager_default.print(formatVersionsTable(sortedVersions));
@@ -42075,21 +42172,21 @@ function formatVersionsTable(versions) {
42075
42172
  const age = (0, import_ms26.default)(now - version.lastModified);
42076
42173
  let status3 = "";
42077
42174
  if (version.isStaging) {
42078
- status3 = import_chalk169.default.yellow("Staging");
42175
+ status3 = import_chalk170.default.yellow("Staging");
42079
42176
  } else if (version.isLive) {
42080
- status3 = import_chalk169.default.green("Live");
42177
+ status3 = import_chalk170.default.green("Live");
42081
42178
  } else {
42082
- status3 = import_chalk169.default.gray("Previous");
42179
+ status3 = import_chalk170.default.gray("Previous");
42083
42180
  }
42084
- const name = version.name || import_chalk169.default.gray("(unnamed)");
42085
- const redirectCountStr = version.redirectCount !== void 0 && version.redirectCount !== null ? version.redirectCount.toString() : import_chalk169.default.gray("-");
42181
+ const name = version.name || import_chalk170.default.gray("(unnamed)");
42182
+ const redirectCountStr = version.redirectCount !== void 0 && version.redirectCount !== null ? version.redirectCount.toString() : import_chalk170.default.gray("-");
42086
42183
  return [
42087
42184
  status3,
42088
42185
  name,
42089
42186
  version.id,
42090
42187
  redirectCountStr,
42091
- version.createdBy || import_chalk169.default.gray("(unknown)"),
42092
- import_chalk169.default.gray(age + " ago")
42188
+ version.createdBy || import_chalk170.default.gray("(unknown)"),
42189
+ import_chalk170.default.gray(age + " ago")
42093
42190
  ];
42094
42191
  });
42095
42192
  return formatTable(
@@ -42100,7 +42197,7 @@ function formatVersionsTable(versions) {
42100
42197
  }
42101
42198
 
42102
42199
  // src/commands/redirects/add.ts
42103
- var import_chalk170 = __toESM(require_source(), 1);
42200
+ var import_chalk171 = __toESM(require_source(), 1);
42104
42201
 
42105
42202
  // src/util/redirects/put-redirects.ts
42106
42203
  async function putRedirects(client, projectId, redirects, teamId, name) {
@@ -42387,11 +42484,11 @@ async function add9(client, argv) {
42387
42484
  `);
42388
42485
  return 0;
42389
42486
  }
42390
- output_manager_default.log(`${import_chalk170.default.cyan("\u2713")} Redirect added ${import_chalk170.default.gray(addStamp())}`);
42487
+ output_manager_default.log(`${import_chalk171.default.cyan("\u2713")} Redirect added ${import_chalk171.default.gray(addStamp())}`);
42391
42488
  output_manager_default.print(`
42392
- ${import_chalk170.default.bold("Redirect:")}
42489
+ ${import_chalk171.default.bold("Redirect:")}
42393
42490
  `);
42394
- output_manager_default.print(` ${import_chalk170.default.cyan(source)} \u2192 ${import_chalk170.default.cyan(destination)}
42491
+ output_manager_default.print(` ${import_chalk171.default.cyan(source)} \u2192 ${import_chalk171.default.cyan(destination)}
42395
42492
  `);
42396
42493
  output_manager_default.print(` Status: ${statusCode}
42397
42494
  `);
@@ -42405,12 +42502,12 @@ async function add9(client, argv) {
42405
42502
  const testUrl = source.startsWith("/") ? `https://${alias2}${source}` : `https://${alias2}`;
42406
42503
  output_manager_default.print(
42407
42504
  `
42408
- ${import_chalk170.default.bold("Test your changes:")} ${import_chalk170.default.cyan(testUrl)}
42505
+ ${import_chalk171.default.bold("Test your changes:")} ${import_chalk171.default.cyan(testUrl)}
42409
42506
  `
42410
42507
  );
42411
42508
  }
42412
42509
  const newVersionName = version.name || version.id;
42413
- output_manager_default.print(` ${import_chalk170.default.bold("New staging version:")} ${newVersionName}
42510
+ output_manager_default.print(` ${import_chalk171.default.bold("New staging version:")} ${newVersionName}
42414
42511
 
42415
42512
  `);
42416
42513
  if (!existingStagingVersion) {
@@ -42429,19 +42526,19 @@ async function add9(client, argv) {
42429
42526
  teamId
42430
42527
  );
42431
42528
  output_manager_default.log(
42432
- `${import_chalk170.default.cyan("\u2713")} Version promoted to production ${import_chalk170.default.gray(promoteStamp())}`
42529
+ `${import_chalk171.default.cyan("\u2713")} Version promoted to production ${import_chalk171.default.gray(promoteStamp())}`
42433
42530
  );
42434
42531
  }
42435
42532
  } else {
42436
42533
  output_manager_default.warn(
42437
- `There are other staged changes. Please review all changes with ${import_chalk170.default.cyan("vercel redirects list --staging")} before promoting to production.`
42534
+ `There are other staged changes. Please review all changes with ${import_chalk171.default.cyan("vercel redirects list --staging")} before promoting to production.`
42438
42535
  );
42439
42536
  }
42440
42537
  return 0;
42441
42538
  }
42442
42539
 
42443
42540
  // src/commands/redirects/upload.ts
42444
- var import_chalk171 = __toESM(require_source(), 1);
42541
+ var import_chalk172 = __toESM(require_source(), 1);
42445
42542
  import { readFileSync as readFileSync4 } from "fs";
42446
42543
  import { basename as basename2 } from "path";
42447
42544
  import FormData from "form-data";
@@ -42769,7 +42866,7 @@ async function upload(client, argv) {
42769
42866
  return 0;
42770
42867
  }
42771
42868
  output_manager_default.log(
42772
- `${import_chalk171.default.cyan("\u2713")} Redirects uploaded ${import_chalk171.default.gray(uploadStamp())}`
42869
+ `${import_chalk172.default.cyan("\u2713")} Redirects uploaded ${import_chalk172.default.gray(uploadStamp())}`
42773
42870
  );
42774
42871
  output_manager_default.spinner("Fetching diff");
42775
42872
  const { redirects } = await getRedirects(client, project.id, {
@@ -42779,7 +42876,7 @@ async function upload(client, argv) {
42779
42876
  });
42780
42877
  const redirectCount = redirects.length;
42781
42878
  output_manager_default.print(`
42782
- ${import_chalk171.default.bold("Summary:")}
42879
+ ${import_chalk172.default.bold("Summary:")}
42783
42880
  `);
42784
42881
  output_manager_default.print(
42785
42882
  ` Uploaded ${redirectCount} redirect${redirectCount === 1 ? "" : "s"}
@@ -42790,22 +42887,22 @@ async function upload(client, argv) {
42790
42887
  const deleted = redirects.filter((r) => r.action === "-");
42791
42888
  const edited = redirects.filter((r) => r.action === "~");
42792
42889
  output_manager_default.print(`
42793
- ${import_chalk171.default.bold("Changes:")}
42890
+ ${import_chalk172.default.bold("Changes:")}
42794
42891
  `);
42795
42892
  if (added.length > 0) {
42796
- output_manager_default.print(` ${import_chalk171.default.green(`Added: ${added.length}`)}
42893
+ output_manager_default.print(` ${import_chalk172.default.green(`Added: ${added.length}`)}
42797
42894
  `);
42798
42895
  }
42799
42896
  if (deleted.length > 0) {
42800
- output_manager_default.print(` ${import_chalk171.default.red(`Deleted: ${deleted.length}`)}
42897
+ output_manager_default.print(` ${import_chalk172.default.red(`Deleted: ${deleted.length}`)}
42801
42898
  `);
42802
42899
  }
42803
42900
  if (edited.length > 0) {
42804
- output_manager_default.print(` ${import_chalk171.default.yellow(`Modified: ${edited.length}`)}
42901
+ output_manager_default.print(` ${import_chalk172.default.yellow(`Modified: ${edited.length}`)}
42805
42902
  `);
42806
42903
  }
42807
42904
  output_manager_default.print(`
42808
- ${import_chalk171.default.bold("Redirect changes:")}
42905
+ ${import_chalk172.default.bold("Redirect changes:")}
42809
42906
  `);
42810
42907
  const displayRedirects = redirects.slice(0, 100);
42811
42908
  const rows = displayRedirects.map((redirect) => {
@@ -42815,15 +42912,15 @@ async function upload(client, argv) {
42815
42912
  let actionSymbol;
42816
42913
  switch (action) {
42817
42914
  case "+":
42818
- colorFn = import_chalk171.default.green;
42915
+ colorFn = import_chalk172.default.green;
42819
42916
  actionSymbol = "+";
42820
42917
  break;
42821
42918
  case "-":
42822
- colorFn = import_chalk171.default.red;
42919
+ colorFn = import_chalk172.default.red;
42823
42920
  actionSymbol = "-";
42824
42921
  break;
42825
42922
  case "~":
42826
- colorFn = import_chalk171.default.yellow;
42923
+ colorFn = import_chalk172.default.yellow;
42827
42924
  actionSymbol = "~";
42828
42925
  break;
42829
42926
  default:
@@ -42846,7 +42943,7 @@ async function upload(client, argv) {
42846
42943
  if (redirectCount > 100) {
42847
42944
  output_manager_default.print(
42848
42945
  `
42849
- ${import_chalk171.default.gray(`... and ${redirectCount - 100} more redirect${redirectCount - 100 === 1 ? "" : "s"}`)}
42946
+ ${import_chalk172.default.gray(`... and ${redirectCount - 100} more redirect${redirectCount - 100 === 1 ? "" : "s"}`)}
42850
42947
  `
42851
42948
  );
42852
42949
  }
@@ -42855,19 +42952,19 @@ async function upload(client, argv) {
42855
42952
  const testUrl = `https://${result.alias}`;
42856
42953
  output_manager_default.print(
42857
42954
  `
42858
- ${import_chalk171.default.bold("Test your changes:")} ${import_chalk171.default.cyan(testUrl)}
42955
+ ${import_chalk172.default.bold("Test your changes:")} ${import_chalk172.default.cyan(testUrl)}
42859
42956
  `
42860
42957
  );
42861
42958
  }
42862
42959
  const newVersionName = result.version.name || result.version.id;
42863
42960
  output_manager_default.print(
42864
- ` ${import_chalk171.default.bold("New staging version:")} ${newVersionName}
42961
+ ` ${import_chalk172.default.bold("New staging version:")} ${newVersionName}
42865
42962
 
42866
42963
  `
42867
42964
  );
42868
42965
  if (existingStagingVersion) {
42869
42966
  output_manager_default.warn(
42870
- `There are other staged changes. Please review all changes with ${import_chalk171.default.cyan("vercel redirects list --staging")} before promoting to production.`
42967
+ `There are other staged changes. Please review all changes with ${import_chalk172.default.cyan("vercel redirects list --staging")} before promoting to production.`
42871
42968
  );
42872
42969
  } else if (!skipPrompts && !client.nonInteractive) {
42873
42970
  const shouldPromote = await client.input.confirm(
@@ -42885,12 +42982,12 @@ async function upload(client, argv) {
42885
42982
  teamId
42886
42983
  );
42887
42984
  output_manager_default.log(
42888
- `${import_chalk171.default.cyan("\u2713")} Version promoted to production ${import_chalk171.default.gray(promoteStamp())}`
42985
+ `${import_chalk172.default.cyan("\u2713")} Version promoted to production ${import_chalk172.default.gray(promoteStamp())}`
42889
42986
  );
42890
42987
  }
42891
42988
  } else if (!existingStagingVersion && client.nonInteractive) {
42892
42989
  output_manager_default.print(
42893
- ` Run ${import_chalk171.default.cyan(`vercel redirects promote ${result.version.id} --yes`)} to promote this staging version to production.
42990
+ ` Run ${import_chalk172.default.cyan(`vercel redirects promote ${result.version.id} --yes`)} to promote this staging version to production.
42894
42991
 
42895
42992
  `
42896
42993
  );
@@ -42903,7 +43000,7 @@ async function upload(client, argv) {
42903
43000
  }
42904
43001
 
42905
43002
  // src/commands/redirects/remove.ts
42906
- var import_chalk172 = __toESM(require_source(), 1);
43003
+ var import_chalk173 = __toESM(require_source(), 1);
42907
43004
 
42908
43005
  // src/util/redirects/delete-redirects.ts
42909
43006
  async function deleteRedirects(client, projectId, sources, teamId) {
@@ -42987,7 +43084,7 @@ async function remove6(client, argv) {
42987
43084
  );
42988
43085
  }
42989
43086
  output_manager_default.error(
42990
- `Redirect with source "${source}" not found. Run ${import_chalk172.default.cyan(
43087
+ `Redirect with source "${source}" not found. Run ${import_chalk173.default.cyan(
42991
43088
  "vercel redirects list"
42992
43089
  )} to see available redirects.`
42993
43090
  );
@@ -43009,10 +43106,10 @@ async function remove6(client, argv) {
43009
43106
  return 1;
43010
43107
  }
43011
43108
  output_manager_default.print(`
43012
- ${import_chalk172.default.bold("Removing redirect:")}
43109
+ ${import_chalk173.default.bold("Removing redirect:")}
43013
43110
  `);
43014
43111
  output_manager_default.print(
43015
- ` ${import_chalk172.default.cyan(redirectToRemove.source)} \u2192 ${import_chalk172.default.cyan(redirectToRemove.destination)}
43112
+ ` ${import_chalk173.default.cyan(redirectToRemove.source)} \u2192 ${import_chalk173.default.cyan(redirectToRemove.destination)}
43016
43113
  `
43017
43114
  );
43018
43115
  const status3 = redirectToRemove.statusCode || (redirectToRemove.permanent ? 308 : 307);
@@ -43030,7 +43127,7 @@ async function remove6(client, argv) {
43030
43127
  return 0;
43031
43128
  }
43032
43129
  const removeStamp = stamp_default();
43033
- output_manager_default.spinner(`Removing redirect for ${import_chalk172.default.bold(source)}`);
43130
+ output_manager_default.spinner(`Removing redirect for ${import_chalk173.default.bold(source)}`);
43034
43131
  const { alias: alias2, version } = await deleteRedirects(
43035
43132
  client,
43036
43133
  project.id,
@@ -43070,13 +43167,13 @@ async function remove6(client, argv) {
43070
43167
  return 0;
43071
43168
  }
43072
43169
  output_manager_default.log(
43073
- `${import_chalk172.default.cyan("\u2713")} Redirect removed ${import_chalk172.default.gray(removeStamp())}`
43170
+ `${import_chalk173.default.cyan("\u2713")} Redirect removed ${import_chalk173.default.gray(removeStamp())}`
43074
43171
  );
43075
43172
  if (alias2) {
43076
43173
  const testUrl = source.startsWith("/") ? `https://${alias2}${source}` : `https://${alias2}`;
43077
43174
  output_manager_default.print(
43078
43175
  `
43079
- ${import_chalk172.default.bold("Test your changes:")} ${import_chalk172.default.cyan(testUrl)}
43176
+ ${import_chalk173.default.bold("Test your changes:")} ${import_chalk173.default.cyan(testUrl)}
43080
43177
  `
43081
43178
  );
43082
43179
  output_manager_default.print(
@@ -43085,7 +43182,7 @@ async function remove6(client, argv) {
43085
43182
  );
43086
43183
  }
43087
43184
  const versionName = version.name || version.id;
43088
- output_manager_default.print(` ${import_chalk172.default.bold("New staging version:")} ${versionName}
43185
+ output_manager_default.print(` ${import_chalk173.default.bold("New staging version:")} ${versionName}
43089
43186
 
43090
43187
  `);
43091
43188
  if (!existingStagingVersion) {
@@ -43104,19 +43201,19 @@ async function remove6(client, argv) {
43104
43201
  teamId
43105
43202
  );
43106
43203
  output_manager_default.log(
43107
- `${import_chalk172.default.cyan("\u2713")} Version promoted to production ${import_chalk172.default.gray(promoteStamp())}`
43204
+ `${import_chalk173.default.cyan("\u2713")} Version promoted to production ${import_chalk173.default.gray(promoteStamp())}`
43108
43205
  );
43109
43206
  }
43110
43207
  } else {
43111
43208
  output_manager_default.warn(
43112
- `There are other staged changes. Review them with ${import_chalk172.default.cyan("vercel redirects list --staging")} before promoting to production.`
43209
+ `There are other staged changes. Review them with ${import_chalk173.default.cyan("vercel redirects list --staging")} before promoting to production.`
43113
43210
  );
43114
43211
  }
43115
43212
  return 0;
43116
43213
  }
43117
43214
 
43118
43215
  // src/commands/redirects/promote.ts
43119
- var import_chalk173 = __toESM(require_source(), 1);
43216
+ var import_chalk174 = __toESM(require_source(), 1);
43120
43217
  async function promote(client, argv) {
43121
43218
  const parsed = await parseSubcommandArgs3(argv, promoteSubcommand);
43122
43219
  if (typeof parsed === "number")
@@ -43163,7 +43260,7 @@ async function promote(client, argv) {
43163
43260
  const { project, org } = link;
43164
43261
  const teamId = org.type === "team" ? org.id : void 0;
43165
43262
  const [versionIdentifier] = parsed.args;
43166
- output_manager_default.spinner(`Fetching redirect versions for ${import_chalk173.default.bold(project.name)}`);
43263
+ output_manager_default.spinner(`Fetching redirect versions for ${import_chalk174.default.bold(project.name)}`);
43167
43264
  const { versions } = await getRedirectVersions(client, project.id, teamId);
43168
43265
  const version = versions.find(
43169
43266
  (v) => v.id === versionIdentifier || v.name === versionIdentifier
@@ -43195,7 +43292,7 @@ async function promote(client, argv) {
43195
43292
  return 1;
43196
43293
  }
43197
43294
  output_manager_default.error(
43198
- `Version with ID or name "${versionIdentifier}" not found. Run ${import_chalk173.default.cyan(
43295
+ `Version with ID or name "${versionIdentifier}" not found. Run ${import_chalk174.default.cyan(
43199
43296
  "vercel redirects list-versions"
43200
43297
  )} to see available versions.`
43201
43298
  );
@@ -43215,7 +43312,7 @@ async function promote(client, argv) {
43215
43312
  return 1;
43216
43313
  }
43217
43314
  output_manager_default.error(
43218
- `Version ${import_chalk173.default.bold(version.name || version.id)} is already live.`
43315
+ `Version ${import_chalk174.default.bold(version.name || version.id)} is already live.`
43219
43316
  );
43220
43317
  return 1;
43221
43318
  }
@@ -43246,10 +43343,10 @@ async function promote(client, argv) {
43246
43343
  return 1;
43247
43344
  }
43248
43345
  output_manager_default.error(
43249
- `Version ${import_chalk173.default.bold(
43346
+ `Version ${import_chalk174.default.bold(
43250
43347
  version.name || version.id
43251
43348
  )} is not staged. Only staging versions can be promoted to production.
43252
- Run ${import_chalk173.default.cyan(
43349
+ Run ${import_chalk174.default.cyan(
43253
43350
  "vercel redirects list-versions"
43254
43351
  )} to see which version is currently staged.`
43255
43352
  );
@@ -43267,13 +43364,13 @@ Run ${import_chalk173.default.cyan(
43267
43364
  );
43268
43365
  if (changedRedirects.length > 0) {
43269
43366
  output_manager_default.print(`
43270
- ${import_chalk173.default.bold("Changes to be promoted:")}
43367
+ ${import_chalk174.default.bold("Changes to be promoted:")}
43271
43368
 
43272
43369
  `);
43273
43370
  const displayRedirects = changedRedirects.slice(0, 20);
43274
43371
  for (const redirect of displayRedirects) {
43275
43372
  const status3 = redirect.statusCode || (redirect.permanent ? 308 : 307);
43276
- const symbol = redirect.action === "+" ? import_chalk173.default.green("+") : import_chalk173.default.red("-");
43373
+ const symbol = redirect.action === "+" ? import_chalk174.default.green("+") : import_chalk174.default.red("-");
43277
43374
  output_manager_default.print(
43278
43375
  ` ${symbol} ${redirect.source} \u2192 ${redirect.destination} (${status3})
43279
43376
  `
@@ -43281,7 +43378,7 @@ ${import_chalk173.default.bold("Changes to be promoted:")}
43281
43378
  }
43282
43379
  if (changedRedirects.length > 20) {
43283
43380
  output_manager_default.print(
43284
- import_chalk173.default.gray(`
43381
+ import_chalk174.default.gray(`
43285
43382
  ... and ${changedRedirects.length - 20} more changes
43286
43383
  `)
43287
43384
  );
@@ -43290,7 +43387,7 @@ ${import_chalk173.default.bold("Changes to be promoted:")}
43290
43387
  } else {
43291
43388
  output_manager_default.print(
43292
43389
  `
43293
- ${import_chalk173.default.gray("No changes detected from current production version.")}
43390
+ ${import_chalk174.default.gray("No changes detected from current production version.")}
43294
43391
 
43295
43392
  `
43296
43393
  );
@@ -43313,15 +43410,15 @@ ${import_chalk173.default.gray("No changes detected from current production vers
43313
43410
  const confirmed = await confirmAction2(
43314
43411
  client,
43315
43412
  parsed.flags["--yes"],
43316
- `Promote version ${import_chalk173.default.bold(versionName)} to production?`,
43317
- `This will make it the live version for ${import_chalk173.default.bold(project.name)}.`
43413
+ `Promote version ${import_chalk174.default.bold(versionName)} to production?`,
43414
+ `This will make it the live version for ${import_chalk174.default.bold(project.name)}.`
43318
43415
  );
43319
43416
  if (!confirmed) {
43320
43417
  output_manager_default.log("Canceled");
43321
43418
  return 0;
43322
43419
  }
43323
43420
  const updateStamp = stamp_default();
43324
- output_manager_default.spinner(`Promoting version ${import_chalk173.default.bold(versionName)} to production`);
43421
+ output_manager_default.spinner(`Promoting version ${import_chalk174.default.bold(versionName)} to production`);
43325
43422
  const { version: newVersion } = await updateRedirectVersion(
43326
43423
  client,
43327
43424
  project.id,
@@ -43330,15 +43427,15 @@ ${import_chalk173.default.gray("No changes detected from current production vers
43330
43427
  teamId
43331
43428
  );
43332
43429
  output_manager_default.log(
43333
- `${import_chalk173.default.cyan("\u2713")} Version ${import_chalk173.default.bold(
43430
+ `${import_chalk174.default.cyan("\u2713")} Version ${import_chalk174.default.bold(
43334
43431
  newVersion.name || newVersion.id
43335
- )} promoted to production ${import_chalk173.default.gray(updateStamp())}`
43432
+ )} promoted to production ${import_chalk174.default.gray(updateStamp())}`
43336
43433
  );
43337
43434
  return 0;
43338
43435
  }
43339
43436
 
43340
43437
  // src/commands/redirects/restore.ts
43341
- var import_chalk174 = __toESM(require_source(), 1);
43438
+ var import_chalk175 = __toESM(require_source(), 1);
43342
43439
  async function restore(client, argv) {
43343
43440
  const parsed = await parseSubcommandArgs3(argv, restoreSubcommand);
43344
43441
  if (typeof parsed === "number")
@@ -43388,7 +43485,7 @@ async function restore(client, argv) {
43388
43485
  const { project, org } = link;
43389
43486
  const teamId = org.type === "team" ? org.id : void 0;
43390
43487
  const [versionIdentifier] = parsed.args;
43391
- output_manager_default.spinner(`Fetching redirect versions for ${import_chalk174.default.bold(project.name)}`);
43488
+ output_manager_default.spinner(`Fetching redirect versions for ${import_chalk175.default.bold(project.name)}`);
43392
43489
  const { versions } = await getRedirectVersions(client, project.id, teamId);
43393
43490
  const version = versions.find(
43394
43491
  (v) => v.id === versionIdentifier || v.name === versionIdentifier
@@ -43415,7 +43512,7 @@ async function restore(client, argv) {
43415
43512
  );
43416
43513
  }
43417
43514
  output_manager_default.error(
43418
- `Version with ID or name "${versionIdentifier}" not found. Run ${import_chalk174.default.cyan(
43515
+ `Version with ID or name "${versionIdentifier}" not found. Run ${import_chalk175.default.cyan(
43419
43516
  "vercel redirects list-versions"
43420
43517
  )} to see available versions.`
43421
43518
  );
@@ -43443,10 +43540,10 @@ async function restore(client, argv) {
43443
43540
  );
43444
43541
  }
43445
43542
  output_manager_default.error(
43446
- `Version ${import_chalk174.default.bold(
43543
+ `Version ${import_chalk175.default.bold(
43447
43544
  version.name || version.id
43448
43545
  )} is currently live. You cannot restore the live version.
43449
- Run ${import_chalk174.default.cyan(
43546
+ Run ${import_chalk175.default.cyan(
43450
43547
  "vercel redirects list-versions"
43451
43548
  )} to see previous versions you can restore.`
43452
43549
  );
@@ -43465,7 +43562,7 @@ Run ${import_chalk174.default.cyan(
43465
43562
  );
43466
43563
  }
43467
43564
  output_manager_default.error(
43468
- `Version ${import_chalk174.default.bold(
43565
+ `Version ${import_chalk175.default.bold(
43469
43566
  version.name || version.id
43470
43567
  )} is staged. You can only restore previous versions.`
43471
43568
  );
@@ -43483,13 +43580,13 @@ Run ${import_chalk174.default.cyan(
43483
43580
  );
43484
43581
  if (changedRedirects.length > 0) {
43485
43582
  output_manager_default.print(`
43486
- ${import_chalk174.default.bold("Changes to be restored:")}
43583
+ ${import_chalk175.default.bold("Changes to be restored:")}
43487
43584
 
43488
43585
  `);
43489
43586
  const displayRedirects = changedRedirects.slice(0, 20);
43490
43587
  for (const redirect of displayRedirects) {
43491
43588
  const status3 = redirect.statusCode || (redirect.permanent ? 308 : 307);
43492
- const symbol = redirect.action === "+" ? import_chalk174.default.green("+") : import_chalk174.default.red("-");
43589
+ const symbol = redirect.action === "+" ? import_chalk175.default.green("+") : import_chalk175.default.red("-");
43493
43590
  output_manager_default.print(
43494
43591
  ` ${symbol} ${redirect.source} \u2192 ${redirect.destination} (${status3})
43495
43592
  `
@@ -43497,7 +43594,7 @@ ${import_chalk174.default.bold("Changes to be restored:")}
43497
43594
  }
43498
43595
  if (changedRedirects.length > 20) {
43499
43596
  output_manager_default.print(
43500
- import_chalk174.default.gray(`
43597
+ import_chalk175.default.gray(`
43501
43598
  ... and ${changedRedirects.length - 20} more changes
43502
43599
  `)
43503
43600
  );
@@ -43506,7 +43603,7 @@ ${import_chalk174.default.bold("Changes to be restored:")}
43506
43603
  } else {
43507
43604
  output_manager_default.print(
43508
43605
  `
43509
- ${import_chalk174.default.gray("No changes detected from current production version.")}
43606
+ ${import_chalk175.default.gray("No changes detected from current production version.")}
43510
43607
 
43511
43608
  `
43512
43609
  );
@@ -43529,15 +43626,15 @@ ${import_chalk174.default.gray("No changes detected from current production vers
43529
43626
  const confirmed = await confirmAction2(
43530
43627
  client,
43531
43628
  parsed.flags["--yes"],
43532
- `Restore version ${import_chalk174.default.bold(versionName)}?`,
43533
- `This will make it the live version for ${import_chalk174.default.bold(project.name)}.`
43629
+ `Restore version ${import_chalk175.default.bold(versionName)}?`,
43630
+ `This will make it the live version for ${import_chalk175.default.bold(project.name)}.`
43534
43631
  );
43535
43632
  if (!confirmed) {
43536
43633
  output_manager_default.log("Canceled");
43537
43634
  return 0;
43538
43635
  }
43539
43636
  const updateStamp = stamp_default();
43540
- output_manager_default.spinner(`Restoring version ${import_chalk174.default.bold(versionName)}`);
43637
+ output_manager_default.spinner(`Restoring version ${import_chalk175.default.bold(versionName)}`);
43541
43638
  const { version: newVersion } = await updateRedirectVersion(
43542
43639
  client,
43543
43640
  project.id,
@@ -43546,9 +43643,9 @@ ${import_chalk174.default.gray("No changes detected from current production vers
43546
43643
  teamId
43547
43644
  );
43548
43645
  output_manager_default.log(
43549
- `${import_chalk174.default.cyan("\u2713")} Version ${import_chalk174.default.bold(
43646
+ `${import_chalk175.default.cyan("\u2713")} Version ${import_chalk175.default.bold(
43550
43647
  newVersion.name || newVersion.id
43551
- )} restored to production ${import_chalk174.default.gray(updateStamp())}`
43648
+ )} restored to production ${import_chalk175.default.gray(updateStamp())}`
43552
43649
  );
43553
43650
  return 0;
43554
43651
  }
@@ -43709,7 +43806,7 @@ async function main26(client) {
43709
43806
  }
43710
43807
 
43711
43808
  // src/commands/remove/index.ts
43712
- var import_chalk175 = __toESM(require_source(), 1);
43809
+ var import_chalk176 = __toESM(require_source(), 1);
43713
43810
  var import_ms27 = __toESM(require_ms(), 1);
43714
43811
  var import_pluralize11 = __toESM(require_pluralize(), 1);
43715
43812
 
@@ -43869,7 +43966,7 @@ async function remove7(client) {
43869
43966
  }
43870
43967
  const { contextName } = await getScope(client);
43871
43968
  output_manager_default.spinner(
43872
- `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk175.default.bold(contextName)}`
43969
+ `Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk176.default.bold(contextName)}`
43873
43970
  );
43874
43971
  let aliases;
43875
43972
  let projects;
@@ -43935,7 +44032,7 @@ async function remove7(client) {
43935
44032
  });
43936
44033
  if (deployments.length === 0 && projects.length === 0) {
43937
44034
  const safeUnaliased = parsedArgs.flags["--safe"] ? "unaliased" : "any";
43938
- const stylizedIds = ids.map((id) => import_chalk175.default.bold(`"${id}"`)).join(", ");
44035
+ const stylizedIds = ids.map((id) => import_chalk176.default.bold(`"${id}"`)).join(", ");
43939
44036
  const commandName = getCommandName("projects ls");
43940
44037
  log(
43941
44038
  `Could not find ${safeUnaliased} deployments or projects matching ${stylizedIds}. Run ${commandName} to list.`
@@ -43943,7 +44040,7 @@ async function remove7(client) {
43943
44040
  return 1;
43944
44041
  }
43945
44042
  log(
43946
- `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk175.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
44043
+ `Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk176.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
43947
44044
  );
43948
44045
  if (deployments.length > 200) {
43949
44046
  output_manager_default.warn(
@@ -43970,11 +44067,11 @@ async function remove7(client) {
43970
44067
  `Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
43971
44068
  );
43972
44069
  deployments.forEach((depl) => {
43973
- output_manager_default.print(`${import_chalk175.default.gray("-")} ${import_chalk175.default.bold(depl.url)}
44070
+ output_manager_default.print(`${import_chalk176.default.gray("-")} ${import_chalk176.default.bold(depl.url)}
43974
44071
  `);
43975
44072
  });
43976
44073
  projects.forEach((project) => {
43977
- output_manager_default.print(`${import_chalk175.default.gray("-")} ${import_chalk175.default.bold(project.name)}
44074
+ output_manager_default.print(`${import_chalk176.default.gray("-")} ${import_chalk176.default.bold(project.name)}
43978
44075
  `);
43979
44076
  });
43980
44077
  return 0;
@@ -43991,8 +44088,8 @@ function readConfirmation4(deployments, projects) {
43991
44088
  );
43992
44089
  const deploymentTable = table(
43993
44090
  deployments.map((depl) => {
43994
- const time = import_chalk175.default.gray(`${(0, import_ms27.default)(Date.now() - depl.createdAt)} ago`);
43995
- const url = depl.url ? import_chalk175.default.underline(`https://${depl.url}`) : "";
44091
+ const time = import_chalk176.default.gray(`${(0, import_ms27.default)(Date.now() - depl.createdAt)} ago`);
44092
+ const url = depl.url ? import_chalk176.default.underline(`https://${depl.url}`) : "";
43996
44093
  return [` ${depl.id}`, url, time];
43997
44094
  }),
43998
44095
  { align: ["l", "r", "l"], hsep: 6 }
@@ -44003,7 +44100,7 @@ function readConfirmation4(deployments, projects) {
44003
44100
  for (const depl of deployments) {
44004
44101
  for (const { alias: alias2 } of depl.aliases) {
44005
44102
  output_manager_default.warn(
44006
- `${import_chalk175.default.underline(`https://${alias2}`)} is an alias for ${import_chalk175.default.bold(depl.url)} and will be removed`
44103
+ `${import_chalk176.default.underline(`https://${alias2}`)} is an alias for ${import_chalk176.default.bold(depl.url)} and will be removed`
44007
44104
  );
44008
44105
  }
44009
44106
  }
@@ -44017,12 +44114,12 @@ function readConfirmation4(deployments, projects) {
44017
44114
  `
44018
44115
  );
44019
44116
  for (const project of projects) {
44020
- output_manager_default.print(`${import_chalk175.default.gray("-")} ${import_chalk175.default.bold(project.name)}
44117
+ output_manager_default.print(`${import_chalk176.default.gray("-")} ${import_chalk176.default.bold(project.name)}
44021
44118
  `);
44022
44119
  }
44023
44120
  }
44024
44121
  output_manager_default.print(
44025
- `${import_chalk175.default.bold.red("> Are you sure?")} ${import_chalk175.default.gray("(y/N) ")}`
44122
+ `${import_chalk176.default.bold.red("> Are you sure?")} ${import_chalk176.default.gray("(y/N) ")}`
44026
44123
  );
44027
44124
  process.stdin.on("data", (d) => {
44028
44125
  process.stdin.pause();
@@ -44045,11 +44142,11 @@ var import_error_utils17 = __toESM(require_dist(), 1);
44045
44142
  var import_ms30 = __toESM(require_ms(), 1);
44046
44143
 
44047
44144
  // src/commands/rollback/request-rollback.ts
44048
- var import_chalk177 = __toESM(require_source(), 1);
44145
+ var import_chalk178 = __toESM(require_source(), 1);
44049
44146
  var import_ms29 = __toESM(require_ms(), 1);
44050
44147
 
44051
44148
  // src/commands/rollback/status.ts
44052
- var import_chalk176 = __toESM(require_source(), 1);
44149
+ var import_chalk177 = __toESM(require_source(), 1);
44053
44150
  var import_ms28 = __toESM(require_ms(), 1);
44054
44151
  async function rollbackStatus({
44055
44152
  client,
@@ -44120,7 +44217,7 @@ async function rollbackStatus({
44120
44217
  }
44121
44218
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
44122
44219
  output_manager_default.log(
44123
- `The rollback exceeded its deadline - rerun ${import_chalk176.default.bold(
44220
+ `The rollback exceeded its deadline - rerun ${import_chalk177.default.bold(
44124
44221
  `${packageName} rollback ${toDeploymentId}`
44125
44222
  )} to try again`
44126
44223
  );
@@ -44184,16 +44281,16 @@ async function renderJobSucceeded2({
44184
44281
  let deploymentInfo = "";
44185
44282
  try {
44186
44283
  const deployment = await getDeployment(client, contextName, toDeploymentId);
44187
- deploymentInfo = `${import_chalk176.default.bold(deployment.url)} (${toDeploymentId})`;
44284
+ deploymentInfo = `${import_chalk177.default.bold(deployment.url)} (${toDeploymentId})`;
44188
44285
  } catch (err) {
44189
44286
  output_manager_default.debug(
44190
44287
  `Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
44191
44288
  );
44192
- deploymentInfo = import_chalk176.default.bold(toDeploymentId);
44289
+ deploymentInfo = import_chalk177.default.bold(toDeploymentId);
44193
44290
  }
44194
44291
  const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
44195
44292
  output_manager_default.log(
44196
- `Success! ${import_chalk176.default.bold(
44293
+ `Success! ${import_chalk177.default.bold(
44197
44294
  project.name
44198
44295
  )} was rolled back to ${deploymentInfo} ${duration}`
44199
44296
  );
@@ -44217,7 +44314,7 @@ async function requestRollback({
44217
44314
  });
44218
44315
  if (timeout !== void 0 && (0, import_ms29.default)(timeout) === 0) {
44219
44316
  output_manager_default.log(
44220
- `Successfully requested rollback of ${import_chalk177.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
44317
+ `Successfully requested rollback of ${import_chalk178.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
44221
44318
  );
44222
44319
  output_manager_default.log(`To check rollback status, run ${getCommandName("rollback")}.`);
44223
44320
  return 0;
@@ -45194,7 +45291,7 @@ async function rollingRelease(client) {
45194
45291
  }
45195
45292
 
45196
45293
  // src/commands/routes/list.ts
45197
- var import_chalk178 = __toESM(require_source(), 1);
45294
+ var import_chalk179 = __toESM(require_source(), 1);
45198
45295
  var import_pluralize12 = __toESM(require_pluralize(), 1);
45199
45296
  async function list12(client, argv) {
45200
45297
  const parsed = await parseSubcommandArgs(argv, listSubcommand14, client);
@@ -45283,7 +45380,7 @@ async function list12(client, argv) {
45283
45380
  process.exit(1);
45284
45381
  }
45285
45382
  output_manager_default.error(
45286
- `No production version found for ${import_chalk178.default.bold(project.name)}.`
45383
+ `No production version found for ${import_chalk179.default.bold(project.name)}.`
45287
45384
  );
45288
45385
  return 1;
45289
45386
  }
@@ -45311,9 +45408,9 @@ async function list12(client, argv) {
45311
45408
  process.exit(1);
45312
45409
  }
45313
45410
  output_manager_default.error(
45314
- `No staged changes to diff. Run ${import_chalk178.default.cyan(
45411
+ `No staged changes to diff. Run ${import_chalk179.default.cyan(
45315
45412
  getCommandName("routes add")
45316
- )} or ${import_chalk178.default.cyan(getCommandName("routes edit"))} to make changes.`
45413
+ )} or ${import_chalk179.default.cyan(getCommandName("routes edit"))} to make changes.`
45317
45414
  );
45318
45415
  return 1;
45319
45416
  }
@@ -45348,7 +45445,7 @@ async function list12(client, argv) {
45348
45445
  }
45349
45446
  }
45350
45447
  const lsStamp = stamp_default();
45351
- let spinnerMessage = `Fetching routes for ${import_chalk178.default.bold(project.name)}`;
45448
+ let spinnerMessage = `Fetching routes for ${import_chalk179.default.bold(project.name)}`;
45352
45449
  if (versionName) {
45353
45450
  spinnerMessage += ` (version: ${versionName})`;
45354
45451
  }
@@ -45372,7 +45469,7 @@ async function list12(client, argv) {
45372
45469
  const modified = routes2.filter((r) => r.action === "~");
45373
45470
  const unchanged = routes2.filter((r) => !r.action);
45374
45471
  output_manager_default.log(
45375
- `Changes in staging version ${import_chalk178.default.bold(versionName || "")} ${import_chalk178.default.gray(lsStamp())}`
45472
+ `Changes in staging version ${import_chalk179.default.bold(versionName || "")} ${import_chalk179.default.gray(lsStamp())}`
45376
45473
  );
45377
45474
  if (added.length === 0 && removed.length === 0 && modified.length === 0) {
45378
45475
  output_manager_default.log("\n No changes from production version\n");
@@ -45380,7 +45477,7 @@ async function list12(client, argv) {
45380
45477
  if (added.length > 0) {
45381
45478
  output_manager_default.print(
45382
45479
  `
45383
- ${import_chalk178.default.bold(import_chalk178.default.green(`Added (${added.length}):`))}
45480
+ ${import_chalk179.default.bold(import_chalk179.default.green(`Added (${added.length}):`))}
45384
45481
  `
45385
45482
  );
45386
45483
  output_manager_default.print(formatRoutesTable(added, "+"));
@@ -45388,7 +45485,7 @@ async function list12(client, argv) {
45388
45485
  if (modified.length > 0) {
45389
45486
  output_manager_default.print(
45390
45487
  `
45391
- ${import_chalk178.default.bold(import_chalk178.default.yellow(`Modified (${modified.length}):`))}
45488
+ ${import_chalk179.default.bold(import_chalk179.default.yellow(`Modified (${modified.length}):`))}
45392
45489
  `
45393
45490
  );
45394
45491
  output_manager_default.print(formatRoutesTable(modified, "~"));
@@ -45396,7 +45493,7 @@ async function list12(client, argv) {
45396
45493
  if (removed.length > 0) {
45397
45494
  output_manager_default.print(
45398
45495
  `
45399
- ${import_chalk178.default.bold(import_chalk178.default.red(`Removed (${removed.length}):`))}
45496
+ ${import_chalk179.default.bold(import_chalk179.default.red(`Removed (${removed.length}):`))}
45400
45497
  `
45401
45498
  );
45402
45499
  output_manager_default.print(formatRoutesTable(removed, "-"));
@@ -45404,7 +45501,7 @@ async function list12(client, argv) {
45404
45501
  if (unchanged.length > 0) {
45405
45502
  output_manager_default.print(
45406
45503
  `
45407
- ${import_chalk178.default.gray(`${unchanged.length} route${unchanged.length === 1 ? "" : "s"} unchanged`)}
45504
+ ${import_chalk179.default.gray(`${unchanged.length} route${unchanged.length === 1 ? "" : "s"} unchanged`)}
45408
45505
  `
45409
45506
  );
45410
45507
  }
@@ -45412,15 +45509,15 @@ async function list12(client, argv) {
45412
45509
  }
45413
45510
  if (version?.alias) {
45414
45511
  output_manager_default.log(
45415
- `Test your changes: ${import_chalk178.default.cyan(`https://${version.alias}`)}`
45512
+ `Test your changes: ${import_chalk179.default.cyan(`https://${version.alias}`)}`
45416
45513
  );
45417
45514
  }
45418
45515
  } else {
45419
- let resultMessage = `${(0, import_pluralize12.default)("Route", routes2.length, true)} found for ${import_chalk178.default.bold(
45516
+ let resultMessage = `${(0, import_pluralize12.default)("Route", routes2.length, true)} found for ${import_chalk179.default.bold(
45420
45517
  project.name
45421
45518
  )}`;
45422
45519
  if (versionName) {
45423
- resultMessage += ` ${import_chalk178.default.gray(`(version: ${versionName})`)}`;
45520
+ resultMessage += ` ${import_chalk179.default.gray(`(version: ${versionName})`)}`;
45424
45521
  }
45425
45522
  if (search2) {
45426
45523
  resultMessage += ` matching "${search2}"`;
@@ -45428,7 +45525,7 @@ async function list12(client, argv) {
45428
45525
  if (filter) {
45429
45526
  resultMessage += ` filtered by ${filter}`;
45430
45527
  }
45431
- resultMessage += ` ${import_chalk178.default.gray(lsStamp())}`;
45528
+ resultMessage += ` ${import_chalk179.default.gray(lsStamp())}`;
45432
45529
  output_manager_default.log(resultMessage);
45433
45530
  if (routes2.length > 0) {
45434
45531
  if (expand) {
@@ -45441,7 +45538,7 @@ async function list12(client, argv) {
45441
45538
  if (limit && limit.maxRoutes > 0) {
45442
45539
  const utilization = limit.currentRoutes / limit.maxRoutes;
45443
45540
  if (utilization >= 0.8) {
45444
- const usageColor = utilization >= 1 ? import_chalk178.default.red : import_chalk178.default.yellow;
45541
+ const usageColor = utilization >= 1 ? import_chalk179.default.red : import_chalk179.default.yellow;
45445
45542
  output_manager_default.print(
45446
45543
  ` ${usageColor(`Routes Usage: ${limit.currentRoutes}/${limit.maxRoutes}`)}
45447
45544
 
@@ -45455,14 +45552,14 @@ async function list12(client, argv) {
45455
45552
  function formatRoutesTable(routes2, actionSymbol) {
45456
45553
  const rows = routes2.map((rule, index) => {
45457
45554
  const typeLabels = getRouteTypeLabel(rule);
45458
- const status3 = rule.enabled === false ? import_chalk178.default.red("Disabled") : import_chalk178.default.green("Enabled");
45555
+ const status3 = rule.enabled === false ? import_chalk179.default.red("Disabled") : import_chalk179.default.green("Enabled");
45459
45556
  const prefix = actionSymbol || "";
45460
- const colorFn = actionSymbol === "+" ? import_chalk178.default.green : actionSymbol === "-" ? import_chalk178.default.red : actionSymbol === "~" ? import_chalk178.default.yellow : (s) => s;
45557
+ const colorFn = actionSymbol === "+" ? import_chalk179.default.green : actionSymbol === "-" ? import_chalk179.default.red : actionSymbol === "~" ? import_chalk179.default.yellow : (s) => s;
45461
45558
  const position = actionSymbol ? "" : `${index + 1}`;
45462
45559
  return [
45463
45560
  colorFn(`${prefix} ${position}`).trim(),
45464
45561
  colorFn(
45465
- truncate(rule.name, 30) + (rule.staged ? import_chalk178.default.yellow(" (draft)") : "")
45562
+ truncate(rule.name, 30) + (rule.staged ? import_chalk179.default.yellow(" (draft)") : "")
45466
45563
  ),
45467
45564
  colorFn(truncate(rule.route.src, 40)),
45468
45565
  colorFn(typeLabels),
@@ -45485,44 +45582,44 @@ function formatExpandedRoutes(routes2) {
45485
45582
  routes2.forEach((rule, index) => {
45486
45583
  const typeLabels = getRouteTypeLabel(rule);
45487
45584
  const syntaxLabel = getSrcSyntaxLabel(rule);
45488
- const statusText = rule.enabled === false ? import_chalk178.default.red("Disabled") : import_chalk178.default.green("Enabled");
45489
- const stagedText = rule.staged ? import_chalk178.default.yellow(" (staged)") : "";
45585
+ const statusText = rule.enabled === false ? import_chalk179.default.red("Disabled") : import_chalk179.default.green("Enabled");
45586
+ const stagedText = rule.staged ? import_chalk179.default.yellow(" (staged)") : "";
45490
45587
  lines.push(
45491
- ` ${import_chalk178.default.bold(`${index + 1}. ${rule.name}`)}${stagedText} ${import_chalk178.default.gray(`[${rule.id}]`)}`
45588
+ ` ${import_chalk179.default.bold(`${index + 1}. ${rule.name}`)}${stagedText} ${import_chalk179.default.gray(`[${rule.id}]`)}`
45492
45589
  );
45493
- lines.push(` ${import_chalk178.default.cyan("Status:")} ${statusText}`);
45494
- lines.push(` ${import_chalk178.default.cyan("Type:")} ${typeLabels}`);
45590
+ lines.push(` ${import_chalk179.default.cyan("Status:")} ${statusText}`);
45591
+ lines.push(` ${import_chalk179.default.cyan("Type:")} ${typeLabels}`);
45495
45592
  if (rule.description) {
45496
- lines.push(` ${import_chalk178.default.cyan("Desc:")} ${rule.description}`);
45593
+ lines.push(` ${import_chalk179.default.cyan("Desc:")} ${rule.description}`);
45497
45594
  }
45498
- lines.push(` ${import_chalk178.default.cyan("Source:")} ${rule.route.src}`);
45499
- lines.push(` ${import_chalk178.default.cyan("Syntax:")} ${syntaxLabel}`);
45595
+ lines.push(` ${import_chalk179.default.cyan("Source:")} ${rule.route.src}`);
45596
+ lines.push(` ${import_chalk179.default.cyan("Syntax:")} ${syntaxLabel}`);
45500
45597
  if (rule.route.dest) {
45501
- lines.push(` ${import_chalk178.default.cyan("Dest:")} ${rule.route.dest}`);
45598
+ lines.push(` ${import_chalk179.default.cyan("Dest:")} ${rule.route.dest}`);
45502
45599
  }
45503
45600
  if (rule.route.status) {
45504
- lines.push(` ${import_chalk178.default.cyan("Code:")} ${rule.route.status}`);
45601
+ lines.push(` ${import_chalk179.default.cyan("Code:")} ${rule.route.status}`);
45505
45602
  }
45506
45603
  if (rule.route.headers && Object.keys(rule.route.headers).length > 0) {
45507
- lines.push(` ${import_chalk178.default.cyan("Response Headers:")}`);
45604
+ lines.push(` ${import_chalk179.default.cyan("Response Headers:")}`);
45508
45605
  for (const [key, value] of Object.entries(rule.route.headers)) {
45509
45606
  lines.push(` ${key}: ${value}`);
45510
45607
  }
45511
45608
  }
45512
45609
  if (rule.route.transforms && rule.route.transforms.length > 0) {
45513
- lines.push(` ${import_chalk178.default.cyan("Transforms:")}`);
45610
+ lines.push(` ${import_chalk179.default.cyan("Transforms:")}`);
45514
45611
  for (const transform of rule.route.transforms) {
45515
45612
  lines.push(` ${formatTransform(transform)}`);
45516
45613
  }
45517
45614
  }
45518
45615
  if (rule.route.has && rule.route.has.length > 0) {
45519
- lines.push(` ${import_chalk178.default.cyan("Has conditions:")}`);
45616
+ lines.push(` ${import_chalk179.default.cyan("Has conditions:")}`);
45520
45617
  for (const condition of rule.route.has) {
45521
45618
  lines.push(` ${formatCondition(condition)}`);
45522
45619
  }
45523
45620
  }
45524
45621
  if (rule.route.missing && rule.route.missing.length > 0) {
45525
- lines.push(` ${import_chalk178.default.cyan("Does not have conditions:")}`);
45622
+ lines.push(` ${import_chalk179.default.cyan("Does not have conditions:")}`);
45526
45623
  for (const condition of rule.route.missing) {
45527
45624
  lines.push(` ${formatCondition(condition)}`);
45528
45625
  }
@@ -45533,7 +45630,7 @@ function formatExpandedRoutes(routes2) {
45533
45630
  }
45534
45631
 
45535
45632
  // src/commands/routes/list-versions.ts
45536
- var import_chalk179 = __toESM(require_source(), 1);
45633
+ var import_chalk180 = __toESM(require_source(), 1);
45537
45634
  var import_ms32 = __toESM(require_ms(), 1);
45538
45635
  async function listVersions2(client, argv) {
45539
45636
  const parsed = await parseSubcommandArgs(
@@ -45573,13 +45670,13 @@ async function listVersions2(client, argv) {
45573
45670
  }
45574
45671
  }
45575
45672
  const lsStamp = stamp_default();
45576
- output_manager_default.spinner(`Fetching route versions for ${import_chalk179.default.bold(project.name)}`);
45673
+ output_manager_default.spinner(`Fetching route versions for ${import_chalk180.default.bold(project.name)}`);
45577
45674
  const { versions } = await getRouteVersions(client, project.id, {
45578
45675
  teamId,
45579
45676
  count
45580
45677
  });
45581
45678
  output_manager_default.log(
45582
- `Route versions for ${import_chalk179.default.bold(project.name)} ${import_chalk179.default.gray(lsStamp())}`
45679
+ `Route versions for ${import_chalk180.default.bold(project.name)} ${import_chalk180.default.gray(lsStamp())}`
45583
45680
  );
45584
45681
  if (versions.length === 0) {
45585
45682
  output_manager_default.log("\n No versions found\n");
@@ -45593,11 +45690,11 @@ function formatVersionsTable2(versions) {
45593
45690
  const rows = versions.map((version) => {
45594
45691
  let status3 = "";
45595
45692
  if (version.isStaging) {
45596
- status3 = import_chalk179.default.yellow("Staging");
45693
+ status3 = import_chalk180.default.yellow("Staging");
45597
45694
  } else if (version.isLive) {
45598
- status3 = import_chalk179.default.green("Live");
45695
+ status3 = import_chalk180.default.green("Live");
45599
45696
  } else {
45600
- status3 = import_chalk179.default.gray("Previous");
45697
+ status3 = import_chalk180.default.gray("Previous");
45601
45698
  }
45602
45699
  const id = version.id.slice(0, 12);
45603
45700
  const routeCount = version.ruleCount !== void 0 ? version.ruleCount.toString() : "-";
@@ -45620,7 +45717,7 @@ function getRelativeTime(timestamp) {
45620
45717
  }
45621
45718
 
45622
45719
  // src/commands/routes/inspect.ts
45623
- var import_chalk180 = __toESM(require_source(), 1);
45720
+ var import_chalk181 = __toESM(require_source(), 1);
45624
45721
  function withGlobalFlags7(client, commandTemplate) {
45625
45722
  const flags = getGlobalFlagsOnlyFromArgs(client.argv.slice(2));
45626
45723
  return getCommandNamePlain(`${commandTemplate} ${flags.join(" ")}`.trim());
@@ -45661,13 +45758,13 @@ async function inspect6(client, argv) {
45661
45758
  return 1;
45662
45759
  }
45663
45760
  output_manager_default.error(
45664
- `Missing route name or ID. Usage: ${import_chalk180.default.cyan(getCommandName("routes inspect <name-or-id>"))}`
45761
+ `Missing route name or ID. Usage: ${import_chalk181.default.cyan(getCommandName("routes inspect <name-or-id>"))}`
45665
45762
  );
45666
45763
  return 1;
45667
45764
  }
45668
45765
  const inspectStamp = stamp_default();
45669
45766
  output_manager_default.spinner(
45670
- `Searching for route "${identifier}" in ${import_chalk180.default.bold(project.name)}`
45767
+ `Searching for route "${identifier}" in ${import_chalk181.default.bold(project.name)}`
45671
45768
  );
45672
45769
  const { routes: routes2 } = await getRoutes(client, project.id, {
45673
45770
  teamId,
@@ -45699,7 +45796,7 @@ async function inspect6(client, argv) {
45699
45796
  return 1;
45700
45797
  }
45701
45798
  output_manager_default.error(
45702
- `No route found matching "${identifier}". Run ${import_chalk180.default.cyan(
45799
+ `No route found matching "${identifier}". Run ${import_chalk181.default.cyan(
45703
45800
  getCommandName("routes list")
45704
45801
  )} to see all routes.`
45705
45802
  );
@@ -45730,13 +45827,13 @@ async function inspect6(client, argv) {
45730
45827
  return 1;
45731
45828
  }
45732
45829
  output_manager_default.log(
45733
- `Found ${routes2.length} routes matching "${identifier}" ${import_chalk180.default.gray(inspectStamp())}`
45830
+ `Found ${routes2.length} routes matching "${identifier}" ${import_chalk181.default.gray(inspectStamp())}`
45734
45831
  );
45735
45832
  const selectedId = await client.input.select({
45736
45833
  message: "Select a route to inspect:",
45737
45834
  choices: routes2.map((r) => ({
45738
45835
  value: r.id,
45739
- name: `${r.name} ${import_chalk180.default.gray(`(${r.route.src})`)}`
45836
+ name: `${r.name} ${import_chalk181.default.gray(`(${r.route.src})`)}`
45740
45837
  }))
45741
45838
  });
45742
45839
  if (!selectedId) {
@@ -45751,7 +45848,7 @@ async function inspect6(client, argv) {
45751
45848
  route = selected;
45752
45849
  }
45753
45850
  output_manager_default.log(
45754
- `Route found in ${import_chalk180.default.bold(project.name)} ${import_chalk180.default.gray(inspectStamp())}`
45851
+ `Route found in ${import_chalk181.default.bold(project.name)} ${import_chalk181.default.gray(inspectStamp())}`
45755
45852
  );
45756
45853
  if (showDiff) {
45757
45854
  return await showRouteDiff(client, project.id, teamId, route);
@@ -45775,13 +45872,13 @@ async function showRouteDiff(client, projectId, teamId, stagingRoute) {
45775
45872
  if (!productionRoute) {
45776
45873
  output_manager_default.print(
45777
45874
  `
45778
- ${import_chalk180.default.bold(stagingRoute.name)} ${import_chalk180.default.green("(new)")}
45875
+ ${import_chalk181.default.bold(stagingRoute.name)} ${import_chalk181.default.green("(new)")}
45779
45876
  `
45780
45877
  );
45781
- output_manager_default.print(` ${import_chalk180.default.gray(stagingRoute.id)}
45878
+ output_manager_default.print(` ${import_chalk181.default.gray(stagingRoute.id)}
45782
45879
  `);
45783
45880
  output_manager_default.print(
45784
- ` ${import_chalk180.default.green("This route does not exist in production yet.")}
45881
+ ` ${import_chalk181.default.green("This route does not exist in production yet.")}
45785
45882
  `
45786
45883
  );
45787
45884
  output_manager_default.print(formatRouteDetails(stagingRoute));
@@ -45794,45 +45891,45 @@ function diffField(label, oldVal, newVal) {
45794
45891
  if (oldVal === newVal) {
45795
45892
  if (!newVal)
45796
45893
  return "";
45797
- return ` ${import_chalk180.default.cyan(label)} ${newVal}`;
45894
+ return ` ${import_chalk181.default.cyan(label)} ${newVal}`;
45798
45895
  }
45799
45896
  if (!oldVal && newVal) {
45800
- return `${import_chalk180.default.green("+")} ${import_chalk180.default.cyan(label)} ${newVal}`;
45897
+ return `${import_chalk181.default.green("+")} ${import_chalk181.default.cyan(label)} ${newVal}`;
45801
45898
  }
45802
45899
  if (oldVal && !newVal) {
45803
- return `${import_chalk180.default.red("-")} ${import_chalk180.default.cyan(label)} ${import_chalk180.default.strikethrough(oldVal)}`;
45900
+ return `${import_chalk181.default.red("-")} ${import_chalk181.default.cyan(label)} ${import_chalk181.default.strikethrough(oldVal)}`;
45804
45901
  }
45805
- return `${import_chalk180.default.yellow("~")} ${import_chalk180.default.cyan(label)} ${import_chalk180.default.red(oldVal)} \u2192 ${import_chalk180.default.green(newVal)}`;
45902
+ return `${import_chalk181.default.yellow("~")} ${import_chalk181.default.cyan(label)} ${import_chalk181.default.red(oldVal)} \u2192 ${import_chalk181.default.green(newVal)}`;
45806
45903
  }
45807
45904
  function formatRouteDiff(staging, production) {
45808
45905
  const lines = [""];
45809
45906
  const hasChanges = JSON.stringify(normalizeForComparison(staging)) !== JSON.stringify(normalizeForComparison(production));
45810
45907
  if (!hasChanges) {
45811
- lines.push(` ${import_chalk180.default.bold(staging.name)}`);
45812
- lines.push(` ${import_chalk180.default.gray(staging.id)}`);
45908
+ lines.push(` ${import_chalk181.default.bold(staging.name)}`);
45909
+ lines.push(` ${import_chalk181.default.gray(staging.id)}`);
45813
45910
  lines.push("");
45814
- lines.push(` ${import_chalk180.default.gray("No staged changes for this route.")}`);
45911
+ lines.push(` ${import_chalk181.default.gray("No staged changes for this route.")}`);
45815
45912
  lines.push("");
45816
- lines.push(import_chalk180.default.bold(" Route Configuration"));
45913
+ lines.push(import_chalk181.default.bold(" Route Configuration"));
45817
45914
  return lines.join("\n") + "\n" + formatRouteDetails(staging);
45818
45915
  }
45819
45916
  const typeLabels = getRouteTypeLabel(staging);
45820
45917
  const syntaxLabel = getSrcSyntaxLabel(staging);
45821
- lines.push(` ${import_chalk180.default.bold(staging.name)} ${import_chalk180.default.yellow("(modified)")}`);
45822
- lines.push(` ${import_chalk180.default.gray(staging.id)}`);
45918
+ lines.push(` ${import_chalk181.default.bold(staging.name)} ${import_chalk181.default.yellow("(modified)")}`);
45919
+ lines.push(` ${import_chalk181.default.gray(staging.id)}`);
45823
45920
  lines.push("");
45824
45921
  if (production.description !== staging.description) {
45825
45922
  if (!production.description && staging.description) {
45826
45923
  lines.push(
45827
- `${import_chalk180.default.green("+")} ${import_chalk180.default.cyan("Description:")} ${staging.description}`
45924
+ `${import_chalk181.default.green("+")} ${import_chalk181.default.cyan("Description:")} ${staging.description}`
45828
45925
  );
45829
45926
  } else if (production.description && !staging.description) {
45830
45927
  lines.push(
45831
- `${import_chalk180.default.red("-")} ${import_chalk180.default.cyan("Description:")} ${import_chalk180.default.strikethrough(production.description)}`
45928
+ `${import_chalk181.default.red("-")} ${import_chalk181.default.cyan("Description:")} ${import_chalk181.default.strikethrough(production.description)}`
45832
45929
  );
45833
45930
  } else {
45834
45931
  lines.push(
45835
- `${import_chalk180.default.yellow("~")} ${import_chalk180.default.cyan("Description:")} ${import_chalk180.default.red(production.description)} \u2192 ${import_chalk180.default.green(staging.description)}`
45932
+ `${import_chalk181.default.yellow("~")} ${import_chalk181.default.cyan("Description:")} ${import_chalk181.default.red(production.description)} \u2192 ${import_chalk181.default.green(staging.description)}`
45836
45933
  );
45837
45934
  }
45838
45935
  lines.push("");
@@ -45843,14 +45940,14 @@ function formatRouteDiff(staging, production) {
45843
45940
  const prodStatusText = production.enabled === false ? "Disabled" : "Enabled";
45844
45941
  const stagingStatusText = staging.enabled === false ? "Disabled" : "Enabled";
45845
45942
  lines.push(
45846
- diffField("Status:", prodStatusText, stagingStatusText) || ` ${import_chalk180.default.cyan("Status:")} ${stagingStatusText}`
45943
+ diffField("Status:", prodStatusText, stagingStatusText) || ` ${import_chalk181.default.cyan("Status:")} ${stagingStatusText}`
45847
45944
  );
45848
- lines.push(` ${import_chalk180.default.cyan("Type:")} ${typeLabels}`);
45945
+ lines.push(` ${import_chalk181.default.cyan("Type:")} ${typeLabels}`);
45849
45946
  lines.push("");
45850
- lines.push(import_chalk180.default.bold(" Route Configuration"));
45947
+ lines.push(import_chalk181.default.bold(" Route Configuration"));
45851
45948
  const srcLine = diffField("Source:", production.route.src, staging.route.src);
45852
- lines.push(srcLine || ` ${import_chalk180.default.cyan("Source:")} ${staging.route.src}`);
45853
- lines.push(` ${import_chalk180.default.cyan("Syntax:")} ${syntaxLabel}`);
45949
+ lines.push(srcLine || ` ${import_chalk181.default.cyan("Source:")} ${staging.route.src}`);
45950
+ lines.push(` ${import_chalk181.default.cyan("Syntax:")} ${syntaxLabel}`);
45854
45951
  const destLine = diffField(
45855
45952
  "Destination:",
45856
45953
  production.route.dest,
@@ -45859,14 +45956,14 @@ function formatRouteDiff(staging, production) {
45859
45956
  if (destLine)
45860
45957
  lines.push(destLine);
45861
45958
  else if (staging.route.dest)
45862
- lines.push(` ${import_chalk180.default.cyan("Destination:")} ${staging.route.dest}`);
45959
+ lines.push(` ${import_chalk181.default.cyan("Destination:")} ${staging.route.dest}`);
45863
45960
  const prodStatus = production.route.status ? String(production.route.status) : void 0;
45864
45961
  const stagingStatus = staging.route.status ? String(staging.route.status) : void 0;
45865
45962
  const statusLine = diffField("HTTP Status:", prodStatus, stagingStatus);
45866
45963
  if (statusLine)
45867
45964
  lines.push(statusLine);
45868
45965
  else if (staging.route.status)
45869
- lines.push(` ${import_chalk180.default.cyan("HTTP Status:")} ${staging.route.status}`);
45966
+ lines.push(` ${import_chalk181.default.cyan("HTTP Status:")} ${staging.route.status}`);
45870
45967
  const prodHeaders = production.route.headers ?? {};
45871
45968
  const stagingHeaders = staging.route.headers ?? {};
45872
45969
  const allHeaderKeys = /* @__PURE__ */ new Set([
@@ -45875,23 +45972,23 @@ function formatRouteDiff(staging, production) {
45875
45972
  ]);
45876
45973
  if (allHeaderKeys.size > 0) {
45877
45974
  lines.push("");
45878
- lines.push(import_chalk180.default.bold(" Response Headers"));
45975
+ lines.push(import_chalk181.default.bold(" Response Headers"));
45879
45976
  for (const key of allHeaderKeys) {
45880
45977
  const prodVal = prodHeaders[key];
45881
45978
  const stagingVal = stagingHeaders[key];
45882
45979
  if (prodVal === stagingVal) {
45883
- lines.push(` ${import_chalk180.default.cyan(key + ":")} ${stagingVal}`);
45980
+ lines.push(` ${import_chalk181.default.cyan(key + ":")} ${stagingVal}`);
45884
45981
  } else if (!prodVal) {
45885
45982
  lines.push(
45886
- `${import_chalk180.default.green("+")} ${import_chalk180.default.cyan(key + ":")} ${stagingVal}`
45983
+ `${import_chalk181.default.green("+")} ${import_chalk181.default.cyan(key + ":")} ${stagingVal}`
45887
45984
  );
45888
45985
  } else if (!stagingVal) {
45889
45986
  lines.push(
45890
- `${import_chalk180.default.red("-")} ${import_chalk180.default.cyan(key + ":")} ${import_chalk180.default.strikethrough(prodVal)}`
45987
+ `${import_chalk181.default.red("-")} ${import_chalk181.default.cyan(key + ":")} ${import_chalk181.default.strikethrough(prodVal)}`
45891
45988
  );
45892
45989
  } else {
45893
45990
  lines.push(
45894
- `${import_chalk180.default.yellow("~")} ${import_chalk180.default.cyan(key + ":")} ${import_chalk180.default.red(prodVal)} \u2192 ${import_chalk180.default.green(stagingVal)}`
45991
+ `${import_chalk181.default.yellow("~")} ${import_chalk181.default.cyan(key + ":")} ${import_chalk181.default.red(prodVal)} \u2192 ${import_chalk181.default.green(stagingVal)}`
45895
45992
  );
45896
45993
  }
45897
45994
  }
@@ -45900,7 +45997,7 @@ function formatRouteDiff(staging, production) {
45900
45997
  const stagingTransforms = staging.route.transforms ?? [];
45901
45998
  if (prodTransforms.length > 0 || stagingTransforms.length > 0) {
45902
45999
  lines.push("");
45903
- lines.push(import_chalk180.default.bold(" Transforms"));
46000
+ lines.push(import_chalk181.default.bold(" Transforms"));
45904
46001
  const prodKeys = prodTransforms.map(transformKey);
45905
46002
  const stagingKeys = stagingTransforms.map(transformKey);
45906
46003
  for (let i = 0; i < stagingTransforms.length; i++) {
@@ -45908,14 +46005,14 @@ function formatRouteDiff(staging, production) {
45908
46005
  const prodIdx = prodKeys.indexOf(key);
45909
46006
  if (prodIdx === -1) {
45910
46007
  lines.push(
45911
- `${import_chalk180.default.green("+")} ${formatTransform(stagingTransforms[i])}`
46008
+ `${import_chalk181.default.green("+")} ${formatTransform(stagingTransforms[i])}`
45912
46009
  );
45913
46010
  } else {
45914
46011
  const prodArgs = stringifyArgs(prodTransforms[prodIdx].args);
45915
46012
  const stagingArgs = stringifyArgs(stagingTransforms[i].args);
45916
46013
  if (prodArgs !== stagingArgs) {
45917
46014
  lines.push(
45918
- `${import_chalk180.default.yellow("~")} ${formatTransform(stagingTransforms[i])} ${import_chalk180.default.gray(`(was: ${prodArgs})`)}`
46015
+ `${import_chalk181.default.yellow("~")} ${formatTransform(stagingTransforms[i])} ${import_chalk181.default.gray(`(was: ${prodArgs})`)}`
45919
46016
  );
45920
46017
  } else {
45921
46018
  lines.push(` ${formatTransform(stagingTransforms[i])}`);
@@ -45926,7 +46023,7 @@ function formatRouteDiff(staging, production) {
45926
46023
  const key = prodKeys[i];
45927
46024
  if (!stagingKeys.includes(key)) {
45928
46025
  lines.push(
45929
- `${import_chalk180.default.red("-")} ${import_chalk180.default.strikethrough(formatTransformPlain(prodTransforms[i]))}`
46026
+ `${import_chalk181.default.red("-")} ${import_chalk181.default.strikethrough(formatTransformPlain(prodTransforms[i]))}`
45930
46027
  );
45931
46028
  }
45932
46029
  }
@@ -45935,14 +46032,14 @@ function formatRouteDiff(staging, production) {
45935
46032
  const stagingHas = staging.route.has ?? [];
45936
46033
  if (prodHas.length > 0 || stagingHas.length > 0) {
45937
46034
  lines.push("");
45938
- lines.push(import_chalk180.default.bold(" Has Conditions"));
46035
+ lines.push(import_chalk181.default.bold(" Has Conditions"));
45939
46036
  diffConditions(lines, prodHas, stagingHas);
45940
46037
  }
45941
46038
  const prodMissing = production.route.missing ?? [];
45942
46039
  const stagingMissing = staging.route.missing ?? [];
45943
46040
  if (prodMissing.length > 0 || stagingMissing.length > 0) {
45944
46041
  lines.push("");
45945
- lines.push(import_chalk180.default.bold(" Does Not Have Conditions"));
46042
+ lines.push(import_chalk181.default.bold(" Does Not Have Conditions"));
45946
46043
  diffConditions(lines, prodMissing, stagingMissing);
45947
46044
  }
45948
46045
  lines.push("");
@@ -45990,13 +46087,13 @@ function diffConditions(lines, prodConditions, stagingConditions) {
45990
46087
  if (prodKeys.includes(key)) {
45991
46088
  lines.push(` ${formatCondition(cond)}`);
45992
46089
  } else {
45993
- lines.push(`${import_chalk180.default.green("+")} ${formatCondition(cond)}`);
46090
+ lines.push(`${import_chalk181.default.green("+")} ${formatCondition(cond)}`);
45994
46091
  }
45995
46092
  }
45996
46093
  for (const cond of prodConditions) {
45997
46094
  const key = conditionKey(cond);
45998
46095
  if (!stagingKeys.includes(key)) {
45999
- lines.push(`${import_chalk180.default.red("-")} ${formatCondition(cond)}`);
46096
+ lines.push(`${import_chalk181.default.red("-")} ${formatCondition(cond)}`);
46000
46097
  }
46001
46098
  }
46002
46099
  }
@@ -46004,32 +46101,32 @@ function formatRouteDetails(rule) {
46004
46101
  const lines = [""];
46005
46102
  const typeLabels = getRouteTypeLabel(rule);
46006
46103
  const syntaxLabel = getSrcSyntaxLabel(rule);
46007
- const statusText = rule.enabled === false ? import_chalk180.default.red("Disabled") : import_chalk180.default.green("Enabled");
46008
- lines.push(` ${import_chalk180.default.bold(rule.name)}`);
46009
- lines.push(` ${import_chalk180.default.gray(rule.id)}`);
46104
+ const statusText = rule.enabled === false ? import_chalk181.default.red("Disabled") : import_chalk181.default.green("Enabled");
46105
+ lines.push(` ${import_chalk181.default.bold(rule.name)}`);
46106
+ lines.push(` ${import_chalk181.default.gray(rule.id)}`);
46010
46107
  lines.push("");
46011
46108
  if (rule.description) {
46012
46109
  lines.push(` ${rule.description}`);
46013
46110
  lines.push("");
46014
46111
  }
46015
- lines.push(` ${import_chalk180.default.cyan("Status:")} ${statusText}`);
46112
+ lines.push(` ${import_chalk181.default.cyan("Status:")} ${statusText}`);
46016
46113
  if (rule.staged === true) {
46017
46114
  lines.push(
46018
- ` ${import_chalk180.default.cyan("State:")} ${import_chalk180.default.yellow("Staged (not yet published)")}`
46115
+ ` ${import_chalk181.default.cyan("State:")} ${import_chalk181.default.yellow("Staged (not yet published)")}`
46019
46116
  );
46020
46117
  } else if (rule.staged === false) {
46021
- lines.push(` ${import_chalk180.default.cyan("State:")} ${import_chalk180.default.green("Published")}`);
46118
+ lines.push(` ${import_chalk181.default.cyan("State:")} ${import_chalk181.default.green("Published")}`);
46022
46119
  }
46023
- lines.push(` ${import_chalk180.default.cyan("Type:")} ${typeLabels}`);
46120
+ lines.push(` ${import_chalk181.default.cyan("Type:")} ${typeLabels}`);
46024
46121
  lines.push("");
46025
- lines.push(import_chalk180.default.bold(" Route Configuration"));
46026
- lines.push(` ${import_chalk180.default.cyan("Source:")} ${rule.route.src}`);
46027
- lines.push(` ${import_chalk180.default.cyan("Syntax:")} ${syntaxLabel}`);
46122
+ lines.push(import_chalk181.default.bold(" Route Configuration"));
46123
+ lines.push(` ${import_chalk181.default.cyan("Source:")} ${rule.route.src}`);
46124
+ lines.push(` ${import_chalk181.default.cyan("Syntax:")} ${syntaxLabel}`);
46028
46125
  if (rule.route.dest) {
46029
- lines.push(` ${import_chalk180.default.cyan("Destination:")} ${rule.route.dest}`);
46126
+ lines.push(` ${import_chalk181.default.cyan("Destination:")} ${rule.route.dest}`);
46030
46127
  }
46031
46128
  if (rule.route.status) {
46032
- lines.push(` ${import_chalk180.default.cyan("HTTP Status:")} ${rule.route.status}`);
46129
+ lines.push(` ${import_chalk181.default.cyan("HTTP Status:")} ${rule.route.status}`);
46033
46130
  }
46034
46131
  const responseHeaderSets = Object.entries(rule.route.headers ?? {});
46035
46132
  const allTransforms = rule.route.transforms ?? [];
@@ -46044,9 +46141,9 @@ function formatRouteDetails(rule) {
46044
46141
  );
46045
46142
  if (responseHeaderSets.length > 0 || responseHeaderTransforms.length > 0) {
46046
46143
  lines.push("");
46047
- lines.push(import_chalk180.default.bold(" Response Headers"));
46144
+ lines.push(import_chalk181.default.bold(" Response Headers"));
46048
46145
  for (const [key, value] of responseHeaderSets) {
46049
- lines.push(` ${import_chalk180.default.yellow("set")} ${import_chalk180.default.cyan(key)} = ${value}`);
46146
+ lines.push(` ${import_chalk181.default.yellow("set")} ${import_chalk181.default.cyan(key)} = ${value}`);
46050
46147
  }
46051
46148
  for (const t of responseHeaderTransforms) {
46052
46149
  lines.push(` ${formatTransform(t, false)}`);
@@ -46054,28 +46151,28 @@ function formatRouteDetails(rule) {
46054
46151
  }
46055
46152
  if (requestHeaderTransforms.length > 0) {
46056
46153
  lines.push("");
46057
- lines.push(import_chalk180.default.bold(" Request Headers"));
46154
+ lines.push(import_chalk181.default.bold(" Request Headers"));
46058
46155
  for (const t of requestHeaderTransforms) {
46059
46156
  lines.push(` ${formatTransform(t, false)}`);
46060
46157
  }
46061
46158
  }
46062
46159
  if (requestQueryTransforms.length > 0) {
46063
46160
  lines.push("");
46064
- lines.push(import_chalk180.default.bold(" Request Query"));
46161
+ lines.push(import_chalk181.default.bold(" Request Query"));
46065
46162
  for (const t of requestQueryTransforms) {
46066
46163
  lines.push(` ${formatTransform(t, false)}`);
46067
46164
  }
46068
46165
  }
46069
46166
  if (rule.route.has && rule.route.has.length > 0) {
46070
46167
  lines.push("");
46071
- lines.push(import_chalk180.default.bold(" Has Conditions"));
46168
+ lines.push(import_chalk181.default.bold(" Has Conditions"));
46072
46169
  for (const condition of rule.route.has) {
46073
46170
  lines.push(` ${formatCondition(condition)}`);
46074
46171
  }
46075
46172
  }
46076
46173
  if (rule.route.missing && rule.route.missing.length > 0) {
46077
46174
  lines.push("");
46078
- lines.push(import_chalk180.default.bold(" Does Not Have Conditions"));
46175
+ lines.push(import_chalk181.default.bold(" Does Not Have Conditions"));
46079
46176
  for (const condition of rule.route.missing) {
46080
46177
  lines.push(` ${formatCondition(condition)}`);
46081
46178
  }
@@ -46085,7 +46182,7 @@ function formatRouteDetails(rule) {
46085
46182
  }
46086
46183
 
46087
46184
  // src/commands/routes/add.ts
46088
- var import_chalk181 = __toESM(require_source(), 1);
46185
+ var import_chalk182 = __toESM(require_source(), 1);
46089
46186
 
46090
46187
  // src/util/routes/add-route.ts
46091
46188
  async function addRoute(client, projectId, routeInput, options = {}) {
@@ -46699,44 +46796,44 @@ async function add10(client, argv) {
46699
46796
  return 0;
46700
46797
  }
46701
46798
  output_manager_default.log(
46702
- `${import_chalk181.default.cyan("Created")} route "${name}" ${import_chalk181.default.gray(addStamp())}`
46799
+ `${import_chalk182.default.cyan("Created")} route "${name}" ${import_chalk182.default.gray(addStamp())}`
46703
46800
  );
46704
46801
  output_manager_default.print(`
46705
- ${import_chalk181.default.bold("Route:")} ${route.name}
46802
+ ${import_chalk182.default.bold("Route:")} ${route.name}
46706
46803
  `);
46707
- output_manager_default.print(` ${import_chalk181.default.gray("ID:")} ${route.id}
46804
+ output_manager_default.print(` ${import_chalk182.default.gray("ID:")} ${route.id}
46708
46805
  `);
46709
- output_manager_default.print(` ${import_chalk181.default.gray("Path:")} ${src}
46806
+ output_manager_default.print(` ${import_chalk182.default.gray("Path:")} ${src}
46710
46807
  `);
46711
46808
  if (finalDest) {
46712
46809
  if (isRedirect) {
46713
46810
  output_manager_default.print(
46714
- ` ${import_chalk181.default.gray("Redirect:")} ${finalDest} (${finalStatus})
46811
+ ` ${import_chalk182.default.gray("Redirect:")} ${finalDest} (${finalStatus})
46715
46812
  `
46716
46813
  );
46717
46814
  } else {
46718
- output_manager_default.print(` ${import_chalk181.default.gray("Rewrite:")} ${finalDest}
46815
+ output_manager_default.print(` ${import_chalk182.default.gray("Rewrite:")} ${finalDest}
46719
46816
  `);
46720
46817
  }
46721
46818
  } else if (finalStatus) {
46722
- output_manager_default.print(` ${import_chalk181.default.gray("Status:")} ${finalStatus}
46819
+ output_manager_default.print(` ${import_chalk182.default.gray("Status:")} ${finalStatus}
46723
46820
  `);
46724
46821
  }
46725
46822
  if (Object.keys(headers).length > 0) {
46726
46823
  output_manager_default.print(
46727
- ` ${import_chalk181.default.gray("Headers:")} ${Object.keys(headers).length} header(s)
46824
+ ` ${import_chalk182.default.gray("Headers:")} ${Object.keys(headers).length} header(s)
46728
46825
  `
46729
46826
  );
46730
46827
  }
46731
46828
  if (transforms.length > 0) {
46732
46829
  output_manager_default.print(
46733
- ` ${import_chalk181.default.gray("Transforms:")} ${transforms.length} transform(s)
46830
+ ` ${import_chalk182.default.gray("Transforms:")} ${transforms.length} transform(s)
46734
46831
  `
46735
46832
  );
46736
46833
  }
46737
46834
  if (hasConditions.length > 0 || missingConditions.length > 0) {
46738
46835
  output_manager_default.print(
46739
- ` ${import_chalk181.default.gray("Conditions:")} ${hasConditions.length} has, ${missingConditions.length} missing
46836
+ ` ${import_chalk182.default.gray("Conditions:")} ${hasConditions.length} has, ${missingConditions.length} missing
46740
46837
  `
46741
46838
  );
46742
46839
  }
@@ -46751,12 +46848,12 @@ async function add10(client, argv) {
46751
46848
  }
46752
46849
  output_manager_default.print(
46753
46850
  `
46754
- ${import_chalk181.default.bold("Test your changes:")} ${import_chalk181.default.cyan(`https://${version.alias}${testPath}`)}
46851
+ ${import_chalk182.default.bold("Test your changes:")} ${import_chalk182.default.cyan(`https://${version.alias}${testPath}`)}
46755
46852
  `
46756
46853
  );
46757
46854
  }
46758
46855
  output_manager_default.print(`
46759
- ${import_chalk181.default.bold("Staging version:")} ${version.id}
46856
+ ${import_chalk182.default.bold("Staging version:")} ${version.id}
46760
46857
  `);
46761
46858
  await offerAutoPromote(
46762
46859
  client,
@@ -47012,15 +47109,15 @@ async function handleAIAdd2(client, projectId, teamId, aiPrompt, skipPrompts, pa
47012
47109
  { teamId }
47013
47110
  );
47014
47111
  output_manager_default.log(
47015
- `${import_chalk181.default.cyan("Created")} route "${route.name}" ${import_chalk181.default.gray(addStamp())}`
47112
+ `${import_chalk182.default.cyan("Created")} route "${route.name}" ${import_chalk182.default.gray(addStamp())}`
47016
47113
  );
47017
47114
  output_manager_default.print(`
47018
- ${import_chalk181.default.bold("Route:")} ${route.name}
47115
+ ${import_chalk182.default.bold("Route:")} ${route.name}
47019
47116
  `);
47020
- output_manager_default.print(` ${import_chalk181.default.gray("ID:")} ${route.id}
47117
+ output_manager_default.print(` ${import_chalk182.default.gray("ID:")} ${route.id}
47021
47118
  `);
47022
47119
  output_manager_default.print(`
47023
- ${import_chalk181.default.bold("Staging version:")} ${version.id}
47120
+ ${import_chalk182.default.bold("Staging version:")} ${version.id}
47024
47121
  `);
47025
47122
  await offerAutoPromote(
47026
47123
  client,
@@ -47079,15 +47176,15 @@ async function createFromGenerated2(client, projectId, teamId, generated, existi
47079
47176
  return 0;
47080
47177
  }
47081
47178
  output_manager_default.log(
47082
- `${import_chalk181.default.cyan("Created")} route "${route.name}" ${import_chalk181.default.gray(addStamp())}`
47179
+ `${import_chalk182.default.cyan("Created")} route "${route.name}" ${import_chalk182.default.gray(addStamp())}`
47083
47180
  );
47084
47181
  output_manager_default.print(`
47085
- ${import_chalk181.default.bold("Route:")} ${route.name}
47182
+ ${import_chalk182.default.bold("Route:")} ${route.name}
47086
47183
  `);
47087
- output_manager_default.print(` ${import_chalk181.default.gray("ID:")} ${route.id}
47184
+ output_manager_default.print(` ${import_chalk182.default.gray("ID:")} ${route.id}
47088
47185
  `);
47089
47186
  output_manager_default.print(`
47090
- ${import_chalk181.default.bold("Staging version:")} ${version.id}
47187
+ ${import_chalk182.default.bold("Staging version:")} ${version.id}
47091
47188
  `);
47092
47189
  await offerAutoPromote(
47093
47190
  client,
@@ -47213,7 +47310,7 @@ async function main27(client) {
47213
47310
  return 2;
47214
47311
  }
47215
47312
  telemetry2.trackCliSubcommandEdit(subcommandOriginal);
47216
- return (await import("./chunks/edit-VXYNQVBR.js")).default(client, args);
47313
+ return (await import("./chunks/edit-DOL2ZJPG.js")).default(client, args);
47217
47314
  case "delete":
47218
47315
  if (needHelp) {
47219
47316
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47221,7 +47318,7 @@ async function main27(client) {
47221
47318
  return 2;
47222
47319
  }
47223
47320
  telemetry2.trackCliSubcommandDelete(subcommandOriginal);
47224
- return (await import("./chunks/delete-CSL7GQUM.js")).default(client, args);
47321
+ return (await import("./chunks/delete-6EMDCXSA.js")).default(client, args);
47225
47322
  case "enable":
47226
47323
  if (needHelp) {
47227
47324
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47229,7 +47326,7 @@ async function main27(client) {
47229
47326
  return 2;
47230
47327
  }
47231
47328
  telemetry2.trackCliSubcommandEnable(subcommandOriginal);
47232
- return (await import("./chunks/enable-OWXV2G3V.js")).default(client, args);
47329
+ return (await import("./chunks/enable-PZWZIETT.js")).default(client, args);
47233
47330
  case "disable":
47234
47331
  if (needHelp) {
47235
47332
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47237,7 +47334,7 @@ async function main27(client) {
47237
47334
  return 2;
47238
47335
  }
47239
47336
  telemetry2.trackCliSubcommandDisable(subcommandOriginal);
47240
- return (await import("./chunks/disable-WRZTPAJJ.js")).default(client, args);
47337
+ return (await import("./chunks/disable-FLJ27NHG.js")).default(client, args);
47241
47338
  case "reorder":
47242
47339
  if (needHelp) {
47243
47340
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47245,7 +47342,7 @@ async function main27(client) {
47245
47342
  return 2;
47246
47343
  }
47247
47344
  telemetry2.trackCliSubcommandReorder(subcommandOriginal);
47248
- return (await import("./chunks/reorder-AN4IH7VE.js")).default(client, args);
47345
+ return (await import("./chunks/reorder-TG53BKW4.js")).default(client, args);
47249
47346
  case "export":
47250
47347
  if (needHelp) {
47251
47348
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47253,7 +47350,7 @@ async function main27(client) {
47253
47350
  return 2;
47254
47351
  }
47255
47352
  telemetry2.trackCliSubcommandExport(subcommandOriginal);
47256
- return (await import("./chunks/export-6KAIMGH6.js")).default(client, args);
47353
+ return (await import("./chunks/export-2PFHAELC.js")).default(client, args);
47257
47354
  case "publish":
47258
47355
  if (needHelp) {
47259
47356
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47261,7 +47358,7 @@ async function main27(client) {
47261
47358
  return 2;
47262
47359
  }
47263
47360
  telemetry2.trackCliSubcommandPublish(subcommandOriginal);
47264
- return (await import("./chunks/publish-6KB6TNYM.js")).default(client, args);
47361
+ return (await import("./chunks/publish-JV4J3SOA.js")).default(client, args);
47265
47362
  case "restore":
47266
47363
  if (needHelp) {
47267
47364
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47269,7 +47366,7 @@ async function main27(client) {
47269
47366
  return 2;
47270
47367
  }
47271
47368
  telemetry2.trackCliSubcommandRestore(subcommandOriginal);
47272
- return (await import("./chunks/restore-CA72EKHV.js")).default(client, args);
47369
+ return (await import("./chunks/restore-U7O4VESA.js")).default(client, args);
47273
47370
  case "discard-staging":
47274
47371
  if (needHelp) {
47275
47372
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47277,7 +47374,7 @@ async function main27(client) {
47277
47374
  return 2;
47278
47375
  }
47279
47376
  telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
47280
- return (await import("./chunks/discard-L2YVL23C.js")).default(client, args);
47377
+ return (await import("./chunks/discard-KEIII6RM.js")).default(client, args);
47281
47378
  default:
47282
47379
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG35));
47283
47380
  output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
@@ -47348,7 +47445,7 @@ async function sandbox(client) {
47348
47445
  }
47349
47446
 
47350
47447
  // src/commands/skills/index.ts
47351
- var import_chalk182 = __toESM(require_source(), 1);
47448
+ var import_chalk183 = __toESM(require_source(), 1);
47352
47449
  var import_frameworks2 = __toESM(require_frameworks(), 1);
47353
47450
  var import_fs_detectors = __toESM(require_dist3(), 1);
47354
47451
  import { access as access2, readFile as readFile7 } from "fs/promises";
@@ -47561,7 +47658,7 @@ async function autoDetect(client, cwd, asJson, yes) {
47561
47658
  "Could not detect a framework or notable dependencies in this directory."
47562
47659
  );
47563
47660
  output_manager_default.log(
47564
- `Try searching directly: ${import_chalk182.default.cyan("vercel skills <query>")}`
47661
+ `Try searching directly: ${import_chalk183.default.cyan("vercel skills <query>")}`
47565
47662
  );
47566
47663
  return 0;
47567
47664
  }
@@ -47573,7 +47670,7 @@ async function autoDetect(client, cwd, asJson, yes) {
47573
47670
  if (deps.length > 0)
47574
47671
  detectedParts.push(deps.join(", "));
47575
47672
  output_manager_default.stopSpinner();
47576
- output_manager_default.log(`Detected: ${import_chalk182.default.bold(detectedParts.join(" + "))}`);
47673
+ output_manager_default.log(`Detected: ${import_chalk183.default.bold(detectedParts.join(" + "))}`);
47577
47674
  output_manager_default.spinner("Searching for relevant skills...");
47578
47675
  const queries = [];
47579
47676
  if (framework) {
@@ -47639,7 +47736,7 @@ async function autoDetect(client, cwd, asJson, yes) {
47639
47736
  return exitCode2;
47640
47737
  const installable = displayedResults.map((s, i) => ({ ...s, installed: installedChecks[i] })).filter((s) => !s.installed);
47641
47738
  if (installable.length === 0) {
47642
- output_manager_default.log(import_chalk182.default.green("All recommended skills are already installed."));
47739
+ output_manager_default.log(import_chalk183.default.green("All recommended skills are already installed."));
47643
47740
  return 0;
47644
47741
  }
47645
47742
  let toInstall;
@@ -47654,7 +47751,7 @@ async function autoDetect(client, cwd, asJson, yes) {
47654
47751
  const selected = await client.input.checkbox({
47655
47752
  message: "Select skills to install",
47656
47753
  choices: installable.map((s) => ({
47657
- name: `${s.skillId} ${import_chalk182.default.gray(`(${s.source})`)}`,
47754
+ name: `${s.skillId} ${import_chalk183.default.gray(`(${s.source})`)}`,
47658
47755
  value: s,
47659
47756
  checked: true
47660
47757
  }))
@@ -47710,7 +47807,7 @@ async function displayResults(client, results, asJson, context, cwd) {
47710
47807
  if (results.length === 0) {
47711
47808
  output_manager_default.log("No skills found.");
47712
47809
  output_manager_default.log(
47713
- `Try searching directly: ${import_chalk182.default.cyan("vercel skills <query>")}`
47810
+ `Try searching directly: ${import_chalk183.default.cyan("vercel skills <query>")}`
47714
47811
  );
47715
47812
  return empty;
47716
47813
  }
@@ -47730,12 +47827,12 @@ async function displayResults(client, results, asJson, context, cwd) {
47730
47827
  return { exitCode: 0, results, installedChecks };
47731
47828
  }
47732
47829
  const tableData = [
47733
- ["Skill", "Installs", "Source", ""].map((h) => import_chalk182.default.bold(import_chalk182.default.cyan(h))),
47830
+ ["Skill", "Installs", "Source", ""].map((h) => import_chalk183.default.bold(import_chalk183.default.cyan(h))),
47734
47831
  ...results.map((s, i) => [
47735
47832
  s.skillId,
47736
47833
  formatInstalls(s.installs),
47737
- import_chalk182.default.gray(s.source),
47738
- installedChecks[i] ? import_chalk182.default.green("installed") : ""
47834
+ import_chalk183.default.gray(s.source),
47835
+ installedChecks[i] ? import_chalk183.default.green("installed") : ""
47739
47836
  ])
47740
47837
  ];
47741
47838
  output_manager_default.log(`
@@ -47754,16 +47851,16 @@ function runCommand(cmd2, args) {
47754
47851
 
47755
47852
  // src/commands/target/list.ts
47756
47853
  var import_ms33 = __toESM(require_ms(), 1);
47757
- var import_chalk183 = __toESM(require_source(), 1);
47854
+ var import_chalk184 = __toESM(require_source(), 1);
47758
47855
  function formatBranchMatcher(branchMatcher) {
47759
47856
  if (branchMatcher?.type === "equals") {
47760
47857
  return branchMatcher.pattern;
47761
47858
  } else if (branchMatcher?.type === "startsWith") {
47762
- return `${branchMatcher.pattern}${import_chalk183.default.dim("*")}`;
47859
+ return `${branchMatcher.pattern}${import_chalk184.default.dim("*")}`;
47763
47860
  } else if (branchMatcher?.type === "endsWith") {
47764
- return `${import_chalk183.default.dim("*")}${branchMatcher.pattern}`;
47861
+ return `${import_chalk184.default.dim("*")}${branchMatcher.pattern}`;
47765
47862
  }
47766
- return import_chalk183.default.dim("No branch configuration");
47863
+ return import_chalk184.default.dim("No branch configuration");
47767
47864
  }
47768
47865
  var TYPE_MAP = {
47769
47866
  production: "Production",
@@ -47772,8 +47869,8 @@ var TYPE_MAP = {
47772
47869
  };
47773
47870
  var BRANCH_TRACKING_MAP = {
47774
47871
  production: (project) => project.link?.productionBranch ?? "main",
47775
- preview: (_, env) => env.slug === "preview" ? import_chalk183.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
47776
- development: () => import_chalk183.default.dim("Accessible via CLI")
47872
+ preview: (_, env) => env.slug === "preview" ? import_chalk184.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
47873
+ development: () => import_chalk184.default.dim("Accessible via CLI")
47777
47874
  };
47778
47875
  async function list13(client, argv) {
47779
47876
  const { cwd } = client;
@@ -47842,12 +47939,12 @@ async function list13(client, argv) {
47842
47939
  `);
47843
47940
  } else {
47844
47941
  output_manager_default.log(
47845
- `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk183.default.gray(`[${elapsed2}]`)}`
47942
+ `${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk184.default.gray(`[${elapsed2}]`)}`
47846
47943
  );
47847
47944
  const tablePrint = table(
47848
47945
  [
47849
47946
  ["Target Name", "Branch Tracking", "Type", "Updated"].map(
47850
- (header) => import_chalk183.default.bold(import_chalk183.default.cyan(header))
47947
+ (header) => import_chalk184.default.bold(import_chalk184.default.cyan(header))
47851
47948
  ),
47852
47949
  ...result.flatMap((target) => {
47853
47950
  return [
@@ -47855,7 +47952,7 @@ async function list13(client, argv) {
47855
47952
  formatEnvironment(link.org.slug, link.project.name, target),
47856
47953
  BRANCH_TRACKING_MAP[target.type](link.project, target),
47857
47954
  TYPE_MAP[target.type],
47858
- import_chalk183.default.gray(
47955
+ import_chalk184.default.gray(
47859
47956
  target.updatedAt > 0 ? (0, import_ms33.default)(Date.now() - target.updatedAt) : "-"
47860
47957
  )
47861
47958
  ]
@@ -47967,7 +48064,7 @@ async function main28(client) {
47967
48064
  }
47968
48065
 
47969
48066
  // src/commands/teams/list.ts
47970
- var import_chalk184 = __toESM(require_source(), 1);
48067
+ var import_chalk185 = __toESM(require_source(), 1);
47971
48068
 
47972
48069
  // src/util/telemetry/commands/teams/list.ts
47973
48070
  var TeamsListTelemetryClient = class extends TelemetryClient {
@@ -48105,7 +48202,7 @@ async function list14(client, argv) {
48105
48202
  client.stdout.write("\n");
48106
48203
  const teamTable = table(
48107
48204
  [
48108
- ["id", "Team name"].map((str) => (0, import_chalk184.gray)(str)),
48205
+ ["id", "Team name"].map((str) => (0, import_chalk185.gray)(str)),
48109
48206
  ...teamList.map((team) => [team.value, team.name])
48110
48207
  ],
48111
48208
  { hsep: 5 }
@@ -48133,10 +48230,10 @@ async function list14(client, argv) {
48133
48230
  }
48134
48231
 
48135
48232
  // src/commands/teams/add.ts
48136
- var import_chalk186 = __toESM(require_source(), 1);
48233
+ var import_chalk187 = __toESM(require_source(), 1);
48137
48234
 
48138
48235
  // src/commands/teams/invite.ts
48139
- var import_chalk185 = __toESM(require_source(), 1);
48236
+ var import_chalk186 = __toESM(require_source(), 1);
48140
48237
 
48141
48238
  // src/util/input/regexes.ts
48142
48239
  var email = /.+@.+\..+$/;
@@ -48279,7 +48376,7 @@ Please select a team scope using ${getCommandName(
48279
48376
  return 1;
48280
48377
  }
48281
48378
  output_manager_default.log(
48282
- introMsg || `Inviting team members to ${import_chalk185.default.bold(currentTeam.name)}`
48379
+ introMsg || `Inviting team members to ${import_chalk186.default.bold(currentTeam.name)}`
48283
48380
  );
48284
48381
  telemetry2.trackCliArgumentEmail(emails);
48285
48382
  if (emails.length > 0) {
@@ -48322,10 +48419,10 @@ Please select a team scope using ${getCommandName(
48322
48419
  throw err;
48323
48420
  }
48324
48421
  output_manager_default.log(
48325
- `${import_chalk185.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
48422
+ `${import_chalk186.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
48326
48423
  );
48327
48424
  } else {
48328
- output_manager_default.log(`${import_chalk185.default.red(`\u2716 ${email3}`)} ${import_chalk185.default.gray("[invalid]")}`);
48425
+ output_manager_default.log(`${import_chalk186.default.red(`\u2716 ${email3}`)} ${import_chalk186.default.gray("[invalid]")}`);
48329
48426
  }
48330
48427
  }
48331
48428
  return 0;
@@ -48358,15 +48455,15 @@ Please select a team scope using ${getCommandName(
48358
48455
  );
48359
48456
  email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
48360
48457
  emails.push(email2);
48361
- output_manager_default.log(`${import_chalk185.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
48458
+ output_manager_default.log(`${import_chalk186.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
48362
48459
  if (hasError) {
48363
48460
  hasError = false;
48364
48461
  process.stderr.write(eraseLines(emails.length + 2));
48365
48462
  output_manager_default.log(
48366
- introMsg || `Inviting team members to ${import_chalk185.default.bold(currentTeam.name)}`
48463
+ introMsg || `Inviting team members to ${import_chalk186.default.bold(currentTeam.name)}`
48367
48464
  );
48368
48465
  for (const email3 of emails) {
48369
- output_manager_default.log(`${import_chalk185.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
48466
+ output_manager_default.log(`${import_chalk186.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
48370
48467
  }
48371
48468
  }
48372
48469
  } catch (err) {
@@ -48375,7 +48472,7 @@ Please select a team scope using ${getCommandName(
48375
48472
  output_manager_default.error((0, import_error_utils18.errorToString)(err));
48376
48473
  hasError = true;
48377
48474
  for (const email3 of emails) {
48378
- output_manager_default.log(`${import_chalk185.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
48475
+ output_manager_default.log(`${import_chalk186.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
48379
48476
  }
48380
48477
  }
48381
48478
  }
@@ -48388,7 +48485,7 @@ Please select a team scope using ${getCommandName(
48388
48485
  } else {
48389
48486
  output_manager_default.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
48390
48487
  for (const email3 of emails) {
48391
- output_manager_default.log(`${import_chalk185.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
48488
+ output_manager_default.log(`${import_chalk186.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
48392
48489
  }
48393
48490
  }
48394
48491
  return 0;
@@ -48428,7 +48525,7 @@ async function patchTeam(client, teamId, payload) {
48428
48525
  var import_error_utils19 = __toESM(require_dist(), 1);
48429
48526
  var validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
48430
48527
  var validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
48431
- var teamUrlPrefix = "Team URL".padEnd(14) + import_chalk186.default.gray("vercel.com/");
48528
+ var teamUrlPrefix = "Team URL".padEnd(14) + import_chalk187.default.gray("vercel.com/");
48432
48529
  var teamNamePrefix = "Team Name".padEnd(14);
48433
48530
  var CREATE_TEAM_TIMEOUT_MS = 3e4;
48434
48531
  var TIMEOUT_HINT = "The request took too long and was cancelled. The team URL may already be taken, or the server may be slow. Try a different slug (e.g. your-company-name) or try again later. Run with `--debug` to see where the request is getting stuck.";
@@ -48479,7 +48576,7 @@ function formatCreateTeamError(err, slug) {
48479
48576
  }
48480
48577
  if (isAPIError(err) && err.status === 400) {
48481
48578
  const msg = (err.serverMessage || err.message || "").toLowerCase();
48482
- const slugHint = msg.includes("slug") || msg.includes("cannot be used") ? `That team URL (${import_chalk186.default.cyan(`vercel.com/${slug}`)}) is not available. It may already be taken. ` : "";
48579
+ const slugHint = msg.includes("slug") || msg.includes("cannot be used") ? `That team URL (${import_chalk187.default.cyan(`vercel.com/${slug}`)}) is not available. It may already be taken. ` : "";
48483
48580
  const paymentHint = msg.includes("payment") ? "A payment method is required to create a team. " : "";
48484
48581
  const prefix = slugHint || paymentHint;
48485
48582
  return prefix ? `${prefix}${prefix.trim() ? "\n" : ""}${err.serverMessage || err.message}` : err.serverMessage || err.message;
@@ -48674,7 +48771,7 @@ async function add11(client, argv = []) {
48674
48771
  client.config.currentTeam = team2.id;
48675
48772
  writeToConfigFile(client.config);
48676
48773
  output_manager_default.success(
48677
- `Team ${import_chalk186.default.bold(team2.name)} (${import_chalk186.default.cyan(`vercel.com/${slug2}`)}) created.`
48774
+ `Team ${import_chalk187.default.bold(team2.name)} (${import_chalk187.default.cyan(`vercel.com/${slug2}`)}) created.`
48678
48775
  );
48679
48776
  return 0;
48680
48777
  }
@@ -48682,7 +48779,7 @@ async function add11(client, argv = []) {
48682
48779
  let team;
48683
48780
  let elapsed2;
48684
48781
  output_manager_default.log(
48685
- `Pick a team identifier for its URL (e.g.: ${import_chalk186.default.cyan(
48782
+ `Pick a team identifier for its URL (e.g.: ${import_chalk187.default.cyan(
48686
48783
  "`vercel.com/acme`"
48687
48784
  )})`
48688
48785
  );
@@ -48714,7 +48811,7 @@ async function add11(client, argv = []) {
48714
48811
  output_manager_default.stopSpinner();
48715
48812
  process.stdout.write(eraseLines(2));
48716
48813
  output_manager_default.success(`Team created ${elapsed2()}`);
48717
- output_manager_default.log(`${import_chalk186.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
48814
+ output_manager_default.log(`${import_chalk187.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
48718
48815
  `);
48719
48816
  output_manager_default.log("Pick a display name for your team");
48720
48817
  let name = nameFlag?.trim();
@@ -48738,7 +48835,7 @@ async function add11(client, argv = []) {
48738
48835
  process.stdout.write(eraseLines(2));
48739
48836
  team = Object.assign(team, res);
48740
48837
  output_manager_default.success(`Team name saved ${elapsed2()}`);
48741
- output_manager_default.log(`${import_chalk186.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
48838
+ output_manager_default.log(`${import_chalk187.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
48742
48839
  `);
48743
48840
  output_manager_default.spinner("Saving");
48744
48841
  client.config.currentTeam = team.id;
@@ -48754,7 +48851,7 @@ async function add11(client, argv = []) {
48754
48851
  }
48755
48852
 
48756
48853
  // src/commands/teams/switch.ts
48757
- var import_chalk187 = __toESM(require_source(), 1);
48854
+ var import_chalk188 = __toESM(require_source(), 1);
48758
48855
 
48759
48856
  // src/util/telemetry/commands/teams/switch.ts
48760
48857
  var TeamsSwitchTelemetryClient = class extends TelemetryClient {
@@ -48896,7 +48993,7 @@ async function change(client, argv) {
48896
48993
  let title4 = `${team.name} (${team.slug})`;
48897
48994
  const selected = team.id === currentTeam?.id;
48898
48995
  if (selected) {
48899
- title4 += ` ${import_chalk187.default.bold("(current)")}`;
48996
+ title4 += ` ${import_chalk188.default.bold("(current)")}`;
48900
48997
  }
48901
48998
  if (team.limited) {
48902
48999
  title4 += ` ${emoji("locked")}`;
@@ -48908,7 +49005,7 @@ async function change(client, argv) {
48908
49005
  selected
48909
49006
  };
48910
49007
  });
48911
- let suffix = personalScopeSelected ? ` ${import_chalk187.default.bold("(current)")}` : "";
49008
+ let suffix = personalScopeSelected ? ` ${import_chalk188.default.bold("(current)")}` : "";
48912
49009
  if (user.limited) {
48913
49010
  suffix += ` ${emoji("locked")}`;
48914
49011
  }
@@ -48998,7 +49095,7 @@ async function change(client, argv) {
48998
49095
  }
48999
49096
  updateCurrentTeam(config);
49000
49097
  output_manager_default.success(
49001
- `Your account (${import_chalk187.default.bold(user.username)}) is now active!`
49098
+ `Your account (${import_chalk188.default.bold(user.username)}) is now active!`
49002
49099
  );
49003
49100
  await warnIfStaleLinkExists(client, user.id);
49004
49101
  return 0;
@@ -49022,7 +49119,7 @@ async function change(client, argv) {
49022
49119
  );
49023
49120
  }
49024
49121
  output_manager_default.error(
49025
- `You do not have permission to access scope ${import_chalk187.default.bold(desiredSlug)}.`
49122
+ `You do not have permission to access scope ${import_chalk188.default.bold(desiredSlug)}.`
49026
49123
  );
49027
49124
  return 1;
49028
49125
  }
@@ -49040,7 +49137,7 @@ async function change(client, argv) {
49040
49137
  }
49041
49138
  updateCurrentTeam(config, newTeam);
49042
49139
  output_manager_default.success(
49043
- `The team ${import_chalk187.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
49140
+ `The team ${import_chalk188.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
49044
49141
  );
49045
49142
  await warnIfStaleLinkExists(client, newTeam.id);
49046
49143
  return 0;
@@ -49237,7 +49334,7 @@ async function request(client, argv) {
49237
49334
  }
49238
49335
 
49239
49336
  // src/commands/teams/members.ts
49240
- var import_chalk188 = __toESM(require_source(), 1);
49337
+ var import_chalk189 = __toESM(require_source(), 1);
49241
49338
  async function members2(client, argv) {
49242
49339
  let parsedArgs;
49243
49340
  const flagsSpecification = getFlagsSpecification(membersSubcommand2.options);
@@ -49293,7 +49390,7 @@ async function members2(client, argv) {
49293
49390
  return 0;
49294
49391
  }
49295
49392
  const rows = [
49296
- ["uid", "Identity", "Role"].map((str) => (0, import_chalk188.gray)(str)),
49393
+ ["uid", "Identity", "Role"].map((str) => (0, import_chalk189.gray)(str)),
49297
49394
  ...members3.map((member) => [
49298
49395
  member.uid,
49299
49396
  member.username || member.email || "",
@@ -49311,7 +49408,7 @@ async function members2(client, argv) {
49311
49408
  }
49312
49409
 
49313
49410
  // src/commands/teams/sso.ts
49314
- var import_chalk189 = __toESM(require_source(), 1);
49411
+ var import_chalk190 = __toESM(require_source(), 1);
49315
49412
  async function sso(client, argv) {
49316
49413
  let parsedArgs;
49317
49414
  const flagsSpecification = getFlagsSpecification(ssoSubcommand.options);
@@ -49346,14 +49443,14 @@ async function sso(client, argv) {
49346
49443
  `);
49347
49444
  return 0;
49348
49445
  }
49349
- output_manager_default.log(`${import_chalk189.default.bold("Team")} ${full.name} (${import_chalk189.default.cyan(full.slug)})`);
49446
+ output_manager_default.log(`${import_chalk190.default.bold("Team")} ${full.name} (${import_chalk190.default.cyan(full.slug)})`);
49350
49447
  if (full.saml) {
49351
49448
  output_manager_default.log(
49352
- `${import_chalk189.default.cyan("SAML enforced:")} ${String(full.saml.enforced)}`
49449
+ `${import_chalk190.default.cyan("SAML enforced:")} ${String(full.saml.enforced)}`
49353
49450
  );
49354
49451
  if (full.saml.connection?.state) {
49355
49452
  output_manager_default.log(
49356
- `${import_chalk189.default.cyan("Connection state:")} ${full.saml.connection.state}`
49453
+ `${import_chalk190.default.cyan("Connection state:")} ${full.saml.connection.state}`
49357
49454
  );
49358
49455
  }
49359
49456
  } else {
@@ -49569,7 +49666,7 @@ async function teams(client) {
49569
49666
  }
49570
49667
 
49571
49668
  // src/commands/tokens/ls.ts
49572
- var import_chalk190 = __toESM(require_source(), 1);
49669
+ var import_chalk191 = __toESM(require_source(), 1);
49573
49670
  async function ls8(client, argv) {
49574
49671
  let parsedArgs;
49575
49672
  const flagsSpecification = getFlagsSpecification(listSubcommand17.options);
@@ -49610,7 +49707,7 @@ async function ls8(client, argv) {
49610
49707
  return 0;
49611
49708
  }
49612
49709
  const rows = [
49613
- ["id", "name", "type", "active"].map((h) => (0, import_chalk190.gray)(h)),
49710
+ ["id", "name", "type", "active"].map((h) => (0, import_chalk191.gray)(h)),
49614
49711
  ...tokens.map((t) => [
49615
49712
  t.id ?? "",
49616
49713
  t.name ?? "",
@@ -49968,16 +50065,16 @@ async function main29(client) {
49968
50065
  }
49969
50066
 
49970
50067
  // src/commands/telemetry/status.ts
49971
- var import_chalk191 = __toESM(require_source(), 1);
50068
+ var import_chalk192 = __toESM(require_source(), 1);
49972
50069
  async function status2(client) {
49973
50070
  const enabled = client.config.telemetry?.enabled !== false;
49974
- const status3 = enabled ? import_chalk191.default.green("Enabled") : import_chalk191.default.red("Disabled");
50071
+ const status3 = enabled ? import_chalk192.default.green("Enabled") : import_chalk192.default.red("Disabled");
49975
50072
  output_manager_default.print("\n");
49976
- output_manager_default.log(`${import_chalk191.default.bold("Telemetry status")}: ${status3}
50073
+ output_manager_default.log(`${import_chalk192.default.bold("Telemetry status")}: ${status3}
49977
50074
  `);
49978
50075
  const learnMoreMessage = `
49979
50076
 
49980
- Learn more: ${import_chalk191.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
50077
+ Learn more: ${import_chalk192.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
49981
50078
  if (enabled) {
49982
50079
  output_manager_default.log(`You have opted in to Vercel CLI telemetry${learnMoreMessage}`);
49983
50080
  } else {
@@ -50072,7 +50169,7 @@ var TelemetryTelemetryClient = class extends TelemetryClient {
50072
50169
  };
50073
50170
 
50074
50171
  // src/commands/telemetry/index.ts
50075
- var import_chalk192 = __toESM(require_source(), 1);
50172
+ var import_chalk193 = __toESM(require_source(), 1);
50076
50173
  var COMMAND_CONFIG39 = {
50077
50174
  status: getCommandAliases(statusSubcommand4),
50078
50175
  enable: getCommandAliases(enableSubcommand4),
@@ -50140,7 +50237,7 @@ async function telemetry(client) {
50140
50237
  default: {
50141
50238
  const errorMessage = parsedArguments.args.length !== 2 ? "Invalid number of arguments" : "Invalid subcommand";
50142
50239
  output_manager_default.print(
50143
- `${import_chalk192.default.red("Error")}: ${errorMessage}. See help instructions for usage:
50240
+ `${import_chalk193.default.red("Error")}: ${errorMessage}. See help instructions for usage:
50144
50241
  `
50145
50242
  );
50146
50243
  output_manager_default.print(help(telemetryCommand, { columns: client.stderr.columns }));
@@ -50963,7 +51060,7 @@ async function upgrade(client) {
50963
51060
  }
50964
51061
 
50965
51062
  // src/commands/usage/index.ts
50966
- var import_chalk196 = __toESM(require_source(), 1);
51063
+ var import_chalk197 = __toESM(require_source(), 1);
50967
51064
  var import_jsonlines = __toESM(require_jsonlines(), 1);
50968
51065
 
50969
51066
  // src/util/telemetry/commands/usage/index.ts
@@ -51117,19 +51214,19 @@ function isValidGroupByDimension(value) {
51117
51214
  }
51118
51215
 
51119
51216
  // src/commands/usage/output-aggregated.ts
51120
- var import_chalk193 = __toESM(require_source(), 1);
51217
+ var import_chalk194 = __toESM(require_source(), 1);
51121
51218
  function outputAggregated({ data, startTime }) {
51122
51219
  const { print, log } = output_manager_default;
51123
51220
  log(
51124
- `Usage for ${import_chalk193.default.bold(data.contextName)} ${elapsed(Date.now() - startTime)}`
51221
+ `Usage for ${import_chalk194.default.bold(data.contextName)} ${elapsed(Date.now() - startTime)}`
51125
51222
  );
51126
51223
  log("");
51127
51224
  const periodSuffix = data.usingDefaults ? " (current month)" : "";
51128
51225
  log(
51129
- `${import_chalk193.default.gray("Period:")} ${data.fromDisplay} to ${data.toDisplay}${periodSuffix}`
51226
+ `${import_chalk194.default.gray("Period:")} ${data.fromDisplay} to ${data.toDisplay}${periodSuffix}`
51130
51227
  );
51131
- log(`${import_chalk193.default.gray("Charges processed:")} ${data.chargeCount}`);
51132
- log(`${import_chalk193.default.gray("Pricing unit:")} ${data.pricingUnit}`);
51228
+ log(`${import_chalk194.default.gray("Charges processed:")} ${data.chargeCount}`);
51229
+ log(`${import_chalk194.default.gray("Pricing unit:")} ${data.pricingUnit}`);
51133
51230
  log("");
51134
51231
  const sortedServices = [...data.services.entries()].sort(
51135
51232
  (a, b) => b[1].billedCost - a[1].billedCost
@@ -51147,15 +51244,15 @@ function outputAggregated({ data, startTime }) {
51147
51244
  formatCurrency(svc.billedCost)
51148
51245
  ]);
51149
51246
  rows.push([
51150
- import_chalk193.default.bold("Total"),
51151
- import_chalk193.default.bold(
51247
+ import_chalk194.default.bold("Total"),
51248
+ import_chalk194.default.bold(
51152
51249
  formatQuantity(data.grandTotals.pricingQuantity, data.pricingUnit)
51153
51250
  ),
51154
- import_chalk193.default.bold(formatCurrency(data.grandTotals.effectiveCost)),
51155
- import_chalk193.default.bold(formatCurrency(data.grandTotals.billedCost))
51251
+ import_chalk194.default.bold(formatCurrency(data.grandTotals.effectiveCost)),
51252
+ import_chalk194.default.bold(formatCurrency(data.grandTotals.billedCost))
51156
51253
  ]);
51157
51254
  const tablePrint = table(
51158
- [headers.map((h) => import_chalk193.default.bold(import_chalk193.default.cyan(h))), ...rows],
51255
+ [headers.map((h) => import_chalk194.default.bold(import_chalk194.default.cyan(h))), ...rows],
51159
51256
  { hsep: 4, align: ["l", "r", "r", "r"] }
51160
51257
  ).replace(/^/gm, " ");
51161
51258
  print(`
@@ -51163,12 +51260,12 @@ ${tablePrint}
51163
51260
 
51164
51261
  `);
51165
51262
  log(
51166
- `${import_chalk193.default.gray("Amount due:")} ${import_chalk193.default.bold(formatCurrency(data.grandTotals.billedCost))}`
51263
+ `${import_chalk194.default.gray("Amount due:")} ${import_chalk194.default.bold(formatCurrency(data.grandTotals.billedCost))}`
51167
51264
  );
51168
51265
  }
51169
51266
 
51170
51267
  // src/commands/usage/output-breakdown.ts
51171
- var import_chalk194 = __toESM(require_source(), 1);
51268
+ var import_chalk195 = __toESM(require_source(), 1);
51172
51269
  function getPeriodLabel(period) {
51173
51270
  switch (period) {
51174
51271
  case "daily":
@@ -51189,15 +51286,15 @@ function outputBreakdown({
51189
51286
  const { print, log } = output_manager_default;
51190
51287
  const periodLabel = getPeriodLabel(breakdownPeriod);
51191
51288
  log(
51192
- `${periodLabel} Usage for ${import_chalk194.default.bold(data.contextName)} ${elapsed(Date.now() - startTime)}`
51289
+ `${periodLabel} Usage for ${import_chalk195.default.bold(data.contextName)} ${elapsed(Date.now() - startTime)}`
51193
51290
  );
51194
51291
  log("");
51195
51292
  const periodSuffix = data.usingDefaults ? " (current month)" : "";
51196
51293
  log(
51197
- `${import_chalk194.default.gray("Period:")} ${data.fromDisplay} to ${data.toDisplay}${periodSuffix}`
51294
+ `${import_chalk195.default.gray("Period:")} ${data.fromDisplay} to ${data.toDisplay}${periodSuffix}`
51198
51295
  );
51199
- log(`${import_chalk194.default.gray("Charges processed:")} ${data.chargeCount}`);
51200
- log(`${import_chalk194.default.gray("Pricing unit:")} ${data.pricingUnit}`);
51296
+ log(`${import_chalk195.default.gray("Charges processed:")} ${data.chargeCount}`);
51297
+ log(`${import_chalk195.default.gray("Pricing unit:")} ${data.pricingUnit}`);
51201
51298
  log("");
51202
51299
  const sortedServices = [...data.services.entries()].sort(
51203
51300
  (a, b) => b[1].billedCost - a[1].billedCost
@@ -51214,7 +51311,7 @@ function outputBreakdown({
51214
51311
  (a, b) => b[1].billedCost - a[1].billedCost
51215
51312
  );
51216
51313
  log(
51217
- `${import_chalk194.default.bold(import_chalk194.default.cyan(periodKey))} (Total: ${formatQuantity(periodData.totalPricingQuantity, data.pricingUnit)}, ${formatCurrency(periodData.totalBilledCost)})`
51314
+ `${import_chalk195.default.bold(import_chalk195.default.cyan(periodKey))} (Total: ${formatQuantity(periodData.totalPricingQuantity, data.pricingUnit)}, ${formatCurrency(periodData.totalBilledCost)})`
51218
51315
  );
51219
51316
  const headers = ["Service", quantityHeader, "Billed Cost"];
51220
51317
  const rows = sortedPeriodServices.map(([name, svc]) => [
@@ -51223,7 +51320,7 @@ function outputBreakdown({
51223
51320
  formatCurrency(svc.billedCost)
51224
51321
  ]);
51225
51322
  const tablePrint = table(
51226
- [headers.map((h) => import_chalk194.default.bold(import_chalk194.default.gray(h))), ...rows],
51323
+ [headers.map((h) => import_chalk195.default.bold(import_chalk195.default.gray(h))), ...rows],
51227
51324
  { hsep: 4, align: ["l", "r", "r"] }
51228
51325
  ).replace(/^/gm, " ");
51229
51326
  print(`${tablePrint}
@@ -51232,7 +51329,7 @@ function outputBreakdown({
51232
51329
  }
51233
51330
 
51234
51331
  // src/commands/usage/output-group-by.ts
51235
- var import_chalk195 = __toESM(require_source(), 1);
51332
+ var import_chalk196 = __toESM(require_source(), 1);
51236
51333
  function getDimensionLabel(dimension) {
51237
51334
  switch (dimension) {
51238
51335
  case "project":
@@ -51251,15 +51348,15 @@ function outputGroupBy({
51251
51348
  const { print, log } = output_manager_default;
51252
51349
  const dimensionLabel = getDimensionLabel(groupByDimension);
51253
51350
  log(
51254
- `Usage by ${dimensionLabel} for ${import_chalk195.default.bold(data.contextName)} ${elapsed(Date.now() - startTime)}`
51351
+ `Usage by ${dimensionLabel} for ${import_chalk196.default.bold(data.contextName)} ${elapsed(Date.now() - startTime)}`
51255
51352
  );
51256
51353
  log("");
51257
51354
  const periodSuffix = data.usingDefaults ? " (current month)" : "";
51258
51355
  log(
51259
- `${import_chalk195.default.gray("Period:")} ${data.fromDisplay} to ${data.toDisplay}${periodSuffix}`
51356
+ `${import_chalk196.default.gray("Period:")} ${data.fromDisplay} to ${data.toDisplay}${periodSuffix}`
51260
51357
  );
51261
- log(`${import_chalk195.default.gray("Charges processed:")} ${data.chargeCount}`);
51262
- log(`${import_chalk195.default.gray("Pricing unit:")} ${data.pricingUnit}`);
51358
+ log(`${import_chalk196.default.gray("Charges processed:")} ${data.chargeCount}`);
51359
+ log(`${import_chalk196.default.gray("Pricing unit:")} ${data.pricingUnit}`);
51263
51360
  log("");
51264
51361
  const sortedGroups = [...data.groupByUsage.entries()].sort(
51265
51362
  (a, b) => b[1].totalBilledCost - a[1].totalBilledCost
@@ -51271,7 +51368,7 @@ function outputGroupBy({
51271
51368
  const quantityHeader = data.pricingUnit === "USD" ? "Usage (USD)" : data.pricingUnit;
51272
51369
  for (const [groupName, groupData] of sortedGroups) {
51273
51370
  log(
51274
- `${import_chalk195.default.bold(import_chalk195.default.cyan(groupName))} (Total: ${formatQuantity(groupData.totalPricingQuantity, data.pricingUnit)}, ${formatCurrency(groupData.totalBilledCost)})`
51371
+ `${import_chalk196.default.bold(import_chalk196.default.cyan(groupName))} (Total: ${formatQuantity(groupData.totalPricingQuantity, data.pricingUnit)}, ${formatCurrency(groupData.totalBilledCost)})`
51275
51372
  );
51276
51373
  const sortedServices = [...groupData.services.entries()].sort(
51277
51374
  (a, b) => b[1].billedCost - a[1].billedCost
@@ -51283,7 +51380,7 @@ function outputGroupBy({
51283
51380
  formatCurrency(svc.billedCost)
51284
51381
  ]);
51285
51382
  const tablePrint = table(
51286
- [headers.map((h) => import_chalk195.default.bold(import_chalk195.default.gray(h))), ...rows],
51383
+ [headers.map((h) => import_chalk196.default.bold(import_chalk196.default.gray(h))), ...rows],
51287
51384
  { hsep: 4, align: ["l", "r", "r"] }
51288
51385
  ).replace(/^/gm, " ");
51289
51386
  print(`${tablePrint}
@@ -51291,7 +51388,7 @@ function outputGroupBy({
51291
51388
  }
51292
51389
  log("");
51293
51390
  log(
51294
- `${import_chalk195.default.gray("Amount due:")} ${import_chalk195.default.bold(formatCurrency(data.grandTotals.billedCost))}`
51391
+ `${import_chalk196.default.gray("Amount due:")} ${import_chalk196.default.bold(formatCurrency(data.grandTotals.billedCost))}`
51295
51392
  );
51296
51393
  }
51297
51394
 
@@ -51487,7 +51584,7 @@ async function usage(client) {
51487
51584
  }
51488
51585
  const start = Date.now();
51489
51586
  if (!asJson) {
51490
- spinner(`Fetching usage data for ${import_chalk196.default.bold(contextName)}`);
51587
+ spinner(`Fetching usage data for ${import_chalk197.default.bold(contextName)}`);
51491
51588
  }
51492
51589
  debug(`Fetching charges from ${fromDate} to ${toDate}`);
51493
51590
  const query = new URLSearchParams({
@@ -51673,7 +51770,7 @@ async function processCharges(response, breakdownPeriod, groupByDimension, conte
51673
51770
 
51674
51771
  // src/commands/webhooks/ls.ts
51675
51772
  var import_ms34 = __toESM(require_ms(), 1);
51676
- var import_chalk197 = __toESM(require_source(), 1);
51773
+ var import_chalk198 = __toESM(require_source(), 1);
51677
51774
  var import_pluralize13 = __toESM(require_pluralize(), 1);
51678
51775
 
51679
51776
  // src/util/webhooks/get-webhooks.ts
@@ -51732,7 +51829,7 @@ async function ls9(client, argv) {
51732
51829
  const { contextName } = await getScope(client);
51733
51830
  const lsStamp = stamp_default();
51734
51831
  if (!client.nonInteractive) {
51735
- output_manager_default.spinner(`Fetching Webhooks under ${import_chalk197.default.bold(contextName)}`);
51832
+ output_manager_default.spinner(`Fetching Webhooks under ${import_chalk198.default.bold(contextName)}`);
51736
51833
  }
51737
51834
  const { webhooks } = await getWebhooks(client);
51738
51835
  if (asJson) {
@@ -51760,9 +51857,9 @@ async function ls9(client, argv) {
51760
51857
  `);
51761
51858
  } else {
51762
51859
  output_manager_default.log(
51763
- `${(0, import_pluralize13.default)("Webhook", webhooks.length, true)} found under ${import_chalk197.default.bold(
51860
+ `${(0, import_pluralize13.default)("Webhook", webhooks.length, true)} found under ${import_chalk198.default.bold(
51764
51861
  contextName
51765
- )} ${import_chalk197.default.gray(lsStamp())}`
51862
+ )} ${import_chalk198.default.gray(lsStamp())}`
51766
51863
  );
51767
51864
  if (webhooks.length > 0) {
51768
51865
  output_manager_default.print(
@@ -51778,7 +51875,7 @@ function formatWebhooksTable(webhooks) {
51778
51875
  const rows = webhooks.map((webhook) => {
51779
51876
  const age = webhook.createdAt ? (0, import_ms34.default)(current - webhook.createdAt) : "-";
51780
51877
  const eventsDisplay = webhook.events.length > 2 ? `${webhook.events.slice(0, 2).join(", ")} +${webhook.events.length - 2}` : webhook.events.join(", ");
51781
- return [webhook.id, webhook.url, eventsDisplay, import_chalk197.default.gray(age)];
51878
+ return [webhook.id, webhook.url, eventsDisplay, import_chalk198.default.gray(age)];
51782
51879
  });
51783
51880
  return formatTable(
51784
51881
  ["ID", "URL", "Events", "Age"],
@@ -51788,7 +51885,7 @@ function formatWebhooksTable(webhooks) {
51788
51885
  }
51789
51886
 
51790
51887
  // src/commands/webhooks/get.ts
51791
- var import_chalk198 = __toESM(require_source(), 1);
51888
+ var import_chalk199 = __toESM(require_source(), 1);
51792
51889
 
51793
51890
  // src/util/webhooks/get-webhook.ts
51794
51891
  async function getWebhook(client, webhookId) {
@@ -51864,7 +51961,7 @@ async function get4(client, argv) {
51864
51961
  const asJson = formatResult.jsonOutput || client.nonInteractive;
51865
51962
  if (args.length !== 1) {
51866
51963
  output_manager_default.error(
51867
- `Invalid number of arguments. Usage: ${import_chalk198.default.cyan(
51964
+ `Invalid number of arguments. Usage: ${import_chalk199.default.cyan(
51868
51965
  `${getCommandName("webhooks get <id>")}`
51869
51966
  )}`
51870
51967
  );
@@ -51874,7 +51971,7 @@ async function get4(client, argv) {
51874
51971
  const { contextName } = await getScope(client);
51875
51972
  if (!client.nonInteractive) {
51876
51973
  output_manager_default.spinner(
51877
- `Fetching Webhook ${webhookId} under ${import_chalk198.default.bold(contextName)}`
51974
+ `Fetching Webhook ${webhookId} under ${import_chalk199.default.bold(contextName)}`
51878
51975
  );
51879
51976
  }
51880
51977
  let webhook;
@@ -51918,33 +52015,33 @@ async function get4(client, argv) {
51918
52015
  `);
51919
52016
  } else {
51920
52017
  output_manager_default.log(
51921
- `Webhook ${webhookId} found under ${import_chalk198.default.bold(contextName)} ${import_chalk198.default.gray(
52018
+ `Webhook ${webhookId} found under ${import_chalk199.default.bold(contextName)} ${import_chalk199.default.gray(
51922
52019
  getStamp()
51923
52020
  )}`
51924
52021
  );
51925
52022
  output_manager_default.print("\n");
51926
- output_manager_default.print(import_chalk198.default.bold(" General\n\n"));
51927
- output_manager_default.print(` ${import_chalk198.default.cyan("ID")} ${webhook.id}
52023
+ output_manager_default.print(import_chalk199.default.bold(" General\n\n"));
52024
+ output_manager_default.print(` ${import_chalk199.default.cyan("ID")} ${webhook.id}
51928
52025
  `);
51929
- output_manager_default.print(` ${import_chalk198.default.cyan("URL")} ${webhook.url}
52026
+ output_manager_default.print(` ${import_chalk199.default.cyan("URL")} ${webhook.url}
51930
52027
  `);
51931
52028
  output_manager_default.print(
51932
- ` ${import_chalk198.default.cyan("Created At")} ${formatDate(webhook.createdAt)}
52029
+ ` ${import_chalk199.default.cyan("Created At")} ${formatDate(webhook.createdAt)}
51933
52030
  `
51934
52031
  );
51935
52032
  output_manager_default.print(
51936
- ` ${import_chalk198.default.cyan("Updated At")} ${formatDate(webhook.updatedAt)}
52033
+ ` ${import_chalk199.default.cyan("Updated At")} ${formatDate(webhook.updatedAt)}
51937
52034
  `
51938
52035
  );
51939
52036
  output_manager_default.print("\n");
51940
- output_manager_default.print(import_chalk198.default.bold(" Events\n\n"));
52037
+ output_manager_default.print(import_chalk199.default.bold(" Events\n\n"));
51941
52038
  for (const event of webhook.events) {
51942
52039
  output_manager_default.print(` - ${event}
51943
52040
  `);
51944
52041
  }
51945
52042
  if (webhook.projectIds && webhook.projectIds.length > 0) {
51946
52043
  output_manager_default.print("\n");
51947
- output_manager_default.print(import_chalk198.default.bold(" Projects\n\n"));
52044
+ output_manager_default.print(import_chalk199.default.bold(" Projects\n\n"));
51948
52045
  if (webhook.projectsMetadata && webhook.projectsMetadata.length > 0) {
51949
52046
  for (const project of webhook.projectsMetadata) {
51950
52047
  output_manager_default.print(` - ${project.name} (${project.id})
@@ -51963,7 +52060,7 @@ async function get4(client, argv) {
51963
52060
  }
51964
52061
 
51965
52062
  // src/commands/webhooks/create.ts
51966
- var import_chalk199 = __toESM(require_source(), 1);
52063
+ var import_chalk200 = __toESM(require_source(), 1);
51967
52064
 
51968
52065
  // src/util/webhooks/create-webhook.ts
51969
52066
  async function createWebhook(client, payload) {
@@ -52183,7 +52280,7 @@ async function create5(client, argv) {
52183
52280
  const { contextName } = await getScope(client);
52184
52281
  const createStamp = stamp_default();
52185
52282
  if (!client.nonInteractive) {
52186
- output_manager_default.spinner(`Creating webhook under ${import_chalk199.default.bold(contextName)}`);
52283
+ output_manager_default.spinner(`Creating webhook under ${import_chalk200.default.bold(contextName)}`);
52187
52284
  }
52188
52285
  try {
52189
52286
  const webhook = await createWebhook(client, {
@@ -52216,27 +52313,27 @@ async function create5(client, argv) {
52216
52313
  }
52217
52314
  output_manager_default.stopSpinner();
52218
52315
  output_manager_default.success(
52219
- `Webhook created: ${import_chalk199.default.bold(webhook.id)} ${createStamp()}`
52316
+ `Webhook created: ${import_chalk200.default.bold(webhook.id)} ${createStamp()}`
52220
52317
  );
52221
52318
  output_manager_default.print("\n");
52222
- output_manager_default.print(import_chalk199.default.bold(" Webhook Details\n\n"));
52223
- output_manager_default.print(` ${import_chalk199.default.cyan("ID".padEnd(10))}${webhook.id}
52319
+ output_manager_default.print(import_chalk200.default.bold(" Webhook Details\n\n"));
52320
+ output_manager_default.print(` ${import_chalk200.default.cyan("ID".padEnd(10))}${webhook.id}
52224
52321
  `);
52225
- output_manager_default.print(` ${import_chalk199.default.cyan("URL".padEnd(10))}${webhook.url}
52322
+ output_manager_default.print(` ${import_chalk200.default.cyan("URL".padEnd(10))}${webhook.url}
52226
52323
  `);
52227
52324
  output_manager_default.print(
52228
- ` ${import_chalk199.default.cyan("Events".padEnd(10))}${webhook.events.join(", ")}
52325
+ ` ${import_chalk200.default.cyan("Events".padEnd(10))}${webhook.events.join(", ")}
52229
52326
  `
52230
52327
  );
52231
52328
  if (webhook.projectIds && webhook.projectIds.length > 0) {
52232
52329
  output_manager_default.print(
52233
- ` ${import_chalk199.default.cyan("Projects".padEnd(10))}${webhook.projectIds.join(", ")}
52330
+ ` ${import_chalk200.default.cyan("Projects".padEnd(10))}${webhook.projectIds.join(", ")}
52234
52331
  `
52235
52332
  );
52236
52333
  }
52237
52334
  output_manager_default.print("\n");
52238
52335
  output_manager_default.warn(
52239
- `Save this secret - it will not be shown again: ${import_chalk199.default.bold(webhook.secret)}`
52336
+ `Save this secret - it will not be shown again: ${import_chalk200.default.bold(webhook.secret)}`
52240
52337
  );
52241
52338
  output_manager_default.print("\n");
52242
52339
  return 0;
@@ -52294,7 +52391,7 @@ function buildCreateCommandWithEventPlaceholder(fullArgv, url) {
52294
52391
  }
52295
52392
 
52296
52393
  // src/commands/webhooks/rm.ts
52297
- var import_chalk200 = __toESM(require_source(), 1);
52394
+ var import_chalk201 = __toESM(require_source(), 1);
52298
52395
 
52299
52396
  // src/util/webhooks/delete-webhook.ts
52300
52397
  async function deleteWebhook(client, webhookId) {
@@ -52389,7 +52486,7 @@ async function rm10(client, argv) {
52389
52486
  const { contextName } = await getScope(client);
52390
52487
  if (args.length !== 1) {
52391
52488
  output_manager_default.error(
52392
- `Invalid number of arguments. Usage: ${import_chalk200.default.cyan(
52489
+ `Invalid number of arguments. Usage: ${import_chalk201.default.cyan(
52393
52490
  `${getCommandName("webhooks rm <id>")}`
52394
52491
  )}`
52395
52492
  );
@@ -52440,7 +52537,7 @@ async function rm10(client, argv) {
52440
52537
  }
52441
52538
  const removeStamp = stamp_default();
52442
52539
  if (!client.nonInteractive) {
52443
- output_manager_default.spinner(`Removing webhook under ${import_chalk200.default.bold(contextName)}`);
52540
+ output_manager_default.spinner(`Removing webhook under ${import_chalk201.default.bold(contextName)}`);
52444
52541
  }
52445
52542
  try {
52446
52543
  await deleteWebhook(client, webhookId);
@@ -52460,7 +52557,7 @@ async function rm10(client, argv) {
52460
52557
  );
52461
52558
  return 0;
52462
52559
  }
52463
- output_manager_default.success(`Webhook ${import_chalk200.default.bold(webhookId)} removed ${removeStamp()}`);
52560
+ output_manager_default.success(`Webhook ${import_chalk201.default.bold(webhookId)} removed ${removeStamp()}`);
52464
52561
  return 0;
52465
52562
  } catch (err) {
52466
52563
  output_manager_default.stopSpinner();
@@ -52591,7 +52688,7 @@ async function main30(client) {
52591
52688
  }
52592
52689
 
52593
52690
  // src/commands/whoami/index.ts
52594
- var import_chalk201 = __toESM(require_source(), 1);
52691
+ var import_chalk202 = __toESM(require_source(), 1);
52595
52692
 
52596
52693
  // src/util/telemetry/commands/whoami/index.ts
52597
52694
  var WhoamiTelemetryClient = class extends TelemetryClient {
@@ -52643,21 +52740,21 @@ async function whoami(client) {
52643
52740
  client.stdout.write(`${JSON.stringify(jsonOutput, null, 2)}
52644
52741
  `);
52645
52742
  } else if (client.stdout.isTTY) {
52646
- output_manager_default.log(`Logged in as ${import_chalk201.default.bold(user.username)}`);
52743
+ output_manager_default.log(`Logged in as ${import_chalk202.default.bold(user.username)}`);
52647
52744
  if (team) {
52648
52745
  output_manager_default.log(
52649
- `Active team: ${import_chalk201.default.bold(team.slug)}${team.name && team.name !== team.slug ? ` (${team.name})` : ""}`
52746
+ `Active team: ${import_chalk202.default.bold(team.slug)}${team.name && team.name !== team.slug ? ` (${team.name})` : ""}`
52650
52747
  );
52651
52748
  } else {
52652
- output_manager_default.log(`Active team: ${import_chalk201.default.bold("Personal Account")}`);
52749
+ output_manager_default.log(`Active team: ${import_chalk202.default.bold("Personal Account")}`);
52653
52750
  }
52654
52751
  if (hasLocalOverride) {
52655
52752
  const globalLabel = globalTeam ? globalTeam.slug : "Personal Account";
52656
52753
  const localLabel = team ? team.slug : "Personal Account";
52657
52754
  output_manager_default.log(
52658
- `${import_chalk201.default.yellow("Local override:")} scope is set to ${import_chalk201.default.bold(
52755
+ `${import_chalk202.default.yellow("Local override:")} scope is set to ${import_chalk202.default.bold(
52659
52756
  localLabel
52660
- )} by the linked project in this directory (globally selected: ${import_chalk201.default.bold(
52757
+ )} by the linked project in this directory (globally selected: ${import_chalk202.default.bold(
52661
52758
  globalLabel
52662
52759
  )}).`
52663
52760
  );