@qwen-code/qwen-code 0.21.11 → 0.21.12-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/chunks/{MaxSizedBox-G7QPSZTF.js → MaxSizedBox-VSAJNP52.js} +22 -22
  2. package/chunks/{StandaloneSessionPicker-3CTEPV7S.js → StandaloneSessionPicker-N5MC42M2.js} +44 -42
  3. package/chunks/{acpAgent-43JURWOW.js → acpAgent-GUV7LTDH.js} +98 -94
  4. package/chunks/{agent-MIY4LJJJ.js → agent-WJT3BALC.js} +20 -20
  5. package/chunks/{agent-headless-LWVA6GR5.js → agent-headless-JRRUUVP3.js} +20 -20
  6. package/chunks/{anthropicContentGenerator-7HEP7Q5D.js → anthropicContentGenerator-4JSC3ZFL.js} +20 -20
  7. package/chunks/{bridge-PTTJEBNP.js → bridge-VB3BPG7G.js} +21 -21
  8. package/chunks/{build-GDBLPA24.js → build-RZS65IIX.js} +1 -1
  9. package/chunks/{channel-management-service-PQ6SU56M.js → channel-management-service-SKAN6NOB.js} +1 -1
  10. package/chunks/{channel-settings-store-IKK34GMH.js → channel-settings-store-UM7JZEW7.js} +27 -27
  11. package/chunks/{channel-worker-group-WBRE33ZV.js → channel-worker-group-YPTB5ASD.js} +3 -3
  12. package/chunks/{channel-worker-manager-V4LYVTPH.js → channel-worker-manager-4EHJSPRH.js} +3 -3
  13. package/chunks/{channel-worker-supervisor-YDAGW2RP.js → channel-worker-supervisor-DZKHYFHV.js} +2 -2
  14. package/chunks/{chunk-2IIJTXYF.js → chunk-2SB4SLKC.js} +3 -1
  15. package/chunks/{chunk-U7QUDFPD.js → chunk-3SIXC6QC.js} +5 -5
  16. package/chunks/{chunk-BTYS2JAY.js → chunk-3XZYK76R.js} +1 -1
  17. package/chunks/{chunk-4PFKN7CQ.js → chunk-3ZLUA4GV.js} +7 -7
  18. package/chunks/{chunk-RUVZZKDH.js → chunk-45TYWBCB.js} +1 -1
  19. package/chunks/{chunk-QG2IEE2E.js → chunk-4W25XH7F.js} +6 -6
  20. package/chunks/{chunk-2R2HYSUQ.js → chunk-5AWARYOK.js} +6 -4
  21. package/chunks/{chunk-23GFHEM3.js → chunk-5DDUYIY6.js} +6 -6
  22. package/chunks/{chunk-XBLYC4MI.js → chunk-5TXOGH4I.js} +1 -1
  23. package/chunks/{chunk-G64M7R2Y.js → chunk-67LXZ6LV.js} +6 -6
  24. package/chunks/{chunk-KFCTC5IJ.js → chunk-6LK2QPIA.js} +1 -1
  25. package/chunks/{chunk-2XZWO53E.js → chunk-6XZERB6P.js} +3 -3
  26. package/chunks/{chunk-W2ITCESM.js → chunk-7L64FSYQ.js} +6 -127
  27. package/chunks/{chunk-UM57UTTV.js → chunk-7N6WK2W6.js} +1 -1
  28. package/chunks/chunk-7P32M35F.js +51 -0
  29. package/chunks/{chunk-X5GLCWPX.js → chunk-7PBUQKMT.js} +1 -1
  30. package/chunks/{chunk-3SOTXJNO.js → chunk-A7M57KOL.js} +4 -4
  31. package/chunks/{chunk-RUKNJEJO.js → chunk-ABGS4FDQ.js} +1 -1
  32. package/chunks/{chunk-BIXG46YI.js → chunk-AJL3SAZG.js} +10 -10
  33. package/chunks/{chunk-TNQLAI6I.js → chunk-AMXMM7DH.js} +1 -1
  34. package/chunks/{chunk-N3ZWGKXN.js → chunk-C2VGLLNA.js} +4 -4
  35. package/chunks/{chunk-UEUE6LJX.js → chunk-CX2MARRJ.js} +1 -1
  36. package/chunks/{chunk-JPA7IDTE.js → chunk-DEG7R6Z6.js} +2 -2
  37. package/chunks/{chunk-TNS2M7VL.js → chunk-DEVFUPC5.js} +6 -6
  38. package/chunks/{chunk-EOBM4T2Z.js → chunk-DGM2XA3R.js} +1 -1
  39. package/chunks/{chunk-NFSSQDB5.js → chunk-DNRV2US3.js} +3 -3
  40. package/chunks/{chunk-TYAMGABM.js → chunk-E3GLDLYB.js} +6 -0
  41. package/chunks/{chunk-HUE2M6VI.js → chunk-E5BWLU5J.js} +1 -1
  42. package/chunks/{chunk-ESVSQKPY.js → chunk-EAJESCBT.js} +6 -8
  43. package/chunks/{chunk-HZV75ET2.js → chunk-FLUYVAQZ.js} +1 -1
  44. package/chunks/{chunk-YVVIFFU4.js → chunk-FMLUVVQ6.js} +2 -2
  45. package/chunks/{chunk-JOXXPM3X.js → chunk-FWJRWCKU.js} +4 -4
  46. package/chunks/{chunk-T4576UW4.js → chunk-G4C5RLX6.js} +1 -1
  47. package/chunks/{chunk-HMCSRTDY.js → chunk-GQW6P73F.js} +1 -1
  48. package/chunks/{chunk-U2JLICUY.js → chunk-HB6QW4LM.js} +7 -7
  49. package/chunks/{chunk-UIZGNLBP.js → chunk-INQN4KIA.js} +148 -148
  50. package/chunks/{chunk-OGQERNHD.js → chunk-JO45C3OY.js} +2 -2
  51. package/chunks/{chunk-DSKLWQHC.js → chunk-JRRZFO4A.js} +2 -2
  52. package/chunks/{chunk-4EX3DBFH.js → chunk-JWXBLIQL.js} +4 -4
  53. package/chunks/{chunk-JHMFKJEP.js → chunk-KNQZXSLW.js} +8 -2
  54. package/chunks/{chunk-LA3FF7RO.js → chunk-L2O7DJIE.js} +1 -1
  55. package/chunks/{chunk-DM4C3OX5.js → chunk-LCWRQA5U.js} +1 -1
  56. package/chunks/{chunk-22C7BQ6D.js → chunk-LHOG4E6Y.js} +3 -3
  57. package/chunks/{chunk-MDQSCFAZ.js → chunk-LOJO2RPW.js} +6 -6
  58. package/chunks/{chunk-YIKMBYMT.js → chunk-M2S67TPJ.js} +1 -1
  59. package/chunks/{chunk-3LHYTQ2R.js → chunk-M3QYOPGN.js} +1 -1
  60. package/chunks/{chunk-AZQ3DT76.js → chunk-M4NWDIFU.js} +1 -1
  61. package/chunks/{chunk-OC5SKSNX.js → chunk-MJ5FMYVQ.js} +2 -2
  62. package/chunks/{chunk-AAOONL5N.js → chunk-MM4XBXF7.js} +1 -1
  63. package/chunks/{chunk-7QE3QFU3.js → chunk-MMH3GO4Z.js} +9 -9
  64. package/chunks/chunk-N2TNM3QB.js +9 -0
  65. package/chunks/{chunk-BJKREW56.js → chunk-O5AZPHYZ.js} +1 -1
  66. package/chunks/{chunk-QGZN4RYB.js → chunk-OH5UKBLL.js} +3 -3
  67. package/chunks/{chunk-BR6TUEKJ.js → chunk-OLU7GIF4.js} +9 -41
  68. package/chunks/{chunk-BNRNVMOT.js → chunk-OSPIZEAM.js} +20 -18
  69. package/chunks/{chunk-4C4QSXE3.js → chunk-OYLNJPY3.js} +55 -358
  70. package/chunks/{chunk-KCDQGIHS.js → chunk-P2UCMHDT.js} +1 -1
  71. package/chunks/chunk-PDKLO2DN.js +526 -0
  72. package/chunks/{chunk-PBYVS6QT.js → chunk-PRWGIKKU.js} +4 -4
  73. package/chunks/{chunk-NQPYPDOY.js → chunk-Q6FGSG6B.js} +1 -1
  74. package/chunks/{chunk-MCHGE3EC.js → chunk-QIN5P5BP.js} +51 -829
  75. package/chunks/{chunk-JLYYGKRN.js → chunk-QZ5G26ZE.js} +19 -19
  76. package/chunks/{chunk-W2PNY24B.js → chunk-RE6JD2BH.js} +1 -1
  77. package/chunks/{chunk-F4T5J34H.js → chunk-SZ36WFVK.js} +1 -1
  78. package/chunks/{chunk-NM3E6GGL.js → chunk-T2VEHZH3.js} +2 -2
  79. package/chunks/chunk-T5ZFG4CI.js +830 -0
  80. package/chunks/{chunk-XT6TGJFD.js → chunk-U6LT3QBF.js} +1 -1
  81. package/chunks/{chunk-DEKY5Y7V.js → chunk-VESDV72K.js} +1 -1
  82. package/chunks/{chunk-45HPDU3F.js → chunk-VO52SIZW.js} +2 -2
  83. package/chunks/{chunk-TTB6GBJ6.js → chunk-VUFEW3SF.js} +42 -42
  84. package/chunks/{chunk-2AAFGCWP.js → chunk-VUTOKX6F.js} +3 -3
  85. package/chunks/{chunk-P7KCJGBR.js → chunk-WFBG4MF5.js} +3 -3
  86. package/chunks/chunk-WLML6VIA.js +18 -0
  87. package/chunks/{chunk-MZQ4I4AP.js → chunk-WQOE4IYF.js} +1 -1
  88. package/chunks/{chunk-XUMBOJC2.js → chunk-XAAL4IFG.js} +3 -3
  89. package/chunks/{chunk-J4EVBAB3.js → chunk-XDN6SMAQ.js} +4 -4
  90. package/chunks/chunk-XYVBANG5.js +336 -0
  91. package/chunks/{chunk-JKEO6OQY.js → chunk-YQB3HSQ7.js} +5 -5
  92. package/chunks/{chunk-VRWOMUZM.js → chunk-YTYPRVIZ.js} +1 -1
  93. package/chunks/chunk-ZBBVBZBR.js +137 -0
  94. package/chunks/{chunk-AKLY5M2C.js → chunk-ZIS5I56G.js} +3 -3
  95. package/chunks/{chunk-SUTP6CZA.js → chunk-ZXUMPZRT.js} +3 -3
  96. package/chunks/chunk-bdqvmfwv-OHYAFAAO.js +17446 -0
  97. package/chunks/{computer-use-7TIKEXBX.js → computer-use-YOYLKIHT.js} +23 -23
  98. package/chunks/{config-utils-6MVJ54TY.js → config-utils-TXVKR27S.js} +2 -2
  99. package/chunks/{contextCommand-5QKI7MRY.js → contextCommand-KZMV5EOI.js} +22 -22
  100. package/chunks/{core-runtime-USS7ZF3H.js → core-runtime-VFUL2R7U.js} +20 -20
  101. package/chunks/{create-sub-session-ZD2F3BH2.js → create-sub-session-EZW2NP4Z.js} +20 -20
  102. package/chunks/{daemon-Y3NOHFKQ.js → daemon-PXIC4ZDK.js} +148 -0
  103. package/chunks/{daemon-status-provider-PMP4J7BC.js → daemon-status-provider-6L3ZKVVR.js} +25 -25
  104. package/chunks/{daemon-trust-policy-2252VKXI.js → daemon-trust-policy-SZ3V4JEY.js} +26 -26
  105. package/chunks/{daemon-trust-policy-monitor-OSGGKJXT.js → daemon-trust-policy-monitor-HN34EJQ5.js} +26 -26
  106. package/chunks/{deferred-core-runtime-3VD4V6YZ.js → deferred-core-runtime-Z462KPKI.js} +22 -22
  107. package/chunks/{devtools-4QFYJT6U.js → devtools-X6ROTKHE.js} +1 -1
  108. package/chunks/dispatch-B53LNEO4.js +37 -0
  109. package/chunks/{dist-MAIUUIWN.js → dist-BW2LDPV3.js} +1 -1
  110. package/chunks/{dist-Q2WJ2IZU.js → dist-KTYDJNYM.js} +1 -1
  111. package/chunks/{earlyInputCapture-ER4HGLJN.js → earlyInputCapture-GSE6MMC7.js} +20 -20
  112. package/chunks/{edit-B3MT7O53.js → edit-YJX2HMSA.js} +28 -28
  113. package/chunks/{enter-worktree-WVIYVSDJ.js → enter-worktree-H3GV4KQ7.js} +25 -25
  114. package/chunks/{enterPlanMode-DDCIM6HA.js → enterPlanMode-6LPSFIN2.js} +28 -28
  115. package/chunks/{environment-LITGMOUP.js → environment-IVCQ3H7T.js} +22 -22
  116. package/chunks/{errors-E5CIOR2I.js → errors-2K5VJQVK.js} +22 -22
  117. package/chunks/{exit-worktree-NQ2A6URE.js → exit-worktree-QZC6DXGO.js} +25 -25
  118. package/chunks/{exitPlanMode-YXSWN4D3.js → exitPlanMode-UHGM7I4A.js} +20 -20
  119. package/chunks/{fast-path-PH3DBS6X.js → fast-path-BDDOO4H6.js} +2 -2
  120. package/chunks/{gemini-4YPO4ADY.js → gemini-VDUDROF7.js} +71 -71
  121. package/chunks/{geminiContentGenerator-GMSVVXOU.js → geminiContentGenerator-O4HYJOR7.js} +8 -8
  122. package/chunks/{glob-3Y3VHLM2.js → glob-Z7VZDN7C.js} +27 -27
  123. package/chunks/{grep-VUHUDZYG.js → grep-JQ6AGN62.js} +27 -27
  124. package/chunks/{handleAutoUpdate-OBFFPWSJ.js → handleAutoUpdate-XZCLKEMR.js} +24 -24
  125. package/chunks/{i18n-4PJA5KKU.js → i18n-G2BMPGAS.js} +21 -21
  126. package/chunks/{image-gen-4IFV4HES.js → image-gen-NMKTIERQ.js} +7 -7
  127. package/chunks/{initializer-ZTY3VSWL.js → initializer-JEYFVIIG.js} +26 -26
  128. package/chunks/{installationInfo-6USRNCD2.js → installationInfo-GY2OCLIS.js} +21 -21
  129. package/chunks/{list-U2ZDKYWN.js → list-ZJ4GEKM4.js} +29 -29
  130. package/chunks/{loadedSettingsAdapter-WW4HIVLO.js → loadedSettingsAdapter-5BO2PZLD.js} +26 -26
  131. package/chunks/{loggingContentGenerator-XXG6YWUE.js → loggingContentGenerator-ER2Z5L3L.js} +25 -25
  132. package/chunks/{managed-npm-update-7GM2LPLL.js → managed-npm-update-X66EZDQD.js} +21 -21
  133. package/chunks/{mcp-7KZW2T5P.js → mcp-BDWPEXJF.js} +26 -26
  134. package/chunks/{monitor-RQROQHLD.js → monitor-7J3DCMBL.js} +25 -25
  135. package/chunks/{node-UUDY34IG.js → node-YSOU44FX.js} +3 -3
  136. package/chunks/{nonInteractiveCli-U7JNJGS6.js → nonInteractiveCli-THJJIXKG.js} +61 -58
  137. package/chunks/{notebook-edit-XQA6YCH2.js → notebook-edit-IX7GCTIL.js} +28 -28
  138. package/chunks/{openaiContentGenerator-BZW2IB42.js → openaiContentGenerator-K65IDMQ6.js} +20 -20
  139. package/chunks/opentui-entry-L76XJNPE.js +47945 -0
  140. package/chunks/{pidfile-NX5VZ3IK.js → pidfile-NNWTPHX2.js} +20 -20
  141. package/chunks/{processUtils-M635AD23.js → processUtils-ILOXESNR.js} +2 -2
  142. package/chunks/{qwenContentGenerator-KHJ73E2C.js → qwenContentGenerator-YIKX3NHW.js} +26 -26
  143. package/chunks/{qwenOAuth2-QMK25XO7.js → qwenOAuth2-BLYU65Y4.js} +4 -4
  144. package/chunks/{read-file-6LKIKKXD.js → read-file-GLBZFPNV.js} +5 -5
  145. package/chunks/{resumeHistoryUtils-RR2KEVH5.js → resumeHistoryUtils-UMC4Y3E2.js} +26 -25
  146. package/chunks/{ripGrep-CF2WRBYV.js → ripGrep-53XOGSZ4.js} +20 -20
  147. package/chunks/{run-qwen-serve-L5TF57J4.js → run-qwen-serve-BTZ46CLW.js} +47 -47
  148. package/chunks/{runtime-3RE3BPR4.js → runtime-RQ3ACQKH.js} +29 -29
  149. package/chunks/runtime-gate-T4ICWGQJ.js +89 -0
  150. package/chunks/{scheduler-LXQZAMYT.js → scheduler-WEIFVKQH.js} +22 -22
  151. package/chunks/{sdk-exporters-grpc-54L4LS5L.js → sdk-exporters-grpc-4QKV6MCX.js} +2 -2
  152. package/chunks/{sdk-exporters-http-7SYSCGEO.js → sdk-exporters-http-2VPMAPFI.js} +11 -11
  153. package/chunks/{sdk-impl-VZI6M6EH.js → sdk-impl-5W3JUCWF.js} +7 -7
  154. package/chunks/{serve-5D4S7GIA.js → serve-RJUR5OJH.js} +26 -26
  155. package/chunks/{server-ILZB6TTC.js → server-WQ2ID4U7.js} +618 -198
  156. package/chunks/{session-SXCZITZ4.js → session-O4OXRVNI.js} +64 -61
  157. package/chunks/{settings-4RQB3OVF.js → settings-4BVJ36YG.js} +25 -25
  158. package/chunks/{shell-FCTR3OI2.js → shell-DCQZWM5T.js} +20 -20
  159. package/chunks/{skill-IAKHPD5H.js → skill-4KWZ4J7U.js} +14 -14
  160. package/chunks/{skill-settings-SOR23NOP.js → skill-settings-TEMNXCLU.js} +25 -25
  161. package/chunks/{spawnChannel-I6VAWYQJ.js → spawnChannel-ROYEZK57.js} +20 -20
  162. package/chunks/{standalone-update-5NN3MTYH.js → standalone-update-G4BETY4B.js} +22 -22
  163. package/chunks/{startInteractiveUI-OYGL3NZJ.js → startInteractiveUI-PDFQ7N7A.js} +2150 -2572
  164. package/chunks/task-create-URFZ5EUX.js +2 -2
  165. package/chunks/{team-create-J4JP6AXN.js → team-create-KW4LOVHD.js} +25 -25
  166. package/chunks/{team-plan-approval-7BEAIR2H.js → team-plan-approval-XHFK2RTF.js} +27 -27
  167. package/chunks/{terminal-image-renderer-SGGTG5LN.js → terminal-image-renderer-46R2LHGR.js} +20 -20
  168. package/chunks/{theme-manager-67TSB7LH.js → theme-manager-E56XY2JG.js} +20 -20
  169. package/chunks/{tool-search-XPOFDWOX.js → tool-search-EVVFQUMJ.js} +9 -9
  170. package/chunks/{total-session-admission-SZJFAM25.js → total-session-admission-CULMHRTA.js} +21 -21
  171. package/chunks/{trustedFolders-44NTYYV4.js → trustedFolders-BKLVSCXW.js} +21 -21
  172. package/chunks/{update-relaunch-K33Q3WEH.js → update-relaunch-46H4Q4VL.js} +5 -5
  173. package/chunks/{updateCheck-VBRNPLS4.js → updateCheck-3BQA7KNI.js} +24 -24
  174. package/chunks/{useAutoAcceptIndicator-AUNRB5S7.js → useAutoAcceptIndicator-3QJ7QV5R.js} +31 -31
  175. package/chunks/{validateNonInterActiveAuth-WTO36MTA.js → validateNonInterActiveAuth-QVFJVBSY.js} +57 -55
  176. package/chunks/{version-JZA6HYPI.js → version-6JJA54HH.js} +1 -1
  177. package/chunks/{web-fetch-LLHPV2IR.js → web-fetch-75JBSDA3.js} +14 -14
  178. package/chunks/{web-search-4HCHRZ3U.js → web-search-PKBISWS3.js} +11 -11
  179. package/chunks/{workflow-YI74QTWW.js → workflow-KEZDQISR.js} +36 -36
  180. package/chunks/{workspace-providers-status-CI3AO2BH.js → workspace-providers-status-YQW4VNIV.js} +28 -28
  181. package/chunks/{workspace-registration-store-KPIKXDHA.js → workspace-registration-store-GQ42PR72.js} +1 -1
  182. package/chunks/{workspace-registry-XE22QDE6.js → workspace-registry-ZR6DVZQ6.js} +21 -21
  183. package/chunks/{workspace-service-WI2FD72A.js → workspace-service-BCMK3NLA.js} +30 -30
  184. package/chunks/{workspace-skills-status-FFZU6FXL.js → workspace-skills-status-ZHBYM2X7.js} +26 -26
  185. package/chunks/{workspace-trust-reconciler-GJLNXR2U.js → workspace-trust-reconciler-TWRB3TW2.js} +29 -29
  186. package/chunks/wrapper-46Z24CTM.js +35 -0
  187. package/chunks/{write-file-IEAC3XC3.js → write-file-CQBI7HXO.js} +20 -20
  188. package/chunks/{zoom-image-GTVVT25J.js → zoom-image-36I4WZIL.js} +5 -5
  189. package/cli.js +12 -12
  190. package/package.json +3 -3
  191. package/web-shell/assets/{arc-B13-S0Yo.js → arc-CgGUyHWd.js} +1 -1
  192. package/web-shell/assets/{architectureDiagram-3BPJPVTR-CHvWNlVW.js → architectureDiagram-3BPJPVTR-BR0Qv-1Y.js} +1 -1
  193. package/web-shell/assets/{blockDiagram-GPEHLZMM-CXebOlXF.js → blockDiagram-GPEHLZMM-DIoaceaI.js} +1 -1
  194. package/web-shell/assets/{c4Diagram-AAUBKEIU-BQpx4y3Q.js → c4Diagram-AAUBKEIU-Bc5k6BbI.js} +1 -1
  195. package/web-shell/assets/channel-D2b9IYpS.js +1 -0
  196. package/web-shell/assets/{chunk-2J33WTMH-Cak1exSv.js → chunk-2J33WTMH-DtPEz2WX.js} +1 -1
  197. package/web-shell/assets/{chunk-4BX2VUAB-BIc8BV5_.js → chunk-4BX2VUAB-Dydo6ydE.js} +1 -1
  198. package/web-shell/assets/{chunk-55IACEB6-DoeJ5BL1.js → chunk-55IACEB6-DD9_VWXm.js} +1 -1
  199. package/web-shell/assets/{chunk-727SXJPM-BDR_wYSu.js → chunk-727SXJPM-DVI2m59k.js} +1 -1
  200. package/web-shell/assets/{chunk-AQP2D5EJ-BhRRGRq1.js → chunk-AQP2D5EJ-luatmaTN.js} +1 -1
  201. package/web-shell/assets/{chunk-FMBD7UC4-BJGAwVXr.js → chunk-FMBD7UC4-Duy8NTIi.js} +1 -1
  202. package/web-shell/assets/{chunk-ND2GUHAM-vhE73bsD.js → chunk-ND2GUHAM-CrL1yhms.js} +1 -1
  203. package/web-shell/assets/{chunk-QZHKN3VN-BuTBZsdR.js → chunk-QZHKN3VN-C7BX6bu1.js} +1 -1
  204. package/web-shell/assets/classDiagram-4FO5ZUOK-DHatTCmD.js +1 -0
  205. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DHatTCmD.js +1 -0
  206. package/web-shell/assets/{cose-bilkent-S5V4N54A-CVHKipHP.js → cose-bilkent-S5V4N54A-BTzs7mIi.js} +1 -1
  207. package/web-shell/assets/{dagre-BM42HDAG-C1DPa8SV.js → dagre-BM42HDAG-3VTUmWts.js} +1 -1
  208. package/web-shell/assets/{diagram-2AECGRRQ-BYP_QxkT.js → diagram-2AECGRRQ-Ehdp75GN.js} +1 -1
  209. package/web-shell/assets/{diagram-5GNKFQAL-Cray7ruQ.js → diagram-5GNKFQAL-B3wu3teE.js} +1 -1
  210. package/web-shell/assets/{diagram-KO2AKTUF-Ds4vJANi.js → diagram-KO2AKTUF-DjgTSf2S.js} +1 -1
  211. package/web-shell/assets/{diagram-LMA3HP47-DxFrDykH.js → diagram-LMA3HP47-Br9mwjY3.js} +1 -1
  212. package/web-shell/assets/{diagram-OG6HWLK6-BdIO-pF_.js → diagram-OG6HWLK6-D4xz5M-z.js} +1 -1
  213. package/web-shell/assets/{erDiagram-TEJ5UH35-5JA8KDYV.js → erDiagram-TEJ5UH35-CXayWlG_.js} +1 -1
  214. package/web-shell/assets/{flowDiagram-I6XJVG4X-DL4drKro.js → flowDiagram-I6XJVG4X-CLonjQTi.js} +1 -1
  215. package/web-shell/assets/{ganttDiagram-6RSMTGT7-ijX2DD6_.js → ganttDiagram-6RSMTGT7-BTySFT-1.js} +1 -1
  216. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-_lPsFLFF.js → gitGraphDiagram-PVQCEYII--2WcUjOe.js} +1 -1
  217. package/web-shell/assets/{index-dHAFxPHb.css → index-CIFO52Wx.css} +1 -1
  218. package/web-shell/assets/{index-C-YoqYbs.js → index-DPJHkFOG.js} +1 -1
  219. package/web-shell/assets/index-bhq3CUUF.js +1789 -0
  220. package/web-shell/assets/{infoDiagram-5YYISTIA-COFClLab.js → infoDiagram-5YYISTIA-9vpgAf1m.js} +1 -1
  221. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Div9KOgO.js → ishikawaDiagram-YF4QCWOH-DcRpHnAW.js} +1 -1
  222. package/web-shell/assets/{journeyDiagram-JHISSGLW-VAw5u0wc.js → journeyDiagram-JHISSGLW-C2TKorRm.js} +1 -1
  223. package/web-shell/assets/{kanban-definition-UN3LZRKU-CncCn8Nl.js → kanban-definition-UN3LZRKU-DdsFwB8b.js} +1 -1
  224. package/web-shell/assets/{linear-D6ad7e_k.js → linear-7PjRvJrf.js} +1 -1
  225. package/web-shell/assets/{mermaid.core-BV1IECGb.js → mermaid.core-raDXa11C.js} +5 -5
  226. package/web-shell/assets/{mindmap-definition-RKZ34NQL-a3jeNgPr.js → mindmap-definition-RKZ34NQL-DLHc-PRN.js} +1 -1
  227. package/web-shell/assets/{pieDiagram-4H26LBE5-DsVRY5BW.js → pieDiagram-4H26LBE5-BftYpeTW.js} +1 -1
  228. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D6zgexJK.js → quadrantDiagram-W4KKPZXB-O-6ygOYn.js} +1 -1
  229. package/web-shell/assets/{requirementDiagram-4Y6WPE33-VEpSwJjn.js → requirementDiagram-4Y6WPE33-BmZWVufJ.js} +1 -1
  230. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CYEuOFne.js → sankeyDiagram-5OEKKPKP-2x5beiWt.js} +1 -1
  231. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CCg0lI-9.js → sequenceDiagram-3UESZ5HK-BH8uKokQ.js} +1 -1
  232. package/web-shell/assets/{stateDiagram-AJRCARHV-BHXPsL0B.js → stateDiagram-AJRCARHV-Dq1MFgX_.js} +1 -1
  233. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-spuAYji6.js +1 -0
  234. package/web-shell/assets/{timeline-definition-PNZ67QCA-gqTf9a0k.js → timeline-definition-PNZ67QCA-Cl2WKbv9.js} +1 -1
  235. package/web-shell/assets/{vennDiagram-CIIHVFJN-C4DXXkBh.js → vennDiagram-CIIHVFJN-BqoRo_Q-.js} +1 -1
  236. package/web-shell/assets/{wardley-L42UT6IY-CMK46EiX.js → wardley-L42UT6IY-BTxp-Yot.js} +1 -1
  237. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DTk1Gzt9.js → wardleyDiagram-YWT4CUSO-DFXVCSH2.js} +1 -1
  238. package/web-shell/assets/{xychartDiagram-2RQKCTM6-BcJsM1dH.js → xychartDiagram-2RQKCTM6-qQhWx0aE.js} +1 -1
  239. package/web-shell/index.html +2 -2
  240. package/web-shell/assets/channel-BB_Hm8Rf.js +0 -1
  241. package/web-shell/assets/classDiagram-4FO5ZUOK-B_hFK54Y.js +0 -1
  242. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B_hFK54Y.js +0 -1
  243. package/web-shell/assets/index-BTwNYZkp.js +0 -1785
  244. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-eTG8D0QT.js +0 -1
  245. package/chunks/{artifact-tool-M7UAJ5NT.js → artifact-tool-FRMBPDPB.js} +3 -3
  246. package/chunks/{chunk-NWNEANAT.js → chunk-44CTCCLY.js} +0 -0
  247. package/chunks/{chunk-25OFRBH2.js → chunk-5PWLQ7SK.js} +4 -4
  248. package/chunks/{chunk-KCCODSAA.js → chunk-TBVNYG5B.js} +3 -3
  249. package/chunks/{chunk-4MHDNGAV.js → chunk-ZGWY4YUB.js} +3 -3
  250. package/chunks/{ls-O4VBQRG7.js → ls-FSHISLLA.js} +3 -3
  251. package/chunks/{task-update-LCJM3EYG.js → task-update-DVV6CUGI.js} +2 -2
@@ -0,0 +1,336 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ ICON
5
+ } from "./chunk-7P32M35F.js";
6
+ import {
7
+ theme
8
+ } from "./chunk-MLZCPGDX.js";
9
+ import {
10
+ init_esbuild_shims
11
+ } from "./chunk-5O2XNYP6.js";
12
+ import {
13
+ __name
14
+ } from "./chunk-J2S4EL5Y.js";
15
+
16
+ // packages/cli/src/ui/utils/displayUtils.ts
17
+ init_esbuild_shims();
18
+ function getArenaStatusLabel(status) {
19
+ switch (status) {
20
+ case "idle" /* IDLE */:
21
+ return { icon: "\u2713", text: "Idle", color: theme.status.success };
22
+ case "completed" /* COMPLETED */:
23
+ return { icon: "\u2713", text: "Done", color: theme.status.success };
24
+ case "cancelled" /* CANCELLED */:
25
+ return { icon: "\u2298", text: "Cancelled", color: theme.status.warning };
26
+ case "failed" /* FAILED */:
27
+ return { icon: "\u2717", text: "Failed", color: theme.status.error };
28
+ case "running" /* RUNNING */:
29
+ return {
30
+ icon: ICON.CIRCLE_EMPTY,
31
+ text: "Running",
32
+ color: theme.text.secondary
33
+ };
34
+ case "initializing" /* INITIALIZING */:
35
+ return {
36
+ icon: ICON.CIRCLE_EMPTY,
37
+ text: "Initializing",
38
+ color: theme.text.secondary
39
+ };
40
+ default:
41
+ return {
42
+ icon: ICON.CIRCLE_EMPTY,
43
+ text: status,
44
+ color: theme.text.secondary
45
+ };
46
+ }
47
+ }
48
+ __name(getArenaStatusLabel, "getArenaStatusLabel");
49
+ var TOOL_SUCCESS_RATE_HIGH = 95;
50
+ var TOOL_SUCCESS_RATE_MEDIUM = 85;
51
+ var USER_AGREEMENT_RATE_HIGH = 75;
52
+ var USER_AGREEMENT_RATE_MEDIUM = 45;
53
+ var getStatusColor = /* @__PURE__ */ __name((value, thresholds, options = {}) => {
54
+ if (value >= thresholds.green) {
55
+ return theme.status.success;
56
+ }
57
+ if (value >= thresholds.yellow) {
58
+ return theme.status.warning;
59
+ }
60
+ if (thresholds.red != null && value >= thresholds.red) {
61
+ return theme.status.error;
62
+ }
63
+ return options.defaultColor ?? theme.status.error;
64
+ }, "getStatusColor");
65
+ function formatDuration(ms) {
66
+ const totalSeconds = Math.round(ms / 1e3);
67
+ if (totalSeconds < 60) {
68
+ return `${totalSeconds}s`;
69
+ }
70
+ const minutes = Math.floor(totalSeconds / 60);
71
+ const seconds = totalSeconds % 60;
72
+ return seconds > 0 ? `${minutes}m ${seconds}s` : `${minutes}m`;
73
+ }
74
+ __name(formatDuration, "formatDuration");
75
+
76
+ // packages/cli/src/ui/keyMatchers.ts
77
+ init_esbuild_shims();
78
+
79
+ // packages/cli/src/config/keyBindings.ts
80
+ init_esbuild_shims();
81
+ var Command = /* @__PURE__ */ ((Command2) => {
82
+ Command2["RETURN"] = "return";
83
+ Command2["ESCAPE"] = "escape";
84
+ Command2["HOME"] = "home";
85
+ Command2["END"] = "end";
86
+ Command2["KILL_LINE_RIGHT"] = "killLineRight";
87
+ Command2["KILL_LINE_LEFT"] = "killLineLeft";
88
+ Command2["CLEAR_INPUT"] = "clearInput";
89
+ Command2["DELETE_WORD_BACKWARD"] = "deleteWordBackward";
90
+ Command2["CLEAR_SCREEN"] = "clearScreen";
91
+ Command2["HISTORY_UP"] = "historyUp";
92
+ Command2["HISTORY_DOWN"] = "historyDown";
93
+ Command2["NAVIGATION_UP"] = "navigationUp";
94
+ Command2["NAVIGATION_DOWN"] = "navigationDown";
95
+ Command2["SELECTION_UP"] = "selectionUp";
96
+ Command2["SELECTION_DOWN"] = "selectionDown";
97
+ Command2["ACCEPT_SUGGESTION"] = "acceptSuggestion";
98
+ Command2["COMPLETION_UP"] = "completionUp";
99
+ Command2["COMPLETION_DOWN"] = "completionDown";
100
+ Command2["COMPLETION_TAB_LEFT"] = "completionTabLeft";
101
+ Command2["COMPLETION_TAB_RIGHT"] = "completionTabRight";
102
+ Command2["SUBMIT"] = "submit";
103
+ Command2["QUEUE_MESSAGE"] = "queueMessage";
104
+ Command2["NEWLINE"] = "newline";
105
+ Command2["VOICE_PUSH_TO_TALK"] = "voicePushToTalk";
106
+ Command2["OPEN_EXTERNAL_EDITOR"] = "openExternalEditor";
107
+ Command2["PASTE_CLIPBOARD_IMAGE"] = "pasteClipboardImage";
108
+ Command2["TOGGLE_TOOL_DESCRIPTIONS"] = "toggleToolDescriptions";
109
+ Command2["TOGGLE_IDE_CONTEXT_DETAIL"] = "toggleIDEContextDetail";
110
+ Command2["QUIT"] = "quit";
111
+ Command2["EXIT"] = "exit";
112
+ Command2["SHOW_MORE_LINES"] = "showMoreLines";
113
+ Command2["RETRY_LAST"] = "retryLast";
114
+ Command2["TOGGLE_RENDER_MODE"] = "toggleRenderMode";
115
+ Command2["PROMOTE_SHELL_TO_BACKGROUND"] = "promoteShellToBackground";
116
+ Command2["REVERSE_SEARCH"] = "reverseSearch";
117
+ Command2["SUBMIT_REVERSE_SEARCH"] = "submitReverseSearch";
118
+ Command2["ACCEPT_SUGGESTION_REVERSE_SEARCH"] = "acceptSuggestionReverseSearch";
119
+ Command2["TOGGLE_SHELL_INPUT_FOCUS"] = "toggleShellInputFocus";
120
+ Command2["EXPAND_SUGGESTION"] = "expandSuggestion";
121
+ Command2["COLLAPSE_SUGGESTION"] = "collapseSuggestion";
122
+ Command2["TOGGLE_THINKING_EXPANDED"] = "toggleThinkingExpanded";
123
+ Command2["SCROLL_UP"] = "scrollUp";
124
+ Command2["SCROLL_DOWN"] = "scrollDown";
125
+ Command2["PAGE_UP"] = "pageUp";
126
+ Command2["PAGE_DOWN"] = "pageDown";
127
+ Command2["SCROLL_HOME"] = "scrollHome";
128
+ Command2["SCROLL_END"] = "scrollEnd";
129
+ return Command2;
130
+ })(Command || {});
131
+ var defaultKeyBindings = {
132
+ // Basic bindings
133
+ ["return" /* RETURN */]: [{ key: "return" }],
134
+ ["escape" /* ESCAPE */]: [{ key: "escape" }],
135
+ // Cursor movement
136
+ ["home" /* HOME */]: [{ key: "a", ctrl: true }],
137
+ ["end" /* END */]: [{ key: "e", ctrl: true }],
138
+ // Text deletion
139
+ ["killLineRight" /* KILL_LINE_RIGHT */]: [{ key: "k", ctrl: true }],
140
+ ["killLineLeft" /* KILL_LINE_LEFT */]: [{ key: "u", ctrl: true }],
141
+ ["clearInput" /* CLEAR_INPUT */]: [{ key: "c", ctrl: true, shift: false }],
142
+ // Added command (meta/alt/option) for mac compatibility
143
+ ["deleteWordBackward" /* DELETE_WORD_BACKWARD */]: [
144
+ { key: "backspace", ctrl: true },
145
+ { key: "backspace", command: true },
146
+ // MinTTY (Git Bash on Windows) emits the byte \x1f (ASCII Unit
147
+ // Separator, rendered as "^_" by `cat -v`) for Ctrl+Backspace under
148
+ // its standard Ctrl-modifies-meta-keys convention. The same byte is
149
+ // the historical Ctrl-mapping of the Unit Separator on traditional
150
+ // ANSI/VT terminals (Ctrl+_ and Ctrl+/ also emit it), but qwen-code
151
+ // doesn't bind those keystrokes elsewhere so this entry is additive
152
+ // and non-conflicting on every platform.
153
+ { sequence: "" }
154
+ ],
155
+ // Screen control
156
+ ["clearScreen" /* CLEAR_SCREEN */]: [{ key: "l", ctrl: true }],
157
+ // History navigation
158
+ ["historyUp" /* HISTORY_UP */]: [{ key: "p", ctrl: true }],
159
+ ["historyDown" /* HISTORY_DOWN */]: [{ key: "n", ctrl: true }],
160
+ ["navigationUp" /* NAVIGATION_UP */]: [{ key: "up", shift: false }],
161
+ ["navigationDown" /* NAVIGATION_DOWN */]: [{ key: "down", shift: false }],
162
+ // Selection-list nav: arrows + k/j + Ctrl+P/Ctrl+N
163
+ // ctrl: false on bare k/j skips Ctrl+K and Ctrl+J
164
+ ["selectionUp" /* SELECTION_UP */]: [
165
+ { key: "up", shift: false },
166
+ { key: "k", ctrl: false },
167
+ { key: "p", ctrl: true }
168
+ ],
169
+ ["selectionDown" /* SELECTION_DOWN */]: [
170
+ { key: "down", shift: false },
171
+ { key: "j", ctrl: false },
172
+ { key: "n", ctrl: true }
173
+ ],
174
+ // Auto-completion
175
+ ["acceptSuggestion" /* ACCEPT_SUGGESTION */]: [
176
+ { key: "tab" },
177
+ { key: "return", ctrl: false, shift: false }
178
+ ],
179
+ // Completion navigation: arrows + readline/Vim-style Ctrl+P/Ctrl+N
180
+ ["completionUp" /* COMPLETION_UP */]: [
181
+ { key: "up", shift: false },
182
+ { key: "p", ctrl: true }
183
+ ],
184
+ ["completionDown" /* COMPLETION_DOWN */]: [
185
+ { key: "down", shift: false },
186
+ { key: "n", ctrl: true }
187
+ ],
188
+ // Completion category tab switching (for the tabbed @ completion UI).
189
+ // Bound to the BARE arrow keys: Ctrl+←/→ was the original binding but many
190
+ // terminals intercept it for word-jump, and on macOS the system claims it
191
+ // for Mission Control, so the documented gesture was unreachable for most
192
+ // users (#8069).
193
+ //
194
+ // Tradeoff, accepted deliberately: while the `@` category tabs are visible,
195
+ // the bare arrows no longer move the caret in the input buffer — press Esc
196
+ // to dismiss the menu first. InputPrompt only renders and handles the tabs
197
+ // when they own the arrows, so search and attachment navigation keep their
198
+ // normal behavior.
199
+ //
200
+ // Modifiers are pinned false so Alt/Option+arrow word movement and any
201
+ // Ctrl+arrow terminal binding fall through untouched.
202
+ ["completionTabLeft" /* COMPLETION_TAB_LEFT */]: [
203
+ { key: "left", shift: false, ctrl: false, meta: false }
204
+ ],
205
+ ["completionTabRight" /* COMPLETION_TAB_RIGHT */]: [
206
+ { key: "right", shift: false, ctrl: false, meta: false }
207
+ ],
208
+ // Text input
209
+ // Must also exclude shift to allow shift+enter for newline
210
+ ["submit" /* SUBMIT */]: [
211
+ {
212
+ key: "return",
213
+ ctrl: false,
214
+ command: false,
215
+ paste: false,
216
+ shift: false
217
+ }
218
+ ],
219
+ ["queueMessage" /* QUEUE_MESSAGE */]: [
220
+ { key: "q", ctrl: true, command: false, shift: false, paste: false }
221
+ ],
222
+ // Split into multiple data-driven bindings
223
+ // Now also includes shift+enter for multi-line input
224
+ ["newline" /* NEWLINE */]: [
225
+ { key: "return", ctrl: true },
226
+ { key: "return", command: true },
227
+ { key: "return", paste: true },
228
+ { key: "return", shift: true },
229
+ { key: "j", ctrl: true }
230
+ ],
231
+ ["voicePushToTalk" /* VOICE_PUSH_TO_TALK */]: [{ key: "space", ctrl: false, meta: false }],
232
+ // External tools
233
+ ["openExternalEditor" /* OPEN_EXTERNAL_EDITOR */]: [
234
+ { key: "x", ctrl: true },
235
+ { sequence: "", ctrl: true }
236
+ ],
237
+ ["pasteClipboardImage" /* PASTE_CLIPBOARD_IMAGE */]: process.platform === "win32" ? [
238
+ { key: "v", command: true },
239
+ { key: "v", meta: true }
240
+ ] : [
241
+ { key: "v", ctrl: true },
242
+ { key: "v", command: true }
243
+ ],
244
+ // App level bindings
245
+ ["toggleToolDescriptions" /* TOGGLE_TOOL_DESCRIPTIONS */]: [{ key: "t", ctrl: true }],
246
+ ["toggleIDEContextDetail" /* TOGGLE_IDE_CONTEXT_DETAIL */]: [{ key: "g", ctrl: true }],
247
+ ["quit" /* QUIT */]: [{ key: "c", ctrl: true, shift: false }],
248
+ ["exit" /* EXIT */]: [{ key: "d", ctrl: true }],
249
+ ["showMoreLines" /* SHOW_MORE_LINES */]: [{ key: "s", ctrl: true }],
250
+ ["retryLast" /* RETRY_LAST */]: [{ key: "y", ctrl: true }],
251
+ ["toggleRenderMode" /* TOGGLE_RENDER_MODE */]: [{ key: "m", meta: true }],
252
+ ["promoteShellToBackground" /* PROMOTE_SHELL_TO_BACKGROUND */]: [{ key: "b", ctrl: true }],
253
+ // Shell commands
254
+ ["reverseSearch" /* REVERSE_SEARCH */]: [{ key: "r", ctrl: true }],
255
+ // Note: original logic ONLY checked ctrl=false, ignored meta/shift/paste
256
+ ["submitReverseSearch" /* SUBMIT_REVERSE_SEARCH */]: [{ key: "return", ctrl: false }],
257
+ ["acceptSuggestionReverseSearch" /* ACCEPT_SUGGESTION_REVERSE_SEARCH */]: [{ key: "tab" }],
258
+ ["toggleShellInputFocus" /* TOGGLE_SHELL_INPUT_FOCUS */]: [{ key: "f", ctrl: true }],
259
+ // Suggestion expansion
260
+ ["expandSuggestion" /* EXPAND_SUGGESTION */]: [{ key: "right" }],
261
+ ["collapseSuggestion" /* COLLAPSE_SUGGESTION */]: [{ key: "left" }],
262
+ // Thinking expansion (Ctrl+O primary, Alt+T legacy)
263
+ ["toggleThinkingExpanded" /* TOGGLE_THINKING_EXPANDED */]: [
264
+ { key: "o", ctrl: true },
265
+ { key: "t", meta: true }
266
+ ],
267
+ // Scroll commands
268
+ ["scrollUp" /* SCROLL_UP */]: [{ key: "up", shift: true }],
269
+ ["scrollDown" /* SCROLL_DOWN */]: [{ key: "down", shift: true }],
270
+ ["pageUp" /* PAGE_UP */]: [{ key: "pageup" }],
271
+ ["pageDown" /* PAGE_DOWN */]: [{ key: "pagedown" }],
272
+ ["scrollHome" /* SCROLL_HOME */]: [{ key: "home", ctrl: true }],
273
+ ["scrollEnd" /* SCROLL_END */]: [{ key: "end", ctrl: true }]
274
+ };
275
+
276
+ // packages/cli/src/ui/keyMatchers.ts
277
+ function matchKeyBinding(keyBinding, key) {
278
+ let keyMatches = false;
279
+ if (keyBinding.key !== void 0) {
280
+ keyMatches = keyBinding.key === key.name;
281
+ } else if (keyBinding.sequence !== void 0) {
282
+ keyMatches = keyBinding.sequence === key.sequence;
283
+ } else {
284
+ return false;
285
+ }
286
+ if (!keyMatches) {
287
+ return false;
288
+ }
289
+ if (keyBinding.ctrl !== void 0 && !!key.ctrl !== keyBinding.ctrl) {
290
+ return false;
291
+ }
292
+ if (keyBinding.shift !== void 0 && !!key.shift !== keyBinding.shift) {
293
+ return false;
294
+ }
295
+ if (keyBinding.command !== void 0 && !!key.meta !== keyBinding.command) {
296
+ return false;
297
+ }
298
+ if (keyBinding.paste !== void 0 && !!key.paste !== keyBinding.paste) {
299
+ return false;
300
+ }
301
+ if (keyBinding.meta !== void 0 && !!key.meta !== keyBinding.meta) {
302
+ return false;
303
+ }
304
+ return true;
305
+ }
306
+ __name(matchKeyBinding, "matchKeyBinding");
307
+ function matchCommand(command, key, config = defaultKeyBindings) {
308
+ const bindings = config[command];
309
+ return bindings.some((binding) => matchKeyBinding(binding, key));
310
+ }
311
+ __name(matchCommand, "matchCommand");
312
+ function createKeyMatchers(config = defaultKeyBindings) {
313
+ const matchers = {};
314
+ for (const command of Object.values(Command)) {
315
+ matchers[command] = (key) => matchCommand(command, key, config);
316
+ }
317
+ return matchers;
318
+ }
319
+ __name(createKeyMatchers, "createKeyMatchers");
320
+ var keyMatchers = createKeyMatchers(defaultKeyBindings);
321
+
322
+ export {
323
+ getArenaStatusLabel,
324
+ TOOL_SUCCESS_RATE_HIGH,
325
+ TOOL_SUCCESS_RATE_MEDIUM,
326
+ USER_AGREEMENT_RATE_HIGH,
327
+ USER_AGREEMENT_RATE_MEDIUM,
328
+ getStatusColor,
329
+ formatDuration,
330
+ keyMatchers
331
+ };
332
+ /**
333
+ * @license
334
+ * Copyright 2025 Google LLC
335
+ * SPDX-License-Identifier: Apache-2.0
336
+ */
@@ -2,17 +2,17 @@
2
2
  "use strict";
3
3
  import {
4
4
  performStandaloneUpdate
5
- } from "./chunk-45HPDU3F.js";
5
+ } from "./chunk-VO52SIZW.js";
6
6
  import {
7
7
  updateEventEmitter
8
8
  } from "./chunk-YAF2MQZ6.js";
9
- import {
10
- t
11
- } from "./chunk-KFCTC5IJ.js";
12
9
  import {
13
10
  getInstallationInfo,
14
11
  resolveUpdateCommand
15
- } from "./chunk-LA3FF7RO.js";
12
+ } from "./chunk-L2O7DJIE.js";
13
+ import {
14
+ t
15
+ } from "./chunk-6LK2QPIA.js";
16
16
  import {
17
17
  createDebugLogger
18
18
  } from "./chunk-MPBRV3UU.js";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  getPlugin,
8
8
  supportedTypes
9
- } from "./chunk-JPA7IDTE.js";
9
+ } from "./chunk-DEG7R6Z6.js";
10
10
  import {
11
11
  init_esbuild_shims
12
12
  } from "./chunk-5O2XNYP6.js";
@@ -0,0 +1,137 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ init_esbuild_shims
5
+ } from "./chunk-5O2XNYP6.js";
6
+ import {
7
+ __name
8
+ } from "./chunk-J2S4EL5Y.js";
9
+
10
+ // packages/cli/src/utils/json-string-byte-projection.ts
11
+ init_esbuild_shims();
12
+ import { Buffer } from "node:buffer";
13
+ var JSON_STRING_DELIMITER_BYTES = 2;
14
+ function jsonPayloadBytesAt(value, index) {
15
+ const code = value.charCodeAt(index);
16
+ if (code === 34 || code === 92) return 2;
17
+ if (code <= 31) {
18
+ return code === 8 || code === 9 || code === 10 || code === 12 || code === 13 ? 2 : 6;
19
+ }
20
+ if (code <= 127) return 1;
21
+ if (code <= 2047) return 2;
22
+ if (code >= 55296 && code <= 56319) {
23
+ const next = value.charCodeAt(index + 1);
24
+ return next >= 56320 && next <= 57343 ? 4 : 6;
25
+ }
26
+ if (code >= 56320 && code <= 57343) return 6;
27
+ return 3;
28
+ }
29
+ __name(jsonPayloadBytesAt, "jsonPayloadBytesAt");
30
+ function jsonPayloadWidthAt(value, index) {
31
+ const code = value.charCodeAt(index);
32
+ if (code < 55296 || code > 56319) return 1;
33
+ const next = value.charCodeAt(index + 1);
34
+ return next >= 56320 && next <= 57343 ? 2 : 1;
35
+ }
36
+ __name(jsonPayloadWidthAt, "jsonPayloadWidthAt");
37
+ function jsonStringPayloadByteLength(value, stopAfterBytes = Number.POSITIVE_INFINITY) {
38
+ let bytes = 0;
39
+ for (let index = 0; index < value.length; ) {
40
+ bytes += jsonPayloadBytesAt(value, index);
41
+ if (bytes > stopAfterBytes) return bytes;
42
+ index += jsonPayloadWidthAt(value, index);
43
+ }
44
+ return bytes;
45
+ }
46
+ __name(jsonStringPayloadByteLength, "jsonStringPayloadByteLength");
47
+ function jsonStringJsonByteLength(value) {
48
+ return JSON_STRING_DELIMITER_BYTES + jsonStringPayloadByteLength(value);
49
+ }
50
+ __name(jsonStringJsonByteLength, "jsonStringJsonByteLength");
51
+ function jsonPayloadWidthBefore(value, end) {
52
+ const last = value.charCodeAt(end - 1);
53
+ if (last >= 56320 && last <= 57343 && end >= 2) {
54
+ const previous = value.charCodeAt(end - 2);
55
+ if (previous >= 55296 && previous <= 56319) return 2;
56
+ }
57
+ return 1;
58
+ }
59
+ __name(jsonPayloadWidthBefore, "jsonPayloadWidthBefore");
60
+ function selectPrefix(value, budget) {
61
+ let end = 0;
62
+ let bytes = 0;
63
+ while (end < value.length) {
64
+ const partBytes = jsonPayloadBytesAt(value, end);
65
+ if (bytes + partBytes > budget) break;
66
+ bytes += partBytes;
67
+ end += jsonPayloadWidthAt(value, end);
68
+ }
69
+ return end;
70
+ }
71
+ __name(selectPrefix, "selectPrefix");
72
+ function selectSuffix(value, budget) {
73
+ let start = value.length;
74
+ let bytes = 0;
75
+ while (start > 0) {
76
+ const partWidth = jsonPayloadWidthBefore(value, start);
77
+ const partBytes = jsonPayloadBytesAt(value, start - partWidth);
78
+ if (bytes + partBytes > budget) break;
79
+ bytes += partBytes;
80
+ start -= partWidth;
81
+ }
82
+ return start;
83
+ }
84
+ __name(selectSuffix, "selectSuffix");
85
+ function copyString(value) {
86
+ return value.split("").join("");
87
+ }
88
+ __name(copyString, "copyString");
89
+ function truncateJsonStringPayload(value, originalPayloadBytes, payloadBudget, marker) {
90
+ if (originalPayloadBytes <= payloadBudget) return value;
91
+ const markerPayloadBytes = jsonStringPayloadByteLength(marker);
92
+ if (payloadBudget < markerPayloadBytes) {
93
+ return copyString(value.slice(0, selectPrefix(value, payloadBudget)));
94
+ }
95
+ const sourceBudget = payloadBudget - markerPayloadBytes;
96
+ const headBudget = Math.floor(sourceBudget * 0.2);
97
+ const tailBudget = sourceBudget - headBudget;
98
+ const headEnd = selectPrefix(value, headBudget);
99
+ const tailStart = selectSuffix(value, tailBudget);
100
+ return copyString(value.slice(0, headEnd)) + marker + copyString(value.slice(tailStart));
101
+ }
102
+ __name(truncateJsonStringPayload, "truncateJsonStringPayload");
103
+ function projectJsonStringToByteBudget(value, jsonByteBudget, marker) {
104
+ const payloadBudget = Math.max(
105
+ 0,
106
+ jsonByteBudget - JSON_STRING_DELIMITER_BYTES
107
+ );
108
+ const payloadBytes = jsonStringPayloadByteLength(value, payloadBudget);
109
+ if (payloadBytes <= payloadBudget) return value;
110
+ const projected = truncateJsonStringPayload(
111
+ value,
112
+ payloadBytes,
113
+ payloadBudget,
114
+ marker
115
+ );
116
+ if (Buffer.byteLength(JSON.stringify(projected), "utf8") <= jsonByteBudget) {
117
+ return projected;
118
+ }
119
+ const fallback = copyString(
120
+ marker.slice(0, selectPrefix(marker, payloadBudget))
121
+ );
122
+ return Buffer.byteLength(JSON.stringify(fallback), "utf8") <= jsonByteBudget ? fallback : "";
123
+ }
124
+ __name(projectJsonStringToByteBudget, "projectJsonStringToByteBudget");
125
+
126
+ export {
127
+ JSON_STRING_DELIMITER_BYTES,
128
+ jsonStringPayloadByteLength,
129
+ jsonStringJsonByteLength,
130
+ truncateJsonStringPayload,
131
+ projectJsonStringToByteBudget
132
+ };
133
+ /**
134
+ * @license
135
+ * Copyright 2026 Qwen Team
136
+ * SPDX-License-Identifier: Apache-2.0
137
+ */
@@ -2,11 +2,11 @@
2
2
  "use strict";
3
3
  import {
4
4
  getCliVersion
5
- } from "./chunk-EOBM4T2Z.js";
5
+ } from "./chunk-DGM2XA3R.js";
6
6
  import {
7
7
  IdeClient,
8
8
  formatMemoryUsage
9
- } from "./chunk-UIZGNLBP.js";
9
+ } from "./chunk-INQN4KIA.js";
10
10
  import {
11
11
  createDebugLogger
12
12
  } from "./chunk-MPBRV3UU.js";
@@ -25,7 +25,7 @@ import { execFile } from "node:child_process";
25
25
 
26
26
  // packages/cli/src/generated/git-commit.ts
27
27
  init_esbuild_shims();
28
- var GIT_COMMIT_INFO = "7a48b9278f";
28
+ var GIT_COMMIT_INFO = "47a54bc581";
29
29
 
30
30
  // packages/cli/src/utils/systemInfo.ts
31
31
  var debugLogger = createDebugLogger("STATUS");
@@ -2,15 +2,15 @@
2
2
  "use strict";
3
3
  import {
4
4
  appEvents
5
- } from "./chunk-TTB6GBJ6.js";
5
+ } from "./chunk-VUFEW3SF.js";
6
6
  import {
7
7
  assembleMcpServers,
8
8
  getPendingGatedMcpServers,
9
9
  getPromptableMcpServers
10
- } from "./chunk-JOXXPM3X.js";
10
+ } from "./chunk-FWJRWCKU.js";
11
11
  import {
12
12
  getMCPServerStatus
13
- } from "./chunk-U2JLICUY.js";
13
+ } from "./chunk-HB6QW4LM.js";
14
14
  import {
15
15
  require_fast_deep_equal
16
16
  } from "./chunk-XTH2OMDS.js";