@shopify/cli 4.0.0 → 4.1.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 (234) hide show
  1. package/README.md +2 -2
  2. package/dist/analytics-5TEIW43T.js +1 -0
  3. package/dist/analytics-GG7CYCGL.js +1 -0
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chunk-MBAFWQSZ.js → chunk-2AJ5FI2K.js} +1 -1
  6. package/dist/{chunk-SRCQVUMC.js → chunk-2GK56X53.js} +1 -1
  7. package/dist/{chunk-3F6NZK7S.js → chunk-3D4JXJPS.js} +1 -1
  8. package/dist/{chunk-YI232QLS.js → chunk-3NBK56IK.js} +1 -1
  9. package/dist/{chunk-HUZUORYM.js → chunk-4DCQNGUV.js} +1 -1
  10. package/dist/{chunk-6TZAAS5H.js → chunk-4IC626OL.js} +1 -1
  11. package/dist/{chunk-SBEZBZM7.js → chunk-54CAKCYR.js} +2 -2
  12. package/dist/{chunk-VWYM4OWK.js → chunk-5UHQVR2Z.js} +1 -1
  13. package/dist/{chunk-D6JARNEH.js → chunk-5WVAHE5E.js} +1 -1
  14. package/dist/{chunk-Y5JKV2AI.js → chunk-67MH4AXG.js} +1 -1
  15. package/dist/{chunk-3DQIVE24.js → chunk-6CYMJ76C.js} +1 -1
  16. package/dist/chunk-6G6TMKXF.js +28 -0
  17. package/dist/{chunk-MQNYGGAM.js → chunk-6ITDI2SD.js} +1 -1
  18. package/dist/{chunk-WZBSLU4Q.js → chunk-6RE2SNCU.js} +1 -1
  19. package/dist/{chunk-KL5Z3T6L.js → chunk-6SF3ZETE.js} +1 -1
  20. package/dist/chunk-6WL4GA2M.js +15 -0
  21. package/dist/{chunk-DU4WR4OP.js → chunk-76R52ODR.js} +1 -1
  22. package/dist/{chunk-DJQVNH7P.js → chunk-7ESSIN27.js} +1 -1
  23. package/dist/{chunk-UGDBJTLP.js → chunk-7NH7CHVI.js} +1 -1
  24. package/dist/{chunk-ELYP4KFP.js → chunk-7QIOUDCX.js} +1 -1
  25. package/dist/{chunk-GD7FWXJ5.js → chunk-7ZT57XT7.js} +1 -1
  26. package/dist/{chunk-RF2DPBA6.js → chunk-AGNMOFJS.js} +1 -1
  27. package/dist/{chunk-WXVZJJOR.js → chunk-BS3BKORT.js} +1 -1
  28. package/dist/{chunk-K5YV6UVF.js → chunk-C2IK2HY3.js} +1 -1
  29. package/dist/{chunk-22PCRFG4.js → chunk-C7BTJ32Z.js} +1 -1
  30. package/dist/{chunk-RFG5RMPL.js → chunk-CBXSPL4W.js} +1 -1
  31. package/dist/{chunk-B2IVY4V5.js → chunk-CEIQFLCN.js} +1 -1
  32. package/dist/{chunk-XBXMPFXM.js → chunk-DCPBRWVC.js} +1 -1
  33. package/dist/{chunk-26D72ZNV.js → chunk-DN2IE3VY.js} +1 -1
  34. package/dist/{chunk-Q7ING5F5.js → chunk-DRFGABEB.js} +1 -1
  35. package/dist/{chunk-DJONKJSZ.js → chunk-E3EMHAJB.js} +1 -1
  36. package/dist/{chunk-TQYMC7TH.js → chunk-EKXY5COY.js} +1 -1
  37. package/dist/{chunk-4G7J6HIV.js → chunk-EQU4MUQJ.js} +1 -1
  38. package/dist/chunk-F2QU6WWX.js +1 -0
  39. package/dist/{chunk-AIV5RI3X.js → chunk-FKMC5OFF.js} +1 -1
  40. package/dist/{chunk-XLELNRFF.js → chunk-FQWB2F75.js} +1 -1
  41. package/dist/{chunk-JHPRFW5B.js → chunk-FYFNUDOC.js} +1 -1
  42. package/dist/chunk-G4BPGWJC.js +1 -0
  43. package/dist/{chunk-KNVM7N3U.js → chunk-GVQIPEZT.js} +1 -1
  44. package/dist/{chunk-66RJ5T7A.js → chunk-GZS44BUW.js} +61 -61
  45. package/dist/{chunk-J3KVONB3.js → chunk-HIBX234C.js} +1 -1
  46. package/dist/{chunk-OHY4ZL3U.js → chunk-HRUGYZZ4.js} +1 -1
  47. package/dist/{chunk-ZV6NCNI4.js → chunk-HUIJMGVJ.js} +1 -1
  48. package/dist/{chunk-ALKTLKQ6.js → chunk-IZ3C5J7G.js} +1 -1
  49. package/dist/{chunk-RVNMVBPM.js → chunk-JAO53IH2.js} +1 -1
  50. package/dist/chunk-JCL2RRU6.js +1 -0
  51. package/dist/{chunk-74HYYXXE.js → chunk-JQJBBXMX.js} +1 -1
  52. package/dist/{chunk-HSK7YMRE.js → chunk-JXW374CL.js} +1 -1
  53. package/dist/{chunk-KWJ562F2.js → chunk-K6CTUBFC.js} +1 -1
  54. package/dist/{chunk-A74GETYC.js → chunk-KHSYW7I4.js} +1 -1
  55. package/dist/{chunk-LX3ZOW52.js → chunk-KHTV6PBV.js} +1 -1
  56. package/dist/{chunk-TFSBQ4RY.js → chunk-KKTW6ZCA.js} +1 -1
  57. package/dist/{chunk-JGXWQULI.js → chunk-KN3WTTHZ.js} +1 -1
  58. package/dist/{chunk-R466TU3N.js → chunk-KR6QDE7D.js} +1 -1
  59. package/dist/{chunk-GFJ7UV74.js → chunk-KZOBF55B.js} +1 -1
  60. package/dist/{chunk-LAZJ47DZ.js → chunk-L2MGAEV3.js} +2 -2
  61. package/dist/{chunk-JVIKCGDY.js → chunk-M2D7USAX.js} +1 -1
  62. package/dist/{chunk-INEU4XKS.js → chunk-M2ZHFKPN.js} +1 -1
  63. package/dist/{chunk-LXFJDCNG.js → chunk-M3RYUB22.js} +1 -1
  64. package/dist/{chunk-JPGO36XP.js → chunk-M56NDIMD.js} +1 -1
  65. package/dist/{chunk-GNPS5SBU.js → chunk-MCVRONUY.js} +1 -1
  66. package/dist/{chunk-4HHXSMD7.js → chunk-MHWV5RQV.js} +1 -1
  67. package/dist/{chunk-LW7U753G.js → chunk-MWGBTOO3.js} +1 -1
  68. package/dist/{chunk-JLBH7RCF.js → chunk-MWY3A7O3.js} +1 -1
  69. package/dist/{chunk-GFEAKSGV.js → chunk-N5PQPIBF.js} +40 -40
  70. package/dist/{chunk-2APPXD5Z.js → chunk-NMBBTTIH.js} +1 -1
  71. package/dist/{chunk-VY6SNDKW.js → chunk-NPEVESCV.js} +1 -1
  72. package/dist/{chunk-V2CNCPIE.js → chunk-OBEWZXOQ.js} +1 -1
  73. package/dist/{chunk-6BMMB2UO.js → chunk-OTY24J2W.js} +1 -1
  74. package/dist/{chunk-2VQJQ36C.js → chunk-OY3PNHPZ.js} +1 -1
  75. package/dist/{chunk-VS3T5YOG.js → chunk-PAP22IQO.js} +2 -2
  76. package/dist/{chunk-LALIKZPS.js → chunk-PYVAWAUO.js} +1 -1
  77. package/dist/{chunk-LNHLDRC5.js → chunk-Q33IBIVJ.js} +1 -1
  78. package/dist/chunk-Q4T2T2QE.js +15 -0
  79. package/dist/{chunk-NRAFVIU3.js → chunk-QA23HIH4.js} +1 -1
  80. package/dist/{chunk-52GC6XUT.js → chunk-QBSKKQBN.js} +1 -1
  81. package/dist/{chunk-KGXQS7LS.js → chunk-S6EJHWJL.js} +1 -1
  82. package/dist/{chunk-P5VVOLGV.js → chunk-SIMFNECG.js} +1 -1
  83. package/dist/{chunk-YMWHHINU.js → chunk-SXTMSGUE.js} +1 -1
  84. package/dist/{chunk-IOLVEXM6.js → chunk-T542UQBY.js} +1 -1
  85. package/dist/{chunk-QRRNOVJ3.js → chunk-TQ6HYDVC.js} +1 -1
  86. package/dist/chunk-TYZXGSHO.js +3 -0
  87. package/dist/{chunk-IIIVWD4R.js → chunk-UHJYPEY2.js} +1 -1
  88. package/dist/{chunk-KBQ4LGFB.js → chunk-UJVH7FZS.js} +1 -1
  89. package/dist/{chunk-6B53BWJW.js → chunk-UJXUSRQK.js} +1 -1
  90. package/dist/{chunk-OXPWCC7I.js → chunk-ULFWK45W.js} +1 -1
  91. package/dist/chunk-ULQG3XQS.js +1 -0
  92. package/dist/{chunk-RM5SJJN6.js → chunk-URZPVSJZ.js} +1 -1
  93. package/dist/{chunk-UGXYQ23Y.js → chunk-UXVZ2P63.js} +1 -1
  94. package/dist/{chunk-72F3YBNA.js → chunk-UYXEA3Y6.js} +1 -1
  95. package/dist/{chunk-OUOYKNMY.js → chunk-VICYNG2W.js} +1 -1
  96. package/dist/{chunk-IASVAERO.js → chunk-WSDN25F5.js} +1 -1
  97. package/dist/{chunk-DFMQWJQ3.js → chunk-XITQULK4.js} +1 -1
  98. package/dist/{chunk-B2EHO7ZC.js → chunk-XONFGLJQ.js} +4 -4
  99. package/dist/{chunk-YZDDTYTU.js → chunk-XOTA6JTZ.js} +3 -3
  100. package/dist/{chunk-323UTVMM.js → chunk-XR6GMMEU.js} +1 -1
  101. package/dist/{chunk-XNO6DZYP.js → chunk-XULPJ6UG.js} +1 -1
  102. package/dist/{chunk-3LVGAQB4.js → chunk-XXVEHDVO.js} +1 -1
  103. package/dist/chunk-Y7JGYGV7.js +1 -0
  104. package/dist/chunk-YTNDFQJT.js +3 -0
  105. package/dist/{chunk-N5YIPQ6J.js → chunk-ZBRRJDGW.js} +1 -1
  106. package/dist/{chunk-ELVFJ7BR.js → chunk-ZGK3LGCH.js} +1 -1
  107. package/dist/{chunk-GOJ2QHSR.js → chunk-ZSBA6VIC.js} +1 -1
  108. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  109. package/dist/cli/commands/app/build.js +1 -1
  110. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  111. package/dist/cli/commands/app/bulk/execute.js +1 -1
  112. package/dist/cli/commands/app/bulk/status.js +1 -1
  113. package/dist/cli/commands/app/config/link.js +1 -1
  114. package/dist/cli/commands/app/config/pull.js +1 -1
  115. package/dist/cli/commands/app/config/use.js +1 -1
  116. package/dist/cli/commands/app/config/validate.js +1 -1
  117. package/dist/cli/commands/app/demo/watcher.js +1 -1
  118. package/dist/cli/commands/app/deploy.js +1 -1
  119. package/dist/cli/commands/app/dev/clean.js +1 -1
  120. package/dist/cli/commands/app/dev.js +1 -1
  121. package/dist/cli/commands/app/env/pull.js +1 -1
  122. package/dist/cli/commands/app/env/show.js +1 -1
  123. package/dist/cli/commands/app/execute.js +1 -1
  124. package/dist/cli/commands/app/function/build.js +1 -1
  125. package/dist/cli/commands/app/function/info.js +1 -1
  126. package/dist/cli/commands/app/function/replay.js +1 -1
  127. package/dist/cli/commands/app/function/run.js +1 -1
  128. package/dist/cli/commands/app/function/schema.js +1 -1
  129. package/dist/cli/commands/app/function/typegen.js +1 -1
  130. package/dist/cli/commands/app/generate/extension.js +1 -1
  131. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  132. package/dist/cli/commands/app/import-extensions.js +1 -1
  133. package/dist/cli/commands/app/info.js +1 -1
  134. package/dist/cli/commands/app/init.js +9 -9
  135. package/dist/cli/commands/app/logs.js +1 -1
  136. package/dist/cli/commands/app/release.js +1 -1
  137. package/dist/cli/commands/app/versions/list.js +1 -1
  138. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  139. package/dist/cli/commands/auth/login.js +1 -1
  140. package/dist/cli/commands/auth/logout.js +1 -1
  141. package/dist/cli/commands/cache/clear.js +1 -1
  142. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  143. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  144. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  145. package/dist/cli/commands/debug/command-flags.js +1 -1
  146. package/dist/cli/commands/docs/generate.d.ts +0 -8
  147. package/dist/cli/commands/docs/generate.js +1 -1
  148. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  149. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  150. package/dist/cli/commands/help.js +1 -1
  151. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  152. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  153. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  154. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  155. package/dist/cli/commands/notifications/generate.js +1 -1
  156. package/dist/cli/commands/notifications/list.js +1 -1
  157. package/dist/cli/commands/organization/list.js +1 -1
  158. package/dist/cli/commands/search.js +1 -1
  159. package/dist/cli/commands/theme/check.js +1 -1
  160. package/dist/cli/commands/theme/console.js +1 -1
  161. package/dist/cli/commands/theme/delete.js +1 -1
  162. package/dist/cli/commands/theme/dev.js +1 -1
  163. package/dist/cli/commands/theme/duplicate.js +1 -1
  164. package/dist/cli/commands/theme/info.js +1 -1
  165. package/dist/cli/commands/theme/init.js +1 -1
  166. package/dist/cli/commands/theme/language-server.js +1 -1
  167. package/dist/cli/commands/theme/list.js +1 -1
  168. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  169. package/dist/cli/commands/theme/open.js +1 -1
  170. package/dist/cli/commands/theme/package.js +1 -1
  171. package/dist/cli/commands/theme/preview.js +1 -1
  172. package/dist/cli/commands/theme/profile.js +1 -1
  173. package/dist/cli/commands/theme/publish.js +1 -1
  174. package/dist/cli/commands/theme/pull.js +1 -1
  175. package/dist/cli/commands/theme/push.js +1 -1
  176. package/dist/cli/commands/theme/rename.js +1 -1
  177. package/dist/cli/commands/theme/share.js +1 -1
  178. package/dist/cli/commands/upgrade.js +1 -1
  179. package/dist/cli/commands/version.js +1 -1
  180. package/dist/command-registry.js +1 -1
  181. package/dist/{conf-store-U5ZITKJN.js → conf-store-BMZFATRQ.js} +1 -1
  182. package/dist/{deprecations-TU5UQJVV.js → deprecations-7LHRXPXU.js} +1 -1
  183. package/dist/dist-LDXPBYSZ.js +1 -0
  184. package/dist/dist-V63ILV6L.js +1 -0
  185. package/dist/{environments-Z5PR7DSI.js → environments-5X7S2O5U.js} +1 -1
  186. package/dist/{error-IJGNYKZ3.js → error-ZRLNNGIQ.js} +1 -1
  187. package/dist/error-handler-PRZFHPRG.js +1 -0
  188. package/dist/{fs-5BDEA2KD.js → fs-H7V6IRSH.js} +1 -1
  189. package/dist/hooks/app-init.js +1 -1
  190. package/dist/hooks/did-you-mean.js +1 -1
  191. package/dist/hooks/hydrogen-init.js +1 -1
  192. package/dist/hooks/postrun.js +1 -1
  193. package/dist/hooks/prerun.js +1 -1
  194. package/dist/hooks/public-metadata.js +1 -1
  195. package/dist/hooks/sensitive-metadata.js +1 -1
  196. package/dist/hooks/tunnel-provider.js +1 -1
  197. package/dist/hooks/tunnel-start.js +1 -1
  198. package/dist/index.js +165 -165
  199. package/dist/is-global-IOWPCT2U.js +1 -0
  200. package/dist/local-MTKXSZ3I.js +1 -0
  201. package/dist/{local-storage-JLXBZVWO.js → local-storage-CYEL4MXF.js} +1 -1
  202. package/dist/{metadata-UDMOTRS7.js → metadata-NOVBMKLM.js} +1 -1
  203. package/dist/{node-package-manager-HAFRYGUM.js → node-package-manager-N5CVNHA3.js} +1 -1
  204. package/dist/notifications-system-YX2GPLDW.js +1 -0
  205. package/dist/{output-YGMHXEIS.js → output-Q46DT46U.js} +1 -1
  206. package/dist/{system-KLXD4FXF.js → system-E6Q3OBX3.js} +1 -1
  207. package/dist/tsconfig.tsbuildinfo +1 -1
  208. package/dist/{ui-GHG3UGB3.js → ui-WRS2IDPP.js} +1 -1
  209. package/dist/upgrade-TKUN2M5P.js +1 -0
  210. package/dist/{version-D5PJZIRW.js → version-5W5RVAPA.js} +1 -1
  211. package/dist/version-BQJ3FPXD.js +1 -0
  212. package/dist/{workerd-L2EJKIAQ.js → workerd-GOK6GWEX.js} +1 -1
  213. package/oclif.manifest.json +1 -1
  214. package/package.json +7 -7
  215. package/dist/analytics-6IHHYAV6.js +0 -1
  216. package/dist/analytics-KKVP5DT3.js +0 -1
  217. package/dist/chunk-2I4PRX2I.js +0 -1
  218. package/dist/chunk-7BGM2GAH.js +0 -1
  219. package/dist/chunk-BDVAE5MS.js +0 -28
  220. package/dist/chunk-D3TSJA5S.js +0 -1
  221. package/dist/chunk-N7RBSKYT.js +0 -1
  222. package/dist/chunk-ODNGDO4H.js +0 -50
  223. package/dist/chunk-P7R7FBY2.js +0 -3
  224. package/dist/chunk-SGQ6D3LU.js +0 -15
  225. package/dist/chunk-YC6G4MHD.js +0 -3
  226. package/dist/chunk-ZVJVDCIM.js +0 -1
  227. package/dist/dist-2Z5TND4U.js +0 -1
  228. package/dist/dist-GYHFDHKP.js +0 -1
  229. package/dist/error-handler-WSCGNS2P.js +0 -1
  230. package/dist/is-global-V4ZRHQG2.js +0 -1
  231. package/dist/local-6QPX4GCJ.js +0 -1
  232. package/dist/notifications-system-MP7WDOCS.js +0 -1
  233. package/dist/upgrade-OPZGPM5J.js +0 -1
  234. package/dist/version-KRQBMYCH.js +0 -1
@@ -1,4 +1,4 @@
1
- import{b as $}from"./chunk-MOA33ZFO.js";import{a as F}from"./chunk-JUVAGMIH.js";import{R as _}from"./chunk-BDVAE5MS.js";import{d as T}from"./chunk-IASVAERO.js";import{d}from"./chunk-JPGO36XP.js";import{r as I}from"./chunk-LDGAHMS7.js";import{Gb as h,Ib as g,Mb as P,aa as E}from"./chunk-GFEAKSGV.js";import{c as O}from"./chunk-YC6G4MHD.js";import{a as b}from"./chunk-N7RBSKYT.js";import{e as S,g as w}from"./chunk-VPRTJUIN.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-WSCGNS2P.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-WSCGNS2P.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-MP7WDOCS.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-GHG3UGB3.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
1
+ import{b as $}from"./chunk-MOA33ZFO.js";import{a as F}from"./chunk-JUVAGMIH.js";import{R as _}from"./chunk-6G6TMKXF.js";import{d as T}from"./chunk-WSDN25F5.js";import{d}from"./chunk-M56NDIMD.js";import{r as I}from"./chunk-LDGAHMS7.js";import{Gb as h,Ib as g,Mb as P,aa as E}from"./chunk-N5PQPIBF.js";import{c as O}from"./chunk-YTNDFQJT.js";import{a as b}from"./chunk-ULQG3XQS.js";import{e as S,g as w}from"./chunk-VPRTJUIN.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-PRZFHPRG.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-PRZFHPRG.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-YX2GPLDW.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-WRS2IDPP.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
2
2
  SHOPIFY_CLI_TIMESTAMP_START
3
3
  { "timestamp": ${Date.now()} }
4
4
  SHOPIFY_CLI_TIMESTAMP_END
@@ -6,6 +6,6 @@ import{b as $}from"./chunk-MOA33ZFO.js";import{a as F}from"./chunk-JUVAGMIH.js";
6
6
 
7
7
  ${h.cyan(e)}
8
8
 
9
- This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-Z5PR7DSI.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-Z5PR7DSI.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-GHG3UGB3.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
10
- `),{renderWarning:o}=await import("./ui-GHG3UGB3.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
9
+ This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-5X7S2O5U.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-5X7S2O5U.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-WRS2IDPP.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
10
+ `),{renderWarning:o}=await import("./ui-WRS2IDPP.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
11
11
  ${i}`]})}let t=n.filter(i=>!r.includes(i.name));a.plugins=new Map(t.map(i=>[i.name,i]))}var q=p;export{N as a,q as b};
@@ -1 +1 @@
1
- import{r as C}from"./chunk-LDGAHMS7.js";import{a as i,c as u}from"./chunk-N7RBSKYT.js";import{e as h,g as s}from"./chunk-VPRTJUIN.js";s();s();import{fileURLToPath as L}from"node:url";async function f(e){let{isDevelopment:o}=await import("./local-6QPX4GCJ.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-DVFFWCBV.js"),t=await import("./lib-C3VO2BQW.js"),{run:a,flush:p,Errors:d,settings:m}=t.default??t;o()&&(m.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await a(e.argv,r),await p()}catch(r){let{errorHandler:l}=await import("./error-handler-WSCGNS2P.js");return await l(r),d.handle(r)}}var c=h(C());async function y(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<18){let{renderError:a}=await import("./ui-GHG3UGB3.js");a({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function I(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function O(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||i(o.NO_COLOR)||i(o.SHOPIFY_FLAG_NO_COLOR)||i(o[u.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function _(e,o=f,n=process.argv,t=process.env,a=process.versions){return I(e,n,t),e.runInCreateMode&&await b(e,n),O(n,t),await y(a),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function b(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-HAFRYGUM.js"),{moduleDirectory:t}=await import("./path-CWUNINMX.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(l=>l.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var E={"no-color":c.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:c.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output.",env:"SHOPIFY_FLAG_VERBOSE"})},F={json:c.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:u.json})};async function S(){let{cacheClear:e}=await import("./conf-store-U5ZITKJN.js");e()}export{_ as a,E as b,F as c,S as d};
1
+ import{r as C}from"./chunk-LDGAHMS7.js";import{a as i,c as u}from"./chunk-ULQG3XQS.js";import{e as h,g as s}from"./chunk-VPRTJUIN.js";s();s();import{fileURLToPath as L}from"node:url";async function f(e){let{isDevelopment:o}=await import("./local-MTKXSZ3I.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-DVFFWCBV.js"),t=await import("./lib-C3VO2BQW.js"),{run:a,flush:p,Errors:d,settings:m}=t.default??t;o()&&(m.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await a(e.argv,r),await p()}catch(r){let{errorHandler:l}=await import("./error-handler-PRZFHPRG.js");return await l(r),d.handle(r)}}var c=h(C());async function y(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<18){let{renderError:a}=await import("./ui-WRS2IDPP.js");a({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function I(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function O(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||i(o.NO_COLOR)||i(o.SHOPIFY_FLAG_NO_COLOR)||i(o[u.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function _(e,o=f,n=process.argv,t=process.env,a=process.versions){return I(e,n,t),e.runInCreateMode&&await b(e,n),O(n,t),await y(a),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function b(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-N5CVNHA3.js"),{moduleDirectory:t}=await import("./path-CWUNINMX.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(l=>l.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var E={"no-color":c.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:c.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output.",env:"SHOPIFY_FLAG_VERBOSE"})},F={json:c.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:u.json})};async function S(){let{cacheClear:e}=await import("./conf-store-BMZFATRQ.js");e()}export{_ as a,E as b,F as c,S as d};
@@ -1 +1 @@
1
- import{c as u,d as t,l as h}from"./chunk-JPGO36XP.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var o=e=>new a(e),s=e=>new n(e),a=class{constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},n=class{constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof u)throw this.error;if(this.error instanceof h.ExtendableError||this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
1
+ import{c as u,d as t,l as h}from"./chunk-M56NDIMD.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var o=e=>new a(e),s=e=>new n(e),a=class{constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},n=class{constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof u)throw this.error;if(this.error instanceof h.ExtendableError||this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
@@ -1 +1 @@
1
- import{a}from"./chunk-NRAFVIU3.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
1
+ import{a}from"./chunk-QA23HIH4.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
@@ -0,0 +1 @@
1
+ import{b as r}from"./chunk-XR6GMMEU.js";import{tb as n}from"./chunk-N5PQPIBF.js";import{g as e}from"./chunk-VPRTJUIN.js";e();function s(o){o.verbose&&(process.env[r.verbose.env]="true"),o.noColor&&(n.level=0,process.env.FORCE_COLOR="0")}export{s as a};
@@ -0,0 +1,3 @@
1
+ import{a as l,c as a,d as B,f as C}from"./chunk-ULQG3XQS.js";import{a as I,c as d,e as Q,g as u}from"./chunk-VPRTJUIN.js";var b=d((he,R)=>{"use strict";u();var g={},X=process.nextTick||global.setImmediate||global.setTimeout;g.nextTick=function(e){X(e)};g.parallel=function(e,r){var n=[],t=[],i=0,o=0;function c(s,f,m){f?t[s]=f:n[s]=m,o+=1,o>=i&&r((t.length>0,t),n)}Object.keys(e).forEach(function(s){i+=1;var f=e[s];g.nextTick(function(){f(c.bind(null,s),1)})})};g.promisify=function(e){return new Promise(function(r,n){e(function(t,i){if(t){!t instanceof Error&&(t=new Error(t)),n(t);return}r(i)})})};g.iterate=function(e,r,n){var t=[],i=function(){if(e.length===0){g.nextTick(n.bind(null,t));return}var o=e.shift();if(typeof o=="function"){o(function(c,s){if(c)t.push(c);else for(;s.length>0;)e.unshift(s.pop());i()});return}r(o,function(c,s){c?(t.push(c),i()):g.nextTick(n.bind(null,null,s))})};g.nextTick(i)};R.exports=g});var L=d((_e,y)=>{u();var Z=I("child_process").execFile,ee=/[-\/\\^$*+?.()|[\]{}]/g;function re(e){return e.replace(ee,"\\$&")}y.exports=function(e,r){Z("ipconfig",["/all"],function(n,t){if(n){r(n,null);return}var i=new RegExp(re(e)).exec(t);if(!i){r("did not find interface in `ipconfig /all`",null);return}if(t=t.substring(i.index+e.length),i=/[A-Fa-f0-9]{2}(\-[A-Fa-f0-9]{2}){5}/.exec(t),!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase().replace(/\-/g,":"))})}});var A=d((ve,w)=>{u();var te=I("child_process").execFile;w.exports=function(e,r){te("/bin/cat",["/sys/class/net/"+e+"/address"],function(n,t){if(n){r(n,null);return}r(null,t.trim().toLowerCase())})}});var U=d((Ce,M)=>{u();var ne=I("child_process").execFile;M.exports=function(e,r){ne("ifconfig",[e],function(n,t){if(n){r(n,null);return}var i=/[a-f0-9]{2}(:[a-f0-9]{2}){5}/.exec(t.toLowerCase());if(!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase())})}});var S=d((be,O)=>{u();var ie=I("os"),h,N="^[a-z0-9]+$";switch(ie.platform()){case"win32":N="^[a-z0-9 -]+$",h=L();break;case"linux":h=A();break;case"darwin":case"sunos":case"freebsd":h=U();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),h=U();break}var D=new RegExp(N,"i");O.exports=function(e,r){if(!D.test(e)){r(new Error(["invalid iface: '",e,"' (must conform to reg exp /",D,"/)"].join("")),null);return}h(e,r)}});var q=d((Le,k)=>{"use strict";u();var oe=I("child_process").execFile;k.exports=function(e){oe("wmic",["nic","get","NetConnectionID"],function(r,n){if(r){e(r,null);return}for(var t=n.trim().replace(/\s{2,}/g,`
2
+ `).split(`
3
+ `).slice(1),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var K=d((Ae,F)=>{u();var se=I("child_process").execFile;F.exports=function(e){se("/bin/ls",["/sys/class/net"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t\n]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var v=d((De,G)=>{"use strict";u();var ue=I("child_process").execFile;G.exports=function(e){ue("/sbin/ifconfig",["-l"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var P=d((Oe,H)=>{u();var ae=I("os"),T;switch(ae.platform()){case"win32":T=q();break;case"linux":T=K();break;case"darwin":case"sunos":case"freebsd":T=v();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),T=v();break}H.exports=T});var j=d((ke,$)=>{u();var ce=I("os");$.exports=function(){var e={};try{var r=ce.networkInterfaces()}catch(n){if(n.syscall==="uv_interface_addresses")return e;throw n}return Object.keys(r).forEach(function(n){var t={},i=!1;r[n].forEach(function(o){if(!o.internal){var c=typeof o.family=="number"?"ipv"+o.family:(o.family||"").toLowerCase();t[c]=o.address,i=!0,o.mac&&o.mac!=="00:00:00:00:00:00"&&(t.mac=o.mac)}}),i&&(e[n]=t)}),e}});var V=d((Fe,z)=>{"use strict";u();var E=b(),p={};p.getMacAddress=S();p.getAllInterfaces=P();p.networkInterfaces=j();var fe=new RegExp("^((en|eth)[0-9]+|ethernet)$","i"),le=new RegExp("^(vboxnet[0-9]+)$","i");p.one=function(){var e=null,r=null;if(arguments.length>=1&&(typeof arguments[0]=="function"?r=arguments[0]:typeof arguments[0]=="string"&&(e=arguments[0]),arguments.length>=2&&typeof arguments[1]=="function"&&(r=arguments[1])),!r)return E.promisify(function(s){p.one(e,s)});if(e){p.getMacAddress(e,r);return}var n=p.networkInterfaces(),t={},i=[],o=[];if(Object.keys(n).forEach(function(s){o.push(s);var f=0,m=n[s];typeof m.mac=="string"&&m.mac!=="00:00:00:00:00:00"&&(t[s]=m.mac,m.ipv4&&(f+=1),m.ipv6&&(f+=1),fe.test(s)&&(f+=2),le.test(s)&&(f-=3),i.push({name:s,score:f,mac:m.mac}))}),i.length>0){i.sort(function(s,f){var m=f.score-s.score;return m!==0?m:s.name<f.name?-1:s.name>f.name?1:0}),E.nextTick(r.bind(null,null,i[0].mac));return}o.push(p.getAllInterfaces);var c=function(s,f){if(t[s]){f(null,t[s]);return}p.getMacAddress(s,f)};E.iterate(o,c,r)};p.all=function(e){if(typeof e!="function")return E.promisify(p.all);var r=p.networkInterfaces(),n={};return Object.keys(r).forEach(function(t){r[t].mac||(n[t]=p.getMacAddress.bind(null,t))}),Object.keys(n).length===0?(typeof e=="function"&&E.nextTick(e.bind(null,null,r)),r):(E.parallel(n,function(t,i){Object.keys(i).forEach(function(o){r[o].mac=i[o]}),typeof e=="function"&&e(null,r)}),null)};z.exports=p});u();u();function x(e){return!(e===void 0||e.trim()==="")}function _(e,r){switch(e){case"bitbucket":return{branch:r.BITBUCKET_BRANCH,build:r.BITBUCKET_BUILD_NUMBER,commitSha:r.BITBUCKET_COMMIT,run:r.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${r.BITBUCKET_WORKSPACE}/${r.BITBUCKET_REPO_SLUG}/pipelines/results/${r.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:r.CIRCLE_USERNAME,branch:r.CIRCLE_BRANCH,build:r.CIRCLE_BUILD_NUM,commitSha:r.CIRCLE_SHA1,run:r.CIRCLE_WORKFLOW_ID,url:r.CIRCLE_BUILD_URL};case"github":return{actor:r.GITHUB_ACTOR,attempt:r.GITHUB_RUN_ATTEMPT,branch:r.GITHUB_REF_NAME,build:r.GITHUB_RUN_ID,commitSha:r.GITHUB_SHA,run:r.GITHUB_RUN_ID,runNumber:r.GITHUB_RUN_NUMBER,url:`${r.GITHUB_SERVER_URL}/${r.GITHUB_REPOSITORY}/actions/runs/${r.GITHUB_RUN_ID}`};case"gitlab":return{actor:r.GITLAB_USER_LOGIN,branch:r.CI_COMMIT_REF_NAME,build:r.CI_PIPELINE_ID,commitSha:r.CI_COMMIT_SHA,commitMessage:r.CI_COMMIT_MESSAGE,run:r.CI_RUNNER_ID,url:r.CI_PIPELINE_URL};case"buildkite":return{branch:r.BUILDKITE_BRANCH,build:r.BUILDKITE_BUILD_NUMBER,commitSha:r.BUILDKITE_COMMIT,commitMessage:r.BUILDKITE_MESSAGE,run:r.BUILDKITE_BUILD_NUMBER,url:r.BUILDKITE_BUILD_URL};default:return{}}}var J=Q(V(),1);import{homedir as pe}from"os";async function me(e){let{fileExists:r}=await import("./fs-H7V6IRSH.js");return r(e)}async function de(e,r){let{exec:n}=await import("./system-E6Q3OBX3.js");await n(e,r)}function je(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function ze(){return pe()}var W,Y;function Ie(e=process.env){return e[a.env]==="development"}function Ve(e=process.env){return e===process.env?W??(W=l(e[a.verbose])||process.argv.includes("--verbose")):l(e[a.verbose])||process.argv.includes("--verbose")}async function We(e=process.env){return Object.prototype.hasOwnProperty.call(e,a.runAsUser)?!l(e[a.runAsUser]):await me(C.executables.dev)}function Ye(e=process.env){return e===process.env?Y??(Y=l(e[a.unitTest])):l(e[a.unitTest])}function Je(e=process.env){return l(e[a.noAnalytics])||l(e[a.optOutInstrumentation])||Ie(e)}function Qe(e=process.env){return l(e[a.alwaysLogAnalytics])}function Xe(e=process.env){return l(e[a.alwaysLogMetrics])}function Ze(e=process.env){return l(e[a.firstPartyDev])}function er(e=process.env){return l(e[a.doctor])}function rr(e=process.env){return e[a.gitpod]}function tr(e=process.env){return e[a.codespaceName]}function nr(e=process.env){return e[a.codespacePortForwardingDomain]}function ir(e=process.env){return xe(e).platform!=="localhost"}function or(e=process.env){return e[a.themeToken]}function xe(e=process.env){return x(e[a.codespaces])?{platform:"codespaces",editor:!0}:x(e[a.gitpod])?{platform:"gitpod",editor:!0}:x(e[a.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function sr(){try{return await de("git",["--version"]),!0}catch{return!1}}function ur(e=process.env){if(l(e.CI)){let r="unknown";return x(e.BITBUCKET_BUILD_NUMBER)?r="bitbucket":l(e.CIRCLECI)?r="circleci":x(e.GITHUB_ACTION)?r="github":l(e.GITLAB_CI)?r="gitlab":x(e.BUILDKITE)&&(r="buildkite"),{isCI:!0,name:r,metadata:_(r,e)}}else if(l(e.TF_BUILD))return{isCI:!0,name:"azure",metadata:_("azure",e)};return{isCI:!1}}function ar(){return J.default.one()}function cr(e=process.env){let r=e[a.themeKitAccessDomain];return x(r)?r:B}function fr(e=process.env){let r=e[a.otelURL];return x(r)?r:"https://otlp-http-production-cli.shopifysvc.com"}export{je as a,ze as b,Ie as c,Ve as d,We as e,Ye as f,Je as g,Qe as h,Xe as i,Ze as j,er as k,rr as l,tr as m,nr as n,ir as o,or as p,xe as q,sr as r,ur as s,ar as t,cr as u,fr as v};
@@ -1 +1 @@
1
- import{o as t}from"./chunk-LAZJ47DZ.js";import{D as n}from"./chunk-BDVAE5MS.js";import{g as a}from"./chunk-VPRTJUIN.js";a();async function c(e){await n([{title:"Installing dependencies",task:async()=>{await t({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
1
+ import{o as t}from"./chunk-L2MGAEV3.js";import{D as n}from"./chunk-6G6TMKXF.js";import{g as a}from"./chunk-VPRTJUIN.js";a();async function c(e){await n([{title:"Installing dependencies",task:async()=>{await t({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
@@ -1,4 +1,4 @@
1
- import{c as w}from"./chunk-52GC6XUT.js";import{c as F,e as x}from"./chunk-XLELNRFF.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-LAZJ47DZ.js";import{o as $,q as m}from"./chunk-GOJ2QHSR.js";import{a as c}from"./chunk-7BGM2GAH.js";import{O as V,S as y,v as R}from"./chunk-BDVAE5MS.js";import{Cb as U,Db as D,Gb as u,Ib as p,Nb as d,Qb as l,Rb as E,zb as A}from"./chunk-GFEAKSGV.js";import{c as _}from"./chunk-YC6G4MHD.js";import{p as C,q as b,r as I}from"./chunk-IU2ZQ6TE.js";import{g as v}from"./chunk-VPRTJUIN.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
1
+ import{c as w}from"./chunk-QBSKKQBN.js";import{c as F,e as x}from"./chunk-FQWB2F75.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-L2MGAEV3.js";import{o as $,q as m}from"./chunk-ZSBA6VIC.js";import{a as c}from"./chunk-F2QU6WWX.js";import{O as V,S as y,v as R}from"./chunk-6G6TMKXF.js";import{Cb as U,Db as D,Gb as u,Ib as p,Nb as d,Qb as l,Rb as E,zb as A}from"./chunk-N5PQPIBF.js";import{c as _}from"./chunk-YTNDFQJT.js";import{p as C,q as b,r as I}from"./chunk-IU2ZQ6TE.js";import{g as v}from"./chunk-VPRTJUIN.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
2
2
  Now upgrading by running: ${u.genericShellCommand(a)}...`),await V(r,i,{stdio:"inherit"}),R({headline:"Shopify CLI upgraded.",body:s?`You're now on version ${s}.`:"You're now on the latest version."})}else if(o)await Y(o,c);else throw new Error("Could not determine the local project directory")}function ie(){let e=c,n=f("@shopify/cli",e);if(!n){l("Auto-upgrade: No newer version available.");return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")return l("Auto-upgrade: Forcing auto-upgrade because of SHOPIFY_CLI_FORCE_AUTO_UPGRADE."),n;if(!m()){l("Auto-upgrade: Skipping because auto-upgrade is not enabled.");return}if(y()){l("Auto-upgrade: Skipping auto-upgrade in CI.");return}if(w(e)){l("Auto-upgrade: Skipping auto-upgrade for pre-release version.");return}return n}async function se(){try{let{notifications:e}=await F();return x(e,"",["autoupgrade"]).some(o=>o.type==="error")}catch{return!1}}async function ce(){if(y()||w(c)||m())return;let e=f("@shopify/cli",c);e&&await $("warn-on-available-upgrade",{days:1},async()=>{E(G(e))})}function G(e,n=!1){let o=M(),t=o?p`💡 Version ${e} available! Run ${u.genericShellCommand(o)}`.value:p`💡 Version ${e} available!`.value;if(n){let a=`https://github.com/Shopify/cli/releases/tag/${e}`,r=p`⚠️ This is a major version — review breaking changes before upgrading:\n ${u.link(a,a)}`.value;return`${t}
3
3
 
4
4
  ${r}`}return t}async function Y(e,n){let o=(await h(e)).content,t=o.dependencies??{},a=o.devDependencies??{},i={...t,...a}[await k()];if(!i){l("Auto-upgrade: CLI dependency not found in project dependencies, skipping local upgrade.");return}i.slice(0,1).match(/[\^~]/)&&(i=n);let s=await P(await k(),i);s?q(i,s):W(i),await J("prod",t,e),await J("dev",a,e)}async function J(e,n,o){let t=[await k(),...await j()].filter(r=>!!n[r]).map(r=>({name:r,version:"latest"})),a=await L(o);t.length>0&&await N(t,{packageManager:await S(o),type:e,directory:o,stdout:process.stdout,stderr:process.stderr,addToRootDirectory:a})}async function k(){return(await O()).name}async function j(){return(await O())?.oclif?.plugins??[]}var g;async function O(){if(!g){let e=await h(C(import.meta.url));g=g??e.content}return g}function W(e){d(p`You're on the latest version, ${u.yellow(e)}, no need to upgrade!`)}function q(e,n){d(p`Upgrading CLI from ${u.yellow(e)} to ${u.yellow(n)}...`)}export{M as a,re as b,ie as c,se as d,ce as e,G as f};
@@ -1 +1 @@
1
- import{b as h}from"./chunk-4HHXSMD7.js";import{Ib as a,Qb as u}from"./chunk-GFEAKSGV.js";import{f as I}from"./chunk-YC6G4MHD.js";import{c as D}from"./chunk-N7RBSKYT.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function L(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return L(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let c=b(e,o);if(c?.value!==void 0&&(r===void 0||Date.now()-c.timestamp<r))return c.value;let i=await t();return P(e,i,o),i}function P(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function b(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function y({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let c=o.get("cache")??{},i=`most-recent-occurrence-${e}`,s=c[i];return s?.value!==void 0&&Date.now()-s.timestamp<y(t)?!1:(await r(),c[i]={value:!0,timestamp:Date.now()},o.set("cache",c),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:c,task:i}=e,s=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=s[m],l=Date.now();if(w?.value){let C=l-y(c),d=w.value.filter(E=>E>=C);if(d.length>=o)return s[m]={value:d,timestamp:Date.now()},t.set("cache",s),!1;await i(),s[m]={value:[...d,l],timestamp:l}}else await i(),s[m]={value:[l],timestamp:l};return t.set("cache",s),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function A(){return new h({projectName:"shopify-cli-kit-partner-status"})}function J(e){return e&&A().get(e)?!0:null}function Q(e){A().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,L as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,P as k,b as l,_ as m,y as n,q as o,z as p,B as q,H as r,A as s,J as t,Q as u};
1
+ import{b as h}from"./chunk-MHWV5RQV.js";import{Ib as a,Qb as u}from"./chunk-N5PQPIBF.js";import{f as I}from"./chunk-YTNDFQJT.js";import{c as D}from"./chunk-ULQG3XQS.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function L(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return L(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let c=b(e,o);if(c?.value!==void 0&&(r===void 0||Date.now()-c.timestamp<r))return c.value;let i=await t();return P(e,i,o),i}function P(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function b(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function y({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let c=o.get("cache")??{},i=`most-recent-occurrence-${e}`,s=c[i];return s?.value!==void 0&&Date.now()-s.timestamp<y(t)?!1:(await r(),c[i]={value:!0,timestamp:Date.now()},o.set("cache",c),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:c,task:i}=e,s=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=s[m],l=Date.now();if(w?.value){let C=l-y(c),d=w.value.filter(E=>E>=C);if(d.length>=o)return s[m]={value:d,timestamp:Date.now()},t.set("cache",s),!1;await i(),s[m]={value:[...d,l],timestamp:l}}else await i(),s[m]={value:[l],timestamp:l};return t.set("cache",s),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function A(){return new h({projectName:"shopify-cli-kit-partner-status"})}function J(e){return e&&A().get(e)?!0:null}function Q(e){A().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,L as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,P as k,b as l,_ as m,y as n,q as o,z as p,B as q,H as r,A as s,J as t,Q as u};
@@ -1,2 +1,2 @@
1
- import{v as d}from"../../../../chunk-ALKTLKQ6.js";import{a as l}from"../../../../chunk-D3TSJA5S.js";import{a as u}from"../../../../chunk-RF2DPBA6.js";import{Ba as f}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-XEFQQPL4.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as m}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import{Mb as a,Yb as c}from"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as i}from"../../../../chunk-VPRTJUIN.js";i();i();function g(n){let o=d(n),t=new Map;o.forEach(e=>{let s=e.split(".");if(s.length>=2){let r=s[0];t.has(r)||t.set(r,[]),t.set(r,[...t.get(r),e])}});for(let[e,s]of t)a(c(e,s.join(`
1
+ import{v as d}from"../../../../chunk-IZ3C5J7G.js";import{a as l}from"../../../../chunk-JCL2RRU6.js";import{a as u}from"../../../../chunk-AGNMOFJS.js";import{Ba as f}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-XEFQQPL4.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as m}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import{Mb as a,Yb as c}from"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as i}from"../../../../chunk-VPRTJUIN.js";i();i();function g(n){let o=d(n),t=new Map;o.forEach(e=>{let s=e.split(".");if(s.length>=2){let r=s[0];t.has(r)||t.set(r,[]),t.set(r,[...t.get(r),e])}});for(let[e,s]of t)a(c(e,s.join(`
2
2
  `)))}var p=class n extends l{static{this.summary="Print out a list of sources that may be used with the logs command."}static{this.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources."}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...m,...u}}async run(){let{flags:o}=await this.parse(n),{app:t}=await f({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config});return t.errors.isEmpty()?g(t):process.exit(2),{app:t}}};export{p as default};
@@ -1 +1 @@
1
- import{a as W}from"../../../chunk-ZVJVDCIM.js";import{a as h}from"../../../chunk-N5YIPQ6J.js";import{a as b}from"../../../chunk-RF2DPBA6.js";import{Ca as y,f as g}from"../../../chunk-SBEZBZM7.js";import"../../../chunk-DJQVNH7P.js";import"../../../chunk-66RJ5T7A.js";import"../../../chunk-K2WUCOQJ.js";import"../../../chunk-ELYP4KFP.js";import"../../../chunk-7MUKLZOL.js";import"../../../chunk-VBUZWRUL.js";import"../../../chunk-XBXMPFXM.js";import"../../../chunk-R466TU3N.js";import"../../../chunk-UGXYQ23Y.js";import"../../../chunk-QSTEVZFQ.js";import"../../../chunk-5Y7GIF2W.js";import"../../../chunk-TQYMC7TH.js";import"../../../chunk-HUZUORYM.js";import"../../../chunk-52GC6XUT.js";import"../../../chunk-XLELNRFF.js";import"../../../chunk-B2EHO7ZC.js";import"../../../chunk-4LNCYIS3.js";import"../../../chunk-LAZJ47DZ.js";import"../../../chunk-PRKBO42R.js";import"../../../chunk-GOJ2QHSR.js";import"../../../chunk-7BGM2GAH.js";import"../../../chunk-XNO6DZYP.js";import{b as u}from"../../../chunk-323UTVMM.js";import"../../../chunk-3TNEIDOD.js";import"../../../chunk-4HHXSMD7.js";import"../../../chunk-YZDDTYTU.js";import"../../../chunk-MOA33ZFO.js";import"../../../chunk-JUVAGMIH.js";import{O as f,t as d,v as m}from"../../../chunk-BDVAE5MS.js";import"../../../chunk-P6XE4MH5.js";import"../../../chunk-KLMDWDT2.js";import"../../../chunk-5CH3B62S.js";import"../../../chunk-QUTQDXSL.js";import{d as c}from"../../../chunk-IASVAERO.js";import"../../../chunk-JPGO36XP.js";import"../../../chunk-PD5ZHJWI.js";import{r as x}from"../../../chunk-LDGAHMS7.js";import"../../../chunk-ZR76GGZ6.js";import"../../../chunk-EENHXSWU.js";import"../../../chunk-FUOIGXI4.js";import"../../../chunk-6M3ZYNGO.js";import"../../../chunk-QYR5VPQA.js";import"../../../chunk-V2CNCPIE.js";import"../../../chunk-GFEAKSGV.js";import"../../../chunk-CERXUPGC.js";import"../../../chunk-T4M5CWAO.js";import"../../../chunk-PRVQAHWI.js";import"../../../chunk-YC6G4MHD.js";import"../../../chunk-N7RBSKYT.js";import"../../../chunk-IU2ZQ6TE.js";import"../../../chunk-PIBY5DDZ.js";import{e as S,g as o}from"../../../chunk-VPRTJUIN.js";o();o();o();async function s(e,{web:i,stdout:t,stderr:n,signal:a,env:r={}}){let l=i.configuration.commands[e];if(!l)return;let[I,...k]=l.split(" ");await f(I,k,{cwd:i.directory,stdout:t,stderr:n,signal:a,env:r}),t.write("Web successfully built.")}async function P(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await h(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await g(e.app),await d({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(n,a,r)=>{await s("build",{web:t,stdout:n,stderr:a,signal:r,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(n,a,r)=>{await t.build({stdout:n,stderr:a,signal:r,app:e.app,environment:"production"})}}))],showTimestamps:!1}),m({headline:[{userInput:e.app.name},"built!"]})}var w=P;var A=S(x(),1);var p=class e extends W{static{this.summary="Build the app, including extensions."}static{this.descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid."}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...u,...b,"skip-dependencies-installation":A.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})}}async run(){let{flags:i}=await this.parse(e),t=i["client-id"];await c(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:n,project:a}=await y({directory:i.path,userProvidedConfigName:i.config});return await w({app:n,project:a,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:n}}};export{p as default};
1
+ import{a as W}from"../../../chunk-G4BPGWJC.js";import{a as h}from"../../../chunk-ZBRRJDGW.js";import{a as b}from"../../../chunk-AGNMOFJS.js";import{Ca as y,f as g}from"../../../chunk-54CAKCYR.js";import"../../../chunk-7ESSIN27.js";import"../../../chunk-GZS44BUW.js";import"../../../chunk-K2WUCOQJ.js";import"../../../chunk-7QIOUDCX.js";import"../../../chunk-7MUKLZOL.js";import"../../../chunk-VBUZWRUL.js";import"../../../chunk-DCPBRWVC.js";import"../../../chunk-KR6QDE7D.js";import"../../../chunk-UXVZ2P63.js";import"../../../chunk-QSTEVZFQ.js";import"../../../chunk-5Y7GIF2W.js";import"../../../chunk-EKXY5COY.js";import"../../../chunk-4DCQNGUV.js";import"../../../chunk-QBSKKQBN.js";import"../../../chunk-FQWB2F75.js";import"../../../chunk-XONFGLJQ.js";import"../../../chunk-4LNCYIS3.js";import"../../../chunk-L2MGAEV3.js";import"../../../chunk-PRKBO42R.js";import"../../../chunk-ZSBA6VIC.js";import"../../../chunk-F2QU6WWX.js";import"../../../chunk-XULPJ6UG.js";import{b as u}from"../../../chunk-XR6GMMEU.js";import"../../../chunk-3TNEIDOD.js";import"../../../chunk-MHWV5RQV.js";import"../../../chunk-XOTA6JTZ.js";import"../../../chunk-MOA33ZFO.js";import"../../../chunk-JUVAGMIH.js";import{O as f,t as d,v as m}from"../../../chunk-6G6TMKXF.js";import"../../../chunk-P6XE4MH5.js";import"../../../chunk-KLMDWDT2.js";import"../../../chunk-5CH3B62S.js";import"../../../chunk-QUTQDXSL.js";import{d as c}from"../../../chunk-WSDN25F5.js";import"../../../chunk-M56NDIMD.js";import"../../../chunk-PD5ZHJWI.js";import{r as x}from"../../../chunk-LDGAHMS7.js";import"../../../chunk-ZR76GGZ6.js";import"../../../chunk-EENHXSWU.js";import"../../../chunk-FUOIGXI4.js";import"../../../chunk-6M3ZYNGO.js";import"../../../chunk-QYR5VPQA.js";import"../../../chunk-OBEWZXOQ.js";import"../../../chunk-N5PQPIBF.js";import"../../../chunk-CERXUPGC.js";import"../../../chunk-T4M5CWAO.js";import"../../../chunk-PRVQAHWI.js";import"../../../chunk-YTNDFQJT.js";import"../../../chunk-ULQG3XQS.js";import"../../../chunk-IU2ZQ6TE.js";import"../../../chunk-PIBY5DDZ.js";import{e as S,g as o}from"../../../chunk-VPRTJUIN.js";o();o();o();async function s(e,{web:i,stdout:t,stderr:n,signal:a,env:r={}}){let l=i.configuration.commands[e];if(!l)return;let[I,...k]=l.split(" ");await f(I,k,{cwd:i.directory,stdout:t,stderr:n,signal:a,env:r}),t.write("Web successfully built.")}async function P(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await h(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await g(e.app),await d({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(n,a,r)=>{await s("build",{web:t,stdout:n,stderr:a,signal:r,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(n,a,r)=>{await t.build({stdout:n,stderr:a,signal:r,app:e.app,environment:"production"})}}))],showTimestamps:!1}),m({headline:[{userInput:e.app.name},"built!"]})}var w=P;var A=S(x(),1);var p=class e extends W{static{this.summary="Build the app, including extensions."}static{this.descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid."}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...u,...b,"skip-dependencies-installation":A.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})}}async run(){let{flags:i}=await this.parse(e),t=i["client-id"];await c(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:n,project:a}=await y({directory:i.path,userProvidedConfigName:i.config});return await w({app:n,project:a,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:n}}};export{p as default};
@@ -1 +1 @@
1
- import{c as B,h as D,i as I}from"../../../../chunk-VY6SNDKW.js";import{a as N,d as S,g as A}from"../../../../chunk-LXFJDCNG.js";import"../../../../chunk-QRRNOVJ3.js";import{a as F}from"../../../../chunk-D3TSJA5S.js";import{a as C}from"../../../../chunk-RF2DPBA6.js";import"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import{b as y}from"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import{z as k}from"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as g}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{u as d,v as c,w as O,x as b}from"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import{r as x}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import{Gb as f,Ib as v}from"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as h,g as a}from"../../../../chunk-VPRTJUIN.js";a();a();a();var T={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"}}]}}]}}]};var E="2026-01";async function w(o){let{organization:e,storeFqdn:n,operationId:t,remoteApp:p}=o;d({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${t}`,...S({organization:e,remoteApp:p,storeFqdn:n})]}}]});let z=await N(p,n),r=await y({query:T,session:z,variables:{id:t},version:E});if(r.bulkOperationCancel?.userErrors?.length){D(r.bulkOperationCancel.userErrors,"Failed to cancel bulk operation.");return}let m=r.bulkOperationCancel?.bulkOperation;if(m){let i=I(m),l={headline:i.headline,...i.body&&{body:i.body},...i.customSections&&{customSections:i.customSections}};switch(i.renderType){case"success":c(l);break;case"warning":O(l);break;case"info":d(l);break}}else b({headline:"Bulk operation not found or could not be canceled.",body:v`ID: ${f.yellow(t)}`.value})}var s=h(x(),1);var u=class o extends F{static{this.summary="Cancel a bulk operation."}static{this.description="Cancels a running bulk operation by ID."}static{this.flags={...g,...C,id:s.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:s.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>k(e)})}}async run(){let{flags:e}=await this.parse(o),{appContextResult:n,store:t}=await A(e);return await w({organization:n.organization,storeFqdn:t.shopDomain,operationId:B(e.id),remoteApp:n.remoteApp}),{app:n.app}}};export{u as default};
1
+ import{c as B,h as D,i as I}from"../../../../chunk-NPEVESCV.js";import{a as N,d as S,g as A}from"../../../../chunk-M3RYUB22.js";import"../../../../chunk-TQ6HYDVC.js";import{a as F}from"../../../../chunk-JCL2RRU6.js";import{a as C}from"../../../../chunk-AGNMOFJS.js";import"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import{b as y}from"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import{z as k}from"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as g}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{u as d,v as c,w as O,x as b}from"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import{r as x}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import{Gb as f,Ib as v}from"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as h,g as a}from"../../../../chunk-VPRTJUIN.js";a();a();a();var T={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"}}]}}]}}]};var E="2026-01";async function w(o){let{organization:e,storeFqdn:n,operationId:t,remoteApp:p}=o;d({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${t}`,...S({organization:e,remoteApp:p,storeFqdn:n})]}}]});let z=await N(p,n),r=await y({query:T,session:z,variables:{id:t},version:E});if(r.bulkOperationCancel?.userErrors?.length){D(r.bulkOperationCancel.userErrors,"Failed to cancel bulk operation.");return}let m=r.bulkOperationCancel?.bulkOperation;if(m){let i=I(m),l={headline:i.headline,...i.body&&{body:i.body},...i.customSections&&{customSections:i.customSections}};switch(i.renderType){case"success":c(l);break;case"warning":O(l);break;case"info":d(l);break}}else b({headline:"Bulk operation not found or could not be canceled.",body:v`ID: ${f.yellow(t)}`.value})}var s=h(x(),1);var u=class o extends F{static{this.summary="Cancel a bulk operation."}static{this.description="Cancels a running bulk operation by ID."}static{this.flags={...g,...C,id:s.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:s.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>k(e)})}}async run(){let{flags:e}=await this.parse(o),{appContextResult:n,store:t}=await A(e);return await w({organization:n.organization,storeFqdn:t.shopDomain,operationId:B(e.id),remoteApp:n.remoteApp}),{app:n.app}}};export{u as default};
@@ -1,4 +1,4 @@
1
- import{a as w,b as W,d as H,g as B}from"../../../../chunk-VY6SNDKW.js";import{a as j,c as z,d as G,e as N,f as J,h as K}from"../../../../chunk-LXFJDCNG.js";import"../../../../chunk-QRRNOVJ3.js";import{a as $}from"../../../../chunk-D3TSJA5S.js";import{a as q,b as Q}from"../../../../chunk-RF2DPBA6.js";import"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import{b as c}from"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import{n as b}from"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as V}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{E as f,P as F,a as _,u as E,v as y,w as C,x as R}from"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import{d,g as x}from"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import{Gb as m,Ib as u,Mb as L,Ta as P,ma as I,ua as D}from"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as r}from"../../../../chunk-VPRTJUIN.js";r();r();r();r();var X={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 Y(n){let{adminSession:e,query:a,version:i}=n;return(await c({query:X,session:e,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}r();r();r();var Z={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 ee(n){let{adminSession:e,variablesJsonl:a}=n,i=Buffer.from(a??"","utf-8"),t="bulk-variables.jsonl",s=i.length,o=await pe(e,t,s),p=me(o);return await ke(i,p.url,p.parameters,t),p.stagedUploadKey}async function pe(n,e,a){return c({query:Z,session:n,variables:{input:[{filename:e,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function me(n){if(!n.stagedUploadsCreate)throw new d("No response received from stagedUploadsCreate mutation");if(n.stagedUploadsCreate.userErrors.length>0){let i=n.stagedUploadsCreate.userErrors.map(t=>t.message).join(", ");throw new d(`Failed to create staged upload: ${i}`)}let e=n.stagedUploadsCreate.stagedTargets?.[0];if(!e)throw new d("No staged upload target returned from Shopify");if(!e.url||!e.resourceUrl)throw new d("Invalid staged upload target: missing required URLs");let a=e.parameters.find(i=>i.name==="key")?.value;if(!a)throw new d("No key parameter found in staged upload target");return{url:e.url,resourceUrl:e.resourceUrl,parameters:e.parameters,stagedUploadKey:a}}async function ke(n,e,a,i){let t=new FormData;for(let o of a)t.append(o.name,o.value);t.append("file",new Blob([new Uint8Array(n)],{type:"text/jsonl"}),i);let s=await f({title:u`Uploading bulk operation variables`,task:async()=>b(e,{method:"POST",body:t},"slow-request"),renderOptions:{stdout:process.stderr}});if(!s.ok){let o=await s.text();throw new d(`Failed to upload file to staged URL: ${s.statusText}
1
+ import{a as w,b as W,d as H,g as B}from"../../../../chunk-NPEVESCV.js";import{a as j,c as z,d as G,e as N,f as J,h as K}from"../../../../chunk-M3RYUB22.js";import"../../../../chunk-TQ6HYDVC.js";import{a as $}from"../../../../chunk-JCL2RRU6.js";import{a as q,b as Q}from"../../../../chunk-AGNMOFJS.js";import"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import{b as c}from"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import{n as b}from"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as V}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{E as f,P as F,a as _,u as E,v as y,w as C,x as R}from"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import{d,g as x}from"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import{Gb as m,Ib as u,Mb as L,Ta as P,ma as I,ua as D}from"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as r}from"../../../../chunk-VPRTJUIN.js";r();r();r();r();var X={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 Y(n){let{adminSession:e,query:a,version:i}=n;return(await c({query:X,session:e,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}r();r();r();var Z={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 ee(n){let{adminSession:e,variablesJsonl:a}=n,i=Buffer.from(a??"","utf-8"),t="bulk-variables.jsonl",s=i.length,o=await pe(e,t,s),p=me(o);return await ke(i,p.url,p.parameters,t),p.stagedUploadKey}async function pe(n,e,a){return c({query:Z,session:n,variables:{input:[{filename:e,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function me(n){if(!n.stagedUploadsCreate)throw new d("No response received from stagedUploadsCreate mutation");if(n.stagedUploadsCreate.userErrors.length>0){let i=n.stagedUploadsCreate.userErrors.map(t=>t.message).join(", ");throw new d(`Failed to create staged upload: ${i}`)}let e=n.stagedUploadsCreate.stagedTargets?.[0];if(!e)throw new d("No staged upload target returned from Shopify");if(!e.url||!e.resourceUrl)throw new d("Invalid staged upload target: missing required URLs");let a=e.parameters.find(i=>i.name==="key")?.value;if(!a)throw new d("No key parameter found in staged upload target");return{url:e.url,resourceUrl:e.resourceUrl,parameters:e.parameters,stagedUploadKey:a}}async function ke(n,e,a,i){let t=new FormData;for(let o of a)t.append(o.name,o.value);t.append("file",new Blob([new Uint8Array(n)],{type:"text/jsonl"}),i);let s=await f({title:u`Uploading bulk operation variables`,task:async()=>b(e,{method:"POST",body:t},"slow-request"),renderOptions:{stdout:process.stderr}});if(!s.ok){let o=await s.text();throw new d(`Failed to upload file to staged URL: ${s.statusText}
2
2
  ${o}`)}}r();var ne={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 te(n){let{adminSession:e,query:a,variablesJsonl:i,version:t}=n,s=await ee({adminSession:e,variablesJsonl:i});return(await c({query:ne,session:e,variables:{mutation:a,stagedUploadPath:s},...t&&{version:t}})).bulkOperationRunMutation}r();var ce=["COMPLETED","FAILED","CANCELED","EXPIRED"],ie=1,fe=5,ae=10,ge=3e3,ye=300;async function oe(n,e){return f({title:u`Starting bulk operation`,task:async()=>{let a=Date.now(),i=se({adminSession:n,operationId:e,pollIntervalSeconds:ye/1e3,useAdaptivePolling:!1}),t;do{let{value:s,done:o}=await i.next();if(t=s,o)return t}while(Date.now()-a<ge);return t},renderOptions:{stdout:process.stderr}})}async function re(n,e,a,i){return f({title:u`Polling bulk operation`,task:async t=>{let s=se({adminSession:n,operationId:e,pollIntervalSeconds:fe,initialPollIntervalSeconds:ie,initialPollCount:ae,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:o,done:p}=await s.next();if(p)return o;t(B(o))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*se({adminSession:n,operationId:e,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:t=ie,initialPollCount:s=ae,abortSignal:o}){let p=0;for(;;){let O=await ve(n,e);if(!O.bulkOperation)throw new Error("bulk operation not found");let v=O.bulkOperation;if(ce.includes(v.status)||o?.aborted)return v;yield v,p++;let k=a;i&&p<=s&&(k=t),o?await Promise.race([F(k),new Promise(S=>o.addEventListener("abort",S))]):await F(k)}}async function ve(n,e){return c({query:W,session:n,variables:{id:e},version:w})}r();async function le(n){let e=await b(n);if(!e.ok)throw new d(`Failed to download bulk operation results: ${e.statusText}`);return e.text()}async function Se(n,e){if(n)return n.join(`
3
3
  `);if(e){if(!await P(e))throw new d(u`Variable file not found at ${m.path(e)}. Please check the path and try again.`);return I(e,{encoding:"utf8"})}else return}async function de(n){let{organization:e,remoteApp:a,store:i,query:t,variables:s,variableFile:o,outputFile:p,watch:O=!1,version:v}=n,{adminSession:k,version:S}=await f({title:u`Authenticating`,task:async()=>{let l=await j(a,i.shopDomain),g=await z({adminSession:l,userSpecifiedVersion:v,minimumDefaultVersion:w});return{adminSession:l,version:g}},renderOptions:{stdout:process.stderr}}),U=await Se(s,o);be(t,U),J(t,i),E({headline:"Starting bulk operation.",body:[{list:{items:G({organization:e,remoteApp:a,storeFqdn:i.shopDomain,version:S})}}]});let A=N(t)?await te({adminSession:k,query:t,variablesJsonl:U,version:S}):await Y({adminSession:k,query:t,version:S});if(A?.userErrors?.length){R({headline:"Error creating bulk operation.",body:{list:{items:A.userErrors.map(l=>l.field?`${l.field.join(".")}: ${l.message}`:l.message)}}});return}let T=A?.bulkOperation;if(T)if(O){let l=new _,g=await re(k,T.id,l.signal,()=>l.abort());l.signal.aborted?E({headline:`Bulk operation ${g.id} is still running in the background.`,body:h(g.id)}):await ue(g,p)}else{let l=await oe(k,T.id);["FAILED","CANCELED","EXPIRED"].includes(l.status)?await ue(l,p):y({headline:"Bulk operation is running.",body:h(l.id),customSections:[{body:[{list:{items:[u`ID: ${m.cyan(l.id)}`.value]}}]}]})}else throw C({headline:"Bulk operation not created successfully.",body:"This is an unexpected error. Please try again later."}),new x("Bulk operation response returned null with no error message.")}async function ue(n,e){let a=B(n).value,t=[{body:[{list:{items:[u`ID: ${m.cyan(n.id)}`.value,u`Status: ${m.yellow(n.status)}`.value,u`Created at: ${m.gray(String(n.createdAt))}`.value,...n.completedAt?[u`Completed at: ${m.gray(String(n.completedAt))}`.value]:[]]}}]}];switch(n.status){case"CREATED":y({headline:"Bulk operation started.",body:h(n.id),customSections:t});break;case"RUNNING":y({headline:"Bulk operation is running.",body:h(n.id),customSections:t});break;case"COMPLETED":if(n.url){let s=await le(n.url),o=Oe(s);e?await D(e,s):L(s),o?C({headline:"Bulk operation completed with errors.",body:e?`Results written to ${e}. Check file for error details.`:"Check results for error details.",customSections:t}):y({headline:a,body:e?[`Results written to ${e}`]:void 0,customSections:t})}else y({headline:a,customSections:t});break;case"CANCELED":case"CANCELING":case"EXPIRED":case"FAILED":R({headline:a,customSections:t});break}}function Oe(n){return n.trim().split(`
4
4
  `).some(a=>{let i=JSON.parse(a);if(!i.data)return!1;let t=Object.values(i.data)[0];return t?.userErrors!==void 0&&t.userErrors.length>0})}function be(n,e){if(N(n)&&!e)throw new d(u`Bulk mutations require variables. Provide a JSONL file with ${m.yellow("--variable-file")} or individual JSON objects with ${m.yellow("--variables")}.`);if(!N(n)&&e)throw new d(u`The ${m.yellow("--variables")} and ${m.yellow("--variable-file")} flags can only be used with mutations, not queries.`)}function h(n){return[`Monitor its progress with:
@@ -1,4 +1,4 @@
1
- import{c as d,e as m,f as c}from"../../../../chunk-VY6SNDKW.js";import{g as u}from"../../../../chunk-LXFJDCNG.js";import"../../../../chunk-QRRNOVJ3.js";import{a as l}from"../../../../chunk-D3TSJA5S.js";import{a as n}from"../../../../chunk-RF2DPBA6.js";import"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import{z as p}from"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as r}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import{r as f}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as k,g as s}from"../../../../chunk-VPRTJUIN.js";s();var e=k(f(),1);var a=class h extends l{static{this.summary="Check the status of bulk operations."}static{this.descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
1
+ import{c as d,e as m,f as c}from"../../../../chunk-NPEVESCV.js";import{g as u}from"../../../../chunk-M3RYUB22.js";import"../../../../chunk-TQ6HYDVC.js";import{a as l}from"../../../../chunk-JCL2RRU6.js";import{a as n}from"../../../../chunk-AGNMOFJS.js";import"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import{z as p}from"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as r}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import{r as f}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as k,g as s}from"../../../../chunk-VPRTJUIN.js";s();var e=k(f(),1);var a=class h extends l{static{this.summary="Check the status of bulk operations."}static{this.descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
2
2
 
3
3
  Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).
4
4
 
@@ -1,4 +1,4 @@
1
- import{a as p}from"../../../../chunk-D3TSJA5S.js";import{a as e}from"../../../../chunk-RF2DPBA6.js";import{Ba as n,ya as r}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as a}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as i}from"../../../../chunk-VPRTJUIN.js";i();var o=class s extends p{static{this.summary="Fetch your app configuration from the Developer Dashboard."}static{this.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.
1
+ import{a as p}from"../../../../chunk-JCL2RRU6.js";import{a as e}from"../../../../chunk-AGNMOFJS.js";import{Ba as n,ya as r}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as a}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as i}from"../../../../chunk-VPRTJUIN.js";i();var o=class s extends p{static{this.summary="Fetch your app configuration from the Developer Dashboard."}static{this.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
2
 
3
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
4
  `}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...a,...e}}async run(){let{flags:t}=await this.parse(s),c={directory:t.path,apiKey:t["client-id"],configName:t.config},f=await r(c),{app:d}=await n({directory:t.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:f.configFileName});return{app:d}}};export{o as default};
@@ -1 +1 @@
1
- import{a as w}from"../../../../chunk-D3TSJA5S.js";import{a as A}from"../../../../chunk-RF2DPBA6.js";import{Aa as y,Ba as P,xa as C,za as k}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as h}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{v as u}from"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import{d}from"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import{j as r}from"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as a}from"../../../../chunk-VPRTJUIN.js";a();a();async function f(p){let{directory:i,configName:o,configPath:n,configuration:e,remoteApp:t}=p;if(!e.client_id)throw new d("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=t.developerPlatformClient,m=await C({developerPlatformClient:c,app:t}),l=t.flags,O={directory:i,configName:o,developerPlatformClient:c,apiKey:e.client_id},g=await k(O,m,l,t.apiKey),F=r(n),N=await y({remoteApp:t,developerPlatformClient:c,specifications:m,flags:l,configFileName:F,appDirectory:g.appDirectory??i,localAppOptions:g});return{configPath:n,configuration:N,remoteApp:t}}var s=class p extends w{static{this.summary="Refresh an already-linked app configuration without prompts."}static{this.descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one."}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...h,...A}}async run(){let{flags:i}=await this.parse(p),{app:o,remoteApp:n}=await P({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),{configuration:e,configPath:t}=await f({directory:i.path,configName:i.config,configPath:o.configPath,configuration:o.configuration,remoteApp:n});return u({headline:`Pulled latest configuration for "${e.name}"`,body:`Updated ${r(t)} with the remote data.`}),{app:o}}};export{s as default};
1
+ import{a as w}from"../../../../chunk-JCL2RRU6.js";import{a as A}from"../../../../chunk-AGNMOFJS.js";import{Aa as y,Ba as P,xa as C,za as k}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as h}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{v as u}from"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import{d}from"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import{j as r}from"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as a}from"../../../../chunk-VPRTJUIN.js";a();a();async function f(p){let{directory:i,configName:o,configPath:n,configuration:e,remoteApp:t}=p;if(!e.client_id)throw new d("The selected configuration is not linked to a remote app.","Run `shopify app config link` first to link this configuration to a Shopify app.");let c=t.developerPlatformClient,m=await C({developerPlatformClient:c,app:t}),l=t.flags,O={directory:i,configName:o,developerPlatformClient:c,apiKey:e.client_id},g=await k(O,m,l,t.apiKey),F=r(n),N=await y({remoteApp:t,developerPlatformClient:c,specifications:m,flags:l,configFileName:F,appDirectory:g.appDirectory??i,localAppOptions:g});return{configPath:n,configuration:N,remoteApp:t}}var s=class p extends w{static{this.summary="Refresh an already-linked app configuration without prompts."}static{this.descriptionWithMarkdown="Pulls the latest configuration from the already-linked Shopify app and updates the selected configuration file.\n\nThis command reuses the existing linked app and organization and skips all interactive prompts. Use `--config` to target a specific configuration file, or omit it to use the default one."}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...h,...A}}async run(){let{flags:i}=await this.parse(p),{app:o,remoteApp:n}=await P({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),{configuration:e,configPath:t}=await f({directory:i.path,configName:i.config,configPath:o.configPath,configuration:o.configuration,remoteApp:n});return u({headline:`Pulled latest configuration for "${e.name}"`,body:`Updated ${r(t)} with the remote data.`}),{app:o}}};export{s as default};
@@ -1 +1 @@
1
- import{a as c}from"../../../../chunk-ZVJVDCIM.js";import{a as n}from"../../../../chunk-RF2DPBA6.js";import{A as p,Ca as s,D as e}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as r}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import{r as u}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as l,g as i}from"../../../../chunk-VPRTJUIN.js";i();var m=l(u(),1);var{config:F,...d}=n,o=class f extends c{static{this.summary="Activate an app configuration."}static{this.descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project."}static{this.description=this.descriptionWithoutMarkdown()}static{this.usage="app config use [config] [flags]"}static{this.flags={...r,...d}}static{this.args={config:m.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})}}async run(){let{flags:t,args:a}=await this.parse(f),{app:g}=await s({directory:t.path,userProvidedConfigName:a.config});return await e(t.path),await p({directory:t.path,configName:a.config,reset:t.reset}),{app:g}}};export{o as default};
1
+ import{a as c}from"../../../../chunk-G4BPGWJC.js";import{a as n}from"../../../../chunk-AGNMOFJS.js";import{A as p,Ca as s,D as e}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as r}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import{r as u}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as l,g as i}from"../../../../chunk-VPRTJUIN.js";i();var m=l(u(),1);var{config:F,...d}=n,o=class f extends c{static{this.summary="Activate an app configuration."}static{this.descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project."}static{this.description=this.descriptionWithoutMarkdown()}static{this.usage="app config use [config] [flags]"}static{this.flags={...r,...d}}static{this.args={config:m.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})}}async run(){let{flags:t,args:a}=await this.parse(f),{app:g}=await s({directory:t.path,userProvidedConfigName:a.config});return await e(t.path),await p({directory:t.path,configName:a.config,reset:t.reset}),{app:g}}};export{o as default};
@@ -1,3 +1,3 @@
1
- import{a as V}from"../../../../chunk-D3TSJA5S.js";import{a as A}from"../../../../chunk-RF2DPBA6.js";import{B as C,Ba as O,C as S,l as c,y as b,z as E}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as y,c as j}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{v,x as m}from"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import{d as u,f as o}from"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import{Mb as s,Tb as g,Wb as w}from"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as f}from"../../../../chunk-VPRTJUIN.js";f();f();async function k(l,t){let e=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:l,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:e}))}async function x(l,t={json:!1}){let e=l.errors;if(!e||e.isEmpty()){if(await k(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}v({headline:"App configuration is valid."});return}let n=e.getErrors();if(await k(!1,n),t.json){let p=n.map(({file:d,message:a,path:i,code:r})=>({file:d,message:a,path:i,code:r}));throw s(JSON.stringify({valid:!1,issues:p},null,2)),new o}throw m({headline:"Validation errors found.",body:n.map(p=>`\u2022 ${S(p)}`).join(`
1
+ import{a as V}from"../../../../chunk-JCL2RRU6.js";import{a as A}from"../../../../chunk-AGNMOFJS.js";import{B as C,Ba as O,C as S,l as c,y as b,z as E}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as y,c as j}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{v,x as m}from"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import{d as u,f as o}from"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import{Mb as s,Tb as g,Wb as w}from"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as f}from"../../../../chunk-VPRTJUIN.js";f();f();async function k(l,t){let e=new Set(t.map(n=>n.file)).size;await c.addPublicMetadata(()=>({cmd_app_validate_valid:l,cmd_app_validate_issue_count:t.length,cmd_app_validate_file_count:e}))}async function x(l,t={json:!1}){let e=l.errors;if(!e||e.isEmpty()){if(await k(!0,[]),t.json){s(JSON.stringify({valid:!0,issues:[]},null,2));return}v({headline:"App configuration is valid."});return}let n=e.getErrors();if(await k(!1,n),t.json){let p=n.map(({file:d,message:a,path:i,code:r})=>({file:d,message:a,path:i,code:r}));throw s(JSON.stringify({valid:!1,issues:p},null,2)),new o}throw m({headline:"Validation errors found.",body:n.map(p=>`\u2022 ${S(p)}`).join(`
2
2
  `)}),new o}async function h(l,t){await c.addPublicMetadata(()=>({cmd_app_validate_valid:!1,cmd_app_validate_issue_count:l,cmd_app_validate_file_count:t}))}var _=class l extends V{static{this.summary="Validate your app configuration and extensions."}static{this.descriptionWithMarkdown="Validates the selected app configuration file and all extension configurations against their schemas and reports any errors found."}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...y,...A,...j}}async run(){let{flags:t}=await this.parse(l);await c.addPublicMetadata(()=>({cmd_app_validate_json:t.json}));let e;try{e=await b.load(t.path)}catch(a){if(a instanceof u&&t.json){await h(1,1);let i=w(g(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new o}throw a}let n;try{n=await C(e,t.config)}catch(a){if(a instanceof u&&t.json){await h(1,1);let i=w(g(a.message)).trim();throw s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new o}throw a}let p=E(e,n.file);if(p.length>0){let a=p.map(r=>({file:r.path,message:r.message})),i=new Set(p.map(r=>r.path)).size;throw await h(a.length,i),t.json?(s(JSON.stringify({valid:!1,issues:a},null,2)),new o):(m({headline:"Validation errors found.",body:a.map(r=>`\u2022 ${r.message}`).join(`
3
3
  `)}),new o)}let d;try{d=(await O({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config,unsafeTolerateErrors:!0})).app}catch(a){let i=a instanceof u?w(g(a.message)).trim():"";throw i.startsWith("Validation errors in ")&&t.json?(await h(1,1),s(JSON.stringify({valid:!1,issues:[{message:i}]},null,2)),new o):a}return await x(d,{json:t.json}),{app:d}}};export{_ as default};
@@ -1 +1 @@
1
- import{a as f}from"../../../../chunk-J3KVONB3.js";import{a as l}from"../../../../chunk-D3TSJA5S.js";import{a as m}from"../../../../chunk-RF2DPBA6.js";import{Ba as c}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import{b as d}from"../../../../chunk-WFXRSKRK.js";import"../../../../chunk-XEFQQPL4.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as s}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import{Nb as e,tb as n}from"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as p}from"../../../../chunk-VPRTJUIN.js";p();var r=class u extends l{static{this.summary="Watch and prints out changes to an app."}static{this.hidden=!0}static{this.flags={...s,...m}}async run(){let{flags:t}=await this.parse(u),{app:o}=await c({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),i=new f(o);return await i.start(),e(`Watching for changes in ${o.name}...`),i.onEvent(async({app:w,extensionEvents:h,startTime:g,path:k})=>{e(`\u{1F195} Event [${d(g)}ms]`),e(` \u{1F4C2} ${k}`),h.forEach(a=>{switch(a.type){case"created":e(` \u2705 Extension created - ${n.green(a.extension.handle)}`);break;case"deleted":e(` \u274C Extension deleted: ${n.red(a.extension.handle)}`);break;case"changed":e(` \u{1F504} Updated: ${n.yellow(a.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:o}}};export{r as default};
1
+ import{a as f}from"../../../../chunk-HIBX234C.js";import{a as l}from"../../../../chunk-JCL2RRU6.js";import{a as m}from"../../../../chunk-AGNMOFJS.js";import{Ba as c}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import{b as d}from"../../../../chunk-WFXRSKRK.js";import"../../../../chunk-XEFQQPL4.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as s}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import{Nb as e,tb as n}from"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{g as p}from"../../../../chunk-VPRTJUIN.js";p();var r=class u extends l{static{this.summary="Watch and prints out changes to an app."}static{this.hidden=!0}static{this.flags={...s,...m}}async run(){let{flags:t}=await this.parse(u),{app:o}=await c({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),i=new f(o);return await i.start(),e(`Watching for changes in ${o.name}...`),i.onEvent(async({app:w,extensionEvents:h,startTime:g,path:k})=>{e(`\u{1F195} Event [${d(g)}ms]`),e(` \u{1F4C2} ${k}`),h.forEach(a=>{switch(a.type){case"created":e(` \u2705 Extension created - ${n.green(a.extension.handle)}`);break;case"deleted":e(` \u274C Extension deleted: ${n.red(a.extension.handle)}`);break;case"changed":e(` \u{1F504} Updated: ${n.yellow(a.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:o}}};export{r as default};
@@ -1,4 +1,4 @@
1
- import{c as te,e as oe,f as O,g as ie}from"../../../chunk-3F6NZK7S.js";import{a as Q,c as X,d as ee,e as ne}from"../../../chunk-6BMMB2UO.js";import{a as Z}from"../../../chunk-D3TSJA5S.js";import{a as W}from"../../../chunk-RF2DPBA6.js";import{$ as q,Ba as J,F as M,I as H,X as P,f as G,l as K}from"../../../chunk-SBEZBZM7.js";import"../../../chunk-DJQVNH7P.js";import"../../../chunk-OXPWCC7I.js";import"../../../chunk-LX3ZOW52.js";import"../../../chunk-NKQBEFPS.js";import{k as I}from"../../../chunk-66RJ5T7A.js";import"../../../chunk-K2WUCOQJ.js";import"../../../chunk-ELYP4KFP.js";import"../../../chunk-7MUKLZOL.js";import"../../../chunk-VBUZWRUL.js";import"../../../chunk-XBXMPFXM.js";import"../../../chunk-R466TU3N.js";import"../../../chunk-UGXYQ23Y.js";import"../../../chunk-QSTEVZFQ.js";import"../../../chunk-5Y7GIF2W.js";import"../../../chunk-TQYMC7TH.js";import"../../../chunk-HUZUORYM.js";import"../../../chunk-52GC6XUT.js";import"../../../chunk-XLELNRFF.js";import"../../../chunk-B2EHO7ZC.js";import"../../../chunk-4LNCYIS3.js";import"../../../chunk-LAZJ47DZ.js";import"../../../chunk-PRKBO42R.js";import"../../../chunk-GOJ2QHSR.js";import"../../../chunk-7BGM2GAH.js";import"../../../chunk-XNO6DZYP.js";import{b as Y}from"../../../chunk-323UTVMM.js";import"../../../chunk-3TNEIDOD.js";import"../../../chunk-4HHXSMD7.js";import"../../../chunk-YZDDTYTU.js";import"../../../chunk-MOA33ZFO.js";import"../../../chunk-JUVAGMIH.js";import{A as S,D as V,I as C,t as $,u as j,v as A}from"../../../chunk-BDVAE5MS.js";import"../../../chunk-P6XE4MH5.js";import"../../../chunk-KLMDWDT2.js";import"../../../chunk-5CH3B62S.js";import"../../../chunk-QUTQDXSL.js";import{d as N}from"../../../chunk-IASVAERO.js";import{d as y,f as z}from"../../../chunk-JPGO36XP.js";import"../../../chunk-PD5ZHJWI.js";import{r as me}from"../../../chunk-LDGAHMS7.js";import"../../../chunk-ZR76GGZ6.js";import"../../../chunk-EENHXSWU.js";import"../../../chunk-FUOIGXI4.js";import"../../../chunk-6M3ZYNGO.js";import"../../../chunk-QYR5VPQA.js";import"../../../chunk-V2CNCPIE.js";import{Ca as U,Hb as D,L as F,Nb as k,Sb as _,wa as w}from"../../../chunk-GFEAKSGV.js";import"../../../chunk-CERXUPGC.js";import"../../../chunk-T4M5CWAO.js";import"../../../chunk-PRVQAHWI.js";import"../../../chunk-YC6G4MHD.js";import"../../../chunk-N7RBSKYT.js";import{d as E,i as B}from"../../../chunk-IU2ZQ6TE.js";import"../../../chunk-PIBY5DDZ.js";import{e as ue,g}from"../../../chunk-VPRTJUIN.js";g();g();g();async function se(e){let n,t;e.bundlePath&&(n=await ne(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ee(n,e.bundlePath));let o={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};n&&(o.bundleUrl=n),e.appModules.length>0&&(o.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(o);if(!i.appDeploy.appVersion){let r=fe(i.appDeploy.userErrors??[],e.extensionIds,e.appModules,{version:e.version});throw new y({bold:"Version couldn't be created."},null,[],r)}return i.appDeploy.userErrors?.length>0&&(t=i.appDeploy.userErrors.map(r=>r.message).join(", ")),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(r=>r.validationErrors.length>0).map(r=>({uuid:r.registrationUuid,errors:r.validationErrors})),versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:t}}var v=`
1
+ import{c as te,e as oe,f as O,g as ie}from"../../../chunk-3D4JXJPS.js";import{a as Q,c as X,d as ee,e as ne}from"../../../chunk-OTY24J2W.js";import{a as Z}from"../../../chunk-JCL2RRU6.js";import{a as W}from"../../../chunk-AGNMOFJS.js";import{$ as q,Ba as J,F as M,I as H,X as P,f as G,l as K}from"../../../chunk-54CAKCYR.js";import"../../../chunk-7ESSIN27.js";import"../../../chunk-ULFWK45W.js";import"../../../chunk-KHTV6PBV.js";import"../../../chunk-NKQBEFPS.js";import{k as I}from"../../../chunk-GZS44BUW.js";import"../../../chunk-K2WUCOQJ.js";import"../../../chunk-7QIOUDCX.js";import"../../../chunk-7MUKLZOL.js";import"../../../chunk-VBUZWRUL.js";import"../../../chunk-DCPBRWVC.js";import"../../../chunk-KR6QDE7D.js";import"../../../chunk-UXVZ2P63.js";import"../../../chunk-QSTEVZFQ.js";import"../../../chunk-5Y7GIF2W.js";import"../../../chunk-EKXY5COY.js";import"../../../chunk-4DCQNGUV.js";import"../../../chunk-QBSKKQBN.js";import"../../../chunk-FQWB2F75.js";import"../../../chunk-XONFGLJQ.js";import"../../../chunk-4LNCYIS3.js";import"../../../chunk-L2MGAEV3.js";import"../../../chunk-PRKBO42R.js";import"../../../chunk-ZSBA6VIC.js";import"../../../chunk-F2QU6WWX.js";import"../../../chunk-XULPJ6UG.js";import{b as Y}from"../../../chunk-XR6GMMEU.js";import"../../../chunk-3TNEIDOD.js";import"../../../chunk-MHWV5RQV.js";import"../../../chunk-XOTA6JTZ.js";import"../../../chunk-MOA33ZFO.js";import"../../../chunk-JUVAGMIH.js";import{A as S,D as V,I as C,t as $,u as j,v as A}from"../../../chunk-6G6TMKXF.js";import"../../../chunk-P6XE4MH5.js";import"../../../chunk-KLMDWDT2.js";import"../../../chunk-5CH3B62S.js";import"../../../chunk-QUTQDXSL.js";import{d as N}from"../../../chunk-WSDN25F5.js";import{d as y,f as z}from"../../../chunk-M56NDIMD.js";import"../../../chunk-PD5ZHJWI.js";import{r as me}from"../../../chunk-LDGAHMS7.js";import"../../../chunk-ZR76GGZ6.js";import"../../../chunk-EENHXSWU.js";import"../../../chunk-FUOIGXI4.js";import"../../../chunk-6M3ZYNGO.js";import"../../../chunk-QYR5VPQA.js";import"../../../chunk-OBEWZXOQ.js";import{Ca as U,Hb as D,L as F,Nb as k,Sb as _,wa as w}from"../../../chunk-N5PQPIBF.js";import"../../../chunk-CERXUPGC.js";import"../../../chunk-T4M5CWAO.js";import"../../../chunk-PRVQAHWI.js";import"../../../chunk-YTNDFQJT.js";import"../../../chunk-ULQG3XQS.js";import{d as E,i as B}from"../../../chunk-IU2ZQ6TE.js";import"../../../chunk-PIBY5DDZ.js";import{e as ue,g}from"../../../chunk-VPRTJUIN.js";g();g();g();async function se(e){let n,t;e.bundlePath&&(n=await ne(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ee(n,e.bundlePath));let o={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};n&&(o.bundleUrl=n),e.appModules.length>0&&(o.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(o);if(!i.appDeploy.appVersion){let r=fe(i.appDeploy.userErrors??[],e.extensionIds,e.appModules,{version:e.version});throw new y({bold:"Version couldn't be created."},null,[],r)}return i.appDeploy.userErrors?.length>0&&(t=i.appDeploy.userErrors.map(r=>r.message).join(", ")),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(r=>r.validationErrors.length>0).map(r=>({uuid:r.registrationUuid,errors:r.validationErrors})),versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:t}}var v=`
2
2
  Validation errors`,T=`
3
3
  `;function fe(e,n,t,o={}){let i=d=>d.details?.some(x=>x.extension_id)??!1,s=(d,x)=>{let b=d.details?.find(R=>typeof R.extension_id<"u")?.extension_id??"";return Object.values(x).includes(b.toString())},r=d=>{let x=d.on?d.on[0]:void 0;return t.some(b=>b.uid===x?.user_identifier)},[a,l]=I(e,d=>r(d)),[m,c]=I(l,d=>i(d)),[f,p]=I(m,d=>s(d,n));return[...ge(c,{version:o.version}),...ye(f,n),...xe(p),...he(a,t)]}function ge(e,n={}){return e.length>0?e.filter(t=>t.field&&t.field.includes("version_tag")&&t.message==="has already been taken").length>0&&n.version?[{body:["An app version with the name",{userInput:n.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(t=>t.message)}}}]:[]}function ye(e,n){return e.reduce((t,o)=>{let i=(o.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=i==="base"?o.message:`${i}: ${o.message}`,r=o.details.find(p=>typeof p.extension_title<"u")?.extension_title,a=o.details.find(p=>typeof p.specification_identifier<"u")?.specification_identifier,l=o.details.find(p=>typeof p.extension_id<"u")?.extension_id?.toString(),c=Object.keys(n).find(p=>n[p]===l)??r;a==="webhook_subscription"&&(c="Webhook Subscription");let f=t.find(p=>p.title===c);if(f){let p=f.body,u=o.category==="invalid"?p.find(d=>d.list.title===v):p.find(d=>d.list.title===T);u?u.list.items.includes(s)||u.list.items.push(s):p.push({list:{title:o.category==="invalid"?v:T,items:[s]}})}else t.push({title:c,body:[{list:{title:o.category==="invalid"?v:T,items:[s]}}]});return t.forEach(p=>{p.body.sort((u,d)=>u.list.title===v?1:d.list.title===v?-1:0)}),t},[])}function he(e,n){return e.reduce((t,o)=>{let s=(o.on?o.on[0]:void 0)?.user_identifier,r=n.find(p=>p.uid===s),a=s?`Extension with uid: ${s}`:"Unknown Extension",l=r?.handle??a,c=`${(o.field??["unknown"]).join(".")}: ${o.message}`,f=t.find(p=>p.title===l);if(f){let u=f.body.find(d=>d.list.title===v);u&&(u.list.items.includes(c)||u.list.items.push(c))}else t.push({title:l,body:[{list:{title:v,items:[c]}}]});return t},[])}function xe(e){return e.reduce((n,t)=>{let o=t.details.find(s=>typeof s.extension_title<"u")?.extension_title,i=n.find(s=>s.title===o);return i?i.errorCount+=1:n.push({title:o,errorCount:1}),n},[]).map(n=>({title:n.title,body:`
4
4
  ${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function re(e){let n=E(e.app.directory,".shopify","deploy-bundle");await U(n,{force:!0}),await w(n),await Q(e.appManifest,n),e.skipBuild||await G(e.app);let t=e.app.allExtensions.map(i=>({prefix:i.localIdentifier,action:async(s,r,a)=>{let l=e.isDevDashboardApp?void 0:e.identifiers?.extensions[i.localIdentifier];e.skipBuild?await i.copyIntoBundle({stderr:r,stdout:s,signal:a,app:e.app,environment:"production"},n,l):await i.buildForBundle({stderr:r,stdout:s,signal:a,app:e.app,environment:"production"},n,l)}}));if(await $({processes:t,showTimestamps:!1}),e.app.allExtensions.some(i=>i.hasDeploySteps))return await X(n,e.bundlePath),e.bundlePath}async function be(e){let{app:n,remoteApp:t,developerPlatformClient:o,force:i,extensions:s}=e;if(i||!C())return n;let r=[`App includes legacy extensions that will be deprecated soon:
@@ -1,4 +1,4 @@
1
- import{a as v}from"../../../../chunk-QRRNOVJ3.js";import{a as c}from"../../../../chunk-D3TSJA5S.js";import{a as m}from"../../../../chunk-RF2DPBA6.js";import{Ba as l}from"../../../../chunk-SBEZBZM7.js";import"../../../../chunk-DJQVNH7P.js";import"../../../../chunk-66RJ5T7A.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-ELYP4KFP.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-XBXMPFXM.js";import"../../../../chunk-R466TU3N.js";import"../../../../chunk-UGXYQ23Y.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-TQYMC7TH.js";import"../../../../chunk-HUZUORYM.js";import"../../../../chunk-52GC6XUT.js";import"../../../../chunk-XLELNRFF.js";import{z as n}from"../../../../chunk-B2EHO7ZC.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-LAZJ47DZ.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-GOJ2QHSR.js";import"../../../../chunk-7BGM2GAH.js";import"../../../../chunk-XNO6DZYP.js";import{b as d}from"../../../../chunk-323UTVMM.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-4HHXSMD7.js";import"../../../../chunk-YZDDTYTU.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{v as a}from"../../../../chunk-BDVAE5MS.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-IASVAERO.js";import{d as p}from"../../../../chunk-JPGO36XP.js";import"../../../../chunk-PD5ZHJWI.js";import{r as g}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-V2CNCPIE.js";import"../../../../chunk-GFEAKSGV.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YC6G4MHD.js";import"../../../../chunk-N7RBSKYT.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as C,g as s}from"../../../../chunk-VPRTJUIN.js";s();s();async function f(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new p("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
1
+ import{a as v}from"../../../../chunk-TQ6HYDVC.js";import{a as c}from"../../../../chunk-JCL2RRU6.js";import{a as m}from"../../../../chunk-AGNMOFJS.js";import{Ba as l}from"../../../../chunk-54CAKCYR.js";import"../../../../chunk-7ESSIN27.js";import"../../../../chunk-GZS44BUW.js";import"../../../../chunk-K2WUCOQJ.js";import"../../../../chunk-7QIOUDCX.js";import"../../../../chunk-7MUKLZOL.js";import"../../../../chunk-VBUZWRUL.js";import"../../../../chunk-DCPBRWVC.js";import"../../../../chunk-KR6QDE7D.js";import"../../../../chunk-UXVZ2P63.js";import"../../../../chunk-QSTEVZFQ.js";import"../../../../chunk-5Y7GIF2W.js";import"../../../../chunk-EKXY5COY.js";import"../../../../chunk-4DCQNGUV.js";import"../../../../chunk-QBSKKQBN.js";import"../../../../chunk-FQWB2F75.js";import{z as n}from"../../../../chunk-XONFGLJQ.js";import"../../../../chunk-4LNCYIS3.js";import"../../../../chunk-L2MGAEV3.js";import"../../../../chunk-PRKBO42R.js";import"../../../../chunk-ZSBA6VIC.js";import"../../../../chunk-F2QU6WWX.js";import"../../../../chunk-XULPJ6UG.js";import{b as d}from"../../../../chunk-XR6GMMEU.js";import"../../../../chunk-3TNEIDOD.js";import"../../../../chunk-MHWV5RQV.js";import"../../../../chunk-XOTA6JTZ.js";import"../../../../chunk-MOA33ZFO.js";import"../../../../chunk-JUVAGMIH.js";import{v as a}from"../../../../chunk-6G6TMKXF.js";import"../../../../chunk-P6XE4MH5.js";import"../../../../chunk-KLMDWDT2.js";import"../../../../chunk-5CH3B62S.js";import"../../../../chunk-QUTQDXSL.js";import"../../../../chunk-WSDN25F5.js";import{d as p}from"../../../../chunk-M56NDIMD.js";import"../../../../chunk-PD5ZHJWI.js";import{r as g}from"../../../../chunk-LDGAHMS7.js";import"../../../../chunk-ZR76GGZ6.js";import"../../../../chunk-EENHXSWU.js";import"../../../../chunk-FUOIGXI4.js";import"../../../../chunk-6M3ZYNGO.js";import"../../../../chunk-QYR5VPQA.js";import"../../../../chunk-OBEWZXOQ.js";import"../../../../chunk-N5PQPIBF.js";import"../../../../chunk-CERXUPGC.js";import"../../../../chunk-T4M5CWAO.js";import"../../../../chunk-PRVQAHWI.js";import"../../../../chunk-YTNDFQJT.js";import"../../../../chunk-ULQG3XQS.js";import"../../../../chunk-IU2ZQ6TE.js";import"../../../../chunk-PIBY5DDZ.js";import{e as C,g as s}from"../../../../chunk-VPRTJUIN.js";s();s();async function f(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new p("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
2
2
  `);throw new p(`Failed to stop the dev preview: ${u}`)}a({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var h=C(g(),1);var i=class t extends c{static{this.summary="Cleans up the dev preview from the selected store."}static{this.descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
3
 
4
4
  It restores the app's active version to the selected development store.