@shopify/cli 3.81.2 → 3.82.1

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-3T3ACEB6.js → chunk-2UOPOSAQ.js} +5 -5
  2. package/dist/{chunk-VHVSXYDG.js → chunk-5NCPSAFZ.js} +2 -2
  3. package/dist/{chunk-UZOXTQRI.js → chunk-6HSVIAHC.js} +11 -6
  4. package/dist/{chunk-MUE6EAKT.js → chunk-7AGM22KG.js} +3 -3
  5. package/dist/{chunk-Q3L5AS4S.js → chunk-7E5ELMEP.js} +6 -6
  6. package/dist/{chunk-2KWYWUB3.js → chunk-AE3MLJMV.js} +16 -9
  7. package/dist/{chunk-V2VRGD2W.js → chunk-API6SOPE.js} +3 -3
  8. package/dist/{chunk-TYFNEBTF.js → chunk-B2IEJ5WW.js} +3 -3
  9. package/dist/{chunk-SQ5I7L4B.js → chunk-CLFWIHUG.js} +4 -4
  10. package/dist/{chunk-GNIHBXG6.js → chunk-EE5FOU6D.js} +2 -2
  11. package/dist/{chunk-NQ5I6XQM.js → chunk-GCPVC7EU.js} +5 -5
  12. package/dist/{chunk-Y4QJSFVY.js → chunk-HPTCTDPD.js} +3 -3
  13. package/dist/{chunk-VMOW3UFB.js → chunk-IHFQ3F23.js} +3 -3
  14. package/dist/{chunk-VLKHGWXM.js → chunk-IXOKLO2J.js} +7 -7
  15. package/dist/{chunk-QWR45GZB.js → chunk-JFCQDJFN.js} +19 -9
  16. package/dist/{chunk-6AIVUZDO.js → chunk-LHLR2V5J.js} +2 -2
  17. package/dist/{chunk-Y4DTNOTB.js → chunk-M4TCGXII.js} +6 -6
  18. package/dist/{chunk-X2IUQUGP.js → chunk-MBYV3HFV.js} +2 -2
  19. package/dist/{chunk-MKRZYHOX.js → chunk-MOIB2YST.js} +2 -2
  20. package/dist/{chunk-KBRGOZ4R.js → chunk-MPCIJZRR.js} +3 -3
  21. package/dist/{chunk-UD2LINKV.js → chunk-N4LQOIDN.js} +3 -3
  22. package/dist/{chunk-MKTTOK7P.js → chunk-OSWJJWB4.js} +4 -4
  23. package/dist/{chunk-JEEL2VDS.js → chunk-QDLC5TZP.js} +3 -3
  24. package/dist/{chunk-SYSFH5UI.js → chunk-RBHXB7LY.js} +2 -2
  25. package/dist/{chunk-JZDA5RDA.js → chunk-SFDHLWEI.js} +4 -4
  26. package/dist/{chunk-RBIBCG2T.js → chunk-SRBYTZSG.js} +4 -4
  27. package/dist/{chunk-I5GZNFE5.js → chunk-TOYQ6OGF.js} +3 -3
  28. package/dist/{chunk-ICOQSJ5W.js → chunk-TRPRYAWB.js} +3 -3
  29. package/dist/{chunk-3LZI32WD.js → chunk-UENXYFT3.js} +9 -7
  30. package/dist/{chunk-ST2557ZT.js → chunk-VOPDBKMR.js} +3 -3
  31. package/dist/{chunk-UA6V476X.js → chunk-W7ISQU7I.js} +2 -2
  32. package/dist/{chunk-V7M7AO2M.js → chunk-YJPCY2LS.js} +3 -3
  33. package/dist/{chunk-JSV7CLE5.js → chunk-YN4HBUI3.js} +2 -2
  34. package/dist/{chunk-WNAOEU7P.js → chunk-YPVB6B34.js} +7 -7
  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-SQEUSZSS.js} +2 -2
  67. package/dist/{error-handler-FV7IMU3S.js → error-handler-EUTRPJGF.js} +8 -8
  68. package/dist/hooks/postrun.js +6 -6
  69. package/dist/hooks/prerun.js +7 -7
  70. package/dist/index.js +276 -173
  71. package/dist/{local-LOH6WNIE.js → local-DTWKQE2A.js} +2 -2
  72. package/dist/{node-7R7VKIC3.js → node-MZOMVUI6.js} +12 -12
  73. package/dist/{node-package-manager-4APHMQLC.js → node-package-manager-NJGCZMAX.js} +3 -3
  74. package/dist/tsconfig.tsbuildinfo +1 -1
  75. package/dist/{ui-IROK54OF.js → ui-OUT2NXBE.js} +2 -2
  76. package/dist/{workerd-HIXCYQNX.js → workerd-JR3RQRVU.js} +12 -12
  77. package/oclif.manifest.json +84 -12
  78. package/package.json +6 -6
@@ -2,13 +2,13 @@ import {
2
2
  fetchNotifications,
3
3
  getNotifications,
4
4
  stringifyFilters
5
- } from "./chunk-Q3L5AS4S.js";
5
+ } from "./chunk-7E5ELMEP.js";
6
6
  import {
7
7
  randomUUID
8
- } from "./chunk-V7M7AO2M.js";
8
+ } from "./chunk-YJPCY2LS.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-GNIHBXG6.js";
11
+ } from "./chunk-EE5FOU6D.js";
12
12
  import {
13
13
  outputInfo,
14
14
  renderSelectPrompt,
@@ -16,7 +16,7 @@ import {
16
16
  renderTable,
17
17
  renderTextPrompt,
18
18
  writeFile
19
- } from "./chunk-2KWYWUB3.js";
19
+ } from "./chunk-AE3MLJMV.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -103,4 +103,4 @@ export {
103
103
  generate,
104
104
  list
105
105
  };
106
- //# sourceMappingURL=chunk-3T3ACEB6.js.map
106
+ //# sourceMappingURL=chunk-2UOPOSAQ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-2KWYWUB3.js";
4
+ } from "./chunk-AE3MLJMV.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-VHVSXYDG.js.map
36
+ //# sourceMappingURL=chunk-5NCPSAFZ.js.map
@@ -7,14 +7,14 @@ import {
7
7
  nonRandomUUID,
8
8
  shopifyFetch,
9
9
  z
10
- } from "./chunk-V7M7AO2M.js";
10
+ } from "./chunk-YJPCY2LS.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-YN4HBUI3.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-AE3MLJMV.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-6HSVIAHC.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-SYSFH5UI.js";
3
+ } from "./chunk-RBHXB7LY.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-UENXYFT3.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-7AGM22KG.js.map
@@ -2,15 +2,15 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-V7M7AO2M.js";
5
+ } from "./chunk-YJPCY2LS.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-GNIHBXG6.js";
8
+ } from "./chunk-EE5FOU6D.js";
9
9
  import {
10
10
  cacheRetrieve,
11
11
  cacheStore,
12
12
  versionSatisfies
13
- } from "./chunk-JSV7CLE5.js";
13
+ } from "./chunk-YN4HBUI3.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-AE3MLJMV.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-EUTRPJGF.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-7E5ELMEP.js.map
@@ -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-EUTRPJGF.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-AE3MLJMV.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-6AIVUZDO.js";
3
+ } from "./chunk-LHLR2V5J.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-UENXYFT3.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-API6SOPE.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-UA6V476X.js";
3
+ } from "./chunk-W7ISQU7I.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-UENXYFT3.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-B2IEJ5WW.js.map
@@ -8,17 +8,17 @@ import {
8
8
  remove,
9
9
  setLastSeenAuthMethod,
10
10
  setLastSeenUserIdAfterAuth
11
- } from "./chunk-UZOXTQRI.js";
11
+ } from "./chunk-6HSVIAHC.js";
12
12
  import {
13
13
  getPartnersToken,
14
14
  nonRandomUUID
15
- } from "./chunk-V7M7AO2M.js";
15
+ } from "./chunk-YJPCY2LS.js";
16
16
  import {
17
17
  BugError,
18
18
  outputContent,
19
19
  outputDebug,
20
20
  outputToken
21
- } from "./chunk-2KWYWUB3.js";
21
+ } from "./chunk-AE3MLJMV.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-CLFWIHUG.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.1";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-GNIHBXG6.js.map
12
+ //# sourceMappingURL=chunk-EE5FOU6D.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-SYSFH5UI.js";
3
+ } from "./chunk-RBHXB7LY.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-MKRZYHOX.js";
6
+ } from "./chunk-MOIB2YST.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-6AIVUZDO.js";
9
+ } from "./chunk-LHLR2V5J.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-3LZI32WD.js";
12
+ } from "./chunk-UENXYFT3.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-GCPVC7EU.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-JSV7CLE5.js";
7
+ } from "./chunk-YN4HBUI3.js";
8
8
  import {
9
9
  AbortError,
10
10
  exec,
@@ -15,7 +15,7 @@ import {
15
15
  outputSuccess,
16
16
  outputToken,
17
17
  outputWarn
18
- } from "./chunk-2KWYWUB3.js";
18
+ } from "./chunk-AE3MLJMV.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
@@ -139,4 +139,4 @@ function usingPackageManager({ env } = { env: process.env }) {
139
139
  export {
140
140
  upgrade
141
141
  };
142
- //# sourceMappingURL=chunk-Y4QJSFVY.js.map
142
+ //# sourceMappingURL=chunk-HPTCTDPD.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-UD2LINKV.js";
3
+ } from "./chunk-N4LQOIDN.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-3LZI32WD.js";
6
+ } from "./chunk-UENXYFT3.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-IHFQ3F23.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-3LZI32WD.js";
3
+ } from "./chunk-UENXYFT3.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-JSV7CLE5.js";
6
+ } from "./chunk-YN4HBUI3.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-2KWYWUB3.js";
10
+ } from "./chunk-AE3MLJMV.js";
11
11
  import {
12
12
  require_lib
13
13
  } from "./chunk-LPU2VGJR.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-FV7IMU3S.js"), { isDevelopment } = await import("./local-LOH6WNIE.js"), oclif = await import("./lib-2ZBT3UR2.js"), { ShopifyConfig } = await import("./custom-oclif-loader-AGJRZGNY.js");
29
+ let { errorHandler } = await import("./error-handler-EUTRPJGF.js"), { isDevelopment } = await import("./local-DTWKQE2A.js"), oclif = await import("./lib-2ZBT3UR2.js"), { ShopifyConfig } = await import("./custom-oclif-loader-SQEUSZSS.js");
30
30
  isDevelopment() && (oclif.default.settings.debug = !0);
31
31
  try {
32
32
  let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
41
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 { renderError } = await import("./ui-IROK54OF.js");
44
+ let { renderError } = await import("./ui-OUT2NXBE.js");
45
45
  renderError({
46
46
  headline: "Upgrade to a supported Node version now.",
47
47
  body: [
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
68
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-4APHMQLC.js"), { moduleDirectory } = await import("./path-GB4VIEM6.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-NJGCZMAX.js"), { moduleDirectory } = await import("./path-GB4VIEM6.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-VLKHGWXM.js.map
120
+ //# sourceMappingURL=chunk-IXOKLO2J.js.map
@@ -5,19 +5,19 @@ import {
5
5
  ensureAuthenticatedAdmin,
6
6
  ensureAuthenticatedBusinessPlatform,
7
7
  logout
8
- } from "./chunk-SQ5I7L4B.js";
8
+ } from "./chunk-CLFWIHUG.js";
9
9
  import {
10
10
  base_command_default
11
- } from "./chunk-3LZI32WD.js";
11
+ } from "./chunk-UENXYFT3.js";
12
12
  import {
13
13
  fanoutHooks,
14
14
  requestIdsCollection
15
- } from "./chunk-Y4DTNOTB.js";
15
+ } from "./chunk-M4TCGXII.js";
16
16
  import {
17
17
  businessPlatformFqdn,
18
18
  normalizeStoreFqdn,
19
19
  partnersFqdn
20
- } from "./chunk-UZOXTQRI.js";
20
+ } from "./chunk-6HSVIAHC.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-YJPCY2LS.js";
35
35
  import {
36
36
  CLI_KIT_VERSION
37
- } from "./chunk-GNIHBXG6.js";
37
+ } from "./chunk-EE5FOU6D.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-YN4HBUI3.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-AE3MLJMV.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-JFCQDJFN.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-2KWYWUB3.js";
4
+ } from "./chunk-AE3MLJMV.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-LHLR2V5J.js.map
@@ -2,16 +2,16 @@ import {
2
2
  getEnvironmentData,
3
3
  getLastSeenUserIdAfterAuth,
4
4
  getSensitiveEnvironmentData
5
- } from "./chunk-UZOXTQRI.js";
5
+ } from "./chunk-6HSVIAHC.js";
6
6
  import {
7
7
  fetch
8
- } from "./chunk-V7M7AO2M.js";
8
+ } from "./chunk-YJPCY2LS.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-GNIHBXG6.js";
11
+ } from "./chunk-EE5FOU6D.js";
12
12
  import {
13
13
  runWithRateLimit
14
- } from "./chunk-JSV7CLE5.js";
14
+ } from "./chunk-YN4HBUI3.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-AE3MLJMV.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-M4TCGXII.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-3LZI32WD.js";
3
+ } from "./chunk-UENXYFT3.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-MBYV3HFV.js.map
@@ -7,7 +7,7 @@ import {
7
7
  renderSuccess,
8
8
  renderTable,
9
9
  renderWarning
10
- } from "./chunk-2KWYWUB3.js";
10
+ } from "./chunk-AE3MLJMV.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-MKRZYHOX.js.map
206
+ //# sourceMappingURL=chunk-MOIB2YST.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-JSV7CLE5.js";
3
+ } from "./chunk-YN4HBUI3.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-2KWYWUB3.js";
9
+ } from "./chunk-AE3MLJMV.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-MPCIJZRR.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-GNIHBXG6.js";
3
+ } from "./chunk-EE5FOU6D.js";
4
4
  import {
5
5
  outputResult
6
- } from "./chunk-2KWYWUB3.js";
6
+ } from "./chunk-AE3MLJMV.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-UD2LINKV.js.map
20
+ //# sourceMappingURL=chunk-N4LQOIDN.js.map