@shopify/create-app 3.66.1 → 3.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/{chunk-FIJKOZJF.js → chunk-2IV4ZS5T.js} +4 -3
  2. package/dist/{chunk-KFZCBK4T.js → chunk-3VT3NKCG.js} +4 -4
  3. package/dist/{chunk-257COCSO.js → chunk-4W4U5QAX.js} +2 -2
  4. package/dist/{chunk-S3DUCSRO.js → chunk-6IDMUQ5G.js} +7 -7
  5. package/dist/{chunk-QLRYO5KT.js → chunk-CHZ2CDKO.js} +24 -11
  6. package/dist/{chunk-LGVLNWZU.js → chunk-DI7ZLXJS.js} +4 -4
  7. package/dist/{chunk-XLDLHIVF.js → chunk-FC7PUGAB.js} +2 -2
  8. package/dist/{chunk-RUAGSZKM.js → chunk-FJ4GQQII.js} +4 -4
  9. package/dist/{chunk-WT4JHKP5.js → chunk-G2JFNATM.js} +22 -7
  10. package/dist/{chunk-BBE4ZEEU.js → chunk-IIKSVXBB.js} +5 -5
  11. package/dist/{chunk-CLUGFX6V.js → chunk-NY3QZZKZ.js} +13 -13
  12. package/dist/{chunk-VZVGAREJ.js → chunk-OL5GDQRF.js} +27 -17
  13. package/dist/{chunk-P5KC5F5V.js → chunk-U27RPK5X.js} +16 -5
  14. package/dist/{chunk-GAIGXDXK.js → chunk-W7FGCGVY.js} +11 -11
  15. package/dist/{chunk-7BASJP2S.js → chunk-WPLOKPEZ.js} +2 -2
  16. package/dist/{chunk-XG23WV6C.js → chunk-XNR6XO7P.js} +230 -89
  17. package/dist/commands/init.js +16 -16
  18. package/dist/commands/init.test.js +16 -16
  19. package/dist/{constants-WG7I7G3O.js → constants-MFMCWLIA.js} +4 -2
  20. package/dist/{custom-oclif-loader-BIG4GFMG.js → custom-oclif-loader-6IOKWJ6W.js} +4 -4
  21. package/dist/{error-handler-T4BVXIMP.js → error-handler-JKSPE4OA.js} +11 -11
  22. package/dist/hooks/postrun.js +9 -9
  23. package/dist/hooks/prerun.js +7 -7
  24. package/dist/index.js +2 -2
  25. package/dist/{lib-3K5QYF3J.js → lib-FYUAIYTL.js} +2 -2
  26. package/dist/{local-LCGXZ56M.js → local-47FCO6X5.js} +4 -4
  27. package/dist/{node-package-manager-PPBMXNJX.js → node-package-manager-PFN33NPF.js} +5 -5
  28. package/dist/prompts/init.js +4 -4
  29. package/dist/prompts/init.test.js +8 -8
  30. package/dist/services/init.js +10 -10
  31. package/dist/{system-EHKKASQN.js → system-25LQSUMI.js} +6 -6
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/dist/{ui-RTRXLPXR.js → ui-BR6EA5YP.js} +4 -4
  34. package/dist/utils/template/cleanup.js +4 -4
  35. package/dist/utils/template/cleanup.test.js +4 -4
  36. package/dist/utils/template/npm.js +6 -6
  37. package/dist/utils/template/npm.test.js +6 -6
  38. package/oclif.manifest.json +1 -1
  39. package/package.json +2 -2
@@ -100,7 +100,7 @@ var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ?
100
100
  }
101
101
  }, sessionConstants = {
102
102
  expirationTimeMarginInMinutes: 4
103
- }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae";
103
+ }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } };
104
104
 
105
105
  export {
106
106
  envPaths,
@@ -110,6 +110,7 @@ export {
110
110
  systemEnvironmentVariables,
111
111
  pathConstants,
112
112
  sessionConstants,
113
- bugsnagApiKey
113
+ bugsnagApiKey,
114
+ reportingRateLimit
114
115
  };
115
- //# sourceMappingURL=chunk-FIJKOZJF.js.map
116
+ //# sourceMappingURL=chunk-2IV4ZS5T.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-7BASJP2S.js";
3
+ } from "./chunk-WPLOKPEZ.js";
4
4
  import {
5
5
  installNodeModules
6
- } from "./chunk-P5KC5F5V.js";
6
+ } from "./chunk-U27RPK5X.js";
7
7
  import {
8
8
  findPathUp
9
- } from "./chunk-XG23WV6C.js";
9
+ } from "./chunk-XNR6XO7P.js";
10
10
  import {
11
11
  moduleDirectory,
12
12
  normalizePath
@@ -51,4 +51,4 @@ export {
51
51
  updateCLIDependencies,
52
52
  getDeepInstallNPMTasks
53
53
  };
54
- //# sourceMappingURL=chunk-KFZCBK4T.js.map
54
+ //# sourceMappingURL=chunk-3VT3NKCG.js.map
@@ -2,7 +2,7 @@ import {
2
2
  execa,
3
3
  outputContent,
4
4
  outputDebug
5
- } from "./chunk-XG23WV6C.js";
5
+ } from "./chunk-XNR6XO7P.js";
6
6
  import {
7
7
  init_cjs_shims
8
8
  } from "./chunk-POZ5MGPT.js";
@@ -60,4 +60,4 @@ export {
60
60
  username,
61
61
  platformAndArch
62
62
  };
63
- //# sourceMappingURL=chunk-257COCSO.js.map
63
+ //# sourceMappingURL=chunk-4W4U5QAX.js.map
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  cleanup
3
- } from "./chunk-XLDLHIVF.js";
3
+ } from "./chunk-FC7PUGAB.js";
4
4
  import {
5
5
  getDeepInstallNPMTasks,
6
6
  updateCLIDependencies
7
- } from "./chunk-KFZCBK4T.js";
7
+ } from "./chunk-3VT3NKCG.js";
8
8
  import {
9
9
  username
10
- } from "./chunk-257COCSO.js";
10
+ } from "./chunk-4W4U5QAX.js";
11
11
  import {
12
12
  LocalStorage,
13
13
  UnknownPackageManagerError,
14
14
  findUpAndReadPackageJson,
15
15
  lockfiles,
16
16
  writePackageJSON
17
- } from "./chunk-P5KC5F5V.js";
17
+ } from "./chunk-U27RPK5X.js";
18
18
  import {
19
19
  AbortError,
20
20
  appendFile,
@@ -42,7 +42,7 @@ import {
42
42
  renderTasks,
43
43
  runWithTimer,
44
44
  writeFile
45
- } from "./chunk-XG23WV6C.js";
45
+ } from "./chunk-XNR6XO7P.js";
46
46
  import {
47
47
  dirname,
48
48
  joinPath,
@@ -51,7 +51,7 @@ import {
51
51
  } from "./chunk-4DRC2PSU.js";
52
52
  import {
53
53
  require_src
54
- } from "./chunk-VZVGAREJ.js";
54
+ } from "./chunk-OL5GDQRF.js";
55
55
  import {
56
56
  __commonJS,
57
57
  __require,
@@ -5622,4 +5622,4 @@ var init_default = init;
5622
5622
  export {
5623
5623
  init_default
5624
5624
  };
5625
- //# sourceMappingURL=chunk-S3DUCSRO.js.map
5625
+ //# sourceMappingURL=chunk-6IDMUQ5G.js.map
@@ -4,13 +4,16 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-WT4JHKP5.js";
7
+ } from "./chunk-G2JFNATM.js";
8
8
  import {
9
9
  getEnvironmentData
10
- } from "./chunk-LGVLNWZU.js";
10
+ } from "./chunk-DI7ZLXJS.js";
11
11
  import {
12
12
  CLI_KIT_VERSION
13
- } from "./chunk-7BASJP2S.js";
13
+ } from "./chunk-WPLOKPEZ.js";
14
+ import {
15
+ runWithRateLimit
16
+ } from "./chunk-U27RPK5X.js";
14
17
  import {
15
18
  AbortSilentError,
16
19
  CancelExecution,
@@ -23,10 +26,11 @@ import {
23
26
  outputInfo,
24
27
  require_stacktracey,
25
28
  shouldReportError
26
- } from "./chunk-XG23WV6C.js";
29
+ } from "./chunk-XNR6XO7P.js";
27
30
  import {
28
- bugsnagApiKey
29
- } from "./chunk-FIJKOZJF.js";
31
+ bugsnagApiKey,
32
+ reportingRateLimit
33
+ } from "./chunk-2IV4ZS5T.js";
30
34
  import {
31
35
  cwd,
32
36
  isAbsolutePath,
@@ -39,7 +43,7 @@ import {
39
43
  } from "./chunk-LTDD2GRL.js";
40
44
  import {
41
45
  require_lib
42
- } from "./chunk-VZVGAREJ.js";
46
+ } from "./chunk-OL5GDQRF.js";
43
47
  import {
44
48
  __commonJS,
45
49
  __require,
@@ -2065,8 +2069,16 @@ async function sendErrorToBugsnag(error, exitMode) {
2065
2069
  return ` at ${item.callee} (${filePath}:${item.line}:${item.column})`;
2066
2070
  }).join(`
2067
2071
  `);
2068
- return reportableError.stack = `Error: ${reportableError.message}
2069
- ${formattedStacktrace}`, report && (initializeBugsnag(), await new Promise((resolve, reject) => {
2072
+ reportableError.stack = `Error: ${reportableError.message}
2073
+ ${formattedStacktrace}`;
2074
+ let withinRateLimit = !1;
2075
+ return await runWithRateLimit({
2076
+ key: "send-error-to-bugsnag",
2077
+ ...reportingRateLimit,
2078
+ task: async () => {
2079
+ withinRateLimit = !0;
2080
+ }
2081
+ }), withinRateLimit || (outputDebug("Skipping Bugsnag report due to rate limiting"), report = !1), report && (initializeBugsnag(), await new Promise((resolve, reject) => {
2070
2082
  outputDebug(`Reporting ${unhandled ? "unhandled" : "handled"} error to Bugsnag: ${reportableError.message}`);
2071
2083
  let eventHandler = (event) => {
2072
2084
  event.severity = "error", event.unhandled = unhandled;
@@ -2130,7 +2142,8 @@ function initializeBugsnag() {
2130
2142
  logger: null,
2131
2143
  appVersion: CLI_KIT_VERSION,
2132
2144
  autoTrackSessions: !1,
2133
- autoDetectErrors: !1
2145
+ autoDetectErrors: !1,
2146
+ enabledReleaseStages: ["production"]
2134
2147
  });
2135
2148
  }
2136
2149
 
@@ -2141,4 +2154,4 @@ export {
2141
2154
  registerCleanBugsnagErrorsFromWithinPlugins,
2142
2155
  addBugsnagMetadata
2143
2156
  };
2144
- //# sourceMappingURL=chunk-QLRYO5KT.js.map
2157
+ //# sourceMappingURL=chunk-CHZ2CDKO.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  platformAndArch
3
- } from "./chunk-257COCSO.js";
3
+ } from "./chunk-4W4U5QAX.js";
4
4
  import {
5
5
  getPackageManager,
6
6
  packageManagerFromUserAgent
7
- } from "./chunk-P5KC5F5V.js";
7
+ } from "./chunk-U27RPK5X.js";
8
8
  import {
9
9
  addPublicMetadata,
10
10
  addSensitiveMetadata,
@@ -12,7 +12,7 @@ import {
12
12
  cloudEnvironment,
13
13
  currentProcessIsGlobal,
14
14
  macAddress
15
- } from "./chunk-XG23WV6C.js";
15
+ } from "./chunk-XNR6XO7P.js";
16
16
  import {
17
17
  cwd
18
18
  } from "./chunk-4DRC2PSU.js";
@@ -91,4 +91,4 @@ export {
91
91
  getEnvironmentData,
92
92
  getSensitiveEnvironmentData
93
93
  };
94
- //# sourceMappingURL=chunk-LGVLNWZU.js.map
94
+ //# sourceMappingURL=chunk-DI7ZLXJS.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  glob,
3
3
  rmdir
4
- } from "./chunk-XG23WV6C.js";
4
+ } from "./chunk-XNR6XO7P.js";
5
5
  import {
6
6
  joinPath
7
7
  } from "./chunk-4DRC2PSU.js";
@@ -35,4 +35,4 @@ async function cleanup(webOutputDirectory) {
35
35
  export {
36
36
  cleanup
37
37
  };
38
- //# sourceMappingURL=chunk-XLDLHIVF.js.map
38
+ //# sourceMappingURL=chunk-FC7PUGAB.js.map
@@ -4,7 +4,7 @@ import {
4
4
  renderSelectPrompt,
5
5
  renderText,
6
6
  renderTextPrompt
7
- } from "./chunk-XG23WV6C.js";
7
+ } from "./chunk-XNR6XO7P.js";
8
8
  import {
9
9
  __export,
10
10
  init_cjs_shims
@@ -22,7 +22,7 @@ init_cjs_shims();
22
22
  var templates = {
23
23
  remix: {
24
24
  url: "https://github.com/Shopify/shopify-app-template-remix",
25
- label: "Start with Remix (recommended)",
25
+ label: "Build a Remix app (recommended)",
26
26
  visible: !0,
27
27
  branches: {
28
28
  prompt: "For your Remix template, which language do you want?",
@@ -34,7 +34,7 @@ var templates = {
34
34
  },
35
35
  none: {
36
36
  url: "https://github.com/Shopify/shopify-app-template-none",
37
- label: "Start by adding your first extension",
37
+ label: "Build an extension-only app",
38
38
  visible: !0
39
39
  },
40
40
  node: {
@@ -105,4 +105,4 @@ export {
105
105
  isPredefinedTemplate,
106
106
  init_exports
107
107
  };
108
- //# sourceMappingURL=chunk-RUAGSZKM.js.map
108
+ //# sourceMappingURL=chunk-FJ4GQQII.js.map
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  fetch
3
- } from "./chunk-CLUGFX6V.js";
3
+ } from "./chunk-NY3QZZKZ.js";
4
4
  import {
5
5
  getEnvironmentData,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-LGVLNWZU.js";
7
+ } from "./chunk-DI7ZLXJS.js";
8
8
  import {
9
9
  CLI_KIT_VERSION
10
- } from "./chunk-7BASJP2S.js";
10
+ } from "./chunk-WPLOKPEZ.js";
11
11
  import {
12
- require_semver
13
- } from "./chunk-P5KC5F5V.js";
12
+ require_semver,
13
+ runWithRateLimit
14
+ } from "./chunk-U27RPK5X.js";
14
15
  import {
15
16
  alwaysLogAnalytics,
16
17
  alwaysLogMetrics,
@@ -25,7 +26,10 @@ import {
25
26
  outputContent,
26
27
  outputDebug,
27
28
  outputToken
28
- } from "./chunk-XG23WV6C.js";
29
+ } from "./chunk-XNR6XO7P.js";
30
+ import {
31
+ reportingRateLimit
32
+ } from "./chunk-2IV4ZS5T.js";
29
33
  import {
30
34
  joinPath
31
35
  } from "./chunk-4DRC2PSU.js";
@@ -15713,6 +15717,17 @@ async function reportAnalyticsEvent(options) {
15713
15717
  let payload = await buildPayload(options);
15714
15718
  if (payload === void 0)
15715
15719
  return;
15720
+ let withinRateLimit = !1;
15721
+ if (await runWithRateLimit({
15722
+ key: "report-analytics-event",
15723
+ ...reportingRateLimit,
15724
+ task: async () => {
15725
+ withinRateLimit = !0;
15726
+ }
15727
+ }), !withinRateLimit) {
15728
+ outputDebug(outputContent`Skipping command analytics due to rate limiting, payload: ${outputToken.json(payload)}`);
15729
+ return;
15730
+ }
15716
15731
  let skipMonorailAnalytics = !alwaysLogAnalytics() && analyticsDisabled(), skipMetricAnalytics = !alwaysLogMetrics() && analyticsDisabled();
15717
15732
  (skipMonorailAnalytics || skipMetricAnalytics) && outputDebug(outputContent`Skipping command analytics, payload: ${outputToken.json(payload)}`);
15718
15733
  let doMonorail = async () => {
@@ -15806,4 +15821,4 @@ export {
15806
15821
  fanoutHooks,
15807
15822
  reportAnalyticsEvent
15808
15823
  };
15809
- //# sourceMappingURL=chunk-WT4JHKP5.js.map
15824
+ //# sourceMappingURL=chunk-G2JFNATM.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-LTDD2GRL.js";
5
5
  import {
6
6
  require_lib
7
- } from "./chunk-VZVGAREJ.js";
7
+ } from "./chunk-OL5GDQRF.js";
8
8
  import {
9
9
  __toESM,
10
10
  init_cjs_shims
@@ -17,7 +17,7 @@ import { fileURLToPath } from "url";
17
17
  async function warnIfOldNodeVersion() {
18
18
  let nodeVersion = process.versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
19
19
  if (nodeMajorVersion < 18) {
20
- let { renderWarning } = await import("./ui-RTRXLPXR.js");
20
+ let { renderWarning } = await import("./ui-BR6EA5YP.js");
21
21
  renderWarning({
22
22
  headline: "Upgrade to a supported Node version now.",
23
23
  body: [
@@ -42,7 +42,7 @@ function forceNoColor() {
42
42
  }
43
43
  async function runCLI(options) {
44
44
  setupEnvironmentVariables(options), forceNoColor(), await warnIfOldNodeVersion();
45
- let { errorHandler } = await import("./error-handler-T4BVXIMP.js"), { isDevelopment } = await import("./local-LCGXZ56M.js"), oclif = await import("./lib-3K5QYF3J.js"), { ShopifyConfig } = await import("./custom-oclif-loader-BIG4GFMG.js");
45
+ let { errorHandler } = await import("./error-handler-JKSPE4OA.js"), { isDevelopment } = await import("./local-47FCO6X5.js"), oclif = await import("./lib-FYUAIYTL.js"), { ShopifyConfig } = await import("./custom-oclif-loader-6IOKWJ6W.js");
46
46
  isDevelopment() && (oclif.default.settings.debug = !0);
47
47
  try {
48
48
  let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
@@ -53,7 +53,7 @@ async function runCLI(options) {
53
53
  }
54
54
  async function runCreateCLI(options) {
55
55
  setupEnvironmentVariables(options);
56
- let { findUpAndReadPackageJson } = await import("./node-package-manager-PPBMXNJX.js"), { moduleDirectory } = await import("./path-L375JOQ2.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
56
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-PFN33NPF.js"), { moduleDirectory } = await import("./path-L375JOQ2.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
57
57
  if (process.argv.findIndex((arg) => arg.includes("init")) === -1) {
58
58
  let initIndex2 = process.argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
59
59
  process.argv.splice(initIndex2, 0, "init");
@@ -77,4 +77,4 @@ export {
77
77
  runCreateCLI,
78
78
  globalFlags
79
79
  };
80
- //# sourceMappingURL=chunk-BBE4ZEEU.js.map
80
+ //# sourceMappingURL=chunk-IIKSVXBB.js.map
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  outputDebug,
8
8
  runWithTimer
9
- } from "./chunk-XG23WV6C.js";
9
+ } from "./chunk-XNR6XO7P.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -26193,7 +26193,7 @@ var require_lib2 = __commonJS({
26193
26193
  invalidHeaderCharRegex.test(obj[name]) || (headers[MAP][name] = [obj[name]]);
26194
26194
  return headers;
26195
26195
  }
26196
- var INTERNALS$1 = Symbol("Response internals"), STATUS_CODES = http3.STATUS_CODES, Response2 = class _Response {
26196
+ var INTERNALS$1 = Symbol("Response internals"), STATUS_CODES = http3.STATUS_CODES, Response3 = class _Response {
26197
26197
  constructor() {
26198
26198
  let body = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
26199
26199
  Body2.call(this, body, opts);
@@ -26247,8 +26247,8 @@ var require_lib2 = __commonJS({
26247
26247
  });
26248
26248
  }
26249
26249
  };
26250
- Body2.mixIn(Response2.prototype);
26251
- Object.defineProperties(Response2.prototype, {
26250
+ Body2.mixIn(Response3.prototype);
26251
+ Object.defineProperties(Response3.prototype, {
26252
26252
  url: { enumerable: !0 },
26253
26253
  status: { enumerable: !0 },
26254
26254
  ok: { enumerable: !0 },
@@ -26257,7 +26257,7 @@ var require_lib2 = __commonJS({
26257
26257
  headers: { enumerable: !0 },
26258
26258
  clone: { enumerable: !0 }
26259
26259
  });
26260
- Object.defineProperty(Response2.prototype, Symbol.toStringTag, {
26260
+ Object.defineProperty(Response3.prototype, Symbol.toStringTag, {
26261
26261
  value: "Response",
26262
26262
  writable: !1,
26263
26263
  enumerable: !1,
@@ -26479,7 +26479,7 @@ var require_lib2 = __commonJS({
26479
26479
  counter: request.counter
26480
26480
  }, codings = headers.get("Content-Encoding");
26481
26481
  if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) {
26482
- response = new Response2(body, response_options), resolve(response);
26482
+ response = new Response3(body, response_options), resolve(response);
26483
26483
  return;
26484
26484
  }
26485
26485
  let zlibOptions = {
@@ -26487,23 +26487,23 @@ var require_lib2 = __commonJS({
26487
26487
  finishFlush: zlib2.Z_SYNC_FLUSH
26488
26488
  };
26489
26489
  if (codings == "gzip" || codings == "x-gzip") {
26490
- body = body.pipe(zlib2.createGunzip(zlibOptions)), response = new Response2(body, response_options), resolve(response);
26490
+ body = body.pipe(zlib2.createGunzip(zlibOptions)), response = new Response3(body, response_options), resolve(response);
26491
26491
  return;
26492
26492
  }
26493
26493
  if (codings == "deflate" || codings == "x-deflate") {
26494
26494
  let raw = res.pipe(new PassThrough$1());
26495
26495
  raw.once("data", function(chunk) {
26496
- (chunk[0] & 15) === 8 ? body = body.pipe(zlib2.createInflate()) : body = body.pipe(zlib2.createInflateRaw()), response = new Response2(body, response_options), resolve(response);
26496
+ (chunk[0] & 15) === 8 ? body = body.pipe(zlib2.createInflate()) : body = body.pipe(zlib2.createInflateRaw()), response = new Response3(body, response_options), resolve(response);
26497
26497
  }), raw.on("end", function() {
26498
- response || (response = new Response2(body, response_options), resolve(response));
26498
+ response || (response = new Response3(body, response_options), resolve(response));
26499
26499
  });
26500
26500
  return;
26501
26501
  }
26502
26502
  if (codings == "br" && typeof zlib2.createBrotliDecompress == "function") {
26503
- body = body.pipe(zlib2.createBrotliDecompress()), response = new Response2(body, response_options), resolve(response);
26503
+ body = body.pipe(zlib2.createBrotliDecompress()), response = new Response3(body, response_options), resolve(response);
26504
26504
  return;
26505
26505
  }
26506
- response = new Response2(body, response_options), resolve(response);
26506
+ response = new Response3(body, response_options), resolve(response);
26507
26507
  }), writeToStream2(req, request);
26508
26508
  });
26509
26509
  }
@@ -26533,7 +26533,7 @@ var require_lib2 = __commonJS({
26533
26533
  exports.default = exports;
26534
26534
  exports.Headers = Headers4;
26535
26535
  exports.Request = Request2;
26536
- exports.Response = Response2;
26536
+ exports.Response = Response3;
26537
26537
  exports.FetchError = FetchError2;
26538
26538
  exports.AbortError = AbortError2;
26539
26539
  }
@@ -27907,4 +27907,4 @@ mime-types/index.js:
27907
27907
  * MIT Licensed
27908
27908
  *)
27909
27909
  */
27910
- //# sourceMappingURL=chunk-CLUGFX6V.js.map
27910
+ //# sourceMappingURL=chunk-NY3QZZKZ.js.map
@@ -150223,15 +150223,15 @@ var require_hyperlinker = __commonJS({
150223
150223
  }
150224
150224
  });
150225
150225
 
150226
- // ../../node_modules/.pnpm/supports-hyperlinks@2.3.0/node_modules/supports-hyperlinks/index.js
150226
+ // ../../node_modules/.pnpm/supports-hyperlinks@3.1.0/node_modules/supports-hyperlinks/index.js
150227
150227
  var require_supports_hyperlinks = __commonJS({
150228
- "../../node_modules/.pnpm/supports-hyperlinks@2.3.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
150228
+ "../../node_modules/.pnpm/supports-hyperlinks@3.1.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
150229
150229
  "use strict";
150230
150230
  init_cjs_shims();
150231
150231
  var supportsColor = require_supports_color(), hasFlag = require_has_flag();
150232
150232
  function parseVersion(versionString) {
150233
150233
  if (/^\d{3,4}$/.test(versionString)) {
150234
- let m = /(\d{1,2})(\d{2})/.exec(versionString);
150234
+ let m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
150235
150235
  return {
150236
150236
  major: 0,
150237
150237
  minor: parseInt(m[1], 10),
@@ -150246,18 +150246,30 @@ var require_supports_hyperlinks = __commonJS({
150246
150246
  };
150247
150247
  }
150248
150248
  function supportsHyperlink(stream) {
150249
- let { env } = process;
150250
- if ("FORCE_HYPERLINK" in env)
150251
- return !(env.FORCE_HYPERLINK.length > 0 && parseInt(env.FORCE_HYPERLINK, 10) === 0);
150249
+ let {
150250
+ CI,
150251
+ FORCE_HYPERLINK,
150252
+ NETLIFY,
150253
+ TEAMCITY_VERSION,
150254
+ TERM_PROGRAM,
150255
+ TERM_PROGRAM_VERSION,
150256
+ VTE_VERSION
150257
+ } = process.env;
150258
+ if (FORCE_HYPERLINK)
150259
+ return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
150252
150260
  if (hasFlag("no-hyperlink") || hasFlag("no-hyperlinks") || hasFlag("hyperlink=false") || hasFlag("hyperlink=never"))
150253
150261
  return !1;
150254
- if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always") || "NETLIFY" in env)
150262
+ if (hasFlag("hyperlink=true") || hasFlag("hyperlink=always") || NETLIFY)
150255
150263
  return !0;
150256
- if (!supportsColor.supportsColor(stream) || stream && !stream.isTTY || process.platform === "win32" || "CI" in env || "TEAMCITY_VERSION" in env)
150264
+ if (!supportsColor.supportsColor(stream) || stream && !stream.isTTY)
150257
150265
  return !1;
150258
- if ("TERM_PROGRAM" in env) {
150259
- let version = parseVersion(env.TERM_PROGRAM_VERSION);
150260
- switch (env.TERM_PROGRAM) {
150266
+ if ("WT_SESSION" in process.env)
150267
+ return !0;
150268
+ if (process.platform === "win32" || CI || TEAMCITY_VERSION)
150269
+ return !1;
150270
+ if (TERM_PROGRAM) {
150271
+ let version = parseVersion(TERM_PROGRAM_VERSION || "");
150272
+ switch (TERM_PROGRAM) {
150261
150273
  case "iTerm.app":
150262
150274
  return version.major === 3 ? version.minor >= 1 : version.major > 3;
150263
150275
  case "WezTerm":
@@ -150266,10 +150278,10 @@ var require_supports_hyperlinks = __commonJS({
150266
150278
  return version.major > 1 || version.major === 1 && version.minor >= 72;
150267
150279
  }
150268
150280
  }
150269
- if ("VTE_VERSION" in env) {
150270
- if (env.VTE_VERSION === "0.50.0")
150281
+ if (VTE_VERSION) {
150282
+ if (VTE_VERSION === "0.50.0")
150271
150283
  return !1;
150272
- let version = parseVersion(env.VTE_VERSION);
150284
+ let version = parseVersion(VTE_VERSION);
150273
150285
  return version.major > 0 || version.minor >= 50;
150274
150286
  }
150275
150287
  return !1;
@@ -158449,8 +158461,6 @@ var require_lib2 = __commonJS({
158449
158461
 
158450
158462
  export {
158451
158463
  require_cross_spawn,
158452
- require_has_flag,
158453
- require_supports_color,
158454
158464
  require_source,
158455
158465
  require_src,
158456
158466
  require_source_map,
@@ -158485,4 +158495,4 @@ ejs/lib/ejs.js:
158485
158495
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
158486
158496
  *)
158487
158497
  */
158488
- //# sourceMappingURL=chunk-VZVGAREJ.js.map
158498
+ //# sourceMappingURL=chunk-OL5GDQRF.js.map
@@ -16,10 +16,10 @@ import {
16
16
  require_get_stream,
17
17
  runWithTimer,
18
18
  writeFile
19
- } from "./chunk-XG23WV6C.js";
19
+ } from "./chunk-XNR6XO7P.js";
20
20
  import {
21
21
  envPaths
22
- } from "./chunk-FIJKOZJF.js";
22
+ } from "./chunk-2IV4ZS5T.js";
23
23
  import {
24
24
  dirname,
25
25
  joinPath
@@ -11307,8 +11307,18 @@ function timeIntervalToMilliseconds({ days = 0, hours = 0, minutes = 0, seconds
11307
11307
  }
11308
11308
  async function runAtMinimumInterval(key, timeout, task, config = cliKitStore()) {
11309
11309
  let cache = config.get("cache") || {}, cacheKey = `most-recent-occurrence-${key}`, cached = cache[cacheKey];
11310
- if (!(cached?.value !== void 0 && Date.now() - cached.timestamp < timeIntervalToMilliseconds(timeout)))
11311
- return await task(), cache[cacheKey] = { value: !0, timestamp: Date.now() }, config.set("cache", cache), !0;
11310
+ return cached?.value !== void 0 && Date.now() - cached.timestamp < timeIntervalToMilliseconds(timeout) ? !1 : (await task(), cache[cacheKey] = { value: !0, timestamp: Date.now() }, config.set("cache", cache), !0);
11311
+ }
11312
+ async function runWithRateLimit(options, config = cliKitStore()) {
11313
+ let { key, limit, timeout, task } = options, cache = config.get("cache") || {}, cacheKey = `rate-limited-occurrences-${key}`, cached = cache[cacheKey], now = Date.now();
11314
+ if (cached?.value) {
11315
+ let windowStart = now - timeIntervalToMilliseconds(timeout), occurrences = cached.value.filter((occurrence) => occurrence >= windowStart);
11316
+ if (occurrences.length >= limit)
11317
+ return cache[cacheKey] = { value: occurrences, timestamp: Date.now() }, config.set("cache", cache), !1;
11318
+ await task(), cache[cacheKey] = { value: [...occurrences, now], timestamp: now };
11319
+ } else
11320
+ await task(), cache[cacheKey] = { value: [now], timestamp: now };
11321
+ return config.set("cache", cache), !0;
11312
11322
  }
11313
11323
 
11314
11324
  // ../../node_modules/.pnpm/latest-version@7.0.0/node_modules/latest-version/index.js
@@ -15287,6 +15297,7 @@ export {
15287
15297
  require_semver2 as require_semver,
15288
15298
  LocalStorage,
15289
15299
  runAtMinimumInterval,
15300
+ runWithRateLimit,
15290
15301
  yarnLockfile,
15291
15302
  npmLockfile,
15292
15303
  pnpmLockfile,
@@ -15349,4 +15360,4 @@ deep-extend/lib/deep-extend.js:
15349
15360
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15350
15361
  *)
15351
15362
  */
15352
- //# sourceMappingURL=chunk-P5KC5F5V.js.map
15363
+ //# sourceMappingURL=chunk-U27RPK5X.js.map
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-QLRYO5KT.js";
4
+ } from "./chunk-CHZ2CDKO.js";
5
5
  import {
6
6
  init_default as init_default2
7
- } from "./chunk-S3DUCSRO.js";
7
+ } from "./chunk-6IDMUQ5G.js";
8
8
  import {
9
9
  hashString
10
- } from "./chunk-LGVLNWZU.js";
10
+ } from "./chunk-DI7ZLXJS.js";
11
11
  import {
12
12
  packageManager,
13
13
  packageManagerFromUserAgent
14
- } from "./chunk-P5KC5F5V.js";
14
+ } from "./chunk-U27RPK5X.js";
15
15
  import {
16
16
  globalFlags
17
- } from "./chunk-BBE4ZEEU.js";
17
+ } from "./chunk-IIKSVXBB.js";
18
18
  import {
19
19
  init_default,
20
20
  isPredefinedTemplate,
21
21
  templates,
22
22
  visibleTemplates
23
- } from "./chunk-RUAGSZKM.js";
23
+ } from "./chunk-FJ4GQQII.js";
24
24
  import {
25
25
  AbortError,
26
26
  addPublicMetadata,
@@ -35,9 +35,9 @@ import {
35
35
  readFile,
36
36
  renderInfo,
37
37
  renderWarning,
38
- terminalSupportsRawMode,
38
+ terminalSupportsPrompting,
39
39
  underscore
40
- } from "./chunk-XG23WV6C.js";
40
+ } from "./chunk-XNR6XO7P.js";
41
41
  import {
42
42
  cwd,
43
43
  resolvePath
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-LTDD2GRL.js";
48
48
  import {
49
49
  require_lib
50
- } from "./chunk-VZVGAREJ.js";
50
+ } from "./chunk-OL5GDQRF.js";
51
51
  import {
52
52
  __commonJS,
53
53
  __require,
@@ -1628,7 +1628,7 @@ var import_core = __toESM(require_lib(), 1), BaseCommand = class extends import_
1628
1628
  environmentsFilename() {
1629
1629
  }
1630
1630
  failMissingNonTTYFlags(flags, requiredFlags) {
1631
- terminalSupportsRawMode() || requiredFlags.forEach((name) => {
1631
+ terminalSupportsPrompting() || requiredFlags.forEach((name) => {
1632
1632
  if (!(name in flags))
1633
1633
  throw new AbortError(
1634
1634
  outputContent`Flag not specified:
@@ -1844,4 +1844,4 @@ var Init = class _Init extends base_command_default {
1844
1844
  export {
1845
1845
  Init
1846
1846
  };
1847
- //# sourceMappingURL=chunk-GAIGXDXK.js.map
1847
+ //# sourceMappingURL=chunk-W7FGCGVY.js.map
@@ -4,9 +4,9 @@ import {
4
4
 
5
5
  // ../cli-kit/src/public/common/version.ts
6
6
  init_cjs_shims();
7
- var CLI_KIT_VERSION = "3.66.1";
7
+ var CLI_KIT_VERSION = "3.67.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-7BASJP2S.js.map
12
+ //# sourceMappingURL=chunk-WPLOKPEZ.js.map