@shopify/cli 4.6.0 → 4.7.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 (426) hide show
  1. package/dist/analytics-6LI5GLWS.js +1 -0
  2. package/dist/analytics-UNRIIG4Y.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-4YCMEC5R.js → chunk-2CYVZUYT.js} +1 -1
  5. package/dist/{chunk-C256W7D2.js → chunk-2HK4MFWP.js} +3 -3
  6. package/dist/chunk-2JDCVEFK.js +1 -0
  7. package/dist/chunk-2SZOPJYI.js +1 -0
  8. package/dist/chunk-2U4P6UFZ.js +6 -0
  9. package/dist/{chunk-TAFOSPBW.js → chunk-2WJAAJVX.js} +1 -1
  10. package/dist/chunk-37TEEITE.js +2 -0
  11. package/dist/chunk-3K6VHXC2.js +4 -0
  12. package/dist/chunk-4HV6A6UH.js +8 -0
  13. package/dist/chunk-4JY2P2A5.js +1 -0
  14. package/dist/chunk-4LRG5YBS.js +3 -0
  15. package/dist/chunk-4W3UE2ZI.js +1 -0
  16. package/dist/chunk-5CADTCJE.js +25 -0
  17. package/dist/chunk-5CR5YJTU.js +11 -0
  18. package/dist/chunk-5CYJG63I.js +1 -0
  19. package/dist/chunk-5HBIIYSK.js +1 -0
  20. package/dist/chunk-5HPBQ6U5.js +1 -0
  21. package/dist/chunk-5NO5OXYP.js +15 -0
  22. package/dist/chunk-63CIFL36.js +6 -0
  23. package/dist/chunk-6EBLULOC.js +1 -0
  24. package/dist/{chunk-FMTPUYSH.js → chunk-6ENBE43F.js} +1 -1
  25. package/dist/chunk-6OFGSZD6.js +1 -0
  26. package/dist/chunk-6PDR2IUL.js +11 -0
  27. package/dist/chunk-6VGJVXZI.js +3 -0
  28. package/dist/{chunk-ILQXBASM.js → chunk-6VRXGEIW.js} +1 -1
  29. package/dist/chunk-6WZYX5RO.js +1 -0
  30. package/dist/chunk-7AALWJAO.js +7 -0
  31. package/dist/chunk-7DOWT5JZ.js +20 -0
  32. package/dist/chunk-7JIQXGDE.js +9 -0
  33. package/dist/chunk-7MHANY34.js +1 -0
  34. package/dist/chunk-7WTNEG2F.js +3 -0
  35. package/dist/chunk-7Y7AZRL3.js +10 -0
  36. package/dist/chunk-ACTDYTAV.js +317 -0
  37. package/dist/{chunk-Y2PC2BBJ.js → chunk-AEUCDGTB.js} +4 -4
  38. package/dist/chunk-AGOEROAI.js +10 -0
  39. package/dist/{chunk-WPRAJ25Z.js → chunk-AH2ZGMDM.js} +1 -1
  40. package/dist/chunk-AMLWPYNA.js +4 -0
  41. package/dist/chunk-B4OMIONW.js +5 -0
  42. package/dist/chunk-BR6DBMQA.js +5 -0
  43. package/dist/chunk-CFWHR74L.js +1 -0
  44. package/dist/chunk-CHMEDVDZ.js +15 -0
  45. package/dist/chunk-CIH6LPTG.js +6 -0
  46. package/dist/chunk-CMYQXGLO.js +1 -0
  47. package/dist/chunk-CTRXLZAJ.js +1 -0
  48. package/dist/{chunk-WWX265PC.js → chunk-CYOFLJ3Z.js} +1 -1
  49. package/dist/{chunk-HSKB5OTM.js → chunk-CZJZCJRX.js} +1 -1
  50. package/dist/chunk-CZPGC2E7.js +1 -0
  51. package/dist/{chunk-2I62GKIH.js → chunk-D2K2ZBKH.js} +8 -8
  52. package/dist/chunk-DHU57LKD.js +1 -0
  53. package/dist/chunk-DKL6N3L2.js +1 -0
  54. package/dist/chunk-DMXQLI35.js +1 -0
  55. package/dist/chunk-DPNZWBT5.js +1 -0
  56. package/dist/{chunk-QU5NL2QT.js → chunk-DQCIORGH.js} +1 -1
  57. package/dist/chunk-DQFSKPKL.js +6 -0
  58. package/dist/{chunk-6Q5VRSRN.js → chunk-E2W5OYYM.js} +1 -1
  59. package/dist/chunk-E5T4YRGW.js +1 -0
  60. package/dist/chunk-EOMCXBCS.js +5 -0
  61. package/dist/{chunk-LWRDNTAD.js → chunk-EW55WWT7.js} +1 -1
  62. package/dist/{chunk-6UTUJKKC.js → chunk-F5HCSUXC.js} +5 -5
  63. package/dist/{chunk-W2GMKXM7.js → chunk-FCGKO2KY.js} +1 -1
  64. package/dist/{chunk-7CPECP5P.js → chunk-FULWTZS6.js} +1 -1
  65. package/dist/chunk-FWPJEL6Q.js +3 -0
  66. package/dist/chunk-GKOBFX4A.js +1 -0
  67. package/dist/chunk-GLWQMLUC.js +1 -0
  68. package/dist/chunk-GMTNOCMS.js +375 -0
  69. package/dist/chunk-GSCWZR22.js +1 -0
  70. package/dist/chunk-GZ64KWHX.js +8 -0
  71. package/dist/{chunk-72GN655L.js → chunk-H5KWM27L.js} +1 -1
  72. package/dist/chunk-HHVHVGRT.js +1 -0
  73. package/dist/{chunk-EBZ6MDEM.js → chunk-HLNJL4B6.js} +1 -1
  74. package/dist/{chunk-OUUOML3D.js → chunk-HZIX3DIT.js} +1 -1
  75. package/dist/chunk-I3N6NPHF.js +2 -0
  76. package/dist/chunk-JD5P5RAJ.js +1 -0
  77. package/dist/chunk-JJJTPEMD.js +1 -0
  78. package/dist/{chunk-KRZABRYT.js → chunk-JLGA3B7P.js} +1 -1
  79. package/dist/chunk-JQ2B3VHR.js +7 -0
  80. package/dist/{chunk-VZKR2YFM.js → chunk-JQISGC7D.js} +1 -1
  81. package/dist/chunk-JQVXH26X.js +6 -0
  82. package/dist/{chunk-ERCJPRN3.js → chunk-JUKAWTYY.js} +1 -1
  83. package/dist/{chunk-JHRZCUBE.js → chunk-JZMRBJH3.js} +1 -1
  84. package/dist/chunk-JZXA3H5K.js +1 -0
  85. package/dist/chunk-K4KTNINH.js +1 -0
  86. package/dist/chunk-KCS75ZM4.js +1 -0
  87. package/dist/{chunk-AJ6VOBXU.js → chunk-KIYHEMHD.js} +7 -7
  88. package/dist/chunk-KK24VGVE.js +6 -0
  89. package/dist/{chunk-6BX62FFE.js → chunk-KOVAFUYN.js} +1 -1
  90. package/dist/{chunk-QG7TELFC.js → chunk-KUNDCAQN.js} +1 -1
  91. package/dist/{chunk-3NO6PWNL.js → chunk-L67BU25M.js} +1 -1
  92. package/dist/{chunk-4KZRP2JP.js → chunk-LDF4PQ3B.js} +18 -18
  93. package/dist/chunk-LFOBYEWG.js +1 -0
  94. package/dist/chunk-LJM2DUXN.js +1 -0
  95. package/dist/{chunk-XWPPBOGF.js → chunk-LQ7ENG4V.js} +1 -1
  96. package/dist/chunk-LQCR4TGH.js +3 -0
  97. package/dist/{chunk-UM3OHLCX.js → chunk-LRQYUWWB.js} +1 -1
  98. package/dist/{chunk-CXWLHQKA.js → chunk-LWJA2DQG.js} +1 -1
  99. package/dist/{chunk-IKYZ5L3F.js → chunk-LZ3GZ7NS.js} +1 -1
  100. package/dist/chunk-MB7E5GEY.js +2 -0
  101. package/dist/{chunk-XERJY4IG.js → chunk-MLZLDL6B.js} +8 -8
  102. package/dist/chunk-MRCWOOSF.js +8 -0
  103. package/dist/chunk-N6YTJXIS.js +18 -0
  104. package/dist/chunk-NEMPLS7C.js +1 -0
  105. package/dist/chunk-OE3F7XXU.js +4 -0
  106. package/dist/chunk-OORWOTAP.js +3 -0
  107. package/dist/chunk-OUZGGWFN.js +1 -0
  108. package/dist/chunk-P5MNNBSO.js +1 -0
  109. package/dist/chunk-PAAKBWSF.js +1 -0
  110. package/dist/{chunk-5EFQILLF.js → chunk-PANGX7SA.js} +1 -1
  111. package/dist/{chunk-DODCPRXT.js → chunk-PIFW2R3S.js} +1 -1
  112. package/dist/chunk-PWSI275S.js +7 -0
  113. package/dist/chunk-Q5DQGV3M.js +1 -0
  114. package/dist/chunk-QBIVQXUJ.js +6 -0
  115. package/dist/chunk-QEB3HUQE.js +19 -0
  116. package/dist/{chunk-E3RDAVJT.js → chunk-QKGZWOOY.js} +1 -1
  117. package/dist/chunk-QPWMD2VR.js +1 -0
  118. package/dist/chunk-QRT4A2RV.js +3 -0
  119. package/dist/chunk-QXHENYJH.js +2 -0
  120. package/dist/{chunk-FPWLEGKZ.js → chunk-QZBSCOJV.js} +1 -1
  121. package/dist/chunk-R2R6JDNH.js +1 -0
  122. package/dist/chunk-RUFQCXBX.js +16 -0
  123. package/dist/chunk-RY2SJVWM.js +12 -0
  124. package/dist/chunk-RZFBGBNA.js +1 -0
  125. package/dist/chunk-S3P5WWJD.js +1 -0
  126. package/dist/chunk-SEVSMWNX.js +1 -0
  127. package/dist/chunk-SJMTETSU.js +32 -0
  128. package/dist/chunk-SSJGWLCW.js +28 -0
  129. package/dist/chunk-SYADOUBB.js +7 -0
  130. package/dist/chunk-T5JXQ7KO.js +1 -0
  131. package/dist/chunk-TCTVI6PK.js +1 -0
  132. package/dist/chunk-TSLQZTXR.js +1 -0
  133. package/dist/chunk-TTAPXLI5.js +1 -0
  134. package/dist/{chunk-MDXSLAIC.js → chunk-TY4W7AYX.js} +1 -1
  135. package/dist/chunk-TYIGOVRQ.js +3 -0
  136. package/dist/{chunk-B6SY4BIK.js → chunk-U2Z5NMXV.js} +1 -1
  137. package/dist/{chunk-KGZH4RFA.js → chunk-U6HYEGAE.js} +1 -1
  138. package/dist/chunk-U7R6LYPJ.js +5 -0
  139. package/dist/chunk-UPJLZHHR.js +4 -0
  140. package/dist/chunk-UVQL7RUY.js +1 -0
  141. package/dist/chunk-V2HCVJYF.js +1 -0
  142. package/dist/chunk-V5SC2RYQ.js +2 -0
  143. package/dist/chunk-VKSR6MJG.js +2 -0
  144. package/dist/chunk-VRVP2GQL.js +5 -0
  145. package/dist/{chunk-XGRVAPLR.js → chunk-WCRZJY3P.js} +1 -1
  146. package/dist/{chunk-XGCJWCC4.js → chunk-WHLGNDRE.js} +1 -1
  147. package/dist/{chunk-E3RQCWSC.js → chunk-WKUGSFTB.js} +3 -3
  148. package/dist/chunk-X4XP2RQJ.js +1 -0
  149. package/dist/chunk-XAOYKECS.js +1 -0
  150. package/dist/chunk-XCBEYRQI.js +3 -0
  151. package/dist/chunk-XHZ5BWXL.js +5 -0
  152. package/dist/{chunk-2JFZ6GZC.js → chunk-XLURZ6GL.js} +52 -52
  153. package/dist/chunk-XRT2W5Y2.js +10 -0
  154. package/dist/chunk-XUEMMLXK.js +1 -0
  155. package/dist/chunk-Y34LWI3S.js +19 -0
  156. package/dist/chunk-YHPBDS52.js +16 -0
  157. package/dist/{chunk-JS3X6BDT.js → chunk-YIZZ5LZN.js} +1 -1
  158. package/dist/chunk-YN6A26QL.js +836 -0
  159. package/dist/chunk-YOO7DLOT.js +1 -0
  160. package/dist/chunk-YUVE2I3C.js +1 -0
  161. package/dist/chunk-YY6TFARF.js +1 -0
  162. package/dist/chunk-Z5K4J7HQ.js +1 -0
  163. package/dist/chunk-ZCNIR6YU.js +1 -0
  164. package/dist/{chunk-OTT73YUA.js → chunk-ZO74GSWC.js} +1 -1
  165. package/dist/{chunk-5Y2VD4I3.js → chunk-ZRLEAF7M.js} +1 -1
  166. package/dist/chunk-ZSFAURIH.js +3 -0
  167. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  168. package/dist/cli/commands/app/build.js +1 -1
  169. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  170. package/dist/cli/commands/app/bulk/execute.js +1 -1
  171. package/dist/cli/commands/app/bulk/status.js +1 -1
  172. package/dist/cli/commands/app/config/link.js +1 -1
  173. package/dist/cli/commands/app/config/pull.js +1 -1
  174. package/dist/cli/commands/app/config/use.js +1 -1
  175. package/dist/cli/commands/app/config/validate.js +1 -1
  176. package/dist/cli/commands/app/demo/watcher.js +1 -1
  177. package/dist/cli/commands/app/deploy.js +1 -1
  178. package/dist/cli/commands/app/dev/clean.js +1 -1
  179. package/dist/cli/commands/app/dev.js +1 -1
  180. package/dist/cli/commands/app/env/pull.js +1 -1
  181. package/dist/cli/commands/app/env/show.js +1 -1
  182. package/dist/cli/commands/app/execute.js +1 -1
  183. package/dist/cli/commands/app/function/build.js +1 -1
  184. package/dist/cli/commands/app/function/info.js +1 -1
  185. package/dist/cli/commands/app/function/replay.js +1 -1
  186. package/dist/cli/commands/app/function/run.js +1 -1
  187. package/dist/cli/commands/app/function/schema.js +1 -1
  188. package/dist/cli/commands/app/function/typegen.js +1 -1
  189. package/dist/cli/commands/app/generate/extension.js +1 -1
  190. package/dist/cli/commands/app/graphiql.js +1 -1
  191. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  192. package/dist/cli/commands/app/import-extensions.js +1 -1
  193. package/dist/cli/commands/app/info.js +1 -1
  194. package/dist/cli/commands/app/init.js +1 -1
  195. package/dist/cli/commands/app/logs.js +1 -1
  196. package/dist/cli/commands/app/release.js +1 -1
  197. package/dist/cli/commands/app/versions/list.js +1 -1
  198. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  199. package/dist/cli/commands/auth/login.js +1 -1
  200. package/dist/cli/commands/auth/logout.js +1 -1
  201. package/dist/cli/commands/cache/clear.js +1 -1
  202. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  203. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  204. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  205. package/dist/cli/commands/debug/command-flags.js +1 -1
  206. package/dist/cli/commands/doc/fetch.js +1 -1
  207. package/dist/cli/commands/doc/search.js +1 -1
  208. package/dist/cli/commands/docs/generate.js +1 -1
  209. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  210. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  211. package/dist/cli/commands/help.js +1 -1
  212. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  213. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  214. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  215. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  216. package/dist/cli/commands/notifications/generate.js +1 -1
  217. package/dist/cli/commands/notifications/list.js +1 -1
  218. package/dist/cli/commands/organization/list.js +1 -1
  219. package/dist/cli/commands/search.js +1 -1
  220. package/dist/cli/commands/send-analytics.d.ts +5 -0
  221. package/dist/cli/commands/send-analytics.js +1 -0
  222. package/dist/cli/commands/theme/check.js +1 -1
  223. package/dist/cli/commands/theme/console.js +1 -1
  224. package/dist/cli/commands/theme/delete.js +1 -1
  225. package/dist/cli/commands/theme/dev.js +1 -1
  226. package/dist/cli/commands/theme/duplicate.js +1 -1
  227. package/dist/cli/commands/theme/info.js +1 -1
  228. package/dist/cli/commands/theme/init.js +1 -1
  229. package/dist/cli/commands/theme/language-server.js +1 -1
  230. package/dist/cli/commands/theme/list.js +1 -1
  231. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  232. package/dist/cli/commands/theme/open.js +1 -1
  233. package/dist/cli/commands/theme/package.js +1 -1
  234. package/dist/cli/commands/theme/preview.js +1 -1
  235. package/dist/cli/commands/theme/profile.js +1 -1
  236. package/dist/cli/commands/theme/publish.js +1 -1
  237. package/dist/cli/commands/theme/pull.js +1 -1
  238. package/dist/cli/commands/theme/push.js +1 -1
  239. package/dist/cli/commands/theme/rename.js +1 -1
  240. package/dist/cli/commands/theme/share.js +1 -1
  241. package/dist/cli/commands/upgrade.js +1 -1
  242. package/dist/cli/commands/version.js +1 -1
  243. package/dist/cli/help.js +1 -1
  244. package/dist/cli/services/doctor-release/theme/tests/init.js +4 -8
  245. package/dist/cli/services/doctor-release/theme/tests/push.js +3 -4
  246. package/dist/command-registry.js +1 -1
  247. package/dist/conf-store-OAGJBITE.js +1 -0
  248. package/dist/custom-oclif-loader-BWAMUFQ4.js +1 -0
  249. package/dist/deprecations-K3NPRKBF.js +1 -0
  250. package/dist/dist-EXJEE23W.js +1 -0
  251. package/dist/dist-S62Z6IFV.js +1 -0
  252. package/dist/environments-ALH2N36U.js +1 -0
  253. package/dist/error-YX56C43A.js +1 -0
  254. package/dist/error-handler-FDCH72NH.js +1 -0
  255. package/dist/fs-SKHQZZTQ.js +1 -0
  256. package/dist/hooks/did-you-mean.js +1 -1
  257. package/dist/hooks/hydrogen-init.js +1 -1
  258. package/dist/hooks/postrun.js +1 -1
  259. package/dist/hooks/prerun.js +2 -1
  260. package/dist/hooks/public-metadata.js +1 -1
  261. package/dist/hooks/sensitive-metadata.js +1 -1
  262. package/dist/hooks/tunnel-provider.js +1 -1
  263. package/dist/hooks/tunnel-start.js +1 -1
  264. package/dist/index.d.ts +1 -1
  265. package/dist/index.js +15 -15
  266. package/dist/is-global-V5VORI3F.js +1 -0
  267. package/dist/lib-M72BVWQ3.js +1 -0
  268. package/dist/local-GX5AN6ZS.js +1 -0
  269. package/dist/metadata-XUJUTBTB.js +1 -0
  270. package/dist/{morph-ABSWZEVT.js → morph-77RHJICZ.js} +1 -1
  271. package/dist/node-package-manager-3WIYU7Y3.js +1 -0
  272. package/dist/notifications-system-RHULO564.js +1 -0
  273. package/dist/os-M6X7KOR4.js +1 -0
  274. package/dist/output-X47P6ICP.js +1 -0
  275. package/dist/{prettier-6ZMB2MMO.js → prettier-RVUAAWC7.js} +1 -1
  276. package/dist/system-SR5G7WEW.js +1 -0
  277. package/dist/tsconfig.tsbuildinfo +1 -1
  278. package/dist/ui-VYWSLAQ6.js +1 -0
  279. package/dist/upgrade-PFQ7JMXG.js +1 -0
  280. package/dist/version-FK4ETQ22.js +1 -0
  281. package/dist/version-U4GM2LNG.js +1 -0
  282. package/dist/workerd-NAPS5TA7.js +18 -0
  283. package/oclif.manifest.json +146 -120
  284. package/package.json +7 -8
  285. package/dist/analytics-6S5JVSRO.js +0 -1
  286. package/dist/analytics-E252SR3P.js +0 -1
  287. package/dist/chunk-2MCH43SL.js +0 -11
  288. package/dist/chunk-2SNT7U7B.js +0 -1
  289. package/dist/chunk-2VIUGNYO.js +0 -1
  290. package/dist/chunk-2Y6CYLKF.js +0 -1
  291. package/dist/chunk-3EHRA4LA.js +0 -1
  292. package/dist/chunk-3EPQ6UOK.js +0 -25
  293. package/dist/chunk-3TFUSDHY.js +0 -370
  294. package/dist/chunk-46NA23I7.js +0 -3
  295. package/dist/chunk-47URTBZF.js +0 -9
  296. package/dist/chunk-4FEBSLSU.js +0 -1
  297. package/dist/chunk-4HB4VZJQ.js +0 -4
  298. package/dist/chunk-4JARSKED.js +0 -32
  299. package/dist/chunk-4P7PWLUN.js +0 -1
  300. package/dist/chunk-53ZA2HD3.js +0 -1
  301. package/dist/chunk-57YF2UNT.js +0 -1
  302. package/dist/chunk-5JPV3HPJ.js +0 -1
  303. package/dist/chunk-5LJ5H4TD.js +0 -7
  304. package/dist/chunk-6FJBCRVK.js +0 -15
  305. package/dist/chunk-6SXB44CE.js +0 -1
  306. package/dist/chunk-6YCGMS7X.js +0 -28
  307. package/dist/chunk-7HAFBCL3.js +0 -2
  308. package/dist/chunk-7XPFLQEM.js +0 -1
  309. package/dist/chunk-A3JE5LX3.js +0 -7
  310. package/dist/chunk-A4SBXDZB.js +0 -14
  311. package/dist/chunk-B2WK53GH.js +0 -1
  312. package/dist/chunk-B34VYVGV.js +0 -1
  313. package/dist/chunk-BBEHNPKK.js +0 -7
  314. package/dist/chunk-BCTMBKAU.js +0 -7
  315. package/dist/chunk-BGUHH7AW.js +0 -10
  316. package/dist/chunk-DHU767C3.js +0 -1
  317. package/dist/chunk-DKHMLETG.js +0 -1
  318. package/dist/chunk-EJDWYASP.js +0 -1
  319. package/dist/chunk-ELJ7SKMH.js +0 -1
  320. package/dist/chunk-EQTULRM7.js +0 -2
  321. package/dist/chunk-ESZS7L6O.js +0 -11
  322. package/dist/chunk-ET2O5DAS.js +0 -1
  323. package/dist/chunk-EZ7EBYDT.js +0 -684
  324. package/dist/chunk-EZNJDFFK.js +0 -28
  325. package/dist/chunk-F34LB7M4.js +0 -20
  326. package/dist/chunk-FE24P4UQ.js +0 -6
  327. package/dist/chunk-FT4HLDK7.js +0 -1
  328. package/dist/chunk-G3YYMKWG.js +0 -3
  329. package/dist/chunk-G7QW5OSQ.js +0 -6
  330. package/dist/chunk-GCDEDRY7.js +0 -3
  331. package/dist/chunk-GEE5MXHT.js +0 -5
  332. package/dist/chunk-H4MYBJ6C.js +0 -1
  333. package/dist/chunk-HDXBZLHH.js +0 -8
  334. package/dist/chunk-HT6MOPLW.js +0 -1
  335. package/dist/chunk-HZXY7RWJ.js +0 -19
  336. package/dist/chunk-IDAWPBJM.js +0 -4
  337. package/dist/chunk-IDLDQ2JB.js +0 -1
  338. package/dist/chunk-IYU72M55.js +0 -3
  339. package/dist/chunk-J3IHP46B.js +0 -3
  340. package/dist/chunk-J4KJQHNS.js +0 -1
  341. package/dist/chunk-JIBLEZ57.js +0 -18
  342. package/dist/chunk-JIKIYMCT.js +0 -1
  343. package/dist/chunk-JJTGHARS.js +0 -3
  344. package/dist/chunk-JQP3ZCAG.js +0 -1
  345. package/dist/chunk-K7IZMKBR.js +0 -5
  346. package/dist/chunk-KO4FB4QU.js +0 -1
  347. package/dist/chunk-KPRKIZ5M.js +0 -3
  348. package/dist/chunk-KUN74JD4.js +0 -4
  349. package/dist/chunk-KURWC4A5.js +0 -16
  350. package/dist/chunk-L3D2CASO.js +0 -1
  351. package/dist/chunk-L7DZTIHJ.js +0 -1
  352. package/dist/chunk-LBDAYBIF.js +0 -1
  353. package/dist/chunk-LH3RIIOB.js +0 -8
  354. package/dist/chunk-LWWBU7ET.js +0 -6
  355. package/dist/chunk-M4BEPPA3.js +0 -1
  356. package/dist/chunk-M4YPMHIM.js +0 -1
  357. package/dist/chunk-M5KKLAM6.js +0 -3
  358. package/dist/chunk-MBLHXPGK.js +0 -1
  359. package/dist/chunk-MDHJJVXA.js +0 -2
  360. package/dist/chunk-NA2ERJIJ.js +0 -1
  361. package/dist/chunk-NOKCVDYD.js +0 -317
  362. package/dist/chunk-O6XSWAP2.js +0 -4
  363. package/dist/chunk-OB62WVZ5.js +0 -16
  364. package/dist/chunk-OT52JOML.js +0 -1
  365. package/dist/chunk-P7XC5HS2.js +0 -1
  366. package/dist/chunk-PALG4SNB.js +0 -1
  367. package/dist/chunk-PB37BTPE.js +0 -6
  368. package/dist/chunk-PWYRKTJ4.js +0 -1
  369. package/dist/chunk-PXSX63RF.js +0 -1
  370. package/dist/chunk-QDPDB5EP.js +0 -3
  371. package/dist/chunk-QV53BSQP.js +0 -6
  372. package/dist/chunk-QXXA2EQY.js +0 -15
  373. package/dist/chunk-QZ5FMWZS.js +0 -1
  374. package/dist/chunk-R26GJEH3.js +0 -1
  375. package/dist/chunk-RTW4RZWH.js +0 -6
  376. package/dist/chunk-SEV3S3WH.js +0 -8
  377. package/dist/chunk-STJ3LWFL.js +0 -1
  378. package/dist/chunk-TAV2ENJY.js +0 -1
  379. package/dist/chunk-TQNALMQH.js +0 -3
  380. package/dist/chunk-TUJNCWHZ.js +0 -1
  381. package/dist/chunk-U564K7SX.js +0 -1
  382. package/dist/chunk-UKQ7NE5V.js +0 -1
  383. package/dist/chunk-V65P572N.js +0 -10
  384. package/dist/chunk-VFIVXK53.js +0 -2
  385. package/dist/chunk-VVFPW4ZQ.js +0 -2
  386. package/dist/chunk-VYITPC34.js +0 -11
  387. package/dist/chunk-W4X3635B.js +0 -1
  388. package/dist/chunk-WEEYQX3M.js +0 -1
  389. package/dist/chunk-WO7LKJCJ.js +0 -1
  390. package/dist/chunk-WR2ZQGUR.js +0 -1
  391. package/dist/chunk-WW7TENNA.js +0 -1
  392. package/dist/chunk-XGMPC7KK.js +0 -2
  393. package/dist/chunk-Y4QC2YVE.js +0 -1
  394. package/dist/chunk-YNJZ2VXV.js +0 -5
  395. package/dist/chunk-Z5DDPQ26.js +0 -3
  396. package/dist/chunk-ZK7VJZ6V.js +0 -6
  397. package/dist/chunk-ZLT4DPHN.js +0 -5
  398. package/dist/chunk-ZOBQKNGK.js +0 -1
  399. package/dist/chunk-ZTE46E4Z.js +0 -153
  400. package/dist/conf-store-N5P2ZEAD.js +0 -1
  401. package/dist/custom-oclif-loader-4ZAXX5MR.js +0 -1
  402. package/dist/deprecations-4TY4DNME.js +0 -1
  403. package/dist/dist-6ZJS4I57.js +0 -1
  404. package/dist/dist-7W2KJOYN.js +0 -1
  405. package/dist/environments-TR5WW2MD.js +0 -1
  406. package/dist/error-VJQM4MFE.js +0 -1
  407. package/dist/error-handler-IYGE3Z72.js +0 -1
  408. package/dist/fs-EOQL26C3.js +0 -1
  409. package/dist/hooks/app-init.d.ts +0 -9
  410. package/dist/hooks/app-init.js +0 -1
  411. package/dist/is-global-RQCPBQA3.js +0 -1
  412. package/dist/is-wsl-UEMXYJPN.js +0 -1
  413. package/dist/lib-JKLF33A7.js +0 -1
  414. package/dist/local-TW3HCZ2S.js +0 -1
  415. package/dist/local-storage-T6FKS53K.js +0 -1
  416. package/dist/metadata-TYZDEER5.js +0 -1
  417. package/dist/node-package-manager-6SWUZILX.js +0 -1
  418. package/dist/notifications-system-SMHMV2UW.js +0 -1
  419. package/dist/output-JG5I2TEL.js +0 -1
  420. package/dist/system-D4Z32GDS.js +0 -1
  421. package/dist/ui-6M3XZ6MR.js +0 -1
  422. package/dist/upgrade-EKAG4IV7.js +0 -1
  423. package/dist/version-6UBWZCNS.js +0 -1
  424. package/dist/version-XRU7TEAI.js +0 -1
  425. package/dist/workerd-LXBSJULF.js +0 -18
  426. /package/dist/{chunk-VDN6MEYI.js → chunk-NJPL5BTN.js} +0 -0
@@ -1,4 +0,0 @@
1
- import{a as p}from"./chunk-DHU767C3.js";import{a as r}from"./chunk-QG7TELFC.js";import{qa as f,ta as s}from"./chunk-NOKCVDYD.js";import{b as n}from"./chunk-2Y6CYLKF.js";import{a as g}from"./chunk-CTNBSUVU.js";import{e as m,g as a}from"./chunk-VKWPEFWQ.js";a();var o=m(g(),1);var t,e=class extends p{async run(){let{flags:i}=await this.parse(t),c={directory:i.path,apiKey:i["client-id"],organizationId:i["organization-id"],configName:i.config,fileName:i["file-name"],force:i.force??!1},d=await f(c),{app:l}=await s({directory:i.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:d.configFileName});return{app:l}}};t=e;e.summary="Fetch your app configuration from the Developer Dashboard.";e.descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
2
-
3
- For more information on the format of the created TOML configuration file, refer to the [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration) page.
4
- `;e.description=t.descriptionWithoutMarkdown();e.flags={...n,...r,"organization-id":o.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]}),"file-name":o.Flags.string({hidden:!1,description:"The name of the app configuration file to create or overwrite.",env:"SHOPIFY_FLAG_APP_CONFIG_FILE_NAME",exclusive:["config"]}),force:o.Flags.boolean({hidden:!1,description:"Overwrite an existing configuration file without prompting.",env:"SHOPIFY_FLAG_FORCE",dependsOn:["file-name"]})};var A=e;export{A as a};
@@ -1,16 +0,0 @@
1
- import{b as S,c as A,d as R}from"./chunk-U564K7SX.js";import{a as N}from"./chunk-M4YPMHIM.js";import{a as P}from"./chunk-QG7TELFC.js";import{b as y,c as x,ua as T}from"./chunk-NOKCVDYD.js";import{b,c as g}from"./chunk-2Y6CYLKF.js";import{u as h}from"./chunk-6YCGMS7X.js";import{Fb as l,Hb as m,Lb as d}from"./chunk-3TFUSDHY.js";import{d as f}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function C(n,t){let o={};return n.targeting?.forEach(e=>{e.target&&(o[e.target]={...e.input_query&&{inputQueryPath:`${t}/${e.input_query}`},...e.export&&{export:e.export}})}),o}function I(n,t,o,e,i,r){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:r,wasmPath:i,functionRunnerPath:e},null,2)}function j(n,t){return{title:`CONFIGURATION
2
- `,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function O(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([m`${l.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
3
- TARGETING
4
- `,body:{tabularData:t}}}function v(n,t){return{title:`
5
- BUILD
6
- `,body:{tabularData:[["Schema Path",{filePath:t??"N/A"}],["Wasm Path",{filePath:n}]],firstColumnSubdued:!0}}}function D(n){return{title:`
7
- FUNCTION RUNNER
8
- `,body:{tabularData:[["Path",{filePath:n}]],firstColumnSubdued:!0}}}function k(n,t,o,e,i,r){let a=[j(t,n.name)],s=O(o);return s&&a.push(s),a.push(v(i,r),D(e)),a}function w(n,t){let{format:o,functionRunnerPath:e,schemaPath:i}=t,r=n.configuration,a=C(r,n.directory),s=f(n.directory,r.build?.path??n.outputRelativePath);return o==="json"?I(n,r,a,e,s,i):k(n,r,a,e,s,i)}var c,u=class extends N{async run(){let{flags:t}=await this.parse(c),{app:o}=await T({directory:t.path,userProvidedConfigName:t.config}),e=await A(o,t.path),i=y();await x(i);let r=await R(e,t.path,t["client-id"],t.reset,t.config),a=w(e,{format:t.json?"json":"text",functionRunnerPath:i.path,schemaPath:r});return t.json?d(a):h({customSections:a}),{app:o}}};c=u;u.summary="Print basic information about your function.";u.descriptionWithMarkdown=`The information returned includes the following:
9
-
10
- - The function handle
11
- - The function name
12
- - The function API version
13
- - The targeting configuration
14
- - The schema path
15
- - The WASM path
16
- - The function runner path`;u.description=c.descriptionWithoutMarkdown();u.flags={...b,...P,...S,...g};var H=u;export{H as a};
@@ -1 +0,0 @@
1
- import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-6YCGMS7X.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -1 +0,0 @@
1
- import{a as h,c as D,d as _,e as w}from"./chunk-TAV2ENJY.js";import{g as y,p as O,v as b}from"./chunk-Z5DDPQ26.js";import{b as S,c as T}from"./chunk-2Y6CYLKF.js";import{b as v}from"./chunk-V65P572N.js";import{u as F}from"./chunk-6YCGMS7X.js";import{Hb as a,Lb as L,Pb as l}from"./chunk-3TFUSDHY.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var u;function p(){return u??(u=new v({projectName:"shopify-cli-host-theme-conf"})),u}function E(e){return l(a`Getting host theme...`),p().get(e)}function Y(e,t){l(a`Setting host theme...`),p().set(e,t)}function C(e){l(a`Removing host theme...`),p().delete(e)}function j(e,t){return{title:e,body:{tabularData:t}}}async function I(e,t){let n=t.storeFqdn,g=new w({...h.reduce((m,s)=>(m[s]=e.role===s,m),{}),theme:e.id?.toString()??e.name}),i=await D(t),x=y(),H=E(n);if(g.any()&&(i=_(n,i,g)),e.json)return L(JSON.stringify(i,null,2));let A=i.map(({id:m,name:s,role:d})=>{let f="";return d&&(f=`[${d}]`,[x,H].includes(`${m}`)&&(f+=" [current]")),[s,f,`#${m}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];F({customSections:[...e.environment?[{title:`${n} theme library`,body:[{subdued:`Environment name: ${e.environment}`}]}]:[],j("",R)]})}var c=$(G(),1);var r=class extends b{async command(t,n){await I(t,n)}};r.description="Lists the themes in your store, along with their IDs and statuses.";r.flags={...S,...T,...O,role:c.Flags.custom({description:"Only list themes with the given role.",options:h,env:"SHOPIFY_FLAG_ROLE"})(),name:c.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:c.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};r.multiEnvironmentsFlags=["store","password"];var oe=r;export{E as a,Y as b,C as c,oe as d};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-OUUOML3D.js";import{a as e}from"./chunk-OT52JOML.js";import{a as o}from"./chunk-XGRVAPLR.js";import{b as i}from"./chunk-2MCH43SL.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class extends i{static{this.description="View all the available UI kit components"}static{this.hiddenAliases=["kitchen-sink all"]}static{this.hidden=!0}async run(){await o(),await e(),await s()}};export{t as a};
@@ -1,6 +0,0 @@
1
- import{a as f}from"./chunk-QU5NL2QT.js";import{a as c}from"./chunk-6BX62FFE.js";import{f as l,o as p}from"./chunk-HT6MOPLW.js";import{p as s,v as d}from"./chunk-Z5DDPQ26.js";import{b as h}from"./chunk-2Y6CYLKF.js";import{v as i}from"./chunk-6YCGMS7X.js";import{a as F}from"./chunk-CTNBSUVU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}
2
-
3
- `}]:[],"The theme",...c(a),"was renamed to",`'${o}'`]})}var m=w(F(),1);var u,e=class extends d{async command(r,o){await v(r,o)}};u=e;e.summary="Renames an existing theme.";e.descriptionWithMarkdown=`Renames a theme in your store.
4
-
5
- If no theme is specified, then you're prompted to select the theme that you want to rename from the list of themes in your store.
6
- `;e.description=u.descriptionWithoutMarkdown();e.flags={...h,...s,name:m.Flags.string({char:"n",description:"The new name for the theme.",env:"SHOPIFY_FLAG_NEW_NAME",required:!1}),development:m.Flags.boolean({char:"d",description:"Rename your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),live:m.Flags.boolean({char:"l",description:"Rename your remote live theme.",env:"SHOPIFY_FLAG_LIVE"})};e.multiEnvironmentsFlags=["store","password","name",["live","development","theme"]];var A=e;export{A as a};
@@ -1 +0,0 @@
1
- import{a as E}from"./chunk-R26GJEH3.js";import{a as _}from"./chunk-QU5NL2QT.js";import{a as I,b as w}from"./chunk-STJ3LWFL.js";import{f as a,g as u,p as S,v as b}from"./chunk-Z5DDPQ26.js";import{b as T,c as g}from"./chunk-2Y6CYLKF.js";import{ra as f,ua as p}from"./chunk-EZ7EBYDT.js";import{g as s,u as c}from"./chunk-6YCGMS7X.js";import{m as v}from"./chunk-ZTE46E4Z.js";import{Lb as l}from"./chunk-3TFUSDHY.js";import{a as x}from"./chunk-CTNBSUVU.js";import{e as L,g as m}from"./chunk-VKWPEFWQ.js";m();m();function A(o,e){return{theme:{id:o.id,name:o.name,role:o.role,shop:e.storeFqdn,preview_url:I(o,e),editor_url:w(o,e)}}}function D(o){let{platform:e,arch:n}=s(),t=a(),r=null;return t&&(r=Number(u())||null),{store:t??"Not configured",development_theme_id:r,cli_version:o.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(o,e){let n;if(e.development)n=await new E(o).findOrCreate();else{let t={filter:{theme:e.theme}};n=await _(o,t)}return n?A(n,o):void 0}async function y(o){return[M(),await j(o)]}function M(){let o=a()??"Not configured",e=u();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",o],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(o){let{platform:e,arch:n}=s();return N("Tooling and System",[["Shopify CLI",o.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(o,e){return{title:o,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(o,e){let n=Object.entries(o.theme).map(([t,r])=>{if(t==="editor_url"||t==="preview_url"){let C=String(r),$=t==="editor_url"?"Open in Theme Editor":"Preview Theme";return[d(t),{link:{url:C,label:$}}]}else return t==="id"?[d(t),`#${r}`]:[d(t),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function d(o){return o.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var h=L(x(),1);var i=class extends b{async command(e,n){if(f("theme-command:info"),e.theme||e.development){let t=await O(n,e);if(!t)throw new v("Theme not found!");if(e.json)return l(JSON.stringify(t,null,2));let r=await F(t,e);c(r)}else{if(e.json)return l(JSON.stringify(D({cliVersion:this.config.version}),null,2));let t=await y({cliVersion:this.config.version});c({customSections:t})}f("theme-command:info")}};i.description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";i.flags={...T,...g,...S,development:h.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};i.multiEnvironmentsFlags=["store","password"];var k=i;export{k as a};
@@ -1 +0,0 @@
1
- import{E as f,fa as v,ga as A,j as w,r as m}from"./chunk-EZ7EBYDT.js";import{b as l}from"./chunk-WR2ZQGUR.js";import{f as d,m as p,p as F}from"./chunk-ZTE46E4Z.js";import{Fb as V,Hb as h}from"./chunk-3TFUSDHY.js";import{j as q}from"./chunk-UKQ7NE5V.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();var g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"supported"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var S=new Map;async function W(t,r,e,o){let a="Admin",u=o??await b(r),n=r.storeFqdn,s=$(r);l()==="local"&&(s["x-forwarded-host"]=n,n=new m().host("app"));let i=x(n,u,r);return v({query:t,api:a,addedHeaders:s,url:i,token:r.token,variables:e})}async function E(t){let{query:r,session:e,variables:o,version:a,responseOptions:u,preferredBehaviour:n}=t,s=a??S.get(e.storeFqdn);s??(s=await b(e,n));let i=e.storeFqdn,k=$(e);l()==="local"&&(k["x-forwarded-host"]=i,i=new m().host("app"));let D={url:x(i,s,e),api:"Admin",token:e.token,addedHeaders:k},y;return"refresh"in e&&(y={type:"token_refresh",handler:e.refresh}),A({...D,query:r,variables:o,responseOptions:u,unauthorizedHandler:y,preferredBehaviour:n})}function $(t){return f(t)?{"X-Shopify-Shop":t.storeFqdn,"X-Shopify-Access-Token":t.token}:{}}async function b(t,r){let o=(await N(t,r)).reverse()[0];return S.set(t.storeFqdn,o),o}async function N(t,r){return(await R(t,r)).filter(o=>o.supported).map(o=>o.handle).sort()}async function R(t,r){try{return(await E({query:g,session:t,variables:{},version:"unstable",responseOptions:{handleErrors:!1},preferredBehaviour:r})).publicApiVersions}catch(e){if(e instanceof d&&e.response.status===403){let o=t.storeFqdn.replace(".myshopify.com","");throw new p(h`Looks like you don't have access to this dev store: (${V.link(o,`https://${t.storeFqdn}`)})`,h`If you're not the owner, create a dev store staff account for yourself`)}throw e instanceof d&&(e.response.status===401||e.response.status===404)?new p(`Error connecting to your store ${t.storeFqdn}: ${e.message} ${e.response.status} ${e.response.data}`):w(e)?new p(`Network error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`,"Check your internet connection and try again."):new F(`Unknown error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`)}}function x(t,r,e){let o=r??"unstable";return e&&f(e)?`https://${q}/cli/admin/api/${o}/graphql.json`:`https://${t}/admin/api/${o}/graphql.json`}export{W as a,E as b,N as c,R as d,x as e};
@@ -1,3 +0,0 @@
1
- import{b as g}from"./chunk-2Y6CYLKF.js";import{b as y}from"./chunk-2MCH43SL.js";import{m as u}from"./chunk-EZ7EBYDT.js";import{m as r}from"./chunk-ZTE46E4Z.js";import{Lb as v,Mb as w,ua as l,wa as m}from"./chunk-3TFUSDHY.js";import{f as p,i as h}from"./chunk-773TIA5M.js";import{a as R}from"./chunk-CTNBSUVU.js";import{e as A,g as s}from"./chunk-VKWPEFWQ.js";s();s();var U="text/markdown",L="X-Shopify-Surface",E="cli",F=["shopify.dev"];async function S(t,e){let c;try{c=new URL(t)}catch{throw new r(`Invalid URL: ${t}`)}let{hostname:d}=c;if(!F.some(o=>d===o||d.endsWith(`.${o}`)))throw new r(`Only documents from the following hosts can be fetched: ${F.join(", ")}.`);let i=await u(t,{headers:{Accept:U,[L]:E}});if(!i.ok)throw new r(`Failed to fetch ${t}: ${i.status} ${i.statusText}`);let f=await i.text();if(e){let o=p(e);await m(h(o)),await l(o,f),w(`Saved ${t} to ${o}`);return}v(f)}var n=A(R(),1),a=class t extends y{static{this.description="Download a complete document from shopify.dev. Every page on shopify.dev has a Markdown version, and that is what this tool returns. Use this to pull an entire document verbatim \u2014 for example, a set of instructions an agent follows like a centrally-served skill. For finding the relevant pieces of content across shopify.dev instead, use `doc search`."}static{this.examples=[`# fetch the Markdown version of a Shopify.dev page
2
- shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli`,`# save the document to a file instead of printing it
3
- shopify doc fetch --url https://shopify.dev/docs/api/shopify-cli --output docs/shopify-cli.md`]}static{this.flags={...g,url:n.Flags.string({description:"The shopify.dev URL to fetch.",env:"SHOPIFY_FLAG_URL",required:!0}),output:n.Flags.string({description:"Write the document to this file path instead of printing it to stdout.",env:"SHOPIFY_FLAG_OUTPUT"})}}async run(){let{flags:e}=await this.parse(t);await S(e.url,e.output)}};export{a};
@@ -1,6 +0,0 @@
1
- import{a as e}from"./chunk-GCN4O7HM.js";import{b as r}from"./chunk-2MCH43SL.js";import{r as t}from"./chunk-WR2ZQGUR.js";import{u as i}from"./chunk-6YCGMS7X.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Disable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
2
-
3
- When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
4
-
5
- To enable auto-upgrade, run \`shopify config autoupgrade on\`.
6
- `}static{this.description=this.descriptionWithoutMarkdown()}async run(){t(!1),i({body:e.off})}};export{o as a};
@@ -1,15 +0,0 @@
1
- import{a as O}from"./chunk-6Q5VRSRN.js";import{a as I}from"./chunk-TUJNCWHZ.js";import{c as _,i as P,n as k}from"./chunk-IKYZ5L3F.js";import{b as S,m as b}from"./chunk-HT6MOPLW.js";import{j as g,k as T,l as L,p as R,v as q}from"./chunk-Z5DDPQ26.js";import{b as E}from"./chunk-2Y6CYLKF.js";import{ua as x}from"./chunk-EZ7EBYDT.js";import{a as v}from"./chunk-M4BEPPA3.js";import{m as u}from"./chunk-ZTE46E4Z.js";import{Fb as d,Hb as m,Mb as o,Pb as c}from"./chunk-3TFUSDHY.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as V,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var f=class extends I{constructor(t){super(t),this.context="REPL",this.themeId=g()}async create(t,n){let s=await super.create(t,n);return await this.uploadThemeAssets(s),s}async findOrCreate(){let t=await this.fetch();if(!t){let n=`Liquid Console (${v})`;t=await this.create(S,n)}return t}setTheme(t){T(t)}removeTheme(){L()}async uploadThemeAssets(t){let n=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await b(t.id,n,this.adminSession)}};r();r();async function A(e){return await H(e)??await $(e)??await Y(e)??await z(e)??void 0}async function H(e){c(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,n=await h({...e,snippet:t}),s=await n.text();return C(n.status,s)?Q(s):void 0}async function $(e){c(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,n=await h({...e,snippet:t}),s=await n.text();C(n.status,s)&&e.replSession.push(JSON.parse(t))}async function Y(e){if(c(`Evaluating assignment context - ${e.snippet}`),oe(e.snippet))return e.snippet=`assign ${e.snippet}`,o(m`${d.gray(`> ${e.snippet}`)}`),$(e)}async function z(e){c(`Evaluating syntax error - ${e.snippet}`);let t="";if(X(e.snippet)||(t=await(await h({...e,snippet:`{{ ${e.snippet} }}`})).text()),y(t)||(t=await(await h({...e,snippet:`{% ${e.snippet} %}`})).text()),y(t)){let n=t.replace(/ \(snippets\/eval line \d+\)/,"");B(e.snippet,n)}}function B(e,t){if(t.includes("Unknown tag")){o(m`${d.errorText(`Unknown object, property, tag, or filter: '${e}'`)}`);return}let n=j(t);n&&o(m`${d.errorText(n)}`)}async function h(e){let t=K(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let n=await P(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
2
- ${t}
3
- `}});return Z(n)&&ne(),ee(n)&&se(),te(n)&&re(),n}function K(e){return`[${[...e.replSession.map(n=>JSON.stringify(n)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function Q(e){let t=j(e);if(t)return JSON.parse(t)?.find(s=>s.type==="display")?.value}function j(e){let t=e.split(`
4
- `).slice(1,-1);if(t.length!==0)return t.join("")}function y(e){return e.includes("Liquid syntax error")}function X(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function Z(e){return e.status===401||e.status===403}function ee(e){return e.status===430||e.status===429}function te(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function ne(){throw new u("Session expired. Please initiate a new one.")}function se(){throw new u("Evaluations limit reached. Try again later.")}function re(){throw new u("Page not found. Please provide a valid --url value!")}function oe(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function C(e,t){return e===200&&!y(t)}r();function F(e){if(N(e)){o("Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.");return}if(e==null){M("null");return}let t=JSON.stringify(e,null,2);M(t)}function N(e){if(Array.isArray(e))return e.length>0?N(e[0]):!1;if(e&&typeof e=="object"){let n=e.error;return typeof n=="string"&&n.includes("json not allowed for this object")}return!1}function M(e){return o(m`${d.cyan(e)}`)}import{createInterface as ie}from"readline";var ae=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
5
- Please use 'collections.first' instead of '{{ collections.first }}'.`;async function D(e,t,n){process.stdin.isTTY&&process.stdin.ref();let s=ie({input:process.stdin,output:process.stdout}),a=[];s.on("line",p=>{ue(p,e,t,n,s,a)}),s.prompt()}async function ue(e,t,n,s,a,p){try{if(pe(e))return o(ae),a.prompt();let l=await A({snippet:e,themeSession:t,themeId:n,url:s,replSession:p});F(l),a.prompt()}catch(l){throw a.close(),l instanceof Error?(c(l.stack??"Error backtrace not found"),new u(l.message)):new u("An unknown error occurred. Please try again.")}}function pe(e){return/^\s*(\{\{|{%)/.test(e)}async function W(e,t){let n=await le(e),s=await _(e)?await O(t,e.storeFqdn):void 0;return{themeId:n,storePassword:s}}async function le(e){return(await new f(e).findOrCreate()).id.toString()}async function J(e,t,n,s,a){if(o(`Welcome to Shopify Liquid console
6
- (press Ctrl + C to exit)`),s?.startsWith("shpat_"))throw new u("Unable to use Admin API tokens with the console command",`To use this command with the --password flag you must:
7
-
8
- 1. Install the Theme Access app on your shop
9
- 2. Generate a new password
10
-
11
- Alternatively, you can authenticate normally by not passing the --password flag.
12
-
13
- Learn more: https://shopify.dev/docs/storefronts/themes/tools/theme-access`);let p=await k(t,e,s,a);return D(p,t,n)}var w=V(G(),1);var U,i=class extends q{async command(t,n){let{url:s,password:a}=t,{themeId:p,storePassword:l}=await W(n,t["store-password"]);x("theme-command:console:single-env:authenticated"),await J(n,p,s,a,l)}};U=i;i.summary="Shopify Liquid REPL (read-eval-print loop) tool";i.usage=["theme console","theme console --url /products/classic-leather-jacket"];i.descriptionWithMarkdown=`Starts the Shopify Liquid REPL (read-eval-print loop) tool. This tool provides an interactive terminal interface for evaluating Liquid code and exploring Liquid objects, filters, and tags using real store data.
14
-
15
- You can also provide context to the console using a URL, as some Liquid objects are context-specific`;i.description=U.descriptionWithoutMarkdown();i.flags={...E,...R,url:w.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":w.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"})};i.multiEnvironmentsFlags=null;var Ye=i;export{Ye as a};
@@ -1 +0,0 @@
1
- import{a as n}from"./chunk-LWRDNTAD.js";import{b as i}from"./chunk-2MCH43SL.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends i{static{this.description="Generate a notifications.json file for the the CLI, appending a new notification to the current file."}static{this.hidden=!0}async run(){await n()}};export{t as a};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-TUJNCWHZ.js";import{g as r,h,i as n}from"./chunk-Z5DDPQ26.js";import{m}from"./chunk-ZTE46E4Z.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,i="No development theme ID has been set. Please create a development theme first.",p=class extends s{constructor(e){super(e),this.context="Development",this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):i);return e}setTheme(e){h(e)}removeTheme(){n()}};export{p as a};
@@ -1,6 +0,0 @@
1
- import{a as U}from"./chunk-HSKB5OTM.js";import{E as H}from"./chunk-NOKCVDYD.js";import{a as G}from"./chunk-VJEKDBGZ.js";import{f as T}from"./chunk-6UTUJKKC.js";import{b as D,l as O,s as k}from"./chunk-6YCGMS7X.js";import{m as N}from"./chunk-ZTE46E4Z.js";import{Ca as P,Pb as u,Ta as A,Ua as I,bb as _,na as R,wa as w}from"./chunk-3TFUSDHY.js";import{f as S}from"./chunk-J3IHP46B.js";import{d as x,e as E,g as F,i as C}from"./chunk-773TIA5M.js";import{e as q,g as m}from"./chunk-VKWPEFWQ.js";m();function b(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=q(G(),1),K=200,Q=6e4,L=200,Y=500,v=class{constructor(t,s,i=K){this.currentEvents=[],this.extensionPaths=[],this.ignored={},this.extensionWatchedFiles=new Map,this.emitEvents=()=>{let e=this.currentEvents;this.currentEvents=[];let n=`\u{1F509} ${e.length} EVENTS EMITTED in files: ${e.map(o=>o.path).join(`
2
- `)}`;u(n,this.options.stdout),this.onChangeCallback?.(e)},this.handleFileEvent=(e,n)=>{let o=b(),d=E(n),h=n===this.app.configPath,l=n.endsWith(".extension.toml");if(u(`\u{1F300}: ${e} ${n.replace(this.app.directory,"")}
3
- `),h)this.handleEventForExtension(e,n,this.app.directory,o,!1);else{let a=this.extensionWatchedFiles.get(d),p=a===void 0||a.size===0;if(p&&e==="add"&&!l){let c=this.discoverFileOwners(d);c.size>0&&(this.extensionWatchedFiles.set(d,c),a=c,p=!1)}if(p&&!l&&!h){u(`\u{1F300}: File ${n} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let g=this.app.realExtensions.find(X=>X.handle===c),y=g?E(g.directory):this.app.directory;this.handleEventForExtension(e,n,y,o,!1,c)}p&&this.handleEventForExtension(e,n,this.app.directory,o,!0)}this.debouncedEmit()},this.close=()=>{this.watcher&&(u("Closing file watcher",this.options.stdout),this.watcher.close().then(()=>u("File watching closed",this.options.stdout)).catch(e=>u(`File watching failed to close: ${e.message}`,this.options.stderr)))},this.app=t,this.options=s,this.debouncedEmit=k(this.emitEvents.bind(this),i,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let s=[...this.app.configuration.extension_directories??["extensions"]].map(o=>x(this.app.directory,o));await Promise.all(s.map(async o=>{try{await w(o.replace(/\/\*+$/,""))}catch{}}));let i=[this.app.configPath,...s],e=this.getAllWatchedFiles();i.push(...e),this.close();let{default:n}=await import("./chokidar-5RWEYTNQ.js");this.watcher=n.watch(i,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),u(`File watcher started with ${i.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(s=>E(s.directory)).filter(s=>s!==this.app.directory),this.extensionPaths.forEach(s=>{var i;(i=this.ignored)[s]??(i[s]=this.createIgnoreInstance(s))})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(i=>({extension:i,watchedFiles:i.watchedFiles()})),s=new Set;for(let{extension:i,watchedFiles:e}of t)for(let n of e){let o=E(n);s.add(o);let d=this.extensionWatchedFiles.get(o)??new Set;d.add(i.handle),this.extensionWatchedFiles.set(o,d)}return Array.from(s)}pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(s=>s.path===t.path&&s.type===t.type&&s.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let i=(t.extensionHandle?this.app.realExtensions.find(n=>n.handle===t.extensionHandle):void 0)?.watchedFiles(),e=this.ignored[t.extensionPath];if(i)return!i.some(o=>_(t.path,o));if(e){let n=F(t.extensionPath,t.path);return e.ignores(n)}return!1}discoverFileOwners(t){let s=new Set;for(let i of this.app.realExtensions){let e=E(i.directory);e!==this.app.directory&&t.startsWith(`${e}/`)&&this.pathMatchesWatchPatterns(t,i)&&s.add(i.handle)}return s}pathMatchesWatchPatterns(t,s){let{paths:i,ignore:e}=s.watchPatterns(),n=F(E(s.directory),t);return e.some(o=>_(n,o))?!1:i.some(o=>_(n,o))}handleEventForExtension(t,s,i,e,n,o){let d=s.endsWith(".extension.toml"),h=s===this.app.configPath;switch(t){case"change":if(n)break;d||h?this.pushEvent({type:"extensions_config_updated",path:s,extensionPath:i,extensionHandle:o,startTime:e}):this.pushEvent({type:"file_updated",path:s,extensionPath:i,extensionHandle:o,startTime:e});break;case"add":if(!d){this.pushEvent({type:"file_created",path:s,extensionPath:i,extensionHandle:o,startTime:e});break}let l=0,a=C(s),p=setInterval(()=>{I(x(a,T.lockFile))?(u(`Waiting for extension to complete creation: ${s}
4
- `),l+=L):(clearInterval(p),this.extensionPaths.push(a),this.pushEvent({type:"extension_folder_created",path:a,extensionPath:i,startTime:e}),this.debouncedEmit()),l>=Q&&(clearInterval(p),this.options.stderr.write(`Error loading new extension at path: ${s}.
5
- Please restart the process.`))},L);break;case"unlink":if(s.endsWith(T.lockFile))break;h?this.pushEvent({type:"app_config_deleted",path:s,extensionPath:i,startTime:e}):d?(this.extensionPaths=this.extensionPaths.filter(c=>c!==i),this.pushEvent({type:"extension_folder_deleted",path:i,extensionPath:i,startTime:e})):setTimeout(()=>{this.extensionPaths.includes(i)&&(this.pushEvent({type:"file_deleted",path:s,extensionPath:i,extensionHandle:o,startTime:e}),this.extensionWatchedFiles.delete(E(s)),this.debouncedEmit())},Y);break;case"addDir":case"unlinkDir":break}}createIgnoreInstance(t){let s=x(t,".gitignore");if(!I(s))return;let i=R(s).toString().split(`
6
- `).map(e=>e.trim()).filter(e=>e!==""&&!e.startsWith("#"));return $.default.default().add(i)}};m();m();function B(r,t,s=!0){let i=r.realExtensions,e=i.map(a=>a.uid),n=t.realExtensions,o=n.map(a=>a.uid),d=n.filter(a=>!e.includes(a.uid)),h=i.filter(a=>!o.includes(a.uid)),l;return s&&(l=n.filter(a=>{let p=i.find(y=>y.uid===a.uid);if(!p)return!1;let c=JSON.stringify(p.configuration)!==JSON.stringify(a.configuration),g=p.configurationPath!==a.configurationPath;return c||g})),{created:d,updated:l??[],deleted:h}}async function V(r,t,s){if(r[0]===void 0)return;let i=r.some(o=>j.includes(o.type)),e=r.filter(o=>!j.includes(o.type));if(i)return st({event:r[0],app:t,options:s,extensions:[]});let n={app:t,extensionEvents:[],path:r[0].path,startTime:r[0].startTime};for(let o of e){let d=o.extensionHandle?t.realExtensions.filter(l=>l.handle===o.extensionHandle):t.realExtensions.filter(l=>l.directory===o.extensionPath),h=Z[o.type]({event:o,app:n.app,extensions:d,options:s});n.extensionEvents.push(...h.extensionEvents)}return n}var j=["extensions_config_updated","extension_folder_created"],Z={extension_folder_deleted:tt,file_created:W,file_deleted:W,file_updated:W,app_config_deleted:et,extension_folder_created:z,extensions_config_updated:z};function tt({event:r,app:t,extensions:s}){let i=s.map(e=>(t.removeExtension(e.uid),{type:f.Deleted,extension:e}));return{app:t,extensionEvents:i,startTime:r.startTime,path:r.path}}function W({event:r,app:t,extensions:s}){let i=s.map(e=>({type:f.Updated,extension:e}));return{app:t,extensionEvents:i,startTime:r.startTime,path:r.path}}function z(r){return{app:r.app,extensionEvents:[],startTime:r.event.startTime,path:r.event.path}}function et(r){throw new N("The active app.toml was deleted, exiting")}async function st({event:r,app:t}){let s=await it(t),i=B(t,s,!0),e=i.created.map(h=>({type:f.Created,extension:h})),n=i.deleted.map(h=>({type:f.Deleted,extension:h})),o=i.updated.map(h=>({type:f.Updated,extension:h})),d=[...e,...n,...o];return{app:s,extensionEvents:d,startTime:r.startTime,path:r.path,appWasReloaded:!0}}async function it(r){let t=b();try{let s=await H(r);return u(`App reloaded [${M(t)}ms]`),s}catch(s){let i=new Error(`Error reloading app: ${s.message}`);throw i.cause="validation-error",i}}import{formatMessagesSync as nt}from"esbuild";import ot from"events";var f;(function(r){r.Updated="changed",r.Deleted="deleted",r.Created="created"})(f||(f={}));var J=class extends ot{constructor(t,s,i,e){super(),this.started=!1,this.ready=!1,this.initialEvents=[],this.app=t,this.appURL=s,this.buildOutputPath=i??x(t.directory,".shopify","dev-bundle"),this.options={stdout:process.stdout,stderr:process.stderr,signal:new D},this.fileWatcher=e}async start(t,s=!0){this.started||(this.started=!0,this.options=t??this.options,await A(this.buildOutputPath)&&await P(this.buildOutputPath,{force:!0}),await w(this.buildOutputPath),s&&(this.initialEvents=this.app.realExtensions.map(i=>({type:f.Updated,extension:i})),await this.buildExtensions(this.initialEvents)),this.fileWatcher=this.fileWatcher??new v(this.app,this.options),this.fileWatcher.onChange(i=>{V(i,this.app,this.options).then(async e=>{if(e?.extensionEvents.length===0&&u("Change detected, but no extensions were affected"),!e)return;this.app=e.app,e.appWasReloaded&&this.fileWatcher?.updateApp(this.app),await this.rescanImports(e);let n=e.extensionEvents.filter(o=>o.type!==f.Deleted);await this.buildExtensions(n),e.appWasReloaded||await this.app.generateExtensionTypes(),await this.deleteExtensionsBuildOutput(e),this.emit("all",e)}).catch(e=>{this.emit("error",e)})}),await this.fileWatcher.start(),this.ready=!0,this.emit("ready",{app:this.app,extensionEvents:this.initialEvents}))}onEvent(t){return this.addListener("all",t),this}onStart(t){if(this.ready){let s={app:this.app,extensionEvents:this.initialEvents,startTime:[0,0],path:""};t(s)?.catch(()=>{})}else this.once("ready",t);return this}onError(t){return this.addListener("error",t),this}async deleteExtensionsBuildOutput(t){let i=t.extensionEvents.filter(e=>e.type===f.Deleted).map(e=>e.extension).map(async e=>{let n=x(this.buildOutputPath,e.getOutputFolderId());return P(n,{force:!0})});await Promise.all(i)}async buildExtensions(t){let s=U(t,n=>n.extension.uid),i=[];for(let n of Object.values(s))n.length>0&&n[0]&&i.push({extension:n[0].extension,events:n});let e=i.map(async({extension:n,events:o})=>O({outputPrefix:n.handle,stripAnsi:!1},async()=>{try{await this.buildExtension(n);let d={status:"ok",uid:n.uid};o.forEach(h=>{h.buildResult=d})}catch(d){let h=d.errors??[],l=d.message,a;if(h.length){let c=h[0];l=c?.text,a=c?.location?.file,nt(h,{kind:"error",color:!S()}).forEach(y=>{this.options.stderr.write(y)})}else this.options.stderr.write(d.message);let p={status:"error",error:l,file:a,uid:n.uid};o.forEach(c=>{c.buildResult=p})}}));return Promise.all(e)}async buildExtension(t){let s={app:this.app,stdout:this.options.stdout,stderr:this.options.stderr,useTasks:!1,environment:"development",appURL:this.appURL};await t.buildForBundle(s,this.buildOutputPath)}async rescanImports(t){if(t.path.endsWith(".toml"))return;let i=t.extensionEvents.filter(e=>e.type!==f.Deleted).map(e=>e.extension);i.length>0&&(await Promise.all(i.map(async o=>o.rescanImports()))).some(o=>o)&&await this.fileWatcher?.start()}};export{b as a,M as b,f as c,J as d};
@@ -1,8 +0,0 @@
1
- import{a as u}from"./chunk-R26GJEH3.js";import{a as y}from"./chunk-QU5NL2QT.js";import{a as w}from"./chunk-6BX62FFE.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-Z5DDPQ26.js";import{b as s}from"./chunk-2Y6CYLKF.js";import{J as h,u as p}from"./chunk-6YCGMS7X.js";import{a as O}from"./chunk-CTNBSUVU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
2
-
3
- `,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
-
5
- - A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
6
- - A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
7
-
8
- If you don't specify a theme, then you're prompted to select the theme to open from the list of the themes in your store.`;e.description=g.descriptionWithoutMarkdown();e.flags={...s,...d,development:r.Flags.boolean({char:"d",description:"Open your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),editor:r.Flags.boolean({char:"E",description:"Open the theme editor for the specified theme in the browser.",env:"SHOPIFY_FLAG_EDITOR"}),live:r.Flags.boolean({char:"l",description:"Open your live (published) theme.",env:"SHOPIFY_FLAG_LIVE"}),theme:r.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};e.multiEnvironmentsFlags=null;var S=e;export{S as a};
@@ -1 +0,0 @@
1
- import{g as o}from"./chunk-VKWPEFWQ.js";o();function n(t,e){let r=e.storeFqdn;return t.role==="live"?`https://${r}`:`https://${r}?preview_theme_id=${t.id}`}function s(t,e){return`https://${e.storeFqdn}/admin/themes/${t.id}/editor`}function i(t){return`https://${t}/admin/online_store/preferences`}export{n as a,s as b,i as c};
@@ -1 +0,0 @@
1
- import{h as l}from"./chunk-HT6MOPLW.js";import{O as c}from"./chunk-EZ7EBYDT.js";import{m as u}from"./chunk-ZTE46E4Z.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
@@ -1,3 +0,0 @@
1
- import{a as x}from"./chunk-WW7TENNA.js";import{h as w,m as y,q as n}from"./chunk-EZ7EBYDT.js";import{w as l}from"./chunk-G7QW5OSQ.js";import{k as u,l as m}from"./chunk-WR2ZQGUR.js";import{O as S,u as d,w as g,x as N}from"./chunk-6YCGMS7X.js";import{a as h}from"./chunk-M4BEPPA3.js";import{o as _}from"./chunk-ZTE46E4Z.js";import{Pb as a}from"./chunk-3TFUSDHY.js";import{a as f}from"./chunk-UKQ7NE5V.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var $="https://cdn.shopify.com/static/cli/notifications.json",D="Cache is empty",C=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear"];function c(){return process.env.SHOPIFY_CLI_NOTIFICATIONS_URL??$}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),I=n.object({notifications:n.array(E)});async function Q(e,t=process.env){try{let r=x();if(b(r,t)||w(t))return;let o=await k(),s=v(o.notifications,r,e);a(`Notifications to show: ${s.length}`),await V(s)}catch(r){if(r.message===D){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:s}=await import("./error-handler-IYGE3Z72.js");await s(o,"unexpected_error")}}function b(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||C.includes(e)}async function V(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
2
- `),link:t.cta};switch(t.type){case"info":{d(r);break}case"warning":{g(r);break}case"error":throw N(r),new Error("abort")}u(`notification-${t.id}`,new Date().getTime().toString())})}async function k(){let e=`notifications-${c()}`,t=m(e)?.value;if(!t)throw new Error(D);let r=JSON.parse(t);return I.parse(r)}async function X(){a("Fetching notifications...");let e=await y(c(),void 0,{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:3*1e3});if(e.status!==200)throw new Error(`Failed to fetch notifications: ${e.statusText}`);let t=await e.text(),r=JSON.parse(t),o=I.parse(r);return await O(t),o}async function O(e){u(`notifications-${c()}`,e),a(`Notifications from ${c()} stored in the cache`)}function Z(e,t=process.argv,r=process.env){if(b(e,r)||!t[0]||!t[1])return;let o=t[0],i=[t[1],"notifications","list","--ignore-errors"];S(o,i,{background:!0,env:{...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},externalErrorHandler:async T=>{a(`Failed to fetch notifications in background: ${T.message}`)}})}function v(e,t,r,o=new Date(new Date().setUTCHours(0,0,0,0)),s=h){return e.filter(i=>B(i,s)).filter(i=>F(i,o)).filter(i=>A(i,t)).filter(i=>j(i,t,r)).filter(i=>q(i))}function B(e,t){let r=!e.minVersion||l(t,`>=${e.minVersion}`),o=!e.maxVersion||l(t,`<=${e.maxVersion}`);return r&&o}function F(e,t){let r=!e.minDate||new Date(e.minDate)<=t,o=!e.maxDate||new Date(e.maxDate)>=t;return r&&o}function A(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function j(e,t,r){let o=t.split(":")[0]??"all",s=e.surface??"all";return r?r.includes(s):s===o||s==="all"}function q(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=m(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}function ee(e){let t=[];return e.minDate&&t.push(`from ${e.minDate}`),e.maxDate&&t.push(`to ${e.maxDate}`),e.minVersion&&t.push(`from v${e.minVersion}`),e.maxVersion&&t.push(`to v${e.maxVersion}`),e.frequency==="once"&&t.push("show only once"),e.frequency==="once_a_day"&&t.push("show once a day"),e.frequency==="once_a_week"&&t.push("show once a week"),e.surface&&t.push(`surface = ${e.surface}`),e.commands&&t.push(`commands = ${e.commands.join(", ")}`),t.join(`
3
- `)}export{Q as a,k as b,X as c,Z as d,v as e,ee as f};
@@ -1 +0,0 @@
1
- import{b as a,g as c,i as p,j as f}from"./chunk-HT6MOPLW.js";import{p as h}from"./chunk-ZTE46E4Z.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();function d(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=d(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await f({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),o}};export{u as a};
@@ -1 +0,0 @@
1
- import{n as A,ta as x}from"./chunk-NOKCVDYD.js";import{B as F}from"./chunk-6YCGMS7X.js";import{m as s}from"./chunk-ZTE46E4Z.js";import{Hb as f,Lb as I,Mb as P,Ta as p,ua as v}from"./chunk-3TFUSDHY.js";import{a as S}from"./chunk-J3IHP46B.js";import{d as m,f as y,q as w}from"./chunk-773TIA5M.js";import{a as D}from"./chunk-CTNBSUVU.js";import{e as E,g as l}from"./chunk-VKWPEFWQ.js";l();async function b(n){let{extension:e,stdout:o,developerPlatformClient:i,app:r,orgId:t}=n,c=r.configuration.client_id,{api_version:a,type:u,targeting:d}=e.configuration,T=await(!!d?.length?_({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,target:d[0].target,version:a,orgId:t}):$({localIdentifier:e.localIdentifier,developerPlatformClient:i,apiKey:c,type:u,version:a,orgId:t})),h=A(T,a);if(o)I(h);else{let g=m(e.directory,"schema.graphql");await v(g,h),P(`GraphQL Schema for ${e.localIdentifier} written to ${g}`)}}async function _({localIdentifier:n,developerPlatformClient:e,apiKey:o,target:i,version:r,orgId:t}){let c={handle:i,version:r},a=await e.targetSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function targets and version are valid.`);return a}async function $({localIdentifier:n,developerPlatformClient:e,apiKey:o,version:i,type:r,orgId:t}){let c={version:i,type:r},a=await e.apiSchemaDefinition(c,o,t);if(!a)throw new s(f`A schema could not be generated for ${n}`,f`Check that the Function API type and version are valid.`);return a}l();var C=E(D(),1);var J={path:C.Flags.string({hidden:!1,description:"The path to your function directory.",parse:async n=>y(n),default:async()=>w(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"})};async function M(n,e){let o=n.allExtensions.filter(r=>r.isFunctionExtension),i=o.find(r=>r.directory===e);if(i)return i;if(o.length===1&&o[0])return o[0];if(S())return await F({message:"Which function?",choices:o.map(t=>({label:t.handle,value:t}))});throw new s("Run this command from a function directory or use `--path` to specify a function directory.")}async function N(n,e,o,i,r){let t=m(n.directory,"schema.graphql");if(await p(t))return t;let{app:c,developerPlatformClient:a,organization:u}=await x({directory:e,clientId:o,forceRelink:i,userProvidedConfigName:r});return await b({app:c,developerPlatformClient:a,extension:n,stdout:!1,orgId:u.id}),await p(t)?t:void 0}export{b as a,J as b,M as c,N as d};
@@ -1 +0,0 @@
1
- import{d as _}from"./chunk-773TIA5M.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();function L(o){return o?["1","true","TRUE","yes","YES"].includes(o):!1}i();i();import e from"node:path";import p from"node:os";import c from"node:process";var n=p.homedir(),a=p.tmpdir(),{env:r}=c,O=o=>{let t=e.join(n,"Library");return{data:e.join(t,"Application Support",o),config:e.join(t,"Preferences",o),cache:e.join(t,"Caches",o),log:e.join(t,"Logs",o),temp:e.join(a,o)}},A=o=>{let t=r.APPDATA||e.join(n,"AppData","Roaming"),s=r.LOCALAPPDATA||e.join(n,"AppData","Local");return{data:e.join(s,o,"Data"),config:e.join(t,o,"Config"),cache:e.join(s,o,"Cache"),log:e.join(s,o,"Log"),temp:e.join(a,o)}},S=o=>{let t=e.basename(n);return{data:e.join(r.XDG_DATA_HOME||e.join(n,".local","share"),o),config:e.join(r.XDG_CONFIG_HOME||e.join(n,".config"),o),cache:e.join(r.XDG_CACHE_HOME||e.join(n,".cache"),o),log:e.join(r.XDG_STATE_HOME||e.join(n,".local","state"),o),temp:e.join(a,t,o)}};function I(o,{suffix:t="nodejs"}={}){if(typeof o!="string")throw new TypeError(`Expected a string, got ${typeof o}`);return t&&(o+=`-${t}`),c.platform==="darwin"?O(o):c.platform==="win32"?A(o):S(o)}var T="shopify-cli",E=()=>process.env.XDG_CACHE_HOME?process.env.XDG_CACHE_HOME:I(T).cache;var C={alwaysLogAnalytics:"SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",alwaysLogMetrics:"SHOPIFY_CLI_ALWAYS_LOG_METRICS",deviceAuth:"SHOPIFY_CLI_DEVICE_AUTH",doctor:"SHOPIFY_CLI_DOCTOR",enableCliRedirect:"SHOPIFY_CLI_ENABLE_CLI_REDIRECT",env:"SHOPIFY_CLI_ENV",noAnalytics:"SHOPIFY_CLI_NO_ANALYTICS",optOutInstrumentation:"OPT_OUT_INSTRUMENTATION",appAutomationToken:"SHOPIFY_APP_AUTOMATION_TOKEN",partnersToken:"SHOPIFY_CLI_PARTNERS_TOKEN",runAsUser:"SHOPIFY_RUN_AS_USER",serviceEnv:"SHOPIFY_SERVICE_ENV",skipCliRedirect:"SHOPIFY_CLI_SKIP_CLI_REDIRECT",spinInstance:"SPIN_INSTANCE",themeToken:"SHOPIFY_CLI_THEME_TOKEN",unitTest:"SHOPIFY_UNIT_TEST",verbose:"SHOPIFY_FLAG_VERBOSE",codespaces:"CODESPACES",codespaceName:"CODESPACE_NAME",codespacePortForwardingDomain:"GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",gitpod:"GITPOD_WORKSPACE_URL",cloudShell:"CLOUD_SHELL",spinAppPort:"SERVER_PORT",spinAppHost:"SPIN_APP_HOST",organization:"SHOPIFY_CLI_ORGANIZATION",identityToken:"SHOPIFY_CLI_IDENTITY_TOKEN",refreshToken:"SHOPIFY_CLI_REFRESH_TOKEN",otelURL:"SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",themeKitAccessDomain:"SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",json:"SHOPIFY_FLAG_JSON",skipNetworkLevelRetry:"SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",maxRequestTimeForNetworkCalls:"SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",disableImportScanning:"SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"},P="theme-kit-access.shopifyapps.com",m={backendPort:"BACKEND_PORT"},Y={executables:{dev:"/opt/dev/bin/dev"},directories:{cache:{path:()=>E(),vendor:{path:()=>_(E(),"vendor"),binaries:()=>_(E(),"vendor","binaries")}}}},f={expirationTimeMarginInMinutes:4},g="9e1e6889176fd0c795d5c659225e0fae",j={limit:300,timeout:{days:1}},M=process.env[C.themeKitAccessDomain]??P;export{L as a,I as b,C as c,P as d,m as e,Y as f,f as g,g as h,j as i,M as j};