@qwen-code/qwen-code 0.20.1-jobbench-claude-prompt.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  2. package/bundled/qc-helper/docs/features/auto-mode.md +19 -16
  3. package/bundled/qc-helper/docs/features/commands.md +54 -0
  4. package/bundled/qc-helper/docs/features/sub-agents.md +16 -7
  5. package/bundled/qc-helper/docs/integration-github-action.md +10 -10
  6. package/bundled/qc-helper/docs/qwen-serve.md +2 -1
  7. package/bundled/review/DESIGN.md +2 -2
  8. package/bundled/review/SKILL.md +4 -4
  9. package/chunks/{MaxSizedBox-BGLP6FQT.js → MaxSizedBox-4WZYPSRU.js} +40 -36
  10. package/chunks/{StandaloneSessionPicker-K6I4ZEHD.js → StandaloneSessionPicker-PE4JAIFA.js} +58 -54
  11. package/chunks/{acpAgent-PKKBOEP4.js → acpAgent-BVIKGJ2C.js} +1503 -520
  12. package/chunks/{agent-Y7XOSZY5.js → agent-DHLFAOUV.js} +36 -32
  13. package/chunks/{agent-headless-NXRPEYGF.js → agent-headless-ZP5WTNXZ.js} +36 -32
  14. package/chunks/{anthropicContentGenerator-BWBAZGTW.js → anthropicContentGenerator-NMSS7IMV.js} +11 -11
  15. package/chunks/{artifact-tool-IUJ7QWCX.js → artifact-tool-56T5IMBP.js} +3 -3
  16. package/chunks/{askUserQuestion-IUMUUTDQ.js → askUserQuestion-E25OBIC2.js} +3 -3
  17. package/chunks/{bridge-DCMYGFJ2.js → bridge-XAK7JKMD.js} +41 -37
  18. package/chunks/{build-SSCNEHZZ.js → build-GHIZ4MSZ.js} +1 -1
  19. package/chunks/{ca-2SL2BXTK.js → ca-N6VVUFVB.js} +611 -201
  20. package/chunks/{channel-worker-group-53CMOPFT.js → channel-worker-group-LFBT7K64.js} +5 -5
  21. package/chunks/{channel-worker-manager-UTXILKC2.js → channel-worker-manager-3RUPERG2.js} +5 -5
  22. package/chunks/{channel-worker-supervisor-ZGO2W2MD.js → channel-worker-supervisor-A3KVATD3.js} +4 -4
  23. package/chunks/{chunk-C5L66QPF.js → chunk-27CLX4FV.js} +1 -1
  24. package/chunks/{chunk-2HOVDT7W.js → chunk-2LI23QA6.js} +1 -1
  25. package/chunks/chunk-2RFKHEXL.js +74 -0
  26. package/chunks/{chunk-5244PA32.js → chunk-3KQSDUK3.js} +3 -3
  27. package/chunks/{chunk-MEDHWB34.js → chunk-3LH5Q2AR.js} +8 -8
  28. package/chunks/{chunk-E6XTP5ZF.js → chunk-3SXF4GMQ.js} +1 -1
  29. package/chunks/chunk-43T5WDQ7.js +127 -0
  30. package/chunks/{chunk-6UTNZOZG.js → chunk-4BRH6FP5.js} +31 -6
  31. package/chunks/{chunk-NYMHN4ZK.js → chunk-4DSBFQMI.js} +2 -2
  32. package/chunks/{chunk-JD3MKVKL.js → chunk-4K56OJFJ.js} +1 -1
  33. package/chunks/{chunk-KTUQMDEP.js → chunk-4K7VDKAD.js} +1 -1
  34. package/chunks/{chunk-QKYTTBYW.js → chunk-4LVZNIDO.js} +1 -1
  35. package/chunks/{chunk-EKVLDUP4.js → chunk-52T5UHAZ.js} +2 -2
  36. package/chunks/{chunk-ZEOZL37W.js → chunk-57FIIFJN.js} +1 -1
  37. package/chunks/{chunk-SWRMKMVY.js → chunk-5EA5NVXS.js} +1 -1
  38. package/chunks/chunk-5G2SK2OO.js +20600 -0
  39. package/chunks/{chunk-6EFTQYW7.js → chunk-5I5BM454.js} +1 -1
  40. package/chunks/{chunk-GMGDLUC7.js → chunk-6IL7KRLE.js} +1 -1
  41. package/chunks/{chunk-26LLB6FM.js → chunk-6NHK6HS7.js} +2 -2
  42. package/chunks/{chunk-6UTRTWUF.js → chunk-6PRNSLMB.js} +11 -6
  43. package/chunks/chunk-6PVPNMXU.js +29 -0
  44. package/chunks/{chunk-BDBMYST4.js → chunk-6X4GWOPW.js} +1 -1
  45. package/chunks/{chunk-4ODB7WIB.js → chunk-6ZBPS62S.js} +1 -1
  46. package/chunks/{chunk-SMR34EQM.js → chunk-766HLFAG.js} +54 -33
  47. package/chunks/{chunk-J5CK6QYL.js → chunk-76OFFG6L.js} +137 -5
  48. package/chunks/{chunk-AU2GX7QQ.js → chunk-7LH6CHKG.js} +1 -1
  49. package/chunks/{chunk-A2F633L4.js → chunk-7NDXG4MB.js} +60 -35
  50. package/chunks/{chunk-QCCOKIGW.js → chunk-7SWFAKVH.js} +22 -22
  51. package/chunks/{chunk-AYCDXHZB.js → chunk-7Z6JQEL6.js} +1 -1
  52. package/chunks/{chunk-CMFMPPKV.js → chunk-AZD6KAV7.js} +3 -3
  53. package/chunks/{chunk-7YBZGNEC.js → chunk-BKZEHVPV.js} +176 -168
  54. package/chunks/{chunk-M2DASLLB.js → chunk-BWQRDISK.js} +1 -1
  55. package/chunks/{chunk-EELSDL62.js → chunk-BZAEENUV.js} +3 -3
  56. package/chunks/{chunk-DFQGFXMQ.js → chunk-CHXKGIMK.js} +1 -1
  57. package/chunks/{chunk-W2LKWG6I.js → chunk-D53NR4GO.js} +562 -301
  58. package/chunks/{chunk-P5OX37TK.js → chunk-D6ZOVZLF.js} +5 -1
  59. package/chunks/{chunk-NBMIC7DR.js → chunk-D7WXIW7H.js} +4 -4
  60. package/chunks/{chunk-VT3KBCIU.js → chunk-DPRMI6NU.js} +1 -1
  61. package/chunks/{chunk-JXWFXSLN.js → chunk-DRIXALGM.js} +2 -2
  62. package/chunks/{chunk-5SCI6E3E.js → chunk-E4IMU4Y5.js} +1 -1
  63. package/chunks/{chunk-EMMNRTQX.js → chunk-EC2ET5ZZ.js} +1 -1
  64. package/chunks/{chunk-NNDKJNCC.js → chunk-EFIOE2EH.js} +3 -3
  65. package/chunks/{chunk-7H2JMOPS.js → chunk-EWXXMRMP.js} +3 -3
  66. package/chunks/{chunk-NEEB7UEN.js → chunk-FFFM6NJV.js} +1 -2
  67. package/chunks/{chunk-3PG4G7SK.js → chunk-G6LRTI62.js} +4 -4
  68. package/chunks/{chunk-RTEHQUAD.js → chunk-GEB2CGUV.js} +11024 -7988
  69. package/chunks/{chunk-OONJNQ42.js → chunk-GPSKDNEE.js} +3 -3
  70. package/chunks/{chunk-FNGK2Z5B.js → chunk-H4AR2JQF.js} +3 -3
  71. package/chunks/chunk-HTR4WV6U.js +327 -0
  72. package/chunks/chunk-IS2SBY6T.js +2256 -0
  73. package/chunks/{chunk-G45X5TRN.js → chunk-JCW2R7WC.js} +1 -72
  74. package/chunks/{chunk-4E33SVWA.js → chunk-JHFVJQRO.js} +1 -1
  75. package/chunks/{chunk-BL7EEZ4Y.js → chunk-JIBBZH37.js} +27 -23
  76. package/chunks/{chunk-UJEZQ562.js → chunk-JJEFX6U5.js} +3 -3
  77. package/chunks/{chunk-UTBTCPKF.js → chunk-JKFHJK5U.js} +4 -4
  78. package/chunks/{chunk-XSSAJZXG.js → chunk-JO7FGOSY.js} +5 -5
  79. package/chunks/{chunk-CAKC64KX.js → chunk-JTUAAVUT.js} +2 -2
  80. package/chunks/{chunk-MAQQGNQ5.js → chunk-JYS55H6Z.js} +66 -7
  81. package/chunks/{chunk-D742634K.js → chunk-KDPIV6WC.js} +29 -2
  82. package/chunks/{chunk-EIAK6Q2B.js → chunk-KHOVYUHX.js} +2 -2
  83. package/chunks/{chunk-OLMETXLX.js → chunk-KQQ757OQ.js} +2 -2
  84. package/chunks/{chunk-7AB5URLY.js → chunk-KSZZBDVD.js} +165 -48
  85. package/chunks/chunk-KWK7UE6L.js +6194 -0
  86. package/chunks/{chunk-OOCI5VVU.js → chunk-LIZRAKPB.js} +1 -1
  87. package/chunks/{chunk-2T2FG7OX.js → chunk-LPMBFOWH.js} +73 -68
  88. package/chunks/{chunk-UNIQ7KNW.js → chunk-LYEKAAEH.js} +5 -5
  89. package/chunks/chunk-M7WBGLYP.js +151 -0
  90. package/chunks/{chunk-LB7ZIQ6C.js → chunk-MTSYH4MB.js} +3 -3
  91. package/chunks/{chunk-7YK65ZFC.js → chunk-N5ARKAVE.js} +8 -8
  92. package/chunks/chunk-NABLFI57.js +82 -0
  93. package/chunks/{chunk-PXVAFBEI.js → chunk-NNFK277W.js} +1 -1
  94. package/chunks/{chunk-467G3SV5.js → chunk-NPQDJGKU.js} +1 -1
  95. package/chunks/chunk-OQ5SYCPE.js +10017 -0
  96. package/chunks/{chunk-C27BYUX6.js → chunk-OQB4EXO4.js} +14 -11
  97. package/chunks/{chunk-WCPQTUDI.js → chunk-OUDZVU7H.js} +242 -1607
  98. package/chunks/{chunk-C44MIZ2K.js → chunk-PBED7USE.js} +1 -1
  99. package/chunks/{chunk-C5Z652G4.js → chunk-PIHKWN7M.js} +1 -1
  100. package/chunks/{chunk-NL37SKPP.js → chunk-PPIHLGNE.js} +2 -2
  101. package/chunks/{chunk-ORDXX5SE.js → chunk-PSVSP2OS.js} +6 -6
  102. package/chunks/{chunk-SKQD5RCT.js → chunk-Q2V2ADXF.js} +7 -7
  103. package/chunks/{chunk-JDI67JFB.js → chunk-Q2YKNMLS.js} +3 -3
  104. package/chunks/{chunk-L4PEDXOX.js → chunk-Q3GGJDYN.js} +5 -5
  105. package/chunks/{chunk-PBATSWUQ.js → chunk-QBUDF33N.js} +1 -1
  106. package/chunks/{chunk-OMH3276Y.js → chunk-QD6BRERJ.js} +7 -7
  107. package/chunks/{chunk-Y2ENGUD6.js → chunk-QKTHJXCS.js} +1 -1
  108. package/chunks/{chunk-BVLROR2T.js → chunk-QLJUC7TG.js} +1 -1
  109. package/chunks/{chunk-UEY4AYUL.js → chunk-QNLNLENL.js} +2 -2
  110. package/chunks/{chunk-2F7HITKF.js → chunk-QSJ6JIF5.js} +4 -4
  111. package/chunks/{chunk-2R7OXGYM.js → chunk-QUHJRRUA.js} +126 -30
  112. package/chunks/{chunk-WJYCCJ3Q.js → chunk-R3BCL5XW.js} +10 -4
  113. package/chunks/{chunk-YXBZOR3D.js → chunk-R7MPKABX.js} +307 -86
  114. package/chunks/{chunk-RFIAR4YL.js → chunk-RV4C2ZFG.js} +1 -1
  115. package/chunks/{chunk-NIJEXGV6.js → chunk-RVLZCXEE.js} +79 -10
  116. package/chunks/{chunk-NRPP5TOB.js → chunk-RYSMKY43.js} +4 -4
  117. package/chunks/{chunk-XBAYQWDL.js → chunk-S3YQCNJE.js} +3 -3
  118. package/chunks/{chunk-3P4TUBON.js → chunk-SP32MK6J.js} +2 -2
  119. package/chunks/{chunk-JNWZQ27S.js → chunk-SP5WRGVG.js} +3 -3
  120. package/chunks/{chunk-FSL5W5TI.js → chunk-T2L47JJK.js} +3 -3
  121. package/chunks/{chunk-TB6UDU4T.js → chunk-THJNPLI4.js} +16 -16
  122. package/chunks/{chunk-3XZIXCJY.js → chunk-TPR35HHZ.js} +6 -6
  123. package/chunks/{chunk-L4BZXQR3.js → chunk-TXRKCFWS.js} +6 -6
  124. package/chunks/chunk-U7ZFW55U.js +2098 -0
  125. package/chunks/{chunk-W7H223ZZ.js → chunk-UGYMA4EI.js} +1 -1
  126. package/chunks/{chunk-X6YQWCIJ.js → chunk-UH3WSE5L.js} +13 -1
  127. package/chunks/{chunk-R3VWUU2E.js → chunk-VYPFXUCB.js} +1 -1
  128. package/chunks/{chunk-IMVIN5UC.js → chunk-WCFTQD7H.js} +11 -11
  129. package/chunks/chunk-WHGVTP7Q.js +1049 -0
  130. package/chunks/{chunk-PC2QR5QO.js → chunk-WML6JOGQ.js} +31 -19
  131. package/chunks/{chunk-D2VIDMVM.js → chunk-X6N25LXS.js} +2 -2
  132. package/chunks/{chunk-YHRBVZ53.js → chunk-X7XWGRDT.js} +4 -4
  133. package/chunks/chunk-XHATNRQA.js +1500 -0
  134. package/chunks/{chunk-2RDNKVZ2.js → chunk-Y2DAH52F.js} +7 -6
  135. package/chunks/{chunk-S35ZDXOS.js → chunk-YM3SZTH4.js} +2 -1
  136. package/chunks/{chunk-GKY2OJ7R.js → chunk-ZHERRXZJ.js} +1 -1
  137. package/chunks/{computer-use-KQVQD3IW.js → computer-use-MV4K6WJM.js} +41 -37
  138. package/chunks/{config-utils-6FXFJUYB.js → config-utils-WYUQ7II4.js} +3 -3
  139. package/chunks/{contextCommand-IOC5HY6R.js → contextCommand-TQD36VNX.js} +38 -34
  140. package/chunks/{create-sub-session-X5RVIHCK.js → create-sub-session-AZ77LBL3.js} +3 -3
  141. package/chunks/{create-sub-session-IOAGEN3O.js → create-sub-session-JOW4BKMC.js} +36 -32
  142. package/chunks/{cron-create-AC5FFLN7.js → cron-create-KTWJM7QT.js} +5 -5
  143. package/chunks/{cron-delete-JEB3FAHA.js → cron-delete-2P3I5ULL.js} +5 -5
  144. package/chunks/{cron-list-NBYPCNIB.js → cron-list-PXDPGEDQ.js} +5 -5
  145. package/chunks/{daemon-RG2MAI6T.js → daemon-KLPTQIE4.js} +138 -81
  146. package/chunks/daemon-status-provider-TII4SMCZ.js +81 -0
  147. package/chunks/{de-I7ZIYXZC.js → de-4IBXM7CN.js} +5 -1
  148. package/chunks/{dist-2BHAYBKP.js → dist-HMU6CYS4.js} +2 -2
  149. package/chunks/{dist-AU7NQQRP.js → dist-OAV7LJGJ.js} +1 -1
  150. package/chunks/{dist-FUTEXY6A.js → dist-OMW6WDEO.js} +1 -1
  151. package/chunks/{dist-2MIU4UUH.js → dist-PJLG2XYX.js} +1 -1
  152. package/chunks/{dist-53PZYC5B.js → dist-UIFWIFRO.js} +2 -2
  153. package/chunks/{dist-WGTQO7F2.js → dist-XRYV6TJP.js} +65 -25
  154. package/chunks/{earlyInputCapture-7AA4D4RF.js → earlyInputCapture-2V57RG6H.js} +37 -33
  155. package/chunks/{edit-RQXZUTEU.js → edit-TTUH7PWR.js} +43 -41
  156. package/chunks/{en-XE34GKAA.js → en-USMCCJAJ.js} +5 -1
  157. package/chunks/{enter-worktree-BPYKHGTX.js → enter-worktree-D4IVCXYB.js} +41 -37
  158. package/chunks/{enterPlanMode-VJ3KR5HM.js → enterPlanMode-WRUJTVYN.js} +47 -38
  159. package/chunks/{environment-PZYHWWG5.js → environment-SEPKXB2C.js} +38 -34
  160. package/chunks/{errors-NZ6JOKJB.js → errors-YSVGBLBU.js} +38 -34
  161. package/chunks/{exit-worktree-TZNABJPX.js → exit-worktree-MZ4JSSP6.js} +41 -37
  162. package/chunks/{exitPlanMode-RZMERKLI.js → exitPlanMode-HAZLSSOJ.js} +41 -37
  163. package/chunks/{fast-path-F5UWH7GI.js → fast-path-EVBVIE2U.js} +4 -3
  164. package/chunks/{fast-path-settings-DAOVFADC.js → fast-path-settings-XB3CPUJT.js} +2 -2
  165. package/chunks/{fr-X7KDVZIY.js → fr-WVHEBDDB.js} +5 -1
  166. package/chunks/{gemini-2QJRGIKD.js → gemini-APQ76464.js} +100 -95
  167. package/chunks/{geminiContentGenerator-Q7IAYVM4.js → geminiContentGenerator-LB4MA2LI.js} +5 -5
  168. package/chunks/{getMachineId-bsd-EXV7SWPA.js → getMachineId-bsd-QFVLPUPT.js} +1 -1
  169. package/chunks/{getMachineId-darwin-IUOMFXU3.js → getMachineId-darwin-DGMQQE2E.js} +1 -1
  170. package/chunks/{getMachineId-linux-K7XJYFHL.js → getMachineId-linux-R4Z6CSWC.js} +1 -1
  171. package/chunks/{getMachineId-unsupported-EA5FDRJ6.js → getMachineId-unsupported-Z3SBVBUV.js} +1 -1
  172. package/chunks/{getMachineId-win-KBA6RAI5.js → getMachineId-win-SCK5UFDT.js} +1 -1
  173. package/chunks/{glob-MP7IPPNS.js → glob-LABYMYKG.js} +43 -39
  174. package/chunks/{grep-OHN54Z7A.js → grep-HKIKJCAS.js} +43 -39
  175. package/chunks/{handleAutoUpdate-EGCO46FV.js → handleAutoUpdate-RWAAL2UM.js} +40 -36
  176. package/chunks/{i18n-4LK42EK5.js → i18n-ZUVDAJIJ.js} +37 -33
  177. package/chunks/{initializer-DAL5QAZU.js → initializer-7YUHIC36.js} +43 -39
  178. package/chunks/{installationInfo-HOKGVMMQ.js → installationInfo-DVEOMWDE.js} +39 -33
  179. package/chunks/{ja-2ICT3KXF.js → ja-KY4ROZTE.js} +5 -1
  180. package/chunks/{keychain-token-storage-DWRJMNH3.js → keychain-token-storage-6ACJDYIB.js} +3 -3
  181. package/chunks/list-WHCZSIR2.js +82 -0
  182. package/chunks/{loadedSettingsAdapter-I42UOUE7.js → loadedSettingsAdapter-YCWN6AK3.js} +42 -38
  183. package/chunks/{loop-wakeup-HMHCT5GU.js → loop-wakeup-RNMRVA66.js} +6 -6
  184. package/chunks/{ls-IW5HYDG4.js → ls-J2ZI5XYK.js} +5 -5
  185. package/chunks/{lsp-4RL52YIZ.js → lsp-UMS3NUB5.js} +3 -3
  186. package/chunks/managed-npm-update-PG3463CJ.js +333 -0
  187. package/chunks/{mcp-62XOYOXZ.js → mcp-VLHDCKAN.js} +42 -38
  188. package/chunks/{monitor-YIHFTVM7.js → monitor-GG4F4YM6.js} +41 -37
  189. package/chunks/nonInteractiveCli-UYXYV4YX.js +133 -0
  190. package/chunks/{notebook-edit-XK4J36D3.js → notebook-edit-US4VLN6Q.js} +44 -42
  191. package/chunks/{openaiContentGenerator-OEIKDARY.js → openaiContentGenerator-CVEDTMDB.js} +20 -18
  192. package/chunks/{pidfile-2XVZMMKS.js → pidfile-QQ45OIOY.js} +37 -33
  193. package/chunks/{processUtils-SYFMMDPV.js → processUtils-3WMHLQE5.js} +2 -2
  194. package/chunks/{pt-JJ4XPIBP.js → pt-OK455PLH.js} +5 -1
  195. package/chunks/{qwenContentGenerator-LTTPUWV3.js → qwenContentGenerator-Y2GRNYZQ.js} +42 -38
  196. package/chunks/{qwenOAuth2-U3X6UBDP.js → qwenOAuth2-J2X6E5VO.js} +18 -16
  197. package/chunks/{read-file-P6IEAOBS.js → read-file-C7Z266CU.js} +13 -11
  198. package/chunks/{read-mcp-resource-OIBCNIX7.js → read-mcp-resource-F6HYMDUY.js} +3 -3
  199. package/chunks/{record-artifact-HDMK4LHG.js → record-artifact-7GCFLDD7.js} +3 -3
  200. package/chunks/{resumeHistoryUtils-WMJ5TUPF.js → resumeHistoryUtils-KBQWX77U.js} +43 -39
  201. package/chunks/{ripGrep-US5HKBSM.js → ripGrep-RW26MTQ3.js} +36 -32
  202. package/chunks/{ru-STR4KTW7.js → ru-7SPDGMGD.js} +5 -1
  203. package/chunks/{run-qwen-serve-MIFJODT4.js → run-qwen-serve-MXFMOMEL.js} +104 -82
  204. package/chunks/{runtime-SK5QH53T.js → runtime-APNO3V6D.js} +48 -42
  205. package/chunks/{scheduler-4TIUONHH.js → scheduler-L6FYCGVO.js} +36 -32
  206. package/chunks/sdk-exporters-grpc-ETLH47EP.js +23214 -0
  207. package/chunks/sdk-exporters-http-IDGLRBGP.js +563 -0
  208. package/chunks/sdk-impl-5ESZBGJQ.js +9186 -0
  209. package/chunks/{send-message-WXVVK4DB.js → send-message-PYIJ2PZL.js} +6 -4
  210. package/chunks/{serve-F6VZULAL.js → serve-6QBXDVWT.js} +42 -38
  211. package/chunks/{server-UJEZDWGO.js → server-5TJJEMVQ.js} +1006 -305
  212. package/chunks/{session-PFCYZOZJ.js → session-BWEUHKQB.js} +92 -176
  213. package/chunks/{settings-7UHALRNO.js → settings-O7IUQNRR.js} +45 -41
  214. package/chunks/{shell-DY7EASPT.js → shell-R5L4NQYY.js} +36 -32
  215. package/chunks/{skill-DOZBVXRT.js → skill-ITEOSNW6.js} +24 -20
  216. package/chunks/{spawnChannel-HT7EQ4SL.js → spawnChannel-E7NTWSGW.js} +38 -34
  217. package/chunks/{src-VJO75DQQ.js → src-FFXGUTNL.js} +303 -237
  218. package/chunks/{standalone-update-5ERAJGLE.js → standalone-update-JCJOXW4P.js} +38 -34
  219. package/chunks/{startInteractiveUI-HYMIOBH7.js → startInteractiveUI-IJSBLZFO.js} +1057 -864
  220. package/chunks/{syntheticOutput-HCUFXSIA.js → syntheticOutput-H7RTI5KL.js} +4 -4
  221. package/chunks/{task-create-RIY5JTFC.js → task-create-7474AJJD.js} +10 -8
  222. package/chunks/{task-list-XBUCV3CO.js → task-list-633HGOIB.js} +6 -6
  223. package/chunks/{task-stop-QDFCCYR5.js → task-stop-MNUGHPIA.js} +3 -3
  224. package/chunks/{task-update-7PXKJQOI.js → task-update-66GQB5LI.js} +10 -8
  225. package/chunks/{team-create-NF3FCZE2.js → team-create-OVSZTJZO.js} +44 -40
  226. package/chunks/{team-delete-TNSSE2S5.js → team-delete-BB3CG3QF.js} +6 -6
  227. package/chunks/{team-plan-approval-P5U7U4NW.js → team-plan-approval-SLEVDLT5.js} +41 -37
  228. package/chunks/{theme-manager-WD73RXOX.js → theme-manager-V6ZQISHM.js} +37 -33
  229. package/chunks/{todoWrite-OMAIGB6V.js → todoWrite-KRAUN54W.js} +5 -5
  230. package/chunks/{tool-search-TDMA733L.js → tool-search-KYIF6C6E.js} +21 -17
  231. package/chunks/{total-session-admission-H3XZPCNC.js → total-session-admission-EU77XTL7.js} +42 -38
  232. package/chunks/{tree-sitter-VJEPTDMU.js → tree-sitter-4D7QS7F6.js} +1 -1
  233. package/chunks/{tree-sitter-bash-WFKBO43W.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
  234. package/chunks/{trustedFolders-NEFWXHU2.js → trustedFolders-DDEF3ADH.js} +37 -33
  235. package/chunks/{update-relaunch-T2XQQC4W.js → update-relaunch-XEZTDP6K.js} +17 -17
  236. package/chunks/updateCheck-KZ5LZ545.js +89 -0
  237. package/chunks/{useAutoAcceptIndicator-5FLFR3BY.js → useAutoAcceptIndicator-47EZERGQ.js} +47 -43
  238. package/chunks/{validateNonInterActiveAuth-Z23SJ4D4.js → validateNonInterActiveAuth-J2DM4LWZ.js} +79 -75
  239. package/chunks/{version-PLKW23RX.js → version-PN7WYXHP.js} +1 -1
  240. package/chunks/{web-fetch-QNI3EEXN.js → web-fetch-WRI5QRFR.js} +100 -42
  241. package/chunks/{web-search-DLYTQBNN.js → web-search-2HCXNAVX.js} +111 -60
  242. package/chunks/{workflow-A3WFSQKU.js → workflow-U5XBPGQZ.js} +48 -43
  243. package/chunks/{workspace-providers-status-6K34OJLQ.js → workspace-providers-status-2T54GIJZ.js} +45 -41
  244. package/chunks/{workspace-registration-store-6FPLTQG3.js → workspace-registration-store-F3V4KBIW.js} +8 -2
  245. package/chunks/{workspace-registry-JZRIJXJS.js → workspace-registry-U6QVZ5BU.js} +42 -38
  246. package/chunks/{workspace-service-PQDLBZV3.js → workspace-service-734D36QD.js} +49 -45
  247. package/chunks/{workspace-skills-status-RKCPZVT2.js → workspace-skills-status-5ABUKOAQ.js} +43 -39
  248. package/chunks/write-file-CIH4I4CS.js +66 -0
  249. package/chunks/{zh-TW-4RR3YHNN.js → zh-TW-BM47YBFH.js} +5 -1
  250. package/chunks/{zh-6ANG2HTL.js → zh-WY5DWYZD.js} +5 -1
  251. package/cli-entry.js +164 -12
  252. package/cli.js +18 -11
  253. package/locales/ca.js +772 -203
  254. package/locales/de.js +8 -2
  255. package/locales/en.js +8 -2
  256. package/locales/fr.js +8 -2
  257. package/locales/ja.js +8 -2
  258. package/locales/pt.js +8 -2
  259. package/locales/ru.js +8 -2
  260. package/locales/zh-TW.js +8 -2
  261. package/locales/zh.js +8 -2
  262. package/package.json +3 -3
  263. package/web-shell/assets/{arc-Buk1besA.js → arc-ByltRugA.js} +1 -1
  264. package/web-shell/assets/{architectureDiagram-3BPJPVTR-B1aUKYDC.js → architectureDiagram-3BPJPVTR-CCRTto5d.js} +1 -1
  265. package/web-shell/assets/{blockDiagram-GPEHLZMM-CRTdg3Zx.js → blockDiagram-GPEHLZMM-Jfy36u1L.js} +1 -1
  266. package/web-shell/assets/{c4Diagram-AAUBKEIU-DFdRMp5g.js → c4Diagram-AAUBKEIU-4d5FfEZ0.js} +1 -1
  267. package/web-shell/assets/channel-4N2UIFcG.js +1 -0
  268. package/web-shell/assets/{chunk-2J33WTMH-4rYQdkEI.js → chunk-2J33WTMH-BPwxCEro.js} +1 -1
  269. package/web-shell/assets/{chunk-4BX2VUAB-Coi-pQJy.js → chunk-4BX2VUAB-jY7ZmJWY.js} +1 -1
  270. package/web-shell/assets/{chunk-55IACEB6-BtBjz02t.js → chunk-55IACEB6-C98HgCsS.js} +1 -1
  271. package/web-shell/assets/{chunk-727SXJPM-CGYOWorl.js → chunk-727SXJPM-cDu-ge-q.js} +1 -1
  272. package/web-shell/assets/{chunk-AQP2D5EJ-CH5AKhqx.js → chunk-AQP2D5EJ-BKdJwxXK.js} +1 -1
  273. package/web-shell/assets/{chunk-FMBD7UC4-Cd50-w85.js → chunk-FMBD7UC4-DnuxqwMu.js} +1 -1
  274. package/web-shell/assets/{chunk-ND2GUHAM-C2wF3KCK.js → chunk-ND2GUHAM-C4fZNPv0.js} +1 -1
  275. package/web-shell/assets/{chunk-QZHKN3VN-pCeRTaWi.js → chunk-QZHKN3VN-Cf4XWOmz.js} +1 -1
  276. package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +1 -0
  277. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +1 -0
  278. package/web-shell/assets/{cose-bilkent-S5V4N54A-B-_fAB6D.js → cose-bilkent-S5V4N54A-C82mFiqj.js} +1 -1
  279. package/web-shell/assets/{dagre-BM42HDAG-ChSPNHpL.js → dagre-BM42HDAG-Df8KACER.js} +1 -1
  280. package/web-shell/assets/{diagram-2AECGRRQ-BX7cFOF3.js → diagram-2AECGRRQ-EzNs7s_2.js} +1 -1
  281. package/web-shell/assets/{diagram-5GNKFQAL-BQUTW92n.js → diagram-5GNKFQAL-BRLNvreg.js} +1 -1
  282. package/web-shell/assets/{diagram-KO2AKTUF-BkYPh3e4.js → diagram-KO2AKTUF-2HLYHRjC.js} +1 -1
  283. package/web-shell/assets/{diagram-LMA3HP47-Cl6jsNyx.js → diagram-LMA3HP47-DeH0NzSp.js} +1 -1
  284. package/web-shell/assets/{diagram-OG6HWLK6-DRWoHz8n.js → diagram-OG6HWLK6-k5Gn47-G.js} +1 -1
  285. package/web-shell/assets/{erDiagram-TEJ5UH35-CGvFcZco.js → erDiagram-TEJ5UH35-gPHFo79f.js} +1 -1
  286. package/web-shell/assets/{flowDiagram-I6XJVG4X-vms6oVdv.js → flowDiagram-I6XJVG4X-DYBOiTRW.js} +1 -1
  287. package/web-shell/assets/{ganttDiagram-6RSMTGT7-ukT_sfmi.js → ganttDiagram-6RSMTGT7-cxjAuic9.js} +1 -1
  288. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Bn2ZE2Ut.js → gitGraphDiagram-PVQCEYII-3nPqpmCP.js} +1 -1
  289. package/web-shell/assets/index-B7jzUZ_s.css +5 -0
  290. package/web-shell/assets/{index-wFXp7W68.js → index-Cl8d-1bK.js} +1 -1
  291. package/web-shell/assets/index-gE8OWwj_.js +1197 -0
  292. package/web-shell/assets/{infoDiagram-5YYISTIA-DHJdSi7x.js → infoDiagram-5YYISTIA-Dph21pR5.js} +1 -1
  293. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DOvd2Wph.js → ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js} +1 -1
  294. package/web-shell/assets/{journeyDiagram-JHISSGLW-CH_urMCT.js → journeyDiagram-JHISSGLW-CR-IzvnU.js} +1 -1
  295. package/web-shell/assets/{kanban-definition-UN3LZRKU-FKiBdgbH.js → kanban-definition-UN3LZRKU-BYmuybuC.js} +1 -1
  296. package/web-shell/assets/{linear-0ZVQFVKf.js → linear-CngEEoy8.js} +1 -1
  297. package/web-shell/assets/{mermaid.core-DJ05ZZIK.js → mermaid.core-G6fbZRPf.js} +5 -5
  298. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BPuUhkUm.js → mindmap-definition-RKZ34NQL-BtnqnUwJ.js} +1 -1
  299. package/web-shell/assets/{pieDiagram-4H26LBE5-yLFKcXyG.js → pieDiagram-4H26LBE5-XTq6UHIA.js} +1 -1
  300. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-irWqc1pE.js → quadrantDiagram-W4KKPZXB-D1J5PrsS.js} +1 -1
  301. package/web-shell/assets/{requirementDiagram-4Y6WPE33-B_4uMoIV.js → requirementDiagram-4Y6WPE33-CLcBUy3t.js} +1 -1
  302. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-ciA4GPwk.js → sankeyDiagram-5OEKKPKP-iwKV02_6.js} +1 -1
  303. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CRdZvy0U.js → sequenceDiagram-3UESZ5HK-7NFYQcEX.js} +1 -1
  304. package/web-shell/assets/{stateDiagram-AJRCARHV-DaYIkCCn.js → stateDiagram-AJRCARHV-Bvm4Wih6.js} +1 -1
  305. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +1 -0
  306. package/web-shell/assets/{timeline-definition-PNZ67QCA-oBUKv6iH.js → timeline-definition-PNZ67QCA-B4FZFE9O.js} +1 -1
  307. package/web-shell/assets/{vennDiagram-CIIHVFJN-CGW9Sdmb.js → vennDiagram-CIIHVFJN-CvMBpmtL.js} +1 -1
  308. package/web-shell/assets/{wardley-L42UT6IY-CvwKJOCm.js → wardley-L42UT6IY-E3ag2327.js} +1 -1
  309. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-Ipc260sN.js → wardleyDiagram-YWT4CUSO-BEXWlgxC.js} +1 -1
  310. package/web-shell/assets/{xychartDiagram-2RQKCTM6-D6-CM7pK.js → xychartDiagram-2RQKCTM6-CICK05gI.js} +1 -1
  311. package/web-shell/index.html +2 -2
  312. package/chunks/chunk-6YS6TQB3.js +0 -45
  313. package/chunks/chunk-ETD6K42I.js +0 -358
  314. package/chunks/chunk-HAL7YT4M.js +0 -74639
  315. package/chunks/chunk-W7FJ3N32.js +0 -49
  316. package/chunks/daemon-status-provider-DYDVT4S5.js +0 -77
  317. package/chunks/list-M5NNXMQQ.js +0 -78
  318. package/chunks/nonInteractiveCli-Z73R2B3B.js +0 -129
  319. package/chunks/updateCheck-G5JYMVJZ.js +0 -73
  320. package/chunks/write-file-LHZENZ2A.js +0 -599
  321. package/web-shell/assets/channel-04R0vLbG.js +0 -1
  322. package/web-shell/assets/classDiagram-4FO5ZUOK-Bw9SOwAV.js +0 -1
  323. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Bw9SOwAV.js +0 -1
  324. package/web-shell/assets/index-DgkKrjw3.js +0 -1187
  325. package/web-shell/assets/index-Rv6mOAN9.css +0 -5
  326. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DWBoO4UY.js +0 -1
  327. package/chunks/{chunk-PEJWA3QQ.js → chunk-QZJY47IE.js} +5 -5
@@ -8,18 +8,15 @@ import {
8
8
  } from "./chunk-QHTIBUWB.js";
9
9
  import {
10
10
  t
11
- } from "./chunk-IMVIN5UC.js";
11
+ } from "./chunk-WCFTQD7H.js";
12
12
  import {
13
- require_clean,
14
- require_constants,
15
- require_debug,
16
- require_identifiers,
17
- require_parse,
18
- require_parse_options,
19
- require_re,
20
- require_semver,
21
- require_valid
22
- } from "./chunk-URK542T4.js";
13
+ require_diff,
14
+ require_gt,
15
+ require_semver
16
+ } from "./chunk-XHATNRQA.js";
17
+ import {
18
+ getNpmCliPath
19
+ } from "./chunk-KDPIV6WC.js";
23
20
  import {
24
21
  getPackageJson
25
22
  } from "./chunk-VJNBRRZG.js";
@@ -33,7 +30,7 @@ import {
33
30
  } from "./chunk-E2UVIFI2.js";
34
31
  import {
35
32
  createDebugLogger
36
- } from "./chunk-C27BYUX6.js";
33
+ } from "./chunk-OQB4EXO4.js";
37
34
  import {
38
35
  __qwen_dirname,
39
36
  init_esbuild_shims
@@ -46,73 +43,6 @@ import {
46
43
  __toESM
47
44
  } from "./chunk-J2S4EL5Y.js";
48
45
 
49
- // node_modules/semver/functions/diff.js
50
- var require_diff = __commonJS({
51
- "node_modules/semver/functions/diff.js"(exports, module) {
52
- "use strict";
53
- init_esbuild_shims();
54
- var parse = require_parse();
55
- var diff = /* @__PURE__ */ __name((version1, version2) => {
56
- const v1 = parse(version1, null, true);
57
- const v2 = parse(version2, null, true);
58
- const comparison = v1.compare(v2);
59
- if (comparison === 0) {
60
- return null;
61
- }
62
- const v1Higher = comparison > 0;
63
- const highVersion = v1Higher ? v1 : v2;
64
- const lowVersion = v1Higher ? v2 : v1;
65
- const highHasPre = !!highVersion.prerelease.length;
66
- const lowHasPre = !!lowVersion.prerelease.length;
67
- if (lowHasPre && !highHasPre) {
68
- if (!lowVersion.patch && !lowVersion.minor) {
69
- return "major";
70
- }
71
- if (lowVersion.compareMain(highVersion) === 0) {
72
- if (lowVersion.minor && !lowVersion.patch) {
73
- return "minor";
74
- }
75
- return "patch";
76
- }
77
- }
78
- const prefix = highHasPre ? "pre" : "";
79
- if (v1.major !== v2.major) {
80
- return prefix + "major";
81
- }
82
- if (v1.minor !== v2.minor) {
83
- return prefix + "minor";
84
- }
85
- if (v1.patch !== v2.patch) {
86
- return prefix + "patch";
87
- }
88
- return "prerelease";
89
- }, "diff");
90
- module.exports = diff;
91
- }
92
- });
93
-
94
- // node_modules/semver/functions/compare.js
95
- var require_compare = __commonJS({
96
- "node_modules/semver/functions/compare.js"(exports, module) {
97
- "use strict";
98
- init_esbuild_shims();
99
- var SemVer = require_semver();
100
- var compare = /* @__PURE__ */ __name((a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose)), "compare");
101
- module.exports = compare;
102
- }
103
- });
104
-
105
- // node_modules/semver/functions/gt.js
106
- var require_gt = __commonJS({
107
- "node_modules/semver/functions/gt.js"(exports, module) {
108
- "use strict";
109
- init_esbuild_shims();
110
- var compare = require_compare();
111
- var gt = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) > 0, "gt");
112
- module.exports = gt;
113
- }
114
- });
115
-
116
46
  // node_modules/rc/node_modules/ini/ini.js
117
47
  var require_ini = __commonJS({
118
48
  "node_modules/rc/node_modules/ini/ini.js"(exports) {
@@ -359,7 +289,7 @@ var require_utils = __commonJS({
359
289
  init_esbuild_shims();
360
290
  var fs5 = __require("fs");
361
291
  var ini2 = require_ini();
362
- var path9 = __require("path");
292
+ var path10 = __require("path");
363
293
  var stripJsonComments = require_strip_json_comments();
364
294
  var parse = exports.parse = function(content) {
365
295
  if (/^\s*{/.test(content))
@@ -373,7 +303,7 @@ var require_utils = __commonJS({
373
303
  for (var i in args)
374
304
  if ("string" !== typeof args[i])
375
305
  return;
376
- var file2 = path9.join.apply(null, args);
306
+ var file2 = path10.join.apply(null, args);
377
307
  var content;
378
308
  try {
379
309
  return fs5.readFileSync(file2, "utf-8");
@@ -411,15 +341,15 @@ var require_utils = __commonJS({
411
341
  return obj;
412
342
  };
413
343
  var find = exports.find = function() {
414
- var rel = path9.join.apply(null, [].slice.call(arguments));
344
+ var rel = path10.join.apply(null, [].slice.call(arguments));
415
345
  function find2(start, rel2) {
416
- var file2 = path9.join(start, rel2);
346
+ var file2 = path10.join(start, rel2);
417
347
  try {
418
348
  fs5.statSync(file2);
419
349
  return file2;
420
350
  } catch (err) {
421
- if (path9.dirname(start) !== start)
422
- return find2(path9.dirname(start), rel2);
351
+ if (path10.dirname(start) !== start)
352
+ return find2(path10.dirname(start), rel2);
423
353
  }
424
354
  }
425
355
  __name(find2, "find");
@@ -851,14 +781,14 @@ var require_polyfills = __commonJS({
851
781
  fs5.fstatSync = statFixSync(fs5.fstatSync);
852
782
  fs5.lstatSync = statFixSync(fs5.lstatSync);
853
783
  if (fs5.chmod && !fs5.lchmod) {
854
- fs5.lchmod = function(path9, mode, cb) {
784
+ fs5.lchmod = function(path10, mode, cb) {
855
785
  if (cb) process.nextTick(cb);
856
786
  };
857
787
  fs5.lchmodSync = function() {
858
788
  };
859
789
  }
860
790
  if (fs5.chown && !fs5.lchown) {
861
- fs5.lchown = function(path9, uid, gid, cb) {
791
+ fs5.lchown = function(path10, uid, gid, cb) {
862
792
  if (cb) process.nextTick(cb);
863
793
  };
864
794
  fs5.lchownSync = function() {
@@ -927,9 +857,9 @@ var require_polyfills = __commonJS({
927
857
  };
928
858
  }(fs5.readSync);
929
859
  function patchLchmod(fs6) {
930
- fs6.lchmod = function(path9, mode, callback) {
860
+ fs6.lchmod = function(path10, mode, callback) {
931
861
  fs6.open(
932
- path9,
862
+ path10,
933
863
  constants.O_WRONLY | constants.O_SYMLINK,
934
864
  mode,
935
865
  function(err, fd) {
@@ -945,8 +875,8 @@ var require_polyfills = __commonJS({
945
875
  }
946
876
  );
947
877
  };
948
- fs6.lchmodSync = function(path9, mode) {
949
- var fd = fs6.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
878
+ fs6.lchmodSync = function(path10, mode) {
879
+ var fd = fs6.openSync(path10, constants.O_WRONLY | constants.O_SYMLINK, mode);
950
880
  var threw = true;
951
881
  var ret;
952
882
  try {
@@ -968,8 +898,8 @@ var require_polyfills = __commonJS({
968
898
  __name(patchLchmod, "patchLchmod");
969
899
  function patchLutimes(fs6) {
970
900
  if (constants.hasOwnProperty("O_SYMLINK") && fs6.futimes) {
971
- fs6.lutimes = function(path9, at, mt, cb) {
972
- fs6.open(path9, constants.O_SYMLINK, function(er, fd) {
901
+ fs6.lutimes = function(path10, at, mt, cb) {
902
+ fs6.open(path10, constants.O_SYMLINK, function(er, fd) {
973
903
  if (er) {
974
904
  if (cb) cb(er);
975
905
  return;
@@ -981,8 +911,8 @@ var require_polyfills = __commonJS({
981
911
  });
982
912
  });
983
913
  };
984
- fs6.lutimesSync = function(path9, at, mt) {
985
- var fd = fs6.openSync(path9, constants.O_SYMLINK);
914
+ fs6.lutimesSync = function(path10, at, mt) {
915
+ var fd = fs6.openSync(path10, constants.O_SYMLINK);
986
916
  var ret;
987
917
  var threw = true;
988
918
  try {
@@ -1111,11 +1041,11 @@ var require_legacy_streams = __commonJS({
1111
1041
  ReadStream,
1112
1042
  WriteStream
1113
1043
  };
1114
- function ReadStream(path9, options) {
1115
- if (!(this instanceof ReadStream)) return new ReadStream(path9, options);
1044
+ function ReadStream(path10, options) {
1045
+ if (!(this instanceof ReadStream)) return new ReadStream(path10, options);
1116
1046
  Stream.call(this);
1117
1047
  var self = this;
1118
- this.path = path9;
1048
+ this.path = path10;
1119
1049
  this.fd = null;
1120
1050
  this.readable = true;
1121
1051
  this.paused = false;
@@ -1161,10 +1091,10 @@ var require_legacy_streams = __commonJS({
1161
1091
  });
1162
1092
  }
1163
1093
  __name(ReadStream, "ReadStream");
1164
- function WriteStream(path9, options) {
1165
- if (!(this instanceof WriteStream)) return new WriteStream(path9, options);
1094
+ function WriteStream(path10, options) {
1095
+ if (!(this instanceof WriteStream)) return new WriteStream(path10, options);
1166
1096
  Stream.call(this);
1167
- this.path = path9;
1097
+ this.path = path10;
1168
1098
  this.fd = null;
1169
1099
  this.writable = true;
1170
1100
  this.flags = "w";
@@ -1316,14 +1246,14 @@ var require_graceful_fs2 = __commonJS({
1316
1246
  fs6.createWriteStream = createWriteStream;
1317
1247
  var fs$readFile = fs6.readFile;
1318
1248
  fs6.readFile = readFile;
1319
- function readFile(path9, options, cb) {
1249
+ function readFile(path10, options, cb) {
1320
1250
  if (typeof options === "function")
1321
1251
  cb = options, options = null;
1322
- return go$readFile(path9, options, cb);
1323
- function go$readFile(path10, options2, cb2, startTime) {
1324
- return fs$readFile(path10, options2, function(err) {
1252
+ return go$readFile(path10, options, cb);
1253
+ function go$readFile(path11, options2, cb2, startTime) {
1254
+ return fs$readFile(path11, options2, function(err) {
1325
1255
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1326
- enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
1256
+ enqueue([go$readFile, [path11, options2, cb2], err, startTime || Date.now(), Date.now()]);
1327
1257
  else {
1328
1258
  if (typeof cb2 === "function")
1329
1259
  cb2.apply(this, arguments);
@@ -1335,14 +1265,14 @@ var require_graceful_fs2 = __commonJS({
1335
1265
  __name(readFile, "readFile");
1336
1266
  var fs$writeFile = fs6.writeFile;
1337
1267
  fs6.writeFile = writeFile;
1338
- function writeFile(path9, data, options, cb) {
1268
+ function writeFile(path10, data, options, cb) {
1339
1269
  if (typeof options === "function")
1340
1270
  cb = options, options = null;
1341
- return go$writeFile(path9, data, options, cb);
1342
- function go$writeFile(path10, data2, options2, cb2, startTime) {
1343
- return fs$writeFile(path10, data2, options2, function(err) {
1271
+ return go$writeFile(path10, data, options, cb);
1272
+ function go$writeFile(path11, data2, options2, cb2, startTime) {
1273
+ return fs$writeFile(path11, data2, options2, function(err) {
1344
1274
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1345
- enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1275
+ enqueue([go$writeFile, [path11, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1346
1276
  else {
1347
1277
  if (typeof cb2 === "function")
1348
1278
  cb2.apply(this, arguments);
@@ -1355,14 +1285,14 @@ var require_graceful_fs2 = __commonJS({
1355
1285
  var fs$appendFile = fs6.appendFile;
1356
1286
  if (fs$appendFile)
1357
1287
  fs6.appendFile = appendFile;
1358
- function appendFile(path9, data, options, cb) {
1288
+ function appendFile(path10, data, options, cb) {
1359
1289
  if (typeof options === "function")
1360
1290
  cb = options, options = null;
1361
- return go$appendFile(path9, data, options, cb);
1362
- function go$appendFile(path10, data2, options2, cb2, startTime) {
1363
- return fs$appendFile(path10, data2, options2, function(err) {
1291
+ return go$appendFile(path10, data, options, cb);
1292
+ function go$appendFile(path11, data2, options2, cb2, startTime) {
1293
+ return fs$appendFile(path11, data2, options2, function(err) {
1364
1294
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1365
- enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1295
+ enqueue([go$appendFile, [path11, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1366
1296
  else {
1367
1297
  if (typeof cb2 === "function")
1368
1298
  cb2.apply(this, arguments);
@@ -1397,31 +1327,31 @@ var require_graceful_fs2 = __commonJS({
1397
1327
  var fs$readdir = fs6.readdir;
1398
1328
  fs6.readdir = readdir;
1399
1329
  var noReaddirOptionVersions = /^v[0-5]\./;
1400
- function readdir(path9, options, cb) {
1330
+ function readdir(path10, options, cb) {
1401
1331
  if (typeof options === "function")
1402
1332
  cb = options, options = null;
1403
- var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path10, options2, cb2, startTime) {
1404
- return fs$readdir(path10, fs$readdirCallback(
1405
- path10,
1333
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path11, options2, cb2, startTime) {
1334
+ return fs$readdir(path11, fs$readdirCallback(
1335
+ path11,
1406
1336
  options2,
1407
1337
  cb2,
1408
1338
  startTime
1409
1339
  ));
1410
- }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path10, options2, cb2, startTime) {
1411
- return fs$readdir(path10, options2, fs$readdirCallback(
1412
- path10,
1340
+ }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path11, options2, cb2, startTime) {
1341
+ return fs$readdir(path11, options2, fs$readdirCallback(
1342
+ path11,
1413
1343
  options2,
1414
1344
  cb2,
1415
1345
  startTime
1416
1346
  ));
1417
1347
  }, "go$readdir");
1418
- return go$readdir(path9, options, cb);
1419
- function fs$readdirCallback(path10, options2, cb2, startTime) {
1348
+ return go$readdir(path10, options, cb);
1349
+ function fs$readdirCallback(path11, options2, cb2, startTime) {
1420
1350
  return function(err, files) {
1421
1351
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1422
1352
  enqueue([
1423
1353
  go$readdir,
1424
- [path10, options2, cb2],
1354
+ [path11, options2, cb2],
1425
1355
  err,
1426
1356
  startTime || Date.now(),
1427
1357
  Date.now()
@@ -1494,7 +1424,7 @@ var require_graceful_fs2 = __commonJS({
1494
1424
  enumerable: true,
1495
1425
  configurable: true
1496
1426
  });
1497
- function ReadStream(path9, options) {
1427
+ function ReadStream(path10, options) {
1498
1428
  if (this instanceof ReadStream)
1499
1429
  return fs$ReadStream.apply(this, arguments), this;
1500
1430
  else
@@ -1516,7 +1446,7 @@ var require_graceful_fs2 = __commonJS({
1516
1446
  });
1517
1447
  }
1518
1448
  __name(ReadStream$open, "ReadStream$open");
1519
- function WriteStream(path9, options) {
1449
+ function WriteStream(path10, options) {
1520
1450
  if (this instanceof WriteStream)
1521
1451
  return fs$WriteStream.apply(this, arguments), this;
1522
1452
  else
@@ -1536,24 +1466,24 @@ var require_graceful_fs2 = __commonJS({
1536
1466
  });
1537
1467
  }
1538
1468
  __name(WriteStream$open, "WriteStream$open");
1539
- function createReadStream(path9, options) {
1540
- return new fs6.ReadStream(path9, options);
1469
+ function createReadStream(path10, options) {
1470
+ return new fs6.ReadStream(path10, options);
1541
1471
  }
1542
1472
  __name(createReadStream, "createReadStream");
1543
- function createWriteStream(path9, options) {
1544
- return new fs6.WriteStream(path9, options);
1473
+ function createWriteStream(path10, options) {
1474
+ return new fs6.WriteStream(path10, options);
1545
1475
  }
1546
1476
  __name(createWriteStream, "createWriteStream");
1547
1477
  var fs$open = fs6.open;
1548
1478
  fs6.open = open;
1549
- function open(path9, flags, mode, cb) {
1479
+ function open(path10, flags, mode, cb) {
1550
1480
  if (typeof mode === "function")
1551
1481
  cb = mode, mode = null;
1552
- return go$open(path9, flags, mode, cb);
1553
- function go$open(path10, flags2, mode2, cb2, startTime) {
1554
- return fs$open(path10, flags2, mode2, function(err, fd) {
1482
+ return go$open(path10, flags, mode, cb);
1483
+ function go$open(path11, flags2, mode2, cb2, startTime) {
1484
+ return fs$open(path11, flags2, mode2, function(err, fd) {
1555
1485
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1556
- enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1486
+ enqueue([go$open, [path11, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1557
1487
  else {
1558
1488
  if (typeof cb2 === "function")
1559
1489
  cb2.apply(this, arguments);
@@ -1948,7 +1878,7 @@ var require_config_chain = __commonJS({
1948
1878
  "node_modules/config-chain/index.js"(exports, module) {
1949
1879
  init_esbuild_shims();
1950
1880
  var ProtoList = require_proto_list();
1951
- var path9 = __require("path");
1881
+ var path10 = __require("path");
1952
1882
  var fs5 = __require("fs");
1953
1883
  var ini2 = require_ini2();
1954
1884
  var EE = __require("events").EventEmitter;
@@ -1963,15 +1893,15 @@ var require_config_chain = __commonJS({
1963
1893
  return conf;
1964
1894
  };
1965
1895
  var find = exports.find = function() {
1966
- var rel = path9.join.apply(null, [].slice.call(arguments));
1896
+ var rel = path10.join.apply(null, [].slice.call(arguments));
1967
1897
  function find2(start, rel2) {
1968
- var file = path9.join(start, rel2);
1898
+ var file = path10.join(start, rel2);
1969
1899
  try {
1970
1900
  fs5.statSync(file);
1971
1901
  return file;
1972
1902
  } catch (err) {
1973
- if (path9.dirname(start) !== start)
1974
- return find2(path9.dirname(start), rel2);
1903
+ if (path10.dirname(start) !== start)
1904
+ return find2(path10.dirname(start), rel2);
1975
1905
  }
1976
1906
  }
1977
1907
  __name(find2, "find");
@@ -2003,7 +1933,7 @@ var require_config_chain = __commonJS({
2003
1933
  var args = [].slice.call(arguments).filter(function(arg) {
2004
1934
  return arg != null;
2005
1935
  });
2006
- var file = path9.join.apply(null, args);
1936
+ var file = path10.join.apply(null, args);
2007
1937
  var content;
2008
1938
  try {
2009
1939
  content = fs5.readFileSync(file, "utf-8");
@@ -2274,7 +2204,7 @@ var require_util = __commonJS({
2274
2204
  "use strict";
2275
2205
  init_esbuild_shims();
2276
2206
  var fs5 = __require("fs");
2277
- var path9 = __require("path");
2207
+ var path10 = __require("path");
2278
2208
  var { envReplace } = require_dist2();
2279
2209
  var parseKey = /* @__PURE__ */ __name((key) => {
2280
2210
  if (typeof key !== "string") {
@@ -2287,7 +2217,7 @@ var require_util = __commonJS({
2287
2217
  return field;
2288
2218
  }
2289
2219
  const typeList = [].concat(types[key]);
2290
- const isPath = typeList.indexOf(path9) !== -1;
2220
+ const isPath = typeList.indexOf(path10) !== -1;
2291
2221
  const isBool = typeList.indexOf(Boolean) !== -1;
2292
2222
  const isString2 = typeList.indexOf(String) !== -1;
2293
2223
  const isNumber = typeList.indexOf(Number) !== -1;
@@ -2321,9 +2251,9 @@ var require_util = __commonJS({
2321
2251
  if (isPath) {
2322
2252
  const regex = process.platform === "win32" ? /^~(\/|\\)/ : /^~\//;
2323
2253
  if (regex.test(field) && process.env.HOME) {
2324
- field = path9.resolve(process.env.HOME, field.substr(2));
2254
+ field = path10.resolve(process.env.HOME, field.substr(2));
2325
2255
  }
2326
- field = path9.resolve(field);
2256
+ field = path10.resolve(field);
2327
2257
  }
2328
2258
  if (isNumber && !isNaN(field)) {
2329
2259
  field = Number(field);
@@ -2331,10 +2261,10 @@ var require_util = __commonJS({
2331
2261
  return field;
2332
2262
  }, "parseField");
2333
2263
  var findPrefix = /* @__PURE__ */ __name((name) => {
2334
- name = path9.resolve(name);
2264
+ name = path10.resolve(name);
2335
2265
  let walkedUp = false;
2336
- while (path9.basename(name) === "node_modules") {
2337
- name = path9.dirname(name);
2266
+ while (path10.basename(name) === "node_modules") {
2267
+ name = path10.dirname(name);
2338
2268
  walkedUp = true;
2339
2269
  }
2340
2270
  if (walkedUp) {
@@ -2350,7 +2280,7 @@ var require_util = __commonJS({
2350
2280
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
2351
2281
  return name2;
2352
2282
  }
2353
- const dirname = path9.dirname(name2);
2283
+ const dirname = path10.dirname(name2);
2354
2284
  if (dirname === name2) {
2355
2285
  return original;
2356
2286
  }
@@ -2379,7 +2309,7 @@ var require_types = __commonJS({
2379
2309
  "node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
2380
2310
  "use strict";
2381
2311
  init_esbuild_shims();
2382
- var path9 = __require("path");
2312
+ var path10 = __require("path");
2383
2313
  var Stream = __require("stream").Stream;
2384
2314
  var url = __require("url");
2385
2315
  var Umask = /* @__PURE__ */ __name(() => {
@@ -2397,8 +2327,8 @@ var require_types = __commonJS({
2397
2327
  "bin-links": Boolean,
2398
2328
  browser: [null, String],
2399
2329
  ca: [null, String, Array],
2400
- cafile: path9,
2401
- cache: path9,
2330
+ cafile: path10,
2331
+ cache: path10,
2402
2332
  "cache-lock-stale": Number,
2403
2333
  "cache-lock-retries": Number,
2404
2334
  "cache-lock-wait": Number,
@@ -2422,7 +2352,7 @@ var require_types = __commonJS({
2422
2352
  "git-tag-version": Boolean,
2423
2353
  "commit-hooks": Boolean,
2424
2354
  global: Boolean,
2425
- globalconfig: path9,
2355
+ globalconfig: path10,
2426
2356
  "global-style": Boolean,
2427
2357
  group: [Number, String],
2428
2358
  "https-proxy": [null, url],
@@ -2432,7 +2362,7 @@ var require_types = __commonJS({
2432
2362
  "if-present": Boolean,
2433
2363
  "ignore-prepublish": Boolean,
2434
2364
  "ignore-scripts": Boolean,
2435
- "init-module": path9,
2365
+ "init-module": path10,
2436
2366
  "init-author-name": String,
2437
2367
  "init-author-email": String,
2438
2368
  "init-author-url": ["", url],
@@ -2465,7 +2395,7 @@ var require_types = __commonJS({
2465
2395
  parseable: Boolean,
2466
2396
  "prefer-offline": Boolean,
2467
2397
  "prefer-online": Boolean,
2468
- prefix: path9,
2398
+ prefix: path10,
2469
2399
  production: Boolean,
2470
2400
  progress: Boolean,
2471
2401
  proxy: [null, false, url],
@@ -2498,12 +2428,12 @@ var require_types = __commonJS({
2498
2428
  "strict-ssl": Boolean,
2499
2429
  tag: String,
2500
2430
  timing: Boolean,
2501
- tmp: path9,
2431
+ tmp: path10,
2502
2432
  unicode: Boolean,
2503
2433
  "unsafe-perm": Boolean,
2504
2434
  usage: Boolean,
2505
2435
  user: [Number, String],
2506
- userconfig: path9,
2436
+ userconfig: path10,
2507
2437
  umask: Umask,
2508
2438
  version: Boolean,
2509
2439
  "tag-version-prefix": String,
@@ -2521,7 +2451,7 @@ var require_conf = __commonJS({
2521
2451
  init_esbuild_shims();
2522
2452
  var { readCAFileSync } = require_dist();
2523
2453
  var fs5 = __require("fs");
2524
- var path9 = __require("path");
2454
+ var path10 = __require("path");
2525
2455
  var { ConfigChain } = require_config_chain();
2526
2456
  var envKeyToSetting = require_envKeyToSetting();
2527
2457
  var util = require_util();
@@ -2602,7 +2532,7 @@ var require_conf = __commonJS({
2602
2532
  this.set("prefix", prefix);
2603
2533
  }, "set"),
2604
2534
  get: /* @__PURE__ */ __name(() => {
2605
- return path9.resolve(this.get("prefix"));
2535
+ return path10.resolve(this.get("prefix"));
2606
2536
  }, "get")
2607
2537
  });
2608
2538
  let p;
@@ -2616,7 +2546,7 @@ var require_conf = __commonJS({
2616
2546
  }, "get")
2617
2547
  });
2618
2548
  if (Object.prototype.hasOwnProperty.call(cli, "prefix")) {
2619
- p = path9.resolve(cli.prefix);
2549
+ p = path10.resolve(cli.prefix);
2620
2550
  } else {
2621
2551
  try {
2622
2552
  const prefix = util.findPrefix(process.cwd());
@@ -2647,7 +2577,7 @@ var require_conf = __commonJS({
2647
2577
  defConf.user = Number(process.env.SUDO_UID);
2648
2578
  return;
2649
2579
  }
2650
- const prefix = path9.resolve(this.get("prefix"));
2580
+ const prefix = path10.resolve(this.get("prefix"));
2651
2581
  try {
2652
2582
  const stats = fs5.statSync(prefix);
2653
2583
  defConf.user = stats.uid;
@@ -2686,7 +2616,7 @@ var require_defaults = __commonJS({
2686
2616
  "use strict";
2687
2617
  init_esbuild_shims();
2688
2618
  var os6 = __require("os");
2689
- var path9 = __require("path");
2619
+ var path10 = __require("path");
2690
2620
  var temp = os6.tmpdir();
2691
2621
  var uidOrPid = process.getuid ? process.getuid() : process.pid;
2692
2622
  var hasUnicode = /* @__PURE__ */ __name(() => true, "hasUnicode");
@@ -2702,11 +2632,11 @@ var require_defaults = __commonJS({
2702
2632
  if (home) {
2703
2633
  process.env.HOME = home;
2704
2634
  } else {
2705
- home = path9.resolve(temp, "npm-" + uidOrPid);
2635
+ home = path10.resolve(temp, "npm-" + uidOrPid);
2706
2636
  }
2707
2637
  var cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
2708
2638
  var cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
2709
- var cache = path9.resolve(cacheRoot, cacheExtra);
2639
+ var cache = path10.resolve(cacheRoot, cacheExtra);
2710
2640
  var defaults;
2711
2641
  var globalPrefix;
2712
2642
  Object.defineProperty(exports, "defaults", {
@@ -2715,11 +2645,11 @@ var require_defaults = __commonJS({
2715
2645
  if (process.env.PREFIX) {
2716
2646
  globalPrefix = process.env.PREFIX;
2717
2647
  } else if (process.platform === "win32") {
2718
- globalPrefix = path9.dirname(process.execPath);
2648
+ globalPrefix = path10.dirname(process.execPath);
2719
2649
  } else {
2720
- globalPrefix = path9.dirname(path9.dirname(process.execPath));
2650
+ globalPrefix = path10.dirname(path10.dirname(process.execPath));
2721
2651
  if (process.env.DESTDIR) {
2722
- globalPrefix = path9.join(process.env.DESTDIR, globalPrefix);
2652
+ globalPrefix = path10.join(process.env.DESTDIR, globalPrefix);
2723
2653
  }
2724
2654
  }
2725
2655
  defaults = {
@@ -2757,7 +2687,7 @@ var require_defaults = __commonJS({
2757
2687
  "git-tag-version": true,
2758
2688
  "commit-hooks": true,
2759
2689
  global: false,
2760
- globalconfig: path9.resolve(globalPrefix, "etc", "npmrc"),
2690
+ globalconfig: path10.resolve(globalPrefix, "etc", "npmrc"),
2761
2691
  "global-style": false,
2762
2692
  group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
2763
2693
  "ham-it-up": false,
@@ -2765,7 +2695,7 @@ var require_defaults = __commonJS({
2765
2695
  "if-present": false,
2766
2696
  "ignore-prepublish": false,
2767
2697
  "ignore-scripts": false,
2768
- "init-module": path9.resolve(home, ".npm-init.js"),
2698
+ "init-module": path10.resolve(home, ".npm-init.js"),
2769
2699
  "init-author-name": "",
2770
2700
  "init-author-email": "",
2771
2701
  "init-author-url": "",
@@ -2836,7 +2766,7 @@ var require_defaults = __commonJS({
2836
2766
  "unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
2837
2767
  usage: false,
2838
2768
  user: process.platform === "win32" ? 0 : "nobody",
2839
- userconfig: path9.resolve(home, ".npmrc"),
2769
+ userconfig: path10.resolve(home, ".npmrc"),
2840
2770
  umask: process.umask ? process.umask() : umask.fromString("022"),
2841
2771
  version: false,
2842
2772
  versions: false,
@@ -2854,7 +2784,7 @@ var require_npm_conf = __commonJS({
2854
2784
  "node_modules/@pnpm/npm-conf/index.js"(exports, module) {
2855
2785
  "use strict";
2856
2786
  init_esbuild_shims();
2857
- var path9 = __require("path");
2787
+ var path10 = __require("path");
2858
2788
  var Conf = require_conf();
2859
2789
  var _defaults = require_defaults();
2860
2790
  module.exports = (opts, types, defaults) => {
@@ -2871,12 +2801,12 @@ var require_npm_conf = __commonJS({
2871
2801
  failedToLoadBuiltInConfig = true;
2872
2802
  }
2873
2803
  if (npmPath) {
2874
- warnings.push(conf.addFile(path9.resolve(path9.dirname(npmPath), "..", "npmrc"), "builtin"));
2804
+ warnings.push(conf.addFile(path10.resolve(path10.dirname(npmPath), "..", "npmrc"), "builtin"));
2875
2805
  }
2876
2806
  }
2877
2807
  conf.addEnv();
2878
2808
  conf.loadPrefix();
2879
- const projectConf = path9.resolve(conf.localPrefix, ".npmrc");
2809
+ const projectConf = path10.resolve(conf.localPrefix, ".npmrc");
2880
2810
  const userConf = conf.get("userconfig");
2881
2811
  if (!conf.get("global") && projectConf !== userConf) {
2882
2812
  warnings.push(conf.addFile(projectConf, "project"));
@@ -2884,14 +2814,14 @@ var require_npm_conf = __commonJS({
2884
2814
  conf.add({}, "project");
2885
2815
  }
2886
2816
  if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
2887
- const workspaceConf = path9.resolve(conf.get("workspace-prefix"), ".npmrc");
2817
+ const workspaceConf = path10.resolve(conf.get("workspace-prefix"), ".npmrc");
2888
2818
  warnings.push(conf.addFile(workspaceConf, "workspace"));
2889
2819
  }
2890
2820
  warnings.push(conf.addFile(conf.get("userconfig"), "user"));
2891
2821
  if (conf.get("prefix")) {
2892
- const etc = path9.resolve(conf.get("prefix"), "etc");
2893
- conf.root.globalconfig = path9.resolve(etc, "npmrc");
2894
- conf.root.globalignorefile = path9.resolve(etc, "npmignore");
2822
+ const etc = path10.resolve(conf.get("prefix"), "etc");
2823
+ conf.root.globalconfig = path10.resolve(etc, "npmrc");
2824
+ conf.root.globalignorefile = path10.resolve(etc, "npmignore");
2895
2825
  }
2896
2826
  warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
2897
2827
  conf.loadUser();
@@ -2979,8 +2909,8 @@ var require_registry_auth_token = __commonJS({
2979
2909
  return { token, type: "Basic" };
2980
2910
  }
2981
2911
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
2982
- function normalizePath(path9) {
2983
- return path9[path9.length - 1] === "/" ? path9 : path9 + "/";
2912
+ function normalizePath(path10) {
2913
+ return path10[path10.length - 1] === "/" ? path10 : path10 + "/";
2984
2914
  }
2985
2915
  __name(normalizePath, "normalizePath");
2986
2916
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -3040,1413 +2970,6 @@ var require_registry_auth_token = __commonJS({
3040
2970
  }
3041
2971
  });
3042
2972
 
3043
- // node_modules/semver/functions/inc.js
3044
- var require_inc = __commonJS({
3045
- "node_modules/semver/functions/inc.js"(exports, module) {
3046
- "use strict";
3047
- init_esbuild_shims();
3048
- var SemVer = require_semver();
3049
- var inc = /* @__PURE__ */ __name((version, release, options, identifier, identifierBase) => {
3050
- if (typeof options === "string") {
3051
- identifierBase = identifier;
3052
- identifier = options;
3053
- options = void 0;
3054
- }
3055
- try {
3056
- return new SemVer(
3057
- version instanceof SemVer ? version.version : version,
3058
- options
3059
- ).inc(release, identifier, identifierBase).version;
3060
- } catch (er) {
3061
- return null;
3062
- }
3063
- }, "inc");
3064
- module.exports = inc;
3065
- }
3066
- });
3067
-
3068
- // node_modules/semver/functions/major.js
3069
- var require_major = __commonJS({
3070
- "node_modules/semver/functions/major.js"(exports, module) {
3071
- "use strict";
3072
- init_esbuild_shims();
3073
- var SemVer = require_semver();
3074
- var major = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).major, "major");
3075
- module.exports = major;
3076
- }
3077
- });
3078
-
3079
- // node_modules/semver/functions/minor.js
3080
- var require_minor = __commonJS({
3081
- "node_modules/semver/functions/minor.js"(exports, module) {
3082
- "use strict";
3083
- init_esbuild_shims();
3084
- var SemVer = require_semver();
3085
- var minor = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).minor, "minor");
3086
- module.exports = minor;
3087
- }
3088
- });
3089
-
3090
- // node_modules/semver/functions/patch.js
3091
- var require_patch = __commonJS({
3092
- "node_modules/semver/functions/patch.js"(exports, module) {
3093
- "use strict";
3094
- init_esbuild_shims();
3095
- var SemVer = require_semver();
3096
- var patch = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).patch, "patch");
3097
- module.exports = patch;
3098
- }
3099
- });
3100
-
3101
- // node_modules/semver/functions/prerelease.js
3102
- var require_prerelease = __commonJS({
3103
- "node_modules/semver/functions/prerelease.js"(exports, module) {
3104
- "use strict";
3105
- init_esbuild_shims();
3106
- var parse = require_parse();
3107
- var prerelease = /* @__PURE__ */ __name((version, options) => {
3108
- const parsed = parse(version, options);
3109
- return parsed && parsed.prerelease.length ? parsed.prerelease : null;
3110
- }, "prerelease");
3111
- module.exports = prerelease;
3112
- }
3113
- });
3114
-
3115
- // node_modules/semver/functions/rcompare.js
3116
- var require_rcompare = __commonJS({
3117
- "node_modules/semver/functions/rcompare.js"(exports, module) {
3118
- "use strict";
3119
- init_esbuild_shims();
3120
- var compare = require_compare();
3121
- var rcompare = /* @__PURE__ */ __name((a, b, loose) => compare(b, a, loose), "rcompare");
3122
- module.exports = rcompare;
3123
- }
3124
- });
3125
-
3126
- // node_modules/semver/functions/compare-loose.js
3127
- var require_compare_loose = __commonJS({
3128
- "node_modules/semver/functions/compare-loose.js"(exports, module) {
3129
- "use strict";
3130
- init_esbuild_shims();
3131
- var compare = require_compare();
3132
- var compareLoose = /* @__PURE__ */ __name((a, b) => compare(a, b, true), "compareLoose");
3133
- module.exports = compareLoose;
3134
- }
3135
- });
3136
-
3137
- // node_modules/semver/functions/compare-build.js
3138
- var require_compare_build = __commonJS({
3139
- "node_modules/semver/functions/compare-build.js"(exports, module) {
3140
- "use strict";
3141
- init_esbuild_shims();
3142
- var SemVer = require_semver();
3143
- var compareBuild = /* @__PURE__ */ __name((a, b, loose) => {
3144
- const versionA = new SemVer(a, loose);
3145
- const versionB = new SemVer(b, loose);
3146
- return versionA.compare(versionB) || versionA.compareBuild(versionB);
3147
- }, "compareBuild");
3148
- module.exports = compareBuild;
3149
- }
3150
- });
3151
-
3152
- // node_modules/semver/functions/sort.js
3153
- var require_sort = __commonJS({
3154
- "node_modules/semver/functions/sort.js"(exports, module) {
3155
- "use strict";
3156
- init_esbuild_shims();
3157
- var compareBuild = require_compare_build();
3158
- var sort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b) => compareBuild(a, b, loose)), "sort");
3159
- module.exports = sort;
3160
- }
3161
- });
3162
-
3163
- // node_modules/semver/functions/rsort.js
3164
- var require_rsort = __commonJS({
3165
- "node_modules/semver/functions/rsort.js"(exports, module) {
3166
- "use strict";
3167
- init_esbuild_shims();
3168
- var compareBuild = require_compare_build();
3169
- var rsort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b) => compareBuild(b, a, loose)), "rsort");
3170
- module.exports = rsort;
3171
- }
3172
- });
3173
-
3174
- // node_modules/semver/functions/lt.js
3175
- var require_lt = __commonJS({
3176
- "node_modules/semver/functions/lt.js"(exports, module) {
3177
- "use strict";
3178
- init_esbuild_shims();
3179
- var compare = require_compare();
3180
- var lt = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) < 0, "lt");
3181
- module.exports = lt;
3182
- }
3183
- });
3184
-
3185
- // node_modules/semver/functions/eq.js
3186
- var require_eq = __commonJS({
3187
- "node_modules/semver/functions/eq.js"(exports, module) {
3188
- "use strict";
3189
- init_esbuild_shims();
3190
- var compare = require_compare();
3191
- var eq = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) === 0, "eq");
3192
- module.exports = eq;
3193
- }
3194
- });
3195
-
3196
- // node_modules/semver/functions/neq.js
3197
- var require_neq = __commonJS({
3198
- "node_modules/semver/functions/neq.js"(exports, module) {
3199
- "use strict";
3200
- init_esbuild_shims();
3201
- var compare = require_compare();
3202
- var neq = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) !== 0, "neq");
3203
- module.exports = neq;
3204
- }
3205
- });
3206
-
3207
- // node_modules/semver/functions/gte.js
3208
- var require_gte = __commonJS({
3209
- "node_modules/semver/functions/gte.js"(exports, module) {
3210
- "use strict";
3211
- init_esbuild_shims();
3212
- var compare = require_compare();
3213
- var gte = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) >= 0, "gte");
3214
- module.exports = gte;
3215
- }
3216
- });
3217
-
3218
- // node_modules/semver/functions/lte.js
3219
- var require_lte = __commonJS({
3220
- "node_modules/semver/functions/lte.js"(exports, module) {
3221
- "use strict";
3222
- init_esbuild_shims();
3223
- var compare = require_compare();
3224
- var lte = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) <= 0, "lte");
3225
- module.exports = lte;
3226
- }
3227
- });
3228
-
3229
- // node_modules/semver/functions/cmp.js
3230
- var require_cmp = __commonJS({
3231
- "node_modules/semver/functions/cmp.js"(exports, module) {
3232
- "use strict";
3233
- init_esbuild_shims();
3234
- var eq = require_eq();
3235
- var neq = require_neq();
3236
- var gt = require_gt();
3237
- var gte = require_gte();
3238
- var lt = require_lt();
3239
- var lte = require_lte();
3240
- var cmp = /* @__PURE__ */ __name((a, op, b, loose) => {
3241
- switch (op) {
3242
- case "===":
3243
- if (typeof a === "object") {
3244
- a = a.version;
3245
- }
3246
- if (typeof b === "object") {
3247
- b = b.version;
3248
- }
3249
- return a === b;
3250
- case "!==":
3251
- if (typeof a === "object") {
3252
- a = a.version;
3253
- }
3254
- if (typeof b === "object") {
3255
- b = b.version;
3256
- }
3257
- return a !== b;
3258
- case "":
3259
- case "=":
3260
- case "==":
3261
- return eq(a, b, loose);
3262
- case "!=":
3263
- return neq(a, b, loose);
3264
- case ">":
3265
- return gt(a, b, loose);
3266
- case ">=":
3267
- return gte(a, b, loose);
3268
- case "<":
3269
- return lt(a, b, loose);
3270
- case "<=":
3271
- return lte(a, b, loose);
3272
- default:
3273
- throw new TypeError(`Invalid operator: ${op}`);
3274
- }
3275
- }, "cmp");
3276
- module.exports = cmp;
3277
- }
3278
- });
3279
-
3280
- // node_modules/semver/functions/coerce.js
3281
- var require_coerce = __commonJS({
3282
- "node_modules/semver/functions/coerce.js"(exports, module) {
3283
- "use strict";
3284
- init_esbuild_shims();
3285
- var SemVer = require_semver();
3286
- var parse = require_parse();
3287
- var { safeRe: re, t: t2 } = require_re();
3288
- var coerce = /* @__PURE__ */ __name((version, options) => {
3289
- if (version instanceof SemVer) {
3290
- return version;
3291
- }
3292
- if (typeof version === "number") {
3293
- version = String(version);
3294
- }
3295
- if (typeof version !== "string") {
3296
- return null;
3297
- }
3298
- options = options || {};
3299
- let match = null;
3300
- if (!options.rtl) {
3301
- match = version.match(options.includePrerelease ? re[t2.COERCEFULL] : re[t2.COERCE]);
3302
- } else {
3303
- const coerceRtlRegex = options.includePrerelease ? re[t2.COERCERTLFULL] : re[t2.COERCERTL];
3304
- let next;
3305
- while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
3306
- if (!match || next.index + next[0].length !== match.index + match[0].length) {
3307
- match = next;
3308
- }
3309
- coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
3310
- }
3311
- coerceRtlRegex.lastIndex = -1;
3312
- }
3313
- if (match === null) {
3314
- return null;
3315
- }
3316
- const major = match[2];
3317
- const minor = match[3] || "0";
3318
- const patch = match[4] || "0";
3319
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
3320
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
3321
- return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
3322
- }, "coerce");
3323
- module.exports = coerce;
3324
- }
3325
- });
3326
-
3327
- // node_modules/semver/internal/lrucache.js
3328
- var require_lrucache = __commonJS({
3329
- "node_modules/semver/internal/lrucache.js"(exports, module) {
3330
- "use strict";
3331
- init_esbuild_shims();
3332
- var LRUCache = class {
3333
- static {
3334
- __name(this, "LRUCache");
3335
- }
3336
- constructor() {
3337
- this.max = 1e3;
3338
- this.map = /* @__PURE__ */ new Map();
3339
- }
3340
- get(key) {
3341
- const value = this.map.get(key);
3342
- if (value === void 0) {
3343
- return void 0;
3344
- } else {
3345
- this.map.delete(key);
3346
- this.map.set(key, value);
3347
- return value;
3348
- }
3349
- }
3350
- delete(key) {
3351
- return this.map.delete(key);
3352
- }
3353
- set(key, value) {
3354
- const deleted = this.delete(key);
3355
- if (!deleted && value !== void 0) {
3356
- if (this.map.size >= this.max) {
3357
- const firstKey = this.map.keys().next().value;
3358
- this.delete(firstKey);
3359
- }
3360
- this.map.set(key, value);
3361
- }
3362
- return this;
3363
- }
3364
- };
3365
- module.exports = LRUCache;
3366
- }
3367
- });
3368
-
3369
- // node_modules/semver/classes/range.js
3370
- var require_range = __commonJS({
3371
- "node_modules/semver/classes/range.js"(exports, module) {
3372
- "use strict";
3373
- init_esbuild_shims();
3374
- var SPACE_CHARACTERS = /\s+/g;
3375
- var Range = class _Range {
3376
- static {
3377
- __name(this, "Range");
3378
- }
3379
- constructor(range, options) {
3380
- options = parseOptions(options);
3381
- if (range instanceof _Range) {
3382
- if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
3383
- return range;
3384
- } else {
3385
- return new _Range(range.raw, options);
3386
- }
3387
- }
3388
- if (range instanceof Comparator) {
3389
- this.raw = range.value;
3390
- this.set = [[range]];
3391
- this.formatted = void 0;
3392
- return this;
3393
- }
3394
- this.options = options;
3395
- this.loose = !!options.loose;
3396
- this.includePrerelease = !!options.includePrerelease;
3397
- this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
3398
- this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
3399
- if (!this.set.length) {
3400
- throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
3401
- }
3402
- if (this.set.length > 1) {
3403
- const first = this.set[0];
3404
- this.set = this.set.filter((c) => !isNullSet(c[0]));
3405
- if (this.set.length === 0) {
3406
- this.set = [first];
3407
- } else if (this.set.length > 1) {
3408
- for (const c of this.set) {
3409
- if (c.length === 1 && isAny(c[0])) {
3410
- this.set = [c];
3411
- break;
3412
- }
3413
- }
3414
- }
3415
- }
3416
- this.formatted = void 0;
3417
- }
3418
- get range() {
3419
- if (this.formatted === void 0) {
3420
- this.formatted = "";
3421
- for (let i = 0; i < this.set.length; i++) {
3422
- if (i > 0) {
3423
- this.formatted += "||";
3424
- }
3425
- const comps = this.set[i];
3426
- for (let k = 0; k < comps.length; k++) {
3427
- if (k > 0) {
3428
- this.formatted += " ";
3429
- }
3430
- this.formatted += comps[k].toString().trim();
3431
- }
3432
- }
3433
- }
3434
- return this.formatted;
3435
- }
3436
- format() {
3437
- return this.range;
3438
- }
3439
- toString() {
3440
- return this.range;
3441
- }
3442
- parseRange(range) {
3443
- const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
3444
- const memoKey = memoOpts + ":" + range;
3445
- const cached = cache.get(memoKey);
3446
- if (cached) {
3447
- return cached;
3448
- }
3449
- const loose = this.options.loose;
3450
- const hr = loose ? re[t2.HYPHENRANGELOOSE] : re[t2.HYPHENRANGE];
3451
- range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
3452
- debug("hyphen replace", range);
3453
- range = range.replace(re[t2.COMPARATORTRIM], comparatorTrimReplace);
3454
- debug("comparator trim", range);
3455
- range = range.replace(re[t2.TILDETRIM], tildeTrimReplace);
3456
- debug("tilde trim", range);
3457
- range = range.replace(re[t2.CARETTRIM], caretTrimReplace);
3458
- debug("caret trim", range);
3459
- let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
3460
- if (loose) {
3461
- rangeList = rangeList.filter((comp) => {
3462
- debug("loose invalid filter", comp, this.options);
3463
- return !!comp.match(re[t2.COMPARATORLOOSE]);
3464
- });
3465
- }
3466
- debug("range list", rangeList);
3467
- const rangeMap = /* @__PURE__ */ new Map();
3468
- const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
3469
- for (const comp of comparators) {
3470
- if (isNullSet(comp)) {
3471
- return [comp];
3472
- }
3473
- rangeMap.set(comp.value, comp);
3474
- }
3475
- if (rangeMap.size > 1 && rangeMap.has("")) {
3476
- rangeMap.delete("");
3477
- }
3478
- const result = [...rangeMap.values()];
3479
- cache.set(memoKey, result);
3480
- return result;
3481
- }
3482
- intersects(range, options) {
3483
- if (!(range instanceof _Range)) {
3484
- throw new TypeError("a Range is required");
3485
- }
3486
- return this.set.some((thisComparators) => {
3487
- return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
3488
- return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
3489
- return rangeComparators.every((rangeComparator) => {
3490
- return thisComparator.intersects(rangeComparator, options);
3491
- });
3492
- });
3493
- });
3494
- });
3495
- }
3496
- // if ANY of the sets match ALL of its comparators, then pass
3497
- test(version) {
3498
- if (!version) {
3499
- return false;
3500
- }
3501
- if (typeof version === "string") {
3502
- try {
3503
- version = new SemVer(version, this.options);
3504
- } catch (er) {
3505
- return false;
3506
- }
3507
- }
3508
- for (let i = 0; i < this.set.length; i++) {
3509
- if (testSet(this.set[i], version, this.options)) {
3510
- return true;
3511
- }
3512
- }
3513
- return false;
3514
- }
3515
- };
3516
- module.exports = Range;
3517
- var LRU = require_lrucache();
3518
- var cache = new LRU();
3519
- var parseOptions = require_parse_options();
3520
- var Comparator = require_comparator();
3521
- var debug = require_debug();
3522
- var SemVer = require_semver();
3523
- var {
3524
- safeRe: re,
3525
- t: t2,
3526
- comparatorTrimReplace,
3527
- tildeTrimReplace,
3528
- caretTrimReplace
3529
- } = require_re();
3530
- var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
3531
- var isNullSet = /* @__PURE__ */ __name((c) => c.value === "<0.0.0-0", "isNullSet");
3532
- var isAny = /* @__PURE__ */ __name((c) => c.value === "", "isAny");
3533
- var isSatisfiable = /* @__PURE__ */ __name((comparators, options) => {
3534
- let result = true;
3535
- const remainingComparators = comparators.slice();
3536
- let testComparator = remainingComparators.pop();
3537
- while (result && remainingComparators.length) {
3538
- result = remainingComparators.every((otherComparator) => {
3539
- return testComparator.intersects(otherComparator, options);
3540
- });
3541
- testComparator = remainingComparators.pop();
3542
- }
3543
- return result;
3544
- }, "isSatisfiable");
3545
- var parseComparator = /* @__PURE__ */ __name((comp, options) => {
3546
- comp = comp.replace(re[t2.BUILD], "");
3547
- debug("comp", comp, options);
3548
- comp = replaceCarets(comp, options);
3549
- debug("caret", comp);
3550
- comp = replaceTildes(comp, options);
3551
- debug("tildes", comp);
3552
- comp = replaceXRanges(comp, options);
3553
- debug("xrange", comp);
3554
- comp = replaceStars(comp, options);
3555
- debug("stars", comp);
3556
- return comp;
3557
- }, "parseComparator");
3558
- var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX");
3559
- var replaceTildes = /* @__PURE__ */ __name((comp, options) => {
3560
- return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
3561
- }, "replaceTildes");
3562
- var replaceTilde = /* @__PURE__ */ __name((comp, options) => {
3563
- const r = options.loose ? re[t2.TILDELOOSE] : re[t2.TILDE];
3564
- return comp.replace(r, (_, M, m, p, pr) => {
3565
- debug("tilde", comp, _, M, m, p, pr);
3566
- let ret;
3567
- if (isX(M)) {
3568
- ret = "";
3569
- } else if (isX(m)) {
3570
- ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
3571
- } else if (isX(p)) {
3572
- ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
3573
- } else if (pr) {
3574
- debug("replaceTilde pr", pr);
3575
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
3576
- } else {
3577
- ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
3578
- }
3579
- debug("tilde return", ret);
3580
- return ret;
3581
- });
3582
- }, "replaceTilde");
3583
- var replaceCarets = /* @__PURE__ */ __name((comp, options) => {
3584
- return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
3585
- }, "replaceCarets");
3586
- var replaceCaret = /* @__PURE__ */ __name((comp, options) => {
3587
- debug("caret", comp, options);
3588
- const r = options.loose ? re[t2.CARETLOOSE] : re[t2.CARET];
3589
- const z = options.includePrerelease ? "-0" : "";
3590
- return comp.replace(r, (_, M, m, p, pr) => {
3591
- debug("caret", comp, _, M, m, p, pr);
3592
- let ret;
3593
- if (isX(M)) {
3594
- ret = "";
3595
- } else if (isX(m)) {
3596
- ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
3597
- } else if (isX(p)) {
3598
- if (M === "0") {
3599
- ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
3600
- } else {
3601
- ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
3602
- }
3603
- } else if (pr) {
3604
- debug("replaceCaret pr", pr);
3605
- if (M === "0") {
3606
- if (m === "0") {
3607
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
3608
- } else {
3609
- ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
3610
- }
3611
- } else {
3612
- ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
3613
- }
3614
- } else {
3615
- debug("no pr");
3616
- if (M === "0") {
3617
- if (m === "0") {
3618
- ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
3619
- } else {
3620
- ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
3621
- }
3622
- } else {
3623
- ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
3624
- }
3625
- }
3626
- debug("caret return", ret);
3627
- return ret;
3628
- });
3629
- }, "replaceCaret");
3630
- var replaceXRanges = /* @__PURE__ */ __name((comp, options) => {
3631
- debug("replaceXRanges", comp, options);
3632
- return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
3633
- }, "replaceXRanges");
3634
- var replaceXRange = /* @__PURE__ */ __name((comp, options) => {
3635
- comp = comp.trim();
3636
- const r = options.loose ? re[t2.XRANGELOOSE] : re[t2.XRANGE];
3637
- return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
3638
- debug("xRange", comp, ret, gtlt, M, m, p, pr);
3639
- const xM = isX(M);
3640
- const xm = xM || isX(m);
3641
- const xp = xm || isX(p);
3642
- const anyX = xp;
3643
- if (gtlt === "=" && anyX) {
3644
- gtlt = "";
3645
- }
3646
- pr = options.includePrerelease ? "-0" : "";
3647
- if (xM) {
3648
- if (gtlt === ">" || gtlt === "<") {
3649
- ret = "<0.0.0-0";
3650
- } else {
3651
- ret = "*";
3652
- }
3653
- } else if (gtlt && anyX) {
3654
- if (xm) {
3655
- m = 0;
3656
- }
3657
- p = 0;
3658
- if (gtlt === ">") {
3659
- gtlt = ">=";
3660
- if (xm) {
3661
- M = +M + 1;
3662
- m = 0;
3663
- p = 0;
3664
- } else {
3665
- m = +m + 1;
3666
- p = 0;
3667
- }
3668
- } else if (gtlt === "<=") {
3669
- gtlt = "<";
3670
- if (xm) {
3671
- M = +M + 1;
3672
- } else {
3673
- m = +m + 1;
3674
- }
3675
- }
3676
- if (gtlt === "<") {
3677
- pr = "-0";
3678
- }
3679
- ret = `${gtlt + M}.${m}.${p}${pr}`;
3680
- } else if (xm) {
3681
- ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
3682
- } else if (xp) {
3683
- ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
3684
- }
3685
- debug("xRange return", ret);
3686
- return ret;
3687
- });
3688
- }, "replaceXRange");
3689
- var replaceStars = /* @__PURE__ */ __name((comp, options) => {
3690
- debug("replaceStars", comp, options);
3691
- return comp.trim().replace(re[t2.STAR], "");
3692
- }, "replaceStars");
3693
- var replaceGTE0 = /* @__PURE__ */ __name((comp, options) => {
3694
- debug("replaceGTE0", comp, options);
3695
- return comp.trim().replace(re[options.includePrerelease ? t2.GTE0PRE : t2.GTE0], "");
3696
- }, "replaceGTE0");
3697
- var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
3698
- if (isX(fM)) {
3699
- from = "";
3700
- } else if (isX(fm)) {
3701
- from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
3702
- } else if (isX(fp)) {
3703
- from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
3704
- } else if (fpr) {
3705
- from = `>=${from}`;
3706
- } else {
3707
- from = `>=${from}${incPr ? "-0" : ""}`;
3708
- }
3709
- if (isX(tM)) {
3710
- to = "";
3711
- } else if (isX(tm)) {
3712
- to = `<${+tM + 1}.0.0-0`;
3713
- } else if (isX(tp)) {
3714
- to = `<${tM}.${+tm + 1}.0-0`;
3715
- } else if (tpr) {
3716
- to = `<=${tM}.${tm}.${tp}-${tpr}`;
3717
- } else if (incPr) {
3718
- to = `<${tM}.${tm}.${+tp + 1}-0`;
3719
- } else {
3720
- to = `<=${to}`;
3721
- }
3722
- return `${from} ${to}`.trim();
3723
- }, "hyphenReplace");
3724
- var testSet = /* @__PURE__ */ __name((set, version, options) => {
3725
- for (let i = 0; i < set.length; i++) {
3726
- if (!set[i].test(version)) {
3727
- return false;
3728
- }
3729
- }
3730
- if (version.prerelease.length && !options.includePrerelease) {
3731
- for (let i = 0; i < set.length; i++) {
3732
- debug(set[i].semver);
3733
- if (set[i].semver === Comparator.ANY) {
3734
- continue;
3735
- }
3736
- if (set[i].semver.prerelease.length > 0) {
3737
- const allowed = set[i].semver;
3738
- if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
3739
- return true;
3740
- }
3741
- }
3742
- }
3743
- return false;
3744
- }
3745
- return true;
3746
- }, "testSet");
3747
- }
3748
- });
3749
-
3750
- // node_modules/semver/classes/comparator.js
3751
- var require_comparator = __commonJS({
3752
- "node_modules/semver/classes/comparator.js"(exports, module) {
3753
- "use strict";
3754
- init_esbuild_shims();
3755
- var ANY = Symbol("SemVer ANY");
3756
- var Comparator = class _Comparator {
3757
- static {
3758
- __name(this, "Comparator");
3759
- }
3760
- static get ANY() {
3761
- return ANY;
3762
- }
3763
- constructor(comp, options) {
3764
- options = parseOptions(options);
3765
- if (comp instanceof _Comparator) {
3766
- if (comp.loose === !!options.loose) {
3767
- return comp;
3768
- } else {
3769
- comp = comp.value;
3770
- }
3771
- }
3772
- comp = comp.trim().split(/\s+/).join(" ");
3773
- debug("comparator", comp, options);
3774
- this.options = options;
3775
- this.loose = !!options.loose;
3776
- this.parse(comp);
3777
- if (this.semver === ANY) {
3778
- this.value = "";
3779
- } else {
3780
- this.value = this.operator + this.semver.version;
3781
- }
3782
- debug("comp", this);
3783
- }
3784
- parse(comp) {
3785
- const r = this.options.loose ? re[t2.COMPARATORLOOSE] : re[t2.COMPARATOR];
3786
- const m = comp.match(r);
3787
- if (!m) {
3788
- throw new TypeError(`Invalid comparator: ${comp}`);
3789
- }
3790
- this.operator = m[1] !== void 0 ? m[1] : "";
3791
- if (this.operator === "=") {
3792
- this.operator = "";
3793
- }
3794
- if (!m[2]) {
3795
- this.semver = ANY;
3796
- } else {
3797
- this.semver = new SemVer(m[2], this.options.loose);
3798
- }
3799
- }
3800
- toString() {
3801
- return this.value;
3802
- }
3803
- test(version) {
3804
- debug("Comparator.test", version, this.options.loose);
3805
- if (this.semver === ANY || version === ANY) {
3806
- return true;
3807
- }
3808
- if (typeof version === "string") {
3809
- try {
3810
- version = new SemVer(version, this.options);
3811
- } catch (er) {
3812
- return false;
3813
- }
3814
- }
3815
- return cmp(version, this.operator, this.semver, this.options);
3816
- }
3817
- intersects(comp, options) {
3818
- if (!(comp instanceof _Comparator)) {
3819
- throw new TypeError("a Comparator is required");
3820
- }
3821
- if (this.operator === "") {
3822
- if (this.value === "") {
3823
- return true;
3824
- }
3825
- return new Range(comp.value, options).test(this.value);
3826
- } else if (comp.operator === "") {
3827
- if (comp.value === "") {
3828
- return true;
3829
- }
3830
- return new Range(this.value, options).test(comp.semver);
3831
- }
3832
- options = parseOptions(options);
3833
- if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
3834
- return false;
3835
- }
3836
- if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
3837
- return false;
3838
- }
3839
- if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
3840
- return true;
3841
- }
3842
- if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
3843
- return true;
3844
- }
3845
- if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
3846
- return true;
3847
- }
3848
- if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
3849
- return true;
3850
- }
3851
- if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
3852
- return true;
3853
- }
3854
- return false;
3855
- }
3856
- };
3857
- module.exports = Comparator;
3858
- var parseOptions = require_parse_options();
3859
- var { safeRe: re, t: t2 } = require_re();
3860
- var cmp = require_cmp();
3861
- var debug = require_debug();
3862
- var SemVer = require_semver();
3863
- var Range = require_range();
3864
- }
3865
- });
3866
-
3867
- // node_modules/semver/functions/satisfies.js
3868
- var require_satisfies = __commonJS({
3869
- "node_modules/semver/functions/satisfies.js"(exports, module) {
3870
- "use strict";
3871
- init_esbuild_shims();
3872
- var Range = require_range();
3873
- var satisfies = /* @__PURE__ */ __name((version, range, options) => {
3874
- try {
3875
- range = new Range(range, options);
3876
- } catch (er) {
3877
- return false;
3878
- }
3879
- return range.test(version);
3880
- }, "satisfies");
3881
- module.exports = satisfies;
3882
- }
3883
- });
3884
-
3885
- // node_modules/semver/ranges/to-comparators.js
3886
- var require_to_comparators = __commonJS({
3887
- "node_modules/semver/ranges/to-comparators.js"(exports, module) {
3888
- "use strict";
3889
- init_esbuild_shims();
3890
- var Range = require_range();
3891
- var toComparators = /* @__PURE__ */ __name((range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")), "toComparators");
3892
- module.exports = toComparators;
3893
- }
3894
- });
3895
-
3896
- // node_modules/semver/ranges/max-satisfying.js
3897
- var require_max_satisfying = __commonJS({
3898
- "node_modules/semver/ranges/max-satisfying.js"(exports, module) {
3899
- "use strict";
3900
- init_esbuild_shims();
3901
- var SemVer = require_semver();
3902
- var Range = require_range();
3903
- var maxSatisfying = /* @__PURE__ */ __name((versions, range, options) => {
3904
- let max = null;
3905
- let maxSV = null;
3906
- let rangeObj = null;
3907
- try {
3908
- rangeObj = new Range(range, options);
3909
- } catch (er) {
3910
- return null;
3911
- }
3912
- versions.forEach((v) => {
3913
- if (rangeObj.test(v)) {
3914
- if (!max || maxSV.compare(v) === -1) {
3915
- max = v;
3916
- maxSV = new SemVer(max, options);
3917
- }
3918
- }
3919
- });
3920
- return max;
3921
- }, "maxSatisfying");
3922
- module.exports = maxSatisfying;
3923
- }
3924
- });
3925
-
3926
- // node_modules/semver/ranges/min-satisfying.js
3927
- var require_min_satisfying = __commonJS({
3928
- "node_modules/semver/ranges/min-satisfying.js"(exports, module) {
3929
- "use strict";
3930
- init_esbuild_shims();
3931
- var SemVer = require_semver();
3932
- var Range = require_range();
3933
- var minSatisfying = /* @__PURE__ */ __name((versions, range, options) => {
3934
- let min = null;
3935
- let minSV = null;
3936
- let rangeObj = null;
3937
- try {
3938
- rangeObj = new Range(range, options);
3939
- } catch (er) {
3940
- return null;
3941
- }
3942
- versions.forEach((v) => {
3943
- if (rangeObj.test(v)) {
3944
- if (!min || minSV.compare(v) === 1) {
3945
- min = v;
3946
- minSV = new SemVer(min, options);
3947
- }
3948
- }
3949
- });
3950
- return min;
3951
- }, "minSatisfying");
3952
- module.exports = minSatisfying;
3953
- }
3954
- });
3955
-
3956
- // node_modules/semver/ranges/min-version.js
3957
- var require_min_version = __commonJS({
3958
- "node_modules/semver/ranges/min-version.js"(exports, module) {
3959
- "use strict";
3960
- init_esbuild_shims();
3961
- var SemVer = require_semver();
3962
- var Range = require_range();
3963
- var gt = require_gt();
3964
- var minVersion = /* @__PURE__ */ __name((range, loose) => {
3965
- range = new Range(range, loose);
3966
- let minver = new SemVer("0.0.0");
3967
- if (range.test(minver)) {
3968
- return minver;
3969
- }
3970
- minver = new SemVer("0.0.0-0");
3971
- if (range.test(minver)) {
3972
- return minver;
3973
- }
3974
- minver = null;
3975
- for (let i = 0; i < range.set.length; ++i) {
3976
- const comparators = range.set[i];
3977
- let setMin = null;
3978
- comparators.forEach((comparator) => {
3979
- const compver = new SemVer(comparator.semver.version);
3980
- switch (comparator.operator) {
3981
- case ">":
3982
- if (compver.prerelease.length === 0) {
3983
- compver.patch++;
3984
- } else {
3985
- compver.prerelease.push(0);
3986
- }
3987
- compver.raw = compver.format();
3988
- /* fallthrough */
3989
- case "":
3990
- case ">=":
3991
- if (!setMin || gt(compver, setMin)) {
3992
- setMin = compver;
3993
- }
3994
- break;
3995
- case "<":
3996
- case "<=":
3997
- break;
3998
- /* istanbul ignore next */
3999
- default:
4000
- throw new Error(`Unexpected operation: ${comparator.operator}`);
4001
- }
4002
- });
4003
- if (setMin && (!minver || gt(minver, setMin))) {
4004
- minver = setMin;
4005
- }
4006
- }
4007
- if (minver && range.test(minver)) {
4008
- return minver;
4009
- }
4010
- return null;
4011
- }, "minVersion");
4012
- module.exports = minVersion;
4013
- }
4014
- });
4015
-
4016
- // node_modules/semver/ranges/valid.js
4017
- var require_valid2 = __commonJS({
4018
- "node_modules/semver/ranges/valid.js"(exports, module) {
4019
- "use strict";
4020
- init_esbuild_shims();
4021
- var Range = require_range();
4022
- var validRange = /* @__PURE__ */ __name((range, options) => {
4023
- try {
4024
- return new Range(range, options).range || "*";
4025
- } catch (er) {
4026
- return null;
4027
- }
4028
- }, "validRange");
4029
- module.exports = validRange;
4030
- }
4031
- });
4032
-
4033
- // node_modules/semver/ranges/outside.js
4034
- var require_outside = __commonJS({
4035
- "node_modules/semver/ranges/outside.js"(exports, module) {
4036
- "use strict";
4037
- init_esbuild_shims();
4038
- var SemVer = require_semver();
4039
- var Comparator = require_comparator();
4040
- var { ANY } = Comparator;
4041
- var Range = require_range();
4042
- var satisfies = require_satisfies();
4043
- var gt = require_gt();
4044
- var lt = require_lt();
4045
- var lte = require_lte();
4046
- var gte = require_gte();
4047
- var outside = /* @__PURE__ */ __name((version, range, hilo, options) => {
4048
- version = new SemVer(version, options);
4049
- range = new Range(range, options);
4050
- let gtfn, ltefn, ltfn, comp, ecomp;
4051
- switch (hilo) {
4052
- case ">":
4053
- gtfn = gt;
4054
- ltefn = lte;
4055
- ltfn = lt;
4056
- comp = ">";
4057
- ecomp = ">=";
4058
- break;
4059
- case "<":
4060
- gtfn = lt;
4061
- ltefn = gte;
4062
- ltfn = gt;
4063
- comp = "<";
4064
- ecomp = "<=";
4065
- break;
4066
- default:
4067
- throw new TypeError('Must provide a hilo val of "<" or ">"');
4068
- }
4069
- if (satisfies(version, range, options)) {
4070
- return false;
4071
- }
4072
- for (let i = 0; i < range.set.length; ++i) {
4073
- const comparators = range.set[i];
4074
- let high = null;
4075
- let low = null;
4076
- comparators.forEach((comparator) => {
4077
- if (comparator.semver === ANY) {
4078
- comparator = new Comparator(">=0.0.0");
4079
- }
4080
- high = high || comparator;
4081
- low = low || comparator;
4082
- if (gtfn(comparator.semver, high.semver, options)) {
4083
- high = comparator;
4084
- } else if (ltfn(comparator.semver, low.semver, options)) {
4085
- low = comparator;
4086
- }
4087
- });
4088
- if (high.operator === comp || high.operator === ecomp) {
4089
- return false;
4090
- }
4091
- if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
4092
- return false;
4093
- } else if (low.operator === ecomp && ltfn(version, low.semver)) {
4094
- return false;
4095
- }
4096
- }
4097
- return true;
4098
- }, "outside");
4099
- module.exports = outside;
4100
- }
4101
- });
4102
-
4103
- // node_modules/semver/ranges/gtr.js
4104
- var require_gtr = __commonJS({
4105
- "node_modules/semver/ranges/gtr.js"(exports, module) {
4106
- "use strict";
4107
- init_esbuild_shims();
4108
- var outside = require_outside();
4109
- var gtr = /* @__PURE__ */ __name((version, range, options) => outside(version, range, ">", options), "gtr");
4110
- module.exports = gtr;
4111
- }
4112
- });
4113
-
4114
- // node_modules/semver/ranges/ltr.js
4115
- var require_ltr = __commonJS({
4116
- "node_modules/semver/ranges/ltr.js"(exports, module) {
4117
- "use strict";
4118
- init_esbuild_shims();
4119
- var outside = require_outside();
4120
- var ltr = /* @__PURE__ */ __name((version, range, options) => outside(version, range, "<", options), "ltr");
4121
- module.exports = ltr;
4122
- }
4123
- });
4124
-
4125
- // node_modules/semver/ranges/intersects.js
4126
- var require_intersects = __commonJS({
4127
- "node_modules/semver/ranges/intersects.js"(exports, module) {
4128
- "use strict";
4129
- init_esbuild_shims();
4130
- var Range = require_range();
4131
- var intersects = /* @__PURE__ */ __name((r1, r2, options) => {
4132
- r1 = new Range(r1, options);
4133
- r2 = new Range(r2, options);
4134
- return r1.intersects(r2, options);
4135
- }, "intersects");
4136
- module.exports = intersects;
4137
- }
4138
- });
4139
-
4140
- // node_modules/semver/ranges/simplify.js
4141
- var require_simplify = __commonJS({
4142
- "node_modules/semver/ranges/simplify.js"(exports, module) {
4143
- "use strict";
4144
- init_esbuild_shims();
4145
- var satisfies = require_satisfies();
4146
- var compare = require_compare();
4147
- module.exports = (versions, range, options) => {
4148
- const set = [];
4149
- let first = null;
4150
- let prev = null;
4151
- const v = versions.sort((a, b) => compare(a, b, options));
4152
- for (const version of v) {
4153
- const included = satisfies(version, range, options);
4154
- if (included) {
4155
- prev = version;
4156
- if (!first) {
4157
- first = version;
4158
- }
4159
- } else {
4160
- if (prev) {
4161
- set.push([first, prev]);
4162
- }
4163
- prev = null;
4164
- first = null;
4165
- }
4166
- }
4167
- if (first) {
4168
- set.push([first, null]);
4169
- }
4170
- const ranges = [];
4171
- for (const [min, max] of set) {
4172
- if (min === max) {
4173
- ranges.push(min);
4174
- } else if (!max && min === v[0]) {
4175
- ranges.push("*");
4176
- } else if (!max) {
4177
- ranges.push(`>=${min}`);
4178
- } else if (min === v[0]) {
4179
- ranges.push(`<=${max}`);
4180
- } else {
4181
- ranges.push(`${min} - ${max}`);
4182
- }
4183
- }
4184
- const simplified = ranges.join(" || ");
4185
- const original = typeof range.raw === "string" ? range.raw : String(range);
4186
- return simplified.length < original.length ? simplified : range;
4187
- };
4188
- }
4189
- });
4190
-
4191
- // node_modules/semver/ranges/subset.js
4192
- var require_subset = __commonJS({
4193
- "node_modules/semver/ranges/subset.js"(exports, module) {
4194
- "use strict";
4195
- init_esbuild_shims();
4196
- var Range = require_range();
4197
- var Comparator = require_comparator();
4198
- var { ANY } = Comparator;
4199
- var satisfies = require_satisfies();
4200
- var compare = require_compare();
4201
- var subset = /* @__PURE__ */ __name((sub, dom, options = {}) => {
4202
- if (sub === dom) {
4203
- return true;
4204
- }
4205
- sub = new Range(sub, options);
4206
- dom = new Range(dom, options);
4207
- let sawNonNull = false;
4208
- OUTER: for (const simpleSub of sub.set) {
4209
- for (const simpleDom of dom.set) {
4210
- const isSub = simpleSubset(simpleSub, simpleDom, options);
4211
- sawNonNull = sawNonNull || isSub !== null;
4212
- if (isSub) {
4213
- continue OUTER;
4214
- }
4215
- }
4216
- if (sawNonNull) {
4217
- return false;
4218
- }
4219
- }
4220
- return true;
4221
- }, "subset");
4222
- var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
4223
- var minimumVersion = [new Comparator(">=0.0.0")];
4224
- var simpleSubset = /* @__PURE__ */ __name((sub, dom, options) => {
4225
- if (sub === dom) {
4226
- return true;
4227
- }
4228
- if (sub.length === 1 && sub[0].semver === ANY) {
4229
- if (dom.length === 1 && dom[0].semver === ANY) {
4230
- return true;
4231
- } else if (options.includePrerelease) {
4232
- sub = minimumVersionWithPreRelease;
4233
- } else {
4234
- sub = minimumVersion;
4235
- }
4236
- }
4237
- if (dom.length === 1 && dom[0].semver === ANY) {
4238
- if (options.includePrerelease) {
4239
- return true;
4240
- } else {
4241
- dom = minimumVersion;
4242
- }
4243
- }
4244
- const eqSet = /* @__PURE__ */ new Set();
4245
- let gt, lt;
4246
- for (const c of sub) {
4247
- if (c.operator === ">" || c.operator === ">=") {
4248
- gt = higherGT(gt, c, options);
4249
- } else if (c.operator === "<" || c.operator === "<=") {
4250
- lt = lowerLT(lt, c, options);
4251
- } else {
4252
- eqSet.add(c.semver);
4253
- }
4254
- }
4255
- if (eqSet.size > 1) {
4256
- return null;
4257
- }
4258
- let gtltComp;
4259
- if (gt && lt) {
4260
- gtltComp = compare(gt.semver, lt.semver, options);
4261
- if (gtltComp > 0) {
4262
- return null;
4263
- } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
4264
- return null;
4265
- }
4266
- }
4267
- for (const eq of eqSet) {
4268
- if (gt && !satisfies(eq, String(gt), options)) {
4269
- return null;
4270
- }
4271
- if (lt && !satisfies(eq, String(lt), options)) {
4272
- return null;
4273
- }
4274
- for (const c of dom) {
4275
- if (!satisfies(eq, String(c), options)) {
4276
- return false;
4277
- }
4278
- }
4279
- return true;
4280
- }
4281
- let higher, lower;
4282
- let hasDomLT, hasDomGT;
4283
- let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
4284
- let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
4285
- if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
4286
- needDomLTPre = false;
4287
- }
4288
- for (const c of dom) {
4289
- hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
4290
- hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
4291
- if (gt) {
4292
- if (needDomGTPre) {
4293
- if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
4294
- needDomGTPre = false;
4295
- }
4296
- }
4297
- if (c.operator === ">" || c.operator === ">=") {
4298
- higher = higherGT(gt, c, options);
4299
- if (higher === c && higher !== gt) {
4300
- return false;
4301
- }
4302
- } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
4303
- return false;
4304
- }
4305
- }
4306
- if (lt) {
4307
- if (needDomLTPre) {
4308
- if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
4309
- needDomLTPre = false;
4310
- }
4311
- }
4312
- if (c.operator === "<" || c.operator === "<=") {
4313
- lower = lowerLT(lt, c, options);
4314
- if (lower === c && lower !== lt) {
4315
- return false;
4316
- }
4317
- } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
4318
- return false;
4319
- }
4320
- }
4321
- if (!c.operator && (lt || gt) && gtltComp !== 0) {
4322
- return false;
4323
- }
4324
- }
4325
- if (gt && hasDomLT && !lt && gtltComp !== 0) {
4326
- return false;
4327
- }
4328
- if (lt && hasDomGT && !gt && gtltComp !== 0) {
4329
- return false;
4330
- }
4331
- if (needDomGTPre || needDomLTPre) {
4332
- return false;
4333
- }
4334
- return true;
4335
- }, "simpleSubset");
4336
- var higherGT = /* @__PURE__ */ __name((a, b, options) => {
4337
- if (!a) {
4338
- return b;
4339
- }
4340
- const comp = compare(a.semver, b.semver, options);
4341
- return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
4342
- }, "higherGT");
4343
- var lowerLT = /* @__PURE__ */ __name((a, b, options) => {
4344
- if (!a) {
4345
- return b;
4346
- }
4347
- const comp = compare(a.semver, b.semver, options);
4348
- return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
4349
- }, "lowerLT");
4350
- module.exports = subset;
4351
- }
4352
- });
4353
-
4354
- // node_modules/semver/index.js
4355
- var require_semver2 = __commonJS({
4356
- "node_modules/semver/index.js"(exports, module) {
4357
- "use strict";
4358
- init_esbuild_shims();
4359
- var internalRe = require_re();
4360
- var constants = require_constants();
4361
- var SemVer = require_semver();
4362
- var identifiers = require_identifiers();
4363
- var parse = require_parse();
4364
- var valid = require_valid();
4365
- var clean = require_clean();
4366
- var inc = require_inc();
4367
- var diff = require_diff();
4368
- var major = require_major();
4369
- var minor = require_minor();
4370
- var patch = require_patch();
4371
- var prerelease = require_prerelease();
4372
- var compare = require_compare();
4373
- var rcompare = require_rcompare();
4374
- var compareLoose = require_compare_loose();
4375
- var compareBuild = require_compare_build();
4376
- var sort = require_sort();
4377
- var rsort = require_rsort();
4378
- var gt = require_gt();
4379
- var lt = require_lt();
4380
- var eq = require_eq();
4381
- var neq = require_neq();
4382
- var gte = require_gte();
4383
- var lte = require_lte();
4384
- var cmp = require_cmp();
4385
- var coerce = require_coerce();
4386
- var Comparator = require_comparator();
4387
- var Range = require_range();
4388
- var satisfies = require_satisfies();
4389
- var toComparators = require_to_comparators();
4390
- var maxSatisfying = require_max_satisfying();
4391
- var minSatisfying = require_min_satisfying();
4392
- var minVersion = require_min_version();
4393
- var validRange = require_valid2();
4394
- var outside = require_outside();
4395
- var gtr = require_gtr();
4396
- var ltr = require_ltr();
4397
- var intersects = require_intersects();
4398
- var simplifyRange = require_simplify();
4399
- var subset = require_subset();
4400
- module.exports = {
4401
- parse,
4402
- valid,
4403
- clean,
4404
- inc,
4405
- diff,
4406
- major,
4407
- minor,
4408
- patch,
4409
- prerelease,
4410
- compare,
4411
- rcompare,
4412
- compareLoose,
4413
- compareBuild,
4414
- sort,
4415
- rsort,
4416
- gt,
4417
- lt,
4418
- eq,
4419
- neq,
4420
- gte,
4421
- lte,
4422
- cmp,
4423
- coerce,
4424
- Comparator,
4425
- Range,
4426
- satisfies,
4427
- toComparators,
4428
- maxSatisfying,
4429
- minSatisfying,
4430
- minVersion,
4431
- validRange,
4432
- outside,
4433
- gtr,
4434
- ltr,
4435
- intersects,
4436
- simplifyRange,
4437
- subset,
4438
- SemVer,
4439
- re: internalRe.re,
4440
- src: internalRe.src,
4441
- tokens: internalRe.t,
4442
- SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
4443
- RELEASE_TYPES: constants.RELEASE_TYPES,
4444
- compareIdentifiers: identifiers.compareIdentifiers,
4445
- rcompareIdentifiers: identifiers.rcompareIdentifiers
4446
- };
4447
- }
4448
- });
4449
-
4450
2973
  // node_modules/ini/lib/ini.js
4451
2974
  var require_ini3 = __commonJS({
4452
2975
  "node_modules/ini/lib/ini.js"(exports, module) {
@@ -5434,12 +3957,12 @@ var disallowedKeys = /* @__PURE__ */ new Set([
5434
3957
  "constructor"
5435
3958
  ]);
5436
3959
  var digits = new Set("0123456789");
5437
- function getPathSegments(path9) {
3960
+ function getPathSegments(path10) {
5438
3961
  const parts = [];
5439
3962
  let currentSegment = "";
5440
3963
  let currentPart = "start";
5441
3964
  let isIgnoring = false;
5442
- for (const character of path9) {
3965
+ for (const character of path10) {
5443
3966
  switch (character) {
5444
3967
  case "\\": {
5445
3968
  if (currentPart === "index") {
@@ -5564,11 +4087,11 @@ function assertNotStringIndex(object, key) {
5564
4087
  }
5565
4088
  }
5566
4089
  __name(assertNotStringIndex, "assertNotStringIndex");
5567
- function getProperty(object, path9, value) {
5568
- if (!isObject(object) || typeof path9 !== "string") {
4090
+ function getProperty(object, path10, value) {
4091
+ if (!isObject(object) || typeof path10 !== "string") {
5569
4092
  return value === void 0 ? object : value;
5570
4093
  }
5571
- const pathArray = getPathSegments(path9);
4094
+ const pathArray = getPathSegments(path10);
5572
4095
  if (pathArray.length === 0) {
5573
4096
  return value;
5574
4097
  }
@@ -5589,12 +4112,12 @@ function getProperty(object, path9, value) {
5589
4112
  return object === void 0 ? value : object;
5590
4113
  }
5591
4114
  __name(getProperty, "getProperty");
5592
- function setProperty(object, path9, value) {
5593
- if (!isObject(object) || typeof path9 !== "string") {
4115
+ function setProperty(object, path10, value) {
4116
+ if (!isObject(object) || typeof path10 !== "string") {
5594
4117
  return object;
5595
4118
  }
5596
4119
  const root = object;
5597
- const pathArray = getPathSegments(path9);
4120
+ const pathArray = getPathSegments(path10);
5598
4121
  for (let index = 0; index < pathArray.length; index++) {
5599
4122
  const key = pathArray[index];
5600
4123
  assertNotStringIndex(object, key);
@@ -5608,11 +4131,11 @@ function setProperty(object, path9, value) {
5608
4131
  return root;
5609
4132
  }
5610
4133
  __name(setProperty, "setProperty");
5611
- function deleteProperty(object, path9) {
5612
- if (!isObject(object) || typeof path9 !== "string") {
4134
+ function deleteProperty(object, path10) {
4135
+ if (!isObject(object) || typeof path10 !== "string") {
5613
4136
  return false;
5614
4137
  }
5615
- const pathArray = getPathSegments(path9);
4138
+ const pathArray = getPathSegments(path10);
5616
4139
  for (let index = 0; index < pathArray.length; index++) {
5617
4140
  const key = pathArray[index];
5618
4141
  assertNotStringIndex(object, key);
@@ -5627,11 +4150,11 @@ function deleteProperty(object, path9) {
5627
4150
  }
5628
4151
  }
5629
4152
  __name(deleteProperty, "deleteProperty");
5630
- function hasProperty(object, path9) {
5631
- if (!isObject(object) || typeof path9 !== "string") {
4153
+ function hasProperty(object, path10) {
4154
+ if (!isObject(object) || typeof path10 !== "string") {
5632
4155
  return false;
5633
4156
  }
5634
- const pathArray = getPathSegments(path9);
4157
+ const pathArray = getPathSegments(path10);
5635
4158
  if (pathArray.length === 0) {
5636
4159
  return false;
5637
4160
  }
@@ -6884,7 +5407,7 @@ __name(registryUrl, "registryUrl");
6884
5407
 
6885
5408
  // node_modules/package-json/index.js
6886
5409
  var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
6887
- var import_semver = __toESM(require_semver2(), 1);
5410
+ var import_semver = __toESM(require_semver(), 1);
6888
5411
  var PackageNotFoundError = class extends Error {
6889
5412
  static {
6890
5413
  __name(this, "PackageNotFoundError");
@@ -8114,9 +6637,13 @@ function updateNotifier(options) {
8114
6637
  __name(updateNotifier, "updateNotifier");
8115
6638
 
8116
6639
  // packages/cli/src/ui/utils/updateCheck.ts
8117
- var import_semver2 = __toESM(require_semver2(), 1);
6640
+ var import_semver2 = __toESM(require_semver(), 1);
6641
+ import { execFile } from "node:child_process";
6642
+ import { realpath } from "node:fs/promises";
6643
+ import path9 from "node:path";
6644
+ import { promisify as promisify2 } from "node:util";
8118
6645
  var debugLogger = createDebugLogger("UPDATE_CHECK");
8119
- var FETCH_TIMEOUT_MS = 2e3;
6646
+ var FETCH_TIMEOUT_MS = 5e3;
8120
6647
  var UpdateCheckTimeoutError = class extends Error {
8121
6648
  static {
8122
6649
  __name(this, "UpdateCheckTimeoutError");
@@ -8129,6 +6656,40 @@ var UpdateCheckTimeoutError = class extends Error {
8129
6656
  this.distTag = distTag;
8130
6657
  }
8131
6658
  };
6659
+ var NETWORK_ERROR_CODES = [
6660
+ "ENOTFOUND",
6661
+ "ECONNREFUSED",
6662
+ "EAI_AGAIN",
6663
+ "ENETUNREACH"
6664
+ ];
6665
+ function classifyUpdateCheckError(error) {
6666
+ if (error instanceof Error) {
6667
+ const errors = [error];
6668
+ if (error.cause instanceof Error) errors.push(error.cause);
6669
+ const matchesCode = /* @__PURE__ */ __name((code) => errors.some(
6670
+ (error2) => error2.code === code || error2.message.includes(code)
6671
+ ), "matchesCode");
6672
+ if (errors.some((error2) => error2 instanceof UpdateCheckTimeoutError) || "killed" in error && error.killed === true && "signal" in error && error.signal === "SIGTERM" || matchesCode("ETIMEDOUT")) {
6673
+ return "timeout";
6674
+ }
6675
+ if (NETWORK_ERROR_CODES.some(matchesCode)) return "offline";
6676
+ }
6677
+ return "registry";
6678
+ }
6679
+ __name(classifyUpdateCheckError, "classifyUpdateCheckError");
6680
+ function describeUpdateCheckFailure(error, timeoutMs = FETCH_TIMEOUT_MS) {
6681
+ switch (classifyUpdateCheckError(error)) {
6682
+ case "timeout":
6683
+ return t("registry did not respond within {{seconds}}s", {
6684
+ seconds: String(Math.round(timeoutMs / 1e3))
6685
+ });
6686
+ case "offline":
6687
+ return t("registry unreachable");
6688
+ default:
6689
+ return t("registry error");
6690
+ }
6691
+ }
6692
+ __name(describeUpdateCheckFailure, "describeUpdateCheckFailure");
8132
6693
  async function fetchInfoWithTimeout(notifier, timeoutMs, distTag) {
8133
6694
  let timer;
8134
6695
  try {
@@ -8146,6 +6707,72 @@ async function fetchInfoWithTimeout(notifier, timeoutMs, distTag) {
8146
6707
  }
8147
6708
  }
8148
6709
  __name(fetchInfoWithTimeout, "fetchInfoWithTimeout");
6710
+ var execFileAsync = promisify2(execFile);
6711
+ async function runGlobalNpm(args, run = execFileAsync, platform = process.platform, nodePath = process.execPath, resolveNpmCliPath = getNpmCliPath) {
6712
+ const { stdout } = await run(
6713
+ nodePath,
6714
+ [resolveNpmCliPath(nodePath, platform), ...args],
6715
+ {
6716
+ encoding: "utf8",
6717
+ timeout: FETCH_TIMEOUT_MS
6718
+ }
6719
+ );
6720
+ return String(stdout).trim();
6721
+ }
6722
+ __name(runGlobalNpm, "runGlobalNpm");
6723
+ function looksLikeNpmPackagePath(cliPath) {
6724
+ const normalized = cliPath.replace(/\\/g, "/");
6725
+ return normalized.includes("/node_modules/@qwen-code/qwen-code/") && !normalized.includes("/.pnpm/");
6726
+ }
6727
+ __name(looksLikeNpmPackagePath, "looksLikeNpmPackagePath");
6728
+ async function isGlobalNpmInstallation(cliPath = process.argv[1], run = execFileAsync, canonicalize = realpath) {
6729
+ if (process.env["QWEN_CODE_MANAGED_NPM_UPDATE"] === "true") return true;
6730
+ if (!cliPath) return false;
6731
+ let resolvedCliPath;
6732
+ try {
6733
+ resolvedCliPath = await canonicalize(cliPath);
6734
+ } catch (error) {
6735
+ if (error.code === "ENOENT") return false;
6736
+ throw error;
6737
+ }
6738
+ if (!looksLikeNpmPackagePath(resolvedCliPath)) return false;
6739
+ const unresolvedGlobalRoot = await runGlobalNpm(["root", "--global"], run);
6740
+ let globalRoot;
6741
+ try {
6742
+ globalRoot = await canonicalize(unresolvedGlobalRoot);
6743
+ } catch (error) {
6744
+ if (error.code === "ENOENT") return false;
6745
+ throw error;
6746
+ }
6747
+ const relative = path9.relative(globalRoot, resolvedCliPath);
6748
+ return relative !== "" && relative !== ".." && !relative.startsWith(`..${path9.sep}`) && !path9.isAbsolute(relative);
6749
+ }
6750
+ __name(isGlobalNpmInstallation, "isGlobalNpmInstallation");
6751
+ async function fetchGlobalNpmUpdateInfo(packageName, currentVersion, distTag, run = execFileAsync) {
6752
+ const output = await runGlobalNpm(
6753
+ ["view", packageName, `dist-tags.${distTag}`, "--json", "--global"],
6754
+ run
6755
+ );
6756
+ if (output === "") {
6757
+ return {
6758
+ latest: currentVersion,
6759
+ current: currentVersion,
6760
+ type: "latest",
6761
+ name: packageName
6762
+ };
6763
+ }
6764
+ const latest = JSON.parse(output);
6765
+ if (typeof latest !== "string") {
6766
+ throw new Error(`Invalid npm ${distTag} version response`);
6767
+ }
6768
+ return {
6769
+ latest,
6770
+ current: currentVersion,
6771
+ type: "latest",
6772
+ name: packageName
6773
+ };
6774
+ }
6775
+ __name(fetchGlobalNpmUpdateInfo, "fetchGlobalNpmUpdateInfo");
8149
6776
  function getBestAvailableUpdate(nightly, stable) {
8150
6777
  if (!nightly) return stable || null;
8151
6778
  if (!stable) return nightly || null;
@@ -8157,7 +6784,7 @@ function getBestAvailableUpdate(nightly, stable) {
8157
6784
  return import_semver2.default.gt(stableVer, nightlyVer) ? stable : nightly;
8158
6785
  }
8159
6786
  __name(getBestAvailableUpdate, "getBestAvailableUpdate");
8160
- async function checkForUpdatesDetailed() {
6787
+ async function checkForUpdatesDetailed(detectGlobalNpm = isGlobalNpmInstallation, fetchGlobalNpm = fetchGlobalNpmUpdateInfo) {
8161
6788
  let currentVersion;
8162
6789
  try {
8163
6790
  if (process.env["DEV"] === "true") {
@@ -8168,9 +6795,12 @@ async function checkForUpdatesDetailed() {
8168
6795
  return { status: "skipped", reason: "package metadata unavailable" };
8169
6796
  }
8170
6797
  const { name, version } = packageJson3;
6798
+ const isGlobalNpm = await detectGlobalNpm();
8171
6799
  currentVersion = version;
8172
6800
  const isNightly = version.includes("nightly");
8173
- const createNotifier = /* @__PURE__ */ __name((distTag) => updateNotifier({
6801
+ const createNotifier = /* @__PURE__ */ __name((distTag) => isGlobalNpm ? {
6802
+ fetchInfo: /* @__PURE__ */ __name(() => fetchGlobalNpm(name, version, distTag), "fetchInfo")
6803
+ } : updateNotifier({
8174
6804
  pkg: {
8175
6805
  name,
8176
6806
  version
@@ -8250,6 +6880,11 @@ __name(checkForUpdates, "checkForUpdates");
8250
6880
  export {
8251
6881
  FETCH_TIMEOUT_MS,
8252
6882
  UpdateCheckTimeoutError,
6883
+ classifyUpdateCheckError,
6884
+ describeUpdateCheckFailure,
6885
+ runGlobalNpm,
6886
+ isGlobalNpmInstallation,
6887
+ fetchGlobalNpmUpdateInfo,
8253
6888
  checkForUpdatesDetailed,
8254
6889
  checkForUpdates
8255
6890
  };