@shopify/cli 3.71.1 → 3.71.3

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 (81) hide show
  1. package/dist/{chunk-DN4PETPW.js → chunk-2C3DNFVI.js} +6 -6
  2. package/dist/{chunk-RYLVSBYA.js → chunk-2VSA7XB7.js} +3 -3
  3. package/dist/{chunk-OSIMKPXN.js → chunk-3L3YMNIS.js} +6 -6
  4. package/dist/{chunk-ZINX4YDI.js → chunk-44X35BNB.js} +2 -2
  5. package/dist/{chunk-TFYGB36T.js → chunk-4AYQ2VVA.js} +2 -2
  6. package/dist/{chunk-LFQTQLLB.js → chunk-5BBDQN6X.js} +8 -8
  7. package/dist/{chunk-5EH323MO.js → chunk-5FHC66QV.js} +5 -5
  8. package/dist/{chunk-ZPWQCUYD.js → chunk-677QAEGX.js} +3 -3
  9. package/dist/{chunk-EKRPU77H.js → chunk-6F3EVXQI.js} +3 -3
  10. package/dist/{chunk-24P2IYB3.js → chunk-ANNC2DRD.js} +5 -5
  11. package/dist/{chunk-NZRMJMX6.js → chunk-C6335IDE.js} +4 -4
  12. package/dist/{chunk-TM56R4RM.js → chunk-CDEOMLBD.js} +20 -13
  13. package/dist/{chunk-LVCMJDAE.js → chunk-CSIGHGXK.js} +4 -4
  14. package/dist/{chunk-RWUKHJPN.js → chunk-DBJLGOY2.js} +7 -7
  15. package/dist/{chunk-L2JRQYNX.js → chunk-EIHV2YKG.js} +2 -2
  16. package/dist/{chunk-EIYEVKVE.js → chunk-EP6JHLLT.js} +3 -3
  17. package/dist/{chunk-4BWP64T3.js → chunk-HACHBHSU.js} +6 -6
  18. package/dist/{chunk-PPETSPYI.js → chunk-HOV5ASVY.js} +3 -3
  19. package/dist/{chunk-2ULUZCOJ.js → chunk-IXMASQPW.js} +2 -2
  20. package/dist/{chunk-RJ26EKJZ.js → chunk-JYJHRYOY.js} +6 -6
  21. package/dist/{chunk-3NSN5Z4N.js → chunk-K6Y4FYT5.js} +3 -2
  22. package/dist/{chunk-5RITYBXF.js → chunk-KDHZNA2I.js} +2 -2
  23. package/dist/{chunk-SQN45NED.js → chunk-KLEYN7DR.js} +4 -4
  24. package/dist/{chunk-PGVLZNNX.js → chunk-KP5XPKYC.js} +2 -2
  25. package/dist/{chunk-NGHX3OJ3.js → chunk-LP2745DV.js} +2 -2
  26. package/dist/{chunk-4FXGYSQK.js → chunk-P5TTDXTY.js} +2 -2
  27. package/dist/{chunk-V2IQ2QWA.js → chunk-SA2FUS7F.js} +3 -3
  28. package/dist/{chunk-2S2TOSUR.js → chunk-SIP3D6LF.js} +6 -6
  29. package/dist/{chunk-O53RG2PS.js → chunk-SUYFVEJL.js} +3 -3
  30. package/dist/{chunk-MU52LLEY.js → chunk-UCMFB56N.js} +4 -4
  31. package/dist/{chunk-JJUWGFVJ.js → chunk-XMTTGOZD.js} +4 -4
  32. package/dist/{chunk-DGICBICS.js → chunk-XUENOXCR.js} +3 -3
  33. package/dist/{chunk-6XIQQAII.js → chunk-Y6F5Q2PS.js} +3 -3
  34. package/dist/{chunk-L5QY66M5.js → chunk-YMBTAXI4.js} +4 -4
  35. package/dist/{chunk-WQY4NQRT.js → chunk-ZGU6M4YD.js} +3 -3
  36. package/dist/{chunk-SBXDGZUV.js → chunk-ZYO4OZ7J.js} +3 -3
  37. package/dist/cli/commands/auth/logout.js +13 -13
  38. package/dist/cli/commands/auth/logout.test.js +14 -14
  39. package/dist/cli/commands/cache/clear.js +12 -12
  40. package/dist/cli/commands/debug/command-flags.js +12 -12
  41. package/dist/cli/commands/docs/generate.js +12 -12
  42. package/dist/cli/commands/docs/generate.test.js +12 -12
  43. package/dist/cli/commands/help.js +12 -12
  44. package/dist/cli/commands/kitchen-sink/async.js +13 -13
  45. package/dist/cli/commands/kitchen-sink/async.test.js +13 -13
  46. package/dist/cli/commands/kitchen-sink/index.js +15 -15
  47. package/dist/cli/commands/kitchen-sink/index.test.js +15 -15
  48. package/dist/cli/commands/kitchen-sink/prompts.js +13 -13
  49. package/dist/cli/commands/kitchen-sink/prompts.test.js +13 -13
  50. package/dist/cli/commands/kitchen-sink/static.js +13 -13
  51. package/dist/cli/commands/kitchen-sink/static.test.js +13 -13
  52. package/dist/cli/commands/notifications/generate.js +13 -13
  53. package/dist/cli/commands/notifications/list.js +13 -13
  54. package/dist/cli/commands/search.js +13 -13
  55. package/dist/cli/commands/upgrade.js +13 -13
  56. package/dist/cli/commands/version.js +13 -13
  57. package/dist/cli/commands/version.test.js +13 -13
  58. package/dist/cli/services/commands/notifications.js +7 -7
  59. package/dist/cli/services/commands/search.js +3 -3
  60. package/dist/cli/services/commands/search.test.js +3 -3
  61. package/dist/cli/services/commands/version.js +4 -4
  62. package/dist/cli/services/commands/version.test.js +5 -5
  63. package/dist/cli/services/kitchen-sink/async.js +3 -3
  64. package/dist/cli/services/kitchen-sink/prompts.js +3 -3
  65. package/dist/cli/services/kitchen-sink/static.js +3 -3
  66. package/dist/cli/services/upgrade.js +4 -4
  67. package/dist/cli/services/upgrade.test.js +6 -6
  68. package/dist/{custom-oclif-loader-4ILBNUIN.js → custom-oclif-loader-4V6TU5BB.js} +3 -3
  69. package/dist/{error-handler-VW3Z4CSO.js → error-handler-FY3IUTH3.js} +10 -10
  70. package/dist/hooks/postrun.js +8 -8
  71. package/dist/hooks/prerun.js +8 -8
  72. package/dist/index.js +52 -45
  73. package/dist/{local-42CRL4YR.js → local-TRXHLDGT.js} +3 -3
  74. package/dist/{node-RJUK5KNM.js → node-VC56S7TM.js} +14 -14
  75. package/dist/{node-package-manager-6PHP23VI.js → node-package-manager-NJIF6677.js} +4 -4
  76. package/dist/{path-5SZGULBR.js → path-NDLRQPLA.js} +2 -2
  77. package/dist/tsconfig.tsbuildinfo +1 -1
  78. package/dist/{ui-OIACULNZ.js → ui-WZJ7RWIS.js} +3 -3
  79. package/dist/{workerd-MTYSNN63.js → workerd-472F5I7T.js} +14 -14
  80. package/oclif.manifest.json +1 -1
  81. package/package.json +6 -6
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  errorHandler,
3
3
  registerCleanBugsnagErrorsFromWithinPlugins
4
- } from "./chunk-RWUKHJPN.js";
4
+ } from "./chunk-DBJLGOY2.js";
5
5
  import {
6
6
  setCurrentCommandId,
7
7
  showNotificationsIfNeeded
8
- } from "./chunk-RJ26EKJZ.js";
8
+ } from "./chunk-JYJHRYOY.js";
9
9
  import {
10
10
  hashString
11
- } from "./chunk-L5QY66M5.js";
11
+ } from "./chunk-YMBTAXI4.js";
12
12
  import {
13
13
  AbortError,
14
14
  addPublicMetadata,
@@ -24,10 +24,10 @@ import {
24
24
  renderWarning,
25
25
  terminalSupportsPrompting,
26
26
  underscore
27
- } from "./chunk-TM56R4RM.js";
27
+ } from "./chunk-CDEOMLBD.js";
28
28
  import {
29
29
  cwd
30
- } from "./chunk-3NSN5Z4N.js";
30
+ } from "./chunk-K6Y4FYT5.js";
31
31
  import {
32
32
  require_lib
33
33
  } from "./chunk-OJOHMVV7.js";
@@ -1686,4 +1686,4 @@ export {
1686
1686
  encodeToml,
1687
1687
  base_command_default
1688
1688
  };
1689
- //# sourceMappingURL=chunk-DN4PETPW.js.map
1689
+ //# sourceMappingURL=chunk-2C3DNFVI.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CLI_KIT_VERSION
3
- } from "./chunk-NGHX3OJ3.js";
3
+ } from "./chunk-LP2745DV.js";
4
4
  import {
5
5
  outputInfo
6
- } from "./chunk-TM56R4RM.js";
6
+ } from "./chunk-CDEOMLBD.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -17,4 +17,4 @@ async function versionService() {
17
17
  export {
18
18
  versionService
19
19
  };
20
- //# sourceMappingURL=chunk-RYLVSBYA.js.map
20
+ //# sourceMappingURL=chunk-2VSA7XB7.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-DN4PETPW.js";
3
+ } from "./chunk-2C3DNFVI.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-WQY4NQRT.js";
6
+ } from "./chunk-ZGU6M4YD.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-TM56R4RM.js";
10
+ } from "./chunk-CDEOMLBD.js";
11
11
  import {
12
12
  require_lib
13
13
  } from "./chunk-OJOHMVV7.js";
@@ -25,7 +25,7 @@ var import_core = __toESM(require_lib());
25
25
  async function warnIfOldNodeVersion(versions = process.versions) {
26
26
  let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
27
27
  if (nodeMajorVersion < 18) {
28
- let { renderWarning } = await import("./ui-OIACULNZ.js");
28
+ let { renderWarning } = await import("./ui-WZJ7RWIS.js");
29
29
  renderWarning({
30
30
  headline: "Upgrade to a supported Node version now.",
31
31
  body: [
@@ -52,7 +52,7 @@ async function runCLI(options, launchCLI, argv = process.argv, env = process.env
52
52
  return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions), launchCLI({ moduleURL: options.moduleURL });
53
53
  }
54
54
  async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
55
- let { findUpAndReadPackageJson } = await import("./node-package-manager-6PHP23VI.js"), { moduleDirectory } = await import("./path-5SZGULBR.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
55
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-NJIF6677.js"), { moduleDirectory } = await import("./path-NDLRQPLA.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
56
56
  if (argv.findIndex((arg) => arg.includes("init")) === -1) {
57
57
  let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
58
58
  argv.splice(initIndex2, 0, "init");
@@ -101,4 +101,4 @@ export {
101
101
  jsonFlag,
102
102
  ClearCache
103
103
  };
104
- //# sourceMappingURL=chunk-OSIMKPXN.js.map
104
+ //# sourceMappingURL=chunk-3L3YMNIS.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  renderConcurrent,
3
3
  renderTasks
4
- } from "./chunk-TM56R4RM.js";
4
+ } from "./chunk-CDEOMLBD.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-ZINX4YDI.js.map
46
+ //# sourceMappingURL=chunk-44X35BNB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clearCollectedLogs,
3
3
  collectedLogs
4
- } from "./chunk-TM56R4RM.js";
4
+ } from "./chunk-CDEOMLBD.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-TFYGB36T.js.map
36
+ //# sourceMappingURL=chunk-4AYQ2VVA.js.map
@@ -2,20 +2,20 @@ import {
2
2
  ensureAuthenticatedAdmin,
3
3
  ensureAuthenticatedBusinessPlatform,
4
4
  logout
5
- } from "./chunk-JJUWGFVJ.js";
5
+ } from "./chunk-XMTTGOZD.js";
6
6
  import {
7
7
  base_command_default
8
- } from "./chunk-DN4PETPW.js";
8
+ } from "./chunk-2C3DNFVI.js";
9
9
  import {
10
10
  fanoutHooks
11
- } from "./chunk-4BWP64T3.js";
11
+ } from "./chunk-HACHBHSU.js";
12
12
  import {
13
13
  businessPlatformFqdn,
14
14
  graphqlRequest,
15
15
  graphqlRequestDoc,
16
16
  handleDeprecations,
17
17
  normalizeStoreFqdn
18
- } from "./chunk-2S2TOSUR.js";
18
+ } from "./chunk-SIP3D6LF.js";
19
19
  import {
20
20
  findUpAndReadPackageJson,
21
21
  getPackageManager,
@@ -23,7 +23,7 @@ import {
23
23
  packageManagerFromUserAgent,
24
24
  readAndParsePackageJson,
25
25
  writePackageJSON
26
- } from "./chunk-WQY4NQRT.js";
26
+ } from "./chunk-ZGU6M4YD.js";
27
27
  import {
28
28
  AbortError,
29
29
  BugError,
@@ -61,7 +61,7 @@ import {
61
61
  runWithTimer,
62
62
  source_default,
63
63
  writeFile
64
- } from "./chunk-TM56R4RM.js";
64
+ } from "./chunk-CDEOMLBD.js";
65
65
  import {
66
66
  basename,
67
67
  cwd,
@@ -71,7 +71,7 @@ import {
71
71
  relativePath,
72
72
  relativizePath,
73
73
  resolvePath
74
- } from "./chunk-3NSN5Z4N.js";
74
+ } from "./chunk-K6Y4FYT5.js";
75
75
  import {
76
76
  require_lib
77
77
  } from "./chunk-OJOHMVV7.js";
@@ -146601,4 +146601,4 @@ export {
146601
146601
  getDebugBannerLine,
146602
146602
  getUtilityBannerlines
146603
146603
  };
146604
- //# sourceMappingURL=chunk-LFQTQLLB.js.map
146604
+ //# sourceMappingURL=chunk-5BBDQN6X.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-5RITYBXF.js";
3
+ } from "./chunk-KDHZNA2I.js";
4
4
  import {
5
5
  staticService
6
- } from "./chunk-PGVLZNNX.js";
6
+ } from "./chunk-KP5XPKYC.js";
7
7
  import {
8
8
  asyncTasks
9
- } from "./chunk-ZINX4YDI.js";
9
+ } from "./chunk-44X35BNB.js";
10
10
  import {
11
11
  base_command_default
12
- } from "./chunk-DN4PETPW.js";
12
+ } from "./chunk-2C3DNFVI.js";
13
13
  import {
14
14
  init_cjs_shims
15
15
  } from "./chunk-POZ5MGPT.js";
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
34
34
  export {
35
35
  KitchenSinkAll
36
36
  };
37
- //# sourceMappingURL=chunk-5EH323MO.js.map
37
+ //# sourceMappingURL=chunk-5FHC66QV.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  searchService
3
- } from "./chunk-L2JRQYNX.js";
3
+ } from "./chunk-EIHV2YKG.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-DN4PETPW.js";
6
+ } from "./chunk-2C3DNFVI.js";
7
7
  import {
8
8
  require_lib
9
9
  } from "./chunk-OJOHMVV7.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-ZPWQCUYD.js.map
48
+ //# sourceMappingURL=chunk-677QAEGX.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prompts
3
- } from "./chunk-5RITYBXF.js";
3
+ } from "./chunk-KDHZNA2I.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-DN4PETPW.js";
6
+ } from "./chunk-2C3DNFVI.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-POZ5MGPT.js";
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
25
25
  export {
26
26
  KitchenSinkPrompts
27
27
  };
28
- //# sourceMappingURL=chunk-EKRPU77H.js.map
28
+ //# sourceMappingURL=chunk-6F3EVXQI.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getNotifications,
3
3
  stringifyFilters
4
- } from "./chunk-RJ26EKJZ.js";
4
+ } from "./chunk-JYJHRYOY.js";
5
5
  import {
6
6
  randomUUID
7
- } from "./chunk-L5QY66M5.js";
7
+ } from "./chunk-YMBTAXI4.js";
8
8
  import {
9
9
  CLI_KIT_VERSION
10
- } from "./chunk-NGHX3OJ3.js";
10
+ } from "./chunk-LP2745DV.js";
11
11
  import {
12
12
  outputInfo,
13
13
  renderSelectPrompt,
@@ -15,7 +15,7 @@ import {
15
15
  renderTable,
16
16
  renderTextPrompt,
17
17
  writeFile
18
- } from "./chunk-TM56R4RM.js";
18
+ } from "./chunk-CDEOMLBD.js";
19
19
  import {
20
20
  init_cjs_shims
21
21
  } from "./chunk-POZ5MGPT.js";
@@ -102,4 +102,4 @@ export {
102
102
  generate,
103
103
  list
104
104
  };
105
- //# sourceMappingURL=chunk-24P2IYB3.js.map
105
+ //# sourceMappingURL=chunk-ANNC2DRD.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-DN4PETPW.js";
3
+ } from "./chunk-2C3DNFVI.js";
4
4
  import {
5
5
  mkdir,
6
6
  outputInfo,
7
7
  rmdir,
8
8
  writeFile
9
- } from "./chunk-TM56R4RM.js";
9
+ } from "./chunk-CDEOMLBD.js";
10
10
  import {
11
11
  cwd,
12
12
  joinPath
13
- } from "./chunk-3NSN5Z4N.js";
13
+ } from "./chunk-K6Y4FYT5.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-NZRMJMX6.js.map
119
+ //# sourceMappingURL=chunk-C6335IDE.js.map
@@ -6,12 +6,13 @@ import {
6
6
  } from "./chunk-XVNW332R.js";
7
7
  import {
8
8
  cwd,
9
+ delimiter,
9
10
  dirname,
10
11
  joinPath,
11
12
  normalizePath,
12
13
  relativizePath,
13
14
  sniffForPath
14
- } from "./chunk-3NSN5Z4N.js";
15
+ } from "./chunk-K6Y4FYT5.js";
15
16
  import {
16
17
  require_cross_spawn,
17
18
  require_lib,
@@ -2563,11 +2564,11 @@ var require_dist2 = __commonJS({
2563
2564
  var lower_case_1 = require_dist(), DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
2564
2565
  function noCase(input, options) {
2565
2566
  options === void 0 && (options = {});
2566
- for (var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case_1.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d, result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"), start = 0, end = result.length; result.charAt(start) === "\0"; )
2567
+ for (var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case_1.lowerCase : _c, _d = options.delimiter, delimiter2 = _d === void 0 ? " " : _d, result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0"), start = 0, end = result.length; result.charAt(start) === "\0"; )
2567
2568
  start++;
2568
2569
  for (; result.charAt(end - 1) === "\0"; )
2569
2570
  end--;
2570
- return result.slice(start, end).split("\0").map(transform).join(delimiter);
2571
+ return result.slice(start, end).split("\0").map(transform).join(delimiter2);
2571
2572
  }
2572
2573
  exports.noCase = noCase;
2573
2574
  function replace(input, re, value) {
@@ -22988,11 +22989,11 @@ function joinWithAnd(items) {
22988
22989
  function pascalize(str) {
22989
22990
  return (0, import_change_case.pascalCase)(str);
22990
22991
  }
22991
- function normalizeDelimitedString(delimitedString, delimiter = ",") {
22992
+ function normalizeDelimitedString(delimitedString, delimiter2 = ",") {
22992
22993
  if (!delimitedString)
22993
22994
  return;
22994
- let sortedItems = delimitedString.split(delimiter).map((value) => value.trim()).filter((value) => value !== "").sort();
22995
- return [...new Set(sortedItems)].join(delimiter);
22995
+ let sortedItems = delimitedString.split(delimiter2).map((value) => value.trim()).filter((value) => value !== "").sort();
22996
+ return [...new Set(sortedItems)].join(delimiter2);
22996
22997
  }
22997
22998
 
22998
22999
  // ../../node_modules/.pnpm/fs-extra@11.1.0/node_modules/fs-extra/lib/esm.mjs
@@ -25272,10 +25273,12 @@ async function exec2(command, args, options) {
25272
25273
  }
25273
25274
  function buildExec(command, args, options) {
25274
25275
  let env3 = options?.env ?? process.env;
25275
- shouldDisplayColors() && (env3.FORCE_COLOR = "1"), checkCommandSafety(command);
25276
+ shouldDisplayColors() && (env3.FORCE_COLOR = "1");
25277
+ let executionCwd = options?.cwd ?? cwd();
25278
+ checkCommandSafety(command, { cwd: executionCwd });
25276
25279
  let commandProcess = execa(command, args, {
25277
25280
  env: env3,
25278
- cwd: options?.cwd,
25281
+ cwd: executionCwd,
25279
25282
  input: options?.input,
25280
25283
  stdio: options?.stdio,
25281
25284
  stdin: options?.stdin,
@@ -25288,11 +25291,15 @@ function buildExec(command, args, options) {
25288
25291
  return outputDebug(`
25289
25292
  Running system process:
25290
25293
  \xB7 Command: ${command} ${args.join(" ")}
25291
- \xB7 Working directory: ${options?.cwd ?? cwd()}
25294
+ \xB7 Working directory: ${executionCwd}
25292
25295
  `), commandProcess;
25293
25296
  }
25294
- function checkCommandSafety(command) {
25295
- if (dirname(import_which.default.sync(command)) === cwd()) {
25297
+ function checkCommandSafety(command, _options) {
25298
+ let pathIncludingLocal = `${_options.cwd}${delimiter}${process.env.PATH}`, commandPath = import_which.default.sync(command, {
25299
+ nothrow: !0,
25300
+ path: pathIncludingLocal
25301
+ });
25302
+ if (commandPath && dirname(commandPath) === _options.cwd) {
25296
25303
  let headline = ["Skipped run of unsecure binary", { command }, "found in the current directory."], body = "Please remove that file or review your current PATH.";
25297
25304
  throw renderWarning({ headline, body }), new AbortError(headline, body);
25298
25305
  }
@@ -29950,7 +29957,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
29950
29957
  try {
29951
29958
  await getAndSet();
29952
29959
  } catch (error) {
29953
- let { sendErrorToBugsnag } = await import("./error-handler-VW3Z4CSO.js");
29960
+ let { sendErrorToBugsnag } = await import("./error-handler-FY3IUTH3.js");
29954
29961
  await sendErrorToBugsnag(error, "unexpected_error");
29955
29962
  }
29956
29963
  }, durationStack = [];
@@ -31893,4 +31900,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
31893
31900
  * LICENSE file in the root directory of this source tree.
31894
31901
  *)
31895
31902
  */
31896
- //# sourceMappingURL=chunk-TM56R4RM.js.map
31903
+ //# sourceMappingURL=chunk-CDEOMLBD.js.map
@@ -4,7 +4,7 @@ import {
4
4
  findUpAndReadPackageJson,
5
5
  getPackageManager,
6
6
  usesWorkspaces
7
- } from "./chunk-WQY4NQRT.js";
7
+ } from "./chunk-ZGU6M4YD.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-TM56R4RM.js";
18
+ } from "./chunk-CDEOMLBD.js";
19
19
  import {
20
20
  dirname,
21
21
  joinPath,
22
22
  moduleDirectory
23
- } from "./chunk-3NSN5Z4N.js";
23
+ } from "./chunk-K6Y4FYT5.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-LVCMJDAE.js.map
143
+ //# sourceMappingURL=chunk-CSIGHGXK.js.map
@@ -4,16 +4,16 @@ import {
4
4
  import {
5
5
  fanoutHooks,
6
6
  reportAnalyticsEvent
7
- } from "./chunk-4BWP64T3.js";
7
+ } from "./chunk-HACHBHSU.js";
8
8
  import {
9
9
  getEnvironmentData
10
- } from "./chunk-2S2TOSUR.js";
10
+ } from "./chunk-SIP3D6LF.js";
11
11
  import {
12
12
  CLI_KIT_VERSION
13
- } from "./chunk-NGHX3OJ3.js";
13
+ } from "./chunk-LP2745DV.js";
14
14
  import {
15
15
  runWithRateLimit
16
- } from "./chunk-WQY4NQRT.js";
16
+ } from "./chunk-ZGU6M4YD.js";
17
17
  import {
18
18
  AbortSilentError,
19
19
  CancelExecution,
@@ -28,14 +28,14 @@ import {
28
28
  reportingRateLimit,
29
29
  require_stacktracey,
30
30
  shouldReportErrorAsUnexpected
31
- } from "./chunk-TM56R4RM.js";
31
+ } from "./chunk-CDEOMLBD.js";
32
32
  import {
33
33
  cwd,
34
34
  isAbsolutePath,
35
35
  joinPath,
36
36
  normalizePath,
37
37
  relativePath
38
- } from "./chunk-3NSN5Z4N.js";
38
+ } from "./chunk-K6Y4FYT5.js";
39
39
  import {
40
40
  require_lib
41
41
  } from "./chunk-OJOHMVV7.js";
@@ -2147,4 +2147,4 @@ export {
2147
2147
  registerCleanBugsnagErrorsFromWithinPlugins,
2148
2148
  addBugsnagMetadata
2149
2149
  };
2150
- //# sourceMappingURL=chunk-RWUKHJPN.js.map
2150
+ //# sourceMappingURL=chunk-DBJLGOY2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openURL
3
- } from "./chunk-TM56R4RM.js";
3
+ } from "./chunk-CDEOMLBD.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-L2JRQYNX.js.map
18
+ //# sourceMappingURL=chunk-EIHV2YKG.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-RYLVSBYA.js";
3
+ } from "./chunk-2VSA7XB7.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-DN4PETPW.js";
6
+ } from "./chunk-2C3DNFVI.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-EIYEVKVE.js.map
25
+ //# sourceMappingURL=chunk-EP6JHLLT.js.map
@@ -2,16 +2,16 @@ import {
2
2
  getEnvironmentData,
3
3
  getLastSeenUserIdAfterAuth,
4
4
  getSensitiveEnvironmentData
5
- } from "./chunk-2S2TOSUR.js";
5
+ } from "./chunk-SIP3D6LF.js";
6
6
  import {
7
7
  fetch
8
- } from "./chunk-L5QY66M5.js";
8
+ } from "./chunk-YMBTAXI4.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-NGHX3OJ3.js";
11
+ } from "./chunk-LP2745DV.js";
12
12
  import {
13
13
  runWithRateLimit
14
- } from "./chunk-WQY4NQRT.js";
14
+ } from "./chunk-ZGU6M4YD.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-TM56R4RM.js";
31
+ } from "./chunk-CDEOMLBD.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -15770,4 +15770,4 @@ export {
15770
15770
  getListOfTunnelPlugins,
15771
15771
  reportAnalyticsEvent
15772
15772
  };
15773
- //# sourceMappingURL=chunk-4BWP64T3.js.map
15773
+ //# sourceMappingURL=chunk-HACHBHSU.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  asyncTasks
3
- } from "./chunk-ZINX4YDI.js";
3
+ } from "./chunk-44X35BNB.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-DN4PETPW.js";
6
+ } from "./chunk-2C3DNFVI.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-PPETSPYI.js.map
28
+ //# sourceMappingURL=chunk-HOV5ASVY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-DN4PETPW.js";
3
+ } from "./chunk-2C3DNFVI.js";
4
4
  import {
5
5
  require_lib
6
6
  } from "./chunk-OJOHMVV7.js";
@@ -43,4 +43,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
43
43
  export {
44
44
  HelpCommand
45
45
  };
46
- //# sourceMappingURL=chunk-2ULUZCOJ.js.map
46
+ //# sourceMappingURL=chunk-IXMASQPW.js.map
@@ -2,16 +2,16 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-L5QY66M5.js";
5
+ } from "./chunk-YMBTAXI4.js";
6
6
  import {
7
7
  CLI_KIT_VERSION
8
- } from "./chunk-NGHX3OJ3.js";
8
+ } from "./chunk-LP2745DV.js";
9
9
  import {
10
10
  cacheRetrieve,
11
11
  cacheRetrieveOrRepopulate,
12
12
  cacheStore,
13
13
  versionSatisfies
14
- } from "./chunk-WQY4NQRT.js";
14
+ } from "./chunk-ZGU6M4YD.js";
15
15
  import {
16
16
  AbortSilentError,
17
17
  isTruthy,
@@ -19,7 +19,7 @@ import {
19
19
  renderError,
20
20
  renderInfo,
21
21
  renderWarning
22
- } from "./chunk-TM56R4RM.js";
22
+ } from "./chunk-CDEOMLBD.js";
23
23
  import {
24
24
  init_cjs_shims
25
25
  } from "./chunk-POZ5MGPT.js";
@@ -74,7 +74,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
74
74
  throw new AbortSilentError();
75
75
  let errorMessage = `Error retrieving notifications: ${error.message}`;
76
76
  outputDebug(errorMessage);
77
- let { sendErrorToBugsnag } = await import("./error-handler-VW3Z4CSO.js");
77
+ let { sendErrorToBugsnag } = await import("./error-handler-FY3IUTH3.js");
78
78
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
79
79
  }
80
80
  }
@@ -162,4 +162,4 @@ export {
162
162
  getNotifications,
163
163
  stringifyFilters
164
164
  };
165
- //# sourceMappingURL=chunk-RJ26EKJZ.js.map
165
+ //# sourceMappingURL=chunk-JYJHRYOY.js.map
@@ -42,7 +42,7 @@ function normalizeWindowsPath(input = "") {
42
42
  return !input || !input.includes("\\") ? input : input.replace(/\\/g, "/");
43
43
  }
44
44
  var _UNC_REGEX = /^[/\\]{2}/, _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
45
- var normalize = function(path2) {
45
+ var delimiter = ":", normalize = function(path2) {
46
46
  if (path2.length === 0)
47
47
  return ".";
48
48
  path2 = normalizeWindowsPath(path2);
@@ -176,6 +176,7 @@ function sniffForJson(argv = process.argv) {
176
176
  }
177
177
 
178
178
  export {
179
+ delimiter,
179
180
  joinPath,
180
181
  normalizePath,
181
182
  resolvePath,
@@ -191,4 +192,4 @@ export {
191
192
  sniffForPath,
192
193
  sniffForJson
193
194
  };
194
- //# sourceMappingURL=chunk-3NSN5Z4N.js.map
195
+ //# sourceMappingURL=chunk-K6Y4FYT5.js.map
@@ -5,7 +5,7 @@ import {
5
5
  renderDangerousConfirmationPrompt,
6
6
  renderSelectPrompt,
7
7
  renderTextPrompt
8
- } from "./chunk-TM56R4RM.js";
8
+ } from "./chunk-CDEOMLBD.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-5RITYBXF.js.map
179
+ //# sourceMappingURL=chunk-KDHZNA2I.js.map