@shopify/cli 3.77.1 → 3.78.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 (89) hide show
  1. package/dist/assets/hydrogen/starter/CHANGELOG.md +67 -16
  2. package/dist/assets/hydrogen/starter/app/root.tsx +45 -4
  3. package/dist/assets/hydrogen/starter/app/routes.ts +4 -2
  4. package/dist/assets/hydrogen/starter/package.json +3 -3
  5. package/dist/{chunk-RXPX6QL6.js → chunk-3COQLGRL.js} +4 -4
  6. package/dist/{chunk-YW77LWOY.js → chunk-5DXEBIVF.js} +2 -2
  7. package/dist/{chunk-V24VKC54.js → chunk-6GQF27II.js} +3 -3
  8. package/dist/{chunk-F7YDVUG6.js → chunk-6IPFYNHW.js} +2 -2
  9. package/dist/{chunk-ZPXCGFEZ.js → chunk-AV64MUSE.js} +5 -5
  10. package/dist/{chunk-MJ5E3G6Z.js → chunk-BV6PURBM.js} +3 -3
  11. package/dist/{chunk-OZYTPWJS.js → chunk-DNGCAQBF.js} +6 -6
  12. package/dist/{chunk-FGOKII2H.js → chunk-EBRJEUGC.js} +36 -32
  13. package/dist/{chunk-KMLSEENO.js → chunk-F23MB6TB.js} +3 -3
  14. package/dist/{chunk-7N6KTS5H.js → chunk-F3SJ7GH2.js} +3 -3
  15. package/dist/{chunk-JA44NPON.js → chunk-FEYZLXHI.js} +3 -3
  16. package/dist/{chunk-G2Z2JNWZ.js → chunk-FHYKRLSA.js} +3 -3
  17. package/dist/{chunk-CYZVSCKE.js → chunk-FZI742QM.js} +2 -2
  18. package/dist/{chunk-NKPXKN63.js → chunk-GA5Q2G7N.js} +2 -2
  19. package/dist/{chunk-IDLVFDLS.js → chunk-GWN4I7WX.js} +3 -3
  20. package/dist/{chunk-YKGXAR4K.js → chunk-H73PDGHM.js} +119 -97
  21. package/dist/{chunk-7TDJWEEF.js → chunk-HE3BDMSQ.js} +3 -3
  22. package/dist/{chunk-Y7SMROY2.js → chunk-HGD26EDV.js} +13 -4
  23. package/dist/{chunk-DE23IXCV.js → chunk-HO5XX2LU.js} +6 -6
  24. package/dist/{chunk-J2TFYL5Z.js → chunk-HRT2J6AZ.js} +3 -3
  25. package/dist/{chunk-DXETR7HO.js → chunk-LE26CN2H.js} +4 -4
  26. package/dist/{chunk-THDGA4UF.js → chunk-O6JLOWUE.js} +5 -5
  27. package/dist/{chunk-7Z57GKMD.js → chunk-OAZABGFS.js} +7 -3
  28. package/dist/{chunk-PFXZ73LI.js → chunk-PT5BDLIN.js} +5 -5
  29. package/dist/{chunk-VSKRQ3JT.js → chunk-QAKYKTFV.js} +2 -1
  30. package/dist/{chunk-ODZP3BOI.js → chunk-QTRXKFCW.js} +3 -3
  31. package/dist/{chunk-3LPRAP3C.js → chunk-QYA3TD2H.js} +4 -4
  32. package/dist/{chunk-HL6ZWA6P.js → chunk-RH2XRA3A.js} +4 -4
  33. package/dist/{chunk-4QUBSR5N.js → chunk-SWU3QODP.js} +2 -2
  34. package/dist/{chunk-KRRCKFNF.js → chunk-TFCMG5O2.js} +8 -8
  35. package/dist/{chunk-YUFBJAT6.js → chunk-TIMWAEJ5.js} +3 -3
  36. package/dist/{chunk-NMVJRPWT.js → chunk-TJUGCRWY.js} +2 -2
  37. package/dist/{chunk-V2EXSXIB.js → chunk-UGX6DGR4.js} +2 -2
  38. package/dist/{chunk-TIMSXB7V.js → chunk-VE4ESNRH.js} +3 -3
  39. package/dist/{chunk-LGVMVIUY.js → chunk-WWOE2EFZ.js} +4 -4
  40. package/dist/{chunk-5Y3LMFTE.js → chunk-ZJ2IPVO4.js} +3 -3
  41. package/dist/cli/commands/auth/logout.js +12 -12
  42. package/dist/cli/commands/auth/logout.test.js +13 -13
  43. package/dist/cli/commands/cache/clear.js +11 -11
  44. package/dist/cli/commands/debug/command-flags.js +11 -11
  45. package/dist/cli/commands/docs/generate.js +11 -11
  46. package/dist/cli/commands/docs/generate.test.js +11 -11
  47. package/dist/cli/commands/help.js +11 -11
  48. package/dist/cli/commands/kitchen-sink/async.js +12 -12
  49. package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
  50. package/dist/cli/commands/kitchen-sink/index.js +14 -14
  51. package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
  52. package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
  53. package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
  54. package/dist/cli/commands/kitchen-sink/static.js +12 -12
  55. package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
  56. package/dist/cli/commands/notifications/generate.js +12 -12
  57. package/dist/cli/commands/notifications/list.js +12 -12
  58. package/dist/cli/commands/search.js +12 -12
  59. package/dist/cli/commands/upgrade.js +12 -12
  60. package/dist/cli/commands/version.js +12 -12
  61. package/dist/cli/commands/version.test.js +12 -12
  62. package/dist/cli/services/commands/notifications.js +7 -7
  63. package/dist/cli/services/commands/search.js +3 -3
  64. package/dist/cli/services/commands/search.test.js +3 -3
  65. package/dist/cli/services/commands/version.js +4 -4
  66. package/dist/cli/services/commands/version.test.js +5 -5
  67. package/dist/cli/services/kitchen-sink/async.js +3 -3
  68. package/dist/cli/services/kitchen-sink/prompts.js +3 -3
  69. package/dist/cli/services/kitchen-sink/static.js +3 -3
  70. package/dist/cli/services/upgrade.js +4 -4
  71. package/dist/cli/services/upgrade.test.js +5 -5
  72. package/dist/{custom-oclif-loader-OE7KHHEX.js → custom-oclif-loader-BGXT6N23.js} +3 -3
  73. package/dist/data/default_setting_values.json +0 -56
  74. package/dist/data/latest.json +1 -1
  75. package/dist/{error-handler-CLK6ULQD.js → error-handler-HVEM4RKZ.js} +9 -9
  76. package/dist/hooks/postrun.js +7 -7
  77. package/dist/hooks/prerun.js +8 -8
  78. package/dist/index.js +48311 -10869
  79. package/dist/{lib-SGEWXU7Z.js → lib-IZAG57CE.js} +2 -2
  80. package/dist/{local-YA7BWRS4.js → local-UX2FKODS.js} +3 -3
  81. package/dist/{morph-UGAQHTEA.js → morph-W4XLLZ47.js} +9 -9
  82. package/dist/{node-66AIONQH.js → node-RJ5OAO2M.js} +15 -15
  83. package/dist/{node-package-manager-BD2U7LUE.js → node-package-manager-NS6MYGUI.js} +4 -4
  84. package/dist/tsconfig.tsbuildinfo +1 -1
  85. package/dist/{ui-UIXIY6XH.js → ui-FQHY2OWD.js} +3 -3
  86. package/dist/{workerd-VYNSPDCR.js → workerd-KUHMQGDX.js} +14 -14
  87. package/oclif.manifest.json +1 -1
  88. package/package.json +10 -8
  89. package/dist/assets/hydrogen/starter/app/layout.tsx +0 -46
@@ -8,19 +8,19 @@ import {
8
8
  ensureAuthenticatedAdmin,
9
9
  ensureAuthenticatedBusinessPlatform,
10
10
  logout
11
- } from "./chunk-JA44NPON.js";
11
+ } from "./chunk-FEYZLXHI.js";
12
12
  import {
13
13
  base_command_default
14
- } from "./chunk-PFXZ73LI.js";
14
+ } from "./chunk-PT5BDLIN.js";
15
15
  import {
16
16
  fanoutHooks,
17
17
  requestIdsCollection
18
- } from "./chunk-DE23IXCV.js";
18
+ } from "./chunk-HO5XX2LU.js";
19
19
  import {
20
20
  businessPlatformFqdn,
21
21
  normalizeStoreFqdn,
22
22
  partnersFqdn
23
- } from "./chunk-Y7SMROY2.js";
23
+ } from "./chunk-HGD26EDV.js";
24
24
  import {
25
25
  ClientError,
26
26
  GraphQLClient,
@@ -33,10 +33,10 @@ import {
33
33
  retryAwareRequest,
34
34
  sanitizeURL,
35
35
  sanitizedHeadersOutput
36
- } from "./chunk-7TDJWEEF.js";
36
+ } from "./chunk-HE3BDMSQ.js";
37
37
  import {
38
38
  CLI_KIT_VERSION
39
- } from "./chunk-V2EXSXIB.js";
39
+ } from "./chunk-UGX6DGR4.js";
40
40
  import {
41
41
  cacheRetrieveOrRepopulate,
42
42
  findUpAndReadPackageJson,
@@ -46,7 +46,7 @@ import {
46
46
  readAndParsePackageJson,
47
47
  timeIntervalToMilliseconds,
48
48
  writePackageJSON
49
- } from "./chunk-YW77LWOY.js";
49
+ } from "./chunk-5DXEBIVF.js";
50
50
  import {
51
51
  AbortError,
52
52
  BugError,
@@ -91,7 +91,7 @@ import {
91
91
  stringifyMessage,
92
92
  writeFile,
93
93
  writeFileSync
94
- } from "./chunk-7Z57GKMD.js";
94
+ } from "./chunk-OAZABGFS.js";
95
95
  import {
96
96
  basename,
97
97
  cwd,
@@ -104,7 +104,7 @@ import {
104
104
  } from "./chunk-57Q6OQG4.js";
105
105
  import {
106
106
  require_lib
107
- } from "./chunk-VSKRQ3JT.js";
107
+ } from "./chunk-QAKYKTFV.js";
108
108
  import {
109
109
  require_source_map_support
110
110
  } from "./chunk-G5R6YD27.js";
@@ -135355,21 +135355,21 @@ var require_main = __commonJS({
135355
135355
  }
135356
135356
  });
135357
135357
 
135358
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
135358
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
135359
135359
  init_cjs_shims();
135360
135360
  var import_core = __toESM(require_lib(), 1);
135361
135361
 
135362
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
135362
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
135363
135363
  init_cjs_shims();
135364
135364
 
135365
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
135365
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
135366
135366
  init_cjs_shims();
135367
135367
 
135368
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
135368
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
135369
135369
  init_cjs_shims();
135370
135370
  import { fileURLToPath } from "node:url";
135371
135371
 
135372
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
135372
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
135373
135373
  init_cjs_shims();
135374
135374
  import { exec } from "node:child_process";
135375
135375
  import { promisify } from "node:util";
@@ -135381,7 +135381,7 @@ function supressNodeExperimentalWarnings() {
135381
135381
  }));
135382
135382
  }
135383
135383
 
135384
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
135384
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
135385
135385
  var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = monorepoPackagesPath.endsWith(
135386
135386
  "/hydrogen/packages/"
135387
135387
  ), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
@@ -135428,7 +135428,7 @@ async function getRepoNodeModules() {
135428
135428
  return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
135429
135429
  }
135430
135430
 
135431
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
135431
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
135432
135432
  var SETUP_CSS_STRATEGIES = [
135433
135433
  "tailwind",
135434
135434
  "vanilla-extract",
@@ -135463,14 +135463,14 @@ async function canWriteFiles(assetMap, directory, force) {
135463
135463
  }));
135464
135464
  }
135465
135465
 
135466
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
135466
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
135467
135467
  init_cjs_shims();
135468
135468
 
135469
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
135469
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
135470
135470
  init_cjs_shims();
135471
135471
  import { readdir } from "node:fs/promises";
135472
135472
 
135473
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
135473
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
135474
135474
  init_cjs_shims();
135475
135475
  var prettier = __toESM(require_prettier(), 1);
135476
135476
  import * as FS from "fs/promises";
@@ -135500,7 +135500,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
135500
135500
  });
135501
135501
  }
135502
135502
 
135503
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
135503
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
135504
135504
  async function replaceFileContent(filepath, formatConfig, replacer) {
135505
135505
  let content = await replacer(await readFile(filepath));
135506
135506
  if (typeof content == "string")
@@ -135583,10 +135583,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
135583
135583
  );
135584
135584
  }
135585
135585
 
135586
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
135586
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
135587
135587
  init_cjs_shims();
135588
135588
 
135589
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
135589
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
135590
135590
  init_cjs_shims();
135591
135591
  async function importLangAstGrep(lang) {
135592
135592
  let astGrep = await import("@ast-grep/napi");
@@ -135595,12 +135595,9 @@ async function importLangAstGrep(lang) {
135595
135595
  return astGrep[lang];
135596
135596
  }
135597
135597
 
135598
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
135598
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
135599
135599
  async function replaceRootLinks(appDirectory, formatConfig, importer) {
135600
- let { filepath, astType } = await findFileWithExtension(
135601
- appDirectory,
135602
- "layout"
135603
- );
135600
+ let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
135604
135601
  if (!filepath || !astType)
135605
135602
  throw new AbortError(`Could not find root file in ${appDirectory}`);
135606
135603
  await replaceFileContent(filepath, formatConfig, async (content) => {
@@ -135700,7 +135697,7 @@ var vitePluginListRule = {
135700
135697
  }
135701
135698
  };
135702
135699
 
135703
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
135700
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
135704
135701
  var tailwindCssPath = "styles/tailwind.css";
135705
135702
  async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
135706
135703
  let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
@@ -135736,7 +135733,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
135736
135733
  };
135737
135734
  }
135738
135735
 
135739
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
135736
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
135740
135737
  init_cjs_shims();
135741
135738
  async function setupVanillaExtract({
135742
135739
  rootDirectory
@@ -135757,7 +135754,7 @@ async function setupVanillaExtract({
135757
135754
  };
135758
135755
  }
135759
135756
 
135760
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
135757
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
135761
135758
  var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
135762
135759
  tailwind: "Tailwind v4",
135763
135760
  "vanilla-extract": "Vanilla Extract",
@@ -135802,23 +135799,23 @@ async function renderCssPrompt(options2) {
135802
135799
  });
135803
135800
  }
135804
135801
 
135805
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
135802
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
135806
135803
  init_cjs_shims();
135807
135804
 
135808
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
135805
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
135809
135806
  init_cjs_shims();
135810
135807
 
135811
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
135808
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
135812
135809
  init_cjs_shims();
135813
135810
 
135814
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
135811
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
135815
135812
  init_cjs_shims();
135816
135813
  async function transpileFile(code, filepath, keepTypes = !0) {
135817
- let { transpileTs } = await import("./morph-UGAQHTEA.js");
135814
+ let { transpileTs } = await import("./morph-W4XLLZ47.js");
135818
135815
  return transpileTs(code, filepath, keepTypes);
135819
135816
  }
135820
135817
 
135821
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
135818
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
135822
135819
  init_cjs_shims();
135823
135820
  var DEFAULT_JS_CONFIG = {
135824
135821
  checkJs: !1,
@@ -135851,6 +135848,11 @@ function convertConfigToJS(tsConfig, keepTypes = !1) {
135851
135848
  return jsConfig;
135852
135849
  }
135853
135850
  async function transpileProject(projectDir, keepTypes = !0) {
135851
+ let routesPath = joinPath(projectDir, "app/routes.ts"), replacedRoutesFileContent = (await readFile(routesPath)).replace(
135852
+ "./layout.tsx",
135853
+ "./layout.jsx"
135854
+ );
135855
+ await writeFile(routesPath, replacedRoutesFileContent);
135854
135856
  let entries = await glob("**/*.+(ts|tsx)", {
135855
135857
  absolute: !0,
135856
135858
  cwd: projectDir,
@@ -135924,7 +135926,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
135924
135926
  }
135925
135927
  }
135926
135928
 
135927
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
135929
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
135928
135930
  async function replaceContextI18n({
135929
135931
  rootDirectory,
135930
135932
  contextCreate = joinPath("app", "lib", "context.ts")
@@ -136063,7 +136065,7 @@ async function findContextCreateFile({
136063
136065
  return { filepath, astType };
136064
136066
  }
136065
136067
 
136066
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
136068
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
136067
136069
  var SETUP_I18N_STRATEGIES = [
136068
136070
  "subfolders",
136069
136071
  "domains",
@@ -136095,7 +136097,7 @@ async function renderI18nPrompt(options2) {
136095
136097
  });
136096
136098
  }
136097
136099
 
136098
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
136100
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
136099
136101
  var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
136100
136102
  path: {
136101
136103
  path: import_core.Flags.string({
@@ -136283,7 +136285,7 @@ function overrideFlag(flags, extra) {
136283
136285
  );
136284
136286
  }
136285
136287
 
136286
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
136288
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
136287
136289
  init_cjs_shims();
136288
136290
  import { createRequire } from "node:module";
136289
136291
  import { pathToFileURL } from "node:url";
@@ -136308,13 +136310,13 @@ function importLocal(packageName, path3) {
136308
136310
  return import(pathToFileURL(realPath).href);
136309
136311
  }
136310
136312
 
136311
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
136313
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
136312
136314
  init_cjs_shims();
136313
136315
  import path from "node:path";
136314
136316
  import { EventEmitter } from "node:events";
136315
136317
  import { ReadableStream } from "node:stream/web";
136316
136318
 
136317
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
136319
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
136318
136320
  init_cjs_shims();
136319
136321
  function getGraphiQLUrl({
136320
136322
  host = "",
@@ -136328,7 +136330,7 @@ function getGraphiQLUrl({
136328
136330
  return url;
136329
136331
  }
136330
136332
 
136331
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
136333
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
136332
136334
  var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
136333
136335
  function setConstructors(constructors) {
136334
136336
  ResponseConstructor = constructors.Response;
@@ -136429,7 +136431,7 @@ function handleDebugNetworkRequest(request) {
136429
136431
  return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
136430
136432
  }
136431
136433
 
136432
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
136434
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
136433
136435
  init_cjs_shims();
136434
136436
  var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
136435
136437
  function handleMiniOxygenImportFail() {
@@ -136463,21 +136465,21 @@ function logRequestLine({
136463
136465
  }
136464
136466
  }
136465
136467
 
136466
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
136468
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
136467
136469
  init_cjs_shims();
136468
136470
 
136469
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
136471
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
136470
136472
  init_cjs_shims();
136471
136473
  var import_core3 = __toESM(require_lib(), 1);
136472
136474
 
136473
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
136475
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
136474
136476
  init_cjs_shims();
136475
136477
  var import_core2 = __toESM(require_lib(), 1);
136476
136478
 
136477
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
136479
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
136478
136480
  init_cjs_shims();
136479
136481
 
136480
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
136482
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
136481
136483
  init_cjs_shims();
136482
136484
 
136483
136485
  // ../cli-kit/dist/public/node/api/graphql.js
@@ -136591,7 +136593,7 @@ async function graphqlRequestDoc(options2) {
136591
136593
  });
136592
136594
  }
136593
136595
 
136594
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
136596
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
136595
136597
  async function adminRequest(query, session, variables) {
136596
136598
  let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
136597
136599
  try {
@@ -136626,7 +136628,7 @@ async function adminRequest(query, session, variables) {
136626
136628
  }
136627
136629
  }
136628
136630
 
136629
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
136631
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
136630
136632
  init_cjs_shims();
136631
136633
  var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
136632
136634
  function parseGid(gid) {
@@ -136636,7 +136638,7 @@ function parseGid(gid) {
136636
136638
  throw new AbortError(`Invalid Global ID: ${gid}`);
136637
136639
  }
136638
136640
 
136639
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
136641
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
136640
136642
  var LinkStorefrontQuery = `#graphql
136641
136643
  query LinkStorefront {
136642
136644
  hydrogenStorefronts {
@@ -136657,7 +136659,7 @@ async function getStorefronts(adminSession) {
136657
136659
  }));
136658
136660
  }
136659
136661
 
136660
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
136662
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
136661
136663
  init_cjs_shims();
136662
136664
  var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
136663
136665
  async function resetConfig(root) {
@@ -136728,7 +136730,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
136728
136730
  }
136729
136731
  }
136730
136732
 
136731
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
136733
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
136732
136734
  init_cjs_shims();
136733
136735
  var CreateStorefrontMutation = `#graphql
136734
136736
  mutation CreateStorefront($title: String!) {
@@ -136762,7 +136764,7 @@ async function createStorefront(adminSession, title) {
136762
136764
  return { jobId, storefront: hydrogenStorefront };
136763
136765
  }
136764
136766
 
136765
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
136767
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
136766
136768
  init_cjs_shims();
136767
136769
  var FetchJobQuery = `#graphql
136768
136770
  query FetchJob($id: ID!) {
@@ -136796,7 +136798,7 @@ function waitForJob(adminSession, jobId) {
136796
136798
  });
136797
136799
  }
136798
136800
 
136799
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
136801
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
136800
136802
  init_cjs_shims();
136801
136803
  function titleize(name = "") {
136802
136804
  return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
@@ -136804,7 +136806,7 @@ function titleize(name = "") {
136804
136806
  ).join(" ");
136805
136807
  }
136806
136808
 
136807
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
136809
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
136808
136810
  init_cjs_shims();
136809
136811
  import os from "node:os";
136810
136812
  var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
@@ -136919,10 +136921,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
136919
136921
  return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
136920
136922
  }
136921
136923
 
136922
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
136924
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
136923
136925
  init_cjs_shims();
136924
136926
 
136925
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
136927
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
136926
136928
  init_cjs_shims();
136927
136929
 
136928
136930
  // ../cli-kit/dist/public/node/api/business-platform.js
@@ -136930,7 +136932,16 @@ init_cjs_shims();
136930
136932
 
136931
136933
  // ../cli-kit/dist/public/node/api/partners.js
136932
136934
  init_cjs_shims();
136933
- var import_bottleneck = __toESM(require_lib2()), limiter = new import_bottleneck.default({
136935
+
136936
+ // ../cli-kit/dist/public/node/api/utilities.js
136937
+ init_cjs_shims();
136938
+ var addCursorAndFiltersToAppLogsUrl = (baseUrl, cursor, filters) => {
136939
+ let url = new URL(baseUrl);
136940
+ return cursor && url.searchParams.append("cursor", cursor), filters?.status && url.searchParams.append("status", filters.status), filters?.source && url.searchParams.append("source", filters.source), url.toString();
136941
+ };
136942
+
136943
+ // ../cli-kit/dist/public/node/api/partners.js
136944
+ var import_bottleneck = __toESM(require_lib2(), 1), limiter = new import_bottleneck.default({
136934
136945
  minTime: 150,
136935
136946
  maxConcurrent: 10
136936
136947
  });
@@ -136952,13 +136963,27 @@ async function partnersRequest(query, token, variables, cacheOptions) {
136952
136963
  cacheOptions
136953
136964
  }));
136954
136965
  }
136966
+ var generateFetchAppLogUrl = async (cursor, filters) => {
136967
+ let url = `https://${await partnersFqdn()}/app_logs/poll`;
136968
+ return addCursorAndFiltersToAppLogsUrl(url, cursor, filters);
136969
+ };
136955
136970
  async function partnersRequestDoc(query, token, variables) {
136956
- let opts = await setupRequest(token);
136957
- return limiter.schedule(() => graphqlRequestDoc({
136958
- ...opts,
136959
- query,
136960
- variables
136961
- }));
136971
+ try {
136972
+ let opts = await setupRequest(token);
136973
+ return limiter.schedule(() => graphqlRequestDoc({
136974
+ ...opts,
136975
+ query,
136976
+ variables
136977
+ }));
136978
+ } catch (error) {
136979
+ if (error.errors?.[0]?.extensions?.type === "unsupported_client_version") {
136980
+ let packageManager = await getPackageManager(cwd());
136981
+ throw new AbortError(["Upgrade your CLI version to run this command."], null, [
136982
+ ["Run", { command: formatPackageManagerCommand(packageManager, "shopify upgrade") }]
136983
+ ]);
136984
+ }
136985
+ throw error;
136986
+ }
136962
136987
  }
136963
136988
  function handleDeprecations(response) {
136964
136989
  if (!response.extensions)
@@ -137019,7 +137044,7 @@ async function businessPlatformOrganizationsRequestDoc(query, token, organizatio
137019
137044
  });
137020
137045
  }
137021
137046
 
137022
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
137047
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
137023
137048
  var CurrentUserAccountQuery = `#graphql
137024
137049
  query currentUserAccount {
137025
137050
  currentUserAccount {
@@ -137098,7 +137123,7 @@ async function getUserAccount(token) {
137098
137123
  };
137099
137124
  }
137100
137125
 
137101
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
137126
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
137102
137127
  init_cjs_shims();
137103
137128
  var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
137104
137129
  function addMessageReplacers(key, ...items) {
@@ -137371,7 +137396,7 @@ function isH2Verbose() {
137371
137396
  return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
137372
137397
  }
137373
137398
 
137374
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
137399
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
137375
137400
  async function logout2(root) {
137376
137401
  await logout(), await resetConfig(root);
137377
137402
  }
@@ -137410,7 +137435,7 @@ function renderLoginSuccess(config) {
137410
137435
  });
137411
137436
  }
137412
137437
 
137413
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
137438
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
137414
137439
  init_cjs_shims();
137415
137440
  import { symlink, readdir as readdir4 } from "node:fs/promises";
137416
137441
 
@@ -140858,11 +140883,11 @@ async function isClean(directory) {
140858
140883
  return (await esm_default({ baseDir: directory }).status()).isClean();
140859
140884
  }
140860
140885
 
140861
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
140886
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
140862
140887
  init_cjs_shims();
140863
140888
  import { readdir as readdir3 } from "node:fs/promises";
140864
140889
 
140865
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
140890
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
140866
140891
  init_cjs_shims();
140867
140892
  import { createRequire as createRequire2 } from "module";
140868
140893
  function convertRouteToV1(route) {
@@ -140876,13 +140901,13 @@ function isV1RouteConventionInstalled() {
140876
140901
  }
140877
140902
  }
140878
140903
 
140879
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
140904
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
140880
140905
  init_cjs_shims();
140881
140906
  import { createRequire as createRequire4 } from "node:module";
140882
140907
  import path2 from "node:path";
140883
140908
  import { readdir as readdir2 } from "node:fs/promises";
140884
140909
 
140885
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
140910
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
140886
140911
  init_cjs_shims();
140887
140912
  import { createRequire as createRequire3 } from "node:module";
140888
140913
  var REQUIRED_REMIX_VERSION = "^2.16.1";
@@ -140921,7 +140946,7 @@ function getRemixPackageVersion(require22, name, root) {
140921
140946
  return result;
140922
140947
  }
140923
140948
 
140924
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
140949
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
140925
140950
  init_cjs_shims();
140926
140951
  async function hasViteConfig(root) {
140927
140952
  return !!(await findFileWithExtension(root, "vite.config")).filepath;
@@ -140988,7 +141013,7 @@ function findOxygenPlugin(config) {
140988
141013
  return findPlugin(config, "oxygen:main");
140989
141014
  }
140990
141015
 
140991
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
141016
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
140992
141017
  async function hasRemixConfigFile(root) {
140993
141018
  return !!(await findFileWithExtension(root, "remix.config")).filepath;
140994
141019
  }
@@ -141121,7 +141146,7 @@ async function assertEntryFileExists(root, fileRelative) {
141121
141146
  }
141122
141147
  }
141123
141148
 
141124
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
141149
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
141125
141150
  var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
141126
141151
  home: ["_index", "$"],
141127
141152
  page: "pages*",
@@ -141329,7 +141354,7 @@ async function copyRouteTemplate({
141329
141354
  adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
141330
141355
  }
141331
141356
 
141332
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
141357
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
141333
141358
  var LANGUAGES = {
141334
141359
  js: "JavaScript",
141335
141360
  ts: "TypeScript"
@@ -141376,14 +141401,9 @@ async function handleRouteGeneration(controller, flagRoutes) {
141376
141401
  }
141377
141402
  function generateProjectEntries(options2) {
141378
141403
  return Promise.all(
141379
- [
141380
- "routes.ts",
141381
- "layout.tsx",
141382
- "root",
141383
- "entry.server",
141384
- "entry.client",
141385
- "../server.ts"
141386
- ].map((filename) => generateProjectFile(filename, options2))
141404
+ ["routes.ts", "root", "entry.server", "entry.client", "../server.ts"].map(
141405
+ (filename) => generateProjectFile(filename, options2)
141406
+ )
141387
141407
  );
141388
141408
  }
141389
141409
  async function handleCliShortcut(controller, cliCommand, flagShortcut) {
@@ -141781,7 +141801,7 @@ function generateRandomName() {
141781
141801
  ])} ${geographicalFeature}`;
141782
141802
  }
141783
141803
 
141784
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
141804
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
141785
141805
  var Link = class _Link extends base_command_default {
141786
141806
  static descriptionWithMarkdown = `Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.
141787
141807
 
@@ -141902,7 +141922,7 @@ async function createNewStorefront(root, session, storefronts) {
141902
141922
  return storefront;
141903
141923
  }
141904
141924
 
141905
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
141925
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
141906
141926
  init_cjs_shims();
141907
141927
  var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
141908
141928
  mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
@@ -141930,7 +141950,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
141930
141950
  return { success, userErrors };
141931
141951
  }
141932
141952
 
141933
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
141953
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
141934
141954
  var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
141935
141955
  static description = "Push project configuration to admin";
141936
141956
  static flags = {
@@ -142063,7 +142083,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
142063
142083
  }) ? (await getConfig(root)).storefront?.id : void 0;
142064
142084
  }
142065
142085
 
142066
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
142086
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
142067
142087
  init_cjs_shims();
142068
142088
 
142069
142089
  // ../cli-kit/dist/public/node/dot-env.js
@@ -142128,7 +142148,7 @@ function createDotEnvFileLine(key, value, quote2) {
142128
142148
  return `${key}=${value}`;
142129
142149
  }
142130
142150
 
142131
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
142151
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
142132
142152
  init_cjs_shims();
142133
142153
  var PullVariablesQuery = `#graphql
142134
142154
  query PullVariables($id: ID!, $handle: String) {
@@ -142156,7 +142176,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
142156
142176
  return hydrogenStorefront;
142157
142177
  }
142158
142178
 
142159
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
142179
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
142160
142180
  init_cjs_shims();
142161
142181
  var ListEnvironmentsQuery = `#graphql
142162
142182
  query ListStorefronts($id: ID!) {
@@ -142184,7 +142204,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
142184
142204
  return hydrogenStorefront;
142185
142205
  }
142186
142206
 
142187
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
142207
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
142188
142208
  init_cjs_shims();
142189
142209
  function orderEnvironmentsBySafety(environments) {
142190
142210
  return [
@@ -142225,7 +142245,7 @@ function environmentNotFound(criterion, value) {
142225
142245
  );
142226
142246
  }
142227
142247
 
142228
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
142248
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
142229
142249
  var createEmptyRemoteVars = () => ({
142230
142250
  remoteVariables: {},
142231
142251
  remoteSecrets: {}
@@ -142296,7 +142316,7 @@ async function getLocalVariables(root, envFile) {
142296
142316
  );
142297
142317
  }
142298
142318
 
142299
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
142319
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
142300
142320
  init_cjs_shims();
142301
142321
  async function startTunnelPlugin(config, port, provider) {
142302
142322
  let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
@@ -142327,7 +142347,7 @@ async function pollTunnelURL(tunnelClient) {
142327
142347
  });
142328
142348
  }
142329
142349
 
142330
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.9_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
142350
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.0_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
142331
142351
  function isMockShop(envVariables) {
142332
142352
  return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
142333
142353
  // When it's undefined, it might be overwritten by remote variables.
@@ -142492,8 +142512,10 @@ export {
142492
142512
  ALIAS_NAME,
142493
142513
  createPlatformShortcut,
142494
142514
  getCliCommand,
142515
+ addCursorAndFiltersToAppLogsUrl,
142495
142516
  require_lib2 as require_lib,
142496
142517
  partnersRequest,
142518
+ generateFetchAppLogUrl,
142497
142519
  partnersRequestDoc,
142498
142520
  businessPlatformRequestDoc,
142499
142521
  businessPlatformOrganizationsRequest,
@@ -142546,4 +142568,4 @@ export {
142546
142568
  getDebugBannerLine,
142547
142569
  getUtilityBannerlines
142548
142570
  };
142549
- //# sourceMappingURL=chunk-YKGXAR4K.js.map
142571
+ //# sourceMappingURL=chunk-H73PDGHM.js.map