@shopify/cli 3.81.2 → 3.82.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 (78) hide show
  1. package/dist/{chunk-SYSFH5UI.js → chunk-25WAB7NJ.js} +2 -2
  2. package/dist/{chunk-2KWYWUB3.js → chunk-3Q5VPXT5.js} +17 -10
  3. package/dist/{chunk-JSV7CLE5.js → chunk-6AJRDC5C.js} +3 -3
  4. package/dist/{chunk-X2IUQUGP.js → chunk-6C6ZDQRA.js} +2 -2
  5. package/dist/{chunk-V2VRGD2W.js → chunk-74CFIJBV.js} +3 -3
  6. package/dist/{chunk-Y4DTNOTB.js → chunk-7MYG46RI.js} +6 -6
  7. package/dist/{chunk-NQ5I6XQM.js → chunk-7ZNBHIYT.js} +5 -5
  8. package/dist/{chunk-KBRGOZ4R.js → chunk-AJDONTSK.js} +3 -3
  9. package/dist/{chunk-QWR45GZB.js → chunk-BSTZYPZU.js} +19 -9
  10. package/dist/{chunk-GNIHBXG6.js → chunk-CFNCXOAV.js} +2 -2
  11. package/dist/{chunk-TYFNEBTF.js → chunk-EEYW5FSA.js} +3 -3
  12. package/dist/{chunk-MKTTOK7P.js → chunk-FYDURVQO.js} +4 -4
  13. package/dist/{chunk-ST2557ZT.js → chunk-HOYO6JKN.js} +3 -3
  14. package/dist/{chunk-UZOXTQRI.js → chunk-JLJTVUDK.js} +11 -6
  15. package/dist/{chunk-I5GZNFE5.js → chunk-JLKSXSVY.js} +3 -3
  16. package/dist/{chunk-Q3L5AS4S.js → chunk-KB5GMUHY.js} +6 -6
  17. package/dist/{chunk-JZDA5RDA.js → chunk-KUAANQ7T.js} +4 -4
  18. package/dist/{chunk-VMOW3UFB.js → chunk-MFC6MLP7.js} +3 -3
  19. package/dist/{chunk-SQ5I7L4B.js → chunk-MSSZWK63.js} +4 -4
  20. package/dist/{chunk-WNAOEU7P.js → chunk-MWVORSD7.js} +6 -6
  21. package/dist/{chunk-MUE6EAKT.js → chunk-PRSTYBLZ.js} +3 -3
  22. package/dist/{chunk-6AIVUZDO.js → chunk-QEIHQ2YM.js} +2 -2
  23. package/dist/{chunk-V7M7AO2M.js → chunk-QIECGUO5.js} +3 -3
  24. package/dist/{chunk-ICOQSJ5W.js → chunk-R2LEUYIF.js} +3 -3
  25. package/dist/{chunk-MKRZYHOX.js → chunk-RLS2ONCK.js} +2 -2
  26. package/dist/{chunk-JEEL2VDS.js → chunk-TCCRXQUU.js} +3 -3
  27. package/dist/{chunk-UD2LINKV.js → chunk-UQXK6QDK.js} +3 -3
  28. package/dist/{chunk-RBIBCG2T.js → chunk-VWOOMRYF.js} +4 -4
  29. package/dist/{chunk-UA6V476X.js → chunk-WDBIXJF6.js} +2 -2
  30. package/dist/{chunk-3T3ACEB6.js → chunk-XYELYAVC.js} +5 -5
  31. package/dist/{chunk-VHVSXYDG.js → chunk-YPSBMB7C.js} +2 -2
  32. package/dist/{chunk-3LZI32WD.js → chunk-YUBYB2KK.js} +10 -8
  33. package/dist/{chunk-VLKHGWXM.js → chunk-YUXFQXPK.js} +7 -7
  34. package/dist/{chunk-Y4QJSFVY.js → chunk-ZBSES4JU.js} +3 -3
  35. package/dist/cli/commands/auth/logout.js +11 -11
  36. package/dist/cli/commands/auth/logout.test.js +12 -12
  37. package/dist/cli/commands/cache/clear.js +10 -10
  38. package/dist/cli/commands/debug/command-flags.js +10 -10
  39. package/dist/cli/commands/docs/generate.js +10 -10
  40. package/dist/cli/commands/docs/generate.test.js +10 -10
  41. package/dist/cli/commands/help.js +10 -10
  42. package/dist/cli/commands/kitchen-sink/async.js +11 -11
  43. package/dist/cli/commands/kitchen-sink/async.test.js +11 -11
  44. package/dist/cli/commands/kitchen-sink/index.js +13 -13
  45. package/dist/cli/commands/kitchen-sink/index.test.js +13 -13
  46. package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
  47. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -11
  48. package/dist/cli/commands/kitchen-sink/static.js +11 -11
  49. package/dist/cli/commands/kitchen-sink/static.test.js +11 -11
  50. package/dist/cli/commands/notifications/generate.js +11 -11
  51. package/dist/cli/commands/notifications/list.js +11 -11
  52. package/dist/cli/commands/search.js +11 -11
  53. package/dist/cli/commands/upgrade.js +11 -11
  54. package/dist/cli/commands/version.js +11 -11
  55. package/dist/cli/commands/version.test.js +11 -11
  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 +4 -4
  66. package/dist/{custom-oclif-loader-AGJRZGNY.js → custom-oclif-loader-BEAC6M5I.js} +2 -2
  67. package/dist/{error-handler-FV7IMU3S.js → error-handler-AW3QCINN.js} +8 -8
  68. package/dist/hooks/postrun.js +6 -6
  69. package/dist/hooks/prerun.js +7 -7
  70. package/dist/index.js +275 -177
  71. package/dist/{local-LOH6WNIE.js → local-ZIKS25AW.js} +2 -2
  72. package/dist/{node-7R7VKIC3.js → node-GHBQEWAW.js} +12 -12
  73. package/dist/{node-package-manager-4APHMQLC.js → node-package-manager-T3RQZ6EF.js} +3 -3
  74. package/dist/tsconfig.tsbuildinfo +1 -1
  75. package/dist/{ui-IROK54OF.js → ui-NKEN4MZY.js} +2 -2
  76. package/dist/{workerd-HIXCYQNX.js → workerd-BCMLUCF7.js} +12 -12
  77. package/oclif.manifest.json +84 -12
  78. package/package.json +6 -6
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-2KWYWUB3.js";
8
+ } from "./chunk-3Q5VPXT5.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-SYSFH5UI.js.map
178
+ //# sourceMappingURL=chunk-25WAB7NJ.js.map
@@ -29422,7 +29422,7 @@ function formatSection(title, body) {
29422
29422
  }
29423
29423
 
29424
29424
  // ../cli-kit/dist/public/node/error.js
29425
- var import_core2 = __toESM(require_lib()), import_ts_error = __toESM(require_cjs()), FatalErrorType;
29425
+ var import_core2 = __toESM(require_lib(), 1), import_ts_error = __toESM(require_cjs(), 1), FatalErrorType;
29426
29426
  (function(FatalErrorType2) {
29427
29427
  FatalErrorType2[FatalErrorType2.Abort = 0] = "Abort", FatalErrorType2[FatalErrorType2.AbortSilent = 1] = "AbortSilent", FatalErrorType2[FatalErrorType2.Bug = 2] = "Bug";
29428
29428
  })(FatalErrorType || (FatalErrorType = {}));
@@ -29519,7 +29519,7 @@ function errorMessageImpliesEnvironmentIssue(message) {
29519
29519
 
29520
29520
  // ../cli-kit/dist/public/node/abort.js
29521
29521
  init_cjs_shims();
29522
- var import_node_abort_controller = __toESM(require_node_abort_controller()), AbortController = class extends import_node_abort_controller.AbortController {
29522
+ var import_node_abort_controller = __toESM(require_node_abort_controller(), 1), AbortController = class extends import_node_abort_controller.AbortController {
29523
29523
  }, AbortSignal = class extends import_node_abort_controller.AbortSignal {
29524
29524
  };
29525
29525
 
@@ -29550,7 +29550,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
29550
29550
  try {
29551
29551
  await getAndSet();
29552
29552
  } catch (error) {
29553
- let { sendErrorToBugsnag } = await import("./error-handler-FV7IMU3S.js");
29553
+ let { sendErrorToBugsnag } = await import("./error-handler-AW3QCINN.js");
29554
29554
  await sendErrorToBugsnag(error, "unexpected_error");
29555
29555
  }
29556
29556
  }, durationStack = [];
@@ -30656,10 +30656,17 @@ function Item({ item, previousItem, isSelected, highlightedTerm, enableShortcuts
30656
30656
  );
30657
30657
  }
30658
30658
  var MAX_AVAILABLE_LINES = 25;
30659
- function SelectInputInner({ items: rawItems, initialItems = rawItems, onChange, enableShortcuts = !0, focus = !0, emptyMessage = "No items to select.", defaultValue, highlightedTerm, loading = !1, errorMessage, hasMorePages = !1, morePagesMessage, availableLines = MAX_AVAILABLE_LINES, onSubmit, inputFixedAreaRef }, ref) {
30659
+ function SelectInputInner({ items: rawItems, initialItems = rawItems, onChange, enableShortcuts = !0, focus = !0, emptyMessage = "No items to select.", defaultValue, highlightedTerm, loading = !1, errorMessage, hasMorePages = !1, morePagesMessage, availableLines = MAX_AVAILABLE_LINES, onSubmit, inputFixedAreaRef, groupOrder }, ref) {
30660
30660
  let noItems = !1;
30661
30661
  rawItems.length === 0 && (rawItems = [{ label: emptyMessage, value: null, disabled: !0 }], noItems = !0);
30662
- let hasAnyGroup = rawItems.some((item) => typeof item.group < "u"), items = (0, import_sortBy.default)(rawItems, "group"), itemsHaveKeys = items.some((item) => typeof item.key < "u" && item.key.length > 0);
30662
+ let hasAnyGroup = rawItems.some((item) => typeof item.group < "u"), items = (0, import_sortBy.default)(rawItems, (item) => {
30663
+ if (!item.group)
30664
+ return Number.MAX_SAFE_INTEGER + 1;
30665
+ if (!groupOrder)
30666
+ return Number.MAX_SAFE_INTEGER;
30667
+ let index = groupOrder.indexOf(item.group);
30668
+ return index === -1 ? Number.MAX_SAFE_INTEGER : index;
30669
+ }), itemsHaveKeys = items.some((item) => typeof item.key < "u" && item.key.length > 0);
30663
30670
  itemsHaveKeys && validateKeys(items);
30664
30671
  let availableLinesToUse = Math.min(availableLines, MAX_AVAILABLE_LINES);
30665
30672
  function maximumLinesLostToGroups(items2) {
@@ -30823,7 +30830,7 @@ var PromptLayout = ({ message, infoTable, abortSignal, infoMessage, header, stat
30823
30830
 
30824
30831
  // ../cli-kit/dist/private/node/ui/components/SelectPrompt.js
30825
30832
  var import_react49 = __toESM(require_react(), 1);
30826
- function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defaultValue, abortSignal }) {
30833
+ function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defaultValue, abortSignal, groupOrder }) {
30827
30834
  if (choices.length === 0)
30828
30835
  throw new Error("SelectPrompt requires at least one choice");
30829
30836
  let { exit: unmountInk } = use_app_default(), { promptState, setPromptState, answer, setAnswer } = usePrompt({
@@ -30833,7 +30840,7 @@ function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defa
30833
30840
  }, [setAnswer, setPromptState]);
30834
30841
  return (0, import_react49.useEffect)(() => {
30835
30842
  promptState === PromptState.Submitted && answer && (unmountInk(), onSubmit(answer.value));
30836
- }, [answer, onSubmit, promptState, unmountInk]), import_react49.default.createElement(PromptLayout, { message, state: promptState, submittedAnswerLabel: answer?.label, infoTable, infoMessage, abortSignal, input: import_react49.default.createElement(SelectInput, { defaultValue, items: choices, onSubmit: submitAnswer }) });
30843
+ }, [answer, onSubmit, promptState, unmountInk]), import_react49.default.createElement(PromptLayout, { message, state: promptState, submittedAnswerLabel: answer?.label, infoTable, infoMessage, abortSignal, input: import_react49.default.createElement(SelectInput, { defaultValue, items: choices, onSubmit: submitAnswer, groupOrder }) });
30837
30844
  }
30838
30845
 
30839
30846
  // ../cli-kit/dist/private/node/ui/components/Tasks.js
@@ -31040,7 +31047,7 @@ function debounce(func, wait, options) {
31040
31047
  // ../cli-kit/dist/private/node/ui/components/AutocompletePrompt.js
31041
31048
  var import_react54 = __toESM(require_react(), 1);
31042
31049
  var MIN_NUMBER_OF_ITEMS_FOR_SEARCH = 5;
31043
- function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, hasMorePages: initialHasMorePages = !1, abortSignal, infoMessage }) {
31050
+ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, hasMorePages: initialHasMorePages = !1, abortSignal, infoMessage, groupOrder }) {
31044
31051
  let { exit: unmountInk } = use_app_default(), [searchTerm, setSearchTerm] = (0, import_react54.useState)(""), [searchResults, setSearchResults] = (0, import_react54.useState)(choices), canSearch = choices.length > MIN_NUMBER_OF_ITEMS_FOR_SEARCH, [hasMorePages, setHasMorePages] = (0, import_react54.useState)(initialHasMorePages), { promptState, setPromptState, answer, setAnswer } = usePrompt({
31045
31052
  initialAnswer: void 0
31046
31053
  }), paginatedSearch = (0, import_react54.useCallback)(async (term) => await search(term), [search]), submitAnswer = (0, import_react54.useCallback)((answer2) => {
@@ -31068,7 +31075,7 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
31068
31075
  import_react54.default.createElement(TextInput, { value: searchTerm, onChange: (term) => {
31069
31076
  setSearchTerm(term), term.length > 0 ? debounceSearch(term) : (debounceSearch.cancel(), setPromptState(PromptState.Idle), setSearchResults(choices));
31070
31077
  }, placeholder: "Type to search..." })
31071
- ) : null, submittedAnswerLabel: answer?.label, input: import_react54.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer }) });
31078
+ ) : null, submittedAnswerLabel: answer?.label, input: import_react54.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer, groupOrder }) });
31072
31079
  }
31073
31080
 
31074
31081
  // ../cli-kit/dist/public/node/ui.js
@@ -31545,4 +31552,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
31545
31552
  * LICENSE file in the root directory of this source tree.
31546
31553
  *)
31547
31554
  */
31548
- //# sourceMappingURL=chunk-2KWYWUB3.js.map
31555
+ //# sourceMappingURL=chunk-3Q5VPXT5.js.map
@@ -18,7 +18,7 @@ import {
18
18
  require_get_stream,
19
19
  runWithTimer,
20
20
  writeFile
21
- } from "./chunk-2KWYWUB3.js";
21
+ } from "./chunk-3Q5VPXT5.js";
22
22
  import {
23
23
  require_semver
24
24
  } from "./chunk-HMDWNGIV.js";
@@ -13636,7 +13636,7 @@ async function latestVersion(packageName, options) {
13636
13636
  }
13637
13637
 
13638
13638
  // ../cli-kit/dist/public/node/node-package-manager.js
13639
- 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 = {
13639
+ 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 = {
13640
13640
  yarn: yarnLockfile,
13641
13641
  npm: npmLockfile,
13642
13642
  pnpm: pnpmLockfile,
@@ -13948,4 +13948,4 @@ deep-extend/lib/deep-extend.js:
13948
13948
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13949
13949
  *)
13950
13950
  */
13951
- //# sourceMappingURL=chunk-JSV7CLE5.js.map
13951
+ //# sourceMappingURL=chunk-6AJRDC5C.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-3LZI32WD.js";
3
+ } from "./chunk-YUBYB2KK.js";
4
4
  import {
5
5
  require_lib
6
6
  } from "./chunk-LPU2VGJR.js";
@@ -46,4 +46,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
46
46
  export {
47
47
  HelpCommand
48
48
  };
49
- //# sourceMappingURL=chunk-X2IUQUGP.js.map
49
+ //# sourceMappingURL=chunk-6C6ZDQRA.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-6AIVUZDO.js";
3
+ } from "./chunk-QEIHQ2YM.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.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-V2VRGD2W.js.map
28
+ //# sourceMappingURL=chunk-74CFIJBV.js.map
@@ -2,16 +2,16 @@ import {
2
2
  getEnvironmentData,
3
3
  getLastSeenUserIdAfterAuth,
4
4
  getSensitiveEnvironmentData
5
- } from "./chunk-UZOXTQRI.js";
5
+ } from "./chunk-JLJTVUDK.js";
6
6
  import {
7
7
  fetch
8
- } from "./chunk-V7M7AO2M.js";
8
+ } from "./chunk-QIECGUO5.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-GNIHBXG6.js";
11
+ } from "./chunk-CFNCXOAV.js";
12
12
  import {
13
13
  runWithRateLimit
14
- } from "./chunk-JSV7CLE5.js";
14
+ } from "./chunk-6AJRDC5C.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-2KWYWUB3.js";
31
+ } from "./chunk-3Q5VPXT5.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-Y4DTNOTB.js.map
15933
+ //# sourceMappingURL=chunk-7MYG46RI.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-SYSFH5UI.js";
3
+ } from "./chunk-25WAB7NJ.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-MKRZYHOX.js";
6
+ } from "./chunk-RLS2ONCK.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-6AIVUZDO.js";
9
+ } from "./chunk-QEIHQ2YM.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-3LZI32WD.js";
12
+ } from "./chunk-YUBYB2KK.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-NQ5I6XQM.js.map
37
+ //# sourceMappingURL=chunk-7ZNBHIYT.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-JSV7CLE5.js";
3
+ } from "./chunk-6AJRDC5C.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-2KWYWUB3.js";
9
+ } from "./chunk-3Q5VPXT5.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ export {
25
25
  cliInstallCommand,
26
26
  getOutputUpdateCLIReminder
27
27
  };
28
- //# sourceMappingURL=chunk-KBRGOZ4R.js.map
28
+ //# sourceMappingURL=chunk-AJDONTSK.js.map
@@ -5,19 +5,19 @@ import {
5
5
  ensureAuthenticatedAdmin,
6
6
  ensureAuthenticatedBusinessPlatform,
7
7
  logout
8
- } from "./chunk-SQ5I7L4B.js";
8
+ } from "./chunk-MSSZWK63.js";
9
9
  import {
10
10
  base_command_default
11
- } from "./chunk-3LZI32WD.js";
11
+ } from "./chunk-YUBYB2KK.js";
12
12
  import {
13
13
  fanoutHooks,
14
14
  requestIdsCollection
15
- } from "./chunk-Y4DTNOTB.js";
15
+ } from "./chunk-7MYG46RI.js";
16
16
  import {
17
17
  businessPlatformFqdn,
18
18
  normalizeStoreFqdn,
19
19
  partnersFqdn
20
- } from "./chunk-UZOXTQRI.js";
20
+ } from "./chunk-JLJTVUDK.js";
21
21
  import {
22
22
  ClientError,
23
23
  GraphQLClient,
@@ -31,10 +31,10 @@ import {
31
31
  retryAwareRequest,
32
32
  sanitizeURL,
33
33
  sanitizedHeadersOutput
34
- } from "./chunk-V7M7AO2M.js";
34
+ } from "./chunk-QIECGUO5.js";
35
35
  import {
36
36
  CLI_KIT_VERSION
37
- } from "./chunk-GNIHBXG6.js";
37
+ } from "./chunk-CFNCXOAV.js";
38
38
  import {
39
39
  cacheRetrieveOrRepopulate,
40
40
  findUpAndReadPackageJson,
@@ -44,7 +44,7 @@ import {
44
44
  readAndParsePackageJson,
45
45
  timeIntervalToMilliseconds,
46
46
  writePackageJSON
47
- } from "./chunk-JSV7CLE5.js";
47
+ } from "./chunk-6AJRDC5C.js";
48
48
  import {
49
49
  AbortError,
50
50
  BugError,
@@ -84,7 +84,7 @@ import {
84
84
  source_default,
85
85
  stringifyMessage,
86
86
  writeFile
87
- } from "./chunk-2KWYWUB3.js";
87
+ } from "./chunk-3Q5VPXT5.js";
88
88
  import {
89
89
  basename,
90
90
  cwd,
@@ -140907,6 +140907,15 @@ async function ensureIsClean(directory) {
140907
140907
  async function isClean(directory) {
140908
140908
  return (await esm_default({ baseDir: directory }).status()).isClean();
140909
140909
  }
140910
+ async function removeGitRemote(directory, remoteName = "origin") {
140911
+ outputDebug(outputContent`Removing git remote ${remoteName} from ${outputToken.path(directory)}...`), await ensureGitIsPresentOrAbort();
140912
+ let repo = esm_default(directory);
140913
+ if (!(await repo.getRemotes()).some((remote) => remote.name === remoteName)) {
140914
+ outputDebug(outputContent`Remote ${remoteName} does not exist, no action needed`);
140915
+ return;
140916
+ }
140917
+ await repo.removeRemote(remoteName);
140918
+ }
140910
140919
 
140911
140920
  // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
140912
140921
  init_cjs_shims();
@@ -142471,6 +142480,7 @@ export {
142471
142480
  GitDirectoryNotCleanError,
142472
142481
  ensureIsClean,
142473
142482
  isClean,
142483
+ removeGitRemote,
142474
142484
  execAsync,
142475
142485
  supressNodeExperimentalWarnings,
142476
142486
  isHydrogenMonorepo,
@@ -142592,4 +142602,4 @@ export {
142592
142602
  getDebugBannerLine,
142593
142603
  getUtilityBannerlines
142594
142604
  };
142595
- //# sourceMappingURL=chunk-QWR45GZB.js.map
142605
+ //# sourceMappingURL=chunk-BSTZYPZU.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.81.2";
7
+ var CLI_KIT_VERSION = "3.82.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-GNIHBXG6.js.map
12
+ //# sourceMappingURL=chunk-CFNCXOAV.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-UA6V476X.js";
3
+ } from "./chunk-WDBIXJF6.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.js";
7
7
  import {
8
8
  require_lib
9
9
  } from "./chunk-LPU2VGJR.js";
@@ -48,4 +48,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
48
48
  export {
49
49
  Search
50
50
  };
51
- //# sourceMappingURL=chunk-TYFNEBTF.js.map
51
+ //# sourceMappingURL=chunk-EEYW5FSA.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  list
3
- } from "./chunk-3T3ACEB6.js";
3
+ } from "./chunk-XYELYAVC.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.js";
7
7
  import {
8
8
  sendErrorToBugsnag
9
- } from "./chunk-WNAOEU7P.js";
9
+ } from "./chunk-MWVORSD7.js";
10
10
  import {
11
11
  require_lib
12
12
  } from "./chunk-LPU2VGJR.js";
@@ -49,4 +49,4 @@ var List = class _List extends base_command_default {
49
49
  export {
50
50
  List
51
51
  };
52
- //# sourceMappingURL=chunk-MKTTOK7P.js.map
52
+ //# sourceMappingURL=chunk-FYDURVQO.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-MKRZYHOX.js";
3
+ } from "./chunk-RLS2ONCK.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.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-ST2557ZT.js.map
28
+ //# sourceMappingURL=chunk-HOYO6JKN.js.map
@@ -7,14 +7,14 @@ import {
7
7
  nonRandomUUID,
8
8
  shopifyFetch,
9
9
  z
10
- } from "./chunk-V7M7AO2M.js";
10
+ } from "./chunk-QIECGUO5.js";
11
11
  import {
12
12
  getPackageManager,
13
13
  getSession,
14
14
  packageManagerFromUserAgent,
15
15
  removeSession,
16
16
  setSession
17
- } from "./chunk-JSV7CLE5.js";
17
+ } from "./chunk-6AJRDC5C.js";
18
18
  import {
19
19
  AbortError,
20
20
  BugError,
@@ -45,7 +45,7 @@ import {
45
45
  sessionConstants,
46
46
  spinFqdn,
47
47
  themeToken
48
- } from "./chunk-2KWYWUB3.js";
48
+ } from "./chunk-3Q5VPXT5.js";
49
49
  import {
50
50
  cwd
51
51
  } from "./chunk-EG6MBBEN.js";
@@ -921,11 +921,16 @@ async function remove() {
921
921
  // ../cli-kit/dist/private/node/session/device-authorization.js
922
922
  init_cjs_shims();
923
923
  async function requestDeviceAuthorization(scopes) {
924
- let fqdn = await identityFqdn(), queryParams = { client_id: clientId(), scope: scopes.join(" ") }, url4 = `https://${fqdn}/oauth/device_authorization`, jsonResult = await (await shopifyFetch(url4, {
924
+ let fqdn = await identityFqdn(), queryParams = { client_id: clientId(), scope: scopes.join(" ") }, url4 = `https://${fqdn}/oauth/device_authorization`, response = await shopifyFetch(url4, {
925
925
  method: "POST",
926
926
  headers: { "Content-type": "application/x-www-form-urlencoded" },
927
927
  body: convertRequestToParams(queryParams)
928
- })).json();
928
+ }), jsonResult;
929
+ try {
930
+ jsonResult = await response.json();
931
+ } catch {
932
+ throw new BugError("Received unexpected response from the authorization service. If this issue persists, please contact support at https://help.shopify.com");
933
+ }
929
934
  if (outputDebug(outputContent`Received device authorization code: ${outputToken.json(jsonResult)}`), !jsonResult.device_code || !jsonResult.verification_uri_complete)
930
935
  throw new BugError("Failed to start authorization process");
931
936
  if (outputInfo(`
@@ -1206,4 +1211,4 @@ export {
1206
1211
  getEnvironmentData,
1207
1212
  getSensitiveEnvironmentData
1208
1213
  };
1209
- //# sourceMappingURL=chunk-UZOXTQRI.js.map
1214
+ //# sourceMappingURL=chunk-JLJTVUDK.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-3LZI32WD.js";
3
+ } from "./chunk-YUBYB2KK.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-2KWYWUB3.js";
9
+ } from "./chunk-3Q5VPXT5.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
@@ -118,4 +118,4 @@ export {
118
118
  writeCommandFlagInterface,
119
119
  writeCommandUsageExampleFile
120
120
  };
121
- //# sourceMappingURL=chunk-I5GZNFE5.js.map
121
+ //# sourceMappingURL=chunk-JLKSXSVY.js.map
@@ -2,15 +2,15 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-V7M7AO2M.js";
5
+ } from "./chunk-QIECGUO5.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-GNIHBXG6.js";
8
+ } from "./chunk-CFNCXOAV.js";
9
9
  import {
10
10
  cacheRetrieve,
11
11
  cacheStore,
12
12
  versionSatisfies
13
- } from "./chunk-JSV7CLE5.js";
13
+ } from "./chunk-6AJRDC5C.js";
14
14
  import {
15
15
  AbortSilentError,
16
16
  exec,
@@ -19,7 +19,7 @@ import {
19
19
  renderError,
20
20
  renderInfo,
21
21
  renderWarning
22
- } from "./chunk-2KWYWUB3.js";
22
+ } from "./chunk-3Q5VPXT5.js";
23
23
  import {
24
24
  init_cjs_shims
25
25
  } from "./chunk-PKR7KJ6P.js";
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
87
87
  throw new AbortSilentError();
88
88
  let errorMessage = `Error showing notifications: ${error.message}`;
89
89
  outputDebug(errorMessage);
90
- let { sendErrorToBugsnag } = await import("./error-handler-FV7IMU3S.js");
90
+ let { sendErrorToBugsnag } = await import("./error-handler-AW3QCINN.js");
91
91
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
92
92
  }
93
93
  }
@@ -200,4 +200,4 @@ export {
200
200
  fetchNotificationsInBackground,
201
201
  stringifyFilters
202
202
  };
203
- //# sourceMappingURL=chunk-Q3L5AS4S.js.map
203
+ //# sourceMappingURL=chunk-KB5GMUHY.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-SQ5I7L4B.js";
3
+ } from "./chunk-MSSZWK63.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-2KWYWUB3.js";
9
+ } from "./chunk-3Q5VPXT5.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-JZDA5RDA.js.map
28
+ //# sourceMappingURL=chunk-KUAANQ7T.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-UD2LINKV.js";
3
+ } from "./chunk-UQXK6QDK.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.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-VMOW3UFB.js.map
25
+ //# sourceMappingURL=chunk-MFC6MLP7.js.map
@@ -8,17 +8,17 @@ import {
8
8
  remove,
9
9
  setLastSeenAuthMethod,
10
10
  setLastSeenUserIdAfterAuth
11
- } from "./chunk-UZOXTQRI.js";
11
+ } from "./chunk-JLJTVUDK.js";
12
12
  import {
13
13
  getPartnersToken,
14
14
  nonRandomUUID
15
- } from "./chunk-V7M7AO2M.js";
15
+ } from "./chunk-QIECGUO5.js";
16
16
  import {
17
17
  BugError,
18
18
  outputContent,
19
19
  outputDebug,
20
20
  outputToken
21
- } from "./chunk-2KWYWUB3.js";
21
+ } from "./chunk-3Q5VPXT5.js";
22
22
  import {
23
23
  init_cjs_shims
24
24
  } from "./chunk-PKR7KJ6P.js";
@@ -117,4 +117,4 @@ export {
117
117
  ensureAuthenticatedBusinessPlatform,
118
118
  logout
119
119
  };
120
- //# sourceMappingURL=chunk-SQ5I7L4B.js.map
120
+ //# sourceMappingURL=chunk-MSSZWK63.js.map
@@ -4,16 +4,16 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-Y4DTNOTB.js";
7
+ } from "./chunk-7MYG46RI.js";
8
8
  import {
9
9
  getEnvironmentData
10
- } from "./chunk-UZOXTQRI.js";
10
+ } from "./chunk-JLJTVUDK.js";
11
11
  import {
12
12
  CLI_KIT_VERSION
13
- } from "./chunk-GNIHBXG6.js";
13
+ } from "./chunk-CFNCXOAV.js";
14
14
  import {
15
15
  runWithRateLimit
16
- } from "./chunk-JSV7CLE5.js";
16
+ } from "./chunk-6AJRDC5C.js";
17
17
  import {
18
18
  AbortSilentError,
19
19
  CancelExecution,
@@ -28,7 +28,7 @@ import {
28
28
  reportingRateLimit,
29
29
  require_stacktracey,
30
30
  shouldReportErrorAsUnexpected
31
- } from "./chunk-2KWYWUB3.js";
31
+ } from "./chunk-3Q5VPXT5.js";
32
32
  import {
33
33
  cwd,
34
34
  isAbsolutePath,
@@ -2149,4 +2149,4 @@ export {
2149
2149
  registerCleanBugsnagErrorsFromWithinPlugins,
2150
2150
  addBugsnagMetadata
2151
2151
  };
2152
- //# sourceMappingURL=chunk-WNAOEU7P.js.map
2152
+ //# sourceMappingURL=chunk-MWVORSD7.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-SYSFH5UI.js";
3
+ } from "./chunk-25WAB7NJ.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-YUBYB2KK.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkPrompts
27
27
  };
28
- //# sourceMappingURL=chunk-MUE6EAKT.js.map
28
+ //# sourceMappingURL=chunk-PRSTYBLZ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-2KWYWUB3.js";
4
+ } from "./chunk-3Q5VPXT5.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-6AIVUZDO.js.map
46
+ //# sourceMappingURL=chunk-QEIHQ2YM.js.map