@shopify/cli 0.0.0-snapshot-20241113075607 → 0.0.0-snapshot-20241114201123

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 (114) hide show
  1. package/dist/{chunk-OLFEETRF.js → chunk-27BLMNPM.js} +3 -3
  2. package/dist/{lib-CPSRXLFM.js → chunk-2HGYYNE5.js} +5 -2
  3. package/dist/{chunk-FF7XQGWH.js → chunk-32TOW3DC.js} +3 -3
  4. package/dist/{chunk-WPNXT5LW.js → chunk-4SR6OCE3.js} +13 -18
  5. package/dist/{chunk-LGFUTA7R.js → chunk-4Z2JY573.js} +3 -3
  6. package/dist/{chunk-ZNIQPYRQ.js → chunk-5QCUC3L6.js} +2 -2
  7. package/dist/{chunk-PNN7RS7Y.js → chunk-6RBUL3TW.js} +100 -11
  8. package/dist/{chunk-4FITNSZH.js → chunk-7U56NI2T.js} +4 -4
  9. package/dist/{chunk-2WHM5C7H.js → chunk-CAUSGFLS.js} +4 -4
  10. package/dist/{chunk-MXEQSXDD.js → chunk-D6NHP3JZ.js} +3 -3
  11. package/dist/{chunk-7YIRMUGS.js → chunk-DCOGEA54.js} +540 -550
  12. package/dist/{chunk-CBD6UXLA.js → chunk-EI5KZ5NN.js} +4 -4
  13. package/dist/{chunk-ILWSSVPC.js → chunk-ELTVXI32.js} +3 -3
  14. package/dist/{chunk-TEY7NGF3.js → chunk-EVU7SXS7.js} +4 -4
  15. package/dist/{chunk-TFLXIXUR.js → chunk-FZVVTLHB.js} +8 -10
  16. package/dist/{chunk-6SYBUKHH.js → chunk-HASTRT2Z.js} +4 -4
  17. package/dist/{chunk-4HJNBGJ7.js → chunk-HR6V6P4N.js} +7 -7
  18. package/dist/{chunk-ZGHNMRBX.js → chunk-HSTSRNLJ.js} +121 -66
  19. package/dist/{chunk-WRA6QXKZ.js → chunk-I76NOZCJ.js} +4 -4
  20. package/dist/{chunk-GJBGGQ4S.js → chunk-II52SIAZ.js} +2 -2
  21. package/dist/{chunk-Z2PIAK3J.js → chunk-JJBQS3UU.js} +2 -2
  22. package/dist/{chunk-U6UV33B3.js → chunk-KDEXFNXO.js} +2 -2
  23. package/dist/{chunk-JMGDERNE.js → chunk-LZFFCQOR.js} +2752 -28
  24. package/dist/{chunk-HRSX2E6V.js → chunk-MNKQ47WB.js} +4 -4
  25. package/dist/{chunk-G6AZ6LDI.js → chunk-NHDJ2KAI.js} +3 -3
  26. package/dist/{chunk-ZIJ3AHIX.js → chunk-OBNDOJ2V.js} +13 -17
  27. package/dist/{chunk-QPSF2PIA.js → chunk-QJD3UKCR.js} +8 -8
  28. package/dist/{chunk-YDWYUZCM.js → chunk-RXRX6PRV.js} +4 -4
  29. package/dist/{chunk-NEMOC7VI.js → chunk-TUNFX34L.js} +10 -12
  30. package/dist/{chunk-J67EVFKM.js → chunk-UY7SBF5U.js} +2 -2
  31. package/dist/{chunk-IWETZGRK.js → chunk-VSU3DSTR.js} +4 -4
  32. package/dist/{chunk-4IKJQ2K5.js → chunk-WDV6LQH3.js} +2 -2
  33. package/dist/{chunk-OOIIAZ4Y.js → chunk-WSEJIATV.js} +3 -3
  34. package/dist/{chunk-PLII3ZQ3.js → chunk-YCXCFQFU.js} +76 -76
  35. package/dist/{chunk-4ESFSQU4.js → chunk-YFLOZUFM.js} +2 -2
  36. package/dist/chunk-YO6H6SHS.js +94 -0
  37. package/dist/{chunk-OWLPHMUA.js → chunk-Z2VIZM24.js} +3 -3
  38. package/dist/{chunk-5K3XEMNU.js → chunk-ZBLH2MOO.js} +4 -6
  39. package/dist/{chunk-MYZFRTTJ.js → chunk-ZOGZILBW.js} +3 -3
  40. package/dist/cli/commands/auth/logout.js +16 -18
  41. package/dist/cli/commands/auth/logout.test.js +22 -24
  42. package/dist/cli/commands/cache/clear.js +15 -17
  43. package/dist/cli/commands/debug/command-flags.js +15 -17
  44. package/dist/cli/commands/docs/generate.js +15 -17
  45. package/dist/cli/commands/docs/generate.test.js +16 -18
  46. package/dist/cli/commands/help.js +15 -17
  47. package/dist/cli/commands/kitchen-sink/async.js +16 -18
  48. package/dist/cli/commands/kitchen-sink/async.test.js +17 -19
  49. package/dist/cli/commands/kitchen-sink/index.js +18 -20
  50. package/dist/cli/commands/kitchen-sink/index.test.js +21 -23
  51. package/dist/cli/commands/kitchen-sink/prompts.js +16 -18
  52. package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -19
  53. package/dist/cli/commands/kitchen-sink/static.js +16 -18
  54. package/dist/cli/commands/kitchen-sink/static.test.js +17 -19
  55. package/dist/cli/commands/notifications/generate.js +16 -18
  56. package/dist/cli/commands/notifications/list.js +16 -18
  57. package/dist/cli/commands/search.js +16 -18
  58. package/dist/cli/commands/upgrade.js +16 -18
  59. package/dist/cli/commands/upgrade.test.js +1 -2
  60. package/dist/cli/commands/version.js +16 -18
  61. package/dist/cli/commands/version.test.js +17 -19
  62. package/dist/cli/services/commands/notifications.js +10 -12
  63. package/dist/cli/services/commands/search.js +6 -7
  64. package/dist/cli/services/commands/search.test.js +7 -8
  65. package/dist/cli/services/commands/version.js +6 -7
  66. package/dist/cli/services/commands/version.test.js +8 -9
  67. package/dist/cli/services/kitchen-sink/async.js +6 -7
  68. package/dist/cli/services/kitchen-sink/prompts.js +6 -7
  69. package/dist/cli/services/kitchen-sink/static.js +6 -7
  70. package/dist/cli/services/upgrade.js +7 -8
  71. package/dist/cli/services/upgrade.test.js +10 -11
  72. package/dist/{custom-oclif-loader-OIY5425B.js → custom-oclif-loader-N6KKVOAQ.js} +6 -7
  73. package/dist/{error-handler-6AAK5V4Q.js → error-handler-A6XCUU2I.js} +13 -15
  74. package/dist/hooks/postrun.js +11 -13
  75. package/dist/hooks/prerun.js +13 -17
  76. package/dist/index.d.ts +43 -1
  77. package/dist/index.js +286 -213
  78. package/dist/{lib-JJXX7GH6.js → lib-AYKAKF2M.js} +3 -3
  79. package/dist/lib-PPXZBVZX.js +6 -0
  80. package/dist/{local-CCD63UYM.js → local-MU4HM5GK.js} +6 -7
  81. package/dist/{morph-FN23MJ2S.js → morph-PT5QS4VF.js} +9 -9
  82. package/dist/{node-C7ANV5U5.js → node-FBYHWQAP.js} +19 -21
  83. package/dist/{node-package-manager-PCWV663L.js → node-package-manager-FM6PJG6B.js} +7 -8
  84. package/dist/{path-G6AAF6UV.js → path-QAE66GKT.js} +2 -3
  85. package/dist/tsconfig.tsbuildinfo +1 -1
  86. package/dist/{ui-MYOOYFTH.js → ui-A7BXS5RB.js} +6 -7
  87. package/dist/{workerd-N7TZSE5H.js → workerd-H2NJB7C3.js} +18 -20
  88. package/oclif.manifest.json +2 -119
  89. package/package.json +7 -8
  90. package/assets/demo-catalog.json +0 -655
  91. package/dist/assets/demo-catalog.json +0 -655
  92. package/dist/chunk-3NOQA2UQ.js +0 -58
  93. package/dist/chunk-6MRRGXPH.js +0 -45
  94. package/dist/chunk-BB6N2XSA.js +0 -112
  95. package/dist/chunk-IDT7CLPE.js +0 -116
  96. package/dist/chunk-JU6RZYQ5.js +0 -116
  97. package/dist/chunk-NJ2ZGCGX.js +0 -312
  98. package/dist/chunk-NLUGD7PZ.js +0 -2731
  99. package/dist/chunk-QSUS3GJF.js +0 -3838
  100. package/dist/chunk-RWBRKVYB.js +0 -131
  101. package/dist/chunk-TEAZF322.js +0 -59
  102. package/dist/cli/commands/demo/catalog.d.ts +0 -6
  103. package/dist/cli/commands/demo/catalog.js +0 -36
  104. package/dist/cli/commands/demo/generate-file.d.ts +0 -11
  105. package/dist/cli/commands/demo/generate-file.js +0 -37
  106. package/dist/cli/commands/demo/index.d.ts +0 -10
  107. package/dist/cli/commands/demo/index.js +0 -36
  108. package/dist/cli/commands/demo/print-ai-prompt.d.ts +0 -6
  109. package/dist/cli/commands/demo/print-ai-prompt.js +0 -37
  110. package/dist/cli/services/demo.d.ts +0 -26440
  111. package/dist/cli/services/demo.js +0 -25
  112. package/dist/cli/services/demo.test.js +0 -42
  113. package/dist/constants-JHPIMZ2O.js +0 -26
  114. package/dist/system-WFDA7AD5.js +0 -29
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-QPSF2PIA.js";
3
+ } from "./chunk-QJD3UKCR.js";
4
4
  import {
5
5
  require_lib
6
- } from "./chunk-CBD6UXLA.js";
6
+ } from "./chunk-EI5KZ5NN.js";
7
7
  import {
8
8
  __toESM,
9
9
  init_cjs_shims
@@ -43,4 +43,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
43
43
  export {
44
44
  HelpCommand
45
45
  };
46
- //# sourceMappingURL=chunk-OLFEETRF.js.map
46
+ //# sourceMappingURL=chunk-27BLMNPM.js.map
@@ -205,5 +205,8 @@ var require_lib = __commonJS({
205
205
  which.sync = whichSync;
206
206
  }
207
207
  });
208
- export default require_lib();
209
- //# sourceMappingURL=lib-CPSRXLFM.js.map
208
+
209
+ export {
210
+ require_lib
211
+ };
212
+ //# sourceMappingURL=chunk-2HGYYNE5.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-GJBGGQ4S.js";
3
+ } from "./chunk-II52SIAZ.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-QPSF2PIA.js";
6
+ } from "./chunk-QJD3UKCR.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkStatic
27
27
  };
28
- //# sourceMappingURL=chunk-FF7XQGWH.js.map
28
+ //# sourceMappingURL=chunk-32TOW3DC.js.map
@@ -4,19 +4,20 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-TFLXIXUR.js";
7
+ } from "./chunk-FZVVTLHB.js";
8
8
  import {
9
9
  getEnvironmentData
10
- } from "./chunk-ZIJ3AHIX.js";
11
- import {
12
- runWithRateLimit
13
- } from "./chunk-5K3XEMNU.js";
10
+ } from "./chunk-OBNDOJ2V.js";
14
11
  import {
15
12
  CLI_KIT_VERSION
16
13
  } from "./chunk-43YGIE7Y.js";
14
+ import {
15
+ runWithRateLimit
16
+ } from "./chunk-ZBLH2MOO.js";
17
17
  import {
18
18
  AbortSilentError,
19
19
  CancelExecution,
20
+ bugsnagApiKey,
20
21
  cleanSingleStackTracePath,
21
22
  errorMapper,
22
23
  getAllPublicMetadata,
@@ -24,24 +25,20 @@ import {
24
25
  handler,
25
26
  outputDebug,
26
27
  outputInfo,
27
- printEventsJson,
28
+ reportingRateLimit,
28
29
  require_stacktracey,
29
30
  shouldReportErrorAsUnexpected
30
- } from "./chunk-7YIRMUGS.js";
31
- import {
32
- bugsnagApiKey,
33
- reportingRateLimit
34
- } from "./chunk-IDT7CLPE.js";
31
+ } from "./chunk-DCOGEA54.js";
35
32
  import {
36
33
  cwd,
37
34
  isAbsolutePath,
38
35
  joinPath,
39
36
  normalizePath,
40
37
  relativePath
41
- } from "./chunk-BB6N2XSA.js";
38
+ } from "./chunk-6RBUL3TW.js";
42
39
  import {
43
40
  require_lib
44
- } from "./chunk-CBD6UXLA.js";
41
+ } from "./chunk-EI5KZ5NN.js";
45
42
  import {
46
43
  __commonJS,
47
44
  __require,
@@ -2048,10 +2045,8 @@ import { realpath } from "fs/promises";
2048
2045
  async function errorHandler(error, config) {
2049
2046
  if (error instanceof CancelExecution)
2050
2047
  error.message && error.message !== "" && outputInfo(`\u2728 ${error.message}`);
2051
- else if (error instanceof AbortSilentError)
2052
- printEventsJson();
2053
- else
2054
- return errorMapper(error).then((error2) => handler(error2)).then((mappedError) => (printEventsJson(), reportError(mappedError, config)));
2048
+ else if (!(error instanceof AbortSilentError))
2049
+ return errorMapper(error).then((error2) => handler(error2)).then((mappedError) => reportError(mappedError, config));
2055
2050
  }
2056
2051
  var reportError = async (error, config) => {
2057
2052
  let exitMode = "expected_error";
@@ -2152,4 +2147,4 @@ export {
2152
2147
  registerCleanBugsnagErrorsFromWithinPlugins,
2153
2148
  addBugsnagMetadata
2154
2149
  };
2155
- //# sourceMappingURL=chunk-WPNXT5LW.js.map
2150
+ //# sourceMappingURL=chunk-4SR6OCE3.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-5K3XEMNU.js";
3
+ } from "./chunk-ZBLH2MOO.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-7YIRMUGS.js";
9
+ } from "./chunk-DCOGEA54.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ export {
25
25
  cliInstallCommand,
26
26
  getOutputUpdateCLIReminder
27
27
  };
28
- //# sourceMappingURL=chunk-LGFUTA7R.js.map
28
+ //# sourceMappingURL=chunk-4Z2JY573.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-7YIRMUGS.js";
3
+ } from "./chunk-DCOGEA54.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-POZ5MGPT.js";
@@ -15,4 +15,4 @@ async function searchService(query) {
15
15
  export {
16
16
  searchService
17
17
  };
18
- //# sourceMappingURL=chunk-ZNIQPYRQ.js.map
18
+ //# sourceMappingURL=chunk-5QCUC3L6.js.map
@@ -1,7 +1,41 @@
1
1
  import {
2
+ __commonJS,
3
+ __require,
4
+ __toESM,
2
5
  init_cjs_shims
3
6
  } from "./chunk-POZ5MGPT.js";
4
7
 
8
+ // ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
9
+ var require_commondir = __commonJS({
10
+ "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js"(exports, module) {
11
+ init_cjs_shims();
12
+ var path2 = __require("path");
13
+ module.exports = function(basedir, relfiles) {
14
+ if (relfiles)
15
+ var files = relfiles.map(function(r) {
16
+ return path2.resolve(basedir, r);
17
+ });
18
+ else
19
+ var files = basedir;
20
+ var res = files.slice(1).reduce(function(ps, file) {
21
+ if (!file.match(/^([A-Za-z]:)?\/|\\/))
22
+ throw new Error("relative path without a basedir");
23
+ for (var xs = file.split(/\/+|\\+/), i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++)
24
+ ;
25
+ return ps.slice(0, i);
26
+ }, files[0].split(/\/+|\\+/));
27
+ return res.length > 1 ? res.join("/") : "/";
28
+ };
29
+ }
30
+ });
31
+
32
+ // ../cli-kit/dist/public/node/path.js
33
+ init_cjs_shims();
34
+ var import_commondir = __toESM(require_commondir(), 1);
35
+
36
+ // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/index.mjs
37
+ init_cjs_shims();
38
+
5
39
  // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/shared/pathe.92c04245.mjs
6
40
  init_cjs_shims();
7
41
  function normalizeWindowsPath(input = "") {
@@ -89,17 +123,72 @@ var basename = function(p, extension) {
89
123
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
90
124
  };
91
125
 
92
- // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/index.mjs
93
- init_cjs_shims();
126
+ // ../cli-kit/dist/public/node/path.js
127
+ import { fileURLToPath } from "url";
128
+ function joinPath(...paths) {
129
+ return join(...paths);
130
+ }
131
+ function normalizePath(path2) {
132
+ return normalize(path2);
133
+ }
134
+ function resolvePath(...paths) {
135
+ return resolve(...paths);
136
+ }
137
+ function relativePath(from, to) {
138
+ return relative(from, to);
139
+ }
140
+ function isAbsolutePath(path2) {
141
+ return isAbsolute(path2);
142
+ }
143
+ function dirname2(path2) {
144
+ return dirname(path2);
145
+ }
146
+ function basename2(path2, ext) {
147
+ return basename(path2, ext);
148
+ }
149
+ function extname2(path2) {
150
+ return extname(path2);
151
+ }
152
+ function relativizePath(path2, dir = cwd2()) {
153
+ let result = (0, import_commondir.default)([path2, dir]), relativePath2 = relative(dir, path2), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
154
+ return result === "/" || relativePath2 === "" || relativeComponents > 2 ? path2 : relativePath2;
155
+ }
156
+ function isSubpath(mainPath, subpath) {
157
+ let relativePath2 = relative(mainPath, subpath);
158
+ return !relativePath2.startsWith("..") && !isAbsolutePath(relativePath2);
159
+ }
160
+ function moduleDirectory(moduleURL) {
161
+ return dirname2(fileURLToPath(moduleURL));
162
+ }
163
+ function cwd2() {
164
+ return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
165
+ }
166
+ function sniffForPath(argv = process.argv) {
167
+ let pathFlagIndex = argv.indexOf("--path");
168
+ if (pathFlagIndex === -1)
169
+ return argv.find((arg) => arg.startsWith("--path="))?.split("=")[1];
170
+ let pathFlag = argv[pathFlagIndex + 1];
171
+ if (!(!pathFlag || pathFlag.startsWith("-")))
172
+ return pathFlag;
173
+ }
174
+ function sniffForJson(argv = process.argv) {
175
+ return argv.indexOf("--json") !== -1;
176
+ }
94
177
 
95
178
  export {
96
- normalize,
97
- join,
98
- resolve,
99
- isAbsolute,
100
- extname,
101
- relative,
102
- dirname,
103
- basename
179
+ joinPath,
180
+ normalizePath,
181
+ resolvePath,
182
+ relativePath,
183
+ isAbsolutePath,
184
+ dirname2 as dirname,
185
+ basename2 as basename,
186
+ extname2 as extname,
187
+ relativizePath,
188
+ isSubpath,
189
+ moduleDirectory,
190
+ cwd2 as cwd,
191
+ sniffForPath,
192
+ sniffForJson
104
193
  };
105
- //# sourceMappingURL=chunk-PNN7RS7Y.js.map
194
+ //# sourceMappingURL=chunk-6RBUL3TW.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-QPSF2PIA.js";
3
+ } from "./chunk-QJD3UKCR.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-7YIRMUGS.js";
9
+ } from "./chunk-DCOGEA54.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
13
- } from "./chunk-BB6N2XSA.js";
13
+ } from "./chunk-6RBUL3TW.js";
14
14
  import {
15
15
  init_cjs_shims
16
16
  } from "./chunk-POZ5MGPT.js";
@@ -116,4 +116,4 @@ export {
116
116
  writeCommandFlagInterface,
117
117
  writeCommandUsageExampleFile
118
118
  };
119
- //# sourceMappingURL=chunk-4FITNSZH.js.map
119
+ //# sourceMappingURL=chunk-7U56NI2T.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-5K3XEMNU.js";
7
+ } from "./chunk-ZBLH2MOO.js";
8
8
  import {
9
9
  AbortError,
10
10
  exec,
@@ -15,12 +15,12 @@ import {
15
15
  outputSuccess,
16
16
  outputToken,
17
17
  outputWarn
18
- } from "./chunk-7YIRMUGS.js";
18
+ } from "./chunk-DCOGEA54.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
22
22
  moduleDirectory
23
- } from "./chunk-BB6N2XSA.js";
23
+ } from "./chunk-6RBUL3TW.js";
24
24
  import {
25
25
  init_cjs_shims
26
26
  } from "./chunk-POZ5MGPT.js";
@@ -140,4 +140,4 @@ function usingPackageManager({ env } = { env: process.env }) {
140
140
  export {
141
141
  upgrade
142
142
  };
143
- //# sourceMappingURL=chunk-2WHM5C7H.js.map
143
+ //# sourceMappingURL=chunk-CAUSGFLS.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-YDWYUZCM.js";
3
+ } from "./chunk-RXRX6PRV.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-QPSF2PIA.js";
6
+ } from "./chunk-QJD3UKCR.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var Generate = class extends base_command_default {
25
25
  export {
26
26
  Generate
27
27
  };
28
- //# sourceMappingURL=chunk-MXEQSXDD.js.map
28
+ //# sourceMappingURL=chunk-D6NHP3JZ.js.map