@qwen-code/qwen-code 0.19.4 → 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.
- 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-5JV77KRA.js} +11 -10
- package/chunks/{StandaloneSessionPicker-Y5NGRLRY.js → StandaloneSessionPicker-MGUGB6PH.js} +21 -20
- package/chunks/{acpAgent-UMN6OYTR.js → acpAgent-4F36XM3X.js} +75 -73
- package/chunks/{agent-56DZU4ZU.js → agent-IWBUZI6A.js} +8 -7
- package/chunks/{agent-headless-SR7N2IJG.js → agent-headless-JUTICAYO.js} +8 -7
- 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-DHZHQ4UV.js} +14 -12
- package/chunks/{ca-RYOETBUW.js → ca-HCMB2I54.js} +1 -0
- package/chunks/channel-worker-supervisor-EVPAYNZ5.js +665 -0
- package/chunks/{chunk-HRZB5CSC.js → chunk-2CAII5HD.js} +1 -1
- package/chunks/{chunk-FYKX6XOT.js → chunk-2YH27UNF.js} +1 -1
- package/chunks/chunk-2Z43HUXT.js +99 -0
- package/chunks/{chunk-ZXCVPMIK.js → chunk-4MCC4XHH.js} +167 -54
- package/chunks/{chunk-J3F7X3LW.js → chunk-5B2WNM6V.js} +1 -1
- package/chunks/{chunk-VKGG724L.js → chunk-6KPZJJ6U.js} +9 -8
- package/chunks/{chunk-BFG6OZN7.js → chunk-6QTCOQX7.js} +3470 -2654
- package/chunks/{chunk-QAFQLTXG.js → chunk-6QVQZAW6.js} +1 -1
- package/chunks/{chunk-HI55Z6PR.js → chunk-7DMQRPC7.js} +401 -58
- package/chunks/{chunk-MKHC4BYZ.js → chunk-BC4R5C5R.js} +20 -4
- package/chunks/chunk-BPFJQGY7.js +193 -0
- package/chunks/{chunk-FNLXLI4I.js → chunk-CBJE2PLG.js} +2 -2
- package/chunks/{chunk-HJDF3ZVU.js → chunk-CHY5C5T4.js} +6 -6
- package/chunks/{chunk-UT5JU5DJ.js → chunk-CSPSJU5R.js} +40 -13
- package/chunks/chunk-CXBG27SF.js +35 -0
- package/chunks/{chunk-UQFP2FEF.js → chunk-DG573EOO.js} +1 -1
- package/chunks/{chunk-UQYOMM6J.js → chunk-DM4E337C.js} +10 -10
- package/chunks/{chunk-CS5XYDBO.js → chunk-DRS2HTNT.js} +5 -5
- package/chunks/{chunk-MVZXZWGT.js → chunk-EJ7BN3EN.js} +125 -52
- package/chunks/{chunk-YBDZ63KI.js → chunk-EROWZQN7.js} +8 -4
- package/chunks/{chunk-CUGEBAKG.js → chunk-G4M7FPNY.js} +1 -1
- package/chunks/{chunk-ND25GXEU.js → chunk-HISPEX42.js} +11 -3
- package/chunks/{chunk-TTFNVEO5.js → chunk-IMAMNLY6.js} +3 -3
- package/chunks/{chunk-7VPC7D7O.js → chunk-J3ERRYYI.js} +2 -2
- package/chunks/{chunk-OAFUMTWW.js → chunk-JJ6B3ZD3.js} +2 -2
- package/chunks/{chunk-W2ZOAX7F.js → chunk-JKGCBO3O.js} +3 -3
- package/chunks/{chunk-BQNJBEUA.js → chunk-K4I4STSL.js} +16 -2
- package/chunks/{chunk-MEQWZGK5.js → chunk-L7OJ3ZO3.js} +1 -1
- package/chunks/{chunk-GICCHL2Q.js → chunk-LHMZCIKL.js} +1 -1
- package/chunks/{chunk-XCUFHOAD.js → chunk-M5ITDKSM.js} +1 -1
- package/chunks/{chunk-7KPI4LAI.js → chunk-MDBNFHIO.js} +3 -3
- package/chunks/{chunk-BNJLLAQ7.js → chunk-MNOXKSM2.js} +1 -1
- package/chunks/{chunk-4VZH35PN.js → chunk-MTNTVOJR.js} +2 -0
- package/chunks/{chunk-CG7SVARK.js → chunk-NDY7OENU.js} +2 -2
- package/chunks/{chunk-DQ74W65K.js → chunk-NNEJEBCF.js} +49 -22
- package/chunks/{chunk-L7VH7HQA.js → chunk-NSSVORTQ.js} +29 -4
- package/chunks/{chunk-6CIIP6OE.js → chunk-OQHLUA2Y.js} +3 -3
- package/chunks/{chunk-6TLY5W3B.js → chunk-QHYITL6P.js} +127 -23
- package/chunks/{chunk-73H73ASU.js → chunk-R3UWLLRQ.js} +1 -1
- package/chunks/{chunk-UANCYOOQ.js → chunk-R6RI2HIC.js} +1 -1
- package/chunks/{chunk-PIYV6COW.js → chunk-RNGAT2Y2.js} +1 -1
- package/chunks/{chunk-W6X4FGWX.js → chunk-RSBQS6M4.js} +1 -1
- package/chunks/{chunk-EDAGQADF.js → chunk-S6RLAIUR.js} +2 -0
- package/chunks/{chunk-C2IHHGBZ.js → chunk-SBMHB6N5.js} +12 -12
- package/chunks/chunk-SIUQ3YYX.js +78 -0
- package/chunks/{chunk-MNDTD5E5.js → chunk-SJVPSHXU.js} +4 -4
- package/chunks/chunk-TN6RT6EJ.js +86 -0
- package/chunks/{chunk-75X2VLSH.js → chunk-UJT42DB6.js} +26 -5
- package/chunks/{chunk-QMIND2AS.js → chunk-UY2TCIZS.js} +15 -1
- package/chunks/{chunk-6AQR7732.js → chunk-WALEWZ44.js} +1 -1
- package/chunks/{chunk-SFN4TEHY.js → chunk-WZ724G6K.js} +4 -4
- package/chunks/{chunk-2X2JUE47.js → chunk-XKZXGIRM.js} +2 -2
- package/chunks/{chunk-Q7VHIRDD.js → chunk-Y4UQT3PM.js} +1 -1
- package/chunks/{chunk-B7KGXIPZ.js → chunk-YCU7QV7Q.js} +11 -4
- package/chunks/{chunk-OJCECIJA.js → chunk-YHTNWGRR.js} +5 -4
- package/chunks/{chunk-ZJP5T7IA.js → chunk-Z7XNVNPM.js} +1 -1
- package/chunks/{chunk-KVPFPC4J.js → chunk-ZISMVA6U.js} +14 -14
- package/chunks/{computer-use-VWN5HH6A.js → computer-use-ON3JQUHW.js} +8 -7
- package/chunks/{contextCommand-DFFG5KDJ.js → contextCommand-OGCG7W6N.js} +10 -9
- 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-P72STMLB.js} +17 -15
- 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-DAFHSGVW.js} +8 -7
- package/chunks/{edit-F35PTMBA.js → edit-3QFNCSZH.js} +13 -16
- package/chunks/{en-FZREZFPO.js → en-M4EBUBNU.js} +2 -0
- package/chunks/{enter-worktree-3DIW7EGJ.js → enter-worktree-62EQQMLD.js} +8 -7
- package/chunks/{enterPlanMode-QNXT77KP.js → enterPlanMode-VUQSE4EG.js} +10 -9
- package/chunks/{errors-M53YG76R.js → errors-PW75PZXE.js} +10 -9
- package/chunks/{exit-worktree-BSDWNWHZ.js → exit-worktree-VVNH7OVY.js} +8 -7
- package/chunks/{exitPlanMode-EL7AY327.js → exitPlanMode-RUYRCYZW.js} +106 -11
- package/chunks/{fast-path-DUCSMUFW.js → fast-path-TFRJRTTR.js} +5 -3
- package/chunks/{fr-XY3NQFCM.js → fr-MBMNQSQ6.js} +1 -0
- package/chunks/{gemini-F3IERB37.js → gemini-XW7ZDUVR.js} +50 -47
- package/chunks/{geminiContentGenerator-6OULAKFQ.js → geminiContentGenerator-MZDVHVZH.js} +39 -3
- package/chunks/{glob-ZMLFTD4T.js → glob-WAY2PUWA.js} +8 -7
- package/chunks/{grep-H5X66EI7.js → grep-W6CBKSYC.js} +8 -7
- package/chunks/{initializer-LEOT2OLH.js → initializer-HK2XE6P2.js} +12 -11
- package/chunks/{ja-J7YAG7SA.js → ja-HFV5QCHR.js} +1 -0
- package/chunks/{list-M3DKXML6.js → list-RVLIIKKL.js} +14 -13
- package/chunks/{loadedSettingsAdapter-OKMQFGGG.js → loadedSettingsAdapter-C63OUYZC.js} +12 -11
- 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/{monitor-ARL5P45R.js → monitor-FOG36ABM.js} +10 -9
- package/chunks/{nonInteractiveCli-NUVLF3YR.js → nonInteractiveCli-6BYQSJTB.js} +40 -39
- package/chunks/{notebook-edit-ANTZ2DDY.js → notebook-edit-GC6NXRCX.js} +13 -15
- package/chunks/{openaiContentGenerator-TFGMKGHN.js → openaiContentGenerator-EXR3ZL3Z.js} +4 -4
- package/chunks/{pidfile-AWTL4C63.js → pidfile-FNZM2DDH.js} +9 -8
- package/chunks/{pt-6RTAA6SS.js → pt-2THT3YHA.js} +1 -0
- package/chunks/{qwenContentGenerator-6QWAYTWS.js → qwenContentGenerator-A7B6J4U7.js} +9 -8
- package/chunks/{read-file-EJY73XQ3.js → read-file-6JL4ULMY.js} +3 -3
- package/chunks/{read-mcp-resource-NCBTPP7X.js → read-mcp-resource-PIJF24RO.js} +1 -1
- package/chunks/{ripGrep-HC4SA6CQ.js → ripGrep-DIUGLJE5.js} +8 -7
- package/chunks/{ru-AUBGJ2C4.js → ru-Z67YJHBG.js} +1 -0
- package/chunks/{run-qwen-serve-AGLZ642J.js → run-qwen-serve-CME3AKM4.js} +123 -30
- package/chunks/{scheduler-TURO7NGY.js → scheduler-L7F6GDDT.js} +8 -7
- package/chunks/{send-message-3S2NYS3O.js → send-message-33PYFMCT.js} +15 -1
- package/chunks/{serve-5DAMOIDW.js → serve-SRCBOJGP.js} +12 -11
- package/chunks/{server-4AGEK2HC.js → server-QSQ45QFR.js} +184 -170
- package/chunks/{session-7ZOQUC4Y.js → session-5DG6NXHZ.js} +41 -40
- package/chunks/{settings-DR4V6L5Y.js → settings-3EEQI4MN.js} +11 -10
- package/chunks/{shell-H5WFKUXH.js → shell-B7FNYF5S.js} +8 -7
- package/chunks/{skill-ANHU5ZCR.js → skill-AAOGHD5O.js} +3 -3
- package/chunks/{spawnChannel-VN5LJV7Z.js → spawnChannel-3CBN3ZLK.js} +11 -9
- package/chunks/{src-OVZLTVVM.js → src-T5A7P7FS.js} +20 -9
- package/chunks/{startInteractiveUI-OA22V32P.js → startInteractiveUI-2FGEQ6AS.js} +2648 -2500
- 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-KDF6W6PV.js} +8 -7
- package/chunks/{team-delete-NTUQ25UY.js → team-delete-FEKJCU4P.js} +1 -1
- package/chunks/team-plan-approval-PSFKQX7M.js +202 -0
- package/chunks/{theme-manager-XCMPF2SI.js → theme-manager-5XOA2AO7.js} +8 -7
- package/chunks/{todoWrite-SEPO2RI3.js → todoWrite-TKMVZ2HT.js} +1 -1
- package/chunks/{tool-search-YXW55X6Z.js → tool-search-LFRILZXC.js} +8 -6
- package/chunks/{trustedFolders-TEPGM5YL.js → trustedFolders-7HQY6T6X.js} +9 -8
- package/chunks/{validateNonInterActiveAuth-OQIS7WUE.js → validateNonInterActiveAuth-UC27B7BA.js} +37 -36
- package/chunks/{web-fetch-OE7LHURA.js → web-fetch-J4PIW36Q.js} +2 -2
- package/chunks/{workflow-RTUWORAP.js → workflow-KUTESS6L.js} +11 -10
- package/chunks/{workspace-providers-status-DM2XANVB.js → workspace-providers-status-LJT5AQDS.js} +14 -13
- package/chunks/{workspace-service-VKBI2KZD.js → workspace-service-YOBYVDXH.js} +16 -15
- package/chunks/workspace-skills-status-ONEPXJV6.js +62 -0
- package/chunks/{write-file-WGALQ53L.js → write-file-FJYBZUHP.js} +13 -17
- package/chunks/{zh-V3B4TFWL.js → zh-SLZNSSZB.js} +2 -0
- package/chunks/{zh-TW-6GIKXEAN.js → zh-TW-P53C2SL5.js} +2 -0
- package/cli.js +6 -6
- 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-D_rAuMDd.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-DqNWVFpl.js → architectureDiagram-3BPJPVTR-DUCzbHVo.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-CYl7tYBi.js → blockDiagram-GPEHLZMM-BEEBt1LL.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DaAEi0NQ.js → c4Diagram-AAUBKEIU-5ZJ_DeFL.js} +1 -1
- package/web-shell/assets/channel-B5ynH0q8.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-Df2CDEE2.js → chunk-2J33WTMH-Cfw7EiLn.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DNBFcyL2.js → chunk-4BX2VUAB-FGuZNCZY.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-BKjF-0HI.js → chunk-55IACEB6-CaBwYPBF.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DYwAwfIM.js → chunk-727SXJPM-BlR04OFz.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-C6FswLqy.js → chunk-AQP2D5EJ-D3_mYJH5.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DRWAcZSY.js → chunk-FMBD7UC4-7D4q4SbB.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-AoL16mNR.js → chunk-ND2GUHAM-BjX_Iwmr.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-a8PtLMck.js → chunk-QZHKN3VN-C3Hz_ZQh.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CK3ibywp.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CK3ibywp.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-C4Aeu5qf.js → cose-bilkent-S5V4N54A-Ax4UycaT.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-BOulamjo.js → dagre-BM42HDAG-C6hmPtGt.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-D1wt2ykO.js → diagram-2AECGRRQ-tXZnxjmw.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BRseus-O.js → diagram-5GNKFQAL-99dwIzQG.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-XSMkNzpZ.js → diagram-KO2AKTUF-Bqhn0-2s.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-21KNLqoi.js → diagram-LMA3HP47-DzThVSvo.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-DnUI8F5G.js → diagram-OG6HWLK6-DPE8vjln.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BVSOMuM2.js → erDiagram-TEJ5UH35-KzUKgQCV.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-fYtDPJsW.js → flowDiagram-I6XJVG4X-DBN-DXw5.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CmRXosW_.js → ganttDiagram-6RSMTGT7-DuBsP9u8.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-DPrmySxO.js → gitGraphDiagram-PVQCEYII-BjWHMyKR.js} +1 -1
- package/web-shell/assets/index-9qfvU0_r.css +5 -0
- package/web-shell/assets/index-CWzDaQT5.js +717 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-x3VbEuCV.js → infoDiagram-5YYISTIA-BVux0vP6.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-SmitHRMC.js → ishikawaDiagram-YF4QCWOH-2qzw7f--.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BxvA551S.js → journeyDiagram-JHISSGLW-Dnl65sxL.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-DNHC16jY.js → kanban-definition-UN3LZRKU-BElSQYtY.js} +1 -1
- package/web-shell/assets/{linear-CQ6irBL9.js → linear-BjoycSSY.js} +1 -1
- package/web-shell/assets/{mermaid.core-DtB6NO1e.js → mermaid.core-xe6bvMRz.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-QKMAgV2v.js → mindmap-definition-RKZ34NQL-D8DQgI4U.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-bvb6dGn6.js → pieDiagram-4H26LBE5-Dwh7Gp7c.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DLgdlG4D.js → quadrantDiagram-W4KKPZXB-BXKNBln2.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-2M9YH4GF.js → requirementDiagram-4Y6WPE33-BzaC3cIA.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-DzwfclTH.js → sankeyDiagram-5OEKKPKP-DP2t7eZk.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-BvPmTuy2.js → sequenceDiagram-3UESZ5HK-XlFiWEYv.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-BjwUmrJF.js → stateDiagram-AJRCARHV-CupgUMJO.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-By3E4QwN.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-CXzS6qqz.js → timeline-definition-PNZ67QCA-DstuGywa.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-yRSolF5B.js → vennDiagram-CIIHVFJN-CnbNp6zu.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-ClLJjHPG.js → wardley-L42UT6IY-DnvoHq6R.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-VIa6t2p2.js → wardleyDiagram-YWT4CUSO-Cz0xHEWB.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CtmrkezW.js → xychartDiagram-2RQKCTM6-p36gfo88.js} +1 -1
- package/web-shell/index.html +28 -3
- package/chunks/channel-worker-supervisor-A74FV522.js +0 -308
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
relaunchApp
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WALEWZ44.js";
|
|
6
6
|
import {
|
|
7
7
|
SHELL_COMMAND_NAME,
|
|
8
8
|
SHELL_NAME,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getCommandSourceGroup,
|
|
14
14
|
getCommandSubcommandNames,
|
|
15
15
|
useSessionStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IMAMNLY6.js";
|
|
17
17
|
import {
|
|
18
18
|
Colors,
|
|
19
19
|
RowMouseController,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useMouseEvents,
|
|
23
23
|
useSettings,
|
|
24
24
|
useTerminalSize
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NDY7OENU.js";
|
|
26
26
|
import {
|
|
27
27
|
buildResumedHistoryItems,
|
|
28
28
|
calculateAverageLatency,
|
|
@@ -32,16 +32,17 @@ import {
|
|
|
32
32
|
computeDiffColumnWidths,
|
|
33
33
|
computeSessionStats,
|
|
34
34
|
getSystemInfoFields,
|
|
35
|
+
levelLabel,
|
|
35
36
|
useKeypress,
|
|
36
37
|
wrapForMultiplexer
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UJT42DB6.js";
|
|
38
39
|
import {
|
|
39
40
|
isTerminalGoalStatusKind
|
|
40
41
|
} from "./chunk-KSPVDFE4.js";
|
|
41
42
|
import {
|
|
42
43
|
MINIMUM_MAX_HEIGHT,
|
|
43
44
|
MaxSizedBox
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CBJE2PLG.js";
|
|
45
46
|
import {
|
|
46
47
|
theme
|
|
47
48
|
} from "./chunk-VXGPYF7U.js";
|
|
@@ -53,7 +54,7 @@ import {
|
|
|
53
54
|
require_jsx_runtime,
|
|
54
55
|
use_is_screen_reader_enabled_default,
|
|
55
56
|
use_stdin_default
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-XKZXGIRM.js";
|
|
57
58
|
import {
|
|
58
59
|
require_react
|
|
59
60
|
} from "./chunk-KYMBIKIW.js";
|
|
@@ -61,13 +62,6 @@ import {
|
|
|
61
62
|
resolveColor,
|
|
62
63
|
themeManager
|
|
63
64
|
} from "./chunk-HTWHAN44.js";
|
|
64
|
-
import {
|
|
65
|
-
require_has_flag,
|
|
66
|
-
require_source
|
|
67
|
-
} from "./chunk-3GONHQOA.js";
|
|
68
|
-
import {
|
|
69
|
-
createLoadedSettingsAdapter
|
|
70
|
-
} from "./chunk-73H73ASU.js";
|
|
71
65
|
import {
|
|
72
66
|
cpLen,
|
|
73
67
|
cpSlice,
|
|
@@ -79,7 +73,14 @@ import {
|
|
|
79
73
|
stripUnsafeCharacters,
|
|
80
74
|
toCodePoints,
|
|
81
75
|
wrapToVisualLines
|
|
82
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-2CAII5HD.js";
|
|
77
|
+
import {
|
|
78
|
+
require_has_flag,
|
|
79
|
+
require_source
|
|
80
|
+
} from "./chunk-3GONHQOA.js";
|
|
81
|
+
import {
|
|
82
|
+
createLoadedSettingsAdapter
|
|
83
|
+
} from "./chunk-R3UWLLRQ.js";
|
|
83
84
|
import {
|
|
84
85
|
formatDuration,
|
|
85
86
|
formatMemoryUsage,
|
|
@@ -88,15 +89,15 @@ import {
|
|
|
88
89
|
} from "./chunk-KHDZHZMH.js";
|
|
89
90
|
import {
|
|
90
91
|
getPersistScopeForModelSelection
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-BC4R5C5R.js";
|
|
92
93
|
import {
|
|
93
94
|
getCurrentLanguage,
|
|
94
95
|
localizeToolDisplayName,
|
|
95
96
|
t
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-DM4E337C.js";
|
|
97
98
|
import {
|
|
98
99
|
isWorkspaceTrusted
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-Z7XNVNPM.js";
|
|
100
101
|
import {
|
|
101
102
|
ALL_PROVIDERS,
|
|
102
103
|
IdeClient,
|
|
@@ -117,15 +118,15 @@ import {
|
|
|
117
118
|
resolveMetadataKey,
|
|
118
119
|
resolveOwnsModel,
|
|
119
120
|
stripAnsi
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-6QTCOQX7.js";
|
|
121
122
|
import {
|
|
122
123
|
MAIN_SOURCE,
|
|
123
124
|
getMCPServerStatus
|
|
124
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-CHY5C5T4.js";
|
|
125
126
|
import {
|
|
126
127
|
ToolDisplayNames,
|
|
127
128
|
ToolNames
|
|
128
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-MTNTVOJR.js";
|
|
129
130
|
import {
|
|
130
131
|
createDebugLogger,
|
|
131
132
|
escapePath,
|
|
@@ -8038,6 +8039,7 @@ __name(useRenderMode, "useRenderMode");
|
|
|
8038
8039
|
|
|
8039
8040
|
// packages/cli/src/ui/utils/MarkdownDisplay.tsx
|
|
8040
8041
|
var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
|
|
8042
|
+
var MIN_PENDING_CONTENT_LINES = 1;
|
|
8041
8043
|
function countMarkdownSourceBlocks(text) {
|
|
8042
8044
|
const codeBlockLanguageCounts = /* @__PURE__ */ new Map();
|
|
8043
8045
|
const lines = text.split(/\r?\n/);
|
|
@@ -8156,7 +8158,10 @@ var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
|
8156
8158
|
if (!text) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {});
|
|
8157
8159
|
const renderVisualBlocks = renderMode === "render";
|
|
8158
8160
|
const displayText = isPending ? text.trimEnd() : text;
|
|
8159
|
-
const
|
|
8161
|
+
const allLines = displayText.split(/\r?\n/);
|
|
8162
|
+
const pendingLineBudget = isPending && availableTerminalHeight !== void 0 ? Math.max(MIN_PENDING_CONTENT_LINES, availableTerminalHeight - 2) : void 0;
|
|
8163
|
+
const pendingClipped = pendingLineBudget !== void 0 && allLines.length > pendingLineBudget;
|
|
8164
|
+
const lines = pendingClipped ? allLines.slice(0, pendingLineBudget) : allLines;
|
|
8160
8165
|
const headerRegex = /^ *(#{1,4}) +(.*)/;
|
|
8161
8166
|
const codeFenceRegex = /^ *(`{3,}|~{3,}) *([^`]*)$/;
|
|
8162
8167
|
const ulItemRegex = /^([ \t]*)([-*+]) +(.*)/;
|
|
@@ -8524,6 +8529,12 @@ var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
|
8524
8529
|
)
|
|
8525
8530
|
);
|
|
8526
8531
|
}
|
|
8532
|
+
if (pendingClipped) {
|
|
8533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
8534
|
+
contentBlocks,
|
|
8535
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, wrap: "truncate", children: "... generating more ..." })
|
|
8536
|
+
] });
|
|
8537
|
+
}
|
|
8527
8538
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: contentBlocks });
|
|
8528
8539
|
}, "MarkdownDisplayInternal");
|
|
8529
8540
|
var RenderCodeBlockInternal = /* @__PURE__ */ __name(({
|
|
@@ -17485,6 +17496,12 @@ var ExtensionsList = /* @__PURE__ */ __name(() => {
|
|
|
17485
17496
|
// packages/cli/src/ui/components/views/SkillsList.tsx
|
|
17486
17497
|
init_esbuild_shims();
|
|
17487
17498
|
var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1);
|
|
17499
|
+
var NAME_COLUMN = 24;
|
|
17500
|
+
function truncate(text, max) {
|
|
17501
|
+
if (text.length <= max) return text;
|
|
17502
|
+
return `${text.slice(0, Math.max(0, max - 1))}\u2026`;
|
|
17503
|
+
}
|
|
17504
|
+
__name(truncate, "truncate");
|
|
17488
17505
|
var SkillsList = /* @__PURE__ */ __name(({ skills }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Box_default, { flexDirection: "column", marginBottom: 1, children: [
|
|
17489
17506
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text, { bold: true, color: theme.text.primary, children: t("Available skills:") }),
|
|
17490
17507
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Box_default, { height: 1 }),
|
|
@@ -17493,7 +17510,17 @@ var SkillsList = /* @__PURE__ */ __name(({ skills }) => /* @__PURE__ */ (0, impo
|
|
|
17493
17510
|
" ",
|
|
17494
17511
|
"- "
|
|
17495
17512
|
] }),
|
|
17496
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text, { bold: true, color: theme.text.accent, children: skill.name })
|
|
17513
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text, { bold: true, color: theme.text.accent, children: skill.description ? truncate(skill.name, NAME_COLUMN).padEnd(NAME_COLUMN) : skill.name }),
|
|
17514
|
+
skill.description && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { color: theme.text.secondary, children: [
|
|
17515
|
+
" ",
|
|
17516
|
+
truncate(skill.description, 80)
|
|
17517
|
+
] }),
|
|
17518
|
+
skill.level && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { color: theme.text.secondary, children: [
|
|
17519
|
+
" ",
|
|
17520
|
+
"(",
|
|
17521
|
+
levelLabel(skill.level),
|
|
17522
|
+
")"
|
|
17523
|
+
] })
|
|
17497
17524
|
] }, skill.name)) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Text, { color: theme.text.primary, children: [
|
|
17498
17525
|
" ",
|
|
17499
17526
|
t("No skills available")
|
|
@@ -6,20 +6,26 @@ import {
|
|
|
6
6
|
parseAcpBaseModelId,
|
|
7
7
|
resolveCliGenerationConfig,
|
|
8
8
|
sanitizeProviderBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K4I4STSL.js";
|
|
10
10
|
import {
|
|
11
11
|
STATUS_SCHEMA_VERSION
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LHMZCIKL.js";
|
|
13
13
|
import {
|
|
14
14
|
loadSettings
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BC4R5C5R.js";
|
|
16
16
|
import {
|
|
17
17
|
ModelsConfig,
|
|
18
18
|
resolveProviderProtocol
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6QTCOQX7.js";
|
|
20
|
+
import {
|
|
21
|
+
APPROVAL_MODES
|
|
22
|
+
} from "./chunk-BPFJQGY7.js";
|
|
20
23
|
import {
|
|
21
24
|
tokenLimit
|
|
22
25
|
} from "./chunk-YTFBURQD.js";
|
|
26
|
+
import {
|
|
27
|
+
createDebugLogger
|
|
28
|
+
} from "./chunk-AVQDCKNF.js";
|
|
23
29
|
import {
|
|
24
30
|
init_esbuild_shims
|
|
25
31
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -29,6 +35,7 @@ import {
|
|
|
29
35
|
|
|
30
36
|
// packages/cli/src/serve/workspace-providers-status.ts
|
|
31
37
|
init_esbuild_shims();
|
|
38
|
+
var debugLogger = createDebugLogger("WORKSPACE_PROVIDERS_STATUS");
|
|
32
39
|
function createWorkspaceProvidersStatusProvider(options = {}) {
|
|
33
40
|
return async (workspaceCwd, acpChannelLive) => buildWorkspaceProvidersStatus(workspaceCwd, acpChannelLive, options);
|
|
34
41
|
}
|
|
@@ -65,6 +72,7 @@ function buildWorkspaceProvidersStatus(workspaceCwd, acpChannelLive, options) {
|
|
|
65
72
|
const currentAcpModelId = hasCurrentModel && currentAuth ? formatAcpModelId(currentModelId, currentAuth) : currentModelId || void 0;
|
|
66
73
|
const currentBaseUrl = resolvedCliConfig.sources["baseUrl"] ? resolvedCliConfig.baseUrl || void 0 : void 0;
|
|
67
74
|
const fastModelId = typeof settings.fastModel === "string" && settings.fastModel.length > 0 ? settings.fastModel : void 0;
|
|
75
|
+
const approvalMode = resolveApprovalMode(settings);
|
|
68
76
|
const providers = /* @__PURE__ */ new Map();
|
|
69
77
|
const explicitModelBaseUrls = buildExplicitModelBaseUrls(
|
|
70
78
|
settings.modelProviders,
|
|
@@ -120,6 +128,7 @@ function buildWorkspaceProvidersStatus(workspaceCwd, acpChannelLive, options) {
|
|
|
120
128
|
initialized: true,
|
|
121
129
|
acpChannelLive,
|
|
122
130
|
...current ? { current } : {},
|
|
131
|
+
approvalMode,
|
|
123
132
|
providers: [...providers.values()],
|
|
124
133
|
...resolvedCliConfig.warnings.length > 0 ? {
|
|
125
134
|
errors: resolvedCliConfig.warnings.map((warning) => ({
|
|
@@ -149,6 +158,22 @@ function buildWorkspaceProvidersStatus(workspaceCwd, acpChannelLive, options) {
|
|
|
149
158
|
}
|
|
150
159
|
}
|
|
151
160
|
__name(buildWorkspaceProvidersStatus, "buildWorkspaceProvidersStatus");
|
|
161
|
+
function resolveApprovalMode(settings) {
|
|
162
|
+
const value = settings.tools?.approvalMode;
|
|
163
|
+
if (typeof value !== "string") return "default" /* DEFAULT */;
|
|
164
|
+
const normalized = value.trim().toLowerCase().replaceAll("_", "-");
|
|
165
|
+
const mode = normalized === "autoedit" ? "auto-edit" /* AUTO_EDIT */ : normalized;
|
|
166
|
+
if (APPROVAL_MODES.includes(mode)) {
|
|
167
|
+
return mode;
|
|
168
|
+
}
|
|
169
|
+
if (value.trim().length > 0) {
|
|
170
|
+
debugLogger.warn(
|
|
171
|
+
`[workspace-providers-status] unrecognized approvalMode "${value}", falling back to default`
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
return "default" /* DEFAULT */;
|
|
175
|
+
}
|
|
176
|
+
__name(resolveApprovalMode, "resolveApprovalMode");
|
|
152
177
|
function isMainSelectableModel(model) {
|
|
153
178
|
return model.fastOnly !== true && model.voiceOnly !== true;
|
|
154
179
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getGitVersion,
|
|
5
5
|
getNpmVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JKGCBO3O.js";
|
|
7
7
|
import {
|
|
8
8
|
STATUS_SCHEMA_VERSION,
|
|
9
9
|
mapDomainErrorToErrorKind
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LHMZCIKL.js";
|
|
11
11
|
import {
|
|
12
12
|
canUseRipgrep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6QTCOQX7.js";
|
|
14
14
|
import {
|
|
15
15
|
detectRuntime,
|
|
16
16
|
redactProxyCredentials
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
OpenAIContentConverter,
|
|
5
5
|
TaggedThinkingParser,
|
|
6
6
|
openaiRequestCaptureContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CHY5C5T4.js";
|
|
8
8
|
import {
|
|
9
9
|
RequestTokenizer
|
|
10
10
|
} from "./chunk-DX3TKXNT.js";
|
|
@@ -7190,35 +7190,66 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7190
7190
|
}
|
|
7191
7191
|
const requestWithTokenLimits = this.applyOutputTokenLimit(request);
|
|
7192
7192
|
const extraBody = this.contentGeneratorConfig.extra_body;
|
|
7193
|
+
const enableThinkingFromEffort = this.shouldEnableThinkingFromEffort(
|
|
7194
|
+
request.model
|
|
7195
|
+
);
|
|
7193
7196
|
if (this.isVisionModel(request.model)) {
|
|
7194
|
-
|
|
7197
|
+
const dashscopeExtras2 = {
|
|
7198
|
+
vl_high_resolution_images: true,
|
|
7199
|
+
preserve_thinking: true,
|
|
7200
|
+
...enableThinkingFromEffort ? { enable_thinking: true } : {}
|
|
7201
|
+
};
|
|
7202
|
+
const visionResult = {
|
|
7195
7203
|
...requestWithTokenLimits,
|
|
7196
7204
|
messages,
|
|
7197
7205
|
...tools ? { tools } : {},
|
|
7198
7206
|
...this.buildMetadata(userPromptId) || {},
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
preserve_thinking: true,
|
|
7207
|
+
...dashscopeExtras2
|
|
7208
|
+
};
|
|
7209
|
+
if (enableThinkingFromEffort && "reasoning" in visionResult) {
|
|
7210
|
+
delete visionResult["reasoning"];
|
|
7211
|
+
}
|
|
7212
|
+
return {
|
|
7213
|
+
...visionResult,
|
|
7207
7214
|
...extraBody ? extraBody : {}
|
|
7208
7215
|
};
|
|
7209
7216
|
}
|
|
7210
|
-
|
|
7217
|
+
const dashscopeExtras = {
|
|
7218
|
+
preserve_thinking: true,
|
|
7219
|
+
...enableThinkingFromEffort ? { enable_thinking: true } : {}
|
|
7220
|
+
};
|
|
7221
|
+
const result = {
|
|
7211
7222
|
...requestWithTokenLimits,
|
|
7212
7223
|
// Preserve all original parameters including sampling params and adjusted max_tokens
|
|
7213
7224
|
messages,
|
|
7214
7225
|
...tools ? { tools } : {},
|
|
7215
7226
|
...this.buildMetadata(userPromptId) || {},
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7227
|
+
...dashscopeExtras
|
|
7228
|
+
};
|
|
7229
|
+
if (enableThinkingFromEffort && "reasoning" in result) {
|
|
7230
|
+
delete result["reasoning"];
|
|
7231
|
+
}
|
|
7232
|
+
return {
|
|
7233
|
+
...result,
|
|
7219
7234
|
...extraBody ? extraBody : {}
|
|
7220
7235
|
};
|
|
7221
7236
|
}
|
|
7237
|
+
/**
|
|
7238
|
+
* Whether to send `enable_thinking: true` because the user selected a
|
|
7239
|
+
* reasoning effort. qwen's hybrid-thinking models expose thinking as the
|
|
7240
|
+
* boolean `enable_thinking` rather than a tiered `reasoning_effort`, so the
|
|
7241
|
+
* unified effort ladder collapses to on/off here. Gated to qwen-family wire
|
|
7242
|
+
* models (mirroring the pipeline's disable gate) so the qwen-specific field
|
|
7243
|
+
* never leaks to a non-qwen model sharing the DashScope endpoint.
|
|
7244
|
+
*/
|
|
7245
|
+
shouldEnableThinkingFromEffort(model) {
|
|
7246
|
+
const reasoning = this.contentGeneratorConfig.reasoning;
|
|
7247
|
+
if (!reasoning || reasoning.effort === void 0) {
|
|
7248
|
+
return false;
|
|
7249
|
+
}
|
|
7250
|
+
const wireModel = (model ?? this.contentGeneratorConfig.model ?? "").toLowerCase();
|
|
7251
|
+
return wireModel.startsWith("qwen") || wireModel === "coder-model";
|
|
7252
|
+
}
|
|
7222
7253
|
buildMetadata(userPromptId) {
|
|
7223
7254
|
const channel = this.cliConfig.getChannel?.();
|
|
7224
7255
|
return {
|
|
@@ -7546,6 +7577,76 @@ function translateReasoningEffort(request) {
|
|
|
7546
7577
|
}
|
|
7547
7578
|
__name(translateReasoningEffort, "translateReasoningEffort");
|
|
7548
7579
|
|
|
7580
|
+
// packages/core/src/core/openaiContentGenerator/provider/zai.ts
|
|
7581
|
+
init_esbuild_shims();
|
|
7582
|
+
var debugLogger2 = createDebugLogger("ZAI");
|
|
7583
|
+
function isZaiHostname(contentGeneratorConfig) {
|
|
7584
|
+
const baseUrl = contentGeneratorConfig.baseUrl;
|
|
7585
|
+
if (!baseUrl) {
|
|
7586
|
+
return false;
|
|
7587
|
+
}
|
|
7588
|
+
try {
|
|
7589
|
+
const hostname = new URL(baseUrl).hostname.toLowerCase();
|
|
7590
|
+
return hostname === "z.ai" || hostname.endsWith(".z.ai") || hostname === "bigmodel.cn" || hostname.endsWith(".bigmodel.cn");
|
|
7591
|
+
} catch {
|
|
7592
|
+
return false;
|
|
7593
|
+
}
|
|
7594
|
+
}
|
|
7595
|
+
__name(isZaiHostname, "isZaiHostname");
|
|
7596
|
+
function isZaiProvider(contentGeneratorConfig) {
|
|
7597
|
+
if (isZaiHostname(contentGeneratorConfig)) {
|
|
7598
|
+
return true;
|
|
7599
|
+
}
|
|
7600
|
+
const model = contentGeneratorConfig.model ?? "";
|
|
7601
|
+
return model.toLowerCase().startsWith("glm-");
|
|
7602
|
+
}
|
|
7603
|
+
__name(isZaiProvider, "isZaiProvider");
|
|
7604
|
+
var ZaiOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvider {
|
|
7605
|
+
static {
|
|
7606
|
+
__name(this, "ZaiOpenAICompatibleProvider");
|
|
7607
|
+
}
|
|
7608
|
+
static isZaiProvider = isZaiProvider;
|
|
7609
|
+
static isZaiHostname = isZaiHostname;
|
|
7610
|
+
// Latch so the skipped-flatten warning fires once per provider lifetime.
|
|
7611
|
+
nonZaiHostnameFlattenWarned = false;
|
|
7612
|
+
buildRequest(request, userPromptId) {
|
|
7613
|
+
const baseRequest = super.buildRequest(request, userPromptId);
|
|
7614
|
+
if (isZaiHostname(this.contentGeneratorConfig)) {
|
|
7615
|
+
return flattenReasoningEffort(baseRequest);
|
|
7616
|
+
}
|
|
7617
|
+
const reasoning = baseRequest["reasoning"];
|
|
7618
|
+
if (reasoning?.effort && !baseRequest["reasoning_effort"] && !this.nonZaiHostnameFlattenWarned) {
|
|
7619
|
+
debugLogger2.warn(
|
|
7620
|
+
`GLM model '${this.contentGeneratorConfig.model ?? "unknown"}' on a non-Z.ai hostname; leaving nested reasoning.effort='${String(
|
|
7621
|
+
reasoning.effort
|
|
7622
|
+
)}' unflattened (reasoning_effort reshape is hostname-gated).`
|
|
7623
|
+
);
|
|
7624
|
+
this.nonZaiHostnameFlattenWarned = true;
|
|
7625
|
+
}
|
|
7626
|
+
return baseRequest;
|
|
7627
|
+
}
|
|
7628
|
+
};
|
|
7629
|
+
function flattenReasoningEffort(request) {
|
|
7630
|
+
const r = request;
|
|
7631
|
+
const nested = r["reasoning"];
|
|
7632
|
+
const effort = nested?.effort;
|
|
7633
|
+
if (typeof effort !== "string" || !effort) {
|
|
7634
|
+
return request;
|
|
7635
|
+
}
|
|
7636
|
+
const next = { ...r };
|
|
7637
|
+
if (typeof next["reasoning_effort"] !== "string" || !next["reasoning_effort"]) {
|
|
7638
|
+
next["reasoning_effort"] = effort;
|
|
7639
|
+
}
|
|
7640
|
+
if (nested && Object.keys(nested).length === 1) {
|
|
7641
|
+
delete next["reasoning"];
|
|
7642
|
+
} else if (nested) {
|
|
7643
|
+
const { effort: _drop, ...rest } = nested;
|
|
7644
|
+
next["reasoning"] = rest;
|
|
7645
|
+
}
|
|
7646
|
+
return next;
|
|
7647
|
+
}
|
|
7648
|
+
__name(flattenReasoningEffort, "flattenReasoningEffort");
|
|
7649
|
+
|
|
7549
7650
|
// packages/core/src/core/openaiContentGenerator/provider/minimax.ts
|
|
7550
7651
|
init_esbuild_shims();
|
|
7551
7652
|
var MINIMAX_KNOWN_HOSTS = ["api.minimaxi.com", "api.minimax.io"];
|
|
@@ -7672,7 +7773,7 @@ init_esbuild_shims();
|
|
|
7672
7773
|
|
|
7673
7774
|
// packages/core/src/core/openaiContentGenerator/streamingToolCallParser.ts
|
|
7674
7775
|
init_esbuild_shims();
|
|
7675
|
-
var
|
|
7776
|
+
var debugLogger3 = createDebugLogger("STREAMING_TOOL_CALL_PARSER");
|
|
7676
7777
|
var StreamingToolCallParser = class {
|
|
7677
7778
|
static {
|
|
7678
7779
|
__name(this, "StreamingToolCallParser");
|
|
@@ -7756,7 +7857,7 @@ var StreamingToolCallParser = class {
|
|
|
7756
7857
|
if (isKnownId && currentBuffer.trim() && currentDepth === 0) {
|
|
7757
7858
|
try {
|
|
7758
7859
|
JSON.parse(currentBuffer);
|
|
7759
|
-
|
|
7860
|
+
debugLogger3.debug(
|
|
7760
7861
|
`Ignoring replay chunk for completed toolCall id=${id}`
|
|
7761
7862
|
);
|
|
7762
7863
|
return { complete: false };
|
|
@@ -8004,7 +8105,7 @@ var StreamingToolCallParser = class {
|
|
|
8004
8105
|
};
|
|
8005
8106
|
|
|
8006
8107
|
// packages/core/src/core/openaiContentGenerator/pipeline.ts
|
|
8007
|
-
var
|
|
8108
|
+
var debugLogger4 = createDebugLogger("OPENAI_PIPELINE");
|
|
8008
8109
|
var StreamContentError = class extends Error {
|
|
8009
8110
|
static {
|
|
8010
8111
|
__name(this, "StreamContentError");
|
|
@@ -8249,7 +8350,7 @@ var ContentGenerationPipeline = class {
|
|
|
8249
8350
|
throw redactProxyError(error);
|
|
8250
8351
|
}
|
|
8251
8352
|
if (error instanceof StreamInactivityTimeoutError) {
|
|
8252
|
-
|
|
8353
|
+
debugLogger4.warn("OpenAI stream inactivity timeout", {
|
|
8253
8354
|
idleMs: error.idleMs,
|
|
8254
8355
|
chunksReceived: error.chunksReceived,
|
|
8255
8356
|
streamLifetimeMs: error.streamLifetimeMs
|
|
@@ -8462,7 +8563,7 @@ var ContentGenerationPipeline = class {
|
|
|
8462
8563
|
|
|
8463
8564
|
// packages/core/src/core/openaiContentGenerator/errorHandler.ts
|
|
8464
8565
|
init_esbuild_shims();
|
|
8465
|
-
var
|
|
8566
|
+
var debugLogger5 = createDebugLogger("OPENAI_ERROR");
|
|
8466
8567
|
var EnhancedErrorHandler = class {
|
|
8467
8568
|
constructor(shouldSuppressLogging = () => false) {
|
|
8468
8569
|
this.shouldSuppressLogging = shouldSuppressLogging;
|
|
@@ -8479,7 +8580,7 @@ var EnhancedErrorHandler = class {
|
|
|
8479
8580
|
isTimeoutError
|
|
8480
8581
|
);
|
|
8481
8582
|
if (!this.shouldSuppressErrorLogging(redactedError, request)) {
|
|
8482
|
-
|
|
8583
|
+
debugLogger5.error("OpenAI API Error:", errorMessage);
|
|
8483
8584
|
}
|
|
8484
8585
|
if (isTimeoutError) {
|
|
8485
8586
|
throw new Error(
|
|
@@ -8519,7 +8620,7 @@ ${tips.join("\n")}`;
|
|
|
8519
8620
|
};
|
|
8520
8621
|
|
|
8521
8622
|
// packages/core/src/core/openaiContentGenerator/openaiContentGenerator.ts
|
|
8522
|
-
var
|
|
8623
|
+
var debugLogger6 = createDebugLogger("OPENAI");
|
|
8523
8624
|
var OpenAIContentGenerator = class {
|
|
8524
8625
|
static {
|
|
8525
8626
|
__name(this, "OpenAIContentGenerator");
|
|
@@ -8562,7 +8663,7 @@ var OpenAIContentGenerator = class {
|
|
|
8562
8663
|
totalTokens: result.totalTokens
|
|
8563
8664
|
};
|
|
8564
8665
|
} catch (error) {
|
|
8565
|
-
|
|
8666
|
+
debugLogger6.warn(
|
|
8566
8667
|
"Failed to calculate tokens with new tokenizer, falling back to simple method:",
|
|
8567
8668
|
error
|
|
8568
8669
|
);
|
|
@@ -8609,7 +8710,7 @@ var OpenAIContentGenerator = class {
|
|
|
8609
8710
|
};
|
|
8610
8711
|
} catch (error) {
|
|
8611
8712
|
const redactedError = redactProxyError(error);
|
|
8612
|
-
|
|
8713
|
+
debugLogger6.error("OpenAI API Embedding Error:", redactedError);
|
|
8613
8714
|
throw new Error(
|
|
8614
8715
|
`OpenAI API error: ${redactedError instanceof Error ? redactedError.message : String(redactedError)}`
|
|
8615
8716
|
);
|
|
@@ -8644,6 +8745,9 @@ function determineProvider(contentGeneratorConfig, cliConfig) {
|
|
|
8644
8745
|
cliConfig
|
|
8645
8746
|
);
|
|
8646
8747
|
}
|
|
8748
|
+
if (ZaiOpenAICompatibleProvider.isZaiProvider(config)) {
|
|
8749
|
+
return new ZaiOpenAICompatibleProvider(contentGeneratorConfig, cliConfig);
|
|
8750
|
+
}
|
|
8647
8751
|
if (MiMoOpenAICompatibleProvider.isMiMoProvider(config)) {
|
|
8648
8752
|
return new MiMoOpenAICompatibleProvider(contentGeneratorConfig, cliConfig);
|
|
8649
8753
|
}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
// packages/cli/src/serve/channel-worker-env.ts
|
|
8
8
|
init_esbuild_shims();
|
|
9
9
|
var CHANNEL_DAEMON_WORKER_SENTINEL = "QWEN_CHANNEL_DAEMON_WORKER";
|
|
10
|
+
var CHANNEL_WORKER_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10
11
|
var QWEN_DAEMON_TOKEN_ENV = "QWEN_DAEMON_TOKEN";
|
|
11
12
|
var QWEN_DAEMON_URL_ENV = "QWEN_DAEMON_URL";
|
|
12
13
|
var QWEN_DAEMON_WORKSPACE_ENV = "QWEN_DAEMON_WORKSPACE";
|
|
@@ -14,6 +15,7 @@ var QWEN_SERVER_TOKEN_ENV = "QWEN_SERVER_TOKEN";
|
|
|
14
15
|
|
|
15
16
|
export {
|
|
16
17
|
CHANNEL_DAEMON_WORKER_SENTINEL,
|
|
18
|
+
CHANNEL_WORKER_HEARTBEAT_INTERVAL_MS,
|
|
17
19
|
QWEN_DAEMON_TOKEN_ENV,
|
|
18
20
|
QWEN_DAEMON_URL_ENV,
|
|
19
21
|
QWEN_DAEMON_WORKSPACE_ENV,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
handleAtCommand
|
|
5
|
-
} from "./chunk-MNDTD5E5.js";
|
|
6
3
|
import {
|
|
7
4
|
JsonOutputAdapter
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RNGAT2Y2.js";
|
|
9
6
|
import {
|
|
10
7
|
StreamJsonOutputAdapter
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-J3ERRYYI.js";
|
|
9
|
+
import {
|
|
10
|
+
handleAtCommand
|
|
11
|
+
} from "./chunk-SJVPSHXU.js";
|
|
12
12
|
import {
|
|
13
13
|
buildInitialSystemReminders,
|
|
14
14
|
buildSystemMessage,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
insertAfterFunctionResponses,
|
|
21
21
|
isSlashCommand,
|
|
22
22
|
normalizePartList
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4MCC4XHH.js";
|
|
24
24
|
import {
|
|
25
25
|
RunBudgetEnforcer
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EJ7BN3EN.js";
|
|
27
27
|
import {
|
|
28
28
|
AlreadyReportedError,
|
|
29
29
|
handleBudgetExceededError,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
handleError,
|
|
32
32
|
handleMaxTurnsExceededError,
|
|
33
33
|
handleToolError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JJ6B3ZD3.js";
|
|
35
35
|
import {
|
|
36
36
|
isInlineModelOverrideAllowed
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-K4I4STSL.js";
|
|
38
38
|
import {
|
|
39
39
|
ORPHAN_TOOL_USE_REPAIR_REASON,
|
|
40
40
|
buildSyntheticToolResponseParts,
|
|
@@ -49,15 +49,15 @@ import {
|
|
|
49
49
|
parseAndFormatApiError,
|
|
50
50
|
promptIdContext,
|
|
51
51
|
restoreWorktreeContext
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-6QTCOQX7.js";
|
|
53
53
|
import {
|
|
54
54
|
isTelemetrySdkInitialized,
|
|
55
55
|
shutdownTelemetry,
|
|
56
56
|
uiTelemetryService
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-CHY5C5T4.js";
|
|
58
58
|
import {
|
|
59
59
|
ToolNames
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MTNTVOJR.js";
|
|
61
61
|
import {
|
|
62
62
|
FatalInputError,
|
|
63
63
|
createDebugLogger
|