@shopify/cli 3.67.2 → 3.68.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 (85) hide show
  1. package/dist/{chunk-6PW7I4PG.js → chunk-4H7GRGC6.js} +3 -3
  2. package/dist/{chunk-DRZBXASC.js → chunk-5VZ6BLBM.js} +3 -3
  3. package/dist/{chunk-5RIQPY5J.js → chunk-6IS7OFWG.js} +5 -5
  4. package/dist/{chunk-3WDAYAS7.js → chunk-7PUJMPXN.js} +5528 -17168
  5. package/dist/{chunk-2Q4KXXH7.js → chunk-A3DV6VXO.js} +2 -2
  6. package/dist/{chunk-ZCKALXEF.js → chunk-C4FBYE7F.js} +4 -4
  7. package/dist/{chunk-FH3MZSH6.js → chunk-D72SCNZ2.js} +6 -2
  8. package/dist/chunk-DD5ULVKP.js +103 -0
  9. package/dist/{chunk-UU4VCC4D.js → chunk-DMM6NVLV.js} +4 -4
  10. package/dist/{chunk-7IU4SQFO.js → chunk-E2OAY724.js} +2 -2
  11. package/dist/{chunk-EFKO63JK.js → chunk-EUBA2XGP.js} +4 -4
  12. package/dist/{chunk-LC2LNJNM.js → chunk-FIAUTHMT.js} +2 -2
  13. package/dist/{chunk-STZTH6VQ.js → chunk-FKQTUQ3O.js} +4 -4
  14. package/dist/{chunk-FQIDK63N.js → chunk-G47SEBU3.js} +3 -3
  15. package/dist/{chunk-EJNO7GOB.js → chunk-GDKBDEZV.js} +3 -3
  16. package/dist/{chunk-R3LRKILP.js → chunk-HTDUPJH5.js} +3 -3
  17. package/dist/{chunk-ZBI666QU.js → chunk-IL455HI5.js} +3 -3
  18. package/dist/{chunk-TSBX37ED.js → chunk-INEJACZ7.js} +3 -3
  19. package/dist/{chunk-B2FBI5M7.js → chunk-JAH3NBCG.js} +4 -4
  20. package/dist/{chunk-J5YDWXWQ.js → chunk-JAQZDU4S.js} +2 -2
  21. package/dist/{chunk-NSWINIBD.js → chunk-JJOZP7G6.js} +3 -3
  22. package/dist/{chunk-VN52QBYW.js → chunk-JR6ZN4TY.js} +4 -4
  23. package/dist/{chunk-7BYOY5N5.js → chunk-MXZ6B3TP.js} +2 -2
  24. package/dist/{chunk-PMK54HHN.js → chunk-NCUKAORS.js} +6 -6
  25. package/dist/{chunk-BC6U7ADI.js → chunk-OBX5DIH4.js} +4 -4
  26. package/dist/{chunk-562KSNGI.js → chunk-QIBFYG6F.js} +3 -3
  27. package/dist/{chunk-V6H23CVU.js → chunk-RUR45G5U.js} +14 -2
  28. package/dist/{chunk-Z56WKKTE.js → chunk-UCYJX4VB.js} +2 -2
  29. package/dist/{chunk-WETDRCPJ.js → chunk-VVY6VJR6.js} +2 -2
  30. package/dist/{chunk-JOCNTZDE.js → chunk-WJBW5QHV.js} +2 -2
  31. package/dist/chunk-WUA6LTEH.js +15959 -0
  32. package/dist/{chunk-JAG2AX55.js → chunk-XCGES3AJ.js} +3 -3
  33. package/dist/{chunk-PAZH6CHQ.js → chunk-YKH4ILAB.js} +14 -12
  34. package/dist/{chunk-X2SV2NGT.js → chunk-ZJZ3SGOJ.js} +2 -2
  35. package/dist/cli/commands/auth/logout.js +11 -12
  36. package/dist/cli/commands/auth/logout.test.js +12 -13
  37. package/dist/cli/commands/debug/command-flags.js +10 -9
  38. package/dist/cli/commands/demo/catalog.js +11 -11
  39. package/dist/cli/commands/demo/generate-file.js +11 -11
  40. package/dist/cli/commands/demo/index.js +11 -11
  41. package/dist/cli/commands/demo/print-ai-prompt.js +11 -11
  42. package/dist/cli/commands/docs/generate.js +10 -9
  43. package/dist/cli/commands/docs/generate.test.js +10 -9
  44. package/dist/cli/commands/help.js +10 -9
  45. package/dist/cli/commands/kitchen-sink/async.js +11 -10
  46. package/dist/cli/commands/kitchen-sink/async.test.js +11 -10
  47. package/dist/cli/commands/kitchen-sink/index.js +13 -12
  48. package/dist/cli/commands/kitchen-sink/index.test.js +13 -12
  49. package/dist/cli/commands/kitchen-sink/prompts.js +11 -10
  50. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -10
  51. package/dist/cli/commands/kitchen-sink/static.js +11 -10
  52. package/dist/cli/commands/kitchen-sink/static.test.js +11 -10
  53. package/dist/cli/commands/search.js +11 -10
  54. package/dist/cli/commands/upgrade.js +11 -10
  55. package/dist/cli/commands/version.js +11 -10
  56. package/dist/cli/commands/version.test.js +11 -10
  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/demo.js +2 -2
  62. package/dist/cli/services/demo.test.js +3 -3
  63. package/dist/cli/services/kitchen-sink/async.js +2 -2
  64. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  65. package/dist/cli/services/kitchen-sink/static.js +2 -2
  66. package/dist/cli/services/upgrade.js +3 -3
  67. package/dist/cli/services/upgrade.test.js +5 -5
  68. package/dist/{custom-oclif-loader-YYAVL5FV.js → custom-oclif-loader-Y5TLP3GI.js} +2 -2
  69. package/dist/{error-handler-64WEMROQ.js → error-handler-EORUUIBK.js} +9 -8
  70. package/dist/hooks/postrun.js +9 -9
  71. package/dist/hooks/prerun.js +8 -6
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +512 -615
  74. package/dist/{local-XTOGAMBD.js → local-4NQ3UGM2.js} +4 -2
  75. package/dist/{node-7GXTBJVP.js → node-NWOSUD3V.js} +12 -13
  76. package/dist/{node-package-manager-OQGCO62Q.js → node-package-manager-D7JIOBLM.js} +5 -3
  77. package/dist/{system-OLJOMCQB.js → system-WDT2XUAD.js} +2 -2
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/dist/{ui-XXPOXZHJ.js → ui-JUVEDXYN.js} +2 -2
  80. package/dist/{workerd-PZPTMVQ4.js → workerd-VWTWLJIV.js} +12 -13
  81. package/oclif.manifest.json +15 -52
  82. package/package.json +6 -6
  83. package/dist/chunk-3UX657AK.js +0 -4244
  84. package/dist/chunk-HH7KQOBX.js +0 -118
  85. package/dist/chunk-LCWH3FW5.js +0 -33
@@ -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.67.2";
7
+ var CLI_KIT_VERSION = "3.68.0";
8
8
 
9
9
  export {
10
10
  CLI_KIT_VERSION
11
11
  };
12
- //# sourceMappingURL=chunk-2Q4KXXH7.js.map
12
+ //# sourceMappingURL=chunk-A3DV6VXO.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  cliInstallCommand
3
- } from "./chunk-NSWINIBD.js";
3
+ } from "./chunk-JJOZP7G6.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  renderInfo
9
- } from "./chunk-FH3MZSH6.js";
9
+ } from "./chunk-D72SCNZ2.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-POZ5MGPT.js";
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
34
34
  export {
35
35
  Upgrade
36
36
  };
37
- //# sourceMappingURL=chunk-ZCKALXEF.js.map
37
+ //# sourceMappingURL=chunk-C4FBYE7F.js.map
@@ -25403,6 +25403,9 @@ function codespacePortForwardingDomain(env2 = process.env) {
25403
25403
  function isCloudEnvironment(env2 = process.env) {
25404
25404
  return cloudEnvironment(env2).platform !== "localhost";
25405
25405
  }
25406
+ function themeToken(env2 = process.env) {
25407
+ return env2[environmentVariables.themeToken];
25408
+ }
25406
25409
  function cloudEnvironment(env2 = process.env) {
25407
25410
  return isSet(env2[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env2[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env2[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : isSpin(env2) ? { platform: "spin", editor: !1 } : { platform: "localhost", editor: !1 };
25408
25411
  }
@@ -29805,7 +29808,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
29805
29808
  try {
29806
29809
  await getAndSet();
29807
29810
  } catch (error) {
29808
- let { sendErrorToBugsnag } = await import("./error-handler-64WEMROQ.js");
29811
+ let { sendErrorToBugsnag } = await import("./error-handler-EORUUIBK.js");
29809
29812
  await sendErrorToBugsnag(error, "unexpected_error");
29810
29813
  }
29811
29814
  }, durationStack = [];
@@ -31643,6 +31646,7 @@ export {
31643
31646
  codespaceURL,
31644
31647
  codespacePortForwardingDomain,
31645
31648
  isCloudEnvironment,
31649
+ themeToken,
31646
31650
  cloudEnvironment,
31647
31651
  hasGit,
31648
31652
  ciPlatform,
@@ -31762,4 +31766,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
31762
31766
  * LICENSE file in the root directory of this source tree.
31763
31767
  *)
31764
31768
  */
31765
- //# sourceMappingURL=chunk-FH3MZSH6.js.map
31769
+ //# sourceMappingURL=chunk-D72SCNZ2.js.map
@@ -0,0 +1,103 @@
1
+ import {
2
+ ensureAuthenticated,
3
+ exchangeCustomPartnerToken,
4
+ getPartnersToken,
5
+ isThemeAccessSession,
6
+ nonRandomUUID,
7
+ normalizeStoreFqdn,
8
+ remove,
9
+ setLastSeenAuthMethod,
10
+ setLastSeenUserIdAfterAuth
11
+ } from "./chunk-7PUJMPXN.js";
12
+ import {
13
+ BugError,
14
+ outputContent,
15
+ outputDebug,
16
+ outputToken
17
+ } from "./chunk-D72SCNZ2.js";
18
+ import {
19
+ init_cjs_shims
20
+ } from "./chunk-POZ5MGPT.js";
21
+
22
+ // ../cli-kit/dist/public/node/session.js
23
+ init_cjs_shims();
24
+ async function ensureAuthenticatedPartners(scopes = [], env = process.env, options = {}) {
25
+ outputDebug(outputContent`Ensuring that the user is authenticated with the Partners API with the following scopes:
26
+ ${outputToken.json(scopes)}
27
+ `);
28
+ let envToken = getPartnersToken();
29
+ if (envToken) {
30
+ let result = await exchangeCustomPartnerToken(envToken);
31
+ return { token: result.accessToken, userId: result.userId };
32
+ }
33
+ let tokens = await ensureAuthenticated({ partnersApi: { scopes } }, env, options);
34
+ if (!tokens.partners)
35
+ throw new BugError("No partners token found after ensuring authenticated");
36
+ return { token: tokens.partners, userId: tokens.userId };
37
+ }
38
+ async function ensureAuthenticatedAppManagement(scopes = [], env = process.env, options = {}) {
39
+ outputDebug(outputContent`Ensuring that the user is authenticated with the App Management API with the following scopes:
40
+ ${outputToken.json(scopes)}
41
+ `);
42
+ let tokens = await ensureAuthenticated({ appManagementApi: { scopes } }, env, options);
43
+ if (!tokens)
44
+ throw new BugError("No App Management token found after ensuring authenticated");
45
+ return { token: tokens.appManagement, userId: tokens.userId };
46
+ }
47
+ async function ensureAuthenticatedStorefront(scopes = [], password = void 0, forceRefresh = !1) {
48
+ if (password) {
49
+ let authMethod = isThemeAccessSession({ token: password, storeFqdn: "" }) ? "theme_access_token" : "custom_app_token";
50
+ return setLastSeenAuthMethod(authMethod), setLastSeenUserIdAfterAuth(nonRandomUUID(password)), password;
51
+ }
52
+ outputDebug(outputContent`Ensuring that the user is authenticated with the Storefront API with the following scopes:
53
+ ${outputToken.json(scopes)}
54
+ `);
55
+ let tokens = await ensureAuthenticated({ storefrontRendererApi: { scopes } }, process.env, { forceRefresh });
56
+ if (!tokens.storefront)
57
+ throw new BugError("No storefront token found after ensuring authenticated");
58
+ return tokens.storefront;
59
+ }
60
+ async function ensureAuthenticatedAdmin(store, scopes = [], forceRefresh = !1, options = {}) {
61
+ outputDebug(outputContent`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${outputToken.raw(store)}:
62
+ ${outputToken.json(scopes)}
63
+ `);
64
+ let tokens = await ensureAuthenticated({ adminApi: { scopes, storeFqdn: store } }, process.env, {
65
+ forceRefresh,
66
+ ...options
67
+ });
68
+ if (!tokens.admin)
69
+ throw new BugError("No admin token found after ensuring authenticated");
70
+ return tokens.admin;
71
+ }
72
+ async function ensureAuthenticatedThemes(store, password, scopes = [], forceRefresh = !1) {
73
+ if (outputDebug(outputContent`Ensuring that the user is authenticated with the Theme API with the following scopes:
74
+ ${outputToken.json(scopes)}
75
+ `), password) {
76
+ let session = { token: password, storeFqdn: await normalizeStoreFqdn(store) }, authMethod = isThemeAccessSession(session) ? "theme_access_token" : "custom_app_token";
77
+ return setLastSeenAuthMethod(authMethod), setLastSeenUserIdAfterAuth(nonRandomUUID(password)), session;
78
+ }
79
+ return ensureAuthenticatedAdmin(store, scopes, forceRefresh);
80
+ }
81
+ async function ensureAuthenticatedBusinessPlatform(scopes = []) {
82
+ outputDebug(outputContent`Ensuring that the user is authenticated with the Business Platform API with the following scopes:
83
+ ${outputToken.json(scopes)}
84
+ `);
85
+ let tokens = await ensureAuthenticated({ businessPlatformApi: { scopes } }, process.env);
86
+ if (!tokens.businessPlatform)
87
+ throw new BugError("No business-platform token found after ensuring authenticated");
88
+ return tokens.businessPlatform;
89
+ }
90
+ function logout() {
91
+ return remove();
92
+ }
93
+
94
+ export {
95
+ ensureAuthenticatedPartners,
96
+ ensureAuthenticatedAppManagement,
97
+ ensureAuthenticatedStorefront,
98
+ ensureAuthenticatedAdmin,
99
+ ensureAuthenticatedThemes,
100
+ ensureAuthenticatedBusinessPlatform,
101
+ logout
102
+ };
103
+ //# sourceMappingURL=chunk-DD5ULVKP.js.map
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-QSUS3GJF.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-JOCNTZDE.js";
6
+ } from "./chunk-WJBW5QHV.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-EFKO63JK.js";
9
+ } from "./chunk-EUBA2XGP.js";
10
10
  import {
11
11
  outputInfo,
12
12
  renderInfo
13
- } from "./chunk-FH3MZSH6.js";
13
+ } from "./chunk-D72SCNZ2.js";
14
14
  import {
15
15
  __toESM,
16
16
  init_cjs_shims
@@ -55,4 +55,4 @@ The demo should perform the following steps:
55
55
  export {
56
56
  PrintAIPrompt
57
57
  };
58
- //# sourceMappingURL=chunk-UU4VCC4D.js.map
58
+ //# sourceMappingURL=chunk-DMM6NVLV.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-FH3MZSH6.js";
8
+ } from "./chunk-D72SCNZ2.js";
9
9
  import {
10
10
  init_cjs_shims
11
11
  } from "./chunk-POZ5MGPT.js";
@@ -176,4 +176,4 @@ async function prompts() {
176
176
  export {
177
177
  prompts
178
178
  };
179
- //# sourceMappingURL=chunk-7IU4SQFO.js.map
179
+ //# sourceMappingURL=chunk-E2OAY724.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-PMK54HHN.js";
4
+ } from "./chunk-NCUKAORS.js";
5
5
  import {
6
6
  hashString
7
- } from "./chunk-HH7KQOBX.js";
7
+ } from "./chunk-7PUJMPXN.js";
8
8
  import {
9
9
  AbortError,
10
10
  addPublicMetadata,
@@ -20,7 +20,7 @@ import {
20
20
  renderWarning,
21
21
  terminalSupportsPrompting,
22
22
  underscore
23
- } from "./chunk-FH3MZSH6.js";
23
+ } from "./chunk-D72SCNZ2.js";
24
24
  import {
25
25
  require_lib
26
26
  } from "./chunk-BFQFJ7IZ.js";
@@ -1682,4 +1682,4 @@ export {
1682
1682
  encodeToml,
1683
1683
  base_command_default
1684
1684
  };
1685
- //# sourceMappingURL=chunk-EFKO63JK.js.map
1685
+ //# sourceMappingURL=chunk-EUBA2XGP.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-FH3MZSH6.js";
4
+ } from "./chunk-D72SCNZ2.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-POZ5MGPT.js";
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
33
33
  export {
34
34
  mockAndCaptureOutput
35
35
  };
36
- //# sourceMappingURL=chunk-LC2LNJNM.js.map
36
+ //# sourceMappingURL=chunk-FIAUTHMT.js.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-QSUS3GJF.js";
4
4
  import {
5
5
  demoStepsSchema
6
- } from "./chunk-JOCNTZDE.js";
6
+ } from "./chunk-WJBW5QHV.js";
7
7
  import {
8
8
  base_command_default
9
- } from "./chunk-EFKO63JK.js";
9
+ } from "./chunk-EUBA2XGP.js";
10
10
  import {
11
11
  AbortError,
12
12
  fileExists,
@@ -17,7 +17,7 @@ import {
17
17
  readFile,
18
18
  renderAutocompletePrompt,
19
19
  writeFile
20
- } from "./chunk-FH3MZSH6.js";
20
+ } from "./chunk-D72SCNZ2.js";
21
21
  import {
22
22
  require_lib
23
23
  } from "./chunk-BFQFJ7IZ.js";
@@ -113,4 +113,4 @@ async function selectSteps() {
113
113
  export {
114
114
  GenerateFile
115
115
  };
116
- //# sourceMappingURL=chunk-STZTH6VQ.js.map
116
+ //# sourceMappingURL=chunk-FKQTUQ3O.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-7BYOY5N5.js";
3
+ } from "./chunk-MXZ6B3TP.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  require_lib
9
9
  } from "./chunk-BFQFJ7IZ.js";
@@ -45,4 +45,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
45
45
  export {
46
46
  Search
47
47
  };
48
- //# sourceMappingURL=chunk-FQIDK63N.js.map
48
+ //# sourceMappingURL=chunk-G47SEBU3.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-EFKO63JK.js";
3
+ } from "./chunk-EUBA2XGP.js";
4
4
  import {
5
5
  renderTable,
6
6
  renderText
7
- } from "./chunk-FH3MZSH6.js";
7
+ } from "./chunk-D72SCNZ2.js";
8
8
  import {
9
9
  require_lib
10
10
  } from "./chunk-BFQFJ7IZ.js";
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
83
83
  export {
84
84
  CommandFlags
85
85
  };
86
- //# sourceMappingURL=chunk-EJNO7GOB.js.map
86
+ //# sourceMappingURL=chunk-GDKBDEZV.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-Z56WKKTE.js";
3
+ } from "./chunk-UCYJX4VB.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkAsync
27
27
  };
28
- //# sourceMappingURL=chunk-R3LRKILP.js.map
28
+ //# sourceMappingURL=chunk-HTDUPJH5.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-JAG2AX55.js";
3
+ } from "./chunk-XCGES3AJ.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
22
22
  export {
23
23
  Version
24
24
  };
25
- //# sourceMappingURL=chunk-ZBI666QU.js.map
25
+ //# sourceMappingURL=chunk-IL455HI5.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-V6H23CVU.js";
7
+ } from "./chunk-RUR45G5U.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-FH3MZSH6.js";
18
+ } from "./chunk-D72SCNZ2.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
@@ -140,4 +140,4 @@ function usingPackageManager({ env } = { env: process.env }) {
140
140
  export {
141
141
  upgrade
142
142
  };
143
- //# sourceMappingURL=chunk-TSBX37ED.js.map
143
+ //# sourceMappingURL=chunk-INEJACZ7.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  logout
3
- } from "./chunk-3UX657AK.js";
3
+ } from "./chunk-DD5ULVKP.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-FH3MZSH6.js";
9
+ } from "./chunk-D72SCNZ2.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-B2FBI5M7.js.map
28
+ //# sourceMappingURL=chunk-JAH3NBCG.js.map
@@ -2,7 +2,7 @@ import {
2
2
  execa,
3
3
  outputContent,
4
4
  outputDebug
5
- } from "./chunk-FH3MZSH6.js";
5
+ } from "./chunk-D72SCNZ2.js";
6
6
  import {
7
7
  init_cjs_shims
8
8
  } from "./chunk-POZ5MGPT.js";
@@ -60,4 +60,4 @@ export {
60
60
  username,
61
61
  platformAndArch
62
62
  };
63
- //# sourceMappingURL=chunk-J5YDWXWQ.js.map
63
+ //# sourceMappingURL=chunk-JAQZDU4S.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  packageManagerFromUserAgent
3
- } from "./chunk-V6H23CVU.js";
3
+ } from "./chunk-RUR45G5U.js";
4
4
  import {
5
5
  currentProcessIsGlobal,
6
6
  inferPackageManagerForGlobalCLI,
7
7
  outputContent,
8
8
  outputToken
9
- } from "./chunk-FH3MZSH6.js";
9
+ } from "./chunk-D72SCNZ2.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-NSWINIBD.js.map
28
+ //# sourceMappingURL=chunk-JJOZP7G6.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  demo
3
- } from "./chunk-JOCNTZDE.js";
3
+ } from "./chunk-WJBW5QHV.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  readFile
9
- } from "./chunk-FH3MZSH6.js";
9
+ } from "./chunk-D72SCNZ2.js";
10
10
  import {
11
11
  require_lib
12
12
  } from "./chunk-BFQFJ7IZ.js";
@@ -56,4 +56,4 @@ var Demo = class _Demo extends base_command_default {
56
56
  export {
57
57
  Demo
58
58
  };
59
- //# sourceMappingURL=chunk-VN52QBYW.js.map
59
+ //# sourceMappingURL=chunk-JR6ZN4TY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-FH3MZSH6.js";
3
+ } from "./chunk-D72SCNZ2.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-7BYOY5N5.js.map
18
+ //# sourceMappingURL=chunk-MXZ6B3TP.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-3WDAYAS7.js";
4
+ } from "./chunk-WUA6LTEH.js";
5
5
  import {
6
6
  getEnvironmentData
7
- } from "./chunk-HH7KQOBX.js";
7
+ } from "./chunk-7PUJMPXN.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-V6H23CVU.js";
10
+ } from "./chunk-RUR45G5U.js";
11
11
  import {
12
12
  require_once
13
13
  } from "./chunk-O5K4AU7Q.js";
14
14
  import {
15
15
  CLI_KIT_VERSION
16
- } from "./chunk-2Q4KXXH7.js";
16
+ } from "./chunk-A3DV6VXO.js";
17
17
  import {
18
18
  AbortSilentError,
19
19
  CancelExecution,
@@ -27,7 +27,7 @@ import {
27
27
  printEventsJson,
28
28
  require_stacktracey,
29
29
  shouldReportError
30
- } from "./chunk-FH3MZSH6.js";
30
+ } from "./chunk-D72SCNZ2.js";
31
31
  import {
32
32
  bugsnagApiKey,
33
33
  reportingRateLimit
@@ -2152,4 +2152,4 @@ export {
2152
2152
  registerCleanBugsnagErrorsFromWithinPlugins,
2153
2153
  addBugsnagMetadata
2154
2154
  };
2155
- //# sourceMappingURL=chunk-PMK54HHN.js.map
2155
+ //# sourceMappingURL=chunk-NCUKAORS.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  demo
3
- } from "./chunk-JOCNTZDE.js";
3
+ } from "./chunk-WJBW5QHV.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.js";
7
7
  import {
8
8
  outputInfo,
9
9
  readFile,
10
10
  renderAutocompletePrompt
11
- } from "./chunk-FH3MZSH6.js";
11
+ } from "./chunk-D72SCNZ2.js";
12
12
  import {
13
13
  joinPath
14
14
  } from "./chunk-T2GATXSP.js";
@@ -42,4 +42,4 @@ var Catalog = class extends base_command_default {
42
42
  export {
43
43
  Catalog
44
44
  };
45
- //# sourceMappingURL=chunk-BC6U7ADI.js.map
45
+ //# sourceMappingURL=chunk-OBX5DIH4.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  staticService
3
- } from "./chunk-X2SV2NGT.js";
3
+ } from "./chunk-ZJZ3SGOJ.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-EFKO63JK.js";
6
+ } from "./chunk-EUBA2XGP.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-562KSNGI.js.map
28
+ //# sourceMappingURL=chunk-QIBFYG6F.js.map
@@ -10,6 +10,7 @@ import {
10
10
  fileExists,
11
11
  findPathUp,
12
12
  glob,
13
+ inferPackageManagerForGlobalCLI,
13
14
  isUnitTest,
14
15
  mimicFunction,
15
16
  outputContent,
@@ -19,7 +20,7 @@ import {
19
20
  require_get_stream,
20
21
  runWithTimer,
21
22
  writeFile
22
- } from "./chunk-FH3MZSH6.js";
23
+ } from "./chunk-D72SCNZ2.js";
23
24
  import {
24
25
  envPaths
25
26
  } from "./chunk-NZDBLGNM.js";
@@ -9046,6 +9047,7 @@ __export(node_package_manager_exports, {
9046
9047
  getPackageManager: () => getPackageManager,
9047
9048
  getPackageName: () => getPackageName,
9048
9049
  getPackageVersion: () => getPackageVersion,
9050
+ inferPackageManager: () => inferPackageManager,
9049
9051
  installNPMDependenciesRecursively: () => installNPMDependenciesRecursively,
9050
9052
  installNodeModules: () => installNodeModules,
9051
9053
  lockfiles: () => lockfiles,
@@ -13887,6 +13889,15 @@ async function writePackageJSON(directory, packageJSON) {
13887
13889
  let packagePath = joinPath(directory, "package.json");
13888
13890
  await writeFile(packagePath, JSON.stringify(packageJSON, null, 2));
13889
13891
  }
13892
+ function inferPackageManager(optionsPackageManager, env = process.env) {
13893
+ if (optionsPackageManager && packageManager.includes(optionsPackageManager))
13894
+ return optionsPackageManager;
13895
+ let usedPackageManager = packageManagerFromUserAgent(env);
13896
+ if (usedPackageManager !== "unknown")
13897
+ return usedPackageManager;
13898
+ let globalPackageManager = inferPackageManagerForGlobalCLI();
13899
+ return globalPackageManager !== "unknown" ? globalPackageManager : "npm";
13900
+ }
13890
13901
 
13891
13902
  export {
13892
13903
  require_ajv,
@@ -13927,6 +13938,7 @@ export {
13927
13938
  findUpAndReadPackageJson,
13928
13939
  addResolutionOrOverride,
13929
13940
  writePackageJSON,
13941
+ inferPackageManager,
13930
13942
  node_package_manager_exports
13931
13943
  };
13932
13944
  /*! Bundled license information:
@@ -13962,4 +13974,4 @@ deep-extend/lib/deep-extend.js:
13962
13974
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13963
13975
  *)
13964
13976
  */
13965
- //# sourceMappingURL=chunk-V6H23CVU.js.map
13977
+ //# sourceMappingURL=chunk-RUR45G5U.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-FH3MZSH6.js";
4
+ } from "./chunk-D72SCNZ2.js";
5
5
  import {
6
6
  init_cjs_shims
7
7
  } from "./chunk-POZ5MGPT.js";
@@ -43,4 +43,4 @@ async function asyncTasks() {
43
43
  export {
44
44
  asyncTasks
45
45
  };
46
- //# sourceMappingURL=chunk-Z56WKKTE.js.map
46
+ //# sourceMappingURL=chunk-UCYJX4VB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-EFKO63JK.js";
3
+ } from "./chunk-EUBA2XGP.js";
4
4
  import {
5
5
  require_lib
6
6
  } from "./chunk-BFQFJ7IZ.js";
@@ -43,4 +43,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
43
43
  export {
44
44
  HelpCommand
45
45
  };
46
- //# sourceMappingURL=chunk-WETDRCPJ.js.map
46
+ //# sourceMappingURL=chunk-VVY6VJR6.js.map
@@ -17,7 +17,7 @@ import {
17
17
  renderTextPrompt,
18
18
  renderWarning,
19
19
  sleep
20
- } from "./chunk-FH3MZSH6.js";
20
+ } from "./chunk-D72SCNZ2.js";
21
21
  import {
22
22
  init_cjs_shims
23
23
  } from "./chunk-POZ5MGPT.js";
@@ -309,4 +309,4 @@ export {
309
309
  demoStepsSchema,
310
310
  demo
311
311
  };
312
- //# sourceMappingURL=chunk-JOCNTZDE.js.map
312
+ //# sourceMappingURL=chunk-WJBW5QHV.js.map