@shopify/cli 3.75.4 → 3.76.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 (79) hide show
  1. package/dist/{chunk-NNHELYN3.js → chunk-247SAMPG.js} +3 -3
  2. package/dist/{chunk-KRPDLCMT.js → chunk-2LCBNWGB.js} +11 -11
  3. package/dist/{chunk-3FPXLCF5.js → chunk-3HWN5QZP.js} +3 -3
  4. package/dist/{chunk-WCTQ65EF.js → chunk-7MKO46I5.js} +3 -3
  5. package/dist/{chunk-QGAHQAXG.js → chunk-AS4YOVZB.js} +3 -3
  6. package/dist/{chunk-HV2KH53A.js → chunk-AW63CHBD.js} +3 -3
  7. package/dist/{chunk-Y3V7CDDP.js → chunk-CUEBFCNF.js} +4 -4
  8. package/dist/{chunk-CBIPUP4Q.js → chunk-DSEDXHIL.js} +3 -3
  9. package/dist/{chunk-EFDLFMUG.js → chunk-F5WG7YRC.js} +2 -2
  10. package/dist/{chunk-O5UY3K6F.js → chunk-FKVY6WNT.js} +4 -4
  11. package/dist/{chunk-DFK6H6Q2.js → chunk-FSL57OBM.js} +59 -19
  12. package/dist/{chunk-VH3W76GN.js → chunk-FVI46GAE.js} +3 -3
  13. package/dist/{chunk-3CB5D2ZO.js → chunk-GDAGNYN6.js} +2 -2
  14. package/dist/{chunk-LH3QC4DP.js → chunk-GSC3DSZN.js} +4 -3
  15. package/dist/{chunk-OSDKLELI.js → chunk-IB2GR2NI.js} +4 -4
  16. package/dist/{chunk-LRTITZPZ.js → chunk-IGXCBQCI.js} +2 -2
  17. package/dist/{chunk-EPSGPKFO.js → chunk-IV3Z7KW6.js} +5 -5
  18. package/dist/{chunk-LWZVD7VH.js → chunk-KRBTUAPG.js} +3 -3
  19. package/dist/{chunk-4IY25QPC.js → chunk-LQLKKAEX.js} +3 -3
  20. package/dist/{chunk-R6ST4Q4K.js → chunk-M7TO4P43.js} +2 -2
  21. package/dist/{chunk-R2KFJZQF.js → chunk-NGMTB27N.js} +36 -15
  22. package/dist/{chunk-DLW5TTAO.js → chunk-OAIHYIZM.js} +3 -3
  23. package/dist/{chunk-2OX7ESM2.js → chunk-OLVUPFMV.js} +6 -6
  24. package/dist/{chunk-R27Y5T4H.js → chunk-QFEXM6TL.js} +2 -2
  25. package/dist/{chunk-V4FD5VKG.js → chunk-R3OLOJM7.js} +74 -11
  26. package/dist/{chunk-37RGPUOL.js → chunk-SPTKJZLQ.js} +3 -3
  27. package/dist/{chunk-IROHTJ5D.js → chunk-VCFDSABQ.js} +6 -6
  28. package/dist/{chunk-ARR2ZV5X.js → chunk-WF3LQ6VY.js} +3 -3
  29. package/dist/{chunk-TPUB2CUK.js → chunk-WJRSLVVW.js} +2 -2
  30. package/dist/{chunk-WHYTGJJU.js → chunk-WRB46MIH.js} +10 -9
  31. package/dist/{chunk-VIMSAJBK.js → chunk-WXEVFXY4.js} +93 -163
  32. package/dist/{chunk-7DRESMZH.js → chunk-Y5V7ZNMS.js} +3 -3
  33. package/dist/{chunk-IAFN3BTU.js → chunk-YJUMZEX7.js} +2 -2
  34. package/dist/{chunk-7DV7FO6D.js → chunk-YWGDPGEE.js} +7 -6
  35. package/dist/cli/commands/auth/logout.js +11 -12
  36. package/dist/cli/commands/auth/logout.test.js +12 -13
  37. package/dist/cli/commands/cache/clear.js +10 -11
  38. package/dist/cli/commands/debug/command-flags.js +10 -11
  39. package/dist/cli/commands/docs/generate.js +10 -11
  40. package/dist/cli/commands/docs/generate.test.js +10 -11
  41. package/dist/cli/commands/help.js +10 -11
  42. package/dist/cli/commands/kitchen-sink/async.js +11 -12
  43. package/dist/cli/commands/kitchen-sink/async.test.js +11 -12
  44. package/dist/cli/commands/kitchen-sink/index.js +13 -14
  45. package/dist/cli/commands/kitchen-sink/index.test.js +13 -14
  46. package/dist/cli/commands/kitchen-sink/prompts.js +11 -12
  47. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -12
  48. package/dist/cli/commands/kitchen-sink/static.js +11 -12
  49. package/dist/cli/commands/kitchen-sink/static.test.js +11 -12
  50. package/dist/cli/commands/notifications/generate.js +11 -12
  51. package/dist/cli/commands/notifications/list.js +11 -12
  52. package/dist/cli/commands/search.js +11 -12
  53. package/dist/cli/commands/upgrade.js +11 -12
  54. package/dist/cli/commands/version.js +11 -12
  55. package/dist/cli/commands/version.test.js +11 -12
  56. package/dist/cli/services/commands/notifications.js +6 -6
  57. package/dist/cli/services/commands/search.js +2 -2
  58. package/dist/cli/services/commands/search.test.js +2 -2
  59. package/dist/cli/services/commands/version.js +3 -3
  60. package/dist/cli/services/commands/version.test.js +4 -4
  61. package/dist/cli/services/kitchen-sink/async.js +2 -2
  62. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  63. package/dist/cli/services/kitchen-sink/static.js +2 -2
  64. package/dist/cli/services/upgrade.js +3 -3
  65. package/dist/cli/services/upgrade.test.js +5 -7
  66. package/dist/{custom-oclif-loader-24E7DVTH.js → custom-oclif-loader-K3EL2OAR.js} +2 -2
  67. package/dist/{error-handler-7V7HCPFM.js → error-handler-BADTRHFV.js} +8 -9
  68. package/dist/hooks/postrun.js +8 -8
  69. package/dist/hooks/prerun.js +10 -8
  70. package/dist/index.js +7204 -6858
  71. package/dist/{local-WHLQPZNS.js → local-OPE3NHTK.js} +2 -2
  72. package/dist/{node-AJELTNRR.js → node-KXPRSMZI.js} +12 -13
  73. package/dist/{node-package-manager-KULBOPYH.js → node-package-manager-I364XLRB.js} +3 -3
  74. package/dist/tsconfig.tsbuildinfo +1 -1
  75. package/dist/{ui-B4IIF7YO.js → ui-OLBMRQ45.js} +2 -2
  76. package/dist/{workerd-PWW3BB6B.js → workerd-U7MSRKWK.js} +12 -13
  77. package/oclif.manifest.json +46 -22
  78. package/package.json +6 -6
  79. package/dist/chunk-VTTVH23Q.js +0 -63
@@ -6,7 +6,7 @@ import {
6
6
  remove,
7
7
  setLastSeenAuthMethod,
8
8
  setLastSeenUserIdAfterAuth
9
- } from "./chunk-VIMSAJBK.js";
9
+ } from "./chunk-WXEVFXY4.js";
10
10
  import {
11
11
  BugError,
12
12
  getPartnersToken,
@@ -14,7 +14,7 @@ import {
14
14
  outputContent,
15
15
  outputDebug,
16
16
  outputToken
17
- } from "./chunk-V4FD5VKG.js";
17
+ } from "./chunk-R3OLOJM7.js";
18
18
  import {
19
19
  init_cjs_shims
20
20
  } from "./chunk-PKR7KJ6P.js";
@@ -104,4 +104,4 @@ export {
104
104
  ensureAuthenticatedBusinessPlatform,
105
105
  logout
106
106
  };
107
- //# sourceMappingURL=chunk-NNHELYN3.js.map
107
+ //# sourceMappingURL=chunk-247SAMPG.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-WHYTGJJU.js";
3
+ } from "./chunk-WRB46MIH.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-LH3QC4DP.js";
6
+ } from "./chunk-GSC3DSZN.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-V4FD5VKG.js";
10
+ } from "./chunk-R3OLOJM7.js";
11
11
  import {
12
12
  require_lib
13
13
  } from "./chunk-VSKRQ3JT.js";
@@ -26,7 +26,7 @@ init_cjs_shims();
26
26
  init_cjs_shims();
27
27
  import { fileURLToPath } from "node:url";
28
28
  async function launchCLI(options) {
29
- let { errorHandler } = await import("./error-handler-7V7HCPFM.js"), { isDevelopment } = await import("./local-WHLQPZNS.js"), oclif = await import("./lib-SGEWXU7Z.js"), { ShopifyConfig } = await import("./custom-oclif-loader-24E7DVTH.js");
29
+ let { errorHandler } = await import("./error-handler-BADTRHFV.js"), { isDevelopment } = await import("./local-OPE3NHTK.js"), oclif = await import("./lib-SGEWXU7Z.js"), { ShopifyConfig } = await import("./custom-oclif-loader-K3EL2OAR.js");
30
30
  isDevelopment() && (oclif.default.settings.debug = !0);
31
31
  try {
32
32
  let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
@@ -38,11 +38,11 @@ async function launchCLI(options) {
38
38
 
39
39
  // ../cli-kit/dist/public/node/cli.js
40
40
  var import_core = __toESM(require_lib());
41
- async function warnIfOldNodeVersion(versions = process.versions) {
41
+ async function exitIfOldNodeVersion(versions = process.versions) {
42
42
  let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
43
43
  if (nodeMajorVersion < 18) {
44
- let { renderWarning } = await import("./ui-B4IIF7YO.js");
45
- renderWarning({
44
+ let { renderError } = await import("./ui-OLBMRQ45.js");
45
+ renderError({
46
46
  headline: "Upgrade to a supported Node version now.",
47
47
  body: [
48
48
  `Node ${nodeMajorVersion} has reached end-of-life and poses security risks. When you upgrade to a`,
@@ -55,7 +55,7 @@ async function warnIfOldNodeVersion(versions = process.versions) {
55
55
  { char: "," },
56
56
  "you'll be able to use Shopify CLI without interruption."
57
57
  ]
58
- });
58
+ }), process.exit(1);
59
59
  }
60
60
  }
61
61
  function setupEnvironmentVariables(options, argv = process.argv, env = process.env) {
@@ -65,10 +65,10 @@ function forceNoColor(argv = process.argv, env = process.env) {
65
65
  (argv.includes("--no-color") || isTruthy(env.NO_COLOR) || isTruthy(env.SHOPIFY_FLAG_NO_COLOR) || env.TERM === "dumb") && (env.FORCE_COLOR = "0");
66
66
  }
67
67
  async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env = process.env, versions = process.versions) {
68
- return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
68
+ return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
69
69
  }
70
70
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
71
- let { findUpAndReadPackageJson } = await import("./node-package-manager-KULBOPYH.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-I364XLRB.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
72
72
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
73
73
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
74
74
  argv.splice(initIndex2, 0, "init");
@@ -117,4 +117,4 @@ export {
117
117
  jsonFlag,
118
118
  ClearCache
119
119
  };
120
- //# sourceMappingURL=chunk-KRPDLCMT.js.map
120
+ //# sourceMappingURL=chunk-2LCBNWGB.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-EFDLFMUG.js";
3
+ } from "./chunk-F5WG7YRC.js";
4
4
  import {
5
5
  outputInfo
6
- } from "./chunk-V4FD5VKG.js";
6
+ } from "./chunk-R3OLOJM7.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -17,4 +17,4 @@ async function versionService() {
17
17
  export {
18
18
  versionService
19
19
  };
20
- //# sourceMappingURL=chunk-3FPXLCF5.js.map
20
+ //# sourceMappingURL=chunk-3HWN5QZP.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-WHYTGJJU.js";
3
+ } from "./chunk-WRB46MIH.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-V4FD5VKG.js";
7
+ } from "./chunk-R3OLOJM7.js";
8
8
  import {
9
9
  require_lib
10
10
  } from "./chunk-VSKRQ3JT.js";
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
83
83
  export {
84
84
  CommandFlags
85
85
  };
86
- //# sourceMappingURL=chunk-WCTQ65EF.js.map
86
+ //# sourceMappingURL=chunk-7MKO46I5.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-3CB5D2ZO.js";
3
+ } from "./chunk-GDAGNYN6.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkAsync
27
27
  };
28
- //# sourceMappingURL=chunk-QGAHQAXG.js.map
28
+ //# sourceMappingURL=chunk-AS4YOVZB.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  list
3
- } from "./chunk-7DV7FO6D.js";
3
+ } from "./chunk-YWGDPGEE.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var List = class extends base_command_default {
25
25
  export {
26
26
  List
27
27
  };
28
- //# sourceMappingURL=chunk-HV2KH53A.js.map
28
+ //# sourceMappingURL=chunk-AW63CHBD.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-NNHELYN3.js";
3
+ } from "./chunk-247SAMPG.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-V4FD5VKG.js";
9
+ } from "./chunk-R3OLOJM7.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-Y3V7CDDP.js.map
28
+ //# sourceMappingURL=chunk-CUEBFCNF.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-3FPXLCF5.js";
3
+ } from "./chunk-3HWN5QZP.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
22
22
  export {
23
23
  Version
24
24
  };
25
- //# sourceMappingURL=chunk-CBIPUP4Q.js.map
25
+ //# sourceMappingURL=chunk-DSEDXHIL.js.map
@@ -4,9 +4,9 @@ import {
4
4
 
5
5
  // ../cli-kit/dist/public/common/version.js
6
6
  init_cjs_shims();
7
- var CLI_KIT_VERSION = "3.75.4";
7
+ var CLI_KIT_VERSION = "3.76.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-EFDLFMUG.js.map
12
+ //# sourceMappingURL=chunk-F5WG7YRC.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-25IMI7TH.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-EFDLFMUG.js";
8
+ } from "./chunk-F5WG7YRC.js";
9
9
  import {
10
10
  Environment,
11
11
  firstPartyDev,
@@ -14,7 +14,7 @@ import {
14
14
  outputDebug,
15
15
  runWithTimer,
16
16
  serviceEnvironment
17
- } from "./chunk-V4FD5VKG.js";
17
+ } from "./chunk-R3OLOJM7.js";
18
18
  import {
19
19
  __commonJS,
20
20
  __require,
@@ -27408,7 +27408,7 @@ ${result.sanitizedHeaders}
27408
27408
  }
27409
27409
 
27410
27410
  // ../cli-kit/dist/public/node/http.js
27411
- var import_form_data = __toESM(require_form_data(), 1);
27411
+ var import_form_data = __toESM(require_form_data());
27412
27412
 
27413
27413
  // ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/index.js
27414
27414
  init_cjs_shims();
@@ -31271,4 +31271,4 @@ mime-types/index.js:
31271
31271
  * MIT Licensed
31272
31272
  *)
31273
31273
  */
31274
- //# sourceMappingURL=chunk-O5UY3K6F.js.map
31274
+ //# sourceMappingURL=chunk-FKVY6WNT.js.map
@@ -8,19 +8,19 @@ import {
8
8
  ensureAuthenticatedAdmin,
9
9
  ensureAuthenticatedBusinessPlatform,
10
10
  logout
11
- } from "./chunk-NNHELYN3.js";
11
+ } from "./chunk-247SAMPG.js";
12
12
  import {
13
13
  base_command_default
14
- } from "./chunk-WHYTGJJU.js";
14
+ } from "./chunk-WRB46MIH.js";
15
15
  import {
16
16
  fanoutHooks,
17
17
  requestIdsCollection
18
- } from "./chunk-2OX7ESM2.js";
18
+ } from "./chunk-OLVUPFMV.js";
19
19
  import {
20
20
  businessPlatformFqdn,
21
21
  normalizeStoreFqdn,
22
22
  partnersFqdn
23
- } from "./chunk-VIMSAJBK.js";
23
+ } from "./chunk-WXEVFXY4.js";
24
24
  import {
25
25
  ClientError,
26
26
  GraphQLClient,
@@ -31,15 +31,20 @@ import {
31
31
  retryAwareRequest,
32
32
  sanitizeURL,
33
33
  sanitizedHeadersOutput
34
- } from "./chunk-O5UY3K6F.js";
34
+ } from "./chunk-FKVY6WNT.js";
35
35
  import {
36
+ CLI_KIT_VERSION
37
+ } from "./chunk-F5WG7YRC.js";
38
+ import {
39
+ cacheRetrieveOrRepopulate,
36
40
  findUpAndReadPackageJson,
37
41
  getPackageManager,
38
42
  installNodeModules,
39
43
  packageManagerFromUserAgent,
40
44
  readAndParsePackageJson,
45
+ timeIntervalToMilliseconds,
41
46
  writePackageJSON
42
- } from "./chunk-LH3QC4DP.js";
47
+ } from "./chunk-GSC3DSZN.js";
43
48
  import {
44
49
  AbortError,
45
50
  BugError,
@@ -61,6 +66,7 @@ import {
61
66
  isTerminalInteractive,
62
67
  linesToColumns,
63
68
  mkdir,
69
+ nonRandomUUID,
64
70
  outputContent,
65
71
  outputDebug,
66
72
  outputInfo,
@@ -83,7 +89,7 @@ import {
83
89
  stringifyMessage,
84
90
  writeFile,
85
91
  writeFileSync
86
- } from "./chunk-V4FD5VKG.js";
92
+ } from "./chunk-R3OLOJM7.js";
87
93
  import {
88
94
  basename,
89
95
  cwd,
@@ -136477,8 +136483,33 @@ ${sanitizedHeadersOutput(headers)}\n
136477
136483
  to ${sanitizeURL(url)}`);
136478
136484
  }
136479
136485
  function sanitizeVariables(variables) {
136480
- let result = { ...variables };
136481
- return "apiKey" in result && (result.apiKey = "*****"), JSON.stringify(result, null, 2);
136486
+ let result = { ...variables }, sanitizedResult = sanitizeDeepVariables(result, ["apiKey", "serialized_script"]);
136487
+ return JSON.stringify(sanitizedResult, null, 2);
136488
+ }
136489
+ function sanitizeDeepVariables(value, sensitiveKeys) {
136490
+ if (typeof value == "string")
136491
+ try {
136492
+ let parsed = JSON.parse(value);
136493
+ if (typeof parsed == "object" && parsed !== null) {
136494
+ let sanitized = sanitizeDeepVariables(parsed, sensitiveKeys);
136495
+ return JSON.stringify(sanitized, null);
136496
+ }
136497
+ } catch {
136498
+ return value;
136499
+ }
136500
+ if (typeof value != "object" || value === null)
136501
+ return value;
136502
+ if (Array.isArray(value))
136503
+ return value.map((item) => sanitizeDeepVariables(item, sensitiveKeys));
136504
+ let result = {};
136505
+ for (let [key, val] of Object.entries(value)) {
136506
+ if (sensitiveKeys.includes(key) && typeof val == "string") {
136507
+ result[key] = "*****";
136508
+ continue;
136509
+ }
136510
+ result[key] = sanitizeDeepVariables(val, sensitiveKeys);
136511
+ }
136512
+ return result;
136482
136513
  }
136483
136514
  function errorHandler(api) {
136484
136515
  return (error, requestId) => {
@@ -136500,7 +136531,7 @@ Request ID: ${requestId}
136500
136531
 
136501
136532
  // ../cli-kit/dist/public/node/api/graphql.js
136502
136533
  async function performGraphQLRequest(options2) {
136503
- let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler } = options2, headers = {
136534
+ let { token, addedHeaders, queryAsString, variables, api, url, responseOptions, unauthorizedHandler, cacheOptions } = options2, headers = {
136504
136535
  ...addedHeaders,
136505
136536
  ...buildHeaders(token)
136506
136537
  };
@@ -136512,11 +136543,17 @@ async function performGraphQLRequest(options2) {
136512
136543
  } catch (error) {
136513
136544
  throw error instanceof ClientError && await logLastRequestIdFromResponse(error.response), error;
136514
136545
  }
136515
- };
136516
- return runWithTimer("cmd_all_timing_network_ms")(async () => {
136546
+ }, executeWithTimer = () => runWithTimer("cmd_all_timing_network_ms")(async () => {
136517
136547
  let response = await retryAwareRequest({ request: performRequest, url }, responseOptions?.handleErrors === !1 ? void 0 : errorHandler(api), unauthorizedHandler);
136518
136548
  return responseOptions?.onResponse && responseOptions.onResponse(response), response.data;
136519
136549
  });
136550
+ if (cacheOptions === void 0)
136551
+ return executeWithTimer();
136552
+ let { cacheTTL, cacheExtraKey, cacheStore } = cacheOptions, queryHash = nonRandomUUID(queryAsString), variablesHash = nonRandomUUID(JSON.stringify(variables ?? {})), cacheKey = `q-${queryHash}-${variablesHash}-${CLI_KIT_VERSION}-${cacheExtraKey ?? ""}`, result = await cacheRetrieveOrRepopulate(cacheKey, async () => {
136553
+ let result2 = await executeWithTimer();
136554
+ return JSON.stringify(result2);
136555
+ }, timeIntervalToMilliseconds(cacheTTL), cacheStore);
136556
+ return JSON.parse(result);
136520
136557
  }
136521
136558
  async function logLastRequestIdFromResponse(response) {
136522
136559
  try {
@@ -136892,12 +136929,13 @@ async function setupRequest(token) {
136892
136929
  responseOptions: { onResponse: handleDeprecations }
136893
136930
  };
136894
136931
  }
136895
- async function partnersRequest(query, token, variables) {
136932
+ async function partnersRequest(query, token, variables, cacheOptions) {
136896
136933
  let opts = await setupRequest(token);
136897
136934
  return limiter.schedule(() => graphqlRequest({
136898
136935
  ...opts,
136899
136936
  query,
136900
- variables
136937
+ variables,
136938
+ cacheOptions
136901
136939
  }));
136902
136940
  }
136903
136941
  async function partnersRequestDoc(query, token, variables) {
@@ -136927,18 +136965,20 @@ async function setupRequest2(token) {
136927
136965
  responseOptions: { onResponse: handleDeprecations }
136928
136966
  };
136929
136967
  }
136930
- async function businessPlatformRequest(query, token, variables) {
136968
+ async function businessPlatformRequest(query, token, variables, cacheOptions) {
136931
136969
  return graphqlRequest({
136932
136970
  ...await setupRequest2(token),
136933
136971
  query,
136934
- variables
136972
+ variables,
136973
+ cacheOptions
136935
136974
  });
136936
136975
  }
136937
- async function businessPlatformRequestDoc(query, token, variables) {
136976
+ async function businessPlatformRequestDoc(query, token, variables, cacheOptions) {
136938
136977
  return graphqlRequestDoc({
136939
136978
  ...await setupRequest2(token),
136940
136979
  query,
136941
- variables
136980
+ variables,
136981
+ cacheOptions
136942
136982
  });
136943
136983
  }
136944
136984
  async function setupOrganizationsRequest(token, organizationId) {
@@ -142479,4 +142519,4 @@ export {
142479
142519
  getDebugBannerLine,
142480
142520
  getUtilityBannerlines
142481
142521
  };
142482
- //# sourceMappingURL=chunk-DFK6H6Q2.js.map
142522
+ //# sourceMappingURL=chunk-FSL57OBM.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-LRTITZPZ.js";
3
+ } from "./chunk-IGXCBQCI.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  require_lib
9
9
  } from "./chunk-VSKRQ3JT.js";
@@ -45,4 +45,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
45
45
  export {
46
46
  Search
47
47
  };
48
- //# sourceMappingURL=chunk-VH3W76GN.js.map
48
+ //# sourceMappingURL=chunk-FVI46GAE.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-V4FD5VKG.js";
4
+ } from "./chunk-R3OLOJM7.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -43,4 +43,4 @@ async function asyncTasks() {
43
43
  export {
44
44
  asyncTasks
45
45
  };
46
- //# sourceMappingURL=chunk-3CB5D2ZO.js.map
46
+ //# sourceMappingURL=chunk-GDAGNYN6.js.map
@@ -21,7 +21,7 @@ import {
21
21
  require_get_stream,
22
22
  runWithTimer,
23
23
  writeFile
24
- } from "./chunk-V4FD5VKG.js";
24
+ } from "./chunk-R3OLOJM7.js";
25
25
  import {
26
26
  dirname,
27
27
  joinPath
@@ -13439,7 +13439,7 @@ async function latestVersion(packageName, options) {
13439
13439
  }
13440
13440
 
13441
13441
  // ../cli-kit/dist/public/node/node-package-manager.js
13442
- var import_semver3 = __toESM(require_semver()), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
13442
+ var import_semver3 = __toESM(require_semver(), 1), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], lockfilesByManager = {
13443
13443
  yarn: yarnLockfile,
13444
13444
  npm: npmLockfile,
13445
13445
  pnpm: pnpmLockfile,
@@ -13684,6 +13684,7 @@ export {
13684
13684
  cacheStore,
13685
13685
  cacheRetrieve,
13686
13686
  cacheClear,
13687
+ timeIntervalToMilliseconds,
13687
13688
  runAtMinimumInterval,
13688
13689
  runWithRateLimit,
13689
13690
  yarnLockfile,
@@ -13748,4 +13749,4 @@ deep-extend/lib/deep-extend.js:
13748
13749
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13749
13750
  *)
13750
13751
  */
13751
- //# sourceMappingURL=chunk-LH3QC4DP.js.map
13752
+ //# sourceMappingURL=chunk-GSC3DSZN.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  cliInstallCommand
3
- } from "./chunk-ARR2ZV5X.js";
3
+ } from "./chunk-WF3LQ6VY.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  renderInfo
9
- } from "./chunk-V4FD5VKG.js";
9
+ } from "./chunk-R3OLOJM7.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
34
34
  export {
35
35
  Upgrade
36
36
  };
37
- //# sourceMappingURL=chunk-OSDKLELI.js.map
37
+ //# sourceMappingURL=chunk-IB2GR2NI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-V4FD5VKG.js";
3
+ } from "./chunk-R3OLOJM7.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-PKR7KJ6P.js";
@@ -15,4 +15,4 @@ async function searchService(query) {
15
15
  export {
16
16
  searchService
17
17
  };
18
- //# sourceMappingURL=chunk-LRTITZPZ.js.map
18
+ //# sourceMappingURL=chunk-IGXCBQCI.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-R6ST4Q4K.js";
3
+ } from "./chunk-M7TO4P43.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-R27Y5T4H.js";
6
+ } from "./chunk-QFEXM6TL.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-3CB5D2ZO.js";
9
+ } from "./chunk-GDAGNYN6.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-WHYTGJJU.js";
12
+ } from "./chunk-WRB46MIH.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-PKR7KJ6P.js";
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
34
34
  export {
35
35
  KitchenSinkAll
36
36
  };
37
- //# sourceMappingURL=chunk-EPSGPKFO.js.map
37
+ //# sourceMappingURL=chunk-IV3Z7KW6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-R27Y5T4H.js";
3
+ } from "./chunk-QFEXM6TL.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkStatic
27
27
  };
28
- //# sourceMappingURL=chunk-LWZVD7VH.js.map
28
+ //# sourceMappingURL=chunk-KRBTUAPG.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-7DV7FO6D.js";
3
+ } from "./chunk-YWGDPGEE.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-WHYTGJJU.js";
6
+ } from "./chunk-WRB46MIH.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Generate = class extends base_command_default {
25
25
  export {
26
26
  Generate
27
27
  };
28
- //# sourceMappingURL=chunk-4IY25QPC.js.map
28
+ //# sourceMappingURL=chunk-LQLKKAEX.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-V4FD5VKG.js";
8
+ } from "./chunk-R3OLOJM7.js";
9
9
  import {
10
10
  init_cjs_shims
11
11
  } from "./chunk-PKR7KJ6P.js";
@@ -175,4 +175,4 @@ async function prompts() {
175
175
  export {
176
176
  prompts
177
177
  };
178
- //# sourceMappingURL=chunk-R6ST4Q4K.js.map
178
+ //# sourceMappingURL=chunk-M7TO4P43.js.map