@qwen-code/qwen-code 0.21.12-preview.3 → 0.21.12

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 (348) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +10 -0
  2. package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
  3. package/bundled/qc-helper/docs/features/channels/plugins.md +11 -11
  4. package/bundled/qc-helper/docs/features/code-review.md +1 -1
  5. package/bundled/qc-helper/docs/qwen-serve.md +99 -34
  6. package/bundled/review/SKILL.md +55 -36
  7. package/chunks/{MaxSizedBox-EIK4BHBQ.js → MaxSizedBox-ZSJJ2D5S.js} +46 -46
  8. package/chunks/{StandaloneSessionPicker-NHVJDRYD.js → StandaloneSessionPicker-WHUHQXSA.js} +65 -66
  9. package/chunks/{acp-startup-profiler-JMJBZDVO.js → acp-startup-profiler-SVPUHLXV.js} +2 -2
  10. package/chunks/{acpAgent-37UDZP64.js → acpAgent-7JOAESF5.js} +960 -539
  11. package/chunks/{agent-FAWBG7PP.js → agent-E6V3VXQR.js} +42 -42
  12. package/chunks/{agent-headless-SHK4PCCH.js → agent-headless-OEQNFOMH.js} +42 -42
  13. package/chunks/{anthropicContentGenerator-4JSC3ZFL.js → anthropicContentGenerator-YDT4EOKO.js} +25 -25
  14. package/chunks/{artifact-tool-FRMBPDPB.js → artifact-tool-4GCQQDZI.js} +5 -5
  15. package/chunks/{askUserQuestion-7G3LI3IZ.js → askUserQuestion-HZJJLR3Z.js} +2 -2
  16. package/chunks/{bridge-DEAYNDCI.js → bridge-NPBV53UA.js} +49 -49
  17. package/chunks/{build-RZS65IIX.js → build-GDBLPA24.js} +1 -1
  18. package/chunks/{channel-management-service-SKAN6NOB.js → channel-management-service-OADNGQM3.js} +4 -4
  19. package/chunks/{channel-settings-store-UIGYER6R.js → channel-settings-store-4ODLJ4X2.js} +49 -49
  20. package/chunks/{channel-worker-group-YPTB5ASD.js → channel-worker-group-IHBIHQ45.js} +7 -7
  21. package/chunks/{channel-worker-manager-4EHJSPRH.js → channel-worker-manager-GEHYJ5AE.js} +7 -7
  22. package/chunks/{channel-worker-supervisor-DZKHYFHV.js → channel-worker-supervisor-ZJIIWM4I.js} +5 -5
  23. package/chunks/{chunk-LHOG4E6Y.js → chunk-22C7BQ6D.js} +3 -3
  24. package/chunks/{chunk-DP3IHZGG.js → chunk-2AUM35J5.js} +59 -7
  25. package/chunks/{chunk-2SB4SLKC.js → chunk-2IIJTXYF.js} +1 -3
  26. package/chunks/{chunk-DYVCDQW2.js → chunk-2IVYL3IF.js} +1 -1
  27. package/chunks/{chunk-EYW54TBD.js → chunk-2ZWH53I4.js} +3 -3
  28. package/chunks/{chunk-5I5NMQCU.js → chunk-36XKGB7E.js} +3 -3
  29. package/chunks/{chunk-AQHNAA7E.js → chunk-3AEKDXKT.js} +1 -1
  30. package/chunks/{chunk-M6SXIXBV.js → chunk-3GDBZJD6.js} +6 -6
  31. package/chunks/{chunk-6XZERB6P.js → chunk-3GM5DLBI.js} +5 -5
  32. package/chunks/{chunk-4M2F7OG7.js → chunk-3LDGOQXZ.js} +6 -6
  33. package/chunks/{chunk-BKHCW2BI.js → chunk-3VUENPWF.js} +10 -0
  34. package/chunks/{chunk-ENEEQMGM.js → chunk-45NQKMYB.js} +1 -1
  35. package/chunks/{chunk-MDFUBQAQ.js → chunk-47BGDLJG.js} +119 -27
  36. package/chunks/{chunk-EFIMD5VA.js → chunk-4AOVQPJU.js} +1 -1
  37. package/chunks/{chunk-HB6QW4LM.js → chunk-4KM2SYK5.js} +19 -16
  38. package/chunks/{chunk-UNCIELQJ.js → chunk-4XA4QIUA.js} +1 -1
  39. package/chunks/{chunk-2J53A6MV.js → chunk-56HVDG3M.js} +4 -4
  40. package/chunks/{chunk-N3FJOQX7.js → chunk-5AFGJNY6.js} +4 -4
  41. package/chunks/{chunk-2AZMF6G5.js → chunk-5RUCD4ED.js} +2 -2
  42. package/chunks/{chunk-32VOOMEF.js → chunk-62X3CM7Q.js} +7 -7
  43. package/chunks/{chunk-6LYDH7VT.js → chunk-63FNZTWG.js} +2 -2
  44. package/chunks/{chunk-P64FPV3G.js → chunk-6JEIRPLN.js} +47 -4
  45. package/chunks/{chunk-O5G7IQGM.js → chunk-6P5EXEBL.js} +499 -112
  46. package/chunks/{chunk-3ZYX7AUR.js → chunk-6SPD4Z7F.js} +1 -1
  47. package/chunks/{chunk-YZJVVQD3.js → chunk-6ZKSO6K7.js} +7 -7
  48. package/chunks/{chunk-N5ULBHP3.js → chunk-7KJPO7YH.js} +2 -2
  49. package/chunks/{chunk-MZSJ43WV.js → chunk-7U5G6JXI.js} +24 -2
  50. package/chunks/{chunk-K7JW6V5O.js → chunk-A6NRNRKE.js} +1 -1
  51. package/chunks/{chunk-XLQS3VI6.js → chunk-AKBFSOC5.js} +2 -2
  52. package/chunks/{chunk-LT532KF4.js → chunk-AW27A43Y.js} +10 -12
  53. package/chunks/{chunk-M4NWDIFU.js → chunk-AZQ3DT76.js} +1 -1
  54. package/chunks/{chunk-4GLFFNP3.js → chunk-B4VN3VDH.js} +5 -5
  55. package/chunks/{chunk-YTYPRVIZ.js → chunk-BSR5AXZR.js} +4 -3
  56. package/chunks/{chunk-AJX4ITUG.js → chunk-BSSLSQEW.js} +3 -3
  57. package/chunks/{chunk-EYY4IBPV.js → chunk-CGM3E75C.js} +3 -3
  58. package/chunks/{chunk-V4MJ56RS.js → chunk-CIDQISGM.js} +5 -5
  59. package/chunks/{chunk-T6W4KACQ.js → chunk-CPFFU46D.js} +1 -1
  60. package/chunks/{chunk-TYCXSMZU.js → chunk-CQ6IPDQW.js} +3 -3
  61. package/chunks/{chunk-KIFRFCCB.js → chunk-CZ4OWGQQ.js} +67 -22
  62. package/chunks/{chunk-N7NBMAMW.js → chunk-D2RNVVH6.js} +2 -2
  63. package/chunks/{chunk-KPVVWKF3.js → chunk-D7QGE3RT.js} +1 -1
  64. package/chunks/{chunk-TYGKUOEG.js → chunk-DAV4QFD5.js} +3 -11
  65. package/chunks/{chunk-QUESTNOP.js → chunk-DD6O3ZRD.js} +1 -1
  66. package/chunks/{chunk-NWPO6I7V.js → chunk-DEDESZDL.js} +1 -1
  67. package/chunks/{chunk-7LZ7DK4D.js → chunk-DFVXU5YM.js} +1 -1
  68. package/chunks/{chunk-TBVNYG5B.js → chunk-DG4IQ6JG.js} +5 -5
  69. package/chunks/{chunk-SAQHDAUJ.js → chunk-DPTMKFIH.js} +452 -57
  70. package/chunks/{chunk-M6HXP2SG.js → chunk-EBPLKY6U.js} +2192 -849
  71. package/chunks/{chunk-3XZYK76R.js → chunk-EJOGLSNJ.js} +2 -2
  72. package/chunks/{chunk-L7T742G2.js → chunk-FA5K6YI2.js} +47 -3
  73. package/chunks/{chunk-M2NMFAFR.js → chunk-FMIH5KMQ.js} +1 -1
  74. package/chunks/{chunk-HHGQGTJQ.js → chunk-FQDCO3CJ.js} +10 -1
  75. package/chunks/{chunk-V3LXMASR.js → chunk-FRHQQC2Z.js} +1 -1
  76. package/chunks/{chunk-732MOPEM.js → chunk-G6MUFRNI.js} +1 -1
  77. package/chunks/{chunk-KNXA5XXK.js → chunk-GXTMEATA.js} +15 -34
  78. package/chunks/{chunk-7SUQZ7QH.js → chunk-GZDWTBT3.js} +2 -2
  79. package/chunks/{chunk-IQFYO5BF.js → chunk-H7TMVHKE.js} +1 -1
  80. package/chunks/{chunk-KNQZXSLW.js → chunk-HG3UBTJ4.js} +23 -9
  81. package/chunks/{chunk-MPBRV3UU.js → chunk-HOSVOUDK.js} +71 -0
  82. package/chunks/{chunk-OPBATTFQ.js → chunk-HTYND72J.js} +1 -1
  83. package/chunks/{chunk-I4XSOFH2.js → chunk-I7BT2MME.js} +1 -1
  84. package/chunks/{chunk-LHY6HBRA.js → chunk-IH4Z54RJ.js} +7 -5
  85. package/chunks/{chunk-GYBDYWMV.js → chunk-IRSLAS4M.js} +2 -2
  86. package/chunks/{chunk-UZPWH6SP.js → chunk-IX4PWUDU.js} +401 -173
  87. package/chunks/{chunk-KT4OWAAZ.js → chunk-JRIVMPD2.js} +3 -3
  88. package/chunks/{chunk-Q7YDKOGY.js → chunk-JVEGA3MM.js} +1 -1
  89. package/chunks/{chunk-O5AZPHYZ.js → chunk-K34GJQOZ.js} +138 -16
  90. package/chunks/{chunk-L2GTEEEU.js → chunk-K5IDV3PC.js} +44 -1
  91. package/chunks/{chunk-5HBFERG5.js → chunk-KEC5FHLM.js} +3 -3
  92. package/chunks/{chunk-5PWLQ7SK.js → chunk-KLOMACIR.js} +15 -8
  93. package/chunks/{chunk-XWUQ4IH5.js → chunk-KWX56CHZ.js} +7 -7
  94. package/chunks/{chunk-VQZXRLEX.js → chunk-LCX5B364.js} +3 -3
  95. package/chunks/{chunk-CTQE2NB2.js → chunk-LSRI3ND3.js} +1 -1
  96. package/chunks/{chunk-5TXOGH4I.js → chunk-LUISTZXI.js} +3 -3
  97. package/chunks/{chunk-6AECVSVX.js → chunk-MAKIANMX.js} +3 -3
  98. package/chunks/{chunk-M4OYAR6J.js → chunk-MDNUCDKZ.js} +2 -2
  99. package/chunks/{chunk-CZXQ4UZA.js → chunk-MELQSJOU.js} +1 -1
  100. package/chunks/{chunk-6ZIIHBNV.js → chunk-MUNA4QDC.js} +4 -4
  101. package/chunks/{chunk-E5BWLU5J.js → chunk-N4SVADAV.js} +305 -143
  102. package/chunks/{chunk-URK542T4.js → chunk-NF5J2WFA.js} +15 -2
  103. package/chunks/{chunk-GJJQV4PY.js → chunk-NLFLYSS4.js} +1 -1
  104. package/chunks/{chunk-FRH4SSGX.js → chunk-NW2GIPG3.js} +2 -4
  105. package/chunks/{chunk-JS4Q5NG5.js → chunk-NX4A23LY.js} +3 -3
  106. package/chunks/{chunk-DEG7R6Z6.js → chunk-OK47XBYH.js} +79 -36
  107. package/chunks/{chunk-7D4KEFOT.js → chunk-OPVF453Q.js} +3 -3
  108. package/chunks/{chunk-J7DNMZFO.js → chunk-OR64CU46.js} +1 -1
  109. package/chunks/{chunk-DAX3G67A.js → chunk-OWGRUU7F.js} +1 -1
  110. package/chunks/{chunk-M2PY7CNK.js → chunk-OWXFBIB6.js} +2 -2
  111. package/chunks/{chunk-NELCY6JT.js → chunk-OYWVIXHT.js} +1 -3
  112. package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
  113. package/chunks/{chunk-QZ5G26ZE.js → chunk-PTSEETCO.js} +27 -27
  114. package/chunks/{chunk-IEP44U2R.js → chunk-PVXEJB66.js} +1 -1
  115. package/chunks/{chunk-NC4O6UE6.js → chunk-PZW46OTB.js} +2 -2
  116. package/chunks/{chunk-RQVVXDHS.js → chunk-Q4ZPYNIZ.js} +4 -4
  117. package/chunks/{chunk-QSWDGAIC.js → chunk-QILD6R27.js} +1 -1
  118. package/chunks/{chunk-GLWWPFTW.js → chunk-QLTATTPS.js} +1 -1
  119. package/chunks/{chunk-QTI7SRXI.js → chunk-QPBFRWCP.js} +3 -3
  120. package/chunks/{chunk-3TT6MZHJ.js → chunk-QSD4UH74.js} +842 -62
  121. package/chunks/{chunk-TEKFBSMY.js → chunk-RDVNSJQU.js} +3 -3
  122. package/chunks/{chunk-NPE3STIW.js → chunk-ROIJYS5K.js} +6 -6
  123. package/chunks/{chunk-JEMR2FTD.js → chunk-RQJA2YYO.js} +4 -4
  124. package/chunks/{chunk-YI6UGZF5.js → chunk-S6TCTH4Z.js} +13 -13
  125. package/chunks/{chunk-ZGWY4YUB.js → chunk-SYHXR6WM.js} +5 -5
  126. package/chunks/{chunk-O4BBDP2G.js → chunk-TB4YFWXG.js} +2 -2
  127. package/chunks/{chunk-ILVATFYJ.js → chunk-TDESMS7M.js} +22 -18
  128. package/chunks/{chunk-47FQVRCO.js → chunk-TMFWI4RC.js} +1 -1
  129. package/chunks/{chunk-T4FTABSW.js → chunk-TQDFSQQF.js} +1 -1
  130. package/chunks/{chunk-ZV4XVYL3.js → chunk-TTRH3RTQ.js} +4 -4
  131. package/chunks/{chunk-ZWPWQEF5.js → chunk-TXP5NGG3.js} +1 -1
  132. package/chunks/{chunk-E3GLDLYB.js → chunk-TYAMGABM.js} +0 -6
  133. package/chunks/{chunk-VWD7SNNN.js → chunk-UI5UGEF4.js} +1082 -926
  134. package/chunks/{chunk-MWZYNOCG.js → chunk-ULNWG62W.js} +3 -3
  135. package/chunks/{chunk-HGCQ5SE7.js → chunk-UXEO7E3V.js} +21 -0
  136. package/chunks/{chunk-U6PTKAOW.js → chunk-V6OBVAST.js} +1 -1
  137. package/chunks/{chunk-5UPJ774B.js → chunk-VIFA5VJD.js} +1 -1
  138. package/chunks/{chunk-Y66OOMKS.js → chunk-VLHR7F4E.js} +595 -58
  139. package/chunks/{chunk-EYS3GGM3.js → chunk-VPV7WBVT.js} +1 -1
  140. package/chunks/{chunk-XCGIMOLN.js → chunk-WCCLLK7X.js} +14 -1
  141. package/chunks/{chunk-JL3LC3CQ.js → chunk-WCEI6J56.js} +1 -1
  142. package/chunks/{chunk-JXK3WAP7.js → chunk-WDVDVWJ3.js} +6 -6
  143. package/chunks/{chunk-ZQSNP4TG.js → chunk-WI6GIM2M.js} +2 -2
  144. package/chunks/{chunk-TRYJ3BVE.js → chunk-WM3LUQLO.js} +7 -7
  145. package/chunks/{chunk-VJNBRRZG.js → chunk-WZMH7II3.js} +1 -1
  146. package/chunks/{chunk-HBZUU4AE.js → chunk-X5SLJOMF.js} +9 -7
  147. package/chunks/{chunk-FDWH6CBK.js → chunk-XAFIL4BD.js} +7 -7
  148. package/chunks/{chunk-P2UCMHDT.js → chunk-XDRXOSAD.js} +3 -3
  149. package/chunks/{chunk-RRQJPCRQ.js → chunk-XH3KAV2G.js} +2 -2
  150. package/chunks/{chunk-F6AOBFUN.js → chunk-YBHUXEC6.js} +1 -1
  151. package/chunks/{chunk-GZGDJ4E6.js → chunk-YBVVOSOH.js} +1 -1
  152. package/chunks/{chunk-EXG2R5UR.js → chunk-YCHNAKC5.js} +16 -14
  153. package/chunks/{chunk-XTH2OMDS.js → chunk-YIGGWOJE.js} +1 -1
  154. package/chunks/{chunk-IX7CFQGA.js → chunk-YILJKX2T.js} +3 -3
  155. package/chunks/{chunk-SSAOTDK7.js → chunk-YX2RDGAL.js} +1 -1
  156. package/chunks/{chunk-6S52N6PG.js → chunk-ZBB5EZZV.js} +2 -2
  157. package/chunks/{chunk-3GCU5O2E.js → chunk-ZLCT4C5A.js} +1 -1
  158. package/chunks/{chunk-4ETA3KRC.js → chunk-ZMY2P4L3.js} +3 -3
  159. package/chunks/{chunk-575MI5K3.js → chunk-ZQUY3ZJU.js} +4 -4
  160. package/chunks/{computer-use-S4JEU5P7.js → computer-use-F4URV4TU.js} +45 -45
  161. package/chunks/{config-utils-TXVKR27S.js → config-utils-Z3OW3IQG.js} +4 -4
  162. package/chunks/{contextCommand-2H5OH2HW.js → contextCommand-IGSS2U5J.js} +44 -44
  163. package/chunks/{core-runtime-IAQ4DD4Y.js → core-runtime-H5CZDN3A.js} +42 -42
  164. package/chunks/{create-sub-session-EKHKXJAA.js → create-sub-session-PA7MFTHK.js} +42 -42
  165. package/chunks/{create-sub-session-Y4WYDZGC.js → create-sub-session-XT6DLYOE.js} +2 -2
  166. package/chunks/{cron-create-ZOVA3CC2.js → cron-create-2JZ2TWTF.js} +4 -4
  167. package/chunks/{cron-delete-7Z3H4LJY.js → cron-delete-CTPD2P26.js} +4 -4
  168. package/chunks/{cron-list-UHGX3IQG.js → cron-list-V44KHAF6.js} +4 -4
  169. package/chunks/{daemon-PXIC4ZDK.js → daemon-GED37WOX.js} +30 -2
  170. package/chunks/daemon-git-worktree-guard-LZDCNJGV.js +2062 -0
  171. package/chunks/daemon-status-provider-QYM57Z44.js +102 -0
  172. package/chunks/{daemon-trust-policy-7JOBVFH3.js → daemon-trust-policy-TSRVEYZR.js} +48 -48
  173. package/chunks/{daemon-trust-policy-monitor-OU3NRHAR.js → daemon-trust-policy-monitor-2K2YETMT.js} +48 -48
  174. package/chunks/{deferred-core-runtime-SFT3KI2C.js → deferred-core-runtime-FKJ3OYE7.js} +44 -44
  175. package/chunks/{devtools-X6ROTKHE.js → devtools-4QFYJT6U.js} +1 -1
  176. package/chunks/{display-image-ZE3GZNIK.js → display-image-M2ELAVN4.js} +4 -4
  177. package/chunks/{dist-KTYDJNYM.js → dist-4ZPG4BY6.js} +2 -2
  178. package/chunks/{dist-NPS52B2V.js → dist-BROOP2EG.js} +1 -1
  179. package/chunks/{dist-BW2LDPV3.js → dist-IYYN3RUT.js} +2 -2
  180. package/chunks/{dist-EFJILGIS.js → dist-JWMKPWT5.js} +3 -1
  181. package/chunks/{dist-AVUYBK7L.js → dist-K7IQB53U.js} +1 -1
  182. package/chunks/{dist-PKSRQAR2.js → dist-MAQXAQ2Y.js} +1 -1
  183. package/chunks/{dist-BNWP6IZL.js → dist-WJ4BHIEW.js} +2 -2
  184. package/chunks/{dist-ZWDH5HLS.js → dist-YEPL4RAW.js} +1 -1
  185. package/chunks/{earlyInputCapture-27RPWE2D.js → earlyInputCapture-WJBSJQUF.js} +43 -43
  186. package/chunks/{edit-WXVZ7FHS.js → edit-X73LA4YO.js} +50 -49
  187. package/chunks/{enter-worktree-TYMVXFLA.js → enter-worktree-CLRQTIVN.js} +47 -47
  188. package/chunks/{enterPlanMode-FT4MRU5N.js → enterPlanMode-6BDYUQ5T.js} +48 -48
  189. package/chunks/{environment-Z6OMA34I.js → environment-WOAJXJDJ.js} +44 -44
  190. package/chunks/{errors-YMXK2GG3.js → errors-7OY5MXYY.js} +44 -44
  191. package/chunks/{exit-worktree-ODZUQLGJ.js → exit-worktree-TFFJXCRT.js} +47 -47
  192. package/chunks/{exitPlanMode-MBPAPBBV.js → exitPlanMode-WDURQMIU.js} +42 -42
  193. package/chunks/{external-tool-guard-provider-5HTGOPGU.js → external-tool-guard-provider-TE4DRY36.js} +1 -1
  194. package/chunks/{fast-path-ZU5T6XSN.js → fast-path-QQLGC37M.js} +5 -5
  195. package/chunks/{gemini-OZK6AIMC.js → gemini-VHE62IJL.js} +110 -105
  196. package/chunks/{geminiContentGenerator-MC6ZKWZG.js → geminiContentGenerator-VSHIEGAQ.js} +11 -11
  197. package/chunks/{glob-KJ4A4ZOM.js → glob-VMEEDDLO.js} +49 -49
  198. package/chunks/{goal-tools-JDK2SNMV.js → goal-tools-M4UDAZXP.js} +4 -4
  199. package/chunks/{grep-QWBLG564.js → grep-F4UAR7KX.js} +47 -47
  200. package/chunks/{handleAutoUpdate-M3ACKDKF.js → handleAutoUpdate-GN7Z6QAC.js} +46 -46
  201. package/chunks/{i18n-FPW7XZL5.js → i18n-ETW24DHW.js} +43 -43
  202. package/chunks/{image-gen-OTFC2S7L.js → image-gen-YPK2AZT4.js} +11 -11
  203. package/chunks/{initializer-5HKUXXBT.js → initializer-UA6KQ7MS.js} +49 -49
  204. package/chunks/{installationInfo-4OA6UW7V.js → installationInfo-P7OTIR4P.js} +43 -43
  205. package/chunks/{keychain-token-storage-JTWUYFU7.js → keychain-token-storage-NKKCUHI2.js} +2 -2
  206. package/chunks/{list-3TKZ264A.js → list-GRAMIQOT.js} +51 -51
  207. package/chunks/{list-agents-4GQ2XNEU.js → list-agents-O6WSY4CT.js} +2 -2
  208. package/chunks/{loadedSettingsAdapter-IRUANLS2.js → loadedSettingsAdapter-5O2TDS3I.js} +48 -48
  209. package/chunks/{loggingContentGenerator-D4URLH2A.js → loggingContentGenerator-J2J2AANS.js} +151 -120
  210. package/chunks/{loop-wakeup-HOQI3K5D.js → loop-wakeup-GVQRMUKS.js} +5 -5
  211. package/chunks/{ls-FSHISLLA.js → ls-6W2D7TKU.js} +6 -6
  212. package/chunks/{lsp-APQJ5ZEZ.js → lsp-NJ4KFBI2.js} +2 -2
  213. package/chunks/{managed-npm-update-2O7XSAWJ.js → managed-npm-update-WMV5ITKU.js} +45 -45
  214. package/chunks/{mcp-AFVHCHKT.js → mcp-XLP33CAI.js} +48 -48
  215. package/chunks/{monitor-PY4WDSX3.js → monitor-2MM23VDV.js} +47 -47
  216. package/chunks/{node-YSOU44FX.js → node-UUDY34IG.js} +3 -3
  217. package/chunks/nonInteractiveCli-KTA5K6FS.js +163 -0
  218. package/chunks/{notebook-edit-GEPL33NO.js → notebook-edit-QD4TRKLY.js} +47 -47
  219. package/chunks/{openaiContentGenerator-ACYSXQ6R.js → openaiContentGenerator-KLHSPVN2.js} +31 -31
  220. package/chunks/{pidfile-SUNYCAA4.js → pidfile-RQGZBNXT.js} +43 -43
  221. package/chunks/{processUtils-F7LP7YUV.js → processUtils-HZZDA2VV.js} +2 -2
  222. package/chunks/{qwenContentGenerator-BB6IPELF.js → qwenContentGenerator-T75M2Z3B.js} +50 -50
  223. package/chunks/{qwenOAuth2-OU3WGDOI.js → qwenOAuth2-5QZU444W.js} +10 -10
  224. package/chunks/{read-file-GORBXJTS.js → read-file-LOVUSBJC.js} +12 -12
  225. package/chunks/{read-mcp-resource-TJSJRH4F.js → read-mcp-resource-GWCP23WG.js} +2 -2
  226. package/chunks/{read-package-up-TCM6I7S2.js → read-package-up-K6RKTL5D.js} +1 -1
  227. package/chunks/{record-artifact-FXF5LHPE.js → record-artifact-IYQDEYMV.js} +3 -3
  228. package/chunks/{resumeHistoryUtils-FOAJJJWK.js → resumeHistoryUtils-LVKSSQII.js} +50 -50
  229. package/chunks/{ripGrep-RNLIZGCY.js → ripGrep-ZJSHKB6H.js} +42 -42
  230. package/chunks/{run-qwen-serve-GVMMX3IU.js → run-qwen-serve-GZW7B4WK.js} +186 -90
  231. package/chunks/{runtime-RNBZ5FDD.js → runtime-MYRXEO2E.js} +53 -53
  232. package/chunks/{scheduler-NTRFSPIP.js → scheduler-DPTPI6FW.js} +44 -44
  233. package/chunks/{sdk-exporters-grpc-4QKV6MCX.js → sdk-exporters-grpc-54L4LS5L.js} +2 -2
  234. package/chunks/{sdk-exporters-http-2VPMAPFI.js → sdk-exporters-http-NHBYB5FZ.js} +21 -17
  235. package/chunks/{sdk-impl-5W3JUCWF.js → sdk-impl-SK4P5WON.js} +17 -14
  236. package/chunks/{send-message-RBYLV5NY.js → send-message-O7FO63UK.js} +6 -6
  237. package/chunks/{serve-H3PGA26U.js → serve-XCG4XCDA.js} +52 -52
  238. package/chunks/{server-SUXD2F3C.js → server-AWQHKXLG.js} +310 -200
  239. package/chunks/{session-MTFVUWWM.js → session-P5FKNCNR.js} +94 -97
  240. package/chunks/{settings-GUJ3TN2J.js → settings-CSYVIP2R.js} +47 -47
  241. package/chunks/{shell-C2UP5FF2.js → shell-EGTSUO2P.js} +42 -42
  242. package/chunks/{skill-4XCNK55E.js → skill-IFUD72GF.js} +22 -22
  243. package/chunks/{skill-settings-Y2BU27XM.js → skill-settings-YOE7LBHE.js} +47 -47
  244. package/chunks/{spawnChannel-UUUUK734.js → spawnChannel-PQSZIOLY.js} +45 -47
  245. package/chunks/{standalone-update-MJ722XZ4.js → standalone-update-RB2EGUSF.js} +44 -44
  246. package/chunks/{startInteractiveUI-TCPIPNGN.js → startInteractiveUI-KMYUJ2MU.js} +3040 -2399
  247. package/chunks/{syntheticOutput-D3Z64LJC.js → syntheticOutput-DVHJMUGV.js} +3 -3
  248. package/chunks/{task-create-URFZ5EUX.js → task-create-4NC7PDI4.js} +11 -11
  249. package/chunks/{task-list-6JDFMPUW.js → task-list-LBSRMOC7.js} +5 -5
  250. package/chunks/{task-stop-HHUGCD25.js → task-stop-YFNATTIM.js} +2 -2
  251. package/chunks/{task-update-DVV6CUGI.js → task-update-BPLM52GD.js} +12 -12
  252. package/chunks/{team-create-WZWH2NJI.js → team-create-B6A6MJBT.js} +47 -47
  253. package/chunks/{team-delete-PZGGBQLM.js → team-delete-MKYMYBFM.js} +5 -5
  254. package/chunks/{team-plan-approval-SUZQJCWJ.js → team-plan-approval-5WO3CXXU.js} +48 -48
  255. package/chunks/{terminal-image-renderer-BCUN3Z3W.js → terminal-image-renderer-BTRE2GEU.js} +44 -44
  256. package/chunks/{theme-manager-UGMFDREN.js → theme-manager-XL2N5SBY.js} +43 -43
  257. package/chunks/{todoWrite-WINAZSZI.js → todoWrite-K5K7NRE5.js} +4 -4
  258. package/chunks/{tool-search-B6F3MPUZ.js → tool-search-QNBLXUGR.js} +18 -18
  259. package/chunks/{total-session-admission-MQLBJ5WL.js → total-session-admission-N4E5SFBO.js} +49 -49
  260. package/chunks/{trustedFolders-2XST7U5C.js → trustedFolders-MQS46LIU.js} +43 -43
  261. package/chunks/{update-relaunch-OVC7YNGD.js → update-relaunch-536KRL33.js} +5 -5
  262. package/chunks/{updateCheck-YAKM36WQ.js → updateCheck-QJI2SYWF.js} +48 -48
  263. package/chunks/{useAutoAcceptIndicator-RF6FVX3S.js → useAutoAcceptIndicator-7QASHD46.js} +51 -51
  264. package/chunks/{validateNonInterActiveAuth-IPPXFNQH.js → validateNonInterActiveAuth-ZNRGWBLV.js} +86 -88
  265. package/chunks/{version-4IDFEXOU.js → version-DBEQAFRW.js} +2 -2
  266. package/chunks/{web-fetch-NUOLHXPN.js → web-fetch-MBIVXKPE.js} +21 -21
  267. package/chunks/{web-search-LVOOV4XZ.js → web-search-4LBIN6VF.js} +16 -16
  268. package/chunks/{workflow-JSTYTG3K.js → workflow-LNMA55HY.js} +127 -61
  269. package/chunks/{workspace-providers-status-U4EYXA4K.js → workspace-providers-status-PDDMI6ST.js} +51 -51
  270. package/chunks/{workspace-registration-store-OG66U3CB.js → workspace-registration-store-BGRKKIYR.js} +1 -1
  271. package/chunks/{workspace-registry-WSHWQRQQ.js → workspace-registry-L4NCJ34K.js} +49 -49
  272. package/chunks/{workspace-service-QZXQHX2F.js → workspace-service-LOXYKYTR.js} +54 -54
  273. package/chunks/{workspace-skills-status-VRBHEX5O.js → workspace-skills-status-IJ5FOQI6.js} +49 -49
  274. package/chunks/{workspace-trust-reconciler-FCRIUIOF.js → workspace-trust-reconciler-H36TCR2S.js} +57 -57
  275. package/chunks/{write-file-PYL3JCCD.js → write-file-JJAY7JSP.js} +42 -42
  276. package/chunks/{zoom-image-RS6MU26F.js → zoom-image-4MVVVM7E.js} +12 -12
  277. package/cli.js +18 -17
  278. package/package.json +4 -4
  279. package/web-shell/assets/{arc-CgGUyHWd.js → arc-B-89zHN4.js} +1 -1
  280. package/web-shell/assets/{architectureDiagram-3BPJPVTR-BR0Qv-1Y.js → architectureDiagram-3BPJPVTR-BkcOncHk.js} +1 -1
  281. package/web-shell/assets/{blockDiagram-GPEHLZMM-DIoaceaI.js → blockDiagram-GPEHLZMM-DQ4yboaF.js} +1 -1
  282. package/web-shell/assets/{c4Diagram-AAUBKEIU-Bc5k6BbI.js → c4Diagram-AAUBKEIU-C_8ZjPDI.js} +1 -1
  283. package/web-shell/assets/channel-Du2WFns8.js +1 -0
  284. package/web-shell/assets/{chunk-2J33WTMH-DtPEz2WX.js → chunk-2J33WTMH-naKVe1Bm.js} +1 -1
  285. package/web-shell/assets/{chunk-4BX2VUAB-Dydo6ydE.js → chunk-4BX2VUAB-DdoViKT2.js} +1 -1
  286. package/web-shell/assets/{chunk-55IACEB6-DD9_VWXm.js → chunk-55IACEB6-DUDQZEwU.js} +1 -1
  287. package/web-shell/assets/{chunk-727SXJPM-DVI2m59k.js → chunk-727SXJPM-BqpDTR5s.js} +1 -1
  288. package/web-shell/assets/{chunk-AQP2D5EJ-luatmaTN.js → chunk-AQP2D5EJ-CdmEknkT.js} +1 -1
  289. package/web-shell/assets/{chunk-FMBD7UC4-Duy8NTIi.js → chunk-FMBD7UC4-CH7fFTLB.js} +1 -1
  290. package/web-shell/assets/{chunk-ND2GUHAM-CrL1yhms.js → chunk-ND2GUHAM-ObgSuFKF.js} +1 -1
  291. package/web-shell/assets/{chunk-QZHKN3VN-C7BX6bu1.js → chunk-QZHKN3VN-D9fKdv_s.js} +1 -1
  292. package/web-shell/assets/classDiagram-4FO5ZUOK-Zw0HafH6.js +1 -0
  293. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Zw0HafH6.js +1 -0
  294. package/web-shell/assets/{cose-bilkent-S5V4N54A-BTzs7mIi.js → cose-bilkent-S5V4N54A-CvzATMx9.js} +1 -1
  295. package/web-shell/assets/{dagre-BM42HDAG-3VTUmWts.js → dagre-BM42HDAG-M_xU21QW.js} +1 -1
  296. package/web-shell/assets/{diagram-2AECGRRQ-Ehdp75GN.js → diagram-2AECGRRQ-CNrl9sW1.js} +1 -1
  297. package/web-shell/assets/{diagram-5GNKFQAL-B3wu3teE.js → diagram-5GNKFQAL-CUweVT6T.js} +1 -1
  298. package/web-shell/assets/{diagram-KO2AKTUF-DjgTSf2S.js → diagram-KO2AKTUF-D3n6Lxjo.js} +1 -1
  299. package/web-shell/assets/{diagram-LMA3HP47-Br9mwjY3.js → diagram-LMA3HP47-0SeFPK4t.js} +1 -1
  300. package/web-shell/assets/{diagram-OG6HWLK6-D4xz5M-z.js → diagram-OG6HWLK6-DAgyEwge.js} +1 -1
  301. package/web-shell/assets/{erDiagram-TEJ5UH35-CXayWlG_.js → erDiagram-TEJ5UH35-CzxBBDIK.js} +1 -1
  302. package/web-shell/assets/{flowDiagram-I6XJVG4X-CLonjQTi.js → flowDiagram-I6XJVG4X-B0uj0jyo.js} +1 -1
  303. package/web-shell/assets/{ganttDiagram-6RSMTGT7-BTySFT-1.js → ganttDiagram-6RSMTGT7-DFzcj5km.js} +1 -1
  304. package/web-shell/assets/{gitGraphDiagram-PVQCEYII--2WcUjOe.js → gitGraphDiagram-PVQCEYII-DylJ_Fc9.js} +1 -1
  305. package/web-shell/assets/index-BIGQygTL.css +5 -0
  306. package/web-shell/assets/{index-DPJHkFOG.js → index-BKSAnXU9.js} +1 -1
  307. package/web-shell/assets/index-J7OMTqAN.js +1789 -0
  308. package/web-shell/assets/{infoDiagram-5YYISTIA-9vpgAf1m.js → infoDiagram-5YYISTIA-BYMcJVMI.js} +1 -1
  309. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DcRpHnAW.js → ishikawaDiagram-YF4QCWOH-t1quI1S3.js} +1 -1
  310. package/web-shell/assets/{journeyDiagram-JHISSGLW-C2TKorRm.js → journeyDiagram-JHISSGLW-YM_QVUJm.js} +1 -1
  311. package/web-shell/assets/{kanban-definition-UN3LZRKU-DdsFwB8b.js → kanban-definition-UN3LZRKU-jw8OddK1.js} +1 -1
  312. package/web-shell/assets/{linear-7PjRvJrf.js → linear-Dlr3RVuP.js} +1 -1
  313. package/web-shell/assets/{mermaid.core-raDXa11C.js → mermaid.core-CqGKzNzd.js} +5 -5
  314. package/web-shell/assets/{mindmap-definition-RKZ34NQL-DLHc-PRN.js → mindmap-definition-RKZ34NQL-BqureoOS.js} +1 -1
  315. package/web-shell/assets/{pieDiagram-4H26LBE5-BftYpeTW.js → pieDiagram-4H26LBE5-Da20HkK1.js} +1 -1
  316. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-O-6ygOYn.js → quadrantDiagram-W4KKPZXB-BsNlMvJy.js} +1 -1
  317. package/web-shell/assets/{requirementDiagram-4Y6WPE33-BmZWVufJ.js → requirementDiagram-4Y6WPE33-DzVCQCse.js} +1 -1
  318. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-2x5beiWt.js → sankeyDiagram-5OEKKPKP-BMo16voT.js} +1 -1
  319. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-BH8uKokQ.js → sequenceDiagram-3UESZ5HK-Bgi-pdHk.js} +1 -1
  320. package/web-shell/assets/{stateDiagram-AJRCARHV-Dq1MFgX_.js → stateDiagram-AJRCARHV-xaPQXwGk.js} +1 -1
  321. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-D5RqimXD.js +1 -0
  322. package/web-shell/assets/{timeline-definition-PNZ67QCA-Cl2WKbv9.js → timeline-definition-PNZ67QCA-C_9RuvKG.js} +1 -1
  323. package/web-shell/assets/{vennDiagram-CIIHVFJN-BqoRo_Q-.js → vennDiagram-CIIHVFJN-Bgu6vdla.js} +1 -1
  324. package/web-shell/assets/{wardley-L42UT6IY-BTxp-Yot.js → wardley-L42UT6IY-CFTZ8IrX.js} +1 -1
  325. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DFXVCSH2.js → wardleyDiagram-YWT4CUSO-BASW9Vmt.js} +1 -1
  326. package/web-shell/assets/{xychartDiagram-2RQKCTM6-qQhWx0aE.js → xychartDiagram-2RQKCTM6--Nh-CD3F.js} +1 -1
  327. package/web-shell/index.html +2 -2
  328. package/chunks/chunk-CG3OQDNY.js +0 -649
  329. package/chunks/chunk-L34XSHIZ.js +0 -28
  330. package/chunks/chunk-N2TNM3QB.js +0 -9
  331. package/chunks/chunk-UOMZKPI5.js +0 -830
  332. package/chunks/chunk-WFRHWDBT.js +0 -622
  333. package/chunks/chunk-WLML6VIA.js +0 -18
  334. package/chunks/chunk-ZBBVBZBR.js +0 -137
  335. package/chunks/chunk-bdqvmfwv-OHYAFAAO.js +0 -17446
  336. package/chunks/daemon-status-provider-LPYR2GXY.js +0 -103
  337. package/chunks/dispatch-B53LNEO4.js +0 -37
  338. package/chunks/nonInteractiveCli-ZHW6F76F.js +0 -166
  339. package/chunks/opentui-entry-SBAOWW7M.js +0 -52325
  340. package/chunks/runtime-gate-T4ICWGQJ.js +0 -89
  341. package/chunks/wrapper-46Z24CTM.js +0 -35
  342. package/web-shell/assets/channel-D2b9IYpS.js +0 -1
  343. package/web-shell/assets/classDiagram-4FO5ZUOK-DHatTCmD.js +0 -1
  344. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DHatTCmD.js +0 -1
  345. package/web-shell/assets/index-CIFO52Wx.css +0 -5
  346. package/web-shell/assets/index-bhq3CUUF.js +0 -1789
  347. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-spuAYji6.js +0 -1
  348. /package/chunks/{chunk-44CTCCLY.js → chunk-NWNEANAT.js} +0 -0
@@ -1,622 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- ICON
5
- } from "./chunk-KNXA5XXK.js";
6
- import {
7
- theme
8
- } from "./chunk-DAX3G67A.js";
9
- import {
10
- getCachedStringWidth
11
- } from "./chunk-4NFY2S7N.js";
12
- import {
13
- MAIN_SOURCE
14
- } from "./chunk-HB6QW4LM.js";
15
- import {
16
- ToolDisplayNames,
17
- ToolNames
18
- } from "./chunk-XTH2OMDS.js";
19
- import {
20
- sanitizeForOsc,
21
- wrapForMultiplexer
22
- } from "./chunk-TBVNYG5B.js";
23
- import {
24
- init_esbuild_shims
25
- } from "./chunk-5O2XNYP6.js";
26
- import {
27
- __name
28
- } from "./chunk-J2S4EL5Y.js";
29
-
30
- // packages/cli/src/ui/utils/sessionPickerUtils.ts
31
- init_esbuild_shims();
32
- var graphemeSegmenter = new Intl.Segmenter(void 0, {
33
- granularity: "grapheme"
34
- });
35
- var SESSION_PAGE_SIZE = 20;
36
- function truncateText(text, maxWidth) {
37
- const widthLimit = Math.max(0, Math.floor(maxWidth));
38
- if (widthLimit === 0) {
39
- return "";
40
- }
41
- const firstLine = text.split(/\r?\n/, 1)[0];
42
- if (getCachedStringWidth(firstLine) <= widthLimit) {
43
- return firstLine;
44
- }
45
- if (widthLimit <= 3) {
46
- return truncateToDisplayWidth(firstLine, widthLimit);
47
- }
48
- return `${truncateToDisplayWidth(firstLine, widthLimit - 3)}...`;
49
- }
50
- __name(truncateText, "truncateText");
51
- function truncateToDisplayWidth(text, maxWidth) {
52
- let width = 0;
53
- let result = "";
54
- for (const { segment } of graphemeSegmenter.segment(text)) {
55
- const segmentWidth = getCachedStringWidth(segment);
56
- if (width + segmentWidth > maxWidth) {
57
- break;
58
- }
59
- result += segment;
60
- width += segmentWidth;
61
- }
62
- return result;
63
- }
64
- __name(truncateToDisplayWidth, "truncateToDisplayWidth");
65
- function matchesQuery(session, normalizedQuery) {
66
- if (!normalizedQuery) return true;
67
- const haystacks = [
68
- session.customTitle,
69
- session.prompt,
70
- session.gitBranch
71
- ];
72
- for (const h of haystacks) {
73
- if (h && h.toLowerCase().includes(normalizedQuery)) return true;
74
- }
75
- return false;
76
- }
77
- __name(matchesQuery, "matchesQuery");
78
- function filterSessions(sessions, filterByBranch, currentBranch, query) {
79
- const normalizedQuery = query?.toLowerCase().trim() ?? "";
80
- return sessions.filter((session) => {
81
- if (filterByBranch && currentBranch) {
82
- if (session.gitBranch !== currentBranch) return false;
83
- }
84
- return matchesQuery(session, normalizedQuery);
85
- });
86
- }
87
- __name(filterSessions, "filterSessions");
88
- function formatMessageCount(count) {
89
- return count === 1 ? "1 message" : `${count} messages`;
90
- }
91
- __name(formatMessageCount, "formatMessageCount");
92
-
93
- // packages/cli/src/ui/utils/osc8.ts
94
- init_esbuild_shims();
95
- function osc8Open(url) {
96
- return wrapForMultiplexer(`\x1B]8;;${sanitizeForOsc(url)}\x07`);
97
- }
98
- __name(osc8Open, "osc8Open");
99
- function osc8Close() {
100
- return wrapForMultiplexer(`\x1B]8;;\x07`);
101
- }
102
- __name(osc8Close, "osc8Close");
103
- var SAFE_OSC8_SCHEMES = /* @__PURE__ */ new Set([
104
- "http:",
105
- "https:",
106
- "mailto:",
107
- "ftp:",
108
- "ftps:",
109
- "sftp:",
110
- "ssh:"
111
- ]);
112
- function isSafeOscScheme(url) {
113
- const match = url.match(/^([a-z][a-z0-9+.-]*:)/i);
114
- if (!match) return false;
115
- return SAFE_OSC8_SCHEMES.has(match[1].toLowerCase());
116
- }
117
- __name(isSafeOscScheme, "isSafeOscScheme");
118
- var BARE_URL_BREAK_CHARACTERS = String.raw`\u3001-\u3004\u3008-\u3020\u302e-\u3030\u3036-\u3037\u303d-\u303f\uff01-\uff0f\uff1a-\uff20\uff3b-\uff40\uff5b-\uff65\ufe10-\ufe1f\ufe30-\ufe32\ufe35-\ufe6f`;
119
- var BARE_URL_BREAK_PATTERN = new RegExp(`[${BARE_URL_BREAK_CHARACTERS}]`);
120
- function trimTrailingUrlPunctuation(url, nextCharacter = "") {
121
- let openParen = 0;
122
- let openBracket = 0;
123
- let openBrace = 0;
124
- let closeParen = 0;
125
- let closeBracket = 0;
126
- let closeBrace = 0;
127
- for (let i = 0; i < url.length; i++) {
128
- const cc = url.charCodeAt(i);
129
- if (cc === 40) openParen++;
130
- else if (cc === 91) openBracket++;
131
- else if (cc === 123) openBrace++;
132
- else if (cc === 41) closeParen++;
133
- else if (cc === 93) closeBracket++;
134
- else if (cc === 125) closeBrace++;
135
- }
136
- let end = url.length;
137
- if (url.charCodeAt(end - 1) === 95 && BARE_URL_BREAK_PATTERN.test(nextCharacter)) {
138
- end--;
139
- }
140
- while (end > 0) {
141
- const c = url.charCodeAt(end - 1);
142
- if (c === 46 || c === 44 || c === 59 || c === 58 || c === 33 || c === 63 || c === 39 || c === 34 || c === 96 || c === 62) {
143
- end--;
144
- continue;
145
- }
146
- if (c === 41 && closeParen > openParen) {
147
- closeParen--;
148
- end--;
149
- continue;
150
- }
151
- if (c === 93 && closeBracket > openBracket) {
152
- closeBracket--;
153
- end--;
154
- continue;
155
- }
156
- if (c === 125 && closeBrace > openBrace) {
157
- closeBrace--;
158
- end--;
159
- continue;
160
- }
161
- break;
162
- }
163
- return url.slice(0, end);
164
- }
165
- __name(trimTrailingUrlPunctuation, "trimTrailingUrlPunctuation");
166
- var MD_LINK_PATTERN = String.raw`\[.*?\]\((?:[^()]|\([^()]*\))*\)`;
167
- var MD_LINK_CAPTURE = /^\[(.*?)\]\(((?:[^()]|\([^()]*\))*)\)$/;
168
- var BARE_URL_PATTERN = String.raw`https?:\/\/[^\s${BARE_URL_BREAK_CHARACTERS}]+`;
169
- function shouldWrapMarkdownLink(url, canHyperlink) {
170
- return canHyperlink && isSafeOscScheme(url) && !/\s/.test(url);
171
- }
172
- __name(shouldWrapMarkdownLink, "shouldWrapMarkdownLink");
173
- var HOST_LIKE_RE = /\b[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)*\.[a-z]{2,}\b/gi;
174
- var IPV4_LIKE_RE = /\b(?:\d{1,3}\.){3}\d{1,3}\b/g;
175
- function targetHostname(url) {
176
- try {
177
- const u = new URL(url);
178
- if (u.protocol === "mailto:") {
179
- const at = u.pathname.lastIndexOf("@");
180
- return at >= 0 ? u.pathname.slice(at + 1).toLowerCase() || void 0 : void 0;
181
- }
182
- return u.hostname.toLowerCase() || void 0;
183
- } catch {
184
- return void 0;
185
- }
186
- }
187
- __name(targetHostname, "targetHostname");
188
- function labelMayDeceive(label, url) {
189
- if (label === url) return false;
190
- if (/:\/\//.test(label) || /^[a-z][a-z0-9+.-]*:/i.test(label.trim())) {
191
- return true;
192
- }
193
- const lower = label.toLowerCase();
194
- const labelHosts = [
195
- ...lower.match(HOST_LIKE_RE) ?? [],
196
- ...lower.match(IPV4_LIKE_RE) ?? []
197
- ];
198
- if (labelHosts.length === 0) return false;
199
- const target = targetHostname(url);
200
- if (!target) return true;
201
- return labelHosts.some((h) => h !== target);
202
- }
203
- __name(labelMayDeceive, "labelMayDeceive");
204
-
205
- // packages/cli/src/ui/utils/displayUtils.ts
206
- init_esbuild_shims();
207
- function getArenaStatusLabel(status) {
208
- switch (status) {
209
- case "idle" /* IDLE */:
210
- return { icon: "\u2713", text: "Idle", color: theme.status.success };
211
- case "completed" /* COMPLETED */:
212
- return { icon: "\u2713", text: "Done", color: theme.status.success };
213
- case "cancelled" /* CANCELLED */:
214
- return { icon: "\u2298", text: "Cancelled", color: theme.status.warning };
215
- case "failed" /* FAILED */:
216
- return { icon: "\u2717", text: "Failed", color: theme.status.error };
217
- case "running" /* RUNNING */:
218
- return {
219
- icon: ICON.CIRCLE_EMPTY,
220
- text: "Running",
221
- color: theme.text.secondary
222
- };
223
- case "initializing" /* INITIALIZING */:
224
- return {
225
- icon: ICON.CIRCLE_EMPTY,
226
- text: "Initializing",
227
- color: theme.text.secondary
228
- };
229
- default:
230
- return {
231
- icon: ICON.CIRCLE_EMPTY,
232
- text: status,
233
- color: theme.text.secondary
234
- };
235
- }
236
- }
237
- __name(getArenaStatusLabel, "getArenaStatusLabel");
238
- var TOOL_SUCCESS_RATE_HIGH = 95;
239
- var TOOL_SUCCESS_RATE_MEDIUM = 85;
240
- var USER_AGREEMENT_RATE_HIGH = 75;
241
- var USER_AGREEMENT_RATE_MEDIUM = 45;
242
- var getStatusColor = /* @__PURE__ */ __name((value, thresholds, options = {}) => {
243
- if (value >= thresholds.green) {
244
- return theme.status.success;
245
- }
246
- if (value >= thresholds.yellow) {
247
- return theme.status.warning;
248
- }
249
- if (thresholds.red != null && value >= thresholds.red) {
250
- return theme.status.error;
251
- }
252
- return options.defaultColor ?? theme.status.error;
253
- }, "getStatusColor");
254
- function formatDuration(ms) {
255
- const totalSeconds = Math.round(ms / 1e3);
256
- if (totalSeconds < 60) {
257
- return `${totalSeconds}s`;
258
- }
259
- const minutes = Math.floor(totalSeconds / 60);
260
- const seconds = totalSeconds % 60;
261
- return seconds > 0 ? `${minutes}m ${seconds}s` : `${minutes}m`;
262
- }
263
- __name(formatDuration, "formatDuration");
264
-
265
- // packages/cli/src/ui/keyMatchers.ts
266
- init_esbuild_shims();
267
-
268
- // packages/cli/src/config/keyBindings.ts
269
- init_esbuild_shims();
270
- var Command = /* @__PURE__ */ ((Command2) => {
271
- Command2["RETURN"] = "return";
272
- Command2["ESCAPE"] = "escape";
273
- Command2["HOME"] = "home";
274
- Command2["END"] = "end";
275
- Command2["KILL_LINE_RIGHT"] = "killLineRight";
276
- Command2["KILL_LINE_LEFT"] = "killLineLeft";
277
- Command2["CLEAR_INPUT"] = "clearInput";
278
- Command2["DELETE_WORD_BACKWARD"] = "deleteWordBackward";
279
- Command2["CLEAR_SCREEN"] = "clearScreen";
280
- Command2["HISTORY_UP"] = "historyUp";
281
- Command2["HISTORY_DOWN"] = "historyDown";
282
- Command2["NAVIGATION_UP"] = "navigationUp";
283
- Command2["NAVIGATION_DOWN"] = "navigationDown";
284
- Command2["SELECTION_UP"] = "selectionUp";
285
- Command2["SELECTION_DOWN"] = "selectionDown";
286
- Command2["ACCEPT_SUGGESTION"] = "acceptSuggestion";
287
- Command2["COMPLETION_UP"] = "completionUp";
288
- Command2["COMPLETION_DOWN"] = "completionDown";
289
- Command2["COMPLETION_TAB_LEFT"] = "completionTabLeft";
290
- Command2["COMPLETION_TAB_RIGHT"] = "completionTabRight";
291
- Command2["SUBMIT"] = "submit";
292
- Command2["QUEUE_MESSAGE"] = "queueMessage";
293
- Command2["NEWLINE"] = "newline";
294
- Command2["VOICE_PUSH_TO_TALK"] = "voicePushToTalk";
295
- Command2["OPEN_EXTERNAL_EDITOR"] = "openExternalEditor";
296
- Command2["PASTE_CLIPBOARD_IMAGE"] = "pasteClipboardImage";
297
- Command2["TOGGLE_TOOL_DESCRIPTIONS"] = "toggleToolDescriptions";
298
- Command2["TOGGLE_IDE_CONTEXT_DETAIL"] = "toggleIDEContextDetail";
299
- Command2["QUIT"] = "quit";
300
- Command2["EXIT"] = "exit";
301
- Command2["SHOW_MORE_LINES"] = "showMoreLines";
302
- Command2["RETRY_LAST"] = "retryLast";
303
- Command2["TOGGLE_RENDER_MODE"] = "toggleRenderMode";
304
- Command2["PROMOTE_SHELL_TO_BACKGROUND"] = "promoteShellToBackground";
305
- Command2["REVERSE_SEARCH"] = "reverseSearch";
306
- Command2["SUBMIT_REVERSE_SEARCH"] = "submitReverseSearch";
307
- Command2["ACCEPT_SUGGESTION_REVERSE_SEARCH"] = "acceptSuggestionReverseSearch";
308
- Command2["TOGGLE_SHELL_INPUT_FOCUS"] = "toggleShellInputFocus";
309
- Command2["EXPAND_SUGGESTION"] = "expandSuggestion";
310
- Command2["COLLAPSE_SUGGESTION"] = "collapseSuggestion";
311
- Command2["TOGGLE_THINKING_EXPANDED"] = "toggleThinkingExpanded";
312
- Command2["SCROLL_UP"] = "scrollUp";
313
- Command2["SCROLL_DOWN"] = "scrollDown";
314
- Command2["PAGE_UP"] = "pageUp";
315
- Command2["PAGE_DOWN"] = "pageDown";
316
- Command2["SCROLL_HOME"] = "scrollHome";
317
- Command2["SCROLL_END"] = "scrollEnd";
318
- return Command2;
319
- })(Command || {});
320
- var defaultKeyBindings = {
321
- // Basic bindings
322
- ["return" /* RETURN */]: [{ key: "return" }],
323
- ["escape" /* ESCAPE */]: [{ key: "escape" }],
324
- // Cursor movement
325
- ["home" /* HOME */]: [{ key: "a", ctrl: true }],
326
- ["end" /* END */]: [{ key: "e", ctrl: true }],
327
- // Text deletion
328
- ["killLineRight" /* KILL_LINE_RIGHT */]: [{ key: "k", ctrl: true }],
329
- ["killLineLeft" /* KILL_LINE_LEFT */]: [{ key: "u", ctrl: true }],
330
- ["clearInput" /* CLEAR_INPUT */]: [{ key: "c", ctrl: true, shift: false }],
331
- // Added command (meta/alt/option) for mac compatibility
332
- ["deleteWordBackward" /* DELETE_WORD_BACKWARD */]: [
333
- { key: "backspace", ctrl: true },
334
- { key: "backspace", command: true },
335
- // MinTTY (Git Bash on Windows) emits the byte \x1f (ASCII Unit
336
- // Separator, rendered as "^_" by `cat -v`) for Ctrl+Backspace under
337
- // its standard Ctrl-modifies-meta-keys convention. The same byte is
338
- // the historical Ctrl-mapping of the Unit Separator on traditional
339
- // ANSI/VT terminals (Ctrl+_ and Ctrl+/ also emit it), but qwen-code
340
- // doesn't bind those keystrokes elsewhere so this entry is additive
341
- // and non-conflicting on every platform.
342
- { sequence: "" }
343
- ],
344
- // Screen control
345
- ["clearScreen" /* CLEAR_SCREEN */]: [{ key: "l", ctrl: true }],
346
- // History navigation
347
- ["historyUp" /* HISTORY_UP */]: [{ key: "p", ctrl: true }],
348
- ["historyDown" /* HISTORY_DOWN */]: [{ key: "n", ctrl: true }],
349
- ["navigationUp" /* NAVIGATION_UP */]: [{ key: "up", shift: false }],
350
- ["navigationDown" /* NAVIGATION_DOWN */]: [{ key: "down", shift: false }],
351
- // Selection-list nav: arrows + k/j + Ctrl+P/Ctrl+N
352
- // ctrl: false on bare k/j skips Ctrl+K and Ctrl+J
353
- ["selectionUp" /* SELECTION_UP */]: [
354
- { key: "up", shift: false },
355
- { key: "k", ctrl: false },
356
- { key: "p", ctrl: true }
357
- ],
358
- ["selectionDown" /* SELECTION_DOWN */]: [
359
- { key: "down", shift: false },
360
- { key: "j", ctrl: false },
361
- { key: "n", ctrl: true }
362
- ],
363
- // Auto-completion
364
- ["acceptSuggestion" /* ACCEPT_SUGGESTION */]: [
365
- { key: "tab" },
366
- { key: "return", ctrl: false, shift: false }
367
- ],
368
- // Completion navigation: arrows + readline/Vim-style Ctrl+P/Ctrl+N
369
- ["completionUp" /* COMPLETION_UP */]: [
370
- { key: "up", shift: false },
371
- { key: "p", ctrl: true }
372
- ],
373
- ["completionDown" /* COMPLETION_DOWN */]: [
374
- { key: "down", shift: false },
375
- { key: "n", ctrl: true }
376
- ],
377
- // Completion category tab switching (for the tabbed @ completion UI).
378
- // Bound to the BARE arrow keys: Ctrl+←/→ was the original binding but many
379
- // terminals intercept it for word-jump, and on macOS the system claims it
380
- // for Mission Control, so the documented gesture was unreachable for most
381
- // users (#8069).
382
- //
383
- // Tradeoff, accepted deliberately: while the `@` category tabs are visible,
384
- // the bare arrows no longer move the caret in the input buffer — press Esc
385
- // to dismiss the menu first. InputPrompt only renders and handles the tabs
386
- // when they own the arrows, so search and attachment navigation keep their
387
- // normal behavior.
388
- //
389
- // Modifiers are pinned false so Alt/Option+arrow word movement and any
390
- // Ctrl+arrow terminal binding fall through untouched.
391
- ["completionTabLeft" /* COMPLETION_TAB_LEFT */]: [
392
- { key: "left", shift: false, ctrl: false, meta: false }
393
- ],
394
- ["completionTabRight" /* COMPLETION_TAB_RIGHT */]: [
395
- { key: "right", shift: false, ctrl: false, meta: false }
396
- ],
397
- // Text input
398
- // Must also exclude shift to allow shift+enter for newline
399
- ["submit" /* SUBMIT */]: [
400
- {
401
- key: "return",
402
- ctrl: false,
403
- command: false,
404
- paste: false,
405
- shift: false
406
- }
407
- ],
408
- ["queueMessage" /* QUEUE_MESSAGE */]: [
409
- { key: "q", ctrl: true, command: false, shift: false, paste: false }
410
- ],
411
- // Split into multiple data-driven bindings
412
- // Now also includes shift+enter for multi-line input
413
- ["newline" /* NEWLINE */]: [
414
- { key: "return", ctrl: true },
415
- { key: "return", command: true },
416
- { key: "return", paste: true },
417
- { key: "return", shift: true },
418
- { key: "j", ctrl: true }
419
- ],
420
- ["voicePushToTalk" /* VOICE_PUSH_TO_TALK */]: [{ key: "space", ctrl: false, meta: false }],
421
- // External tools
422
- ["openExternalEditor" /* OPEN_EXTERNAL_EDITOR */]: [
423
- { key: "x", ctrl: true },
424
- { sequence: "", ctrl: true }
425
- ],
426
- ["pasteClipboardImage" /* PASTE_CLIPBOARD_IMAGE */]: process.platform === "win32" ? [
427
- { key: "v", command: true },
428
- { key: "v", meta: true }
429
- ] : [
430
- { key: "v", ctrl: true },
431
- { key: "v", command: true }
432
- ],
433
- // App level bindings
434
- ["toggleToolDescriptions" /* TOGGLE_TOOL_DESCRIPTIONS */]: [{ key: "t", ctrl: true }],
435
- ["toggleIDEContextDetail" /* TOGGLE_IDE_CONTEXT_DETAIL */]: [{ key: "g", ctrl: true }],
436
- ["quit" /* QUIT */]: [{ key: "c", ctrl: true, shift: false }],
437
- ["exit" /* EXIT */]: [{ key: "d", ctrl: true }],
438
- ["showMoreLines" /* SHOW_MORE_LINES */]: [{ key: "s", ctrl: true }],
439
- ["retryLast" /* RETRY_LAST */]: [{ key: "y", ctrl: true }],
440
- ["toggleRenderMode" /* TOGGLE_RENDER_MODE */]: [{ key: "m", meta: true }],
441
- ["promoteShellToBackground" /* PROMOTE_SHELL_TO_BACKGROUND */]: [{ key: "b", ctrl: true }],
442
- // Shell commands
443
- ["reverseSearch" /* REVERSE_SEARCH */]: [{ key: "r", ctrl: true }],
444
- // Note: original logic ONLY checked ctrl=false, ignored meta/shift/paste
445
- ["submitReverseSearch" /* SUBMIT_REVERSE_SEARCH */]: [{ key: "return", ctrl: false }],
446
- ["acceptSuggestionReverseSearch" /* ACCEPT_SUGGESTION_REVERSE_SEARCH */]: [{ key: "tab" }],
447
- ["toggleShellInputFocus" /* TOGGLE_SHELL_INPUT_FOCUS */]: [{ key: "f", ctrl: true }],
448
- // Suggestion expansion
449
- ["expandSuggestion" /* EXPAND_SUGGESTION */]: [{ key: "right" }],
450
- ["collapseSuggestion" /* COLLAPSE_SUGGESTION */]: [{ key: "left" }],
451
- // Thinking expansion (Ctrl+O primary, Alt+T legacy)
452
- ["toggleThinkingExpanded" /* TOGGLE_THINKING_EXPANDED */]: [
453
- { key: "o", ctrl: true },
454
- { key: "t", meta: true }
455
- ],
456
- // Scroll commands
457
- ["scrollUp" /* SCROLL_UP */]: [{ key: "up", shift: true }],
458
- ["scrollDown" /* SCROLL_DOWN */]: [{ key: "down", shift: true }],
459
- ["pageUp" /* PAGE_UP */]: [{ key: "pageup" }],
460
- ["pageDown" /* PAGE_DOWN */]: [{ key: "pagedown" }],
461
- ["scrollHome" /* SCROLL_HOME */]: [{ key: "home", ctrl: true }],
462
- ["scrollEnd" /* SCROLL_END */]: [{ key: "end", ctrl: true }]
463
- };
464
-
465
- // packages/cli/src/ui/keyMatchers.ts
466
- function matchKeyBinding(keyBinding, key) {
467
- let keyMatches = false;
468
- if (keyBinding.key !== void 0) {
469
- keyMatches = keyBinding.key === key.name;
470
- } else if (keyBinding.sequence !== void 0) {
471
- keyMatches = keyBinding.sequence === key.sequence;
472
- } else {
473
- return false;
474
- }
475
- if (!keyMatches) {
476
- return false;
477
- }
478
- if (keyBinding.ctrl !== void 0 && !!key.ctrl !== keyBinding.ctrl) {
479
- return false;
480
- }
481
- if (keyBinding.shift !== void 0 && !!key.shift !== keyBinding.shift) {
482
- return false;
483
- }
484
- if (keyBinding.command !== void 0 && !!key.meta !== keyBinding.command) {
485
- return false;
486
- }
487
- if (keyBinding.paste !== void 0 && !!key.paste !== keyBinding.paste) {
488
- return false;
489
- }
490
- if (keyBinding.meta !== void 0 && !!key.meta !== keyBinding.meta) {
491
- return false;
492
- }
493
- return true;
494
- }
495
- __name(matchKeyBinding, "matchKeyBinding");
496
- function matchCommand(command, key, config = defaultKeyBindings) {
497
- const bindings = config[command];
498
- return bindings.some((binding) => matchKeyBinding(binding, key));
499
- }
500
- __name(matchCommand, "matchCommand");
501
- function createKeyMatchers(config = defaultKeyBindings) {
502
- const matchers = {};
503
- for (const command of Object.values(Command)) {
504
- matchers[command] = (key) => matchCommand(command, key, config);
505
- }
506
- return matchers;
507
- }
508
- __name(createKeyMatchers, "createKeyMatchers");
509
- var keyMatchers = createKeyMatchers(defaultKeyBindings);
510
-
511
- // packages/cli/src/ui/utils/tool-display-map.ts
512
- init_esbuild_shims();
513
- var TOOL_DISPLAY_BY_NAME = Object.fromEntries(
514
- Object.keys(ToolNames).map((key) => [
515
- ToolNames[key],
516
- ToolDisplayNames[key]
517
- ])
518
- );
519
-
520
- // packages/cli/src/ui/utils/modelsBySource.ts
521
- init_esbuild_shims();
522
- function flattenModelsBySource(models) {
523
- const sessionHasNonMainSource = Object.values(models).some(
524
- (modelMetrics) => Object.keys(modelMetrics.bySource).some((source) => source !== MAIN_SOURCE)
525
- );
526
- const result = [];
527
- for (const [modelName, modelMetrics] of Object.entries(models)) {
528
- if (modelMetrics.api.totalRequests <= 0) continue;
529
- const displayName = normalizeModelName(modelName);
530
- const sourceNames = Object.keys(modelMetrics.bySource);
531
- if (sourceNames.length === 0) {
532
- result.push({
533
- key: modelName,
534
- label: displayName,
535
- metrics: modelMetrics
536
- });
537
- continue;
538
- }
539
- if (!sessionHasNonMainSource) {
540
- result.push({
541
- key: modelName,
542
- label: displayName,
543
- metrics: modelMetrics.bySource[MAIN_SOURCE] ?? modelMetrics
544
- });
545
- continue;
546
- }
547
- const sortedSources = sortSources(sourceNames);
548
- for (const source of sortedSources) {
549
- result.push({
550
- key: `${modelName}::${source}`,
551
- label: `${displayName} (${source})`,
552
- metrics: modelMetrics.bySource[source]
553
- });
554
- }
555
- }
556
- return result;
557
- }
558
- __name(flattenModelsBySource, "flattenModelsBySource");
559
- function normalizeModelName(modelName) {
560
- return modelName.replace("-001", "");
561
- }
562
- __name(normalizeModelName, "normalizeModelName");
563
- function sortSources(sources) {
564
- const main = [];
565
- const rest = [];
566
- for (const source of sources) {
567
- if (source === MAIN_SOURCE) {
568
- main.push(source);
569
- } else {
570
- rest.push(source);
571
- }
572
- }
573
- rest.sort((a, b) => a.localeCompare(b));
574
- return [...main, ...rest];
575
- }
576
- __name(sortSources, "sortSources");
577
-
578
- export {
579
- SESSION_PAGE_SIZE,
580
- truncateText,
581
- filterSessions,
582
- formatMessageCount,
583
- osc8Open,
584
- osc8Close,
585
- isSafeOscScheme,
586
- trimTrailingUrlPunctuation,
587
- MD_LINK_PATTERN,
588
- MD_LINK_CAPTURE,
589
- BARE_URL_PATTERN,
590
- shouldWrapMarkdownLink,
591
- labelMayDeceive,
592
- getArenaStatusLabel,
593
- TOOL_SUCCESS_RATE_HIGH,
594
- TOOL_SUCCESS_RATE_MEDIUM,
595
- USER_AGREEMENT_RATE_HIGH,
596
- USER_AGREEMENT_RATE_MEDIUM,
597
- getStatusColor,
598
- formatDuration,
599
- keyMatchers,
600
- TOOL_DISPLAY_BY_NAME,
601
- flattenModelsBySource
602
- };
603
- /**
604
- * @license
605
- * Copyright 2025 Qwen Code
606
- * SPDX-License-Identifier: Apache-2.0
607
- */
608
- /**
609
- * @license
610
- * Copyright 2025 Qwen
611
- * SPDX-License-Identifier: Apache-2.0
612
- */
613
- /**
614
- * @license
615
- * Copyright 2025 Google LLC
616
- * SPDX-License-Identifier: Apache-2.0
617
- */
618
- /**
619
- * @license
620
- * Copyright 2025 Qwen Team
621
- * SPDX-License-Identifier: Apache-2.0
622
- */
@@ -1,18 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- init_esbuild_shims
5
- } from "./chunk-5O2XNYP6.js";
6
-
7
- // packages/cli/src/ui/utils/suggestions.ts
8
- init_esbuild_shims();
9
- var MAX_SUGGESTIONS_TO_SHOW = 8;
10
-
11
- export {
12
- MAX_SUGGESTIONS_TO_SHOW
13
- };
14
- /**
15
- * @license
16
- * Copyright 2025 Google LLC
17
- * SPDX-License-Identifier: Apache-2.0
18
- */