@qwen-code/qwen-code 0.25.2-preview.1 → 0.25.2

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 (274) hide show
  1. package/chunks/{MaxSizedBox-CF4NN4Y7.js → MaxSizedBox-CGJP7S5S.js} +1 -1
  2. package/chunks/{StandaloneSessionPicker-Q23KTB6U.js → StandaloneSessionPicker-H6NONKPP.js} +1 -1
  3. package/chunks/{acp-subagent-executor-LXOLDTFY.js → acp-subagent-executor-7OCKCTA5.js} +1 -1
  4. package/chunks/{acpAgent-QRKZVQAG.js → acpAgent-VCKTBLFO.js} +3 -3
  5. package/chunks/{advisor-VZZJU7BR.js → advisor-UQJ45FLG.js} +1 -1
  6. package/chunks/{agent-LP66VBC4.js → agent-KMSCVRSG.js} +1 -1
  7. package/chunks/{agent-headless-W5P4KPX4.js → agent-headless-3FWQ5QNO.js} +1 -1
  8. package/chunks/{agent-host-client-OW4HBXRL.js → agent-host-client-PXIIFCCS.js} +1 -1
  9. package/chunks/{agent-host-connections-D7IC6WWL.js → agent-host-connections-QUYGQNJX.js} +1 -1
  10. package/chunks/{anthropicContentGenerator-6I25Q3Y6.js → anthropicContentGenerator-MDETV5LU.js} +1 -1
  11. package/chunks/{batch-7E5KJ625.js → batch-RQO2HWFV.js} +1 -1
  12. package/chunks/{bridge-BITC2AVN.js → bridge-OA3GEU2I.js} +1 -1
  13. package/chunks/{channel-settings-store-VAVG6ONF.js → channel-settings-store-YN23NP2H.js} +1 -1
  14. package/chunks/{chunk-4NCTKE4Z.js → chunk-2PQ5ZRTI.js} +1 -1
  15. package/chunks/{chunk-OJHTHXBC.js → chunk-32UFT5HU.js} +1 -1
  16. package/chunks/{chunk-2HJZ3OYW.js → chunk-3C34EMBZ.js} +1 -1
  17. package/chunks/{chunk-UXFLNZNB.js → chunk-3FPPMGVC.js} +1 -1
  18. package/chunks/{chunk-74YXI5IJ.js → chunk-445NIH5T.js} +1 -1
  19. package/chunks/{chunk-MXXYBMBZ.js → chunk-45EKBDFD.js} +1 -1
  20. package/chunks/{chunk-JV5FCFG4.js → chunk-4WFWZWR3.js} +1 -1
  21. package/chunks/{chunk-AAOAX46J.js → chunk-56NX3ASC.js} +1 -1
  22. package/chunks/{chunk-IBS4PHD2.js → chunk-5FY6TL3Z.js} +1 -1
  23. package/chunks/{chunk-UGI3XPRM.js → chunk-5GJPVNHI.js} +1 -1
  24. package/chunks/{chunk-7BZGY7AH.js → chunk-5XAVUYY6.js} +6 -6
  25. package/chunks/{chunk-V3WNU4F5.js → chunk-655XEN5H.js} +1 -1
  26. package/chunks/{chunk-APX7ODYT.js → chunk-6PHAGUA6.js} +1 -1
  27. package/chunks/{chunk-CD6C4OHZ.js → chunk-7YX6LW5H.js} +1 -1
  28. package/chunks/{chunk-C2NFZSGI.js → chunk-AAVRYR5T.js} +1 -1
  29. package/chunks/{chunk-EO35BRIG.js → chunk-ANUAITTH.js} +1 -1
  30. package/chunks/{chunk-CNQ6AOFN.js → chunk-AZ5GFEKG.js} +1 -1
  31. package/chunks/{chunk-KAEW65QP.js → chunk-B5XDGUAK.js} +1 -1
  32. package/chunks/{chunk-X6QHNKUW.js → chunk-BCNBZOGV.js} +1 -1
  33. package/chunks/{chunk-W5DIWPQB.js → chunk-BDXWLZJD.js} +1 -1
  34. package/chunks/{chunk-ZASVUARY.js → chunk-BPX4A433.js} +1 -1
  35. package/chunks/{chunk-CDSI44GJ.js → chunk-BUI6W6CU.js} +1 -1
  36. package/chunks/{chunk-ZEYCGUHI.js → chunk-BVARURDD.js} +1 -1
  37. package/chunks/{chunk-PZ5UPKIG.js → chunk-BW5CHWEJ.js} +2 -2
  38. package/chunks/{chunk-7TUP75C2.js → chunk-C4DSH4A3.js} +1 -1
  39. package/chunks/{chunk-R4KMBENY.js → chunk-CCBWBPJL.js} +1 -1
  40. package/chunks/{chunk-TU6DWKVI.js → chunk-CKJ3OUIV.js} +2 -2
  41. package/chunks/{chunk-SG5P4CK4.js → chunk-CRZ7QRFB.js} +1 -1
  42. package/chunks/{chunk-UYFL7K4Z.js → chunk-CTEBIP2S.js} +1 -1
  43. package/chunks/{chunk-WSIDVWGO.js → chunk-DBOWUORN.js} +1 -1
  44. package/chunks/{chunk-NAHKSVYI.js → chunk-DPBXGGQX.js} +1 -1
  45. package/chunks/{chunk-BMOJDKDZ.js → chunk-DSSSLNXD.js} +3 -3
  46. package/chunks/{chunk-FP2RLPWJ.js → chunk-EKGFFEH4.js} +1 -1
  47. package/chunks/{chunk-L7W3J427.js → chunk-EMEQR2LX.js} +1 -1
  48. package/chunks/{chunk-YRYMLJAC.js → chunk-ENUYA7BO.js} +1 -1
  49. package/chunks/{chunk-4CWBH6LP.js → chunk-EORORGZC.js} +1 -1
  50. package/chunks/{chunk-RBH3BOVF.js → chunk-EUK64V6Z.js} +1 -1
  51. package/chunks/{chunk-AII4DN7M.js → chunk-FBV4LUUL.js} +1 -1
  52. package/chunks/{chunk-YVEPPENZ.js → chunk-FFLFTXO7.js} +1 -1
  53. package/chunks/{chunk-2HSFO66N.js → chunk-FHXH3GSI.js} +1 -1
  54. package/chunks/{chunk-RH6PMH32.js → chunk-FVBDVZD7.js} +1 -1
  55. package/chunks/{chunk-Y2HLDUZG.js → chunk-I2D2ZUKF.js} +1 -1
  56. package/chunks/{chunk-6PUZWUMQ.js → chunk-I3FZ733S.js} +1 -1
  57. package/chunks/{chunk-GG7RNHZW.js → chunk-IFAUFERF.js} +5 -5
  58. package/chunks/{chunk-JQ7BCB3L.js → chunk-IYFUH3JB.js} +1 -1
  59. package/chunks/{chunk-VAMQAYF3.js → chunk-JB5I5QAD.js} +1 -1
  60. package/chunks/{chunk-Z3UZTCKY.js → chunk-JD3QDS7D.js} +1 -1
  61. package/chunks/{chunk-TFVPY43T.js → chunk-JG2UNQOW.js} +1 -1
  62. package/chunks/{chunk-E4MRBL4O.js → chunk-JSXHTTFE.js} +1 -1
  63. package/chunks/{chunk-QTYA6TES.js → chunk-LJLS3MDJ.js} +1 -1
  64. package/chunks/{chunk-RZISIEQL.js → chunk-MEIW5WVJ.js} +1 -1
  65. package/chunks/{chunk-ZD4U3GR4.js → chunk-MGL36H3B.js} +1 -1
  66. package/chunks/{chunk-HXA3X4PB.js → chunk-MJUFVFH3.js} +1 -1
  67. package/chunks/{chunk-SYIDPXVT.js → chunk-MSR6LYHS.js} +1 -1
  68. package/chunks/{chunk-4MJ67O5W.js → chunk-MTXJRB7G.js} +2 -2
  69. package/chunks/{chunk-F5P3BWS7.js → chunk-MXFBSMIM.js} +1 -1
  70. package/chunks/{chunk-W6TNBCKX.js → chunk-MYHJ4WUH.js} +1 -1
  71. package/chunks/{chunk-CWU5NJOB.js → chunk-NHXKNS7F.js} +1 -1
  72. package/chunks/{chunk-6OIJIF6G.js → chunk-NT74NPQT.js} +1 -1
  73. package/chunks/{chunk-O47FCWNF.js → chunk-NWXW4UNC.js} +1 -1
  74. package/chunks/{chunk-JASL4RZR.js → chunk-O77LM4EW.js} +1 -1
  75. package/chunks/{chunk-ZDNTENP2.js → chunk-OB7T2MDO.js} +1 -1
  76. package/chunks/{chunk-L7WFW57T.js → chunk-PODFLAH7.js} +1 -1
  77. package/chunks/{chunk-R3ZMQ7WR.js → chunk-Q2G675WT.js} +1 -1
  78. package/chunks/{chunk-H3QROVUO.js → chunk-QT27SK62.js} +1 -1
  79. package/chunks/{chunk-UELAXFT7.js → chunk-QZPNBV4F.js} +1 -1
  80. package/chunks/{chunk-B3L4LODR.js → chunk-RV54BGL2.js} +1 -1
  81. package/chunks/{chunk-KLXL3FSI.js → chunk-SFETIBPP.js} +1 -1
  82. package/chunks/{chunk-F3YGAXZ5.js → chunk-SGKINIQB.js} +1 -1
  83. package/chunks/{chunk-MBPT3YYO.js → chunk-SHJNP7OV.js} +1 -1
  84. package/chunks/{chunk-U3YSYIQE.js → chunk-SPFRORFN.js} +1 -1
  85. package/chunks/{chunk-S3B4TZVJ.js → chunk-SPLINFM7.js} +1 -1
  86. package/chunks/{chunk-ORIS5AVH.js → chunk-SYO5FPHL.js} +1 -1
  87. package/chunks/{chunk-AGHGPOH6.js → chunk-TEE4MM5S.js} +1 -1
  88. package/chunks/{chunk-WHF3HYZI.js → chunk-TPZTO4K3.js} +1 -1
  89. package/chunks/{chunk-KJO757RN.js → chunk-UY2CSL5W.js} +1 -1
  90. package/chunks/{chunk-VCTZRPKP.js → chunk-W7QYXFWW.js} +1 -1
  91. package/chunks/{chunk-T3ECMT6I.js → chunk-WQOZJ6V7.js} +2 -2
  92. package/chunks/{chunk-INEI2ZW2.js → chunk-WZK7RC36.js} +1 -1
  93. package/chunks/{chunk-Y5JLH3SN.js → chunk-X22435IN.js} +4 -4
  94. package/chunks/{chunk-WHNAY3QQ.js → chunk-X2KF6AUQ.js} +1 -1
  95. package/chunks/{chunk-MUEIZGTI.js → chunk-YHPHQX6M.js} +1 -1
  96. package/chunks/{chunk-5OOO3YIH.js → chunk-YL7QMYOX.js} +1 -1
  97. package/chunks/{chunk-43E3XC2W.js → chunk-YQEOEO5V.js} +1 -1
  98. package/chunks/{chunk-624P32LD.js → chunk-YZ374XTK.js} +1 -1
  99. package/chunks/{codex-subagent-executor-2MPLWNLD.js → codex-subagent-executor-MC3QB2AN.js} +1 -1
  100. package/chunks/{config-utils-MJEEBLQW.js → config-utils-FYT7PUIC.js} +1 -1
  101. package/chunks/{contextCommand-BP566QVE.js → contextCommand-DXMSMSR7.js} +1 -1
  102. package/chunks/{core-runtime-BOAIFYAZ.js → core-runtime-ZLB6QZ3Z.js} +1 -1
  103. package/chunks/{create-sub-session-HJVK7AXV.js → create-sub-session-YUI3G5AF.js} +1 -1
  104. package/chunks/{daemon-git-worktree-guard-KA2Y6FHL.js → daemon-git-worktree-guard-5PYZMC6T.js} +1 -1
  105. package/chunks/{daemon-status-provider-JGR5JT2T.js → daemon-status-provider-GC567FVE.js} +1 -1
  106. package/chunks/{daemon-trust-policy-EP4DHXOW.js → daemon-trust-policy-LLD2UMPF.js} +1 -1
  107. package/chunks/{daemon-trust-policy-monitor-W3VZRKOK.js → daemon-trust-policy-monitor-MRMB2CRJ.js} +1 -1
  108. package/chunks/{deferred-core-runtime-Q3JH7XDL.js → deferred-core-runtime-4HLTINJ6.js} +1 -1
  109. package/chunks/{edit-S7DCBMAL.js → edit-CZ6FEXDU.js} +1 -1
  110. package/chunks/{enterPlanMode-UX7B6KWX.js → enterPlanMode-O3CJ3I2J.js} +1 -1
  111. package/chunks/{environment-ZBW6HDG3.js → environment-OJWH4FYL.js} +1 -1
  112. package/chunks/{errors-7ZRLUHEB.js → errors-NWKSQVL3.js} +1 -1
  113. package/chunks/{execution-tool-R244Q3GW.js → execution-tool-7UCADALN.js} +1 -1
  114. package/chunks/{execution-worker-JR44JTC4.js → execution-worker-LWHQMPBV.js} +1 -1
  115. package/chunks/{exitPlanMode-2PTTZXGO.js → exitPlanMode-JDM6ZZWI.js} +1 -1
  116. package/chunks/{fast-path-NQQ42XUR.js → fast-path-4WHPMNMD.js} +1 -1
  117. package/chunks/{glob-4JP6RQNK.js → glob-LAU4YJ6J.js} +1 -1
  118. package/chunks/{goal-tools-MO7NIH7B.js → goal-tools-AF2FQO3H.js} +1 -1
  119. package/chunks/{handleAutoUpdate-STUVMCIU.js → handleAutoUpdate-WBWK4775.js} +1 -1
  120. package/chunks/{i18n-UTIILRKE.js → i18n-O4Q2KHOA.js} +1 -1
  121. package/chunks/{initializer-YI2WT6LZ.js → initializer-2AH3EKBL.js} +1 -1
  122. package/chunks/{installationInfo-PW2JHHJV.js → installationInfo-77WYXG4W.js} +1 -1
  123. package/chunks/{list-SAOL2OZI.js → list-RAU3ZJQS.js} +1 -1
  124. package/chunks/{llm-LMY62H6Z.js → llm-MJMQ34KB.js} +4 -4
  125. package/chunks/{llm-content-generator-6RPOZ2YR.js → llm-content-generator-MJPR2TWC.js} +1 -1
  126. package/chunks/{loadedSettingsAdapter-RNXWDDE2.js → loadedSettingsAdapter-WRWWNGHZ.js} +1 -1
  127. package/chunks/{local-execution-environment-GIWY2LO6.js → local-execution-environment-VVJ7OYBT.js} +1 -1
  128. package/chunks/{loggingContentGenerator-AOKEDXK6.js → loggingContentGenerator-722BJL7T.js} +1 -1
  129. package/chunks/{manage-memory-WKPWLYDD.js → manage-memory-GN56UQHG.js} +1 -1
  130. package/chunks/{managed-npm-update-LFFWFATA.js → managed-npm-update-5VE662JS.js} +1 -1
  131. package/chunks/{managed-runtime-attestation-worker-IV6ZNIAK.js → managed-runtime-attestation-worker-ASGGZMFM.js} +1 -1
  132. package/chunks/{managed-runtime-session-worker-3NU4FOXD.js → managed-runtime-session-worker-YUSO7WFB.js} +1 -1
  133. package/chunks/{mcp-RDDGN4JK.js → mcp-6D236MEH.js} +1 -1
  134. package/chunks/{model-call-collection-JARTJD6S.js → model-call-collection-UAE2W6VV.js} +1 -1
  135. package/chunks/{model-configuration-7H6PEOLY.js → model-configuration-VHPSBCQI.js} +1 -1
  136. package/chunks/{modelConfigUtils-Q63ZZTXY.js → modelConfigUtils-XKDXYQRJ.js} +1 -1
  137. package/chunks/{monitor-HLO366TQ.js → monitor-JIKXBXDK.js} +1 -1
  138. package/chunks/{nonInteractiveCli-JO5EG6OK.js → nonInteractiveCli-IXTK5V4Q.js} +1 -1
  139. package/chunks/{nonInteractiveToolExecutor-T7AKBX25.js → nonInteractiveToolExecutor-3MSROJV5.js} +1 -1
  140. package/chunks/{notebook-edit-XKULPMG7.js → notebook-edit-VDWBIBMG.js} +1 -1
  141. package/chunks/{omni-H3GFC6KR.js → omni-MEUE65XC.js} +1 -1
  142. package/chunks/{openaiContentGenerator-RT4S6OYR.js → openaiContentGenerator-KNZTYVNK.js} +1 -1
  143. package/chunks/{openaiResponsesContentGenerator-JD4ZBCAL.js → openaiResponsesContentGenerator-G7GRJXES.js} +1 -1
  144. package/chunks/{pidfile-JXCPPGC6.js → pidfile-HMEKKPWO.js} +1 -1
  145. package/chunks/{processUtils-FF7LHGHW.js → processUtils-KHWNT3KU.js} +1 -1
  146. package/chunks/{prompt-terminal-ledger-VLIEJ5BB.js → prompt-terminal-ledger-EY72RU3D.js} +1 -1
  147. package/chunks/{qwenContentGenerator-6SGQI4ES.js → qwenContentGenerator-A7WREYLV.js} +1 -1
  148. package/chunks/{reactive-degrade-2UJPX4AU.js → reactive-degrade-O6WBGQ5X.js} +1 -1
  149. package/chunks/{read-file-27DWTM5N.js → read-file-A4MQWC6T.js} +1 -1
  150. package/chunks/{resumeHistoryUtils-KRF2LD7T.js → resumeHistoryUtils-KNUVMH5J.js} +1 -1
  151. package/chunks/{review-IPFFTVGV.js → review-OC76PLQ4.js} +1 -1
  152. package/chunks/{ripGrep-75QL35XD.js → ripGrep-JR6DHTIW.js} +1 -1
  153. package/chunks/{run-qwen-serve-WW74NSUL.js → run-qwen-serve-NFPGPJJ2.js} +2 -2
  154. package/chunks/{runtime-Z2NIOF6Y.js → runtime-BPHFAZOP.js} +1 -1
  155. package/chunks/{sandboxConfig-WMQAKX7Q.js → sandboxConfig-KXTV3QBG.js} +1 -1
  156. package/chunks/{scheduled-tasks-LMJJ5ZM7.js → scheduled-tasks-2GNFZH4N.js} +1 -1
  157. package/chunks/{scheduler-KHWWXW6H.js → scheduler-CKLZCETX.js} +1 -1
  158. package/chunks/{search-memory-WEO3M674.js → search-memory-ICNU2EJA.js} +1 -1
  159. package/chunks/{send-message-E2EVXDU4.js → send-message-T32PFXX5.js} +1 -1
  160. package/chunks/{serve-E7ZGE7PD.js → serve-O7XBFM36.js} +1 -1
  161. package/chunks/{server-SSHP5IO4.js → server-7H2EGX7C.js} +3 -3
  162. package/chunks/{session-UWUQU3NV.js → session-SO4TKKO3.js} +1 -1
  163. package/chunks/{session-attachments-root-I35OUD7P.js → session-attachments-root-QPBJB3Y2.js} +1 -1
  164. package/chunks/{session-execution-engine-selector-S7HXLYKG.js → session-execution-engine-selector-73JQ7AG6.js} +1 -1
  165. package/chunks/{session-pr-refresh-34FLQB2Z.js → session-pr-refresh-XPDBRBQV.js} +1 -1
  166. package/chunks/{sessionService-BBC2563F.js → sessionService-DDLWVLNC.js} +1 -1
  167. package/chunks/{settings-BXCTAYMU.js → settings-TUEKBNAX.js} +1 -1
  168. package/chunks/{shell-ORZNRZKX.js → shell-SXSN7UYK.js} +1 -1
  169. package/chunks/{skill-3MJ6V2VQ.js → skill-XAYT7HGV.js} +1 -1
  170. package/chunks/{skill-settings-A7TTYJGH.js → skill-settings-X3O75XUN.js} +1 -1
  171. package/chunks/{spawnChannel-UPHPUPIJ.js → spawnChannel-3523LPUW.js} +1 -1
  172. package/chunks/{standalone-update-GGHQ54QB.js → standalone-update-T7AUODLV.js} +1 -1
  173. package/chunks/{start-opentui-ui-O6WMWLGS.js → start-opentui-ui-IKBADQQS.js} +1 -1
  174. package/chunks/{startInteractiveUI-N3ZPR2FK.js → startInteractiveUI-PV2JETB4.js} +1 -1
  175. package/chunks/{team-create-EYLFAQVU.js → team-create-ZKTBFE7Z.js} +1 -1
  176. package/chunks/{team-plan-approval-2WFSX4XE.js → team-plan-approval-SCTAN2HM.js} +1 -1
  177. package/chunks/{terminal-image-renderer-A5HEJZTW.js → terminal-image-renderer-EDBYTK3B.js} +1 -1
  178. package/chunks/{theme-manager-TQHNJSKQ.js → theme-manager-ZLXHLO2Y.js} +1 -1
  179. package/chunks/{tool-call-UBLAA45C.js → tool-call-ULUE3W3P.js} +1 -1
  180. package/chunks/{tool-result-media-53AD3EHK.js → tool-result-media-VXS7QTX7.js} +1 -1
  181. package/chunks/{tool-search-D6PSBDDZ.js → tool-search-VWM6VCVU.js} +1 -1
  182. package/chunks/{total-session-admission-CUMMWSM2.js → total-session-admission-FZDBG232.js} +1 -1
  183. package/chunks/{trustedFolders-TERXKVJ6.js → trustedFolders-VIPEDZNB.js} +1 -1
  184. package/chunks/{update-relaunch-PXCI66U2.js → update-relaunch-N6TNUHQE.js} +1 -1
  185. package/chunks/{updateCheck-2P4ANPL7.js → updateCheck-367IR3FW.js} +1 -1
  186. package/chunks/{upload-config-G2WZG4DM.js → upload-config-5W4WTLML.js} +1 -1
  187. package/chunks/{useAutoAcceptIndicator-H7I7JP34.js → useAutoAcceptIndicator-SGT7EBCJ.js} +1 -1
  188. package/chunks/{validateNonInterActiveAuth-VLRV5LCK.js → validateNonInterActiveAuth-7WEBPZ4S.js} +1 -1
  189. package/chunks/{version-AOKDKXXZ.js → version-3OKRQ6LC.js} +1 -1
  190. package/chunks/{web-fetch-OUJS56AV.js → web-fetch-BV7BK5NT.js} +1 -1
  191. package/chunks/{web-search-3S4ZIGLP.js → web-search-DFQ74G7V.js} +1 -1
  192. package/chunks/{workflow-6W4WB4L5.js → workflow-EXSCHLQK.js} +1 -1
  193. package/chunks/{workspace-agents-7GB2RLY5.js → workspace-agents-HPOPFXKJ.js} +1 -1
  194. package/chunks/{workspace-providers-status-OMD57CUW.js → workspace-providers-status-UQCSR2PB.js} +1 -1
  195. package/chunks/{workspace-registration-store-WKLFVMQ2.js → workspace-registration-store-Q5U4WD5M.js} +1 -1
  196. package/chunks/{workspace-registry-6WJOPYIS.js → workspace-registry-I2O2LXTZ.js} +1 -1
  197. package/chunks/{workspace-runtime-coordinator-XG7G7DG3.js → workspace-runtime-coordinator-MVVDZYYX.js} +1 -1
  198. package/chunks/{workspace-service-YLX46RJM.js → workspace-service-CFJ2EUB7.js} +1 -1
  199. package/chunks/{workspace-skills-status-JZZR7QHN.js → workspace-skills-status-LLNIK3NS.js} +1 -1
  200. package/chunks/{workspace-trust-reconciler-AO3I5KYO.js → workspace-trust-reconciler-VLGJXLCZ.js} +1 -1
  201. package/chunks/{write-file-MGYLC32T.js → write-file-RG7HHIYP.js} +1 -1
  202. package/chunks/{zoom-image-TZ527ASZ.js → zoom-image-AKW6CA4K.js} +1 -1
  203. package/cli.js +2 -2
  204. package/execution-worker.js +1 -1
  205. package/export-transcript-document.js +1 -1
  206. package/package.json +3 -3
  207. package/web-shell/assets/{PierreFilePreview-Cq9imG0c.js → PierreFilePreview-Cij36lF-.js} +1 -1
  208. package/web-shell/assets/{SpreadsheetPreview-Blho0kkO.js → SpreadsheetPreview-kDlHrK21.js} +1 -1
  209. package/web-shell/assets/{WorkspaceFileBrowser-DjeX-ArR.js → WorkspaceFileBrowser-DBXW9l-s.js} +1 -1
  210. package/web-shell/assets/{abnfDiagram-VCTEODGH-mEfLgGao.js → abnfDiagram-VCTEODGH-DBrfOx4O.js} +1 -1
  211. package/web-shell/assets/{agents-route-Bg4_tLdL.js → agents-route-6E_3XRjk.js} +1 -1
  212. package/web-shell/assets/{arc-DEVpMJqB.js → arc-RwrvKU6y.js} +1 -1
  213. package/web-shell/assets/{architectureDiagram-5GKGNRK7-CGhqKvd1.js → architectureDiagram-5GKGNRK7-B2_hfNn6.js} +1 -1
  214. package/web-shell/assets/{blockDiagram-NRAW4CY4-DxpWdCdl.js → blockDiagram-NRAW4CY4-C755qTFO.js} +1 -1
  215. package/web-shell/assets/{c4Diagram-UCG6FXSJ-CE1W0_yu.js → c4Diagram-UCG6FXSJ-CARC2uHQ.js} +1 -1
  216. package/web-shell/assets/channel-U9JRrjem.js +1 -0
  217. package/web-shell/assets/{chunk-2Q5K7J3B-ibHTXjoH.js → chunk-2Q5K7J3B-BS1ldEp9.js} +1 -1
  218. package/web-shell/assets/{chunk-5VM5RSS4-BEZ2-gCE.js → chunk-5VM5RSS4-DckOEd3N.js} +1 -1
  219. package/web-shell/assets/{chunk-F27PBJKO-CKyPZ7Jh.js → chunk-F27PBJKO-fZstOLLL.js} +1 -1
  220. package/web-shell/assets/{chunk-G27WJ6UU-WHNRb7iQ.js → chunk-G27WJ6UU-Bf4QkrJ7.js} +1 -1
  221. package/web-shell/assets/{chunk-JWPE2WC7-Dm4G-fLP.js → chunk-JWPE2WC7-uBW51XO_.js} +1 -1
  222. package/web-shell/assets/{chunk-LCL6LL3I-BvTm39E-.js → chunk-LCL6LL3I-D2MYZdE_.js} +1 -1
  223. package/web-shell/assets/{chunk-POPQ4Y6H-C0zAbzIo.js → chunk-POPQ4Y6H-CzTHTST7.js} +1 -1
  224. package/web-shell/assets/{chunk-SVP7TREG-B36K-VPq.js → chunk-SVP7TREG-fL48tjL5.js} +1 -1
  225. package/web-shell/assets/{chunk-XXDRQBXY-D1opdtZ1.js → chunk-XXDRQBXY-R1jjDz-e.js} +1 -1
  226. package/web-shell/assets/classDiagram-DTDB5LWJ-r255RW6f.js +1 -0
  227. package/web-shell/assets/classDiagram-v2-JRS7N3AN-r255RW6f.js +1 -0
  228. package/web-shell/assets/{cose-bilkent-JH36ORCC-S_IO4ZW5.js → cose-bilkent-JH36ORCC-DTK6Alrt.js} +1 -1
  229. package/web-shell/assets/{cynefin-OW5HDTMX-CGUKfurr.js → cynefin-OW5HDTMX-C1JYDjN4.js} +1 -1
  230. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BqUpO_VD.js → cynefinDiagram-5FMLGOSQ-C3bR18IM.js} +1 -1
  231. package/web-shell/assets/{dagre-3AP2YEHR-CiKqZpUi.js → dagre-3AP2YEHR-D4oUlW7g.js} +1 -1
  232. package/web-shell/assets/{diagram-S7CK7UJ4-B3CQED4o.js → diagram-S7CK7UJ4-m-a-vk_2.js} +1 -1
  233. package/web-shell/assets/{diagram-UQ7AKVKN-BewunX5H.js → diagram-UQ7AKVKN-CVGSVvpJ.js} +1 -1
  234. package/web-shell/assets/{diagram-VSXAHHWV-C5j1hiVn.js → diagram-VSXAHHWV-DcLovKfd.js} +1 -1
  235. package/web-shell/assets/{diagram-VX7I27RA-CWDIIA61.js → diagram-VX7I27RA-DAwY09qQ.js} +1 -1
  236. package/web-shell/assets/{diagram-Z3DM3KII-COa1V8UD.js → diagram-Z3DM3KII-D4BWV8Yb.js} +1 -1
  237. package/web-shell/assets/{ebnfDiagram-PWID7BFC-CP33EIO8.js → ebnfDiagram-PWID7BFC-AhqQLlAR.js} +1 -1
  238. package/web-shell/assets/{erDiagram-SSCWMZ5O-V2pL2JAp.js → erDiagram-SSCWMZ5O-DcIpsPuK.js} +1 -1
  239. package/web-shell/assets/{flowDiagram-A5DVABFB-CF-YQlR_.js → flowDiagram-A5DVABFB-Cdu3v56D.js} +1 -1
  240. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-TXUid-Q2.js → ganttDiagram-EL5Y4UJY-D8o98Muo.js} +1 -1
  241. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-QNcIYsgn.js → gitGraphDiagram-WWUBYQGX-fIAd56jC.js} +1 -1
  242. package/web-shell/assets/{index-CKa6aZMZ.js → index-CJmvuO8Q.js} +1 -1
  243. package/web-shell/assets/{index-N9F4X44H.js → index-DSh5Yfsf.js} +5 -5
  244. package/web-shell/assets/{infoDiagram-RXCK75RN-Dn1biwuc.js → infoDiagram-RXCK75RN-dPnP0Koe.js} +1 -1
  245. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-iBYO7WCt.js → ishikawaDiagram-5VMMS53U-f9Oq8YH7.js} +1 -1
  246. package/web-shell/assets/{journeyDiagram-EYS64GPL-D98LzO4k.js → journeyDiagram-EYS64GPL-CqwSlUQ1.js} +1 -1
  247. package/web-shell/assets/{kanban-definition-3QL26DDD-lQMIgDSM.js → kanban-definition-3QL26DDD-Bh_KTp2S.js} +1 -1
  248. package/web-shell/assets/{layout-BgOy6tFo.js → layout-0e-hGnuM.js} +1 -1
  249. package/web-shell/assets/{linear-En8RXsBs.js → linear-BtxWFISv.js} +1 -1
  250. package/web-shell/assets/{mermaid.core-BneKXyZr.js → mermaid.core-Dik4l-jM.js} +6 -6
  251. package/web-shell/assets/{mindmap-definition-FBJOCRG2-NkP_9BC4.js → mindmap-definition-FBJOCRG2-B7gext3e.js} +1 -1
  252. package/web-shell/assets/{pegDiagram-XKGWAZYB-B0ie-nkt.js → pegDiagram-XKGWAZYB-BfyKzGY0.js} +1 -1
  253. package/web-shell/assets/{pieDiagram-E7YTZNPT-Qa86cFZc.js → pieDiagram-E7YTZNPT-vfeVyHgh.js} +1 -1
  254. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CkjUzR0e.js → quadrantDiagram-AXDQQJYC-DGAZmngq.js} +1 -1
  255. package/web-shell/assets/{railroadDiagram-O6MQD6OU-mN7KpgJG.js → railroadDiagram-O6MQD6OU-Dgxiy8W5.js} +1 -1
  256. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-Bmn2z6x2.js → requirementDiagram-EFPCY7ZU-D7TFokdR.js} +1 -1
  257. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CYWnwpoW.js → sankeyDiagram-P5KCCOFB-BZU_UYd-.js} +1 -1
  258. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BFyWlR1P.js → sequenceDiagram-WJ2MYXX4-Bz94qtvq.js} +1 -1
  259. package/web-shell/assets/{sizeCapture-X5ZJPWSS-BwCPrn2w.js → sizeCapture-X5ZJPWSS-DVlzIShY.js} +1 -1
  260. package/web-shell/assets/{stateDiagram-HBIQ2CUA-oqL3E0Ws.js → stateDiagram-HBIQ2CUA-CE9Il33j.js} +1 -1
  261. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BVL1rIGD.js +1 -0
  262. package/web-shell/assets/{swimlanes-XN3QIQJK-C3FAVL8g.js → swimlanes-XN3QIQJK-Cr2CyF9L.js} +1 -1
  263. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-BeWJAUmf.js +8 -0
  264. package/web-shell/assets/{timeline-definition-24CTP7MA-BdwxFsPJ.js → timeline-definition-24CTP7MA-DWbRlUDe.js} +1 -1
  265. package/web-shell/assets/{vennDiagram-4TSXK5OY-j_G2AbSj.js → vennDiagram-4TSXK5OY-Bp5BiaRL.js} +1 -1
  266. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Dy_fHHBq.js → wardleyDiagram-VM6X3IG4-DoQIUrT8.js} +1 -1
  267. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CnLgG50x.js → xychartDiagram-S5SC5T6Z-BTO308Vv.js} +1 -1
  268. package/web-shell/index.html +1 -1
  269. package/web-shell/sw.js +1 -1
  270. package/web-shell/assets/channel-CHCXOu89.js +0 -1
  271. package/web-shell/assets/classDiagram-DTDB5LWJ-DXIqcod_.js +0 -1
  272. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DXIqcod_.js +0 -1
  273. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Cmho6gw2.js +0 -1
  274. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-D9Sfkn7b.js +0 -8
package/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // Force strict mode and setup for ESM
3
3
  "use strict";
4
- import{handleUncaughtException,isExpectedPtyRaceError}from"./chunks/chunk-CHSXQ2KG.js";import{clearInheritedPeerMessagingEnv}from"./chunks/chunk-NPAX2UFU.js";import{initCpuProfiler}from"./chunks/chunk-MBPT3YYO.js";import{initStartupProfiler}from"./chunks/chunk-H4XFFVZ2.js";import{normalizeServeFastPathArgv}from"./chunks/chunk-X7QN6R6K.js";import{DEFAULT_COMMAND,DEFAULT_COMMAND_DESC,QUERY_POSITIONAL,TOP_LEVEL_DEPRECATED_OPTIONS,TOP_LEVEL_HELP_OPTIONS,TOP_LEVEL_USAGE}from"./chunks/chunk-FUK4Y5AJ.js";import"./chunks/chunk-U3YSYIQE.js";import"./chunks/chunk-SLPJ4OII.js";import"./chunks/chunk-4YLXNRRH.js";import{FatalError}from"./chunks/chunk-XYB7GC5U.js";import{init_esbuild_shims}from"./chunks/chunk-VKDAXTCZ.js";import{__name}from"./chunks/chunk-KBWJGX7I.js";init_esbuild_shims();import{accessSync,chmodSync,constants,existsSync,realpathSync,statSync}from"node:fs";import{fileURLToPath,pathToFileURL}from"node:url";initStartupProfiler();initCpuProfiler();var TOP_LEVEL_COMMANDS=[["agents <command>","Session agents: join a coordinator as a runtime"],["auth","Configure authentication (removed)"],["batch <command>","Run many independent requests through the DashScope Batch API"],["board <command>","Share work with other agents through a board"],["channel <command>","Manage messaging channels (Telegram, Discord, etc.)"],["extensions <command>","Manage Qwen Code extensions."],["hooks","Manage Qwen Code hooks (use /hooks in interactive mode)."],["mcp","Manage MCP servers"],["review <command>","Run a review non-interactively (`run`), plus the internal helpers used by the /review skill (PR worktree setup, context fetch, rules loading, presubmit checks, cleanup)"],["sandbox [cmd...]","Inspect the sandbox backend, or run a command inside it"],["serve","Run Qwen Code as a local HTTP daemon (Stage 1 experimental: --http-bridge)"],["sessions <command>","Manage Qwen Code sessions"],["update","Check for Qwen Code updates and install if available"]];var MCP_COMMANDS=[["add <name> <commandOrUrl> [args...]","Add a server"],["remove <name>","Remove a server"],["list","List all configured MCP servers"],["reconnect [server-name]","Reconnect to MCP servers"],["approve [name]","Approve a pending MCP server"],["reject [name]","Reject a pending MCP server"]];function flagName(name){return name.length===1?`-${name}`:`--${name}`}__name(flagName,"flagName");function optionAliases(config){const alias=config.alias;if(!alias){return[]}return typeof alias==="string"?[alias]:[...alias]}__name(optionAliases,"optionAliases");function optionFlagNames(option,config){return[flagName(option),...optionAliases(config).map(flagName)]}__name(optionFlagNames,"optionFlagNames");var VALUE_FLAGS=new Set(TOP_LEVEL_HELP_OPTIONS.flatMap(([option,config])=>config.type==="string"||config.type==="number"||config.type==="array"?optionFlagNames(option,config):[]));VALUE_FLAGS.add("--sandbox-session-id");var BASE_VALUE_FLAGS=new Set(["--model","-m","--fallback-model","--prompt","-p","--prompt-interactive","-i","--output-format","-o","--resume","-r"]);var KNOWN_FAST_PATH_FLAGS=new Set(TOP_LEVEL_HELP_OPTIONS.flatMap(([option,config])=>optionFlagNames(option,config)));for(const flag of["--help","-h","--version","-v"]){KNOWN_FAST_PATH_FLAGS.add(flag)}KNOWN_FAST_PATH_FLAGS.add("--sandbox-session-id");KNOWN_FAST_PATH_FLAGS.add("--experimental-acp");KNOWN_FAST_PATH_FLAGS.add("--experimental-skills");function isValueToken(arg){return arg!==void 0&&arg!=="--"&&!arg.startsWith("-")}__name(isValueToken,"isValueToken");function argvSafeForFastPath(argv){for(let i=0;i<argv.length;i++){const token=argv[i];if(token==="--"){return true}if(!token.startsWith("-")){return false}if(!KNOWN_FAST_PATH_FLAGS.has(token)){return false}i=skipOptionValues(argv,i)}return true}__name(argvSafeForFastPath,"argvSafeForFastPath");function skipOptionValues(argv,index){const raw=argv[index];const eq=raw.indexOf("=");const flag=eq===-1?raw:raw.slice(0,eq);if(!VALUE_FLAGS.has(flag)){return index}return eq===-1&&isValueToken(argv[index+1])?index+1:index}__name(skipOptionValues,"skipOptionValues");function writeStdoutLine(line){process.stdout.write(line.endsWith("\n")?line:`${line}
5
- `)}__name(writeStdoutLine,"writeStdoutLine");function hasFlag(argv,long,short){for(let i=0;i<argv.length;i++){const arg=argv[i];if(arg==="--"){return false}if(BASE_VALUE_FLAGS.has(arg)){i++;continue}i=skipOptionValues(argv,i);if(arg===long||arg===short){return true}}return false}__name(hasFlag,"hasFlag");function hasVersionToken(argv){for(let i=0;i<argv.length;i++){const arg=argv[i];if(arg==="--"){return false}if(BASE_VALUE_FLAGS.has(arg)){i++;continue}if(arg==="--version"||arg==="-v"){return true}}return false}__name(hasVersionToken,"hasVersionToken");async function buildTopLevelHelpParser(){const{default:yargs}=await import("./chunks/yargs-QJKU336Y.js");const parser=yargs([]).locale("en").scriptName("qwen").usage(TOP_LEVEL_USAGE).version("0.25.2-preview.1").alias("v","version").help().alias("h","help").strict().demandCommand(0,0);for(const[option,config]of TOP_LEVEL_HELP_OPTIONS){parser.option(option,config)}for(const[option,message]of Object.entries(TOP_LEVEL_DEPRECATED_OPTIONS)){parser.deprecateOption(option,message)}parser.command(DEFAULT_COMMAND,DEFAULT_COMMAND_DESC,defaultCmd=>defaultCmd.positional("query",QUERY_POSITIONAL));for(const[command,description]of TOP_LEVEL_COMMANDS){parser.command(command,description)}parser.wrap(parser.terminalWidth());return parser}__name(buildTopLevelHelpParser,"buildTopLevelHelpParser");function firstPositionalArg(argv){for(let i=0;i<argv.length;i++){const arg=argv[i];if(arg==="--"){return void 0}if(BASE_VALUE_FLAGS.has(arg)){i++;continue}i=skipOptionValues(argv,i);if(!arg.startsWith("-")){return arg}}return void 0}__name(firstPositionalArg,"firstPositionalArg");function normalizeMcpFastPathArgv(argv){if(argv[0]==="mcp"&&argv[1]==="--"){return[argv[0],...argv.slice(2)]}return argv}__name(normalizeMcpFastPathArgv,"normalizeMcpFastPathArgv");function resolveBootstrapRoute(rawArgv){const argv=normalizeServeFastPathArgv(rawArgv);if(hasVersionToken(argv)){return"version"}const fastPathSafe=argvSafeForFastPath(argv);const firstPositional=firstPositionalArg(argv);if(fastPathSafe&&hasFlag(argv,"--help","-h")&&firstPositional===void 0){return"help"}const firstArg=argv[0];if(firstArg==="serve"){return"serve"}if(firstArg==="mcp"){return"mcp"}if(firstArg==="managed-runtime-worker"){return"managed-runtime-worker"}if(firstArg==="agents"&&argv[1]==="session-send-mcp"){return"session-send-mcp"}return"default"}__name(resolveBootstrapRoute,"resolveBootstrapRoute");async function printTopLevelHelp(){const help=await(await buildTopLevelHelpParser()).getHelp();writeStdoutLine(help)}__name(printTopLevelHelp,"printTopLevelHelp");function printMcpHelp(){const lines=["Usage: qwen mcp <command>","","Manage MCP servers","","Commands:",...MCP_COMMANDS.map(([command,description])=>` qwen mcp ${command} ${description}`)];writeStdoutLine(lines.join("\n"))}__name(printMcpHelp,"printMcpHelp");async function printBootstrapVersion(){if("0.25.2-preview.1"){writeStdoutLine("0.25.2-preview.1");return}const{getCliVersion}=await import("./chunks/version-AOKDKXXZ.js");writeStdoutLine(await getCliVersion())}__name(printBootstrapVersion,"printBootstrapVersion");async function runMcpFastPath(rawArgv){const argv=normalizeMcpFastPathArgv(normalizeServeFastPathArgv(rawArgv));const hasSubcommand=argv.length>1&&!argv[1].startsWith("-");if(!hasSubcommand){printMcpHelp();return}const[{default:yargsInstance},{mcpCommand}]=await Promise.all([import("./chunks/yargs-QJKU336Y.js"),import("./chunks/mcp-RDDGN4JK.js")]);const parser=yargsInstance([]).scriptName("qwen").command(mcpCommand).version(false).help().alias("h","help").strict().strictCommands().demandCommand(1,"You need at least one command before continuing.").fail((message,error,yargs)=>{writeStderrLine(message||error?.message||"Unknown argument error");yargs.showHelp();process.exitCode=1}).exitProcess(false);if(hasFlag(argv.slice(2),"--help","-h")){await parseYargsHelp(parser,argv);return}await parseYargsCommand(parser,argv)}__name(runMcpFastPath,"runMcpFastPath");async function parseYargsHelp(parser,argv){await new Promise((resolve,reject)=>{parser.parse(argv,(error,_argv,output)=>{if(output){writeStdoutLine(output)}if(error){reject(error);return}resolve()})})}__name(parseYargsHelp,"parseYargsHelp");async function parseYargsCommand(parser,argv){await new Promise((resolve,reject)=>{void Promise.resolve(parser.parse(argv,(error,_argv,output)=>{if(error instanceof FatalError){reject(error);return}if(output)writeStdoutLine(output);if(error){writeStderrLine(error.message);process.exitCode=1}resolve()})).catch(reject)})}__name(parseYargsCommand,"parseYargsCommand");async function runCliEntry(rawArgv=process.argv.slice(2)){if(rawArgv.length===1&&rawArgv[0]==="--workspace-recovery-worker"){const{runWorkspaceRecoveryWorker}=await import("./chunks/workspace-recovery-worker-SA7BNMMV.js");await runWorkspaceRecoveryWorker();return}clearInheritedPeerMessagingEnv();const managedUpdateVersion=process.env["QWEN_CODE_MANAGED_NPM_UPDATE_VERSION"];if(managedUpdateVersion){delete process.env["QWEN_CODE_MANAGED_NPM_UPDATE_VERSION"];delete process.env["QWEN_CODE_EXTERNAL_TOOL_GUARD_TOKEN"];const{installManagedNpmUpdate}=await import("./chunks/managed-npm-update-LFFWFATA.js");await installManagedNpmUpdate(managedUpdateVersion);return}const argv=normalizeServeFastPathArgv(rawArgv);const route=resolveBootstrapRoute(argv);if(route!=="serve"){delete process.env["QWEN_CODE_EXTERNAL_TOOL_GUARD_TOKEN"]}if(route==="version"){await printBootstrapVersion();return}if(route==="serve"){const{tryRunServeFastPath}=await import("./chunks/fast-path-NQQ42XUR.js");if(await tryRunServeFastPath(argv)){return}}else if(route==="mcp"){await runMcpFastPath(argv);return}else if(route==="managed-runtime-worker"){const containerBoot=argv.length===3&&argv[1]==="--container-boot"?argv[2]:void 0;if(argv.length!==1&&!containerBoot){writeStderrLine("Managed Runtime worker arguments are invalid.");process.exitCode=1;return}const{runManagedRuntimeAttestationWorker}=await import("./chunks/managed-runtime-attestation-worker-IV6ZNIAK.js");await runManagedRuntimeAttestationWorker(containerBoot);return}else if(route==="session-send-mcp"){const{readSessionSendMcpUrl}=await import("./chunks/session-send-mcp-APX24NDO.js");const url=readSessionSendMcpUrl(argv.slice(2));if(!url){writeStderrLine("Usage: qwen agents session-send-mcp --url <endpoint>");process.exitCode=1;return}const{runSessionSendMcp}=await import("./chunks/session-send-mcp-server-B3SMVFOC.js");await runSessionSendMcp(url);return}else if(route==="help"){await printTopLevelHelp();return}const acpStartupProfiler=rawArgv.some(arg=>arg==="--acp"||arg==="--experimental-acp")?await import("./chunks/acp-startup-profiler-K56SPQHG.js"):void 0;acpStartupProfiler?.initializeAcpStartupProfiler();acpStartupProfiler?.markAcpStartup("geminiImportStart");const{default:nodeModule}=await import("node:module");nodeModule.enableCompileCache?.();const{main}=await import("./chunks/llm-LMY62H6Z.js");acpStartupProfiler?.markAcpStartup("geminiImportEnd");await main()}__name(runCliEntry,"runCliEntry");async function handleCriticalError(error){const[{FatalError:FatalError2},{AlreadyReportedError}]=await Promise.all([import("./chunks/deferred-core-runtime-Q3JH7XDL.js"),import("./chunks/errors-7ZRLUHEB.js")]);if(error instanceof FatalError2){let errorMessage=error.message;if(!process.env["NO_COLOR"]){errorMessage=`\x1B[31m${errorMessage}\x1B[0m`}writeStderrLine(errorMessage);process.exit(error.exitCode)}if(error instanceof AlreadyReportedError){process.exit(error.exitCode)}writeStderrLine("An unexpected critical error occurred:");if(error instanceof Error){writeStderrLine(error.stack??error.message)}else{writeStderrLine(String(error))}process.exit(1)}__name(handleCriticalError,"handleCriticalError");function writeStderrLine(line){process.stderr.write(line.endsWith("\n")?line:`${line}
4
+ import{handleUncaughtException,isExpectedPtyRaceError}from"./chunks/chunk-CHSXQ2KG.js";import{clearInheritedPeerMessagingEnv}from"./chunks/chunk-NPAX2UFU.js";import{initCpuProfiler}from"./chunks/chunk-SHJNP7OV.js";import{initStartupProfiler}from"./chunks/chunk-H4XFFVZ2.js";import{normalizeServeFastPathArgv}from"./chunks/chunk-X7QN6R6K.js";import{DEFAULT_COMMAND,DEFAULT_COMMAND_DESC,QUERY_POSITIONAL,TOP_LEVEL_DEPRECATED_OPTIONS,TOP_LEVEL_HELP_OPTIONS,TOP_LEVEL_USAGE}from"./chunks/chunk-FUK4Y5AJ.js";import"./chunks/chunk-SPFRORFN.js";import"./chunks/chunk-SLPJ4OII.js";import"./chunks/chunk-4YLXNRRH.js";import{FatalError}from"./chunks/chunk-XYB7GC5U.js";import{init_esbuild_shims}from"./chunks/chunk-VKDAXTCZ.js";import{__name}from"./chunks/chunk-KBWJGX7I.js";init_esbuild_shims();import{accessSync,chmodSync,constants,existsSync,realpathSync,statSync}from"node:fs";import{fileURLToPath,pathToFileURL}from"node:url";initStartupProfiler();initCpuProfiler();var TOP_LEVEL_COMMANDS=[["agents <command>","Session agents: join a coordinator as a runtime"],["auth","Configure authentication (removed)"],["batch <command>","Run many independent requests through the DashScope Batch API"],["board <command>","Share work with other agents through a board"],["channel <command>","Manage messaging channels (Telegram, Discord, etc.)"],["extensions <command>","Manage Qwen Code extensions."],["hooks","Manage Qwen Code hooks (use /hooks in interactive mode)."],["mcp","Manage MCP servers"],["review <command>","Run a review non-interactively (`run`), plus the internal helpers used by the /review skill (PR worktree setup, context fetch, rules loading, presubmit checks, cleanup)"],["sandbox [cmd...]","Inspect the sandbox backend, or run a command inside it"],["serve","Run Qwen Code as a local HTTP daemon (Stage 1 experimental: --http-bridge)"],["sessions <command>","Manage Qwen Code sessions"],["update","Check for Qwen Code updates and install if available"]];var MCP_COMMANDS=[["add <name> <commandOrUrl> [args...]","Add a server"],["remove <name>","Remove a server"],["list","List all configured MCP servers"],["reconnect [server-name]","Reconnect to MCP servers"],["approve [name]","Approve a pending MCP server"],["reject [name]","Reject a pending MCP server"]];function flagName(name){return name.length===1?`-${name}`:`--${name}`}__name(flagName,"flagName");function optionAliases(config){const alias=config.alias;if(!alias){return[]}return typeof alias==="string"?[alias]:[...alias]}__name(optionAliases,"optionAliases");function optionFlagNames(option,config){return[flagName(option),...optionAliases(config).map(flagName)]}__name(optionFlagNames,"optionFlagNames");var VALUE_FLAGS=new Set(TOP_LEVEL_HELP_OPTIONS.flatMap(([option,config])=>config.type==="string"||config.type==="number"||config.type==="array"?optionFlagNames(option,config):[]));VALUE_FLAGS.add("--sandbox-session-id");var BASE_VALUE_FLAGS=new Set(["--model","-m","--fallback-model","--prompt","-p","--prompt-interactive","-i","--output-format","-o","--resume","-r"]);var KNOWN_FAST_PATH_FLAGS=new Set(TOP_LEVEL_HELP_OPTIONS.flatMap(([option,config])=>optionFlagNames(option,config)));for(const flag of["--help","-h","--version","-v"]){KNOWN_FAST_PATH_FLAGS.add(flag)}KNOWN_FAST_PATH_FLAGS.add("--sandbox-session-id");KNOWN_FAST_PATH_FLAGS.add("--experimental-acp");KNOWN_FAST_PATH_FLAGS.add("--experimental-skills");function isValueToken(arg){return arg!==void 0&&arg!=="--"&&!arg.startsWith("-")}__name(isValueToken,"isValueToken");function argvSafeForFastPath(argv){for(let i=0;i<argv.length;i++){const token=argv[i];if(token==="--"){return true}if(!token.startsWith("-")){return false}if(!KNOWN_FAST_PATH_FLAGS.has(token)){return false}i=skipOptionValues(argv,i)}return true}__name(argvSafeForFastPath,"argvSafeForFastPath");function skipOptionValues(argv,index){const raw=argv[index];const eq=raw.indexOf("=");const flag=eq===-1?raw:raw.slice(0,eq);if(!VALUE_FLAGS.has(flag)){return index}return eq===-1&&isValueToken(argv[index+1])?index+1:index}__name(skipOptionValues,"skipOptionValues");function writeStdoutLine(line){process.stdout.write(line.endsWith("\n")?line:`${line}
5
+ `)}__name(writeStdoutLine,"writeStdoutLine");function hasFlag(argv,long,short){for(let i=0;i<argv.length;i++){const arg=argv[i];if(arg==="--"){return false}if(BASE_VALUE_FLAGS.has(arg)){i++;continue}i=skipOptionValues(argv,i);if(arg===long||arg===short){return true}}return false}__name(hasFlag,"hasFlag");function hasVersionToken(argv){for(let i=0;i<argv.length;i++){const arg=argv[i];if(arg==="--"){return false}if(BASE_VALUE_FLAGS.has(arg)){i++;continue}if(arg==="--version"||arg==="-v"){return true}}return false}__name(hasVersionToken,"hasVersionToken");async function buildTopLevelHelpParser(){const{default:yargs}=await import("./chunks/yargs-QJKU336Y.js");const parser=yargs([]).locale("en").scriptName("qwen").usage(TOP_LEVEL_USAGE).version("0.25.2").alias("v","version").help().alias("h","help").strict().demandCommand(0,0);for(const[option,config]of TOP_LEVEL_HELP_OPTIONS){parser.option(option,config)}for(const[option,message]of Object.entries(TOP_LEVEL_DEPRECATED_OPTIONS)){parser.deprecateOption(option,message)}parser.command(DEFAULT_COMMAND,DEFAULT_COMMAND_DESC,defaultCmd=>defaultCmd.positional("query",QUERY_POSITIONAL));for(const[command,description]of TOP_LEVEL_COMMANDS){parser.command(command,description)}parser.wrap(parser.terminalWidth());return parser}__name(buildTopLevelHelpParser,"buildTopLevelHelpParser");function firstPositionalArg(argv){for(let i=0;i<argv.length;i++){const arg=argv[i];if(arg==="--"){return void 0}if(BASE_VALUE_FLAGS.has(arg)){i++;continue}i=skipOptionValues(argv,i);if(!arg.startsWith("-")){return arg}}return void 0}__name(firstPositionalArg,"firstPositionalArg");function normalizeMcpFastPathArgv(argv){if(argv[0]==="mcp"&&argv[1]==="--"){return[argv[0],...argv.slice(2)]}return argv}__name(normalizeMcpFastPathArgv,"normalizeMcpFastPathArgv");function resolveBootstrapRoute(rawArgv){const argv=normalizeServeFastPathArgv(rawArgv);if(hasVersionToken(argv)){return"version"}const fastPathSafe=argvSafeForFastPath(argv);const firstPositional=firstPositionalArg(argv);if(fastPathSafe&&hasFlag(argv,"--help","-h")&&firstPositional===void 0){return"help"}const firstArg=argv[0];if(firstArg==="serve"){return"serve"}if(firstArg==="mcp"){return"mcp"}if(firstArg==="managed-runtime-worker"){return"managed-runtime-worker"}if(firstArg==="agents"&&argv[1]==="session-send-mcp"){return"session-send-mcp"}return"default"}__name(resolveBootstrapRoute,"resolveBootstrapRoute");async function printTopLevelHelp(){const help=await(await buildTopLevelHelpParser()).getHelp();writeStdoutLine(help)}__name(printTopLevelHelp,"printTopLevelHelp");function printMcpHelp(){const lines=["Usage: qwen mcp <command>","","Manage MCP servers","","Commands:",...MCP_COMMANDS.map(([command,description])=>` qwen mcp ${command} ${description}`)];writeStdoutLine(lines.join("\n"))}__name(printMcpHelp,"printMcpHelp");async function printBootstrapVersion(){if("0.25.2"){writeStdoutLine("0.25.2");return}const{getCliVersion}=await import("./chunks/version-3OKRQ6LC.js");writeStdoutLine(await getCliVersion())}__name(printBootstrapVersion,"printBootstrapVersion");async function runMcpFastPath(rawArgv){const argv=normalizeMcpFastPathArgv(normalizeServeFastPathArgv(rawArgv));const hasSubcommand=argv.length>1&&!argv[1].startsWith("-");if(!hasSubcommand){printMcpHelp();return}const[{default:yargsInstance},{mcpCommand}]=await Promise.all([import("./chunks/yargs-QJKU336Y.js"),import("./chunks/mcp-6D236MEH.js")]);const parser=yargsInstance([]).scriptName("qwen").command(mcpCommand).version(false).help().alias("h","help").strict().strictCommands().demandCommand(1,"You need at least one command before continuing.").fail((message,error,yargs)=>{writeStderrLine(message||error?.message||"Unknown argument error");yargs.showHelp();process.exitCode=1}).exitProcess(false);if(hasFlag(argv.slice(2),"--help","-h")){await parseYargsHelp(parser,argv);return}await parseYargsCommand(parser,argv)}__name(runMcpFastPath,"runMcpFastPath");async function parseYargsHelp(parser,argv){await new Promise((resolve,reject)=>{parser.parse(argv,(error,_argv,output)=>{if(output){writeStdoutLine(output)}if(error){reject(error);return}resolve()})})}__name(parseYargsHelp,"parseYargsHelp");async function parseYargsCommand(parser,argv){await new Promise((resolve,reject)=>{void Promise.resolve(parser.parse(argv,(error,_argv,output)=>{if(error instanceof FatalError){reject(error);return}if(output)writeStdoutLine(output);if(error){writeStderrLine(error.message);process.exitCode=1}resolve()})).catch(reject)})}__name(parseYargsCommand,"parseYargsCommand");async function runCliEntry(rawArgv=process.argv.slice(2)){if(rawArgv.length===1&&rawArgv[0]==="--workspace-recovery-worker"){const{runWorkspaceRecoveryWorker}=await import("./chunks/workspace-recovery-worker-SA7BNMMV.js");await runWorkspaceRecoveryWorker();return}clearInheritedPeerMessagingEnv();const managedUpdateVersion=process.env["QWEN_CODE_MANAGED_NPM_UPDATE_VERSION"];if(managedUpdateVersion){delete process.env["QWEN_CODE_MANAGED_NPM_UPDATE_VERSION"];delete process.env["QWEN_CODE_EXTERNAL_TOOL_GUARD_TOKEN"];const{installManagedNpmUpdate}=await import("./chunks/managed-npm-update-5VE662JS.js");await installManagedNpmUpdate(managedUpdateVersion);return}const argv=normalizeServeFastPathArgv(rawArgv);const route=resolveBootstrapRoute(argv);if(route!=="serve"){delete process.env["QWEN_CODE_EXTERNAL_TOOL_GUARD_TOKEN"]}if(route==="version"){await printBootstrapVersion();return}if(route==="serve"){const{tryRunServeFastPath}=await import("./chunks/fast-path-4WHPMNMD.js");if(await tryRunServeFastPath(argv)){return}}else if(route==="mcp"){await runMcpFastPath(argv);return}else if(route==="managed-runtime-worker"){const containerBoot=argv.length===3&&argv[1]==="--container-boot"?argv[2]:void 0;if(argv.length!==1&&!containerBoot){writeStderrLine("Managed Runtime worker arguments are invalid.");process.exitCode=1;return}const{runManagedRuntimeAttestationWorker}=await import("./chunks/managed-runtime-attestation-worker-ASGGZMFM.js");await runManagedRuntimeAttestationWorker(containerBoot);return}else if(route==="session-send-mcp"){const{readSessionSendMcpUrl}=await import("./chunks/session-send-mcp-APX24NDO.js");const url=readSessionSendMcpUrl(argv.slice(2));if(!url){writeStderrLine("Usage: qwen agents session-send-mcp --url <endpoint>");process.exitCode=1;return}const{runSessionSendMcp}=await import("./chunks/session-send-mcp-server-B3SMVFOC.js");await runSessionSendMcp(url);return}else if(route==="help"){await printTopLevelHelp();return}const acpStartupProfiler=rawArgv.some(arg=>arg==="--acp"||arg==="--experimental-acp")?await import("./chunks/acp-startup-profiler-K56SPQHG.js"):void 0;acpStartupProfiler?.initializeAcpStartupProfiler();acpStartupProfiler?.markAcpStartup("geminiImportStart");const{default:nodeModule}=await import("node:module");nodeModule.enableCompileCache?.();const{main}=await import("./chunks/llm-MJMQ34KB.js");acpStartupProfiler?.markAcpStartup("geminiImportEnd");await main()}__name(runCliEntry,"runCliEntry");async function handleCriticalError(error){const[{FatalError:FatalError2},{AlreadyReportedError}]=await Promise.all([import("./chunks/deferred-core-runtime-4HLTINJ6.js"),import("./chunks/errors-NWKSQVL3.js")]);if(error instanceof FatalError2){let errorMessage=error.message;if(!process.env["NO_COLOR"]){errorMessage=`\x1B[31m${errorMessage}\x1B[0m`}writeStderrLine(errorMessage);process.exit(error.exitCode)}if(error instanceof AlreadyReportedError){process.exit(error.exitCode)}writeStderrLine("An unexpected critical error occurred:");if(error instanceof Error){writeStderrLine(error.stack??error.message)}else{writeStderrLine(String(error))}process.exit(1)}__name(handleCriticalError,"handleCriticalError");function writeStderrLine(line){process.stderr.write(line.endsWith("\n")?line:`${line}
6
6
  `)}__name(writeStderrLine,"writeStderrLine");function stampCliEntryEnv(entryPath){if(process.env["QWEN_CODE_CLI"]){return}let entry=entryPath;if(entry===void 0){const entryUrl=new URL("../index.js",import.meta.url);if(entryUrl.protocol!=="file:"){return}entry=fileURLToPath(entryUrl)}if(existsSync(entry)){try{accessSync(entry,constants.X_OK)}catch{try{chmodSync(entry,statSync(entry).mode|73)}catch{}}process.env["QWEN_CODE_CLI"]=entry}}__name(stampCliEntryEnv,"stampCliEntryEnv");async function runCliEntryPoint(run=runCliEntry,handleError=handleCriticalError){stampCliEntryEnv();process.on("uncaughtException",handleUncaughtException);try{await run()}catch(error){try{await handleError(error)}catch(handlerError){writeStderrLine("An unexpected critical error occurred:");writeStderrLine("Original error:");if(error instanceof Error){writeStderrLine(error.stack??error.message)}else{writeStderrLine(String(error))}writeStderrLine("Error handler failed:");if(handlerError instanceof Error){writeStderrLine(handlerError.stack??handlerError.message)}else{writeStderrLine(String(handlerError))}process.exit(1)}}}__name(runCliEntryPoint,"runCliEntryPoint");var isMain=false;if(process.argv[1]!==void 0){try{const argvRealHref=pathToFileURL(realpathSync(process.argv[1])).href;const argvHref=pathToFileURL(process.argv[1]).href;isMain=import.meta.url===argvHref||import.meta.url===argvRealHref}catch{isMain=import.meta.url===pathToFileURL(process.argv[1]).href}}if(isMain){void runCliEntryPoint()}export{MCP_COMMANDS,TOP_LEVEL_COMMANDS,handleCriticalError,handleUncaughtException,isExpectedPtyRaceError,resolveBootstrapRoute,runCliEntry,runCliEntryPoint,stampCliEntryEnv};
7
7
  /**
8
8
  * @license
@@ -1,6 +1,6 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
- import{init_esbuild_shims}from"./chunks/chunk-VKDAXTCZ.js";import"./chunks/chunk-KBWJGX7I.js";init_esbuild_shims();import{Console}from"node:console";globalThis.console=new Console(process.stderr,process.stderr);try{const options=JSON.parse(process.argv[2]??"");process.chdir(options.workspace);const{createExecutionWorkerEnvironment,runExecutionWorker}=await import("./chunks/execution-worker-JR44JTC4.js");await runExecutionWorker(createExecutionWorkerEnvironment(options),process.stdin,process.stdout);process.exit(0)}catch(error){process.stderr.write(`${error instanceof Error?error.message:String(error)}
3
+ import{init_esbuild_shims}from"./chunks/chunk-VKDAXTCZ.js";import"./chunks/chunk-KBWJGX7I.js";init_esbuild_shims();import{Console}from"node:console";globalThis.console=new Console(process.stderr,process.stderr);try{const options=JSON.parse(process.argv[2]??"");process.chdir(options.workspace);const{createExecutionWorkerEnvironment,runExecutionWorker}=await import("./chunks/execution-worker-LWHQMPBV.js");await runExecutionWorker(createExecutionWorkerEnvironment(options),process.stdin,process.stdout);process.exit(0)}catch(error){process.stderr.write(`${error instanceof Error?error.message:String(error)}
4
4
  `);process.exit(1)}
5
5
  /**
6
6
  * @license