@qwen-code/qwen-code 0.19.4 → 0.19.5-nightly.20260703.b16baf1ff
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.
- package/bundled/qc-helper/docs/configuration/settings.md +22 -6
- package/bundled/qc-helper/docs/features/commands.md +41 -34
- package/bundled/qc-helper/docs/features/headless.md +19 -18
- package/bundled/qc-helper/docs/qwen-serve.md +34 -0
- package/bundled/qc-helper/docs/support/troubleshooting.md +5 -0
- package/chunks/{MaxSizedBox-ERTNFI22.js → MaxSizedBox-42KZ5OFE.js} +12 -11
- package/chunks/{StandaloneSessionPicker-Y5NGRLRY.js → StandaloneSessionPicker-G4VTICMM.js} +23 -22
- package/chunks/{acpAgent-UMN6OYTR.js → acpAgent-6O25PA3M.js} +82 -78
- package/chunks/{agent-56DZU4ZU.js → agent-SNVTRNV7.js} +9 -8
- package/chunks/{agent-headless-SR7N2IJG.js → agent-headless-LNKVTSBX.js} +9 -8
- package/chunks/{anthropicContentGenerator-5OZFO6WQ.js → anthropicContentGenerator-WL3LJOUB.js} +99 -23
- package/chunks/{artifact-tool-JVZMHA4B.js → artifact-tool-W76WC2JX.js} +1 -1
- package/chunks/{askUserQuestion-CMJZ2F3D.js → askUserQuestion-J3P6TH3V.js} +1 -1
- package/chunks/{bridge-AUHNFOUS.js → bridge-AZZAYKI2.js} +15 -13
- package/chunks/{ca-RYOETBUW.js → ca-HCMB2I54.js} +1 -0
- package/chunks/channel-worker-supervisor-C2J3TIOV.js +665 -0
- package/chunks/{chunk-W2ZOAX7F.js → chunk-26UO4PLG.js} +3 -3
- package/chunks/chunk-2Z43HUXT.js +99 -0
- package/chunks/{chunk-VKGG724L.js → chunk-3GCPLNVF.js} +11 -10
- package/chunks/chunk-3RW4AZJV.js +5063 -0
- package/chunks/{chunk-6AQR7732.js → chunk-46IAL3RB.js} +1 -1
- package/chunks/{chunk-QAFQLTXG.js → chunk-4JWM2UGC.js} +1 -1
- package/chunks/{chunk-C2IHHGBZ.js → chunk-4PGQKUIV.js} +10 -10
- package/chunks/{chunk-PPFWEV7G.js → chunk-4RQIB5UZ.js} +62 -62
- package/chunks/{chunk-L7VH7HQA.js → chunk-4UEWG5AS.js} +29 -4
- package/chunks/{chunk-J3F7X3LW.js → chunk-5B2WNM6V.js} +1 -1
- package/chunks/{chunk-XCUFHOAD.js → chunk-6NHUWPNL.js} +1 -1
- package/chunks/{chunk-HI55Z6PR.js → chunk-7DMQRPC7.js} +401 -58
- package/chunks/{chunk-Q7VHIRDD.js → chunk-7K4G2H2H.js} +1 -1
- package/chunks/{chunk-W6X4FGWX.js → chunk-7XS7CMSU.js} +1 -1
- package/chunks/{chunk-SFN4TEHY.js → chunk-APTOAKV5.js} +4 -4
- package/chunks/{chunk-BNJLLAQ7.js → chunk-AYUVPH6L.js} +1 -1
- package/chunks/chunk-BPFJQGY7.js +193 -0
- package/chunks/{chunk-CUGEBAKG.js → chunk-C47IJLUT.js} +1 -1
- package/chunks/chunk-CXBG27SF.js +35 -0
- package/chunks/{chunk-UQFP2FEF.js → chunk-DG573EOO.js} +1 -1
- package/chunks/{chunk-ND25GXEU.js → chunk-DLJKEPXB.js} +14 -6
- package/chunks/{chunk-MNDTD5E5.js → chunk-DNJ2KHWN.js} +4 -4
- package/chunks/{chunk-KKQWC6WS.js → chunk-DNV4FSN5.js} +1 -1
- package/chunks/chunk-DOYHOG47.js +949 -0
- package/chunks/chunk-E2K45AJ7.js +5448 -0
- package/chunks/{chunk-75X2VLSH.js → chunk-F26BNXI2.js} +26 -5
- package/chunks/{chunk-6TLY5W3B.js → chunk-FB6LGUF4.js} +127 -23
- package/chunks/{chunk-UT5JU5DJ.js → chunk-FEPEMQR4.js} +42 -15
- package/chunks/{chunk-2X2JUE47.js → chunk-FKHE7ZNF.js} +2 -2
- package/chunks/{chunk-YBDZ63KI.js → chunk-FVRLDQ7T.js} +8 -4
- package/chunks/{chunk-DQ74W65K.js → chunk-HCLTQ3PV.js} +47 -20
- package/chunks/{chunk-BQNJBEUA.js → chunk-KFO6YNQT.js} +16 -2
- package/chunks/{chunk-UQYOMM6J.js → chunk-L4CYPEA7.js} +10 -10
- package/chunks/{chunk-MEQWZGK5.js → chunk-L7OJ3ZO3.js} +1 -1
- package/chunks/chunk-LOEYAC6N.js +86 -0
- package/chunks/{chunk-4VZH35PN.js → chunk-MTNTVOJR.js} +2 -0
- package/chunks/{chunk-6CIIP6OE.js → chunk-O2EZ4VRP.js} +3 -3
- package/chunks/{chunk-ZJP5T7IA.js → chunk-ODPWORQZ.js} +1 -1
- package/chunks/{chunk-TTFNVEO5.js → chunk-P5GH4DTN.js} +3 -3
- package/chunks/{chunk-7KPI4LAI.js → chunk-QURP4S5U.js} +3 -3
- package/chunks/{chunk-UANCYOOQ.js → chunk-R6RI2HIC.js} +1 -1
- package/chunks/{chunk-FYKX6XOT.js → chunk-RBLDOR7U.js} +1 -1
- package/chunks/{chunk-EDAGQADF.js → chunk-S6RLAIUR.js} +2 -0
- package/chunks/chunk-SIUQ3YYX.js +78 -0
- package/chunks/{chunk-GICCHL2Q.js → chunk-STP6AYKH.js} +1 -1
- package/chunks/{chunk-HJDF3ZVU.js → chunk-UEGNXWAX.js} +6 -6
- package/chunks/{chunk-PIYV6COW.js → chunk-UTWYG2WA.js} +1 -1
- package/chunks/{chunk-QMIND2AS.js → chunk-UY2TCIZS.js} +15 -1
- package/chunks/{chunk-CG7SVARK.js → chunk-VDIZBM46.js} +2 -2
- package/chunks/{chunk-73H73ASU.js → chunk-VJSWLYUL.js} +1 -1
- package/chunks/{chunk-FNLXLI4I.js → chunk-WMLQKZ64.js} +2 -2
- package/chunks/{chunk-KVPFPC4J.js → chunk-WSAAEPPQ.js} +14 -14
- package/chunks/{chunk-BFG6OZN7.js → chunk-WWOVV2PW.js} +3742 -2737
- package/chunks/{chunk-MKHC4BYZ.js → chunk-XAVV2JAM.js} +21 -5
- package/chunks/{chunk-ZXCVPMIK.js → chunk-XR7W5VRL.js} +167 -54
- package/chunks/{chunk-CS5XYDBO.js → chunk-XS7IHJ63.js} +5 -5
- package/chunks/{chunk-B7KGXIPZ.js → chunk-YCU7QV7Q.js} +11 -4
- package/chunks/{chunk-OJCECIJA.js → chunk-YHTNWGRR.js} +5 -4
- package/chunks/{chunk-7VPC7D7O.js → chunk-YLQSGKAN.js} +2 -2
- package/chunks/{chunk-OAFUMTWW.js → chunk-Z75MFQFL.js} +2 -2
- package/chunks/{chunk-HRZB5CSC.js → chunk-ZRHHQFV4.js} +1 -1
- package/chunks/{computer-use-VWN5HH6A.js → computer-use-UHZAYYGO.js} +9 -8
- package/chunks/{contextCommand-DFFG5KDJ.js → contextCommand-X4WOJ2L4.js} +11 -10
- package/chunks/{cron-create-CSSWJ67I.js → cron-create-6YTCOX6P.js} +1 -1
- package/chunks/{cron-delete-E56CFQ7A.js → cron-delete-E3NIFSUK.js} +1 -1
- package/chunks/{cron-list-BKSINY6Y.js → cron-list-Q64MNQNE.js} +1 -1
- package/chunks/{daemon-5T6IHWJV.js → daemon-EEB2RYOL.js} +23 -0
- package/chunks/{daemon-status-provider-V5UY7O7J.js → daemon-status-provider-YXWNGOAF.js} +18 -16
- package/chunks/{de-HB5NJXGB.js → de-PLLFDERI.js} +1 -0
- package/chunks/{dist-TAVAGZU6.js → dist-AP5V4WYU.js} +54 -14
- package/chunks/{dist-XBOVZ3R5.js → dist-IZP2VV4C.js} +156 -57
- package/chunks/{dist-B7SSDVWT.js → dist-SNXOUPYS.js} +201 -7
- package/chunks/{dist-2HDL5SHQ.js → dist-X4ZDE726.js} +43 -8
- package/chunks/{dist-BL3SL665.js → dist-Z57Q4YF5.js} +1 -1
- package/chunks/{earlyInputCapture-VVYU4FDO.js → earlyInputCapture-3HUGMAFL.js} +9 -8
- package/chunks/{edit-F35PTMBA.js → edit-QDKRNFZK.js} +14 -17
- package/chunks/{en-FZREZFPO.js → en-M4EBUBNU.js} +2 -0
- package/chunks/{enter-worktree-3DIW7EGJ.js → enter-worktree-ODWIPMOP.js} +9 -8
- package/chunks/{enterPlanMode-QNXT77KP.js → enterPlanMode-XROL6G5C.js} +11 -10
- package/chunks/{errors-M53YG76R.js → errors-RCPBWFTG.js} +11 -10
- package/chunks/{exit-worktree-BSDWNWHZ.js → exit-worktree-BIU7P4TR.js} +9 -8
- package/chunks/{exitPlanMode-EL7AY327.js → exitPlanMode-LWZHZ7CF.js} +107 -12
- package/chunks/{fast-path-DUCSMUFW.js → fast-path-7S4NR2WI.js} +6 -4
- package/chunks/{fast-path-settings-UQLRFDQP.js → fast-path-settings-RCRXH2JG.js} +2 -2
- package/chunks/{fr-XY3NQFCM.js → fr-MBMNQSQ6.js} +1 -0
- package/chunks/{gemini-F3IERB37.js → gemini-W7CZCFFV.js} +75 -67
- package/chunks/{geminiContentGenerator-6OULAKFQ.js → geminiContentGenerator-MWZWJAWR.js} +39 -3
- package/chunks/{glob-ZMLFTD4T.js → glob-GZ4LUOQT.js} +9 -8
- package/chunks/{grep-H5X66EI7.js → grep-BZ34WAQJ.js} +9 -8
- package/chunks/{initializer-LEOT2OLH.js → initializer-W4EUD3H7.js} +14 -13
- package/chunks/{ja-J7YAG7SA.js → ja-HFV5QCHR.js} +1 -0
- package/chunks/{list-M3DKXML6.js → list-S325XJ2Y.js} +16 -15
- package/chunks/{loadedSettingsAdapter-OKMQFGGG.js → loadedSettingsAdapter-QP3XBMQI.js} +14 -13
- package/chunks/{loop-wakeup-FPBAVVPR.js → loop-wakeup-G2EHBRGR.js} +2 -2
- package/chunks/{ls-UGWQXPTY.js → ls-IDHUVSAG.js} +1 -1
- package/chunks/{lsp-24WV7NXB.js → lsp-FSRYXGFT.js} +1 -1
- package/chunks/mcp-LRKXM6OS.js +66 -0
- package/chunks/{monitor-ARL5P45R.js → monitor-7C33CWA5.js} +11 -10
- package/chunks/{nonInteractiveCli-NUVLF3YR.js → nonInteractiveCli-FPZS7ROR.js} +46 -43
- package/chunks/{notebook-edit-ANTZ2DDY.js → notebook-edit-ZXQ25NWU.js} +14 -16
- package/chunks/{openaiContentGenerator-TFGMKGHN.js → openaiContentGenerator-FUQ7GNK6.js} +4 -4
- package/chunks/{pidfile-AWTL4C63.js → pidfile-NPZV5ZIA.js} +10 -9
- package/chunks/{pt-6RTAA6SS.js → pt-2THT3YHA.js} +1 -0
- package/chunks/{qwenContentGenerator-6QWAYTWS.js → qwenContentGenerator-LNEWYA52.js} +10 -9
- package/chunks/{read-file-EJY73XQ3.js → read-file-G6GBNSM3.js} +3 -3
- package/chunks/{read-mcp-resource-NCBTPP7X.js → read-mcp-resource-PIJF24RO.js} +1 -1
- package/chunks/{ripGrep-HC4SA6CQ.js → ripGrep-IGOC7PVL.js} +9 -8
- package/chunks/{ru-AUBGJ2C4.js → ru-Z67YJHBG.js} +1 -0
- package/chunks/{run-qwen-serve-AGLZ642J.js → run-qwen-serve-AAA53KS4.js} +131 -38
- package/chunks/{scheduler-TURO7NGY.js → scheduler-SPGJ7ILO.js} +9 -8
- package/chunks/{send-message-3S2NYS3O.js → send-message-33PYFMCT.js} +15 -1
- package/chunks/{serve-5DAMOIDW.js → serve-37UIHUYP.js} +15 -14
- package/chunks/{server-4AGEK2HC.js → server-MFMOYMEB.js} +187 -173
- package/chunks/{session-7ZOQUC4Y.js → session-XRY2CG4Z.js} +47 -44
- package/chunks/{settings-DR4V6L5Y.js → settings-X5GXXGKH.js} +13 -12
- package/chunks/{shell-H5WFKUXH.js → shell-E5HOWJMT.js} +9 -8
- package/chunks/{skill-ANHU5ZCR.js → skill-FELDZMWO.js} +3 -3
- package/chunks/{spawnChannel-VN5LJV7Z.js → spawnChannel-XLTVHAT6.js} +12 -10
- package/chunks/{src-OVZLTVVM.js → src-ZWPLTWTV.js} +21 -10
- package/chunks/{startInteractiveUI-OA22V32P.js → startInteractiveUI-GO6J3SJ7.js} +2609 -2458
- package/chunks/{syntheticOutput-SV7GBHZ5.js → syntheticOutput-YOSWIHDJ.js} +2 -2
- package/chunks/{task-create-W2H2UJCH.js → task-create-NHS2NGB3.js} +3 -2
- package/chunks/{task-list-THBOPV4G.js → task-list-5UIB564R.js} +1 -1
- package/chunks/{task-stop-33FVCNCJ.js → task-stop-HGXZ2VZ3.js} +1 -1
- package/chunks/{task-update-LVFQLXEI.js → task-update-IYYWUILG.js} +34 -2
- package/chunks/{team-create-OYL5CAQO.js → team-create-WWMKZ3UO.js} +9 -8
- package/chunks/{team-delete-NTUQ25UY.js → team-delete-FEKJCU4P.js} +1 -1
- package/chunks/team-plan-approval-CUNEZJOV.js +202 -0
- package/chunks/{theme-manager-XCMPF2SI.js → theme-manager-LRBEA5ID.js} +9 -8
- package/chunks/{todoWrite-SEPO2RI3.js → todoWrite-TKMVZ2HT.js} +1 -1
- package/chunks/{tool-search-YXW55X6Z.js → tool-search-L57ZRBJF.js} +8 -6
- package/chunks/{trustedFolders-TEPGM5YL.js → trustedFolders-DYAOFXN2.js} +10 -9
- package/chunks/{validateNonInterActiveAuth-OQIS7WUE.js → validateNonInterActiveAuth-AB4C2FLG.js} +43 -40
- package/chunks/version-2A66AIB2.js +10 -0
- package/chunks/{web-fetch-OE7LHURA.js → web-fetch-J4PIW36Q.js} +2 -2
- package/chunks/{workflow-RTUWORAP.js → workflow-H7YLGTBI.js} +12 -11
- package/chunks/{workspace-providers-status-DM2XANVB.js → workspace-providers-status-UUIBOTKI.js} +16 -15
- package/chunks/{workspace-service-VKBI2KZD.js → workspace-service-FATHYK5C.js} +21 -20
- package/chunks/workspace-skills-status-KIC3KYPR.js +62 -0
- package/chunks/{write-file-WGALQ53L.js → write-file-ETGUMYAK.js} +14 -18
- package/chunks/yargs-B64EYTCF.js +10 -0
- package/chunks/{zh-V3B4TFWL.js → zh-SLZNSSZB.js} +2 -0
- package/chunks/{zh-TW-6GIKXEAN.js → zh-TW-P53C2SL5.js} +2 -0
- package/cli-entry.js +81 -8
- package/cli.js +348 -55
- package/locales/ca.js +2 -0
- package/locales/de.js +2 -0
- package/locales/en.js +3 -0
- package/locales/fr.js +2 -0
- package/locales/ja.js +2 -0
- package/locales/pt.js +2 -0
- package/locales/ru.js +2 -0
- package/locales/zh-TW.js +3 -0
- package/locales/zh.js +3 -0
- package/node_modules/@qwen-code/audio-capture/package.json +1 -1
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
- package/package.json +6 -15
- package/web-shell/assets/{arc-Det5Ccum.js → arc-QjIJgYzv.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-DqNWVFpl.js → architectureDiagram-3BPJPVTR-DJkZ9KoB.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-CYl7tYBi.js → blockDiagram-GPEHLZMM-BlNeekUB.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DaAEi0NQ.js → c4Diagram-AAUBKEIU-B6FDrE3D.js} +1 -1
- package/web-shell/assets/channel-M6R-XOoS.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-Df2CDEE2.js → chunk-2J33WTMH-CZO5-3og.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DNBFcyL2.js → chunk-4BX2VUAB-CZ2VJPFe.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-BKjF-0HI.js → chunk-55IACEB6-3zVP6pGF.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DYwAwfIM.js → chunk-727SXJPM-omuP8Zhh.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-C6FswLqy.js → chunk-AQP2D5EJ-BK6Ivmyv.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DRWAcZSY.js → chunk-FMBD7UC4-NLjjxV0s.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-AoL16mNR.js → chunk-ND2GUHAM-Dc0JTV8t.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-a8PtLMck.js → chunk-QZHKN3VN-ZYp-8jN-.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-B7rcL2Jc.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B7rcL2Jc.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-C4Aeu5qf.js → cose-bilkent-S5V4N54A-BNu1jqy7.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-BOulamjo.js → dagre-BM42HDAG-0AHvPm2v.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-D1wt2ykO.js → diagram-2AECGRRQ-BJsDQdp0.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BRseus-O.js → diagram-5GNKFQAL-C1gNnoxj.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-XSMkNzpZ.js → diagram-KO2AKTUF-FmgehSoq.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-21KNLqoi.js → diagram-LMA3HP47-i7_13R2F.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-DnUI8F5G.js → diagram-OG6HWLK6-DkUUR1x-.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BVSOMuM2.js → erDiagram-TEJ5UH35-BcwJzw0n.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-fYtDPJsW.js → flowDiagram-I6XJVG4X-CCPgwkQS.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CmRXosW_.js → ganttDiagram-6RSMTGT7-C3g0sliF.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-DPrmySxO.js → gitGraphDiagram-PVQCEYII-DLt4J_oG.js} +1 -1
- package/web-shell/assets/index-9qfvU0_r.css +5 -0
- package/web-shell/assets/index-DasTT8n6.js +717 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-x3VbEuCV.js → infoDiagram-5YYISTIA-DMO0nW8F.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-SmitHRMC.js → ishikawaDiagram-YF4QCWOH-qSN9LjC5.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BxvA551S.js → journeyDiagram-JHISSGLW-CQZH-jC2.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-DNHC16jY.js → kanban-definition-UN3LZRKU-Cu6qk5En.js} +1 -1
- package/web-shell/assets/{linear-CQ6irBL9.js → linear-Dpp4BWJF.js} +1 -1
- package/web-shell/assets/{mermaid.core-DtB6NO1e.js → mermaid.core-DDAcmZsz.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-QKMAgV2v.js → mindmap-definition-RKZ34NQL-G3JXxnUU.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-bvb6dGn6.js → pieDiagram-4H26LBE5-ABQwHraX.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DLgdlG4D.js → quadrantDiagram-W4KKPZXB-BUWZV-ho.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-2M9YH4GF.js → requirementDiagram-4Y6WPE33-XHg5n00A.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-DzwfclTH.js → sankeyDiagram-5OEKKPKP-Bwzw0RtM.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-BvPmTuy2.js → sequenceDiagram-3UESZ5HK-CGYLtnFV.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-BjwUmrJF.js → stateDiagram-AJRCARHV-BG1UhKch.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CSG8MpoN.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-CXzS6qqz.js → timeline-definition-PNZ67QCA-B_tY-Dyz.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-yRSolF5B.js → vennDiagram-CIIHVFJN-Crp_Rw_L.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-ClLJjHPG.js → wardley-L42UT6IY-DR27pFXX.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-VIa6t2p2.js → wardleyDiagram-YWT4CUSO-BM_CRFgm.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CtmrkezW.js → xychartDiagram-2RQKCTM6-DO2Z2lWl.js} +1 -1
- package/web-shell/index.html +28 -3
- package/chunks/channel-worker-supervisor-A74FV522.js +0 -308
- package/chunks/chunk-MVZXZWGT.js +0 -11323
- package/chunks/chunk-S5EQPDTM.js +0 -91
- package/patches/chrome-devtools-mcp+1.4.0.patch +0 -31
- package/postinstall.js +0 -50
- package/web-shell/assets/channel-Bm0bFauD.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK--NgUfb55.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2--NgUfb55.js +0 -1
- package/web-shell/assets/index-BpKnmyFV.js +0 -717
- package/web-shell/assets/index-fLrtxpOG.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-C4L8zXeL.js +0 -1
package/cli-entry.js
CHANGED
|
@@ -1,21 +1,94 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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');
|
|
6
57
|
|
|
7
58
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
const
|
|
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];
|
|
9
73
|
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
}
|
|
12
83
|
}
|
|
13
84
|
|
|
14
|
-
if (
|
|
85
|
+
if (isInProcessFastPath()) {
|
|
86
|
+
const { default: module } = await import('node:module');
|
|
15
87
|
module.enableCompileCache?.();
|
|
16
88
|
process.argv[1] = cliPath;
|
|
17
89
|
await import(pathToFileURL(cliPath).href);
|
|
18
90
|
} else {
|
|
91
|
+
const { spawnSync } = await import('node:child_process');
|
|
19
92
|
const result = spawnSync(
|
|
20
93
|
process.execPath,
|
|
21
94
|
['--expose-gc', cliPath, ...process.argv.slice(2)],
|
package/cli.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
// Force strict mode and setup for ESM
|
|
3
2
|
"use strict";
|
|
4
3
|
import {
|
|
5
4
|
initCpuProfiler
|
|
6
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-6NHUWPNL.js";
|
|
6
|
+
import "./chunks/chunk-RBLDOR7U.js";
|
|
7
7
|
import {
|
|
8
8
|
initStartupProfiler
|
|
9
9
|
} from "./chunks/chunk-ITOGNELQ.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
normalizeServeFastPathArgv
|
|
12
12
|
} from "./chunks/chunk-FXGLL2HL.js";
|
|
13
|
-
import "./chunks/chunk-FYKX6XOT.js";
|
|
14
13
|
import {
|
|
15
14
|
init_esbuild_shims
|
|
16
15
|
} from "./chunks/chunk-A4BMJM77.js";
|
|
@@ -18,23 +17,304 @@ import {
|
|
|
18
17
|
__name
|
|
19
18
|
} from "./chunks/chunk-J2S4EL5Y.js";
|
|
20
19
|
|
|
21
|
-
// packages/cli/
|
|
20
|
+
// packages/cli/src/cli.ts
|
|
22
21
|
init_esbuild_shims();
|
|
22
|
+
import { pathToFileURL } from "node:url";
|
|
23
23
|
initStartupProfiler();
|
|
24
24
|
initCpuProfiler();
|
|
25
|
-
|
|
26
|
-
|
|
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}
|
|
27
122
|
`);
|
|
28
123
|
}
|
|
29
|
-
__name(
|
|
30
|
-
|
|
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) {
|
|
31
310
|
if (!error || typeof error !== "object") {
|
|
32
311
|
return void 0;
|
|
33
312
|
}
|
|
34
313
|
const code = error.code;
|
|
35
314
|
return typeof code === "string" ? code : void 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
315
|
+
}
|
|
316
|
+
__name(getErrnoCode, "getErrnoCode");
|
|
317
|
+
function isExpectedPtyRaceError(error) {
|
|
38
318
|
if (!(error instanceof Error)) {
|
|
39
319
|
return false;
|
|
40
320
|
}
|
|
@@ -46,76 +326,89 @@ var isExpectedPtyRaceError = /* @__PURE__ */ __name((error) => {
|
|
|
46
326
|
if (code === "EAGAIN" && message.includes("read") || message.includes("read EAGAIN")) {
|
|
47
327
|
return true;
|
|
48
328
|
}
|
|
49
|
-
|
|
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-DUCSMUFW.js");
|
|
57
|
-
if (await tryRunServeFastPath()) return;
|
|
58
|
-
}
|
|
59
|
-
const { main } = await import("./chunks/gemini-F3IERB37.js");
|
|
60
|
-
await main();
|
|
329
|
+
return message.includes("ioctl(2) failed, EBADF") || message.includes("Cannot resize a pty that has already exited");
|
|
61
330
|
}
|
|
62
|
-
__name(
|
|
331
|
+
__name(isExpectedPtyRaceError, "isExpectedPtyRaceError");
|
|
63
332
|
async function handleCriticalError(error) {
|
|
64
333
|
const [{ FatalError }, { AlreadyReportedError }] = await Promise.all([
|
|
65
|
-
import("./chunks/src-
|
|
66
|
-
import("./chunks/errors-
|
|
334
|
+
import("./chunks/src-ZWPLTWTV.js"),
|
|
335
|
+
import("./chunks/errors-RCPBWFTG.js")
|
|
67
336
|
]);
|
|
68
337
|
if (error instanceof FatalError) {
|
|
69
338
|
let errorMessage = error.message;
|
|
70
339
|
if (!process.env["NO_COLOR"]) {
|
|
71
340
|
errorMessage = `\x1B[31m${errorMessage}\x1B[0m`;
|
|
72
341
|
}
|
|
73
|
-
|
|
342
|
+
writeStderrLine(errorMessage);
|
|
74
343
|
process.exit(error.exitCode);
|
|
75
344
|
}
|
|
76
345
|
if (error instanceof AlreadyReportedError) {
|
|
77
346
|
process.exit(error.exitCode);
|
|
78
347
|
}
|
|
79
|
-
|
|
80
|
-
if (error instanceof Error) {
|
|
81
|
-
console.error(error.stack);
|
|
82
|
-
} else {
|
|
83
|
-
console.error(String(error));
|
|
84
|
-
}
|
|
85
|
-
process.exit(1);
|
|
86
|
-
}
|
|
87
|
-
__name(handleCriticalError, "handleCriticalError");
|
|
88
|
-
process.on("uncaughtException", (error) => {
|
|
89
|
-
if (isExpectedPtyRaceError(error)) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
348
|
+
writeStderrLine("An unexpected critical error occurred:");
|
|
92
349
|
if (error instanceof Error) {
|
|
93
350
|
writeStderrLine(error.stack ?? error.message);
|
|
94
351
|
} else {
|
|
95
352
|
writeStderrLine(String(error));
|
|
96
353
|
}
|
|
97
354
|
process.exit(1);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
355
|
+
}
|
|
356
|
+
__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;
|
|
107
366
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
console.error(handlerError.stack);
|
|
367
|
+
if (error instanceof Error) {
|
|
368
|
+
writeStderrLine(error.stack ?? error.message);
|
|
111
369
|
} else {
|
|
112
|
-
|
|
370
|
+
writeStderrLine(String(error));
|
|
113
371
|
}
|
|
114
372
|
process.exit(1);
|
|
115
373
|
});
|
|
116
|
-
|
|
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
|
+
};
|
|
117
410
|
/**
|
|
118
411
|
* @license
|
|
119
|
-
* Copyright
|
|
412
|
+
* Copyright 2026 Qwen Team
|
|
120
413
|
* SPDX-License-Identifier: Apache-2.0
|
|
121
414
|
*/
|
package/locales/ca.js
CHANGED
|
@@ -1920,6 +1920,8 @@ export default {
|
|
|
1920
1920
|
'Premeu Ctrl+O per mostrar la sortida completa de les eines',
|
|
1921
1921
|
'Switch to plan mode or exit plan mode':
|
|
1922
1922
|
'Canviar al mode de planificació o sortir del mode de planificació',
|
|
1923
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1924
|
+
'Defineix la intensitat de raonament dels models compatibles ({{tiers}}); mapejada i limitada segons el proveïdor.',
|
|
1923
1925
|
'Exited plan mode. Previous approval mode restored.':
|
|
1924
1926
|
"S'ha sortit del mode de planificació. S'ha restaurat el mode d'aprovació anterior.",
|
|
1925
1927
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
package/locales/de.js
CHANGED
|
@@ -1876,6 +1876,8 @@ export default {
|
|
|
1876
1876
|
'Ctrl+O für vollständige Tool-Ausgabe drücken',
|
|
1877
1877
|
'Switch to plan mode or exit plan mode':
|
|
1878
1878
|
'In den Plan-Modus wechseln oder den Plan-Modus verlassen',
|
|
1879
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1880
|
+
'Legt fest, wie intensiv schlussfolgerungsfähige Modelle denken ({{tiers}}); je nach Anbieter zugeordnet und begrenzt.',
|
|
1879
1881
|
'Exited plan mode. Previous approval mode restored.':
|
|
1880
1882
|
'Plan-Modus verlassen. Vorheriger Genehmigungsmodus wiederhergestellt.',
|
|
1881
1883
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
package/locales/en.js
CHANGED
|
@@ -204,6 +204,7 @@ export default {
|
|
|
204
204
|
'toolDisplayName.TaskStop': 'toolDisplayName.TaskStop',
|
|
205
205
|
'toolDisplayName.TeamCreate': 'toolDisplayName.TeamCreate',
|
|
206
206
|
'toolDisplayName.TeamDelete': 'toolDisplayName.TeamDelete',
|
|
207
|
+
'toolDisplayName.TeamPlanApproval': 'toolDisplayName.TeamPlanApproval',
|
|
207
208
|
'toolDisplayName.SendMessage': 'toolDisplayName.SendMessage',
|
|
208
209
|
'toolDisplayName.StructuredOutput': 'toolDisplayName.StructuredOutput',
|
|
209
210
|
'toolDisplayName.Monitor': 'toolDisplayName.Monitor',
|
|
@@ -2375,6 +2376,8 @@ export default {
|
|
|
2375
2376
|
'Press Ctrl+O to show full tool output',
|
|
2376
2377
|
'Switch to plan mode or exit plan mode':
|
|
2377
2378
|
'Switch to plan mode or exit plan mode',
|
|
2379
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
2380
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.',
|
|
2378
2381
|
'Set a goal — keep working until the condition is met':
|
|
2379
2382
|
'Set a goal — keep working until the condition is met',
|
|
2380
2383
|
'Exited plan mode. Previous approval mode restored.':
|
package/locales/fr.js
CHANGED
|
@@ -1913,6 +1913,8 @@ export default {
|
|
|
1913
1913
|
'Appuyez sur Ctrl+O pour afficher la sortie complète des outils',
|
|
1914
1914
|
'Switch to plan mode or exit plan mode':
|
|
1915
1915
|
'Passer en mode plan ou quitter le mode plan',
|
|
1916
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1917
|
+
"Définit l'intensité de réflexion des modèles compatibles avec le raisonnement ({{tiers}}) ; mappée et limitée selon le fournisseur.",
|
|
1916
1918
|
'Exited plan mode. Previous approval mode restored.':
|
|
1917
1919
|
"Mode plan quitté. Mode d'approbation précédent restauré.",
|
|
1918
1920
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
package/locales/ja.js
CHANGED
|
@@ -1412,6 +1412,8 @@ export default {
|
|
|
1412
1412
|
'Press Ctrl+O to show full tool output': 'Ctrl+O で完全なツール出力を表示',
|
|
1413
1413
|
'Switch to plan mode or exit plan mode':
|
|
1414
1414
|
'プランモードに切り替えるか、プランモードを終了する',
|
|
1415
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1416
|
+
'推論対応モデルの思考の強さを設定します({{tiers}})。プロバイダーごとにマッピング・制限されます。',
|
|
1415
1417
|
'Exited plan mode. Previous approval mode restored.':
|
|
1416
1418
|
'プランモードを終了しました。以前の承認モードに戻りました。',
|
|
1417
1419
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
package/locales/pt.js
CHANGED
|
@@ -1871,6 +1871,8 @@ export default {
|
|
|
1871
1871
|
'Pressione Ctrl+O para exibir a saída completa da ferramenta',
|
|
1872
1872
|
'Switch to plan mode or exit plan mode':
|
|
1873
1873
|
'Alternar para o modo de planejamento ou sair do modo de planejamento',
|
|
1874
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1875
|
+
'Define a intensidade de raciocínio dos modelos compatíveis ({{tiers}}); mapeada e limitada por provedor.',
|
|
1874
1876
|
'Exited plan mode. Previous approval mode restored.':
|
|
1875
1877
|
'Modo de planejamento encerrado. Modo de aprovação anterior restaurado.',
|
|
1876
1878
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
package/locales/ru.js
CHANGED
|
@@ -1877,6 +1877,8 @@ export default {
|
|
|
1877
1877
|
'Нажмите Ctrl+O для показа полного вывода инструментов',
|
|
1878
1878
|
'Switch to plan mode or exit plan mode':
|
|
1879
1879
|
'Переключиться в режим плана или выйти из режима плана',
|
|
1880
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1881
|
+
'Задаёт интенсивность рассуждений у моделей с поддержкой рассуждений ({{tiers}}); сопоставляется и ограничивается для каждого провайдера.',
|
|
1880
1882
|
'Exited plan mode. Previous approval mode restored.':
|
|
1881
1883
|
'Режим плана завершён. Предыдущий режим утверждения восстановлен.',
|
|
1882
1884
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
package/locales/zh-TW.js
CHANGED
|
@@ -195,6 +195,7 @@ export default {
|
|
|
195
195
|
'toolDisplayName.TaskStop': '停止任務',
|
|
196
196
|
'toolDisplayName.TeamCreate': '建立團隊',
|
|
197
197
|
'toolDisplayName.TeamDelete': '刪除團隊',
|
|
198
|
+
'toolDisplayName.TeamPlanApproval': '團隊計畫審批',
|
|
198
199
|
'toolDisplayName.SendMessage': '傳送訊息',
|
|
199
200
|
'toolDisplayName.StructuredOutput': '結構化輸出',
|
|
200
201
|
'toolDisplayName.Monitor': '監控',
|
|
@@ -1914,6 +1915,8 @@ export default {
|
|
|
1914
1915
|
'緊湊模式下隱藏工具輸出和思考過程,界面更簡潔(Ctrl+O 切換)。',
|
|
1915
1916
|
'Press Ctrl+O to show full tool output': '按 Ctrl+O 查看詳細工具調用結果',
|
|
1916
1917
|
'Switch to plan mode or exit plan mode': '切換到計劃模式或退出計劃模式',
|
|
1918
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
1919
|
+
'設定具備推理能力的模型思考的強度({{tiers}});依各供應商進行映射與鉗制。',
|
|
1917
1920
|
'Set a goal — keep working until the condition is met':
|
|
1918
1921
|
'設定目標 — 持續工作直到條件滿足',
|
|
1919
1922
|
'Exited plan mode. Previous approval mode restored.':
|
package/locales/zh.js
CHANGED
|
@@ -196,6 +196,7 @@ export default {
|
|
|
196
196
|
'toolDisplayName.TaskStop': '停止任务',
|
|
197
197
|
'toolDisplayName.TeamCreate': '创建团队',
|
|
198
198
|
'toolDisplayName.TeamDelete': '删除团队',
|
|
199
|
+
'toolDisplayName.TeamPlanApproval': '团队计划审批',
|
|
199
200
|
'toolDisplayName.SendMessage': '发送消息',
|
|
200
201
|
'toolDisplayName.StructuredOutput': '结构化输出',
|
|
201
202
|
'toolDisplayName.Monitor': '监控',
|
|
@@ -2120,6 +2121,8 @@ export default {
|
|
|
2120
2121
|
'紧凑模式下隐藏工具输出和思考过程,界面更简洁(Ctrl+O 切换)。',
|
|
2121
2122
|
'Press Ctrl+O to show full tool output': '按 Ctrl+O 查看详细工具调用结果',
|
|
2122
2123
|
'Switch to plan mode or exit plan mode': '切换到计划模式或退出计划模式',
|
|
2124
|
+
'Set how hard reasoning-capable models think ({{tiers}}); mapped and clamped per provider.':
|
|
2125
|
+
'设置具备推理能力的模型思考的强度({{tiers}});按各提供方进行映射与钳制。',
|
|
2123
2126
|
'Set a goal — keep working until the condition is met':
|
|
2124
2127
|
'设定目标 — 持续工作直到条件满足',
|
|
2125
2128
|
'Exited plan mode. Previous approval mode restored.':
|