@qwen-code/qwen-code 0.19.5-nightly.20260703.b16baf1ff → 0.19.5

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 (165) hide show
  1. package/chunks/{MaxSizedBox-42KZ5OFE.js → MaxSizedBox-5JV77KRA.js} +6 -6
  2. package/chunks/{StandaloneSessionPicker-G4VTICMM.js → StandaloneSessionPicker-MGUGB6PH.js} +17 -17
  3. package/chunks/{acpAgent-6O25PA3M.js → acpAgent-4F36XM3X.js} +53 -55
  4. package/chunks/{agent-SNVTRNV7.js → agent-IWBUZI6A.js} +3 -3
  5. package/chunks/{agent-headless-LNKVTSBX.js → agent-headless-JUTICAYO.js} +3 -3
  6. package/chunks/{bridge-AZZAYKI2.js → bridge-DHZHQ4UV.js} +6 -6
  7. package/chunks/{chunk-ZRHHQFV4.js → chunk-2CAII5HD.js} +1 -1
  8. package/chunks/{chunk-RBLDOR7U.js → chunk-2YH27UNF.js} +1 -1
  9. package/chunks/{chunk-XR7W5VRL.js → chunk-4MCC4XHH.js} +26 -26
  10. package/chunks/{chunk-3GCPLNVF.js → chunk-6KPZJJ6U.js} +9 -9
  11. package/chunks/{chunk-WWOVV2PW.js → chunk-6QTCOQX7.js} +109 -298
  12. package/chunks/{chunk-4JWM2UGC.js → chunk-6QVQZAW6.js} +1 -1
  13. package/chunks/{chunk-XAVV2JAM.js → chunk-BC4R5C5R.js} +5 -5
  14. package/chunks/{chunk-WMLQKZ64.js → chunk-CBJE2PLG.js} +2 -2
  15. package/chunks/{chunk-UEGNXWAX.js → chunk-CHY5C5T4.js} +3 -3
  16. package/chunks/{chunk-FEPEMQR4.js → chunk-CSPSJU5R.js} +13 -13
  17. package/chunks/{chunk-L4CYPEA7.js → chunk-DM4E337C.js} +1 -1
  18. package/chunks/{chunk-XS7IHJ63.js → chunk-DRS2HTNT.js} +5 -5
  19. package/chunks/chunk-EJ7BN3EN.js +11396 -0
  20. package/chunks/{chunk-FVRLDQ7T.js → chunk-EROWZQN7.js} +1 -1
  21. package/chunks/{chunk-C47IJLUT.js → chunk-G4M7FPNY.js} +1 -1
  22. package/chunks/{chunk-DLJKEPXB.js → chunk-HISPEX42.js} +6 -6
  23. package/chunks/{chunk-P5GH4DTN.js → chunk-IMAMNLY6.js} +3 -3
  24. package/chunks/{chunk-YLQSGKAN.js → chunk-J3ERRYYI.js} +2 -2
  25. package/chunks/{chunk-Z75MFQFL.js → chunk-JJ6B3ZD3.js} +2 -2
  26. package/chunks/{chunk-26UO4PLG.js → chunk-JKGCBO3O.js} +3 -3
  27. package/chunks/{chunk-KFO6YNQT.js → chunk-K4I4STSL.js} +2 -2
  28. package/chunks/{chunk-DNV4FSN5.js → chunk-KKQWC6WS.js} +1 -1
  29. package/chunks/{chunk-STP6AYKH.js → chunk-LHMZCIKL.js} +1 -1
  30. package/chunks/{chunk-6NHUWPNL.js → chunk-M5ITDKSM.js} +1 -1
  31. package/chunks/{chunk-QURP4S5U.js → chunk-MDBNFHIO.js} +3 -3
  32. package/chunks/{chunk-AYUVPH6L.js → chunk-MNOXKSM2.js} +1 -1
  33. package/chunks/{chunk-VDIZBM46.js → chunk-NDY7OENU.js} +2 -2
  34. package/chunks/{chunk-HCLTQ3PV.js → chunk-NNEJEBCF.js} +19 -19
  35. package/chunks/{chunk-4UEWG5AS.js → chunk-NSSVORTQ.js} +4 -4
  36. package/chunks/{chunk-O2EZ4VRP.js → chunk-OQHLUA2Y.js} +3 -3
  37. package/chunks/{chunk-4RQIB5UZ.js → chunk-PPFWEV7G.js} +62 -62
  38. package/chunks/{chunk-FB6LGUF4.js → chunk-QHYITL6P.js} +1 -1
  39. package/chunks/{chunk-VJSWLYUL.js → chunk-R3UWLLRQ.js} +1 -1
  40. package/chunks/{chunk-UTWYG2WA.js → chunk-RNGAT2Y2.js} +1 -1
  41. package/chunks/{chunk-7XS7CMSU.js → chunk-RSBQS6M4.js} +1 -1
  42. package/chunks/{chunk-4PGQKUIV.js → chunk-SBMHB6N5.js} +11 -11
  43. package/chunks/{chunk-DNJ2KHWN.js → chunk-SJVPSHXU.js} +4 -4
  44. package/chunks/{chunk-LOEYAC6N.js → chunk-TN6RT6EJ.js} +2 -2
  45. package/chunks/{chunk-F26BNXI2.js → chunk-UJT42DB6.js} +5 -5
  46. package/chunks/{chunk-46IAL3RB.js → chunk-WALEWZ44.js} +1 -1
  47. package/chunks/{chunk-APTOAKV5.js → chunk-WZ724G6K.js} +3 -3
  48. package/chunks/{chunk-FKHE7ZNF.js → chunk-XKZXGIRM.js} +2 -2
  49. package/chunks/{chunk-7K4G2H2H.js → chunk-Y4UQT3PM.js} +1 -1
  50. package/chunks/{chunk-ODPWORQZ.js → chunk-Z7XNVNPM.js} +1 -1
  51. package/chunks/{chunk-WSAAEPPQ.js → chunk-ZISMVA6U.js} +4 -4
  52. package/chunks/{computer-use-UHZAYYGO.js → computer-use-ON3JQUHW.js} +3 -3
  53. package/chunks/{contextCommand-X4WOJ2L4.js → contextCommand-OGCG7W6N.js} +5 -5
  54. package/chunks/{daemon-status-provider-YXWNGOAF.js → daemon-status-provider-P72STMLB.js} +9 -9
  55. package/chunks/{earlyInputCapture-3HUGMAFL.js → earlyInputCapture-DAFHSGVW.js} +3 -3
  56. package/chunks/{edit-QDKRNFZK.js → edit-3QFNCSZH.js} +3 -3
  57. package/chunks/{enter-worktree-ODWIPMOP.js → enter-worktree-62EQQMLD.js} +3 -3
  58. package/chunks/{enterPlanMode-XROL6G5C.js → enterPlanMode-VUQSE4EG.js} +3 -3
  59. package/chunks/{errors-RCPBWFTG.js → errors-PW75PZXE.js} +5 -5
  60. package/chunks/{exit-worktree-BIU7P4TR.js → exit-worktree-VVNH7OVY.js} +3 -3
  61. package/chunks/{exitPlanMode-LWZHZ7CF.js → exitPlanMode-RUYRCYZW.js} +3 -3
  62. package/chunks/{fast-path-7S4NR2WI.js → fast-path-TFRJRTTR.js} +3 -3
  63. package/chunks/{fast-path-settings-RCRXH2JG.js → fast-path-settings-UQLRFDQP.js} +2 -2
  64. package/chunks/{gemini-W7CZCFFV.js → gemini-XW7ZDUVR.js} +53 -58
  65. package/chunks/{geminiContentGenerator-MWZWJAWR.js → geminiContentGenerator-MZDVHVZH.js} +1 -1
  66. package/chunks/{glob-GZ4LUOQT.js → glob-WAY2PUWA.js} +3 -3
  67. package/chunks/{grep-BZ34WAQJ.js → grep-W6CBKSYC.js} +3 -3
  68. package/chunks/{initializer-W4EUD3H7.js → initializer-HK2XE6P2.js} +8 -8
  69. package/chunks/{list-S325XJ2Y.js → list-RVLIIKKL.js} +10 -10
  70. package/chunks/{loadedSettingsAdapter-QP3XBMQI.js → loadedSettingsAdapter-C63OUYZC.js} +8 -8
  71. package/chunks/{monitor-7C33CWA5.js → monitor-FOG36ABM.js} +3 -3
  72. package/chunks/{nonInteractiveCli-FPZS7ROR.js → nonInteractiveCli-6BYQSJTB.js} +34 -36
  73. package/chunks/{notebook-edit-ZXQ25NWU.js → notebook-edit-GC6NXRCX.js} +3 -3
  74. package/chunks/{openaiContentGenerator-FUQ7GNK6.js → openaiContentGenerator-EXR3ZL3Z.js} +2 -2
  75. package/chunks/{pidfile-NPZV5ZIA.js → pidfile-FNZM2DDH.js} +3 -3
  76. package/chunks/{qwenContentGenerator-LNEWYA52.js → qwenContentGenerator-A7B6J4U7.js} +4 -4
  77. package/chunks/{read-file-G6GBNSM3.js → read-file-6JL4ULMY.js} +1 -1
  78. package/chunks/{ripGrep-IGOC7PVL.js → ripGrep-DIUGLJE5.js} +3 -3
  79. package/chunks/{run-qwen-serve-AAA53KS4.js → run-qwen-serve-CME3AKM4.js} +23 -23
  80. package/chunks/{scheduler-SPGJ7ILO.js → scheduler-L7F6GDDT.js} +3 -3
  81. package/chunks/{serve-37UIHUYP.js → serve-SRCBOJGP.js} +9 -9
  82. package/chunks/{server-MFMOYMEB.js → server-QSQ45QFR.js} +46 -46
  83. package/chunks/{session-XRY2CG4Z.js → session-5DG6NXHZ.js} +35 -37
  84. package/chunks/{settings-X5GXXGKH.js → settings-3EEQI4MN.js} +7 -7
  85. package/chunks/{shell-E5HOWJMT.js → shell-B7FNYF5S.js} +3 -3
  86. package/chunks/{skill-FELDZMWO.js → skill-AAOGHD5O.js} +1 -1
  87. package/chunks/{spawnChannel-XLTVHAT6.js → spawnChannel-3CBN3ZLK.js} +5 -5
  88. package/chunks/{src-ZWPLTWTV.js → src-T5A7P7FS.js} +3 -3
  89. package/chunks/{startInteractiveUI-GO6J3SJ7.js → startInteractiveUI-2FGEQ6AS.js} +108 -111
  90. package/chunks/{team-create-WWMKZ3UO.js → team-create-KDF6W6PV.js} +3 -3
  91. package/chunks/{team-plan-approval-CUNEZJOV.js → team-plan-approval-PSFKQX7M.js} +3 -3
  92. package/chunks/{theme-manager-LRBEA5ID.js → theme-manager-5XOA2AO7.js} +3 -3
  93. package/chunks/{tool-search-L57ZRBJF.js → tool-search-LFRILZXC.js} +1 -1
  94. package/chunks/{trustedFolders-DYAOFXN2.js → trustedFolders-7HQY6T6X.js} +4 -4
  95. package/chunks/{validateNonInterActiveAuth-AB4C2FLG.js → validateNonInterActiveAuth-UC27B7BA.js} +31 -33
  96. package/chunks/{workflow-H7YLGTBI.js → workflow-KUTESS6L.js} +4 -4
  97. package/chunks/{workspace-providers-status-UUIBOTKI.js → workspace-providers-status-LJT5AQDS.js} +10 -10
  98. package/chunks/{workspace-service-FATHYK5C.js → workspace-service-YOBYVDXH.js} +15 -15
  99. package/chunks/{workspace-skills-status-KIC3KYPR.js → workspace-skills-status-ONEPXJV6.js} +5 -5
  100. package/chunks/{write-file-ETGUMYAK.js → write-file-FJYBZUHP.js} +3 -3
  101. package/cli-entry.js +8 -81
  102. package/cli.js +55 -348
  103. package/node_modules/@qwen-code/audio-capture/package.json +1 -1
  104. package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
  105. package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
  106. package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
  107. package/package.json +3 -3
  108. package/web-shell/assets/{arc-QjIJgYzv.js → arc-D_rAuMDd.js} +1 -1
  109. package/web-shell/assets/{architectureDiagram-3BPJPVTR-DJkZ9KoB.js → architectureDiagram-3BPJPVTR-DUCzbHVo.js} +1 -1
  110. package/web-shell/assets/{blockDiagram-GPEHLZMM-BlNeekUB.js → blockDiagram-GPEHLZMM-BEEBt1LL.js} +1 -1
  111. package/web-shell/assets/{c4Diagram-AAUBKEIU-B6FDrE3D.js → c4Diagram-AAUBKEIU-5ZJ_DeFL.js} +1 -1
  112. package/web-shell/assets/channel-B5ynH0q8.js +1 -0
  113. package/web-shell/assets/{chunk-2J33WTMH-CZO5-3og.js → chunk-2J33WTMH-Cfw7EiLn.js} +1 -1
  114. package/web-shell/assets/{chunk-4BX2VUAB-CZ2VJPFe.js → chunk-4BX2VUAB-FGuZNCZY.js} +1 -1
  115. package/web-shell/assets/{chunk-55IACEB6-3zVP6pGF.js → chunk-55IACEB6-CaBwYPBF.js} +1 -1
  116. package/web-shell/assets/{chunk-727SXJPM-omuP8Zhh.js → chunk-727SXJPM-BlR04OFz.js} +1 -1
  117. package/web-shell/assets/{chunk-AQP2D5EJ-BK6Ivmyv.js → chunk-AQP2D5EJ-D3_mYJH5.js} +1 -1
  118. package/web-shell/assets/{chunk-FMBD7UC4-NLjjxV0s.js → chunk-FMBD7UC4-7D4q4SbB.js} +1 -1
  119. package/web-shell/assets/{chunk-ND2GUHAM-Dc0JTV8t.js → chunk-ND2GUHAM-BjX_Iwmr.js} +1 -1
  120. package/web-shell/assets/{chunk-QZHKN3VN-ZYp-8jN-.js → chunk-QZHKN3VN-C3Hz_ZQh.js} +1 -1
  121. package/web-shell/assets/classDiagram-4FO5ZUOK-CK3ibywp.js +1 -0
  122. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CK3ibywp.js +1 -0
  123. package/web-shell/assets/{cose-bilkent-S5V4N54A-BNu1jqy7.js → cose-bilkent-S5V4N54A-Ax4UycaT.js} +1 -1
  124. package/web-shell/assets/{dagre-BM42HDAG-0AHvPm2v.js → dagre-BM42HDAG-C6hmPtGt.js} +1 -1
  125. package/web-shell/assets/{diagram-2AECGRRQ-BJsDQdp0.js → diagram-2AECGRRQ-tXZnxjmw.js} +1 -1
  126. package/web-shell/assets/{diagram-5GNKFQAL-C1gNnoxj.js → diagram-5GNKFQAL-99dwIzQG.js} +1 -1
  127. package/web-shell/assets/{diagram-KO2AKTUF-FmgehSoq.js → diagram-KO2AKTUF-Bqhn0-2s.js} +1 -1
  128. package/web-shell/assets/{diagram-LMA3HP47-i7_13R2F.js → diagram-LMA3HP47-DzThVSvo.js} +1 -1
  129. package/web-shell/assets/{diagram-OG6HWLK6-DkUUR1x-.js → diagram-OG6HWLK6-DPE8vjln.js} +1 -1
  130. package/web-shell/assets/{erDiagram-TEJ5UH35-BcwJzw0n.js → erDiagram-TEJ5UH35-KzUKgQCV.js} +1 -1
  131. package/web-shell/assets/{flowDiagram-I6XJVG4X-CCPgwkQS.js → flowDiagram-I6XJVG4X-DBN-DXw5.js} +1 -1
  132. package/web-shell/assets/{ganttDiagram-6RSMTGT7-C3g0sliF.js → ganttDiagram-6RSMTGT7-DuBsP9u8.js} +1 -1
  133. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-DLt4J_oG.js → gitGraphDiagram-PVQCEYII-BjWHMyKR.js} +1 -1
  134. package/web-shell/assets/{index-DasTT8n6.js → index-CWzDaQT5.js} +105 -105
  135. package/web-shell/assets/{infoDiagram-5YYISTIA-DMO0nW8F.js → infoDiagram-5YYISTIA-BVux0vP6.js} +1 -1
  136. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-qSN9LjC5.js → ishikawaDiagram-YF4QCWOH-2qzw7f--.js} +1 -1
  137. package/web-shell/assets/{journeyDiagram-JHISSGLW-CQZH-jC2.js → journeyDiagram-JHISSGLW-Dnl65sxL.js} +1 -1
  138. package/web-shell/assets/{kanban-definition-UN3LZRKU-Cu6qk5En.js → kanban-definition-UN3LZRKU-BElSQYtY.js} +1 -1
  139. package/web-shell/assets/{linear-Dpp4BWJF.js → linear-BjoycSSY.js} +1 -1
  140. package/web-shell/assets/{mermaid.core-DDAcmZsz.js → mermaid.core-xe6bvMRz.js} +5 -5
  141. package/web-shell/assets/{mindmap-definition-RKZ34NQL-G3JXxnUU.js → mindmap-definition-RKZ34NQL-D8DQgI4U.js} +1 -1
  142. package/web-shell/assets/{pieDiagram-4H26LBE5-ABQwHraX.js → pieDiagram-4H26LBE5-Dwh7Gp7c.js} +1 -1
  143. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-BUWZV-ho.js → quadrantDiagram-W4KKPZXB-BXKNBln2.js} +1 -1
  144. package/web-shell/assets/{requirementDiagram-4Y6WPE33-XHg5n00A.js → requirementDiagram-4Y6WPE33-BzaC3cIA.js} +1 -1
  145. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-Bwzw0RtM.js → sankeyDiagram-5OEKKPKP-DP2t7eZk.js} +1 -1
  146. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CGYLtnFV.js → sequenceDiagram-3UESZ5HK-XlFiWEYv.js} +1 -1
  147. package/web-shell/assets/{stateDiagram-AJRCARHV-BG1UhKch.js → stateDiagram-AJRCARHV-CupgUMJO.js} +1 -1
  148. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-By3E4QwN.js +1 -0
  149. package/web-shell/assets/{timeline-definition-PNZ67QCA-B_tY-Dyz.js → timeline-definition-PNZ67QCA-DstuGywa.js} +1 -1
  150. package/web-shell/assets/{vennDiagram-CIIHVFJN-Crp_Rw_L.js → vennDiagram-CIIHVFJN-CnbNp6zu.js} +1 -1
  151. package/web-shell/assets/{wardley-L42UT6IY-DR27pFXX.js → wardley-L42UT6IY-DnvoHq6R.js} +1 -1
  152. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BM_CRFgm.js → wardleyDiagram-YWT4CUSO-Cz0xHEWB.js} +1 -1
  153. package/web-shell/assets/{xychartDiagram-2RQKCTM6-DO2Z2lWl.js → xychartDiagram-2RQKCTM6-p36gfo88.js} +1 -1
  154. package/web-shell/index.html +1 -1
  155. package/chunks/chunk-3RW4AZJV.js +0 -5063
  156. package/chunks/chunk-DOYHOG47.js +0 -949
  157. package/chunks/chunk-E2K45AJ7.js +0 -5448
  158. package/chunks/mcp-LRKXM6OS.js +0 -66
  159. package/chunks/version-2A66AIB2.js +0 -10
  160. package/chunks/yargs-B64EYTCF.js +0 -10
  161. package/web-shell/assets/channel-M6R-XOoS.js +0 -1
  162. package/web-shell/assets/classDiagram-4FO5ZUOK-B7rcL2Jc.js +0 -1
  163. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B7rcL2Jc.js +0 -1
  164. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CSG8MpoN.js +0 -1
  165. package/chunks/{channel-worker-supervisor-C2J3TIOV.js → channel-worker-supervisor-EVPAYNZ5.js} +3 -3
@@ -2,29 +2,29 @@
2
2
  "use strict";
3
3
  import {
4
4
  createDaemonWorkspaceService
5
- } from "./chunk-FEPEMQR4.js";
6
- import "./chunk-4JWM2UGC.js";
7
- import "./chunk-AYUVPH6L.js";
8
- import "./chunk-7K4G2H2H.js";
5
+ } from "./chunk-CSPSJU5R.js";
6
+ import "./chunk-MNOXKSM2.js";
7
+ import "./chunk-6QVQZAW6.js";
8
+ import "./chunk-Y4UQT3PM.js";
9
9
  import "./chunk-NIOPRZNN.js";
10
- import {
11
- WorkspacePermissionRulesSessionRequiredError
12
- } from "./chunk-BMFMJINR.js";
13
10
  import "./chunk-P7M4GA57.js";
14
11
  import "./chunk-T22H4V4R.js";
15
12
  import "./chunk-SEZC2725.js";
16
- import "./chunk-STP6AYKH.js";
17
- import "./chunk-XAVV2JAM.js";
18
- import "./chunk-L4CYPEA7.js";
13
+ import "./chunk-LHMZCIKL.js";
14
+ import {
15
+ WorkspacePermissionRulesSessionRequiredError
16
+ } from "./chunk-BMFMJINR.js";
17
+ import "./chunk-BC4R5C5R.js";
18
+ import "./chunk-DM4E337C.js";
19
19
  import "./chunk-TLRYABYP.js";
20
- import "./chunk-4RQIB5UZ.js";
21
- import "./chunk-ODPWORQZ.js";
20
+ import "./chunk-PPFWEV7G.js";
21
+ import "./chunk-Z7XNVNPM.js";
22
22
  import "./chunk-Y6Z2O3WR.js";
23
23
  import "./chunk-QYUE6W3T.js";
24
- import "./chunk-WWOVV2PW.js";
24
+ import "./chunk-6QTCOQX7.js";
25
25
  import "./chunk-5P5XGNYH.js";
26
- import "./chunk-SKAZWEV5.js";
27
26
  import "./chunk-K5PGHDBN.js";
27
+ import "./chunk-SKAZWEV5.js";
28
28
  import "./chunk-QOMAHFYI.js";
29
29
  import "./chunk-G7OQ3RFJ.js";
30
30
  import "./chunk-LKWAVAB5.js";
@@ -42,7 +42,7 @@ import "./chunk-B236XPGF.js";
42
42
  import "./chunk-YXK4GPYO.js";
43
43
  import "./chunk-TOAUDIS7.js";
44
44
  import "./chunk-NPQWQYU6.js";
45
- import "./chunk-UEGNXWAX.js";
45
+ import "./chunk-CHY5C5T4.js";
46
46
  import "./chunk-E6US47KI.js";
47
47
  import "./chunk-UWCTAVOD.js";
48
48
  import "./chunk-OFEVLU4C.js";
@@ -2,14 +2,14 @@
2
2
  "use strict";
3
3
  import {
4
4
  createWorkspaceSkillsStatusProvider
5
- } from "./chunk-LOEYAC6N.js";
5
+ } from "./chunk-TN6RT6EJ.js";
6
6
  import "./chunk-CXBG27SF.js";
7
- import "./chunk-STP6AYKH.js";
7
+ import "./chunk-LHMZCIKL.js";
8
8
  import "./chunk-Y6Z2O3WR.js";
9
- import "./chunk-WWOVV2PW.js";
9
+ import "./chunk-6QTCOQX7.js";
10
10
  import "./chunk-5P5XGNYH.js";
11
- import "./chunk-SKAZWEV5.js";
12
11
  import "./chunk-K5PGHDBN.js";
12
+ import "./chunk-SKAZWEV5.js";
13
13
  import "./chunk-QOMAHFYI.js";
14
14
  import "./chunk-G7OQ3RFJ.js";
15
15
  import "./chunk-LKWAVAB5.js";
@@ -27,7 +27,7 @@ import "./chunk-B236XPGF.js";
27
27
  import "./chunk-YXK4GPYO.js";
28
28
  import "./chunk-TOAUDIS7.js";
29
29
  import "./chunk-NPQWQYU6.js";
30
- import "./chunk-UEGNXWAX.js";
30
+ import "./chunk-CHY5C5T4.js";
31
31
  import "./chunk-E6US47KI.js";
32
32
  import "./chunk-UWCTAVOD.js";
33
33
  import "./chunk-OFEVLU4C.js";
@@ -12,10 +12,10 @@ import {
12
12
  detectLineEnding,
13
13
  getDiffStat,
14
14
  needsUtf8Bom
15
- } from "./chunk-WWOVV2PW.js";
15
+ } from "./chunk-6QTCOQX7.js";
16
16
  import "./chunk-5P5XGNYH.js";
17
- import "./chunk-SKAZWEV5.js";
18
17
  import "./chunk-K5PGHDBN.js";
18
+ import "./chunk-SKAZWEV5.js";
19
19
  import "./chunk-QOMAHFYI.js";
20
20
  import "./chunk-G7OQ3RFJ.js";
21
21
  import "./chunk-LKWAVAB5.js";
@@ -39,7 +39,7 @@ import {
39
39
  getLanguageFromFilePath,
40
40
  getSpecificMimeType,
41
41
  logFileOperation
42
- } from "./chunk-UEGNXWAX.js";
42
+ } from "./chunk-CHY5C5T4.js";
43
43
  import "./chunk-E6US47KI.js";
44
44
  import "./chunk-UWCTAVOD.js";
45
45
  import "./chunk-OFEVLU4C.js";
package/cli-entry.js CHANGED
@@ -1,94 +1,21 @@
1
1
  #!/usr/bin/env node
2
-
3
- /**
4
- * @license
5
- * Copyright 2025 Qwen Code
6
- * SPDX-License-Identifier: Apache-2.0
7
- */
8
-
9
- /**
10
- * Production bin entry wrapper.
11
- *
12
- * For most commands: launches dist/cli.js with --expose-gc so that
13
- * global.gc() is available for the memory-pressure monitor's critical-tier
14
- * cleanup.
15
- *
16
- * For bootstrap fast paths: imports cli.js directly in-process, skipping the
17
- * spawnSync overhead. These paths do not need global.gc(); the normal
18
- * interactive path still relaunches with --expose-gc for the memory-pressure
19
- * monitor.
20
- */
21
-
22
- function hasFlag(flag, alias) {
23
- for (const arg of process.argv.slice(2)) {
24
- if (arg === '--') {
25
- return false;
26
- }
27
- if (arg === flag || arg === alias) {
28
- return true;
29
- }
30
- }
31
- return false;
32
- }
33
-
34
- function isInProcessFastPath() {
35
- const first = process.argv[2];
36
- if (first === 'serve' || first === 'mcp') {
37
- return true;
38
- }
39
- if (first === undefined || first.startsWith('-')) {
40
- return hasFlag('--help', '-h') || hasFlag('--version', '-v');
41
- }
42
- return false;
43
- }
44
-
45
- const isTopLevelVersion =
46
- (process.argv[2] === undefined || process.argv[2].startsWith('-')) &&
47
- hasFlag('--version', '-v');
48
-
49
- if (isTopLevelVersion && process.env['CLI_VERSION']) {
50
- process.stdout.write(`${process.env['CLI_VERSION']}\n`);
51
- process.exit(0);
52
- }
53
-
54
- const { existsSync } = await import('node:fs');
55
- const { fileURLToPath, pathToFileURL } = await import('node:url');
56
- const { dirname, join } = await import('node:path');
2
+ import module from 'node:module';
3
+ import { spawnSync } from 'node:child_process';
4
+ import { fileURLToPath, pathToFileURL } from 'node:url';
5
+ import { dirname, join } from 'node:path';
57
6
 
58
7
  const __dirname = dirname(fileURLToPath(import.meta.url));
59
- const cliPathCandidates = [
60
- join(__dirname, 'cli.js'),
61
- join(__dirname, '..', 'dist', 'cli.js'),
62
- ];
63
- const packageJsonPathCandidates = [
64
- join(__dirname, 'package.json'),
65
- join(__dirname, '..', 'package.json'),
66
- ];
67
- const cliPath =
68
- cliPathCandidates.find((candidate) => existsSync(candidate)) ??
69
- cliPathCandidates[0];
70
- const packageJsonPath =
71
- packageJsonPathCandidates.find((candidate) => existsSync(candidate)) ??
72
- packageJsonPathCandidates[0];
8
+ const cliPath = join(__dirname, 'cli.js');
73
9
 
74
- if (isTopLevelVersion) {
75
- try {
76
- const { readFileSync } = await import('node:fs');
77
- const pkg = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
78
- process.stdout.write(`${pkg.version || 'unknown'}\n`);
79
- process.exit(0);
80
- } catch {
81
- // Fall through to cli.js, which has its own version fallback.
82
- }
10
+ function isServeCommand() {
11
+ return process.argv[2] === 'serve';
83
12
  }
84
13
 
85
- if (isInProcessFastPath()) {
86
- const { default: module } = await import('node:module');
14
+ if (isServeCommand()) {
87
15
  module.enableCompileCache?.();
88
16
  process.argv[1] = cliPath;
89
17
  await import(pathToFileURL(cliPath).href);
90
18
  } else {
91
- const { spawnSync } = await import('node:child_process');
92
19
  const result = spawnSync(
93
20
  process.execPath,
94
21
  ['--expose-gc', cliPath, ...process.argv.slice(2)],
package/cli.js CHANGED
@@ -1,15 +1,16 @@
1
+ #!/usr/bin/env node
1
2
  // Force strict mode and setup for ESM
2
3
  "use strict";
3
4
  import {
4
5
  initCpuProfiler
5
- } from "./chunks/chunk-6NHUWPNL.js";
6
- import "./chunks/chunk-RBLDOR7U.js";
6
+ } from "./chunks/chunk-M5ITDKSM.js";
7
7
  import {
8
8
  initStartupProfiler
9
9
  } from "./chunks/chunk-ITOGNELQ.js";
10
10
  import {
11
- normalizeServeFastPathArgv
11
+ isServeFastPathArgv
12
12
  } from "./chunks/chunk-FXGLL2HL.js";
13
+ import "./chunks/chunk-2YH27UNF.js";
13
14
  import {
14
15
  init_esbuild_shims
15
16
  } from "./chunks/chunk-A4BMJM77.js";
@@ -17,304 +18,23 @@ import {
17
18
  __name
18
19
  } from "./chunks/chunk-J2S4EL5Y.js";
19
20
 
20
- // packages/cli/src/cli.ts
21
+ // packages/cli/index.ts
21
22
  init_esbuild_shims();
22
- import { pathToFileURL } from "node:url";
23
23
  initStartupProfiler();
24
24
  initCpuProfiler();
25
- var TOP_LEVEL_COMMANDS = [
26
- ["auth", "Configure authentication (removed)"],
27
- ["channel <command>", "Manage messaging channels (Telegram, Discord, etc.)"],
28
- ["extensions <command>", "Manage Qwen Code extensions."],
29
- ["hooks", "Manage Qwen Code hooks (use /hooks in interactive mode)."],
30
- ["mcp", "Manage MCP servers"],
31
- [
32
- "review <command>",
33
- "Internal helpers used by the /review skill (PR worktree setup, context fetch, rules loading, presubmit checks, cleanup)"
34
- ],
35
- [
36
- "serve",
37
- "Run Qwen Code as a local HTTP daemon (Stage 1 experimental: --http-bridge)"
38
- ],
39
- ["sessions <command>", "Manage Qwen Code sessions"]
40
- ];
41
- var MCP_COMMANDS = [
42
- ["add <name> <commandOrUrl> [args...]", "Add a server"],
43
- ["remove <name>", "Remove a server"],
44
- ["list", "List all configured MCP servers"],
45
- ["reconnect [server-name]", "Reconnect to MCP servers"],
46
- ["approve [name]", "Approve a pending MCP server"],
47
- ["reject [name]", "Reject a pending MCP server"]
48
- ];
49
- var TOP_LEVEL_HELP_OPTIONS = [
50
- ["model", { alias: "m", type: "string", description: "Model" }],
51
- [
52
- "prompt",
53
- {
54
- alias: "p",
55
- type: "string",
56
- description: "Prompt. Appended to input on stdin (if any)."
57
- }
58
- ],
59
- [
60
- "prompt-interactive",
61
- {
62
- alias: "i",
63
- type: "string",
64
- description: "Execute the provided prompt and continue in interactive mode"
65
- }
66
- ],
67
- [
68
- "safe-mode",
69
- {
70
- type: "boolean",
71
- description: "Disable all customizations (context files, hooks, extensions, skills, MCP servers) for troubleshooting."
72
- }
73
- ],
74
- [
75
- "sandbox",
76
- {
77
- alias: "s",
78
- type: "boolean",
79
- description: "Run in sandbox?"
80
- }
81
- ],
82
- [
83
- "output-format",
84
- {
85
- alias: "o",
86
- type: "string",
87
- choices: ["text", "json", "stream-json"],
88
- description: "The format of the CLI output."
89
- }
90
- ],
91
- [
92
- "continue",
93
- {
94
- alias: "c",
95
- type: "boolean",
96
- description: "Resume the most recent session for the current project."
97
- }
98
- ],
99
- [
100
- "resume",
101
- {
102
- alias: "r",
103
- type: "string",
104
- description: "Resume a specific session by its ID. Use without an ID to show session picker."
105
- }
106
- ]
107
- ];
108
- var VALUE_FLAGS = /* @__PURE__ */ new Set([
109
- "--model",
110
- "-m",
111
- "--prompt",
112
- "-p",
113
- "--prompt-interactive",
114
- "-i",
115
- "--output-format",
116
- "-o",
117
- "--resume",
118
- "-r"
119
- ]);
120
- function writeStdoutLine(line) {
121
- process.stdout.write(line.endsWith("\n") ? line : `${line}
25
+ function writeStderrLine(line) {
26
+ process.stderr.write(line.endsWith("\n") ? line : `${line}
122
27
  `);
123
28
  }
124
- __name(writeStdoutLine, "writeStdoutLine");
125
- function hasFlag(argv, long, short) {
126
- for (let i = 0; i < argv.length; i++) {
127
- const arg = argv[i];
128
- if (arg === "--") {
129
- return false;
130
- }
131
- if (VALUE_FLAGS.has(arg)) {
132
- i++;
133
- continue;
134
- }
135
- if (arg === long || arg === short) {
136
- return true;
137
- }
138
- }
139
- return false;
140
- }
141
- __name(hasFlag, "hasFlag");
142
- async function buildTopLevelHelpParser() {
143
- const { default: yargs } = await import("./chunks/yargs-B64EYTCF.js");
144
- const parser = yargs([]).scriptName("qwen").usage(
145
- "Usage: qwen [options] [command]\n\nQwen Code - Launch an interactive CLI, use -p/--prompt for non-interactive mode"
146
- ).version("0.19.5-nightly.20260703.b16baf1ff").alias("v", "version").help().alias("h", "help").strict().demandCommand(0, 0);
147
- for (const [option, config] of TOP_LEVEL_HELP_OPTIONS) {
148
- parser.option(option, config);
149
- }
150
- for (const [command, description] of TOP_LEVEL_COMMANDS) {
151
- parser.command(command, description);
152
- }
153
- return parser;
154
- }
155
- __name(buildTopLevelHelpParser, "buildTopLevelHelpParser");
156
- function firstPositionalArg(argv) {
157
- for (let i = 0; i < argv.length; i++) {
158
- const arg = argv[i];
159
- if (arg === "--") {
160
- return void 0;
161
- }
162
- if (VALUE_FLAGS.has(arg)) {
163
- i++;
164
- continue;
165
- }
166
- if (!arg.startsWith("-")) {
167
- return arg;
168
- }
169
- }
170
- return void 0;
171
- }
172
- __name(firstPositionalArg, "firstPositionalArg");
173
- function normalizeMcpFastPathArgv(argv) {
174
- if (argv[0] === "mcp" && argv[1] === "--") {
175
- return [argv[0], ...argv.slice(2)];
176
- }
177
- return argv;
178
- }
179
- __name(normalizeMcpFastPathArgv, "normalizeMcpFastPathArgv");
180
- function resolveBootstrapRoute(rawArgv) {
181
- const argv = normalizeServeFastPathArgv(rawArgv);
182
- if (hasFlag(argv, "--version", "-v")) {
183
- return "version";
184
- }
185
- const firstArg = argv[0];
186
- if (firstArg === "serve") {
187
- return "serve";
188
- }
189
- if (firstArg === "mcp") {
190
- return "mcp";
191
- }
192
- const firstPositional = firstPositionalArg(argv);
193
- if (hasFlag(argv, "--help", "-h") && firstPositional === void 0) {
194
- return "help";
195
- }
196
- return "default";
197
- }
198
- __name(resolveBootstrapRoute, "resolveBootstrapRoute");
199
- async function printTopLevelHelp() {
200
- const help = await (await buildTopLevelHelpParser()).getHelp();
201
- writeStdoutLine(help);
202
- }
203
- __name(printTopLevelHelp, "printTopLevelHelp");
204
- function printMcpHelp() {
205
- const lines = [
206
- "Usage: qwen mcp <command>",
207
- "",
208
- "Manage MCP servers",
209
- "",
210
- "Commands:",
211
- ...MCP_COMMANDS.map(
212
- ([command, description]) => ` qwen mcp ${command} ${description}`
213
- )
214
- ];
215
- writeStdoutLine(lines.join("\n"));
216
- }
217
- __name(printMcpHelp, "printMcpHelp");
218
- async function printBootstrapVersion() {
219
- if ("0.19.5-nightly.20260703.b16baf1ff") {
220
- writeStdoutLine("0.19.5-nightly.20260703.b16baf1ff");
221
- return;
222
- }
223
- const { getCliVersion } = await import("./chunks/version-2A66AIB2.js");
224
- writeStdoutLine(await getCliVersion());
225
- }
226
- __name(printBootstrapVersion, "printBootstrapVersion");
227
- async function runMcpFastPath(rawArgv) {
228
- const argv = normalizeMcpFastPathArgv(normalizeServeFastPathArgv(rawArgv));
229
- const hasSubcommand = argv.length > 1 && !argv[1].startsWith("-");
230
- if (!hasSubcommand) {
231
- printMcpHelp();
232
- return;
233
- }
234
- const [{ default: yargsInstance }, { mcpCommand }] = await Promise.all([
235
- import("./chunks/yargs-B64EYTCF.js"),
236
- import("./chunks/mcp-LRKXM6OS.js")
237
- ]);
238
- 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) => {
239
- writeStderrLine(message || error?.message || "Unknown argument error");
240
- yargs.showHelp();
241
- process.exitCode = 1;
242
- }).exitProcess(false);
243
- if (hasFlag(argv.slice(2), "--help", "-h")) {
244
- await parseYargsHelp(parser, argv);
245
- return;
246
- }
247
- await parseYargsCommand(parser, argv);
248
- }
249
- __name(runMcpFastPath, "runMcpFastPath");
250
- async function parseYargsHelp(parser, argv) {
251
- await new Promise((resolve, reject) => {
252
- parser.parse(
253
- argv,
254
- (error, _argv, output) => {
255
- if (output) {
256
- writeStdoutLine(output);
257
- }
258
- if (error) {
259
- reject(error);
260
- return;
261
- }
262
- resolve();
263
- }
264
- );
265
- });
266
- }
267
- __name(parseYargsHelp, "parseYargsHelp");
268
- async function parseYargsCommand(parser, argv) {
269
- await new Promise((resolve) => {
270
- parser.parse(
271
- argv,
272
- (error, _argv, output) => {
273
- if (output) {
274
- writeStdoutLine(output);
275
- }
276
- if (error) {
277
- writeStderrLine(error.message);
278
- process.exitCode = 1;
279
- }
280
- resolve();
281
- }
282
- );
283
- });
284
- }
285
- __name(parseYargsCommand, "parseYargsCommand");
286
- async function runCliEntry(rawArgv = process.argv.slice(2)) {
287
- const argv = normalizeServeFastPathArgv(rawArgv);
288
- const route = resolveBootstrapRoute(argv);
289
- if (route === "version") {
290
- await printBootstrapVersion();
291
- return;
292
- }
293
- if (route === "serve") {
294
- const { tryRunServeFastPath } = await import("./chunks/fast-path-7S4NR2WI.js");
295
- if (await tryRunServeFastPath(argv)) {
296
- return;
297
- }
298
- } else if (route === "mcp") {
299
- await runMcpFastPath(argv);
300
- return;
301
- } else if (route === "help") {
302
- await printTopLevelHelp();
303
- return;
304
- }
305
- const { main } = await import("./chunks/gemini-W7CZCFFV.js");
306
- await main();
307
- }
308
- __name(runCliEntry, "runCliEntry");
309
- function getErrnoCode(error) {
29
+ __name(writeStderrLine, "writeStderrLine");
30
+ var getErrnoCode = /* @__PURE__ */ __name((error) => {
310
31
  if (!error || typeof error !== "object") {
311
32
  return void 0;
312
33
  }
313
34
  const code = error.code;
314
35
  return typeof code === "string" ? code : void 0;
315
- }
316
- __name(getErrnoCode, "getErrnoCode");
317
- function isExpectedPtyRaceError(error) {
36
+ }, "getErrnoCode");
37
+ var isExpectedPtyRaceError = /* @__PURE__ */ __name((error) => {
318
38
  if (!(error instanceof Error)) {
319
39
  return false;
320
40
  }
@@ -326,89 +46,76 @@ function isExpectedPtyRaceError(error) {
326
46
  if (code === "EAGAIN" && message.includes("read") || message.includes("read EAGAIN")) {
327
47
  return true;
328
48
  }
329
- return message.includes("ioctl(2) failed, EBADF") || message.includes("Cannot resize a pty that has already exited");
49
+ if (message.includes("ioctl(2) failed, EBADF") || message.includes("Cannot resize a pty that has already exited")) {
50
+ return true;
51
+ }
52
+ return false;
53
+ }, "isExpectedPtyRaceError");
54
+ async function runCliEntry() {
55
+ if (isServeFastPathArgv(process.argv.slice(2))) {
56
+ const { tryRunServeFastPath } = await import("./chunks/fast-path-TFRJRTTR.js");
57
+ if (await tryRunServeFastPath()) return;
58
+ }
59
+ const { main } = await import("./chunks/gemini-XW7ZDUVR.js");
60
+ await main();
330
61
  }
331
- __name(isExpectedPtyRaceError, "isExpectedPtyRaceError");
62
+ __name(runCliEntry, "runCliEntry");
332
63
  async function handleCriticalError(error) {
333
64
  const [{ FatalError }, { AlreadyReportedError }] = await Promise.all([
334
- import("./chunks/src-ZWPLTWTV.js"),
335
- import("./chunks/errors-RCPBWFTG.js")
65
+ import("./chunks/src-T5A7P7FS.js"),
66
+ import("./chunks/errors-PW75PZXE.js")
336
67
  ]);
337
68
  if (error instanceof FatalError) {
338
69
  let errorMessage = error.message;
339
70
  if (!process.env["NO_COLOR"]) {
340
71
  errorMessage = `\x1B[31m${errorMessage}\x1B[0m`;
341
72
  }
342
- writeStderrLine(errorMessage);
73
+ console.error(errorMessage);
343
74
  process.exit(error.exitCode);
344
75
  }
345
76
  if (error instanceof AlreadyReportedError) {
346
77
  process.exit(error.exitCode);
347
78
  }
348
- writeStderrLine("An unexpected critical error occurred:");
79
+ console.error("An unexpected critical error occurred:");
349
80
  if (error instanceof Error) {
350
- writeStderrLine(error.stack ?? error.message);
81
+ console.error(error.stack);
351
82
  } else {
352
- writeStderrLine(String(error));
83
+ console.error(String(error));
353
84
  }
354
85
  process.exit(1);
355
86
  }
356
87
  __name(handleCriticalError, "handleCriticalError");
357
- function writeStderrLine(line) {
358
- process.stderr.write(line.endsWith("\n") ? line : `${line}
359
- `);
360
- }
361
- __name(writeStderrLine, "writeStderrLine");
362
- async function runCliEntryPoint(run = runCliEntry, handleError = handleCriticalError) {
363
- process.on("uncaughtException", (error) => {
364
- if (isExpectedPtyRaceError(error)) {
365
- return;
366
- }
88
+ process.on("uncaughtException", (error) => {
89
+ if (isExpectedPtyRaceError(error)) {
90
+ return;
91
+ }
92
+ if (error instanceof Error) {
93
+ writeStderrLine(error.stack ?? error.message);
94
+ } else {
95
+ writeStderrLine(String(error));
96
+ }
97
+ process.exit(1);
98
+ });
99
+ runCliEntry().catch((error) => {
100
+ void handleCriticalError(error).catch((handlerError) => {
101
+ console.error("An unexpected critical error occurred:");
102
+ console.error("Original error:");
367
103
  if (error instanceof Error) {
368
- writeStderrLine(error.stack ?? error.message);
104
+ console.error(error.stack);
105
+ } else {
106
+ console.error(String(error));
107
+ }
108
+ console.error("Error handler failed:");
109
+ if (handlerError instanceof Error) {
110
+ console.error(handlerError.stack);
369
111
  } else {
370
- writeStderrLine(String(error));
112
+ console.error(String(handlerError));
371
113
  }
372
114
  process.exit(1);
373
115
  });
374
- try {
375
- await run();
376
- } catch (error) {
377
- try {
378
- await handleError(error);
379
- } catch (handlerError) {
380
- writeStderrLine("An unexpected critical error occurred:");
381
- writeStderrLine("Original error:");
382
- if (error instanceof Error) {
383
- writeStderrLine(error.stack ?? error.message);
384
- } else {
385
- writeStderrLine(String(error));
386
- }
387
- writeStderrLine("Error handler failed:");
388
- if (handlerError instanceof Error) {
389
- writeStderrLine(handlerError.stack ?? handlerError.message);
390
- } else {
391
- writeStderrLine(String(handlerError));
392
- }
393
- process.exit(1);
394
- }
395
- }
396
- }
397
- __name(runCliEntryPoint, "runCliEntryPoint");
398
- if (process.argv[1] !== void 0 && import.meta.url === pathToFileURL(process.argv[1]).href) {
399
- void runCliEntryPoint();
400
- }
401
- export {
402
- MCP_COMMANDS,
403
- TOP_LEVEL_COMMANDS,
404
- handleCriticalError,
405
- isExpectedPtyRaceError,
406
- resolveBootstrapRoute,
407
- runCliEntry,
408
- runCliEntryPoint
409
- };
116
+ });
410
117
  /**
411
118
  * @license
412
- * Copyright 2026 Qwen Team
119
+ * Copyright 2025 Google LLC
413
120
  * SPDX-License-Identifier: Apache-2.0
414
121
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/audio-capture",
3
- "version": "0.19.5-nightly.20260703.b16baf1ff",
3
+ "version": "0.19.5",
4
4
  "description": "Native microphone capture backend for Qwen Code voice input",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",