@shopify/cli 3.79.1 → 3.80.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 (103) hide show
  1. package/dist/{chokidar-OATAHMV6.js → chokidar-TTCYG5AA.js} +3 -3
  2. package/dist/{chokidar-BLUAYFAB.js → chokidar-XUA2BN3J.js} +3 -3
  3. package/dist/{chunk-XXUOBZLX.js → chunk-2YZW7TJK.js} +3 -3
  4. package/dist/{chunk-DZ7XZDWD.js → chunk-37WBE3RC.js} +3 -3
  5. package/dist/{chunk-MW7RWHY5.js → chunk-3GXB4ZRP.js} +4 -4
  6. package/dist/{chunk-ZMHZBZMW.js → chunk-3MQT2ETC.js} +4 -4
  7. package/dist/{chunk-ZUCWDIGE.js → chunk-57Q6OQG4.js} +2 -2
  8. package/dist/{chunk-UTDSSCPI.js → chunk-5AFYDRV4.js} +886 -574
  9. package/dist/{chunk-IW2W7BT2.js → chunk-6LR4FWOA.js} +3 -3
  10. package/dist/{chunk-CFWBUC64.js → chunk-7H74TBA2.js} +3 -3
  11. package/dist/{chunk-B3YWYURY.js → chunk-7IK72W75.js} +3 -3
  12. package/dist/{chunk-4YS5JU6T.js → chunk-AO63XITX.js} +3 -3
  13. package/dist/{chunk-QV4LZSZK.js → chunk-AZ6Y4YZT.js} +103 -92
  14. package/dist/{chunk-3ZBLWNTJ.js → chunk-BUJJ6TMB.js} +4 -4
  15. package/dist/{chunk-Z5MHHPBU.js → chunk-EDUZEBZD.js} +4 -4
  16. package/dist/{chunk-MKNQBR63.js → chunk-F43GEFQ6.js} +3 -3
  17. package/dist/{chunk-EMPP4I5H.js → chunk-F7J5CUMZ.js} +2 -2
  18. package/dist/{chunk-WZ257YHY.js → chunk-G4BLVBQD.js} +4 -4
  19. package/dist/{chunk-NBCIERDR.js → chunk-GD4RPFTP.js} +4 -4
  20. package/dist/{chunk-5B4X6PWS.js → chunk-GFHULNRP.js} +8 -8
  21. package/dist/{chunk-7ZJSTNNB.js → chunk-GTREEQHM.js} +5 -5
  22. package/dist/{chunk-ZNGCM64E.js → chunk-H352PF4V.js} +59 -24
  23. package/dist/{chunk-R65RM3GF.js → chunk-IDQNIJ3J.js} +5 -5
  24. package/dist/{chunk-PFMD3KQP.js → chunk-JH7IS4YF.js} +2 -2
  25. package/dist/{chunk-GINKNYRN.js → chunk-JSVOLQ6E.js} +6 -6
  26. package/dist/{chunk-7BFQPX6U.js → chunk-MMX2XAE3.js} +5 -5
  27. package/dist/{chunk-IHRJ645Y.js → chunk-MWIL24VU.js} +3 -3
  28. package/dist/{chunk-JED5Q5EJ.js → chunk-NRK4JPTC.js} +5 -5
  29. package/dist/{chunk-WMOUKE4L.js → chunk-NWFRDDT5.js} +11 -11
  30. package/dist/{chunk-GI77RADE.js → chunk-OGBA25HE.js} +3 -3
  31. package/dist/{chunk-MP5RLDFN.js → chunk-OWRPRJTD.js} +2 -2
  32. package/dist/{chunk-B67HZYEC.js → chunk-PAKKG4IK.js} +9 -9
  33. package/dist/{chunk-OP4DJUZ6.js → chunk-PCSYEXIP.js} +6 -6
  34. package/dist/{chunk-2BQWY5ZH.js → chunk-R3CVGGX7.js} +2 -2
  35. package/dist/{chunk-2DHJN6XL.js → chunk-REH3UHFP.js} +2 -2
  36. package/dist/{chunk-KPKJOJKL.js → chunk-S5NF3A56.js} +3 -3
  37. package/dist/{chunk-L7AFSENO.js → chunk-SUFYMVTC.js} +2 -2
  38. package/dist/{chunk-JA4N4NXM.js → chunk-TC3YYLZY.js} +4 -4
  39. package/dist/{chunk-5DBS6QOU.js → chunk-TJM3YBLQ.js} +2 -2
  40. package/dist/{chunk-QJMVJ2YT.js → chunk-VR4MPAR3.js} +7 -7
  41. package/dist/{chunk-VTNMKNMC.js → chunk-XYKT7ZUU.js} +2 -2
  42. package/dist/{chunk-H44KHRQ3.js → chunk-XZ7LRLSW.js} +7 -7
  43. package/dist/{chunk-73GDKVV2.js → chunk-YPF3IQMR.js} +2 -2
  44. package/dist/{chunk-Y53XECL6.js → chunk-ZEM3T4UY.js} +1 -7
  45. package/dist/cli/commands/auth/logout.js +16 -16
  46. package/dist/cli/commands/auth/logout.test.js +18 -18
  47. package/dist/cli/commands/cache/clear.js +15 -15
  48. package/dist/cli/commands/debug/command-flags.js +15 -15
  49. package/dist/cli/commands/docs/generate.js +15 -15
  50. package/dist/cli/commands/docs/generate.test.js +16 -16
  51. package/dist/cli/commands/help.js +15 -15
  52. package/dist/cli/commands/kitchen-sink/async.js +16 -16
  53. package/dist/cli/commands/kitchen-sink/async.test.js +17 -17
  54. package/dist/cli/commands/kitchen-sink/index.js +18 -18
  55. package/dist/cli/commands/kitchen-sink/index.test.js +19 -19
  56. package/dist/cli/commands/kitchen-sink/prompts.js +16 -16
  57. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -17
  58. package/dist/cli/commands/kitchen-sink/static.js +16 -16
  59. package/dist/cli/commands/kitchen-sink/static.test.js +17 -17
  60. package/dist/cli/commands/notifications/generate.js +16 -16
  61. package/dist/cli/commands/notifications/list.js +16 -16
  62. package/dist/cli/commands/search.js +16 -16
  63. package/dist/cli/commands/upgrade.js +16 -16
  64. package/dist/cli/commands/upgrade.test.js +1 -1
  65. package/dist/cli/commands/version.js +16 -16
  66. package/dist/cli/commands/version.test.js +17 -17
  67. package/dist/cli/services/commands/notifications.js +11 -11
  68. package/dist/cli/services/commands/search.js +7 -7
  69. package/dist/cli/services/commands/search.test.js +8 -8
  70. package/dist/cli/services/commands/version.js +8 -8
  71. package/dist/cli/services/commands/version.test.js +10 -10
  72. package/dist/cli/services/kitchen-sink/async.js +7 -7
  73. package/dist/cli/services/kitchen-sink/prompts.js +7 -7
  74. package/dist/cli/services/kitchen-sink/static.js +7 -7
  75. package/dist/cli/services/upgrade.js +8 -8
  76. package/dist/cli/services/upgrade.test.js +10 -10
  77. package/dist/{custom-oclif-loader-MZ3GZ32O.js → custom-oclif-loader-HQIYD7VA.js} +7 -7
  78. package/dist/data/filters.json +108 -1
  79. package/dist/data/latest.json +1 -1
  80. package/dist/data/objects.json +143 -1
  81. package/dist/data/setting.json +6 -1
  82. package/dist/data/tags.json +30 -18
  83. package/dist/{del-2SYBVRHB.js → del-YIU34DZ5.js} +4 -4
  84. package/dist/{devtools-BA4WST2D.js → devtools-EVCDECOU.js} +2 -2
  85. package/dist/{devtools-6LOQORRT.js → devtools-J4QAI6HR.js} +2 -2
  86. package/dist/{error-handler-MTFIQP6U.js → error-handler-BQ3ZQYX7.js} +13 -13
  87. package/dist/hooks/postrun.js +11 -11
  88. package/dist/hooks/prerun.js +14 -13
  89. package/dist/{http-proxy-L3MCJRQS.js → http-proxy-KGLXPNEY.js} +1 -9
  90. package/dist/index.js +153372 -16081
  91. package/dist/{lib-MWWAATIC.js → lib-MIBR2T7P.js} +5 -5
  92. package/dist/{local-34IWAIJY.js → local-F5VFMUS5.js} +7 -7
  93. package/dist/{morph-MDY3DSJL.js → morph-EB6ON4RE.js} +45 -45
  94. package/dist/{node-6M2Y6S6K.js → node-NS4BEHX4.js} +17 -17
  95. package/dist/{node-package-manager-S5BR3SQ7.js → node-package-manager-XTTAGATX.js} +8 -8
  96. package/dist/out-5KP5WGIK.js +7 -0
  97. package/dist/{path-GWAZZN2N.js → path-2K5HIMHZ.js} +2 -2
  98. package/dist/tsconfig.tsbuildinfo +1 -1
  99. package/dist/{ui-FJ2QLK3P.js → ui-A4PGXQX4.js} +7 -7
  100. package/dist/{workerd-N5O22HSJ.js → workerd-WQC6GRYP.js} +17 -17
  101. package/oclif.manifest.json +5 -21
  102. package/package.json +7 -7
  103. package/dist/out-AZBX4ITJ.js +0 -7
@@ -7,14 +7,14 @@ import {
7
7
  nonRandomUUID,
8
8
  shopifyFetch,
9
9
  z
10
- } from "./chunk-JED5Q5EJ.js";
10
+ } from "./chunk-NRK4JPTC.js";
11
11
  import {
12
12
  getPackageManager,
13
13
  getSession,
14
14
  packageManagerFromUserAgent,
15
15
  removeSession,
16
16
  setSession
17
- } from "./chunk-IW2W7BT2.js";
17
+ } from "./chunk-6LR4FWOA.js";
18
18
  import {
19
19
  AbortError,
20
20
  BugError,
@@ -45,10 +45,10 @@ import {
45
45
  sessionConstants,
46
46
  spinFqdn,
47
47
  themeToken
48
- } from "./chunk-QV4LZSZK.js";
48
+ } from "./chunk-AZ6Y4YZT.js";
49
49
  import {
50
50
  cwd
51
- } from "./chunk-ZUCWDIGE.js";
51
+ } from "./chunk-57Q6OQG4.js";
52
52
  import {
53
53
  __commonJS,
54
54
  __require,
@@ -833,7 +833,7 @@ async function exchangeDeviceCodeForAccessToken(deviceCode) {
833
833
  client_id: clientId2
834
834
  });
835
835
  if (tokenResult.isErr())
836
- return err(tokenResult.error);
836
+ return err(tokenResult.error.error);
837
837
  let identityToken = buildIdentityToken(tokenResult.value);
838
838
  return ok(identityToken);
839
839
  }
@@ -846,25 +846,25 @@ async function requestAppToken(api, token, scopes = [], store2) {
846
846
  audience: appId,
847
847
  scope: scopes.join(" "),
848
848
  subject_token: token,
849
- ...api === "admin" && { destination: `https://${store2}/admin` }
849
+ ...api === "admin" && { destination: `https://${store2}/admin`, store: store2 }
850
850
  }, identifier = appId;
851
851
  api === "admin" && store2 && (identifier = `${store2}-${appId}`);
852
852
  let value = (await tokenRequest(params)).mapError(tokenRequestErrorHandler).valueOrBug(), appToken = buildApplicationToken(value);
853
853
  return { [identifier]: appToken };
854
854
  }
855
- function tokenRequestErrorHandler(error) {
856
- let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store.
855
+ function tokenRequestErrorHandler({ error, store: store2 }) {
856
+ let invalidTargetErrorMessage = `You are not authorized to use the CLI to develop in the provided store${store2 ? `: ${store2}` : "."}
857
857
 
858
858
  You can't use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store.
859
859
 
860
- If you're the store owner, then you need to log in to the store directly using the store URL at least once before you log in using Shopify CLI.Logging in to the Shopify admin directly connects the development store with your Shopify login.`;
860
+ If you're the store owner, then you need to log in to the store directly using the store URL at least once before you log in using Shopify CLI. Logging in to the Shopify admin directly connects the development store with your Shopify login.`;
861
861
  return error === "invalid_grant" ? new InvalidGrantError() : error === "invalid_request" ? new InvalidRequestError() : error === "invalid_target" ? new InvalidTargetError(invalidTargetErrorMessage) : new AbortError(error);
862
862
  }
863
863
  async function tokenRequest(params) {
864
864
  let fqdn = await identityFqdn(), url4 = new URL(`https://${fqdn}/oauth/token`);
865
865
  url4.search = new URLSearchParams(Object.entries(params)).toString();
866
866
  let res = await shopifyFetch(url4.href, { method: "POST" }), payload = await res.json();
867
- return res.ok ? ok(payload) : err(payload.error);
867
+ return res.ok ? ok(payload) : err({ error: payload.error, store: params.store });
868
868
  }
869
869
  function buildIdentityToken(result, existingUserId) {
870
870
  let userId2 = existingUserId ?? (result.id_token ? decodeJwt(result.id_token).sub : void 0);
@@ -1192,4 +1192,4 @@ export {
1192
1192
  getEnvironmentData,
1193
1193
  getSensitiveEnvironmentData
1194
1194
  };
1195
- //# sourceMappingURL=chunk-WMOUKE4L.js.map
1195
+ //# sourceMappingURL=chunk-NWFRDDT5.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-PFMD3KQP.js";
3
+ } from "./chunk-JH7IS4YF.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-H44KHRQ3.js";
6
+ } from "./chunk-XZ7LRLSW.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-GI77RADE.js.map
28
+ //# sourceMappingURL=chunk-OGBA25HE.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  require_merge2,
3
3
  require_out
4
- } from "./chunk-5DBS6QOU.js";
4
+ } from "./chunk-TJM3YBLQ.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require,
@@ -629,4 +629,4 @@ export {
629
629
  require_slash,
630
630
  require_globby
631
631
  };
632
- //# sourceMappingURL=chunk-MP5RLDFN.js.map
632
+ //# sourceMappingURL=chunk-OWRPRJTD.js.map
@@ -4,16 +4,16 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-OP4DJUZ6.js";
7
+ } from "./chunk-PCSYEXIP.js";
8
8
  import {
9
9
  getEnvironmentData
10
- } from "./chunk-WMOUKE4L.js";
10
+ } from "./chunk-NWFRDDT5.js";
11
11
  import {
12
12
  CLI_KIT_VERSION
13
- } from "./chunk-L7AFSENO.js";
13
+ } from "./chunk-SUFYMVTC.js";
14
14
  import {
15
15
  runWithRateLimit
16
- } from "./chunk-IW2W7BT2.js";
16
+ } from "./chunk-6LR4FWOA.js";
17
17
  import {
18
18
  AbortSilentError,
19
19
  CancelExecution,
@@ -28,17 +28,17 @@ import {
28
28
  reportingRateLimit,
29
29
  require_stacktracey,
30
30
  shouldReportErrorAsUnexpected
31
- } from "./chunk-QV4LZSZK.js";
31
+ } from "./chunk-AZ6Y4YZT.js";
32
32
  import {
33
33
  cwd,
34
34
  isAbsolutePath,
35
35
  joinPath,
36
36
  normalizePath,
37
37
  relativePath
38
- } from "./chunk-ZUCWDIGE.js";
38
+ } from "./chunk-57Q6OQG4.js";
39
39
  import {
40
40
  require_lib
41
- } from "./chunk-UTDSSCPI.js";
41
+ } from "./chunk-5AFYDRV4.js";
42
42
  import {
43
43
  __commonJS,
44
44
  __require,
@@ -1832,7 +1832,7 @@ metadata was removed`
1832
1832
  var ms = this.ms * Math.pow(this.factor, this.attempts++);
1833
1833
  if (this.jitter) {
1834
1834
  var rand = Math.random(), deviation = Math.floor(rand * this.jitter * ms);
1835
- ms = Math.floor(rand * 10) & 1 ? ms + deviation : ms - deviation;
1835
+ ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation;
1836
1836
  }
1837
1837
  return Math.min(ms, this.max) | 0;
1838
1838
  }, Backoff.prototype.reset = function() {
@@ -2144,4 +2144,4 @@ export {
2144
2144
  registerCleanBugsnagErrorsFromWithinPlugins,
2145
2145
  addBugsnagMetadata
2146
2146
  };
2147
- //# sourceMappingURL=chunk-B67HZYEC.js.map
2147
+ //# sourceMappingURL=chunk-PAKKG4IK.js.map
@@ -2,16 +2,16 @@ import {
2
2
  getEnvironmentData,
3
3
  getLastSeenUserIdAfterAuth,
4
4
  getSensitiveEnvironmentData
5
- } from "./chunk-WMOUKE4L.js";
5
+ } from "./chunk-NWFRDDT5.js";
6
6
  import {
7
7
  fetch
8
- } from "./chunk-JED5Q5EJ.js";
8
+ } from "./chunk-NRK4JPTC.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-L7AFSENO.js";
11
+ } from "./chunk-SUFYMVTC.js";
12
12
  import {
13
13
  runWithRateLimit
14
- } from "./chunk-IW2W7BT2.js";
14
+ } from "./chunk-6LR4FWOA.js";
15
15
  import {
16
16
  alwaysLogAnalytics,
17
17
  alwaysLogMetrics,
@@ -28,7 +28,7 @@ import {
28
28
  outputDebug,
29
29
  outputToken,
30
30
  reportingRateLimit
31
- } from "./chunk-QV4LZSZK.js";
31
+ } from "./chunk-AZ6Y4YZT.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __esm,
@@ -15930,4 +15930,4 @@ export {
15930
15930
  requestIdsCollection,
15931
15931
  reportAnalyticsEvent
15932
15932
  };
15933
- //# sourceMappingURL=chunk-OP4DJUZ6.js.map
15933
+ //# sourceMappingURL=chunk-PCSYEXIP.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-QV4LZSZK.js";
3
+ } from "./chunk-AZ6Y4YZT.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-2BQWY5ZH.js.map
18
+ //# sourceMappingURL=chunk-R3CVGGX7.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-QV4LZSZK.js";
8
+ } from "./chunk-AZ6Y4YZT.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-2DHJN6XL.js.map
178
+ //# sourceMappingURL=chunk-REH3UHFP.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-7BFQPX6U.js";
3
+ } from "./chunk-MMX2XAE3.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-H44KHRQ3.js";
6
+ } from "./chunk-XZ7LRLSW.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-KPKJOJKL.js.map
28
+ //# sourceMappingURL=chunk-S5NF3A56.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.79.1";
7
+ var CLI_KIT_VERSION = "3.80.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-L7AFSENO.js.map
12
+ //# sourceMappingURL=chunk-SUFYMVTC.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-H44KHRQ3.js";
3
+ } from "./chunk-XZ7LRLSW.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-QV4LZSZK.js";
7
+ } from "./chunk-AZ6Y4YZT.js";
8
8
  import {
9
9
  require_lib
10
- } from "./chunk-UTDSSCPI.js";
10
+ } from "./chunk-5AFYDRV4.js";
11
11
  import {
12
12
  __toESM,
13
13
  init_cjs_shims
@@ -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-JA4N4NXM.js.map
86
+ //# sourceMappingURL=chunk-TC3YYLZY.js.map
@@ -3,7 +3,7 @@ import {
3
3
  require_glob_parent,
4
4
  require_picomatch,
5
5
  require_utils
6
- } from "./chunk-B3YWYURY.js";
6
+ } from "./chunk-7IK72W75.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __require,
@@ -2051,4 +2051,4 @@ queue-microtask/index.js:
2051
2051
  run-parallel/index.js:
2052
2052
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
2053
2053
  */
2054
- //# sourceMappingURL=chunk-5DBS6QOU.js.map
2054
+ //# sourceMappingURL=chunk-TJM3YBLQ.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-H44KHRQ3.js";
3
+ } from "./chunk-XZ7LRLSW.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-QV4LZSZK.js";
9
+ } from "./chunk-AZ6Y4YZT.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
13
- } from "./chunk-ZUCWDIGE.js";
13
+ } from "./chunk-57Q6OQG4.js";
14
14
  import {
15
15
  init_cjs_shims
16
16
  } from "./chunk-PKR7KJ6P.js";
@@ -51,7 +51,7 @@ async function writeCommandDocumentation(command, { commandName, fileName, inter
51
51
  title: 'Flags',
52
52
  description: 'The following flags are available for the \`${commandName}\` command:',
53
53
  type: '${interfaceName}',
54
- },`, description = command.descriptionWithMarkdown ?? command.description ?? command.summary ?? "", cleanDescription = description?.replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), cleanPreview = (command.summary ?? description ?? "").replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), category = hasTopic && !generalTopics.includes(topic) ? topic : "general commands", string = `// This is an autogenerated file. Don't edit this file manually.
54
+ },`, description = command.descriptionWithMarkdown ?? command.description ?? command.summary ?? "", cleanDescription = description?.replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), cleanPreview = (command.summary ?? description ?? "").replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, ""), category = hasTopic && !generalTopics.includes(topic) ? topic : "general commands", updatedDocString = `// This is an autogenerated file. Don't edit this file manually.
55
55
  import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'
56
56
 
57
57
  const data: ReferenceEntityTemplateSchema = {
@@ -79,8 +79,8 @@ const data: ReferenceEntityTemplateSchema = {
79
79
  ],
80
80
  }
81
81
 
82
- export default data`;
83
- await writeFile(`${docsPath}/${fileName}.doc.ts`, string), outputInfo(`Generated docs for ${commandName}`);
82
+ export default data`.replaceAll("<%= config.bin %>", "shopify");
83
+ await writeFile(`${docsPath}/${fileName}.doc.ts`, updatedDocString), outputInfo(`Generated docs for ${commandName}`);
84
84
  }
85
85
  async function writeCommandFlagInterface(command, { fileName, interfaceName }) {
86
86
  let flagsDetails = Object.keys(command.flags).map((flagName) => {
@@ -118,4 +118,4 @@ export {
118
118
  writeCommandFlagInterface,
119
119
  writeCommandUsageExampleFile
120
120
  };
121
- //# sourceMappingURL=chunk-QJMVJ2YT.js.map
121
+ //# sourceMappingURL=chunk-VR4MPAR3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-QV4LZSZK.js";
4
+ } from "./chunk-AZ6Y4YZT.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-PKR7KJ6P.js";
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
33
33
  export {
34
34
  mockAndCaptureOutput
35
35
  };
36
- //# sourceMappingURL=chunk-VTNMKNMC.js.map
36
+ //# sourceMappingURL=chunk-XYKT7ZUU.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-B67HZYEC.js";
4
+ } from "./chunk-PAKKG4IK.js";
5
5
  import {
6
6
  setCurrentCommandId,
7
7
  showNotificationsIfNeeded
8
- } from "./chunk-GINKNYRN.js";
8
+ } from "./chunk-JSVOLQ6E.js";
9
9
  import {
10
10
  hashString
11
- } from "./chunk-JED5Q5EJ.js";
11
+ } from "./chunk-NRK4JPTC.js";
12
12
  import {
13
13
  AbortError,
14
14
  addPublicMetadata,
@@ -24,13 +24,13 @@ import {
24
24
  renderWarning,
25
25
  terminalSupportsPrompting,
26
26
  underscore
27
- } from "./chunk-QV4LZSZK.js";
27
+ } from "./chunk-AZ6Y4YZT.js";
28
28
  import {
29
29
  cwd
30
- } from "./chunk-ZUCWDIGE.js";
30
+ } from "./chunk-57Q6OQG4.js";
31
31
  import {
32
32
  require_lib
33
- } from "./chunk-UTDSSCPI.js";
33
+ } from "./chunk-5AFYDRV4.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __require,
@@ -1665,4 +1665,4 @@ export {
1665
1665
  loadEnvironment,
1666
1666
  base_command_default
1667
1667
  };
1668
- //# sourceMappingURL=chunk-H44KHRQ3.js.map
1668
+ //# sourceMappingURL=chunk-XZ7LRLSW.js.map
@@ -7,7 +7,7 @@ import {
7
7
  renderSuccess,
8
8
  renderTable,
9
9
  renderWarning
10
- } from "./chunk-QV4LZSZK.js";
10
+ } from "./chunk-AZ6Y4YZT.js";
11
11
  import {
12
12
  init_cjs_shims
13
13
  } from "./chunk-PKR7KJ6P.js";
@@ -203,4 +203,4 @@ async function staticService() {
203
203
  export {
204
204
  staticService
205
205
  };
206
- //# sourceMappingURL=chunk-73GDKVV2.js.map
206
+ //# sourceMappingURL=chunk-YPF3IQMR.js.map
@@ -10503,12 +10503,6 @@ chai/lib/chai/core/assertions.js:
10503
10503
  *)
10504
10504
 
10505
10505
  chai/lib/chai/interface/expect.js:
10506
- (*!
10507
- * chai
10508
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
10509
- * MIT Licensed
10510
- *)
10511
-
10512
10506
  chai/lib/chai/interface/should.js:
10513
10507
  (*!
10514
10508
  * chai
@@ -10593,4 +10587,4 @@ chai/lib/chai.js:
10593
10587
  * @license MIT License
10594
10588
  *)
10595
10589
  */
10596
- //# sourceMappingURL=chunk-Y53XECL6.js.map
10590
+ //# sourceMappingURL=chunk-ZEM3T4UY.js.map
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  Logout
3
- } from "../../../chunk-Z5MHHPBU.js";
4
- import "../../../chunk-ZMHZBZMW.js";
5
- import "../../../chunk-H44KHRQ3.js";
6
- import "../../../chunk-B67HZYEC.js";
3
+ } from "../../../chunk-EDUZEBZD.js";
4
+ import "../../../chunk-3MQT2ETC.js";
5
+ import "../../../chunk-XZ7LRLSW.js";
6
+ import "../../../chunk-PAKKG4IK.js";
7
7
  import "../../../chunk-SHWOPMLQ.js";
8
- import "../../../chunk-OP4DJUZ6.js";
9
- import "../../../chunk-WMOUKE4L.js";
10
- import "../../../chunk-GINKNYRN.js";
11
- import "../../../chunk-JED5Q5EJ.js";
8
+ import "../../../chunk-PCSYEXIP.js";
9
+ import "../../../chunk-NWFRDDT5.js";
10
+ import "../../../chunk-JSVOLQ6E.js";
11
+ import "../../../chunk-NRK4JPTC.js";
12
12
  import "../../../chunk-25IMI7TH.js";
13
- import "../../../chunk-L7AFSENO.js";
14
- import "../../../chunk-IW2W7BT2.js";
15
- import "../../../chunk-QV4LZSZK.js";
13
+ import "../../../chunk-SUFYMVTC.js";
14
+ import "../../../chunk-6LR4FWOA.js";
15
+ import "../../../chunk-AZ6Y4YZT.js";
16
16
  import "../../../chunk-HMDWNGIV.js";
17
17
  import "../../../chunk-B5EXYCV3.js";
18
18
  import "../../../chunk-75LV6AQS.js";
19
- import "../../../chunk-ZUCWDIGE.js";
20
- import "../../../chunk-UTDSSCPI.js";
19
+ import "../../../chunk-57Q6OQG4.js";
20
+ import "../../../chunk-5AFYDRV4.js";
21
21
  import "../../../chunk-3I3GQNEW.js";
22
22
  import "../../../chunk-G5R6YD27.js";
23
23
  import "../../../chunk-G2ZZKGSV.js";
24
- import "../../../chunk-MP5RLDFN.js";
24
+ import "../../../chunk-OWRPRJTD.js";
25
25
  import "../../../chunk-XE5EOEBL.js";
26
- import "../../../chunk-5DBS6QOU.js";
27
- import "../../../chunk-B3YWYURY.js";
26
+ import "../../../chunk-TJM3YBLQ.js";
27
+ import "../../../chunk-7IK72W75.js";
28
28
  import "../../../chunk-CDBXAE2F.js";
29
29
  import "../../../chunk-PKR7KJ6P.js";
30
30
  export {
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  mockAndCaptureOutput
3
- } from "../../../chunk-VTNMKNMC.js";
3
+ } from "../../../chunk-XYKT7ZUU.js";
4
4
  import {
5
5
  Logout
6
- } from "../../../chunk-Z5MHHPBU.js";
6
+ } from "../../../chunk-EDUZEBZD.js";
7
7
  import {
8
8
  logout
9
- } from "../../../chunk-ZMHZBZMW.js";
9
+ } from "../../../chunk-3MQT2ETC.js";
10
10
  import {
11
11
  describe,
12
12
  globalExpect,
13
13
  test,
14
14
  vi
15
- } from "../../../chunk-Y53XECL6.js";
16
- import "../../../chunk-H44KHRQ3.js";
17
- import "../../../chunk-B67HZYEC.js";
15
+ } from "../../../chunk-ZEM3T4UY.js";
16
+ import "../../../chunk-XZ7LRLSW.js";
17
+ import "../../../chunk-PAKKG4IK.js";
18
18
  import "../../../chunk-SHWOPMLQ.js";
19
- import "../../../chunk-OP4DJUZ6.js";
20
- import "../../../chunk-WMOUKE4L.js";
21
- import "../../../chunk-GINKNYRN.js";
22
- import "../../../chunk-JED5Q5EJ.js";
19
+ import "../../../chunk-PCSYEXIP.js";
20
+ import "../../../chunk-NWFRDDT5.js";
21
+ import "../../../chunk-JSVOLQ6E.js";
22
+ import "../../../chunk-NRK4JPTC.js";
23
23
  import "../../../chunk-25IMI7TH.js";
24
- import "../../../chunk-L7AFSENO.js";
25
- import "../../../chunk-IW2W7BT2.js";
26
- import "../../../chunk-QV4LZSZK.js";
24
+ import "../../../chunk-SUFYMVTC.js";
25
+ import "../../../chunk-6LR4FWOA.js";
26
+ import "../../../chunk-AZ6Y4YZT.js";
27
27
  import "../../../chunk-HMDWNGIV.js";
28
28
  import "../../../chunk-B5EXYCV3.js";
29
29
  import "../../../chunk-75LV6AQS.js";
30
- import "../../../chunk-ZUCWDIGE.js";
31
- import "../../../chunk-UTDSSCPI.js";
30
+ import "../../../chunk-57Q6OQG4.js";
31
+ import "../../../chunk-5AFYDRV4.js";
32
32
  import "../../../chunk-3I3GQNEW.js";
33
33
  import "../../../chunk-G5R6YD27.js";
34
34
  import "../../../chunk-G2ZZKGSV.js";
35
- import "../../../chunk-MP5RLDFN.js";
35
+ import "../../../chunk-OWRPRJTD.js";
36
36
  import "../../../chunk-XE5EOEBL.js";
37
- import "../../../chunk-5DBS6QOU.js";
38
- import "../../../chunk-B3YWYURY.js";
37
+ import "../../../chunk-TJM3YBLQ.js";
38
+ import "../../../chunk-7IK72W75.js";
39
39
  import "../../../chunk-CDBXAE2F.js";
40
40
  import {
41
41
  init_cjs_shims
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  ClearCache
3
- } from "../../../chunk-5B4X6PWS.js";
4
- import "../../../chunk-H44KHRQ3.js";
5
- import "../../../chunk-B67HZYEC.js";
3
+ } from "../../../chunk-GFHULNRP.js";
4
+ import "../../../chunk-XZ7LRLSW.js";
5
+ import "../../../chunk-PAKKG4IK.js";
6
6
  import "../../../chunk-SHWOPMLQ.js";
7
- import "../../../chunk-OP4DJUZ6.js";
8
- import "../../../chunk-WMOUKE4L.js";
9
- import "../../../chunk-GINKNYRN.js";
10
- import "../../../chunk-JED5Q5EJ.js";
7
+ import "../../../chunk-PCSYEXIP.js";
8
+ import "../../../chunk-NWFRDDT5.js";
9
+ import "../../../chunk-JSVOLQ6E.js";
10
+ import "../../../chunk-NRK4JPTC.js";
11
11
  import "../../../chunk-25IMI7TH.js";
12
- import "../../../chunk-L7AFSENO.js";
13
- import "../../../chunk-IW2W7BT2.js";
14
- import "../../../chunk-QV4LZSZK.js";
12
+ import "../../../chunk-SUFYMVTC.js";
13
+ import "../../../chunk-6LR4FWOA.js";
14
+ import "../../../chunk-AZ6Y4YZT.js";
15
15
  import "../../../chunk-HMDWNGIV.js";
16
16
  import "../../../chunk-B5EXYCV3.js";
17
17
  import "../../../chunk-75LV6AQS.js";
18
- import "../../../chunk-ZUCWDIGE.js";
19
- import "../../../chunk-UTDSSCPI.js";
18
+ import "../../../chunk-57Q6OQG4.js";
19
+ import "../../../chunk-5AFYDRV4.js";
20
20
  import "../../../chunk-3I3GQNEW.js";
21
21
  import "../../../chunk-G5R6YD27.js";
22
22
  import "../../../chunk-G2ZZKGSV.js";
23
- import "../../../chunk-MP5RLDFN.js";
23
+ import "../../../chunk-OWRPRJTD.js";
24
24
  import "../../../chunk-XE5EOEBL.js";
25
- import "../../../chunk-5DBS6QOU.js";
26
- import "../../../chunk-B3YWYURY.js";
25
+ import "../../../chunk-TJM3YBLQ.js";
26
+ import "../../../chunk-7IK72W75.js";
27
27
  import "../../../chunk-CDBXAE2F.js";
28
28
  import "../../../chunk-PKR7KJ6P.js";
29
29
  export {
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  CommandFlags
3
- } from "../../../chunk-JA4N4NXM.js";
4
- import "../../../chunk-H44KHRQ3.js";
5
- import "../../../chunk-B67HZYEC.js";
3
+ } from "../../../chunk-TC3YYLZY.js";
4
+ import "../../../chunk-XZ7LRLSW.js";
5
+ import "../../../chunk-PAKKG4IK.js";
6
6
  import "../../../chunk-SHWOPMLQ.js";
7
- import "../../../chunk-OP4DJUZ6.js";
8
- import "../../../chunk-WMOUKE4L.js";
9
- import "../../../chunk-GINKNYRN.js";
10
- import "../../../chunk-JED5Q5EJ.js";
7
+ import "../../../chunk-PCSYEXIP.js";
8
+ import "../../../chunk-NWFRDDT5.js";
9
+ import "../../../chunk-JSVOLQ6E.js";
10
+ import "../../../chunk-NRK4JPTC.js";
11
11
  import "../../../chunk-25IMI7TH.js";
12
- import "../../../chunk-L7AFSENO.js";
13
- import "../../../chunk-IW2W7BT2.js";
14
- import "../../../chunk-QV4LZSZK.js";
12
+ import "../../../chunk-SUFYMVTC.js";
13
+ import "../../../chunk-6LR4FWOA.js";
14
+ import "../../../chunk-AZ6Y4YZT.js";
15
15
  import "../../../chunk-HMDWNGIV.js";
16
16
  import "../../../chunk-B5EXYCV3.js";
17
17
  import "../../../chunk-75LV6AQS.js";
18
- import "../../../chunk-ZUCWDIGE.js";
19
- import "../../../chunk-UTDSSCPI.js";
18
+ import "../../../chunk-57Q6OQG4.js";
19
+ import "../../../chunk-5AFYDRV4.js";
20
20
  import "../../../chunk-3I3GQNEW.js";
21
21
  import "../../../chunk-G5R6YD27.js";
22
22
  import "../../../chunk-G2ZZKGSV.js";
23
- import "../../../chunk-MP5RLDFN.js";
23
+ import "../../../chunk-OWRPRJTD.js";
24
24
  import "../../../chunk-XE5EOEBL.js";
25
- import "../../../chunk-5DBS6QOU.js";
26
- import "../../../chunk-B3YWYURY.js";
25
+ import "../../../chunk-TJM3YBLQ.js";
26
+ import "../../../chunk-7IK72W75.js";
27
27
  import "../../../chunk-CDBXAE2F.js";
28
28
  import "../../../chunk-PKR7KJ6P.js";
29
29
  export {