@qwen-code/qwen-code 0.20.0-nightly.20260722.b98306b7e → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  2. package/bundled/qc-helper/docs/features/auto-mode.md +16 -19
  3. package/bundled/qc-helper/docs/features/commands.md +0 -54
  4. package/bundled/qc-helper/docs/features/sub-agents.md +7 -16
  5. package/bundled/qc-helper/docs/integration-github-action.md +10 -10
  6. package/bundled/qc-helper/docs/qwen-serve.md +1 -2
  7. package/bundled/review/DESIGN.md +2 -2
  8. package/bundled/review/SKILL.md +4 -4
  9. package/chunks/{MaxSizedBox-YO432SD4.js → MaxSizedBox-B5YGZSYE.js} +34 -41
  10. package/chunks/{StandaloneSessionPicker-525JBPXC.js → StandaloneSessionPicker-CEGO2AZX.js} +50 -57
  11. package/chunks/{acpAgent-FORCZCBG.js → acpAgent-YUR43TLG.js} +496 -1487
  12. package/chunks/{agent-OZCWHX2J.js → agent-H4JIDL7S.js} +30 -37
  13. package/chunks/agent-headless-TTBEREQV.js +61 -0
  14. package/chunks/{anthropicContentGenerator-NMSS7IMV.js → anthropicContentGenerator-HVKLXOOU.js} +12 -13
  15. package/chunks/{artifact-tool-56T5IMBP.js → artifact-tool-WBCAMD3O.js} +3 -3
  16. package/chunks/{askUserQuestion-E25OBIC2.js → askUserQuestion-6DZC4UV5.js} +3 -3
  17. package/chunks/{bridge-HUUBAUDS.js → bridge-VL7ITBU5.js} +35 -42
  18. package/chunks/{build-GHIZ4MSZ.js → build-SSCNEHZZ.js} +1 -1
  19. package/chunks/{ca-N6VVUFVB.js → ca-2SL2BXTK.js} +201 -611
  20. package/chunks/{channel-worker-group-LFBT7K64.js → channel-worker-group-53CMOPFT.js} +5 -5
  21. package/chunks/{channel-worker-manager-3RUPERG2.js → channel-worker-manager-UTXILKC2.js} +5 -5
  22. package/chunks/{channel-worker-supervisor-A3KVATD3.js → channel-worker-supervisor-ZGO2W2MD.js} +4 -4
  23. package/chunks/{chunk-2LI23QA6.js → chunk-2HOVDT7W.js} +1 -1
  24. package/chunks/{chunk-QSZOJHCQ.js → chunk-2LL7TXB4.js} +2 -2
  25. package/chunks/{chunk-EGMNITTR.js → chunk-333CXMNJ.js} +5 -5
  26. package/chunks/{chunk-DGKZ6QL3.js → chunk-33XUAINQ.js} +21 -61
  27. package/chunks/{chunk-DKT6SIJC.js → chunk-4EP2PYYL.js} +5 -5
  28. package/chunks/{chunk-QW3QUYG5.js → chunk-4ILMYHEI.js} +3 -3
  29. package/chunks/{chunk-B5KE3KNO.js → chunk-4N3KMAIL.js} +32 -128
  30. package/chunks/{chunk-6ZBPS62S.js → chunk-4ODB7WIB.js} +1 -1
  31. package/chunks/{chunk-5XPUJM4N.js → chunk-4XNLIGVA.js} +298 -576
  32. package/chunks/{chunk-67SZUDUH.js → chunk-542SK7KV.js} +1608 -243
  33. package/chunks/{chunk-RZZNAWTE.js → chunk-5JBR5XIK.js} +2 -2
  34. package/chunks/{chunk-E4IMU4Y5.js → chunk-5SCI6E3E.js} +1 -1
  35. package/chunks/{chunk-ZKY7USAE.js → chunk-6AFUCL3D.js} +1 -1
  36. package/chunks/{chunk-5I5BM454.js → chunk-6EFTQYW7.js} +1 -1
  37. package/chunks/{chunk-BXCXDT2T.js → chunk-7PZ2ATFZ.js} +29 -54
  38. package/chunks/{chunk-FJZPCXZM.js → chunk-7RMOXZTC.js} +4 -4
  39. package/chunks/{chunk-XPWXDCW5.js → chunk-7SXZC7ID.js} +6 -7
  40. package/chunks/{chunk-O2WEV2LS.js → chunk-A5LYNIW7.js} +8 -8
  41. package/chunks/{chunk-SEHBVG2S.js → chunk-AJSJ5TTU.js} +1 -1
  42. package/chunks/{chunk-422RQSNN.js → chunk-AKX4WPPP.js} +86 -307
  43. package/chunks/{chunk-QVQCCBMW.js → chunk-ANPINBOF.js} +5 -5
  44. package/chunks/{chunk-JJEFX6U5.js → chunk-AQIEINAY.js} +1766 -28
  45. package/chunks/{chunk-7Z6JQEL6.js → chunk-AYCDXHZB.js} +1 -1
  46. package/chunks/{chunk-BKZEHVPV.js → chunk-B3KGZCQN.js} +169 -177
  47. package/chunks/{chunk-6X4GWOPW.js → chunk-BDBMYST4.js} +1 -1
  48. package/chunks/{chunk-25WFJZL5.js → chunk-BMWMT5Y2.js} +373 -3
  49. package/chunks/{chunk-EDANOBFR.js → chunk-BRRF37CO.js} +6 -6
  50. package/chunks/{chunk-QLJUC7TG.js → chunk-BVLROR2T.js} +1 -1
  51. package/chunks/{chunk-OQB4EXO4.js → chunk-C27BYUX6.js} +11 -14
  52. package/chunks/{chunk-GDBCCE2J.js → chunk-CB2HFGRV.js} +6 -31
  53. package/chunks/chunk-CPCVCKKF.js +358 -0
  54. package/chunks/{chunk-K6YXJ3J5.js → chunk-CV63PP6U.js} +1 -1
  55. package/chunks/{chunk-BWGIRN4Z.js → chunk-CZF3E5GF.js} +1 -1
  56. package/chunks/{chunk-6NAAGP57.js → chunk-D22SX43D.js} +1 -1
  57. package/chunks/{chunk-X6N25LXS.js → chunk-D2VIDMVM.js} +2 -2
  58. package/chunks/{chunk-E7O22QBU.js → chunk-DBE4QFZS.js} +23 -27
  59. package/chunks/{chunk-4ZAHUGSC.js → chunk-DP5GXXNZ.js} +1 -5
  60. package/chunks/{chunk-Q2YKNMLS.js → chunk-EAUYY7SS.js} +3 -3
  61. package/chunks/{chunk-KHOVYUHX.js → chunk-EIAK6Q2B.js} +2 -2
  62. package/chunks/{chunk-NPQDJGKU.js → chunk-EZVDJFZ7.js} +1 -1
  63. package/chunks/{chunk-FODK6UMO.js → chunk-FEOZBUMT.js} +27 -0
  64. package/chunks/{chunk-6NHK6HS7.js → chunk-FLSVD6BS.js} +3 -3
  65. package/chunks/{chunk-LLJNFFFT.js → chunk-FQD7GFSV.js} +3 -3
  66. package/chunks/{chunk-T2L47JJK.js → chunk-FSL5W5TI.js} +3 -3
  67. package/chunks/{chunk-JCW2R7WC.js → chunk-G45X5TRN.js} +72 -1
  68. package/chunks/{chunk-ZHERRXZJ.js → chunk-GKY2OJ7R.js} +1 -1
  69. package/chunks/{chunk-6IL7KRLE.js → chunk-GMGDLUC7.js} +1 -1
  70. package/chunks/{chunk-N2HDLRGT.js → chunk-HZPN55E5.js} +1 -1
  71. package/chunks/{chunk-NTC7J4X7.js → chunk-I2PYAYFM.js} +3 -3
  72. package/chunks/{chunk-RVWSD6GI.js → chunk-IR46U7RB.js} +3 -3
  73. package/chunks/{chunk-W6E7KTQL.js → chunk-IVPSS6EL.js} +4 -4
  74. package/chunks/{chunk-4K56OJFJ.js → chunk-JD3MKVKL.js} +1 -1
  75. package/chunks/{chunk-SP5WRGVG.js → chunk-JNWZQ27S.js} +3 -3
  76. package/chunks/{chunk-VAUDHMX6.js → chunk-KDC6GNQR.js} +4 -4
  77. package/chunks/{chunk-5TSCAYXT.js → chunk-KG3XV6FH.js} +2 -29
  78. package/chunks/{chunk-HCQ2Q3KF.js → chunk-KOR3XKCA.js} +4 -10
  79. package/chunks/{chunk-52Y2T4L3.js → chunk-KQNM4EO7.js} +5 -137
  80. package/chunks/{chunk-4K7VDKAD.js → chunk-KTUQMDEP.js} +1 -1
  81. package/chunks/{chunk-Z2FTZM4Z.js → chunk-KX6UK4VJ.js} +19929 -22391
  82. package/chunks/{chunk-JYS55H6Z.js → chunk-MAQQGNQ5.js} +7 -66
  83. package/chunks/{chunk-7FNV372W.js → chunk-MJ6S23WZ.js} +4 -4
  84. package/chunks/{chunk-D7WXIW7H.js → chunk-NBMIC7DR.js} +4 -4
  85. package/chunks/{chunk-HGGEN2SC.js → chunk-NDMQLV4Y.js} +4 -4
  86. package/chunks/{chunk-FFFM6NJV.js → chunk-NEEB7UEN.js} +2 -1
  87. package/chunks/{chunk-WKGGZF7Z.js → chunk-NGFEPAE6.js} +6 -8
  88. package/chunks/{chunk-RVLZCXEE.js → chunk-NIJEXGV6.js} +10 -79
  89. package/chunks/{chunk-LMY4HCMA.js → chunk-O3OCNYY5.js} +2 -2
  90. package/chunks/{chunk-RIEABAJC.js → chunk-O3Z73NBP.js} +7 -7
  91. package/chunks/{chunk-VBZBVAQ3.js → chunk-OEO2ERWK.js} +33 -54
  92. package/chunks/{chunk-KQQ757OQ.js → chunk-OLMETXLX.js} +2 -2
  93. package/chunks/{chunk-LIZRAKPB.js → chunk-OOCI5VVU.js} +1 -1
  94. package/chunks/{chunk-GPSKDNEE.js → chunk-OONJNQ42.js} +3 -3
  95. package/chunks/{chunk-YM3SZTH4.js → chunk-OP4MOGXF.js} +1 -8
  96. package/chunks/{chunk-FCPNARPD.js → chunk-OWCALFEG.js} +1 -1
  97. package/chunks/{chunk-MPZ34JE7.js → chunk-OYZWQNWG.js} +2 -2
  98. package/chunks/{chunk-QBUDF33N.js → chunk-PBATSWUQ.js} +1 -1
  99. package/chunks/{chunk-6MNDXSG6.js → chunk-PBWEWI4N.js} +69 -76
  100. package/chunks/{chunk-OCCDRJIS.js → chunk-PF4CHQOJ.js} +6 -6
  101. package/chunks/{chunk-BH32VITB.js → chunk-PGEPSDJI.js} +8 -13
  102. package/chunks/{chunk-4LVZNIDO.js → chunk-QKYTTBYW.js} +1 -1
  103. package/chunks/{chunk-VYPFXUCB.js → chunk-R3VWUU2E.js} +1 -1
  104. package/chunks/{chunk-RV4C2ZFG.js → chunk-RFIAR4YL.js} +1 -1
  105. package/chunks/{chunk-P4B4SXDS.js → chunk-S2PD3EZD.js} +1 -1
  106. package/chunks/{chunk-H6T65C7O.js → chunk-S2W2LVDU.js} +3 -3
  107. package/chunks/{chunk-VJ4P64ID.js → chunk-S2XVRHDN.js} +1 -1
  108. package/chunks/chunk-SEKHYHMS.js +45 -0
  109. package/chunks/{chunk-JNEA3NW7.js → chunk-SJMV7ZBK.js} +8 -8
  110. package/chunks/{chunk-THJNPLI4.js → chunk-TB6UDU4T.js} +16 -16
  111. package/chunks/{chunk-R3D7SK6L.js → chunk-TIH2ZTOC.js} +2 -2
  112. package/chunks/{chunk-3FML67YK.js → chunk-TKLLK6XQ.js} +11 -11
  113. package/chunks/{chunk-SMVDDPEJ.js → chunk-TMQ6XQCX.js} +53 -170
  114. package/chunks/{chunk-QNLNLENL.js → chunk-UEY4AYUL.js} +2 -2
  115. package/chunks/{chunk-BLTELXOK.js → chunk-VDWBQ5AW.js} +1 -1
  116. package/chunks/{chunk-WGBLCAVW.js → chunk-VEXFOTEO.js} +3 -3
  117. package/chunks/{chunk-4RAFVWW2.js → chunk-VZQUV7VK.js} +1 -1
  118. package/chunks/chunk-W7FJ3N32.js +49 -0
  119. package/chunks/{chunk-UGYMA4EI.js → chunk-W7H223ZZ.js} +1 -1
  120. package/chunks/{chunk-UH3WSE5L.js → chunk-X6YQWCIJ.js} +1 -13
  121. package/chunks/{chunk-H4AR2JQF.js → chunk-XVVH63JG.js} +3 -3
  122. package/chunks/{chunk-QKTHJXCS.js → chunk-Y2ENGUD6.js} +1 -1
  123. package/chunks/{chunk-QD6BRERJ.js → chunk-YWEW33JY.js} +7 -7
  124. package/chunks/{chunk-57FIIFJN.js → chunk-ZEOZL37W.js} +1 -1
  125. package/chunks/chunk-ZFKNWQGQ.js +74639 -0
  126. package/chunks/{computer-use-XPLRRVJM.js → computer-use-NIWQNUZF.js} +35 -42
  127. package/chunks/{config-utils-WYUQ7II4.js → config-utils-AHQ6YZ66.js} +3 -3
  128. package/chunks/contextCommand-L2COEUHS.js +66 -0
  129. package/chunks/{create-sub-session-5YJR5PAM.js → create-sub-session-MGNX52P3.js} +30 -37
  130. package/chunks/{create-sub-session-AZ77LBL3.js → create-sub-session-P26FE5GG.js} +3 -3
  131. package/chunks/{cron-create-KTWJM7QT.js → cron-create-JWFHBDRQ.js} +5 -5
  132. package/chunks/{cron-delete-2P3I5ULL.js → cron-delete-GDX4E26G.js} +5 -5
  133. package/chunks/{cron-list-PXDPGEDQ.js → cron-list-USMAIWPT.js} +5 -5
  134. package/chunks/{daemon-KLPTQIE4.js → daemon-RG2MAI6T.js} +81 -138
  135. package/chunks/daemon-status-provider-NL4IAG7B.js +74 -0
  136. package/chunks/{de-4IBXM7CN.js → de-I7ZIYXZC.js} +1 -5
  137. package/chunks/{dist-HMU6CYS4.js → dist-2BHAYBKP.js} +2 -2
  138. package/chunks/{dist-PJLG2XYX.js → dist-2MIU4UUH.js} +1 -1
  139. package/chunks/{dist-UIFWIFRO.js → dist-53PZYC5B.js} +2 -2
  140. package/chunks/{dist-OAV7LJGJ.js → dist-AU7NQQRP.js} +1 -1
  141. package/chunks/{dist-OMW6WDEO.js → dist-FUTEXY6A.js} +1 -1
  142. package/chunks/{dist-XRYV6TJP.js → dist-WGTQO7F2.js} +25 -65
  143. package/chunks/{earlyInputCapture-XMECIN6Y.js → earlyInputCapture-L6I2A22T.js} +31 -38
  144. package/chunks/{edit-MMPLBVZU.js → edit-3QV3JZJL.js} +37 -42
  145. package/chunks/{en-USMCCJAJ.js → en-XE34GKAA.js} +1 -5
  146. package/chunks/{enter-worktree-BD7MCCG7.js → enter-worktree-4GMMF7EG.js} +35 -42
  147. package/chunks/{enterPlanMode-BQNJC23R.js → enterPlanMode-L5UWBAUC.js} +36 -48
  148. package/chunks/{environment-F3KL5Z5S.js → environment-3OV7UQOT.js} +32 -39
  149. package/chunks/{errors-VJ544HIS.js → errors-LEOF5QG4.js} +32 -39
  150. package/chunks/{exit-worktree-RDIQXZMI.js → exit-worktree-DDP57JLV.js} +35 -42
  151. package/chunks/{exitPlanMode-UNCZQPTX.js → exitPlanMode-CJBLGPIP.js} +35 -42
  152. package/chunks/{fast-path-H7N32H7D.js → fast-path-M6RP2ING.js} +3 -4
  153. package/chunks/{fast-path-settings-XB3CPUJT.js → fast-path-settings-DAOVFADC.js} +2 -2
  154. package/chunks/{fr-WVHEBDDB.js → fr-X7KDVZIY.js} +1 -5
  155. package/chunks/{gemini-G4VKT5DQ.js → gemini-H4PHBJTL.js} +89 -97
  156. package/chunks/{geminiContentGenerator-MDAL2B4C.js → geminiContentGenerator-VURJYPWP.js} +5 -5
  157. package/chunks/{getMachineId-bsd-QFVLPUPT.js → getMachineId-bsd-EXV7SWPA.js} +1 -1
  158. package/chunks/{getMachineId-darwin-DGMQQE2E.js → getMachineId-darwin-IUOMFXU3.js} +1 -1
  159. package/chunks/{getMachineId-linux-R4Z6CSWC.js → getMachineId-linux-K7XJYFHL.js} +1 -1
  160. package/chunks/{getMachineId-unsupported-Z3SBVBUV.js → getMachineId-unsupported-EA5FDRJ6.js} +1 -1
  161. package/chunks/{getMachineId-win-SCK5UFDT.js → getMachineId-win-KBA6RAI5.js} +1 -1
  162. package/chunks/{glob-JBT6FGZL.js → glob-2KUSRAVQ.js} +35 -42
  163. package/chunks/{grep-5NUIQ63X.js → grep-B5RXVESV.js} +35 -42
  164. package/chunks/handleAutoUpdate-QQVIWXKT.js +67 -0
  165. package/chunks/{i18n-IPHO7BGL.js → i18n-N6OBDORT.js} +31 -38
  166. package/chunks/initializer-6WCFNDLL.js +72 -0
  167. package/chunks/installationInfo-6J3WPXNS.js +64 -0
  168. package/chunks/{ja-KY4ROZTE.js → ja-2ICT3KXF.js} +1 -5
  169. package/chunks/{keychain-token-storage-6ACJDYIB.js → keychain-token-storage-DWRJMNH3.js} +3 -3
  170. package/chunks/list-HOWQSWP6.js +75 -0
  171. package/chunks/loadedSettingsAdapter-AO4YBRXZ.js +69 -0
  172. package/chunks/{loop-wakeup-RNMRVA66.js → loop-wakeup-5GLTUBHA.js} +6 -6
  173. package/chunks/{ls-J2ZI5XYK.js → ls-FHBY3Y7I.js} +5 -5
  174. package/chunks/{lsp-UMS3NUB5.js → lsp-B6VMEW6Y.js} +3 -3
  175. package/chunks/mcp-QH7QNXOH.js +69 -0
  176. package/chunks/{monitor-SIX5LMEK.js → monitor-GLJZDNPS.js} +35 -42
  177. package/chunks/nonInteractiveCli-TI7EMPXD.js +126 -0
  178. package/chunks/{notebook-edit-CWVOTW3I.js → notebook-edit-AVCIWS4F.js} +38 -43
  179. package/chunks/{openaiContentGenerator-FELHHJAN.js → openaiContentGenerator-B7W24G3D.js} +17 -22
  180. package/chunks/{pidfile-2ZQGHGPJ.js → pidfile-UEHAT6DH.js} +31 -38
  181. package/chunks/{processUtils-M3RKQCI4.js → processUtils-XZPY2PBB.js} +2 -2
  182. package/chunks/{pt-OK455PLH.js → pt-JJ4XPIBP.js} +1 -5
  183. package/chunks/{qwenContentGenerator-RBFIZMBC.js → qwenContentGenerator-6GUTWJIC.js} +35 -44
  184. package/chunks/{qwenOAuth2-S2BUDQM3.js → qwenOAuth2-GASEEWGU.js} +15 -18
  185. package/chunks/{read-file-WQCCV6HY.js → read-file-SQJONF6A.js} +11 -13
  186. package/chunks/{read-mcp-resource-F6HYMDUY.js → read-mcp-resource-AKCL7I43.js} +3 -3
  187. package/chunks/{record-artifact-7GCFLDD7.js → record-artifact-PEUB7727.js} +3 -3
  188. package/chunks/{resumeHistoryUtils-NDYMU2WO.js → resumeHistoryUtils-PFQ2A23X.js} +36 -43
  189. package/chunks/ripGrep-QCK22GDU.js +59 -0
  190. package/chunks/{ru-7SPDGMGD.js → ru-STR4KTW7.js} +1 -5
  191. package/chunks/{run-qwen-serve-FY5MMHPN.js → run-qwen-serve-OZGR3FQA.js} +82 -104
  192. package/chunks/{runtime-LONMMWKO.js → runtime-SNVAP6EH.js} +40 -49
  193. package/chunks/{scheduler-KYNL2MHI.js → scheduler-Z7QLMUWA.js} +30 -37
  194. package/chunks/{send-message-PYIJ2PZL.js → send-message-3RHE7HSM.js} +4 -6
  195. package/chunks/{serve-VNORFL4H.js → serve-BT7KS6SC.js} +36 -43
  196. package/chunks/{server-X2KCJKA3.js → server-SO64U3X5.js} +284 -988
  197. package/chunks/{session-CSYW4ELX.js → session-2KL2WQAH.js} +173 -92
  198. package/chunks/{settings-QZJ4XWS3.js → settings-KITVOUSV.js} +39 -46
  199. package/chunks/{shell-ELMKOZKP.js → shell-BITUVH2R.js} +30 -37
  200. package/chunks/{skill-IBUGJX5S.js → skill-SOQHY455.js} +20 -24
  201. package/chunks/{spawnChannel-SWCGOB2N.js → spawnChannel-2BU3AULL.js} +32 -39
  202. package/chunks/{src-FOUKVFPZ.js → src-43LM7JLB.js} +209 -279
  203. package/chunks/{standalone-update-5U5IRIN5.js → standalone-update-YG5JUYCM.js} +32 -39
  204. package/chunks/{startInteractiveUI-B3KIQ363.js → startInteractiveUI-3RGTGEX5.js} +895 -1092
  205. package/chunks/{syntheticOutput-H7RTI5KL.js → syntheticOutput-FG5PQKIR.js} +4 -4
  206. package/chunks/{task-create-7474AJJD.js → task-create-HX32YXO7.js} +8 -10
  207. package/chunks/{task-list-633HGOIB.js → task-list-QWSY4ZIU.js} +6 -6
  208. package/chunks/{task-stop-MNUGHPIA.js → task-stop-GWC6UWAL.js} +3 -3
  209. package/chunks/{task-update-66GQB5LI.js → task-update-NCTAB73Q.js} +8 -10
  210. package/chunks/{team-create-AT3OPBS4.js → team-create-FXN3PEBP.js} +35 -42
  211. package/chunks/{team-delete-BB3CG3QF.js → team-delete-KK37HTOG.js} +6 -6
  212. package/chunks/{team-plan-approval-6AYAQ3KG.js → team-plan-approval-GEIZ356Q.js} +35 -42
  213. package/chunks/theme-manager-IAETOI25.js +63 -0
  214. package/chunks/{todoWrite-KRAUN54W.js → todoWrite-ERCAMLFS.js} +5 -5
  215. package/chunks/{tool-search-2ZFYIVVW.js → tool-search-XKK7DNOK.js} +17 -21
  216. package/chunks/total-session-admission-BJLDHKJN.js +69 -0
  217. package/chunks/{trustedFolders-VHGVDSZU.js → trustedFolders-5XCVNEUU.js} +31 -38
  218. package/chunks/{update-relaunch-RM5E3W4P.js → update-relaunch-FMVZK6XF.js} +17 -17
  219. package/chunks/updateCheck-YZZB7YBU.js +70 -0
  220. package/chunks/{useAutoAcceptIndicator-AAPKHC46.js → useAutoAcceptIndicator-ZSQX4I2H.js} +40 -47
  221. package/chunks/{validateNonInterActiveAuth-7WGVSFOZ.js → validateNonInterActiveAuth-PRVEB6GG.js} +72 -79
  222. package/chunks/{version-M7BDNXTT.js → version-AZMG6KWL.js} +1 -1
  223. package/chunks/{web-fetch-UZSKXY3L.js → web-fetch-EPGJ5OQQ.js} +41 -100
  224. package/chunks/{workflow-OCSRM2L2.js → workflow-UTNVPW22.js} +39 -47
  225. package/chunks/workspace-providers-status-EADV364W.js +72 -0
  226. package/chunks/{workspace-registration-store-QDOLWEMY.js → workspace-registration-store-F3ZX3YHT.js} +2 -8
  227. package/chunks/workspace-registry-W6VMFYZU.js +73 -0
  228. package/chunks/workspace-service-F3KIN2UN.js +84 -0
  229. package/chunks/workspace-skills-status-YVICUR5Y.js +71 -0
  230. package/chunks/write-file-CVGF2OKV.js +596 -0
  231. package/chunks/{zh-WY5DWYZD.js → zh-6ANG2HTL.js} +1 -5
  232. package/chunks/{zh-TW-BM47YBFH.js → zh-TW-4RR3YHNN.js} +1 -5
  233. package/cli-entry.js +12 -164
  234. package/cli.js +11 -18
  235. package/locales/ca.js +203 -772
  236. package/locales/de.js +2 -8
  237. package/locales/en.js +2 -8
  238. package/locales/fr.js +2 -8
  239. package/locales/ja.js +2 -8
  240. package/locales/pt.js +2 -8
  241. package/locales/ru.js +2 -8
  242. package/locales/zh-TW.js +2 -8
  243. package/locales/zh.js +2 -8
  244. package/package.json +3 -3
  245. package/web-shell/assets/{arc-ByltRugA.js → arc-Buk1besA.js} +1 -1
  246. package/web-shell/assets/{architectureDiagram-3BPJPVTR-CCRTto5d.js → architectureDiagram-3BPJPVTR-B1aUKYDC.js} +1 -1
  247. package/web-shell/assets/{blockDiagram-GPEHLZMM-Jfy36u1L.js → blockDiagram-GPEHLZMM-CRTdg3Zx.js} +1 -1
  248. package/web-shell/assets/{c4Diagram-AAUBKEIU-4d5FfEZ0.js → c4Diagram-AAUBKEIU-DFdRMp5g.js} +1 -1
  249. package/web-shell/assets/channel-04R0vLbG.js +1 -0
  250. package/web-shell/assets/{chunk-2J33WTMH-BPwxCEro.js → chunk-2J33WTMH-4rYQdkEI.js} +1 -1
  251. package/web-shell/assets/{chunk-4BX2VUAB-jY7ZmJWY.js → chunk-4BX2VUAB-Coi-pQJy.js} +1 -1
  252. package/web-shell/assets/{chunk-55IACEB6-C98HgCsS.js → chunk-55IACEB6-BtBjz02t.js} +1 -1
  253. package/web-shell/assets/{chunk-727SXJPM-cDu-ge-q.js → chunk-727SXJPM-CGYOWorl.js} +1 -1
  254. package/web-shell/assets/{chunk-AQP2D5EJ-BKdJwxXK.js → chunk-AQP2D5EJ-CH5AKhqx.js} +1 -1
  255. package/web-shell/assets/{chunk-FMBD7UC4-DnuxqwMu.js → chunk-FMBD7UC4-Cd50-w85.js} +1 -1
  256. package/web-shell/assets/{chunk-ND2GUHAM-C4fZNPv0.js → chunk-ND2GUHAM-C2wF3KCK.js} +1 -1
  257. package/web-shell/assets/{chunk-QZHKN3VN-Cf4XWOmz.js → chunk-QZHKN3VN-pCeRTaWi.js} +1 -1
  258. package/web-shell/assets/classDiagram-4FO5ZUOK-Bw9SOwAV.js +1 -0
  259. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Bw9SOwAV.js +1 -0
  260. package/web-shell/assets/{cose-bilkent-S5V4N54A-C82mFiqj.js → cose-bilkent-S5V4N54A-B-_fAB6D.js} +1 -1
  261. package/web-shell/assets/{dagre-BM42HDAG-Df8KACER.js → dagre-BM42HDAG-ChSPNHpL.js} +1 -1
  262. package/web-shell/assets/{diagram-2AECGRRQ-EzNs7s_2.js → diagram-2AECGRRQ-BX7cFOF3.js} +1 -1
  263. package/web-shell/assets/{diagram-5GNKFQAL-BRLNvreg.js → diagram-5GNKFQAL-BQUTW92n.js} +1 -1
  264. package/web-shell/assets/{diagram-KO2AKTUF-2HLYHRjC.js → diagram-KO2AKTUF-BkYPh3e4.js} +1 -1
  265. package/web-shell/assets/{diagram-LMA3HP47-DeH0NzSp.js → diagram-LMA3HP47-Cl6jsNyx.js} +1 -1
  266. package/web-shell/assets/{diagram-OG6HWLK6-k5Gn47-G.js → diagram-OG6HWLK6-DRWoHz8n.js} +1 -1
  267. package/web-shell/assets/{erDiagram-TEJ5UH35-gPHFo79f.js → erDiagram-TEJ5UH35-CGvFcZco.js} +1 -1
  268. package/web-shell/assets/{flowDiagram-I6XJVG4X-DYBOiTRW.js → flowDiagram-I6XJVG4X-vms6oVdv.js} +1 -1
  269. package/web-shell/assets/{ganttDiagram-6RSMTGT7-cxjAuic9.js → ganttDiagram-6RSMTGT7-ukT_sfmi.js} +1 -1
  270. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-3nPqpmCP.js → gitGraphDiagram-PVQCEYII-Bn2ZE2Ut.js} +1 -1
  271. package/web-shell/assets/index-DgkKrjw3.js +1187 -0
  272. package/web-shell/assets/index-Rv6mOAN9.css +5 -0
  273. package/web-shell/assets/{index-Cl8d-1bK.js → index-wFXp7W68.js} +1 -1
  274. package/web-shell/assets/{infoDiagram-5YYISTIA-Dph21pR5.js → infoDiagram-5YYISTIA-DHJdSi7x.js} +1 -1
  275. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js → ishikawaDiagram-YF4QCWOH-DOvd2Wph.js} +1 -1
  276. package/web-shell/assets/{journeyDiagram-JHISSGLW-CR-IzvnU.js → journeyDiagram-JHISSGLW-CH_urMCT.js} +1 -1
  277. package/web-shell/assets/{kanban-definition-UN3LZRKU-BYmuybuC.js → kanban-definition-UN3LZRKU-FKiBdgbH.js} +1 -1
  278. package/web-shell/assets/{linear-CngEEoy8.js → linear-0ZVQFVKf.js} +1 -1
  279. package/web-shell/assets/{mermaid.core-G6fbZRPf.js → mermaid.core-DJ05ZZIK.js} +5 -5
  280. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BtnqnUwJ.js → mindmap-definition-RKZ34NQL-BPuUhkUm.js} +1 -1
  281. package/web-shell/assets/{pieDiagram-4H26LBE5-XTq6UHIA.js → pieDiagram-4H26LBE5-yLFKcXyG.js} +1 -1
  282. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D1J5PrsS.js → quadrantDiagram-W4KKPZXB-irWqc1pE.js} +1 -1
  283. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CLcBUy3t.js → requirementDiagram-4Y6WPE33-B_4uMoIV.js} +1 -1
  284. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-iwKV02_6.js → sankeyDiagram-5OEKKPKP-ciA4GPwk.js} +1 -1
  285. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-7NFYQcEX.js → sequenceDiagram-3UESZ5HK-CRdZvy0U.js} +1 -1
  286. package/web-shell/assets/{stateDiagram-AJRCARHV-Bvm4Wih6.js → stateDiagram-AJRCARHV-DaYIkCCn.js} +1 -1
  287. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DWBoO4UY.js +1 -0
  288. package/web-shell/assets/{timeline-definition-PNZ67QCA-B4FZFE9O.js → timeline-definition-PNZ67QCA-oBUKv6iH.js} +1 -1
  289. package/web-shell/assets/{vennDiagram-CIIHVFJN-CvMBpmtL.js → vennDiagram-CIIHVFJN-CGW9Sdmb.js} +1 -1
  290. package/web-shell/assets/{wardley-L42UT6IY-E3ag2327.js → wardley-L42UT6IY-CvwKJOCm.js} +1 -1
  291. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BEXWlgxC.js → wardleyDiagram-YWT4CUSO-Ipc260sN.js} +1 -1
  292. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CICK05gI.js → xychartDiagram-2RQKCTM6-D6-CM7pK.js} +1 -1
  293. package/web-shell/index.html +2 -2
  294. package/chunks/agent-headless-QTKDKVED.js +0 -68
  295. package/chunks/chunk-2RFKHEXL.js +0 -74
  296. package/chunks/chunk-43T5WDQ7.js +0 -127
  297. package/chunks/chunk-6PVPNMXU.js +0 -29
  298. package/chunks/chunk-7362QS5B.js +0 -2256
  299. package/chunks/chunk-D7ZI5C7O.js +0 -20600
  300. package/chunks/chunk-GLNBDYUX.js +0 -38
  301. package/chunks/chunk-GMLTZG4O.js +0 -391
  302. package/chunks/chunk-HTR4WV6U.js +0 -327
  303. package/chunks/chunk-KWK7UE6L.js +0 -6194
  304. package/chunks/chunk-M7WBGLYP.js +0 -151
  305. package/chunks/chunk-MMT6IQCT.js +0 -121
  306. package/chunks/chunk-NABLFI57.js +0 -82
  307. package/chunks/chunk-OQ5SYCPE.js +0 -10017
  308. package/chunks/chunk-PI6ECBP3.js +0 -1780
  309. package/chunks/chunk-U7ZFW55U.js +0 -2098
  310. package/chunks/chunk-WHGVTP7Q.js +0 -1049
  311. package/chunks/chunk-XHATNRQA.js +0 -1500
  312. package/chunks/contextCommand-2W675HYY.js +0 -73
  313. package/chunks/daemon-status-provider-QZCVTG6N.js +0 -81
  314. package/chunks/handleAutoUpdate-EF3LY7MI.js +0 -74
  315. package/chunks/initializer-HCOCXGBI.js +0 -79
  316. package/chunks/installationInfo-UEBNCLFW.js +0 -73
  317. package/chunks/list-4SKXTNSD.js +0 -82
  318. package/chunks/loadedSettingsAdapter-EQWK5CG6.js +0 -76
  319. package/chunks/managed-npm-update-ZUZU4UFM.js +0 -333
  320. package/chunks/mcp-4Z3EC4SI.js +0 -76
  321. package/chunks/nonInteractiveCli-FTUKIU5R.js +0 -133
  322. package/chunks/ripGrep-K2E3F5ED.js +0 -66
  323. package/chunks/sdk-exporters-grpc-ETLH47EP.js +0 -23214
  324. package/chunks/sdk-exporters-http-T3POX73F.js +0 -563
  325. package/chunks/sdk-impl-NSLPDH6I.js +0 -9193
  326. package/chunks/theme-manager-733OBN7I.js +0 -70
  327. package/chunks/total-session-admission-TZ4NVA6B.js +0 -76
  328. package/chunks/updateCheck-DGY3LFKB.js +0 -89
  329. package/chunks/web-search-EG64C5VB.js +0 -731
  330. package/chunks/workspace-providers-status-HZLYOFRA.js +0 -79
  331. package/chunks/workspace-registry-EVSTTG3G.js +0 -80
  332. package/chunks/workspace-service-DNQMT6FN.js +0 -91
  333. package/chunks/workspace-skills-status-ICGPGD6F.js +0 -78
  334. package/chunks/write-file-K6R5F3IZ.js +0 -66
  335. package/web-shell/assets/channel-4N2UIFcG.js +0 -1
  336. package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +0 -1
  337. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +0 -1
  338. package/web-shell/assets/index-B7jzUZ_s.css +0 -5
  339. package/web-shell/assets/index-gE8OWwj_.js +0 -1197
  340. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +0 -1
  341. package/chunks/{chunk-QZJY47IE.js → chunk-PEJWA3QQ.js} +5 -5
@@ -8,18 +8,21 @@ import {
8
8
  } from "./chunk-QHTIBUWB.js";
9
9
  import {
10
10
  t
11
- } from "./chunk-3FML67YK.js";
12
- import {
13
- require_diff,
14
- require_gt,
15
- require_semver
16
- } from "./chunk-XHATNRQA.js";
17
- import {
18
- getNpmCliPath
19
- } from "./chunk-5TSCAYXT.js";
11
+ } from "./chunk-TKLLK6XQ.js";
20
12
  import {
21
13
  getPackageJson
22
14
  } from "./chunk-VJNBRRZG.js";
15
+ import {
16
+ require_clean,
17
+ require_constants,
18
+ require_debug,
19
+ require_identifiers,
20
+ require_parse,
21
+ require_parse_options,
22
+ require_re,
23
+ require_semver,
24
+ require_valid
25
+ } from "./chunk-URK542T4.js";
23
26
  import {
24
27
  ansi_regex_exports,
25
28
  init_ansi_regex,
@@ -30,7 +33,7 @@ import {
30
33
  } from "./chunk-E2UVIFI2.js";
31
34
  import {
32
35
  createDebugLogger
33
- } from "./chunk-OQB4EXO4.js";
36
+ } from "./chunk-C27BYUX6.js";
34
37
  import {
35
38
  __qwen_dirname,
36
39
  init_esbuild_shims
@@ -43,6 +46,73 @@ import {
43
46
  __toESM
44
47
  } from "./chunk-J2S4EL5Y.js";
45
48
 
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
+
46
116
  // node_modules/rc/node_modules/ini/ini.js
47
117
  var require_ini = __commonJS({
48
118
  "node_modules/rc/node_modules/ini/ini.js"(exports) {
@@ -289,7 +359,7 @@ var require_utils = __commonJS({
289
359
  init_esbuild_shims();
290
360
  var fs5 = __require("fs");
291
361
  var ini2 = require_ini();
292
- var path10 = __require("path");
362
+ var path9 = __require("path");
293
363
  var stripJsonComments = require_strip_json_comments();
294
364
  var parse = exports.parse = function(content) {
295
365
  if (/^\s*{/.test(content))
@@ -303,7 +373,7 @@ var require_utils = __commonJS({
303
373
  for (var i in args)
304
374
  if ("string" !== typeof args[i])
305
375
  return;
306
- var file2 = path10.join.apply(null, args);
376
+ var file2 = path9.join.apply(null, args);
307
377
  var content;
308
378
  try {
309
379
  return fs5.readFileSync(file2, "utf-8");
@@ -341,15 +411,15 @@ var require_utils = __commonJS({
341
411
  return obj;
342
412
  };
343
413
  var find = exports.find = function() {
344
- var rel = path10.join.apply(null, [].slice.call(arguments));
414
+ var rel = path9.join.apply(null, [].slice.call(arguments));
345
415
  function find2(start, rel2) {
346
- var file2 = path10.join(start, rel2);
416
+ var file2 = path9.join(start, rel2);
347
417
  try {
348
418
  fs5.statSync(file2);
349
419
  return file2;
350
420
  } catch (err) {
351
- if (path10.dirname(start) !== start)
352
- return find2(path10.dirname(start), rel2);
421
+ if (path9.dirname(start) !== start)
422
+ return find2(path9.dirname(start), rel2);
353
423
  }
354
424
  }
355
425
  __name(find2, "find");
@@ -781,14 +851,14 @@ var require_polyfills = __commonJS({
781
851
  fs5.fstatSync = statFixSync(fs5.fstatSync);
782
852
  fs5.lstatSync = statFixSync(fs5.lstatSync);
783
853
  if (fs5.chmod && !fs5.lchmod) {
784
- fs5.lchmod = function(path10, mode, cb) {
854
+ fs5.lchmod = function(path9, mode, cb) {
785
855
  if (cb) process.nextTick(cb);
786
856
  };
787
857
  fs5.lchmodSync = function() {
788
858
  };
789
859
  }
790
860
  if (fs5.chown && !fs5.lchown) {
791
- fs5.lchown = function(path10, uid, gid, cb) {
861
+ fs5.lchown = function(path9, uid, gid, cb) {
792
862
  if (cb) process.nextTick(cb);
793
863
  };
794
864
  fs5.lchownSync = function() {
@@ -857,9 +927,9 @@ var require_polyfills = __commonJS({
857
927
  };
858
928
  }(fs5.readSync);
859
929
  function patchLchmod(fs6) {
860
- fs6.lchmod = function(path10, mode, callback) {
930
+ fs6.lchmod = function(path9, mode, callback) {
861
931
  fs6.open(
862
- path10,
932
+ path9,
863
933
  constants.O_WRONLY | constants.O_SYMLINK,
864
934
  mode,
865
935
  function(err, fd) {
@@ -875,8 +945,8 @@ var require_polyfills = __commonJS({
875
945
  }
876
946
  );
877
947
  };
878
- fs6.lchmodSync = function(path10, mode) {
879
- var fd = fs6.openSync(path10, constants.O_WRONLY | constants.O_SYMLINK, mode);
948
+ fs6.lchmodSync = function(path9, mode) {
949
+ var fd = fs6.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
880
950
  var threw = true;
881
951
  var ret;
882
952
  try {
@@ -898,8 +968,8 @@ var require_polyfills = __commonJS({
898
968
  __name(patchLchmod, "patchLchmod");
899
969
  function patchLutimes(fs6) {
900
970
  if (constants.hasOwnProperty("O_SYMLINK") && fs6.futimes) {
901
- fs6.lutimes = function(path10, at, mt, cb) {
902
- fs6.open(path10, constants.O_SYMLINK, function(er, fd) {
971
+ fs6.lutimes = function(path9, at, mt, cb) {
972
+ fs6.open(path9, constants.O_SYMLINK, function(er, fd) {
903
973
  if (er) {
904
974
  if (cb) cb(er);
905
975
  return;
@@ -911,8 +981,8 @@ var require_polyfills = __commonJS({
911
981
  });
912
982
  });
913
983
  };
914
- fs6.lutimesSync = function(path10, at, mt) {
915
- var fd = fs6.openSync(path10, constants.O_SYMLINK);
984
+ fs6.lutimesSync = function(path9, at, mt) {
985
+ var fd = fs6.openSync(path9, constants.O_SYMLINK);
916
986
  var ret;
917
987
  var threw = true;
918
988
  try {
@@ -1041,11 +1111,11 @@ var require_legacy_streams = __commonJS({
1041
1111
  ReadStream,
1042
1112
  WriteStream
1043
1113
  };
1044
- function ReadStream(path10, options) {
1045
- if (!(this instanceof ReadStream)) return new ReadStream(path10, options);
1114
+ function ReadStream(path9, options) {
1115
+ if (!(this instanceof ReadStream)) return new ReadStream(path9, options);
1046
1116
  Stream.call(this);
1047
1117
  var self = this;
1048
- this.path = path10;
1118
+ this.path = path9;
1049
1119
  this.fd = null;
1050
1120
  this.readable = true;
1051
1121
  this.paused = false;
@@ -1091,10 +1161,10 @@ var require_legacy_streams = __commonJS({
1091
1161
  });
1092
1162
  }
1093
1163
  __name(ReadStream, "ReadStream");
1094
- function WriteStream(path10, options) {
1095
- if (!(this instanceof WriteStream)) return new WriteStream(path10, options);
1164
+ function WriteStream(path9, options) {
1165
+ if (!(this instanceof WriteStream)) return new WriteStream(path9, options);
1096
1166
  Stream.call(this);
1097
- this.path = path10;
1167
+ this.path = path9;
1098
1168
  this.fd = null;
1099
1169
  this.writable = true;
1100
1170
  this.flags = "w";
@@ -1246,14 +1316,14 @@ var require_graceful_fs2 = __commonJS({
1246
1316
  fs6.createWriteStream = createWriteStream;
1247
1317
  var fs$readFile = fs6.readFile;
1248
1318
  fs6.readFile = readFile;
1249
- function readFile(path10, options, cb) {
1319
+ function readFile(path9, options, cb) {
1250
1320
  if (typeof options === "function")
1251
1321
  cb = options, options = null;
1252
- return go$readFile(path10, options, cb);
1253
- function go$readFile(path11, options2, cb2, startTime) {
1254
- return fs$readFile(path11, options2, function(err) {
1322
+ return go$readFile(path9, options, cb);
1323
+ function go$readFile(path10, options2, cb2, startTime) {
1324
+ return fs$readFile(path10, options2, function(err) {
1255
1325
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1256
- enqueue([go$readFile, [path11, options2, cb2], err, startTime || Date.now(), Date.now()]);
1326
+ enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
1257
1327
  else {
1258
1328
  if (typeof cb2 === "function")
1259
1329
  cb2.apply(this, arguments);
@@ -1265,14 +1335,14 @@ var require_graceful_fs2 = __commonJS({
1265
1335
  __name(readFile, "readFile");
1266
1336
  var fs$writeFile = fs6.writeFile;
1267
1337
  fs6.writeFile = writeFile;
1268
- function writeFile(path10, data, options, cb) {
1338
+ function writeFile(path9, data, options, cb) {
1269
1339
  if (typeof options === "function")
1270
1340
  cb = options, options = null;
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) {
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) {
1274
1344
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1275
- enqueue([go$writeFile, [path11, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1345
+ enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1276
1346
  else {
1277
1347
  if (typeof cb2 === "function")
1278
1348
  cb2.apply(this, arguments);
@@ -1285,14 +1355,14 @@ var require_graceful_fs2 = __commonJS({
1285
1355
  var fs$appendFile = fs6.appendFile;
1286
1356
  if (fs$appendFile)
1287
1357
  fs6.appendFile = appendFile;
1288
- function appendFile(path10, data, options, cb) {
1358
+ function appendFile(path9, data, options, cb) {
1289
1359
  if (typeof options === "function")
1290
1360
  cb = options, options = null;
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) {
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) {
1294
1364
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1295
- enqueue([go$appendFile, [path11, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1365
+ enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
1296
1366
  else {
1297
1367
  if (typeof cb2 === "function")
1298
1368
  cb2.apply(this, arguments);
@@ -1327,31 +1397,31 @@ var require_graceful_fs2 = __commonJS({
1327
1397
  var fs$readdir = fs6.readdir;
1328
1398
  fs6.readdir = readdir;
1329
1399
  var noReaddirOptionVersions = /^v[0-5]\./;
1330
- function readdir(path10, options, cb) {
1400
+ function readdir(path9, options, cb) {
1331
1401
  if (typeof options === "function")
1332
1402
  cb = options, options = null;
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,
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,
1336
1406
  options2,
1337
1407
  cb2,
1338
1408
  startTime
1339
1409
  ));
1340
- }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path11, options2, cb2, startTime) {
1341
- return fs$readdir(path11, options2, fs$readdirCallback(
1342
- path11,
1410
+ }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path10, options2, cb2, startTime) {
1411
+ return fs$readdir(path10, options2, fs$readdirCallback(
1412
+ path10,
1343
1413
  options2,
1344
1414
  cb2,
1345
1415
  startTime
1346
1416
  ));
1347
1417
  }, "go$readdir");
1348
- return go$readdir(path10, options, cb);
1349
- function fs$readdirCallback(path11, options2, cb2, startTime) {
1418
+ return go$readdir(path9, options, cb);
1419
+ function fs$readdirCallback(path10, options2, cb2, startTime) {
1350
1420
  return function(err, files) {
1351
1421
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1352
1422
  enqueue([
1353
1423
  go$readdir,
1354
- [path11, options2, cb2],
1424
+ [path10, options2, cb2],
1355
1425
  err,
1356
1426
  startTime || Date.now(),
1357
1427
  Date.now()
@@ -1424,7 +1494,7 @@ var require_graceful_fs2 = __commonJS({
1424
1494
  enumerable: true,
1425
1495
  configurable: true
1426
1496
  });
1427
- function ReadStream(path10, options) {
1497
+ function ReadStream(path9, options) {
1428
1498
  if (this instanceof ReadStream)
1429
1499
  return fs$ReadStream.apply(this, arguments), this;
1430
1500
  else
@@ -1446,7 +1516,7 @@ var require_graceful_fs2 = __commonJS({
1446
1516
  });
1447
1517
  }
1448
1518
  __name(ReadStream$open, "ReadStream$open");
1449
- function WriteStream(path10, options) {
1519
+ function WriteStream(path9, options) {
1450
1520
  if (this instanceof WriteStream)
1451
1521
  return fs$WriteStream.apply(this, arguments), this;
1452
1522
  else
@@ -1466,24 +1536,24 @@ var require_graceful_fs2 = __commonJS({
1466
1536
  });
1467
1537
  }
1468
1538
  __name(WriteStream$open, "WriteStream$open");
1469
- function createReadStream(path10, options) {
1470
- return new fs6.ReadStream(path10, options);
1539
+ function createReadStream(path9, options) {
1540
+ return new fs6.ReadStream(path9, options);
1471
1541
  }
1472
1542
  __name(createReadStream, "createReadStream");
1473
- function createWriteStream(path10, options) {
1474
- return new fs6.WriteStream(path10, options);
1543
+ function createWriteStream(path9, options) {
1544
+ return new fs6.WriteStream(path9, options);
1475
1545
  }
1476
1546
  __name(createWriteStream, "createWriteStream");
1477
1547
  var fs$open = fs6.open;
1478
1548
  fs6.open = open;
1479
- function open(path10, flags, mode, cb) {
1549
+ function open(path9, flags, mode, cb) {
1480
1550
  if (typeof mode === "function")
1481
1551
  cb = mode, mode = null;
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) {
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) {
1485
1555
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1486
- enqueue([go$open, [path11, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1556
+ enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1487
1557
  else {
1488
1558
  if (typeof cb2 === "function")
1489
1559
  cb2.apply(this, arguments);
@@ -1878,7 +1948,7 @@ var require_config_chain = __commonJS({
1878
1948
  "node_modules/config-chain/index.js"(exports, module) {
1879
1949
  init_esbuild_shims();
1880
1950
  var ProtoList = require_proto_list();
1881
- var path10 = __require("path");
1951
+ var path9 = __require("path");
1882
1952
  var fs5 = __require("fs");
1883
1953
  var ini2 = require_ini2();
1884
1954
  var EE = __require("events").EventEmitter;
@@ -1893,15 +1963,15 @@ var require_config_chain = __commonJS({
1893
1963
  return conf;
1894
1964
  };
1895
1965
  var find = exports.find = function() {
1896
- var rel = path10.join.apply(null, [].slice.call(arguments));
1966
+ var rel = path9.join.apply(null, [].slice.call(arguments));
1897
1967
  function find2(start, rel2) {
1898
- var file = path10.join(start, rel2);
1968
+ var file = path9.join(start, rel2);
1899
1969
  try {
1900
1970
  fs5.statSync(file);
1901
1971
  return file;
1902
1972
  } catch (err) {
1903
- if (path10.dirname(start) !== start)
1904
- return find2(path10.dirname(start), rel2);
1973
+ if (path9.dirname(start) !== start)
1974
+ return find2(path9.dirname(start), rel2);
1905
1975
  }
1906
1976
  }
1907
1977
  __name(find2, "find");
@@ -1933,7 +2003,7 @@ var require_config_chain = __commonJS({
1933
2003
  var args = [].slice.call(arguments).filter(function(arg) {
1934
2004
  return arg != null;
1935
2005
  });
1936
- var file = path10.join.apply(null, args);
2006
+ var file = path9.join.apply(null, args);
1937
2007
  var content;
1938
2008
  try {
1939
2009
  content = fs5.readFileSync(file, "utf-8");
@@ -2204,7 +2274,7 @@ var require_util = __commonJS({
2204
2274
  "use strict";
2205
2275
  init_esbuild_shims();
2206
2276
  var fs5 = __require("fs");
2207
- var path10 = __require("path");
2277
+ var path9 = __require("path");
2208
2278
  var { envReplace } = require_dist2();
2209
2279
  var parseKey = /* @__PURE__ */ __name((key) => {
2210
2280
  if (typeof key !== "string") {
@@ -2217,7 +2287,7 @@ var require_util = __commonJS({
2217
2287
  return field;
2218
2288
  }
2219
2289
  const typeList = [].concat(types[key]);
2220
- const isPath = typeList.indexOf(path10) !== -1;
2290
+ const isPath = typeList.indexOf(path9) !== -1;
2221
2291
  const isBool = typeList.indexOf(Boolean) !== -1;
2222
2292
  const isString2 = typeList.indexOf(String) !== -1;
2223
2293
  const isNumber = typeList.indexOf(Number) !== -1;
@@ -2251,9 +2321,9 @@ var require_util = __commonJS({
2251
2321
  if (isPath) {
2252
2322
  const regex = process.platform === "win32" ? /^~(\/|\\)/ : /^~\//;
2253
2323
  if (regex.test(field) && process.env.HOME) {
2254
- field = path10.resolve(process.env.HOME, field.substr(2));
2324
+ field = path9.resolve(process.env.HOME, field.substr(2));
2255
2325
  }
2256
- field = path10.resolve(field);
2326
+ field = path9.resolve(field);
2257
2327
  }
2258
2328
  if (isNumber && !isNaN(field)) {
2259
2329
  field = Number(field);
@@ -2261,10 +2331,10 @@ var require_util = __commonJS({
2261
2331
  return field;
2262
2332
  }, "parseField");
2263
2333
  var findPrefix = /* @__PURE__ */ __name((name) => {
2264
- name = path10.resolve(name);
2334
+ name = path9.resolve(name);
2265
2335
  let walkedUp = false;
2266
- while (path10.basename(name) === "node_modules") {
2267
- name = path10.dirname(name);
2336
+ while (path9.basename(name) === "node_modules") {
2337
+ name = path9.dirname(name);
2268
2338
  walkedUp = true;
2269
2339
  }
2270
2340
  if (walkedUp) {
@@ -2280,7 +2350,7 @@ var require_util = __commonJS({
2280
2350
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
2281
2351
  return name2;
2282
2352
  }
2283
- const dirname = path10.dirname(name2);
2353
+ const dirname = path9.dirname(name2);
2284
2354
  if (dirname === name2) {
2285
2355
  return original;
2286
2356
  }
@@ -2309,7 +2379,7 @@ var require_types = __commonJS({
2309
2379
  "node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
2310
2380
  "use strict";
2311
2381
  init_esbuild_shims();
2312
- var path10 = __require("path");
2382
+ var path9 = __require("path");
2313
2383
  var Stream = __require("stream").Stream;
2314
2384
  var url = __require("url");
2315
2385
  var Umask = /* @__PURE__ */ __name(() => {
@@ -2327,8 +2397,8 @@ var require_types = __commonJS({
2327
2397
  "bin-links": Boolean,
2328
2398
  browser: [null, String],
2329
2399
  ca: [null, String, Array],
2330
- cafile: path10,
2331
- cache: path10,
2400
+ cafile: path9,
2401
+ cache: path9,
2332
2402
  "cache-lock-stale": Number,
2333
2403
  "cache-lock-retries": Number,
2334
2404
  "cache-lock-wait": Number,
@@ -2352,7 +2422,7 @@ var require_types = __commonJS({
2352
2422
  "git-tag-version": Boolean,
2353
2423
  "commit-hooks": Boolean,
2354
2424
  global: Boolean,
2355
- globalconfig: path10,
2425
+ globalconfig: path9,
2356
2426
  "global-style": Boolean,
2357
2427
  group: [Number, String],
2358
2428
  "https-proxy": [null, url],
@@ -2362,7 +2432,7 @@ var require_types = __commonJS({
2362
2432
  "if-present": Boolean,
2363
2433
  "ignore-prepublish": Boolean,
2364
2434
  "ignore-scripts": Boolean,
2365
- "init-module": path10,
2435
+ "init-module": path9,
2366
2436
  "init-author-name": String,
2367
2437
  "init-author-email": String,
2368
2438
  "init-author-url": ["", url],
@@ -2395,7 +2465,7 @@ var require_types = __commonJS({
2395
2465
  parseable: Boolean,
2396
2466
  "prefer-offline": Boolean,
2397
2467
  "prefer-online": Boolean,
2398
- prefix: path10,
2468
+ prefix: path9,
2399
2469
  production: Boolean,
2400
2470
  progress: Boolean,
2401
2471
  proxy: [null, false, url],
@@ -2428,12 +2498,12 @@ var require_types = __commonJS({
2428
2498
  "strict-ssl": Boolean,
2429
2499
  tag: String,
2430
2500
  timing: Boolean,
2431
- tmp: path10,
2501
+ tmp: path9,
2432
2502
  unicode: Boolean,
2433
2503
  "unsafe-perm": Boolean,
2434
2504
  usage: Boolean,
2435
2505
  user: [Number, String],
2436
- userconfig: path10,
2506
+ userconfig: path9,
2437
2507
  umask: Umask,
2438
2508
  version: Boolean,
2439
2509
  "tag-version-prefix": String,
@@ -2451,7 +2521,7 @@ var require_conf = __commonJS({
2451
2521
  init_esbuild_shims();
2452
2522
  var { readCAFileSync } = require_dist();
2453
2523
  var fs5 = __require("fs");
2454
- var path10 = __require("path");
2524
+ var path9 = __require("path");
2455
2525
  var { ConfigChain } = require_config_chain();
2456
2526
  var envKeyToSetting = require_envKeyToSetting();
2457
2527
  var util = require_util();
@@ -2532,7 +2602,7 @@ var require_conf = __commonJS({
2532
2602
  this.set("prefix", prefix);
2533
2603
  }, "set"),
2534
2604
  get: /* @__PURE__ */ __name(() => {
2535
- return path10.resolve(this.get("prefix"));
2605
+ return path9.resolve(this.get("prefix"));
2536
2606
  }, "get")
2537
2607
  });
2538
2608
  let p;
@@ -2546,7 +2616,7 @@ var require_conf = __commonJS({
2546
2616
  }, "get")
2547
2617
  });
2548
2618
  if (Object.prototype.hasOwnProperty.call(cli, "prefix")) {
2549
- p = path10.resolve(cli.prefix);
2619
+ p = path9.resolve(cli.prefix);
2550
2620
  } else {
2551
2621
  try {
2552
2622
  const prefix = util.findPrefix(process.cwd());
@@ -2577,7 +2647,7 @@ var require_conf = __commonJS({
2577
2647
  defConf.user = Number(process.env.SUDO_UID);
2578
2648
  return;
2579
2649
  }
2580
- const prefix = path10.resolve(this.get("prefix"));
2650
+ const prefix = path9.resolve(this.get("prefix"));
2581
2651
  try {
2582
2652
  const stats = fs5.statSync(prefix);
2583
2653
  defConf.user = stats.uid;
@@ -2616,7 +2686,7 @@ var require_defaults = __commonJS({
2616
2686
  "use strict";
2617
2687
  init_esbuild_shims();
2618
2688
  var os6 = __require("os");
2619
- var path10 = __require("path");
2689
+ var path9 = __require("path");
2620
2690
  var temp = os6.tmpdir();
2621
2691
  var uidOrPid = process.getuid ? process.getuid() : process.pid;
2622
2692
  var hasUnicode = /* @__PURE__ */ __name(() => true, "hasUnicode");
@@ -2632,11 +2702,11 @@ var require_defaults = __commonJS({
2632
2702
  if (home) {
2633
2703
  process.env.HOME = home;
2634
2704
  } else {
2635
- home = path10.resolve(temp, "npm-" + uidOrPid);
2705
+ home = path9.resolve(temp, "npm-" + uidOrPid);
2636
2706
  }
2637
2707
  var cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
2638
2708
  var cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
2639
- var cache = path10.resolve(cacheRoot, cacheExtra);
2709
+ var cache = path9.resolve(cacheRoot, cacheExtra);
2640
2710
  var defaults;
2641
2711
  var globalPrefix;
2642
2712
  Object.defineProperty(exports, "defaults", {
@@ -2645,11 +2715,11 @@ var require_defaults = __commonJS({
2645
2715
  if (process.env.PREFIX) {
2646
2716
  globalPrefix = process.env.PREFIX;
2647
2717
  } else if (process.platform === "win32") {
2648
- globalPrefix = path10.dirname(process.execPath);
2718
+ globalPrefix = path9.dirname(process.execPath);
2649
2719
  } else {
2650
- globalPrefix = path10.dirname(path10.dirname(process.execPath));
2720
+ globalPrefix = path9.dirname(path9.dirname(process.execPath));
2651
2721
  if (process.env.DESTDIR) {
2652
- globalPrefix = path10.join(process.env.DESTDIR, globalPrefix);
2722
+ globalPrefix = path9.join(process.env.DESTDIR, globalPrefix);
2653
2723
  }
2654
2724
  }
2655
2725
  defaults = {
@@ -2687,7 +2757,7 @@ var require_defaults = __commonJS({
2687
2757
  "git-tag-version": true,
2688
2758
  "commit-hooks": true,
2689
2759
  global: false,
2690
- globalconfig: path10.resolve(globalPrefix, "etc", "npmrc"),
2760
+ globalconfig: path9.resolve(globalPrefix, "etc", "npmrc"),
2691
2761
  "global-style": false,
2692
2762
  group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
2693
2763
  "ham-it-up": false,
@@ -2695,7 +2765,7 @@ var require_defaults = __commonJS({
2695
2765
  "if-present": false,
2696
2766
  "ignore-prepublish": false,
2697
2767
  "ignore-scripts": false,
2698
- "init-module": path10.resolve(home, ".npm-init.js"),
2768
+ "init-module": path9.resolve(home, ".npm-init.js"),
2699
2769
  "init-author-name": "",
2700
2770
  "init-author-email": "",
2701
2771
  "init-author-url": "",
@@ -2766,7 +2836,7 @@ var require_defaults = __commonJS({
2766
2836
  "unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
2767
2837
  usage: false,
2768
2838
  user: process.platform === "win32" ? 0 : "nobody",
2769
- userconfig: path10.resolve(home, ".npmrc"),
2839
+ userconfig: path9.resolve(home, ".npmrc"),
2770
2840
  umask: process.umask ? process.umask() : umask.fromString("022"),
2771
2841
  version: false,
2772
2842
  versions: false,
@@ -2784,7 +2854,7 @@ var require_npm_conf = __commonJS({
2784
2854
  "node_modules/@pnpm/npm-conf/index.js"(exports, module) {
2785
2855
  "use strict";
2786
2856
  init_esbuild_shims();
2787
- var path10 = __require("path");
2857
+ var path9 = __require("path");
2788
2858
  var Conf = require_conf();
2789
2859
  var _defaults = require_defaults();
2790
2860
  module.exports = (opts, types, defaults) => {
@@ -2801,12 +2871,12 @@ var require_npm_conf = __commonJS({
2801
2871
  failedToLoadBuiltInConfig = true;
2802
2872
  }
2803
2873
  if (npmPath) {
2804
- warnings.push(conf.addFile(path10.resolve(path10.dirname(npmPath), "..", "npmrc"), "builtin"));
2874
+ warnings.push(conf.addFile(path9.resolve(path9.dirname(npmPath), "..", "npmrc"), "builtin"));
2805
2875
  }
2806
2876
  }
2807
2877
  conf.addEnv();
2808
2878
  conf.loadPrefix();
2809
- const projectConf = path10.resolve(conf.localPrefix, ".npmrc");
2879
+ const projectConf = path9.resolve(conf.localPrefix, ".npmrc");
2810
2880
  const userConf = conf.get("userconfig");
2811
2881
  if (!conf.get("global") && projectConf !== userConf) {
2812
2882
  warnings.push(conf.addFile(projectConf, "project"));
@@ -2814,14 +2884,14 @@ var require_npm_conf = __commonJS({
2814
2884
  conf.add({}, "project");
2815
2885
  }
2816
2886
  if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
2817
- const workspaceConf = path10.resolve(conf.get("workspace-prefix"), ".npmrc");
2887
+ const workspaceConf = path9.resolve(conf.get("workspace-prefix"), ".npmrc");
2818
2888
  warnings.push(conf.addFile(workspaceConf, "workspace"));
2819
2889
  }
2820
2890
  warnings.push(conf.addFile(conf.get("userconfig"), "user"));
2821
2891
  if (conf.get("prefix")) {
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");
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");
2825
2895
  }
2826
2896
  warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
2827
2897
  conf.loadUser();
@@ -2909,8 +2979,8 @@ var require_registry_auth_token = __commonJS({
2909
2979
  return { token, type: "Basic" };
2910
2980
  }
2911
2981
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
2912
- function normalizePath(path10) {
2913
- return path10[path10.length - 1] === "/" ? path10 : path10 + "/";
2982
+ function normalizePath(path9) {
2983
+ return path9[path9.length - 1] === "/" ? path9 : path9 + "/";
2914
2984
  }
2915
2985
  __name(normalizePath, "normalizePath");
2916
2986
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -2970,6 +3040,1413 @@ var require_registry_auth_token = __commonJS({
2970
3040
  }
2971
3041
  });
2972
3042
 
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
+
2973
4450
  // node_modules/ini/lib/ini.js
2974
4451
  var require_ini3 = __commonJS({
2975
4452
  "node_modules/ini/lib/ini.js"(exports, module) {
@@ -3957,12 +5434,12 @@ var disallowedKeys = /* @__PURE__ */ new Set([
3957
5434
  "constructor"
3958
5435
  ]);
3959
5436
  var digits = new Set("0123456789");
3960
- function getPathSegments(path10) {
5437
+ function getPathSegments(path9) {
3961
5438
  const parts = [];
3962
5439
  let currentSegment = "";
3963
5440
  let currentPart = "start";
3964
5441
  let isIgnoring = false;
3965
- for (const character of path10) {
5442
+ for (const character of path9) {
3966
5443
  switch (character) {
3967
5444
  case "\\": {
3968
5445
  if (currentPart === "index") {
@@ -4087,11 +5564,11 @@ function assertNotStringIndex(object, key) {
4087
5564
  }
4088
5565
  }
4089
5566
  __name(assertNotStringIndex, "assertNotStringIndex");
4090
- function getProperty(object, path10, value) {
4091
- if (!isObject(object) || typeof path10 !== "string") {
5567
+ function getProperty(object, path9, value) {
5568
+ if (!isObject(object) || typeof path9 !== "string") {
4092
5569
  return value === void 0 ? object : value;
4093
5570
  }
4094
- const pathArray = getPathSegments(path10);
5571
+ const pathArray = getPathSegments(path9);
4095
5572
  if (pathArray.length === 0) {
4096
5573
  return value;
4097
5574
  }
@@ -4112,12 +5589,12 @@ function getProperty(object, path10, value) {
4112
5589
  return object === void 0 ? value : object;
4113
5590
  }
4114
5591
  __name(getProperty, "getProperty");
4115
- function setProperty(object, path10, value) {
4116
- if (!isObject(object) || typeof path10 !== "string") {
5592
+ function setProperty(object, path9, value) {
5593
+ if (!isObject(object) || typeof path9 !== "string") {
4117
5594
  return object;
4118
5595
  }
4119
5596
  const root = object;
4120
- const pathArray = getPathSegments(path10);
5597
+ const pathArray = getPathSegments(path9);
4121
5598
  for (let index = 0; index < pathArray.length; index++) {
4122
5599
  const key = pathArray[index];
4123
5600
  assertNotStringIndex(object, key);
@@ -4131,11 +5608,11 @@ function setProperty(object, path10, value) {
4131
5608
  return root;
4132
5609
  }
4133
5610
  __name(setProperty, "setProperty");
4134
- function deleteProperty(object, path10) {
4135
- if (!isObject(object) || typeof path10 !== "string") {
5611
+ function deleteProperty(object, path9) {
5612
+ if (!isObject(object) || typeof path9 !== "string") {
4136
5613
  return false;
4137
5614
  }
4138
- const pathArray = getPathSegments(path10);
5615
+ const pathArray = getPathSegments(path9);
4139
5616
  for (let index = 0; index < pathArray.length; index++) {
4140
5617
  const key = pathArray[index];
4141
5618
  assertNotStringIndex(object, key);
@@ -4150,11 +5627,11 @@ function deleteProperty(object, path10) {
4150
5627
  }
4151
5628
  }
4152
5629
  __name(deleteProperty, "deleteProperty");
4153
- function hasProperty(object, path10) {
4154
- if (!isObject(object) || typeof path10 !== "string") {
5630
+ function hasProperty(object, path9) {
5631
+ if (!isObject(object) || typeof path9 !== "string") {
4155
5632
  return false;
4156
5633
  }
4157
- const pathArray = getPathSegments(path10);
5634
+ const pathArray = getPathSegments(path9);
4158
5635
  if (pathArray.length === 0) {
4159
5636
  return false;
4160
5637
  }
@@ -5407,7 +6884,7 @@ __name(registryUrl, "registryUrl");
5407
6884
 
5408
6885
  // node_modules/package-json/index.js
5409
6886
  var import_registry_auth_token = __toESM(require_registry_auth_token(), 1);
5410
- var import_semver = __toESM(require_semver(), 1);
6887
+ var import_semver = __toESM(require_semver2(), 1);
5411
6888
  var PackageNotFoundError = class extends Error {
5412
6889
  static {
5413
6890
  __name(this, "PackageNotFoundError");
@@ -6637,13 +8114,9 @@ function updateNotifier(options) {
6637
8114
  __name(updateNotifier, "updateNotifier");
6638
8115
 
6639
8116
  // packages/cli/src/ui/utils/updateCheck.ts
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";
8117
+ var import_semver2 = __toESM(require_semver2(), 1);
6645
8118
  var debugLogger = createDebugLogger("UPDATE_CHECK");
6646
- var FETCH_TIMEOUT_MS = 5e3;
8119
+ var FETCH_TIMEOUT_MS = 2e3;
6647
8120
  var UpdateCheckTimeoutError = class extends Error {
6648
8121
  static {
6649
8122
  __name(this, "UpdateCheckTimeoutError");
@@ -6656,40 +8129,6 @@ var UpdateCheckTimeoutError = class extends Error {
6656
8129
  this.distTag = distTag;
6657
8130
  }
6658
8131
  };
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");
6693
8132
  async function fetchInfoWithTimeout(notifier, timeoutMs, distTag) {
6694
8133
  let timer;
6695
8134
  try {
@@ -6707,72 +8146,6 @@ async function fetchInfoWithTimeout(notifier, timeoutMs, distTag) {
6707
8146
  }
6708
8147
  }
6709
8148
  __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");
6776
8149
  function getBestAvailableUpdate(nightly, stable) {
6777
8150
  if (!nightly) return stable || null;
6778
8151
  if (!stable) return nightly || null;
@@ -6784,7 +8157,7 @@ function getBestAvailableUpdate(nightly, stable) {
6784
8157
  return import_semver2.default.gt(stableVer, nightlyVer) ? stable : nightly;
6785
8158
  }
6786
8159
  __name(getBestAvailableUpdate, "getBestAvailableUpdate");
6787
- async function checkForUpdatesDetailed(detectGlobalNpm = isGlobalNpmInstallation, fetchGlobalNpm = fetchGlobalNpmUpdateInfo) {
8160
+ async function checkForUpdatesDetailed() {
6788
8161
  let currentVersion;
6789
8162
  try {
6790
8163
  if (process.env["DEV"] === "true") {
@@ -6795,12 +8168,9 @@ async function checkForUpdatesDetailed(detectGlobalNpm = isGlobalNpmInstallation
6795
8168
  return { status: "skipped", reason: "package metadata unavailable" };
6796
8169
  }
6797
8170
  const { name, version } = packageJson3;
6798
- const isGlobalNpm = await detectGlobalNpm();
6799
8171
  currentVersion = version;
6800
8172
  const isNightly = version.includes("nightly");
6801
- const createNotifier = /* @__PURE__ */ __name((distTag) => isGlobalNpm ? {
6802
- fetchInfo: /* @__PURE__ */ __name(() => fetchGlobalNpm(name, version, distTag), "fetchInfo")
6803
- } : updateNotifier({
8173
+ const createNotifier = /* @__PURE__ */ __name((distTag) => updateNotifier({
6804
8174
  pkg: {
6805
8175
  name,
6806
8176
  version
@@ -6880,11 +8250,6 @@ __name(checkForUpdates, "checkForUpdates");
6880
8250
  export {
6881
8251
  FETCH_TIMEOUT_MS,
6882
8252
  UpdateCheckTimeoutError,
6883
- classifyUpdateCheckError,
6884
- describeUpdateCheckFailure,
6885
- runGlobalNpm,
6886
- isGlobalNpmInstallation,
6887
- fetchGlobalNpmUpdateInfo,
6888
8253
  checkForUpdatesDetailed,
6889
8254
  checkForUpdates
6890
8255
  };