@shopify/cli 4.5.2 → 4.6.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 (363) hide show
  1. package/dist/analytics-3ICKUTK2.js +1 -0
  2. package/dist/analytics-73NVZI4Z.js +1 -0
  3. package/dist/assets/hydrogen/starter/package.json +1 -1
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
  6. package/dist/{chunk-SH6Q5CLM.js → chunk-25Z36VJG.js} +1 -1
  7. package/dist/{chunk-OC5PD4ID.js → chunk-2AVFG5KT.js} +1 -1
  8. package/dist/chunk-2DMTEIS3.js +2 -0
  9. package/dist/chunk-2GB3EAD3.js +153 -0
  10. package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
  11. package/dist/{chunk-4VJ5VBSR.js → chunk-2NB4P6BB.js} +1 -1
  12. package/dist/{chunk-75DBVSVI.js → chunk-2OYQHHKC.js} +1 -1
  13. package/dist/{chunk-OMXKQY2L.js → chunk-2VJKXWLG.js} +1 -1
  14. package/dist/{chunk-V6QZF5YS.js → chunk-3Q5ESVIY.js} +1 -1
  15. package/dist/{chunk-TPGREOWO.js → chunk-3XCIUG5P.js} +1 -1
  16. package/dist/chunk-445NFHXL.js +3 -0
  17. package/dist/{chunk-WN5VTUWJ.js → chunk-4BPFJDH3.js} +1 -1
  18. package/dist/chunk-4E5RGEJO.js +1 -0
  19. package/dist/{chunk-LGFOE4XL.js → chunk-4IHSAT76.js} +1 -1
  20. package/dist/chunk-4TANJ4JK.js +1 -0
  21. package/dist/{chunk-VCWESQBC.js → chunk-534U3DKZ.js} +2 -2
  22. package/dist/{chunk-KIAMA3L2.js → chunk-56T6YCU2.js} +1 -1
  23. package/dist/chunk-5HJTCBBV.js +317 -0
  24. package/dist/{chunk-523SJVNT.js → chunk-5INBKZRD.js} +1 -1
  25. package/dist/{chunk-DIPTSBQM.js → chunk-5Q4WAGQL.js} +1 -1
  26. package/dist/{chunk-35FS2NTM.js → chunk-5QDM4XIK.js} +1 -1
  27. package/dist/chunk-65CEF3SM.js +8 -0
  28. package/dist/{chunk-NSADN5S2.js → chunk-6HQMZ324.js} +141 -141
  29. package/dist/{chunk-QEVGRNUE.js → chunk-6KAWCN3I.js} +3 -3
  30. package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
  31. package/dist/{chunk-LVLDPYH5.js → chunk-6ZPHB5U2.js} +1 -1
  32. package/dist/{chunk-XS7WK4YK.js → chunk-7AWKXTNS.js} +1 -1
  33. package/dist/chunk-7EE7YOCR.js +16 -0
  34. package/dist/{chunk-L42FYXFW.js → chunk-7L5AIZOP.js} +4 -4
  35. package/dist/chunk-7MD5MIGN.js +103 -0
  36. package/dist/{chunk-N6IFIMC6.js → chunk-7TXWKLPY.js} +1 -1
  37. package/dist/{chunk-ZUWEGJA7.js → chunk-7US4TVO2.js} +1 -1
  38. package/dist/{chunk-7TQ6HVHN.js → chunk-A7IDVXF7.js} +1 -1
  39. package/dist/chunk-AFM3UZQO.js +684 -0
  40. package/dist/{chunk-5GVE4ILZ.js → chunk-AHLNB45E.js} +1 -1
  41. package/dist/{chunk-JOKLZMTP.js → chunk-ARCAYYRW.js} +1 -1
  42. package/dist/{chunk-JADXT2DY.js → chunk-B3U6GDHL.js} +1 -1
  43. package/dist/chunk-BCZMDFI2.js +370 -0
  44. package/dist/chunk-BDDROQGK.js +26 -0
  45. package/dist/{chunk-P6LVSNTT.js → chunk-BKJMVAI7.js} +1 -1
  46. package/dist/chunk-BOAGJ6P5.js +1 -0
  47. package/dist/{chunk-TSEPNC3O.js → chunk-BPDUBZMU.js} +1 -1
  48. package/dist/chunk-BQOKTPUU.js +1 -0
  49. package/dist/{chunk-6VR22Z5R.js → chunk-C7LFLIRT.js} +3 -3
  50. package/dist/chunk-CELVG4AL.js +6 -0
  51. package/dist/{chunk-BQARKSGG.js → chunk-CNI7ZUST.js} +1 -1
  52. package/dist/{chunk-YKNMNGV7.js → chunk-CONJQV7M.js} +1 -1
  53. package/dist/chunk-CTNBSUVU.js +83 -0
  54. package/dist/chunk-CV5ELBVU.js +1 -0
  55. package/dist/{chunk-DI5ZPWNA.js → chunk-DC7TXY4K.js} +1 -1
  56. package/dist/{chunk-ODSMT2ZC.js → chunk-DXUISRMZ.js} +1 -1
  57. package/dist/chunk-EHV7EKB3.js +2 -0
  58. package/dist/{chunk-SZM6ANMN.js → chunk-EQNJ2NQD.js} +2 -2
  59. package/dist/{chunk-NIVGP4LB.js → chunk-EVIO6OWW.js} +1 -1
  60. package/dist/chunk-EZBB2ULE.js +1 -0
  61. package/dist/{chunk-Z6VNPAY7.js → chunk-FBVNXRVB.js} +1 -1
  62. package/dist/chunk-FFSDGRAN.js +1 -0
  63. package/dist/{chunk-YXNKDX56.js → chunk-FG5QXIQH.js} +1 -1
  64. package/dist/{chunk-6ZWMXMNM.js → chunk-FGG6HXIZ.js} +1 -1
  65. package/dist/{chunk-3EJGRQTH.js → chunk-FJCZ4F6J.js} +1 -1
  66. package/dist/{chunk-2ACN7JIZ.js → chunk-FKH5ZF2C.js} +1 -1
  67. package/dist/{chunk-LSCDB36D.js → chunk-GD5IRJBE.js} +1 -1
  68. package/dist/{chunk-ZAN7AZTX.js → chunk-GJEG7VGX.js} +1 -1
  69. package/dist/{chunk-XUAAQI5N.js → chunk-GT6BJ2GK.js} +1 -1
  70. package/dist/chunk-GWNV44NZ.js +18 -0
  71. package/dist/{chunk-ZT4PUH7L.js → chunk-GXO2RRV2.js} +1 -1
  72. package/dist/{chunk-MC466GSO.js → chunk-H5I7BSNG.js} +1 -1
  73. package/dist/{chunk-6AWRW3GS.js → chunk-H5YC3EP6.js} +1 -1
  74. package/dist/chunk-HVMEBH24.js +6 -0
  75. package/dist/{chunk-5N7H4PJJ.js → chunk-HY3INWPI.js} +1 -1
  76. package/dist/{chunk-XXLGM6OZ.js → chunk-I6ST5X56.js} +1 -1
  77. package/dist/{chunk-RFOALCVH.js → chunk-ID6ASBGV.js} +1 -1
  78. package/dist/{chunk-R6A754UW.js → chunk-IDQT2UY7.js} +1 -1
  79. package/dist/chunk-IIOFR25P.js +3 -0
  80. package/dist/{chunk-FSVSM57K.js → chunk-IJEDTDSJ.js} +6 -6
  81. package/dist/{chunk-42RVM4EZ.js → chunk-ILICQWUF.js} +1 -1
  82. package/dist/chunk-IMWEC6NF.js +16 -0
  83. package/dist/{chunk-Q7DSLGTN.js → chunk-ITNFDLZ4.js} +1 -1
  84. package/dist/chunk-IU5U6KKO.js +4 -0
  85. package/dist/{chunk-YNX4DT2O.js → chunk-IXCDFXMB.js} +1 -1
  86. package/dist/chunk-J3D4KQOQ.js +1 -0
  87. package/dist/chunk-JJZNUFPD.js +44 -0
  88. package/dist/chunk-JRTJZAFJ.js +19 -0
  89. package/dist/chunk-JT7YTXJ7.js +1 -0
  90. package/dist/{chunk-EEEKSYWV.js → chunk-JX4HSDDG.js} +15 -15
  91. package/dist/chunk-K4M32VKU.js +5 -0
  92. package/dist/{chunk-XHTICMA7.js → chunk-K5GJNXDK.js} +1 -1
  93. package/dist/{chunk-5CV7GFWZ.js → chunk-KCNOFNS5.js} +1 -1
  94. package/dist/{chunk-3OCR7P3S.js → chunk-KM2R6O7V.js} +1 -1
  95. package/dist/{chunk-CX44CQFL.js → chunk-KNFDN3AP.js} +1 -1
  96. package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
  97. package/dist/{chunk-TM44Z7U7.js → chunk-LDWMX3KZ.js} +1 -1
  98. package/dist/{chunk-6K4DVV37.js → chunk-LEDVV6XK.js} +1 -1
  99. package/dist/chunk-LEEVJH4B.js +1 -0
  100. package/dist/{chunk-EOJNSPIH.js → chunk-LJZIIURR.js} +1 -1
  101. package/dist/{chunk-UHMRDG6J.js → chunk-LURVEPYP.js} +1 -1
  102. package/dist/{chunk-HQE5B2CF.js → chunk-LXOBW4AW.js} +1 -1
  103. package/dist/{chunk-AAK3WGD7.js → chunk-M5YGJYNI.js} +1 -1
  104. package/dist/{chunk-UMB4BWCK.js → chunk-MDQHEW7V.js} +1 -1
  105. package/dist/{chunk-ICRQZAXP.js → chunk-MMP3F6LO.js} +1 -1
  106. package/dist/{chunk-HOAVZLEG.js → chunk-MPYCIVRA.js} +1 -1
  107. package/dist/chunk-MY2H5XPY.js +7 -0
  108. package/dist/{chunk-SG5TRPJ7.js → chunk-N4RYVOXT.js} +1 -1
  109. package/dist/chunk-NB6HHZ36.js +1 -0
  110. package/dist/{chunk-UVIGXZMV.js → chunk-NEK2KNKR.js} +1 -1
  111. package/dist/{chunk-VJQJ5PTQ.js → chunk-NENUUNWB.js} +1 -1
  112. package/dist/{chunk-K4APB7O3.js → chunk-NJONAV7V.js} +1 -1
  113. package/dist/{chunk-7KWBVZPI.js → chunk-NKBSS7YL.js} +1 -1
  114. package/dist/{chunk-HSVZU7MP.js → chunk-NKT5U6IJ.js} +1 -1
  115. package/dist/{chunk-RLB5QHWG.js → chunk-NVQOAHID.js} +1 -1
  116. package/dist/{chunk-P7OSUECN.js → chunk-OHQTOHUX.js} +1 -1
  117. package/dist/chunk-P2P2MAZQ.js +1 -0
  118. package/dist/{chunk-KFUOVO3X.js → chunk-PCTVUTV3.js} +1 -1
  119. package/dist/{chunk-OJZT3NA2.js → chunk-PKR6HS4T.js} +1 -1
  120. package/dist/chunk-PKRDBS7O.js +5 -0
  121. package/dist/{chunk-BVWQZKNK.js → chunk-PMD6S7YG.js} +1 -1
  122. package/dist/{chunk-KPNNGJAW.js → chunk-PUOCHFFI.js} +1 -1
  123. package/dist/{chunk-ANH2V6DJ.js → chunk-Q2DPBMV4.js} +1 -1
  124. package/dist/{chunk-23LZNWB5.js → chunk-Q6XT3YKV.js} +1 -1
  125. package/dist/{chunk-TNUY66EE.js → chunk-QARALFHD.js} +1 -1
  126. package/dist/{chunk-XCGV3IJ5.js → chunk-QEL3F2NY.js} +1 -1
  127. package/dist/{chunk-P2SBE77Z.js → chunk-R2W5B7YI.js} +1 -1
  128. package/dist/chunk-REABQXMP.js +1 -0
  129. package/dist/{chunk-KQTVJMV6.js → chunk-RMF3YNWE.js} +1 -1
  130. package/dist/{chunk-TH6CLNGO.js → chunk-RTPVI7LE.js} +1 -1
  131. package/dist/{chunk-U3MSTPZP.js → chunk-SFZQFEZB.js} +1 -1
  132. package/dist/{chunk-7AY6HLQG.js → chunk-STCLJWHD.js} +1 -1
  133. package/dist/{chunk-7AYYQUJG.js → chunk-STJWHL36.js} +1 -1
  134. package/dist/{chunk-NYG2VQFQ.js → chunk-SZJHOXS6.js} +1 -1
  135. package/dist/{chunk-DZMXYETH.js → chunk-TEPMNVJN.js} +1 -1
  136. package/dist/{chunk-ML6SILEL.js → chunk-TNSMROUR.js} +1 -1
  137. package/dist/chunk-TR4OWSEX.js +77 -0
  138. package/dist/{chunk-AUAUAK6P.js → chunk-U3P5TIIR.js} +1 -1
  139. package/dist/{chunk-CEBDKIVH.js → chunk-UDDJQ34Y.js} +1 -1
  140. package/dist/chunk-UKQ7NE5V.js +1 -0
  141. package/dist/{chunk-KMQE7WFZ.js → chunk-UOQBCBKY.js} +1 -1
  142. package/dist/{chunk-RTINXD5Z.js → chunk-UQWT2PFO.js} +1 -1
  143. package/dist/{chunk-AATUQ2AY.js → chunk-UTK6V2NE.js} +80 -80
  144. package/dist/{chunk-XDV4PRFT.js → chunk-V26QBVCN.js} +1 -1
  145. package/dist/{chunk-T35C6NC7.js → chunk-VVEQ4IHW.js} +1 -1
  146. package/dist/chunk-VXBHTSMX.js +20 -0
  147. package/dist/chunk-W2357IN2.js +2 -0
  148. package/dist/chunk-W6ST525S.js +99 -0
  149. package/dist/chunk-WDCCITSG.js +1 -0
  150. package/dist/{chunk-5VRU3BT5.js → chunk-WE3VLC2S.js} +1 -1
  151. package/dist/chunk-WGMYSPR2.js +10 -0
  152. package/dist/chunk-WHT2RCAD.js +11 -0
  153. package/dist/{chunk-YWQPSMRZ.js → chunk-WOYI6SDK.js} +1 -1
  154. package/dist/{chunk-BUVP2UUA.js → chunk-WXJGZGQS.js} +1 -1
  155. package/dist/{chunk-DELISRUH.js → chunk-X4AZV5A2.js} +1 -1
  156. package/dist/{chunk-7PVNAILK.js → chunk-X5RH4ALT.js} +1 -1
  157. package/dist/{chunk-2TJ6LOCC.js → chunk-XBBP5BWC.js} +1 -1
  158. package/dist/{chunk-4UJNCOE6.js → chunk-XH32NPYG.js} +1 -1
  159. package/dist/{chunk-PEYYIWP6.js → chunk-XZ2KUBFJ.js} +1 -1
  160. package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
  161. package/dist/{chunk-I5X3IP6T.js → chunk-Y7A7Z2V3.js} +1 -1
  162. package/dist/{chunk-UW6YEKST.js → chunk-YE7XCF44.js} +1 -1
  163. package/dist/{chunk-LXOBFJZO.js → chunk-YHH3JA36.js} +1 -1
  164. package/dist/chunk-YIFT67BD.js +4 -0
  165. package/dist/{chunk-34SINZ7L.js → chunk-YR7K4NQT.js} +1 -1
  166. package/dist/{chunk-VGSH33QU.js → chunk-Z36JS7OX.js} +1 -1
  167. package/dist/{chunk-WDSBR7KX.js → chunk-ZHPPBTNE.js} +1 -1
  168. package/dist/chunk-ZMSE5SQB.js +1 -0
  169. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  170. package/dist/cli/commands/app/build.js +1 -1
  171. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  172. package/dist/cli/commands/app/bulk/execute.js +1 -1
  173. package/dist/cli/commands/app/bulk/status.js +1 -1
  174. package/dist/cli/commands/app/config/link.js +1 -1
  175. package/dist/cli/commands/app/config/pull.js +1 -1
  176. package/dist/cli/commands/app/config/use.js +1 -1
  177. package/dist/cli/commands/app/config/validate.js +1 -1
  178. package/dist/cli/commands/app/demo/watcher.js +1 -1
  179. package/dist/cli/commands/app/deploy.js +1 -1
  180. package/dist/cli/commands/app/dev/clean.js +1 -1
  181. package/dist/cli/commands/app/dev.js +1 -1
  182. package/dist/cli/commands/app/env/pull.js +1 -1
  183. package/dist/cli/commands/app/env/show.js +1 -1
  184. package/dist/cli/commands/app/execute.js +1 -1
  185. package/dist/cli/commands/app/function/build.js +1 -1
  186. package/dist/cli/commands/app/function/info.js +1 -1
  187. package/dist/cli/commands/app/function/replay.js +1 -1
  188. package/dist/cli/commands/app/function/run.js +1 -1
  189. package/dist/cli/commands/app/function/schema.js +1 -1
  190. package/dist/cli/commands/app/function/typegen.js +1 -1
  191. package/dist/cli/commands/app/generate/extension.js +1 -1
  192. package/dist/cli/commands/app/graphiql.js +1 -1
  193. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  194. package/dist/cli/commands/app/import-extensions.js +1 -1
  195. package/dist/cli/commands/app/info.js +1 -1
  196. package/dist/cli/commands/app/init.js +1 -1
  197. package/dist/cli/commands/app/logs.js +1 -1
  198. package/dist/cli/commands/app/release.js +1 -1
  199. package/dist/cli/commands/app/versions/list.js +1 -1
  200. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  201. package/dist/cli/commands/auth/login.js +1 -1
  202. package/dist/cli/commands/auth/logout.js +1 -1
  203. package/dist/cli/commands/cache/clear.js +1 -1
  204. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  205. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  206. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  207. package/dist/cli/commands/debug/command-flags.js +1 -1
  208. package/dist/cli/commands/doc/fetch.js +1 -1
  209. package/dist/cli/commands/doc/search.js +1 -1
  210. package/dist/cli/commands/docs/generate.js +1 -1
  211. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  212. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  213. package/dist/cli/commands/help.js +1 -1
  214. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  215. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  216. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  217. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  218. package/dist/cli/commands/notifications/generate.js +1 -1
  219. package/dist/cli/commands/notifications/list.js +1 -1
  220. package/dist/cli/commands/organization/list.js +1 -1
  221. package/dist/cli/commands/search.js +1 -1
  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/command-registry.js +1 -1
  245. package/dist/conf-store-YW3NWYCN.js +1 -0
  246. package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
  247. package/dist/deprecations-VW7UIMZX.js +1 -0
  248. package/dist/dist-I3VCRVOE.js +1 -0
  249. package/dist/dist-MP4AU5F4.js +1 -0
  250. package/dist/environments-5P57CTOG.js +1 -0
  251. package/dist/error-U7DOQOWG.js +1 -0
  252. package/dist/error-handler-AOEXPYI7.js +1 -0
  253. package/dist/{fs-B4UJTUCD.js → fs-K5NT4W2Q.js} +1 -1
  254. package/dist/hooks/app-init.js +1 -1
  255. package/dist/hooks/did-you-mean.js +1 -1
  256. package/dist/hooks/hydrogen-init.js +1 -1
  257. package/dist/hooks/plugin-plugins.js +1 -1
  258. package/dist/hooks/postrun.js +1 -1
  259. package/dist/hooks/prerun.js +1 -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/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
  265. package/dist/index.js +15 -15
  266. package/dist/is-global-CFYYUAIJ.js +1 -0
  267. package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
  268. package/dist/lib-2BR2WN7L.js +1 -0
  269. package/dist/lib-JKLF33A7.js +1 -0
  270. package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
  271. package/dist/local-BRRQOCGY.js +1 -0
  272. package/dist/local-storage-FVSI2IBZ.js +1 -0
  273. package/dist/{metadata-FREAI3KR.js → metadata-HVSGVFUQ.js} +1 -1
  274. package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
  275. package/dist/node-package-manager-6JURLQKU.js +1 -0
  276. package/dist/notifications-system-BTEFKXCS.js +1 -0
  277. package/dist/out-53ABAVL7.js +1 -0
  278. package/dist/{output-VUR2QZPW.js → output-EXMTVS2V.js} +1 -1
  279. package/dist/system-DUJDILSL.js +1 -0
  280. package/dist/tsconfig.tsbuildinfo +1 -1
  281. package/dist/ui-AX6ZMY6P.js +1 -0
  282. package/dist/upgrade-5TEVQNLY.js +1 -0
  283. package/dist/version-7LKOAVDW.js +1 -0
  284. package/dist/version-PRFBZAWQ.js +1 -0
  285. package/dist/{workerd-KPQTFQD4.js → workerd-MFV7EBVM.js} +1 -1
  286. package/oclif.manifest.json +612 -2
  287. package/package.json +11 -11
  288. package/dist/analytics-M7ZU437S.js +0 -1
  289. package/dist/analytics-ZRM4FEOE.js +0 -1
  290. package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
  291. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
  292. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
  293. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
  294. package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
  295. package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
  296. package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
  297. package/dist/assets/dev-console/index.html +0 -21
  298. package/dist/chunk-2O22LZKV.js +0 -44
  299. package/dist/chunk-3IFZECSI.js +0 -22
  300. package/dist/chunk-4MLEL3VK.js +0 -283
  301. package/dist/chunk-4P54DKG4.js +0 -3
  302. package/dist/chunk-4ROX2TCK.js +0 -1
  303. package/dist/chunk-5C7HDTHJ.js +0 -1
  304. package/dist/chunk-5VC4XXYH.js +0 -1
  305. package/dist/chunk-7RJPTSL6.js +0 -7
  306. package/dist/chunk-ADKFAPED.js +0 -21
  307. package/dist/chunk-B5MFFERE.js +0 -1
  308. package/dist/chunk-BLSWUNOK.js +0 -16
  309. package/dist/chunk-DN3BB4IO.js +0 -103
  310. package/dist/chunk-EAOT5CK5.js +0 -2
  311. package/dist/chunk-G6BFXMOV.js +0 -2
  312. package/dist/chunk-GMAZ2BQY.js +0 -26
  313. package/dist/chunk-HYF3VJYS.js +0 -3
  314. package/dist/chunk-IIFRDOYG.js +0 -1
  315. package/dist/chunk-KB6H5LQJ.js +0 -4
  316. package/dist/chunk-LKZ7ARYS.js +0 -18
  317. package/dist/chunk-MYQTAM77.js +0 -2
  318. package/dist/chunk-NGCPVRDM.js +0 -1
  319. package/dist/chunk-NJOO5XJV.js +0 -1
  320. package/dist/chunk-NNOSZ447.js +0 -1
  321. package/dist/chunk-NVA2354A.js +0 -5
  322. package/dist/chunk-NWH3TAHK.js +0 -1
  323. package/dist/chunk-OCBGHOH2.js +0 -19
  324. package/dist/chunk-P7U6BWKN.js +0 -1
  325. package/dist/chunk-QFXJNFMI.js +0 -1
  326. package/dist/chunk-R7QYSC6T.js +0 -567
  327. package/dist/chunk-RE652L3G.js +0 -1
  328. package/dist/chunk-SSDEWKDZ.js +0 -6
  329. package/dist/chunk-T6CC5WUU.js +0 -159
  330. package/dist/chunk-TB7HFPBB.js +0 -370
  331. package/dist/chunk-TIU7MMRT.js +0 -836
  332. package/dist/chunk-TTEY5PLR.js +0 -10
  333. package/dist/chunk-U4HLIXRH.js +0 -4
  334. package/dist/chunk-UAYIFFYJ.js +0 -11
  335. package/dist/chunk-UHIP5CFI.js +0 -1
  336. package/dist/chunk-UMFVRG33.js +0 -5
  337. package/dist/chunk-WTRKTFVE.js +0 -2
  338. package/dist/chunk-X3VG75LO.js +0 -1
  339. package/dist/chunk-XSUZPWYV.js +0 -5
  340. package/dist/chunk-Z33MWGCG.js +0 -1
  341. package/dist/chunk-ZIM2G3EP.js +0 -1
  342. package/dist/chunk-ZSYMRT3S.js +0 -4
  343. package/dist/conf-store-HOA62HKK.js +0 -1
  344. package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
  345. package/dist/deprecations-2FTB7JEW.js +0 -1
  346. package/dist/dist-63JMGNUL.js +0 -1
  347. package/dist/dist-6TY6L7OW.js +0 -1
  348. package/dist/environments-XVYTKHRZ.js +0 -1
  349. package/dist/error-SDU6RPQQ.js +0 -1
  350. package/dist/error-handler-4YEBBCUH.js +0 -1
  351. package/dist/is-global-5LFZDDNH.js +0 -1
  352. package/dist/lib-QJDPPAWN.js +0 -1
  353. package/dist/lib-UCG2DNMS.js +0 -1
  354. package/dist/local-VTYGIJVD.js +0 -1
  355. package/dist/local-storage-A6NBLBB2.js +0 -1
  356. package/dist/node-package-manager-N5SUT2WN.js +0 -1
  357. package/dist/notifications-system-P3SUTD25.js +0 -1
  358. package/dist/out-CDCY25QC.js +0 -1
  359. package/dist/system-OXF2P5CT.js +0 -1
  360. package/dist/ui-N2C5FC3G.js +0 -1
  361. package/dist/upgrade-AJ36IT7H.js +0 -1
  362. package/dist/version-DSFP332V.js +0 -1
  363. package/dist/version-HUOO3XOE.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as x}from"./chunk-RE652L3G.js";import{Fa as D}from"./chunk-4MLEL3VK.js";import{b as u,d as B}from"./chunk-WN5VTUWJ.js";import{g as W,n as y}from"./chunk-TIU7MMRT.js";import{E as N,P as F,x as A}from"./chunk-EEEKSYWV.js";import{d as s,g as C}from"./chunk-IIFRDOYG.js";import{Fb as m,Hb as o,Ta as _,ma as T}from"./chunk-TB7HFPBB.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await _(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
1
+ import{a as x}from"./chunk-EZBB2ULE.js";import{ta as D}from"./chunk-5HJTCBBV.js";import{b as u,d as B}from"./chunk-4BPFJDH3.js";import{m as y}from"./chunk-AFM3UZQO.js";import{E as N,P as F,x as A}from"./chunk-JX4HSDDG.js";import{d as W,m as s,p as C}from"./chunk-2GB3EAD3.js";import{Fb as m,Hb as o,Ta as _,ma as T}from"./chunk-BCZMDFI2.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await _(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
2
2
  ${d}`)}}t();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mutation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunMutation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mutation"},value:{kind:"Variable",name:{kind:"Name",value:"mutation"}}},{kind:"Argument",name:{kind:"Name",value:"stagedUploadPath"},value:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}}},{kind:"Argument",name:{kind:"Name",value:"clientIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function ae(e){let{adminSession:n,query:a,variablesJsonl:i,version:r}=e,l=await h({adminSession:n,variablesJsonl:i});return(await u({query:U,session:n,variables:{mutation:a,stagedUploadPath:l},...r&&{version:r}})).bulkOperationRunMutation}t();t();var S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};t();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function te(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:S,session:n,variables:{id:a},version:i??p})).bulkOperation}async function re(e){let{adminSession:n,version:a,sinceDays:i=7,first:r=100}=e,l=new Date(Date.now()-i*24*60*60*1e3).toISOString().split("T")[0];return(await u({query:q,session:n,variables:{query:`created_at:>=${l}`,first:r,sortKey:"CREATED_AT"},version:a??p})).bulkOperations.nodes}t();t();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function oe(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:P,session:n,variables:{id:a},version:i??p})).bulkOperationCancel}t();t();function O(e){switch(e.status){case"RUNNING":return o`Bulk operation in progress${e.objectCount>0?m.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return o`Starting`;case"COMPLETED":return o`Bulk operation succeeded: ${m.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return o`Bulk operation failed. ${m.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return o`Bulk operation canceling...`;case"CANCELED":return o`Bulk operation canceled.`;case"EXPIRED":return o`Bulk operation expired.`;default:return o`Bulk operation status: ${e.status}`}}function le(e,n){let a=e.map(i=>o`${i.field?.join(".")??"unknown"}: ${i.message}`.value).join(`
3
3
  `);A({headline:n,body:a})}function de(e){let n=O(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let a=[o`ID: ${m.cyan(e.id)}`.value,o`Status: ${m.yellow(e.status)}`.value,o`Created at: ${m.gray(String(e.createdAt))}`.value,...e.completedAt?[o`Completed at: ${m.gray(String(e.completedAt))}`.value]:[]];return{headline:o`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:o`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:a}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:n,renderType:"info"}}}var se=["COMPLETED","FAILED","CANCELED","EXPIRED"],V=1,ue=5,M=10,$=3e3,Q=300;async function me(e,n){return N({title:o`Starting bulk operation`,task:async()=>{let a=Date.now(),i=j({adminSession:e,operationId:n,pollIntervalSeconds:Q/1e3,useAdaptivePolling:!1}),r;do{let{value:l,done:d}=await i.next();if(r=l,d)return r}while(Date.now()-a<$);return r},renderOptions:{stdout:process.stderr}})}async function ke(e,n,a,i){return N({title:o`Polling bulk operation`,task:async r=>{let l=j({adminSession:e,operationId:n,pollIntervalSeconds:ue,initialPollIntervalSeconds:V,initialPollCount:M,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:d,done:k}=await l.next();if(k)return d;r(O(d))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*j({adminSession:e,operationId:n,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:r=V,initialPollCount:l=M,abortSignal:d}){let k=0;for(;;){let c=await pe(e,n);if(!c.bulkOperation)throw new Error("bulk operation not found");let f=c.bulkOperation;if(se.includes(f.status)||d?.aborted)return f;yield f,k++;let v=a;if(i&&k<=l&&(v=r),d){let w,K=new Promise(G=>{let I=()=>G();d.addEventListener("abort",I,{once:!0}),w=()=>d.removeEventListener("abort",I)});await Promise.race([F(v),K]),w?.()}else await F(v)}}async function pe(e,n){return u({query:S,session:e,variables:{id:n},version:p})}t();async function ce(e){let n=await y(e);if(!n.ok)throw new s(`Failed to download bulk operation results: ${n.statusText}`);return n.text()}function ve(e){return e.trim().split(`
4
4
  `).filter(a=>a.trim().length>0).some(a=>{let i;try{i=JSON.parse(a)}catch(l){if(l instanceof SyntaxError)return!1;throw l}if(!i.data)return!1;let r=Object.values(i.data)[0];return r?.userErrors!==void 0&&r.userErrors.length>0})}t();async function fe(e){let n=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),a=await x({appContextResult:n,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:n,store:a}}async function Jn(e){let n=await E({query:e.query,queryFile:e["query-file"]}),{appContextResult:a,store:i}=await fe(e);return{query:n,appContextResult:a,store:i}}export{p as a,H as b,J as c,g as d,X as e,Y as f,E as g,Z as h,ae as i,te as j,re as k,oe as l,O as m,le as n,de as o,me as p,ke as q,ce as r,ve as s,fe as t,Jn as u};
@@ -1,3 +1,3 @@
1
- import{a as _}from"./chunk-TM44Z7U7.js";import{e as R}from"./chunk-N6IFIMC6.js";import{a as j}from"./chunk-KQTVJMV6.js";import{c as O,i as k,o as x}from"./chunk-HSVZU7MP.js";import{p as v,v as A}from"./chunk-4P54DKG4.js";import{b as F,c as L}from"./chunk-NGCPVRDM.js";import{J as y}from"./chunk-EEEKSYWV.js";import{d as T}from"./chunk-IIFRDOYG.js";import{$a as $,Lb as S,Pb as p,la as P,ua as g}from"./chunk-TB7HFPBB.js";import{d as m,i as w}from"./chunk-773TIA5M.js";import{r as U}from"./chunk-T6CC5WUU.js";import{e as D,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{fileURLToPath as I}from"node:url";async function E(...i){let e=await $("package.json",{cwd:I(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?m(w(e),"assets",...i):m(w(e),"dist","assets",...i)}async function b(i,e,s,t,n,f){let c=await O(i)?await j(f,i.storeFqdn):void 0;if(n)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let d=await x(e,i,n,c),o=await k(d,{method:"GET",path:s,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let u=await o.text();throw new Error(`Bad response: ${o.status}: ${u}`)}let a=await o.text();t?S(a):await J(a)}async function J(i){let e=process.env.WSL_DISTRO_NAME,s=e?`//wsl$/${e}`:"",t=await E("speedscope","index.html");p(`[Theme Profile] Resolved URL to open: ${t}`);let n="liquid-profile",f=Buffer.from(i).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(n)}, ${JSON.stringify(f)})`,d=`speedscope-${Number(new Date)}-${process.pid}`,o=m(P(),`${d}.js`);p(`[Theme Profile] writing JS file to: ${o}`),await g(o,c),p(`[Theme Profile] JS file created successfully: ${o}`),t=`${s}${t}`,o=`${s}${o}`,t+=`#localProfilePath=${o}`;let a=m(P(),`${d}.html`);p(`[Theme Profile] writing HTML file to: ${a}`),await g(a,`<script>window.location=${JSON.stringify(t)}</script>`),p(`[Theme Profile] HTML file created successfully: ${a}`),a=`${s}${a}`,t=`file://${a}`,p(`[Theme Profile] Opening URL: ${t}`);let u=await y(t);p(`[Theme Profile] URL opened successfully: ${u}`)}var h=D(U(),1);var q,r=class extends A{async command(e,s){let{password:t}=e,n;e.theme?n={filter:{theme:e.theme}}:n={filter:{live:!0}};let f=await _(s,n),c=[{title:`Generating Liquid profile for ${s.storeFqdn} ${e.url}`,task:async()=>{await b(s,f.id.toString(),e.url,e.json,t,e["store-password"])}}];await R(c)}};q=r;r.summary="Profile the Liquid rendering of a theme page.";r.usage=["theme profile","theme profile --url /products/classic-leather-jacket"];r.descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
1
+ import{a as _}from"./chunk-LDWMX3KZ.js";import{e as R}from"./chunk-7TXWKLPY.js";import{a as j}from"./chunk-RMF3YNWE.js";import{c as O,i as k,o as x}from"./chunk-NKT5U6IJ.js";import{p as v,v as A}from"./chunk-445NFHXL.js";import{b as F,c as L}from"./chunk-4TANJ4JK.js";import{J as y}from"./chunk-JX4HSDDG.js";import{m as T}from"./chunk-2GB3EAD3.js";import{$a as $,Lb as S,Pb as p,la as P,ua as g}from"./chunk-BCZMDFI2.js";import{d as m,i as w}from"./chunk-773TIA5M.js";import{a as U}from"./chunk-CTNBSUVU.js";import{e as D,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{fileURLToPath as I}from"node:url";async function E(...i){let e=await $("package.json",{cwd:I(import.meta.url),type:"file"});if(!e)throw new Error("Failed to find CLI root path");return e.endsWith("/packages/theme/package.json")?m(w(e),"assets",...i):m(w(e),"dist","assets",...i)}async function b(i,e,s,t,n,f){let c=await O(i)?await j(f,i.storeFqdn):void 0;if(n)throw new T("Unable to use Admin API or Theme Access tokens with the profile command","You must authenticate manually by not passing the --password flag.");let d=await x(e,i,n,c),o=await k(d,{method:"GET",path:s,query:[],themeId:e,headers:{Accept:"application/vnd.speedscope+json"}});if(o.status!==200){let u=await o.text();throw new Error(`Bad response: ${o.status}: ${u}`)}let a=await o.text();t?S(a):await J(a)}async function J(i){let e=process.env.WSL_DISTRO_NAME,s=e?`//wsl$/${e}`:"",t=await E("speedscope","index.html");p(`[Theme Profile] Resolved URL to open: ${t}`);let n="liquid-profile",f=Buffer.from(i).toString("base64"),c=`speedscope.loadFileFromBase64(${JSON.stringify(n)}, ${JSON.stringify(f)})`,d=`speedscope-${Number(new Date)}-${process.pid}`,o=m(P(),`${d}.js`);p(`[Theme Profile] writing JS file to: ${o}`),await g(o,c),p(`[Theme Profile] JS file created successfully: ${o}`),t=`${s}${t}`,o=`${s}${o}`,t+=`#localProfilePath=${o}`;let a=m(P(),`${d}.html`);p(`[Theme Profile] writing HTML file to: ${a}`),await g(a,`<script>window.location=${JSON.stringify(t)}</script>`),p(`[Theme Profile] HTML file created successfully: ${a}`),a=`${s}${a}`,t=`file://${a}`,p(`[Theme Profile] Opening URL: ${t}`);let u=await y(t);p(`[Theme Profile] URL opened successfully: ${u}`)}var h=D(U(),1);var q,r=class extends A{async command(e,s){let{password:t}=e,n;e.theme?n={filter:{theme:e.theme}}:n={filter:{live:!0}};let f=await _(s,n),c=[{title:`Generating Liquid profile for ${s.storeFqdn} ${e.url}`,task:async()=>{await b(s,f.id.toString(),e.url,e.json,t,e["store-password"])}}];await R(c)}};q=r;r.summary="Profile the Liquid rendering of a theme page.";r.usage=["theme profile","theme profile --url /products/classic-leather-jacket"];r.descriptionWithMarkdown=`Profile the Shopify Liquid on a given page.
2
2
 
3
3
  This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.`;r.description=q.descriptionWithoutMarkdown();r.flags={...F,...v,theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),url:h.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":h.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"}),...L};r.multiEnvironmentsFlags=null;var le=r;export{le as a};
@@ -1 +1 @@
1
- import{e as c}from"./chunk-523SJVNT.js";import{R as s}from"./chunk-TIU7MMRT.js";import{d as p,g as a}from"./chunk-IIFRDOYG.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
1
+ import{e as c}from"./chunk-5INBKZRD.js";import{R as s}from"./chunk-AFM3UZQO.js";import{m as p,p as a}from"./chunk-2GB3EAD3.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
@@ -0,0 +1,8 @@
1
+ import{c as J}from"./chunk-2OYQHHKC.js";import{b as T}from"./chunk-XZ2KUBFJ.js";import{a as ae}from"./chunk-P2P2MAZQ.js";import{a as ne}from"./chunk-WDCCITSG.js";import{a as z}from"./chunk-NENUUNWB.js";import{C as Z,E as ee,d as K,e as Q,ta as te}from"./chunk-5HJTCBBV.js";import{f as k,h as X,i as B}from"./chunk-7EE7YOCR.js";import{a as P}from"./chunk-X5RH4ALT.js";import{b as H}from"./chunk-4TANJ4JK.js";import{d as F}from"./chunk-AFM3UZQO.js";import{C as G,p as _,x as R,y as b}from"./chunk-CELVG4AL.js";import{B as q,D as O,F as V,v as $,z as U}from"./chunk-JX4HSDDG.js";import{m}from"./chunk-2GB3EAD3.js";import{Gb as W,Oa as j,Ta as x,Ua as D,Wa as L,X as f,_ as M,ka as g,qa as N,wa as v,ya as E}from"./chunk-BCZMDFI2.js";import{e as Y}from"./chunk-EQNJ2NQD.js";import{d as p,n as I}from"./chunk-773TIA5M.js";import{a as xe}from"./chunk-CTNBSUVU.js";import{e as he,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function re(e,t,r,n={}){let{templates:a,groupOrder:i}=await e.templateSpecifications(t,n);return{templates:a.filter(o=>r.includes(o.identifier)||r.includes(o.type)),groupOrder:i}}d();d();async function ie(e,t){let r=e?.path??"",n=p(t,r);if(!await x(n))throw new m(`
2
+ The extension is not available for ${e?.value}`);return n}async function oe({name:e,app:t}){let r=M(e),n=p(t.directory,B.extensions.directoryName,r);if(await x(n))throw new m(`
3
+ A directory with this name (${r}) already exists.
4
+ Choose a new name for your extension.`);return await v(n),await N(p(n,k.lockFile)),n}function A(e){switch(e){case"vanilla-js":case"preact":case"react":case"typescript":case"typescript-react":return"javascript";case"rust":case"wasm":return e;case void 0:case"liquid":case"config-only":return}}async function se(e){let t=e.extensionChoices.name,r=e.extensionChoices.flavor,n=e.extensionTemplate.supportedFlavors.find(o=>o.value===r),a=await oe({app:e.app,name:t}),i=e.cloneUrl??e.extensionTemplate.url,s={directory:a,url:i,app:e.app,project:e.project,type:e.extensionTemplate.type,name:t,extensionFlavor:n,onGetTemplateRepository:e.onGetTemplateRepository??(async(o,c)=>{await J({repoUrl:o,destination:c,shallow:!0})})};return await we(s),{directory:I(a),extensionTemplate:e.extensionTemplate}}async function we(e){try{switch(e.type){case"theme":await ge(e);break;case"function":await ve(e);break;default:await Ee(e);break}let t=p(e.directory,k.lockFile);await E(t)}catch(t){throw await E(e.directory),t}}async function ge({directory:e,url:t,type:r,name:n,extensionFlavor:a,onGetTemplateRepository:i}){return g(async s=>{let o=await S(t,a,s,i);await T(o,e,{name:n,type:r,uid:F(f(n))})})}async function ve({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[];c.push({title:"Generating function extension",task:async()=>{if(await g(async l=>{let u=await S(t,i,l,s);await T(u,e,{name:a,handle:f(a),flavor:i?.value,uid:F(f(a))})}),o==="javascript"){let l=ce(i?.value??"rust");await le(e,l,"!(*.graphql)")}}}),o==="javascript"&&c.push({title:"Installing additional dependencies",task:async()=>{n.usesWorkspaces&&await _({packageManager:n.packageManager,directory:n.directory});let l=Fe(o);await b(l,{packageManager:n.packageManager,type:"prod",directory:n.usesWorkspaces?e:n.directory})}}),o==="javascript"&&c.push({title:"Building GraphQL types",task:async()=>{await Q({directory:e,isJavaScript:!0},{stdout:process.stdout,stderr:process.stderr,app:r})}}),await O(c)}async function Ee({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[{title:"Generating extension",task:async()=>{let l=ce(i?.value??"vanilla-js");await g(async u=>{let h=await S(t,i,u,s);await T(h,e,{srcFileExtension:l,name:a,handle:f(a),flavor:i?.value??"",uid:F(f(a))})}),o==="javascript"&&await le(e,l)}},{title:"Installing dependencies",task:async()=>{let l=n.packageManager;if(n.usesWorkspaces)A(i?.value)==="javascript"&&await _({packageManager:l,directory:n.directory});else{await Te(n.directory,i?.value);let u=p(e,"package.json"),h=await ke(u);await b(h,{packageManager:l,type:"prod",directory:n.directory}),await E(u)}}}];c.push({title:"Update shared type definition",task:async()=>{await ee(r)}}),await O(c)}function ce(e){return{"vanilla-js":"js",preact:"jsx",react:"jsx",typescript:"ts","typescript-react":"tsx",rust:"rs",wasm:"wasm",liquid:"liquid","config-only":""}[e]??"js"}function Fe(e){let t=[];return e==="javascript"&&t.push({name:"@shopify/shopify_function",version:`~${K}.0.0`}),t}async function le(e,t,r="*"){let n=await L(p(e,"src",r)),a=[];for(let i of n)a.push(j(i,`${i}.${t}`));await Promise.all(a)}async function Te(e,t){t==="typescript-react"&&await G(e,{"@types/react":X.reactTypes})}async function ke(e){if(!await x(e))return[];let t=await R(e);return Object.entries(t?.dependencies??{}).map(([r,n])=>({name:r,version:n}))}async function S(e,t,r,n){let a=p(r,"download");return await v(a),await n(e,a),ie(t,a)}d();function Pe(e,t=[]){let r=[...e.map(a=>({label:a.name,value:a.identifier,group:a.group||"Other",sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER})),...t.map(a=>({label:`${a.name} (limit reached)`,value:a.identifier,group:a.group||"Other",disabled:!0,sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER}))],n=(a,i)=>a.sortPriority===i.sortPriority?a.label.localeCompare(i.label):a.sortPriority-i.sortPriority;return r.sort(n)}var _e=async e=>{let t=e.extensionTemplates,r=e.templateType,n=e.extensionFlavor;if(!r){if(n&&(t=t.filter(c=>c.supportedFlavors.map(l=>l.value).includes(n))),t.length===0)throw new m("You have reached the limit for the number of extensions you can create.");r=await q({message:"Type of extension?",choices:Pe(t,e.unavailableExtensions),groupOrder:e.groupOrder})}let a=t.find(c=>c.identifier===r),i=e.name||await pe(e.directory,a.defaultName),s=e.extensionFlavor??await be(a);return{extensionTemplate:a,extensionContent:{name:i,flavor:s}}};async function pe(e,t,r=1){let n=t.includes(" ")?" ":"-",a=r<=1?t:`${t}${n}${r}`,i=p(e,f(a));return D(i)?pe(e,t,r+1):V({message:"Name your extension:",defaultValue:a})}async function be(e){if(e.supportedFlavors.length!==0)return e.supportedFlavors.length===1&&e.supportedFlavors[0]?e.supportedFlavors[0].value:U({message:"What would you like to work in?",choices:e.supportedFlavors.map(t=>({label:t.name,value:t.value})),defaultValue:"react"})}var de=_e;async function Oe(e){let{app:t,developerPlatformClient:r,remoteApp:n,specifications:a,template:i}=e,s=a.map(ye=>ye.identifier),{templates:o,groupOrder:c}=await re(r,n,s,{requestedTemplate:i}),l=await Ae(o,c,a,t,e),u=await de(l);await Ce(u,i);let h=Ie(u,t,e,r),fe=await se(h);Me(fe,e.project.packageManager)}async function Ae(e,t,r,n,a){let i=await De(a.template,n,e,r);Ne(i,a.flavor);let{validTemplates:s,templatesOverlimit:o}=Se(e,r,n);return{templateType:i?.identifier,name:a.name,extensionFlavor:a.flavor,directory:p(a.directory,"extensions"),app:n,extensionTemplates:s??[],unavailableExtensions:o??[],reset:a.reset,groupOrder:t}}function Se(e,t,r){return ae(e,a=>!ue(r,t,a)?"validTemplates":"templatesOverlimit")}function ue(e,t,r){let n=r.type,a=t.find(s=>s.identifier===n||s.externalIdentifier===n);return e.extensionsForType({identifier:n,externalIdentifier:n}).length>=(a?.registrationLimit??1)}async function Ce(e,t){let{extensionContent:r}=e;return P.addPublicMetadata(()=>({cmd_scaffold_template_flavor:r.flavor,cmd_scaffold_type:e.extensionTemplate.identifier,cmd_scaffold_used_prompts_for_type:!t}))}function Ie(e,t,r,n){return{app:t,project:r.project,cloneUrl:r.cloneUrl,extensionChoices:e.extensionContent,extensionTemplate:e.extensionTemplate,developerPlatformClient:n}}function Me(e,t){let r=je(e.extensionTemplate,e.directory,t);$(r)}function Ne(e,t){if(!t||!e)return;let r=e.supportedFlavors.map(n=>n.value);if(!r.includes(t))throw new m("Invalid template for extension type",`Expected template to be one of the following: ${r.join(", ")}.`)}function je(e,t,r){let n={headline:["Your extension was created in",{filePath:t},{char:"."}],nextSteps:[],reference:[]};return e.type!=="function"&&n.nextSteps.push(["To preview this extension along with the rest of the project, run",{command:W(r,"shopify app dev")}]),e.supportLinks[0]&&n.reference.push(["For more details, see the",{link:{label:"docs",url:e.supportLinks[0]}}]),n}async function De(e,t,r,n){if(!e)return;let a=r.find(i=>i.identifier===e);if(!a){let i=await Y(),s=r.map(c=>c.identifier),o=i?"You might need to enable some flags on your Organization or App":void 0;throw new m(`Unknown extension type: ${e}.
5
+ The following extension types are supported: ${s.join(", ")}`,o)}if(ue(t,n,a))throw new m(`Invalid extension type: ${e}`,`You have reached the limit of extension(s) of type ${a.type} per app`);return a}var me=Oe;var w=he(xe(),1);var C,y=class extends ne{async run(){let{flags:t}=await this.parse(C);await P.addPublicMetadata(()=>({cmd_scaffold_required_auth:!0,cmd_scaffold_template_custom:t["clone-url"]!==void 0,cmd_scaffold_type_owner:"@shopify/app"})),await Z(t.path);let{app:r,project:n,specifications:a,remoteApp:i,developerPlatformClient:s}=await te({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await me({directory:t.path,reset:t.reset,name:t.name,cloneUrl:t["clone-url"],template:t.template,flavor:t.flavor,app:r,project:n,specifications:a,remoteApp:i,developerPlatformClient:s}),{app:r}}};C=y;y.summary="Generate a new app Extension.";y.descriptionWithMarkdown=`Generates a new [app extension](https://shopify.dev/docs/apps/build/app-extensions). For a list of app extensions that you can generate using this command, refer to [Supported extensions](https://shopify.dev/docs/apps/build/app-extensions/list-of-app-extensions).
6
+
7
+ Each new app extension is created in a folder under \`extensions/\`. To learn more about the extensions file structure, refer to [App structure](https://shopify.dev/docs/apps/build/cli-for-apps/app-structure) and the documentation for your extension.
8
+ `;y.description=C.descriptionWithoutMarkdown();y.flags={...H,...z,template:w.Flags.string({char:"t",hidden:!1,description:"Extension template",env:"SHOPIFY_FLAG_EXTENSION_TEMPLATE"}),name:w.Flags.string({char:"n",hidden:!1,description:"name of your Extension",env:"SHOPIFY_FLAG_NAME"}),"clone-url":w.Flags.string({hidden:!0,char:"u",description:"The Git URL to clone the function extensions templates from. Defaults to: https://github.com/Shopify/function-examples",env:"SHOPIFY_FLAG_CLONE_URL"}),flavor:w.Flags.string({hidden:!1,description:"Choose a starting template for your extension, where applicable",options:["vanilla-js","react","typescript","typescript-react","wasm","rust"],env:"SHOPIFY_FLAG_FLAVOR"})};var It=y;export{It as a};