@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
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
CHANNEL_DAEMON_WORKER_SENTINEL,
|
|
5
|
-
QWEN_DAEMON_TOKEN_ENV,
|
|
6
|
-
QWEN_DAEMON_URL_ENV,
|
|
7
|
-
QWEN_DAEMON_WORKSPACE_ENV,
|
|
8
|
-
QWEN_SERVER_TOKEN_ENV
|
|
9
|
-
} from "./chunk-EDAGQADF.js";
|
|
10
|
-
import {
|
|
11
|
-
channelSelectionNames
|
|
12
|
-
} from "./chunk-MX2YXRER.js";
|
|
13
|
-
import {
|
|
14
|
-
sanitizeLogText
|
|
15
|
-
} from "./chunk-HI55Z6PR.js";
|
|
16
|
-
import "./chunk-UFC57OYT.js";
|
|
17
|
-
import "./chunk-K5PGHDBN.js";
|
|
18
|
-
import {
|
|
19
|
-
init_esbuild_shims
|
|
20
|
-
} from "./chunk-A4BMJM77.js";
|
|
21
|
-
import {
|
|
22
|
-
__name
|
|
23
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
24
|
-
|
|
25
|
-
// packages/cli/src/serve/channel-worker-supervisor.ts
|
|
26
|
-
init_esbuild_shims();
|
|
27
|
-
import { fork } from "node:child_process";
|
|
28
|
-
import { randomUUID } from "node:crypto";
|
|
29
|
-
var DEFAULT_CHANNEL_WORKER_STARTUP_TIMEOUT_MS = 3e4;
|
|
30
|
-
function selectionChannelArgs(selection) {
|
|
31
|
-
return channelSelectionNames(selection).flatMap((name) => [
|
|
32
|
-
"--channel",
|
|
33
|
-
name
|
|
34
|
-
]);
|
|
35
|
-
}
|
|
36
|
-
__name(selectionChannelArgs, "selectionChannelArgs");
|
|
37
|
-
function defaultSpawnWorker(execPath, argv, options) {
|
|
38
|
-
const child = fork(argv[0], argv.slice(1), {
|
|
39
|
-
execPath,
|
|
40
|
-
cwd: options.cwd,
|
|
41
|
-
env: options.env,
|
|
42
|
-
stdio: options.stdio
|
|
43
|
-
});
|
|
44
|
-
return child;
|
|
45
|
-
}
|
|
46
|
-
__name(defaultSpawnWorker, "defaultSpawnWorker");
|
|
47
|
-
function isReadyMessage(message) {
|
|
48
|
-
return typeof message === "object" && message !== null && message.type === "ready";
|
|
49
|
-
}
|
|
50
|
-
__name(isReadyMessage, "isReadyMessage");
|
|
51
|
-
function requestedChannelNames(selection) {
|
|
52
|
-
return selection.mode === "names" ? [...selection.names] : void 0;
|
|
53
|
-
}
|
|
54
|
-
__name(requestedChannelNames, "requestedChannelNames");
|
|
55
|
-
function sanitizeWorkerError(error) {
|
|
56
|
-
return Array.from(sanitizeLogText(error, 512)).slice(0, 512).join("");
|
|
57
|
-
}
|
|
58
|
-
__name(sanitizeWorkerError, "sanitizeWorkerError");
|
|
59
|
-
function notifyExit(onExit, snapshot) {
|
|
60
|
-
try {
|
|
61
|
-
onExit?.(snapshot);
|
|
62
|
-
} catch {
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
__name(notifyExit, "notifyExit");
|
|
66
|
-
function waitForExit(child, timeoutMs) {
|
|
67
|
-
return new Promise((resolve) => {
|
|
68
|
-
let settled = false;
|
|
69
|
-
const done = /* @__PURE__ */ __name((exited) => {
|
|
70
|
-
if (settled) return;
|
|
71
|
-
settled = true;
|
|
72
|
-
if (timer) clearTimeout(timer);
|
|
73
|
-
resolve(exited);
|
|
74
|
-
}, "done");
|
|
75
|
-
const timer = setTimeout(() => done(false), timeoutMs);
|
|
76
|
-
timer.unref();
|
|
77
|
-
child.once("exit", () => done(true));
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
__name(waitForExit, "waitForExit");
|
|
81
|
-
function hasObservedExit(snapshot) {
|
|
82
|
-
return snapshot.exitCode !== void 0 || snapshot.signal !== void 0;
|
|
83
|
-
}
|
|
84
|
-
__name(hasObservedExit, "hasObservedExit");
|
|
85
|
-
function createWorkerEnv(opts) {
|
|
86
|
-
const env = { ...process.env };
|
|
87
|
-
env["QWEN_CODE_NO_RELAUNCH"] = "true";
|
|
88
|
-
env[CHANNEL_DAEMON_WORKER_SENTINEL] = randomUUID();
|
|
89
|
-
env[QWEN_DAEMON_URL_ENV] = opts.daemonUrl;
|
|
90
|
-
env[QWEN_DAEMON_WORKSPACE_ENV] = opts.workspace;
|
|
91
|
-
delete env[QWEN_SERVER_TOKEN_ENV];
|
|
92
|
-
delete env[QWEN_DAEMON_TOKEN_ENV];
|
|
93
|
-
if (opts.daemonToken) {
|
|
94
|
-
env[QWEN_DAEMON_TOKEN_ENV] = opts.daemonToken;
|
|
95
|
-
}
|
|
96
|
-
return env;
|
|
97
|
-
}
|
|
98
|
-
__name(createWorkerEnv, "createWorkerEnv");
|
|
99
|
-
function createChannelWorkerSupervisor(opts) {
|
|
100
|
-
const spawnWorker = opts.spawnWorker ?? defaultSpawnWorker;
|
|
101
|
-
let child;
|
|
102
|
-
let snapshot = {
|
|
103
|
-
enabled: true,
|
|
104
|
-
state: "disabled",
|
|
105
|
-
channels: channelSelectionNames(opts.selection)
|
|
106
|
-
};
|
|
107
|
-
let ready = false;
|
|
108
|
-
let stopping = false;
|
|
109
|
-
let exitNotified = false;
|
|
110
|
-
const snapshotCopy = /* @__PURE__ */ __name(() => ({
|
|
111
|
-
...snapshot,
|
|
112
|
-
channels: [...snapshot.channels],
|
|
113
|
-
...snapshot.requestedChannels ? { requestedChannels: [...snapshot.requestedChannels] } : {}
|
|
114
|
-
}), "snapshotCopy");
|
|
115
|
-
const setExited = /* @__PURE__ */ __name((state, code, signal, error) => {
|
|
116
|
-
const next = {
|
|
117
|
-
...snapshot,
|
|
118
|
-
state,
|
|
119
|
-
exitCode: code,
|
|
120
|
-
signal
|
|
121
|
-
};
|
|
122
|
-
if (error) {
|
|
123
|
-
next.error = error;
|
|
124
|
-
} else {
|
|
125
|
-
delete next.error;
|
|
126
|
-
}
|
|
127
|
-
snapshot = {
|
|
128
|
-
...next
|
|
129
|
-
};
|
|
130
|
-
}, "setExited");
|
|
131
|
-
return {
|
|
132
|
-
async start() {
|
|
133
|
-
if (child) return;
|
|
134
|
-
ready = false;
|
|
135
|
-
stopping = false;
|
|
136
|
-
exitNotified = false;
|
|
137
|
-
const argv = [
|
|
138
|
-
opts.cliEntryPath,
|
|
139
|
-
"channel",
|
|
140
|
-
"daemon-worker",
|
|
141
|
-
...selectionChannelArgs(opts.selection)
|
|
142
|
-
];
|
|
143
|
-
const env = createWorkerEnv({
|
|
144
|
-
daemonUrl: opts.daemonUrl,
|
|
145
|
-
workspace: opts.workspace,
|
|
146
|
-
...opts.daemonToken ? { daemonToken: opts.daemonToken } : {}
|
|
147
|
-
});
|
|
148
|
-
const requestedChannels = requestedChannelNames(opts.selection);
|
|
149
|
-
snapshot = {
|
|
150
|
-
enabled: true,
|
|
151
|
-
state: "starting",
|
|
152
|
-
channels: channelSelectionNames(opts.selection),
|
|
153
|
-
...requestedChannels ? { requestedChannels } : {},
|
|
154
|
-
startedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
155
|
-
};
|
|
156
|
-
child = spawnWorker(process.execPath, argv, {
|
|
157
|
-
cwd: opts.workspace,
|
|
158
|
-
env,
|
|
159
|
-
stdio: ["ignore", "inherit", "inherit", "ipc"]
|
|
160
|
-
});
|
|
161
|
-
if (child.pid !== void 0) {
|
|
162
|
-
snapshot = { ...snapshot, pid: child.pid };
|
|
163
|
-
}
|
|
164
|
-
const startedChild = child;
|
|
165
|
-
await new Promise((resolve, reject) => {
|
|
166
|
-
let settled = false;
|
|
167
|
-
let exitObserved = false;
|
|
168
|
-
let startupTimer;
|
|
169
|
-
function cleanupReadyWait() {
|
|
170
|
-
if (startupTimer) {
|
|
171
|
-
clearTimeout(startupTimer);
|
|
172
|
-
startupTimer = void 0;
|
|
173
|
-
}
|
|
174
|
-
startedChild.removeListener("message", settleReady);
|
|
175
|
-
}
|
|
176
|
-
__name(cleanupReadyWait, "cleanupReadyWait");
|
|
177
|
-
function failBeforeReady(err) {
|
|
178
|
-
if (settled) return;
|
|
179
|
-
settled = true;
|
|
180
|
-
cleanupReadyWait();
|
|
181
|
-
reject(err);
|
|
182
|
-
}
|
|
183
|
-
__name(failBeforeReady, "failBeforeReady");
|
|
184
|
-
function settleReady(message) {
|
|
185
|
-
if (settled || !isReadyMessage(message)) return;
|
|
186
|
-
if (child !== startedChild) return;
|
|
187
|
-
settled = true;
|
|
188
|
-
ready = true;
|
|
189
|
-
cleanupReadyWait();
|
|
190
|
-
const next = {
|
|
191
|
-
...snapshot,
|
|
192
|
-
state: "running",
|
|
193
|
-
pid: message.pid ?? startedChild.pid,
|
|
194
|
-
channels: message.channels && message.channels.length > 0 ? [...message.channels] : [...snapshot.channels]
|
|
195
|
-
};
|
|
196
|
-
if (message.requestedChannels?.length) {
|
|
197
|
-
next.requestedChannels = [...message.requestedChannels];
|
|
198
|
-
}
|
|
199
|
-
snapshot = next;
|
|
200
|
-
resolve();
|
|
201
|
-
}
|
|
202
|
-
__name(settleReady, "settleReady");
|
|
203
|
-
function settleExit(code, signal) {
|
|
204
|
-
if (child !== startedChild) return;
|
|
205
|
-
exitObserved = true;
|
|
206
|
-
const state = ready ? "exited" : "failed";
|
|
207
|
-
const message = `Channel worker exited before ready (code=${code ?? "null"}, signal=${signal ?? "null"}).`;
|
|
208
|
-
setExited(
|
|
209
|
-
state,
|
|
210
|
-
code,
|
|
211
|
-
signal,
|
|
212
|
-
snapshot.error ?? (ready ? void 0 : sanitizeWorkerError(message))
|
|
213
|
-
);
|
|
214
|
-
if (ready && !stopping && !exitNotified) {
|
|
215
|
-
exitNotified = true;
|
|
216
|
-
notifyExit(opts.onExit, snapshotCopy());
|
|
217
|
-
}
|
|
218
|
-
if (!settled) {
|
|
219
|
-
failBeforeReady(new Error(snapshot.error ?? message));
|
|
220
|
-
}
|
|
221
|
-
child = void 0;
|
|
222
|
-
}
|
|
223
|
-
__name(settleExit, "settleExit");
|
|
224
|
-
function settleError(err) {
|
|
225
|
-
if (child !== startedChild || exitObserved) return;
|
|
226
|
-
if (settled && ready) return;
|
|
227
|
-
snapshot = {
|
|
228
|
-
...snapshot,
|
|
229
|
-
state: "failed",
|
|
230
|
-
error: sanitizeWorkerError(err.message)
|
|
231
|
-
};
|
|
232
|
-
if (!settled) {
|
|
233
|
-
failBeforeReady(new Error(snapshot.error));
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
__name(settleError, "settleError");
|
|
237
|
-
startupTimer = setTimeout(() => {
|
|
238
|
-
const timeoutMs = opts.startupTimeoutMs ?? DEFAULT_CHANNEL_WORKER_STARTUP_TIMEOUT_MS;
|
|
239
|
-
const error = `Channel worker did not become ready within ${timeoutMs}ms.`;
|
|
240
|
-
snapshot = {
|
|
241
|
-
...snapshot,
|
|
242
|
-
state: "failed",
|
|
243
|
-
error: sanitizeWorkerError(error)
|
|
244
|
-
};
|
|
245
|
-
failBeforeReady(new Error(error));
|
|
246
|
-
if (child === startedChild) {
|
|
247
|
-
child.kill("SIGTERM");
|
|
248
|
-
}
|
|
249
|
-
}, opts.startupTimeoutMs ?? DEFAULT_CHANNEL_WORKER_STARTUP_TIMEOUT_MS);
|
|
250
|
-
startupTimer.unref();
|
|
251
|
-
startedChild.on("message", settleReady);
|
|
252
|
-
startedChild.once("exit", settleExit);
|
|
253
|
-
startedChild.once("error", settleError);
|
|
254
|
-
});
|
|
255
|
-
},
|
|
256
|
-
async stop() {
|
|
257
|
-
if (!child || snapshot.state === "exited" || snapshot.state === "failed" && hasObservedExit(snapshot) || snapshot.state === "stopped") {
|
|
258
|
-
child = void 0;
|
|
259
|
-
snapshot = { ...snapshot, state: "stopped" };
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
const exited = waitForExit(child, 5e3);
|
|
263
|
-
stopping = true;
|
|
264
|
-
child.kill("SIGTERM");
|
|
265
|
-
if (!await exited) {
|
|
266
|
-
const killed = waitForExit(child, 2e3);
|
|
267
|
-
child.kill("SIGKILL");
|
|
268
|
-
if (!await killed) {
|
|
269
|
-
child = void 0;
|
|
270
|
-
stopping = false;
|
|
271
|
-
snapshot = {
|
|
272
|
-
...snapshot,
|
|
273
|
-
state: "failed",
|
|
274
|
-
signal: "SIGKILL",
|
|
275
|
-
error: "Channel worker did not exit after SIGKILL."
|
|
276
|
-
};
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
child = void 0;
|
|
281
|
-
stopping = false;
|
|
282
|
-
snapshot = { ...snapshot, state: "stopped" };
|
|
283
|
-
},
|
|
284
|
-
killAllSync() {
|
|
285
|
-
if (!child || snapshot.state === "exited" || snapshot.state === "failed" && hasObservedExit(snapshot) || snapshot.state === "stopped") {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
const preserveFailure = snapshot.state === "failed" && !hasObservedExit(snapshot);
|
|
289
|
-
stopping = true;
|
|
290
|
-
child.kill("SIGKILL");
|
|
291
|
-
child = void 0;
|
|
292
|
-
if (!preserveFailure) {
|
|
293
|
-
snapshot = {
|
|
294
|
-
...snapshot,
|
|
295
|
-
state: "stopped",
|
|
296
|
-
signal: "SIGKILL"
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
snapshot() {
|
|
301
|
-
return snapshotCopy();
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
__name(createChannelWorkerSupervisor, "createChannelWorkerSupervisor");
|
|
306
|
-
export {
|
|
307
|
-
createChannelWorkerSupervisor
|
|
308
|
-
};
|