@qwen-code/qwen-code 0.23.5-dev.codemode-responses.20260915.af4da34719 → 0.23.5-preview.0
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/computer-use/SKILL.md +24 -3
- package/bundled/qc-helper/docs/configuration/model-providers.md +43 -0
- package/bundled/qc-helper/docs/configuration/settings.md +10 -9
- package/bundled/qc-helper/docs/extension/agent-plugins.md +1 -0
- package/bundled/qc-helper/docs/extension/introduction.md +49 -0
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +39 -4
- package/bundled/qc-helper/docs/features/channels/overview.md +12 -0
- package/bundled/qc-helper/docs/features/commands.md +57 -52
- package/bundled/qc-helper/docs/features/computer-use.md +1 -1
- package/bundled/qc-helper/docs/features/goals.md +8 -0
- package/bundled/qc-helper/docs/features/hooks.md +16 -0
- package/bundled/qc-helper/docs/qwen-serve.md +3 -1
- package/bundled/workflow-authoring/SKILL.md +48 -22
- package/chunks/{MaxSizedBox-3K65WFGY.js → MaxSizedBox-FCF6M53W.js} +40 -43
- package/chunks/{StandaloneSessionPicker-JKM33JPY.js → StandaloneSessionPicker-V635V72I.js} +60 -63
- package/chunks/{acp-startup-profiler-RUQNTNU5.js → acp-startup-profiler-MOOU37VM.js} +2 -2
- package/chunks/{acp-subagent-executor-KIZBB2CL.js → acp-subagent-executor-TND6W2O5.js} +46 -47
- package/chunks/{acpAgent-SHI4L5EV.js → acpAgent-3DPWZTNC.js} +954 -322
- package/chunks/{agent-AJXNVRX2.js → agent-KIHGINKN.js} +27 -30
- package/chunks/{agent-headless-2JPJKYHK.js → agent-headless-EJ4QOUSM.js} +27 -30
- package/chunks/{anthropicContentGenerator-H5YPXIDE.js → anthropicContentGenerator-4FGOM5LK.js} +46 -64
- package/chunks/{artifact-tool-MFGORTWZ.js → artifact-tool-MUTNH4NI.js} +1 -1
- package/chunks/{askUserQuestion-WS4GUT7C.js → askUserQuestion-AKIRLVB5.js} +1 -1
- package/chunks/bareMode-QWKZPLPX.js +14 -0
- package/chunks/{bridge-KZYSMV4N.js → bridge-MUX5YJZT.js} +46 -49
- package/chunks/{ca-GZ4FDJU2.js → ca-WC3A5B3Q.js} +12 -1
- package/chunks/{channel-management-service-AFVIT4VH.js → channel-management-service-RRILWSXX.js} +4 -4
- package/chunks/{channel-settings-store-IJG52IDV.js → channel-settings-store-7CBIRZER.js} +51 -54
- package/chunks/{channel-worker-group-JR6JOELM.js → channel-worker-group-3DUJFZJR.js} +8 -8
- package/chunks/{channel-worker-manager-AVKJEZFL.js → channel-worker-manager-E5UW2VLA.js} +8 -8
- package/chunks/{channel-worker-supervisor-OOYY7BAQ.js → channel-worker-supervisor-VN33GSEC.js} +5 -5
- package/chunks/{chunk-2YMRRI2C.js → chunk-2C5TR6HN.js} +82 -9
- package/chunks/{chunk-YDFOHRS5.js → chunk-2GP6BQ2J.js} +1 -1
- package/chunks/{chunk-JATZTB7X.js → chunk-347O2YZJ.js} +158 -290
- package/chunks/{chunk-RYREFZFH.js → chunk-36NRLIR6.js} +10 -8
- package/chunks/{chunk-AXZMWAJV.js → chunk-36SDZ2Q4.js} +8 -0
- package/chunks/{chunk-QR4Q425T.js → chunk-3BZI5GDP.js} +1 -1
- package/chunks/{chunk-IP6NRULS.js → chunk-3HTUE6ZR.js} +3 -3
- package/chunks/{chunk-B2VSRPS6.js → chunk-3LLEB5CU.js} +2 -2
- package/chunks/{chunk-L2XNHRDL.js → chunk-3UGMLA4V.js} +10 -8
- package/chunks/{chunk-66N6C4EH.js → chunk-3WILPKTJ.js} +2 -2
- package/chunks/{chunk-SROLVJFY.js → chunk-3WWPEFMX.js} +1 -1
- package/chunks/{chunk-ZKIAGIGH.js → chunk-3XBUCOWS.js} +1 -1
- package/chunks/{chunk-737SVOO7.js → chunk-43Y26NPF.js} +3 -3
- package/chunks/{chunk-INGBUYL6.js → chunk-4FLUQWJ4.js} +1 -1
- package/chunks/{chunk-BTBJEB27.js → chunk-4JFLRHNE.js} +1 -1
- package/chunks/{chunk-MJHLKWGJ.js → chunk-4QPVZA5J.js} +70 -23
- package/chunks/{chunk-XX5HQLCZ.js → chunk-6OTF7TTE.js} +32 -1
- package/chunks/{chunk-4Y2I3CI3.js → chunk-6USYH3EU.js} +99 -6
- package/chunks/{chunk-Q3TFRP5G.js → chunk-7D4CV7JH.js} +102 -9
- package/chunks/{chunk-EWJTAP3Y.js → chunk-7O5PYQ3M.js} +20 -1
- package/chunks/chunk-ADN5KESB.js +28 -0
- package/chunks/chunk-AKRSSKUT.js +229 -0
- package/chunks/{chunk-IOXJX7XE.js → chunk-AQP3H22J.js} +1 -1
- package/chunks/{chunk-YP7QCE7X.js → chunk-AUX2FL5T.js} +24 -7
- package/chunks/{chunk-YGFJ6BRT.js → chunk-AZCTY64Z.js} +1 -1
- package/chunks/{chunk-5CDDYYNI.js → chunk-B5TJK7B3.js} +1 -1
- package/chunks/{chunk-7MKB7L25.js → chunk-B6RMK4ED.js} +4 -4
- package/chunks/{chunk-YH24ZJ65.js → chunk-BHG3H6OZ.js} +1 -1
- package/chunks/{chunk-BRPYJQDD.js → chunk-BHVF3R6B.js} +7 -5
- package/chunks/{chunk-HFJSQ4GL.js → chunk-BTICBRPL.js} +1 -1
- package/chunks/{chunk-KZCK5JUN.js → chunk-C3T6HPNM.js} +1 -1
- package/chunks/{chunk-UB2MATP5.js → chunk-CDDP4ONL.js} +164 -27
- package/chunks/{chunk-OL3TNHFM.js → chunk-CQPM66MG.js} +4 -4
- package/chunks/{chunk-WKVZES7O.js → chunk-CXONOVBN.js} +1 -1
- package/chunks/{chunk-6IHJLXNF.js → chunk-CXY6BICQ.js} +501 -479
- package/chunks/{chunk-I5QPDANL.js → chunk-D3KVGQUV.js} +1 -1
- package/chunks/{chunk-LMJSPC55.js → chunk-D7JMO2GP.js} +3 -7
- package/chunks/{chunk-CXXAZ2LZ.js → chunk-DC4ZNGH4.js} +1 -1
- package/chunks/{chunk-FMLBBXHB.js → chunk-DRAX5YAI.js} +2 -2
- package/chunks/{chunk-DOTF2PF2.js → chunk-DRD6VBNH.js} +1 -1
- package/chunks/chunk-DX6JTDMR.js +105 -0
- package/chunks/{chunk-HJAJ6MR6.js → chunk-E2VSBAFA.js} +53 -11
- package/chunks/{chunk-G7ZYRFHS.js → chunk-EIBECN2J.js} +3 -3
- package/chunks/{chunk-LWWRJRCD.js → chunk-ESBYWATJ.js} +1 -1
- package/chunks/{chunk-2PLQ3CXJ.js → chunk-FASYATAZ.js} +5 -7
- package/chunks/{chunk-3ADU34IF.js → chunk-FBY32737.js} +4 -4
- package/chunks/{chunk-SIDVJZWH.js → chunk-FCPJXKDG.js} +10 -7
- package/chunks/{chunk-5GXJBU7K.js → chunk-FEDFZBGR.js} +3 -3
- package/chunks/{chunk-CALVKIIG.js → chunk-FIJODK52.js} +3 -3
- package/chunks/{chunk-ZTVYMZBD.js → chunk-FX6PZBOV.js} +3 -3
- package/chunks/{chunk-L6DIANLD.js → chunk-G45B3INR.js} +1 -1
- package/chunks/{chunk-TATT2THJ.js → chunk-GI7SLDOI.js} +2 -2
- package/chunks/chunk-GJKP6XOB.js +1092 -0
- package/chunks/{chunk-I6YJZGHS.js → chunk-GSAOVDTH.js} +9 -9
- package/chunks/{chunk-7MIOAF77.js → chunk-H6L4NEAT.js} +1 -1
- package/chunks/{chunk-MJGJF6G6.js → chunk-HNFKYKHH.js} +103 -22
- package/chunks/{chunk-PN6D5LWJ.js → chunk-HX4WXX3H.js} +301 -138
- package/chunks/{chunk-HG46TTAG.js → chunk-HXUI5D4H.js} +1 -1
- package/chunks/{chunk-JF2CFBDK.js → chunk-HYHSMTRA.js} +4 -4
- package/chunks/{chunk-4DZMYFZA.js → chunk-IKBEIDOH.js} +14 -14
- package/chunks/{chunk-QEENIXYB.js → chunk-INN5ORKX.js} +1 -1
- package/chunks/{chunk-GNV2SFO7.js → chunk-IVFTLUZD.js} +26 -1
- package/chunks/{chunk-L2NII7PZ.js → chunk-IXO2OCIP.js} +2 -2
- package/chunks/{chunk-6MAHSVMB.js → chunk-K4XMAIRX.js} +30 -33
- package/chunks/{chunk-AYMSNIYL.js → chunk-KAYC5FBN.js} +5269 -2785
- package/chunks/chunk-KEM7MWS7.js +3541 -0
- package/chunks/{chunk-ADQUK6WA.js → chunk-KVC7HZWK.js} +1 -1
- package/chunks/{chunk-Z35OSDIT.js → chunk-KVQ3QL4K.js} +3 -3
- package/chunks/{chunk-7U5G6JXI.js → chunk-KWYTSSTJ.js} +105 -6
- package/chunks/{chunk-PZRAE65J.js → chunk-L2A5VBDL.js} +3019 -2352
- package/chunks/{chunk-WD6YQI5M.js → chunk-L3SNMEDW.js} +1 -1
- package/chunks/{chunk-BYUAT5OC.js → chunk-L7TJUPNR.js} +19 -3
- package/chunks/{chunk-ABNX6E6K.js → chunk-LFKXIOGC.js} +1 -1
- package/chunks/{chunk-NFQOOITE.js → chunk-LO2UWNO5.js} +2 -2
- package/chunks/{chunk-LWUTZKDU.js → chunk-M22WLKLI.js} +5 -5
- package/chunks/{chunk-54B2LTKP.js → chunk-M23GFJ5B.js} +24 -5
- package/chunks/{chunk-VGY2RGXL.js → chunk-M4U2LTD2.js} +1 -1
- package/chunks/{chunk-ZNI3YJHS.js → chunk-MFDKHGTD.js} +1 -1
- package/chunks/{chunk-R7OO56VZ.js → chunk-MMRGG6R4.js} +1 -1
- package/chunks/{chunk-E6IR653O.js → chunk-MO4XID7S.js} +1 -1
- package/chunks/{chunk-FZQQMVLB.js → chunk-NKTMUPHJ.js} +3 -6
- package/chunks/{chunk-V77DTVCM.js → chunk-NQ272MQG.js} +1 -1
- package/chunks/{chunk-TDFLM7BE.js → chunk-OALXNGUA.js} +6 -6
- package/chunks/{chunk-FBDHP23D.js → chunk-OSG23MR3.js} +1 -1
- package/chunks/{chunk-NJ2OFVUX.js → chunk-P42KMMU6.js} +860 -1
- package/chunks/{chunk-Y33TCKXL.js → chunk-PF7GAP6K.js} +60 -58
- package/chunks/{chunk-MQRLLBMQ.js → chunk-PPJSG2PU.js} +2 -2
- package/chunks/{chunk-EPVEPTI3.js → chunk-PZRXWQUA.js} +753 -18
- package/chunks/{chunk-OLN7QX4P.js → chunk-Q54O3EIA.js} +30 -28
- package/chunks/{chunk-DQH3EVAD.js → chunk-QGEISOJ2.js} +4 -4
- package/chunks/{chunk-3M4O2AY3.js → chunk-QHSOINX6.js} +2 -2
- package/chunks/{chunk-HIQEL7EM.js → chunk-QIPLWW6Q.js} +1 -1
- package/chunks/chunk-QMENOK5T.js +1246 -0
- package/chunks/chunk-QT6Z2IBF.js +347 -0
- package/chunks/{chunk-TBSCTWKF.js → chunk-RN6A53UJ.js} +25 -0
- package/chunks/{chunk-65BKWMMH.js → chunk-RRI764F7.js} +21 -19
- package/chunks/{chunk-YI2YCNSP.js → chunk-SENYKRII.js} +1 -1
- package/chunks/chunk-SFHX5G2S.js +2796 -0
- package/chunks/chunk-SK3RZOPS.js +34 -0
- package/chunks/{chunk-MD6KXINN.js → chunk-SOLRBF7L.js} +13 -9
- package/chunks/{chunk-6BCN3VOY.js → chunk-SSWTA7CH.js} +12 -12
- package/chunks/{chunk-IAS753HG.js → chunk-SYMXYRM5.js} +11 -2
- package/chunks/{chunk-FGROOEKM.js → chunk-TDKUXSJO.js} +34 -6
- package/chunks/{chunk-ZJ7JQUGY.js → chunk-TKF4JINY.js} +1 -1
- package/chunks/{chunk-RVK37FWG.js → chunk-TPY6HW55.js} +4 -4
- package/chunks/{chunk-EDB556X7.js → chunk-TRZ22SG5.js} +1 -1
- package/chunks/{chunk-7LG4MUUD.js → chunk-TXTCM3TC.js} +4 -4
- package/chunks/{chunk-5ODRE7E5.js → chunk-U4AASWUQ.js} +28 -12
- package/chunks/{chunk-WPMRT4AR.js → chunk-UQGRJTDK.js} +2 -2
- package/chunks/{chunk-JBS56C7O.js → chunk-UZSB57EV.js} +6 -8
- package/chunks/{chunk-S4M6BDNE.js → chunk-V4JJAVHQ.js} +2 -2
- package/chunks/chunk-VEXUA6DX.js +1026 -0
- package/chunks/{chunk-ME4JBHSB.js → chunk-VQDWCQOE.js} +2 -0
- package/chunks/{chunk-3XXDCC5C.js → chunk-VU3XMZ5I.js} +23 -4
- package/chunks/{chunk-RD2HAF25.js → chunk-WL36KHUQ.js} +6 -6
- package/chunks/{chunk-WYRSEVBQ.js → chunk-WNQIJTOP.js} +8 -8
- package/chunks/{chunk-GTBXQ5W2.js → chunk-WSJI6ODG.js} +99 -30
- package/chunks/{chunk-VN5G33G7.js → chunk-WZWTY7SG.js} +6 -6
- package/chunks/{chunk-EKMJR7M3.js → chunk-X7AYIXC7.js} +1 -1
- package/chunks/{chunk-IBRQG2MP.js → chunk-XAJZFGD2.js} +11 -11
- package/chunks/{chunk-VRQZESKP.js → chunk-XICCGDWF.js} +2 -2
- package/chunks/{chunk-OZ2KDR2L.js → chunk-Y2KJC55Y.js} +12 -7
- package/chunks/{chunk-2S2WIGCM.js → chunk-Y4NNIGYO.js} +1 -1
- package/chunks/{chunk-J7LBAKDH.js → chunk-YL3UJML3.js} +7 -7
- package/chunks/{chunk-GSS4SZNG.js → chunk-YP2K3WOS.js} +40 -56
- package/chunks/{chunk-ZZUXUBEB.js → chunk-YQQ2U7AS.js} +8 -5
- package/chunks/{chunk-FAWTMDX7.js → chunk-YXHY6BKS.js} +15 -0
- package/chunks/{chunk-VIV2I3R7.js → chunk-YZXSDPOQ.js} +140 -39
- package/chunks/{chunk-KZ63S3HX.js → chunk-ZFHKUQZ4.js} +3 -3
- package/chunks/{chunk-B6KSTADQ.js → chunk-ZMYKNKET.js} +6 -6
- package/chunks/{codex-subagent-executor-6M7TD3MF.js → codex-subagent-executor-AEAIQZDC.js} +48 -49
- package/chunks/{config-utils-TB4QERW7.js → config-utils-KX2YS725.js} +43 -46
- package/chunks/{contextCommand-BFQMDECM.js → contextCommand-RV6Y5LNJ.js} +41 -44
- package/chunks/{core-runtime-Z2QJJMHR.js → core-runtime-ZI4RTOJQ.js} +45 -48
- package/chunks/{create-sub-session-GE4U3D7C.js → create-sub-session-BBWFQARJ.js} +46 -48
- package/chunks/{daemon-NJB4PWZ7.js → daemon-INCM4VBX.js} +3 -1
- package/chunks/{daemon-git-worktree-guard-IPA22S72.js → daemon-git-worktree-guard-KECEMV6A.js} +39 -42
- package/chunks/{daemon-status-provider-2U5WPCCB.js → daemon-status-provider-NULJNAEV.js} +53 -56
- package/chunks/{daemon-trust-policy-GEIGMVDQ.js → daemon-trust-policy-S4KWGPV3.js} +47 -50
- package/chunks/{daemon-trust-policy-monitor-JETBW5FX.js → daemon-trust-policy-monitor-546N5ZVL.js} +47 -50
- package/chunks/{de-VGY3VNBU.js → de-6AVKPTXQ.js} +11 -0
- package/chunks/{deferred-core-runtime-LANRK77C.js → deferred-core-runtime-T23ZT443.js} +39 -42
- package/chunks/{dist-NIOJXMGY.js → dist-4P3ZJYGI.js} +1 -1
- package/chunks/{dist-VDLSBCLM.js → dist-7MGRENQ5.js} +1 -1
- package/chunks/{dist-SE4J6Z4O.js → dist-BNW423XT.js} +326 -77
- package/chunks/{dist-TFGETXFN.js → dist-CESMUYGN.js} +4 -4
- package/chunks/{dist-MPUZZOG5.js → dist-DBBOFWSC.js} +1 -1
- package/chunks/{dist-T6DDPDLQ.js → dist-G5UMXIGF.js} +1 -1
- package/chunks/{dist-PA7WPFVE.js → dist-UXVNLQHG.js} +3 -3
- package/chunks/{dist-GUB7QRYA.js → dist-VA4LREAQ.js} +2 -2
- package/chunks/{dist-2QYIVNS6.js → dist-XDRTR4QP.js} +1 -1
- package/chunks/{edit-QC63PJOZ.js → edit-CMSQB7NP.js} +27 -30
- package/chunks/{en-E5ZO5TZW.js → en-56QLKXS2.js} +23 -1
- package/chunks/{enter-worktree-CAARFWBI.js → enter-worktree-DA6A4XC5.js} +3 -3
- package/chunks/{enterPlanMode-5TMWDRXD.js → enterPlanMode-UDPMNESD.js} +27 -30
- package/chunks/{environment-TNQVM5B3.js → environment-TSQJUTPV.js} +42 -45
- package/chunks/{errors-KWDDLG7P.js → errors-RIVYJS6T.js} +41 -44
- package/chunks/{exit-worktree-JXGGUOBP.js → exit-worktree-4H6Z2VQI.js} +3 -3
- package/chunks/{exitPlanMode-CLEWPZIE.js → exitPlanMode-BYBBFN2T.js} +27 -30
- package/chunks/{fast-path-PMRLQT7J.js → fast-path-F2CYDDZ4.js} +4 -4
- package/chunks/{fast-path-settings-XDYX7X5Z.js → fast-path-settings-N2VGRGDJ.js} +2 -2
- package/chunks/{fr-UAZJJH5N.js → fr-EBUDHJL3.js} +11 -0
- package/chunks/{glob-3AK4KKCE.js → glob-Z2JMJKKN.js} +27 -30
- package/chunks/{goal-tools-FD6OCE6Q.js → goal-tools-HXVVLGCV.js} +27 -30
- package/chunks/{handleAutoUpdate-QUNNMMY6.js → handleAutoUpdate-FZP45KOR.js} +43 -46
- package/chunks/{i18n-DVN326VM.js → i18n-OTB62AKW.js} +40 -43
- package/chunks/{image-gen-5G2TQ3DY.js → image-gen-HIAZCB5T.js} +6 -7
- package/chunks/{initializer-JHEJBPVJ.js → initializer-4JXZEC4B.js} +47 -50
- package/chunks/{installationInfo-DYOI4I5U.js → installationInfo-2IJV5QKC.js} +39 -42
- package/chunks/{ja-2RITCMAJ.js → ja-NCDT4CGV.js} +11 -0
- package/chunks/{list-MW74DDMO.js → list-KQSQ4A5G.js} +50 -53
- package/chunks/{llm-HUDP76IA.js → llm-LSUBOJAR.js} +154 -974
- package/chunks/{llm-content-generator-KYD6ZEM6.js → llm-content-generator-MLIONRXE.js} +17 -12
- package/chunks/{loadedSettingsAdapter-RRAZOPRB.js → loadedSettingsAdapter-TZTTNRHI.js} +47 -50
- package/chunks/{loggingContentGenerator-MHE6Z2OZ.js → loggingContentGenerator-TUPEXFMM.js} +31 -34
- package/chunks/{loop-wakeup-VG6CGBQA.js → loop-wakeup-ZBVRI6VH.js} +1 -1
- package/chunks/{managed-npm-update-3G3O3T3R.js → managed-npm-update-WEA5XMFZ.js} +40 -43
- package/chunks/{mcp-JGLBFJQB.js → mcp-TFDTUPIA.js} +47 -50
- package/chunks/{model-configuration-EGWMLK4P.js → model-configuration-ZCAKKIOF.js} +48 -51
- package/chunks/{modelConfigUtils-H4WFGWQD.js → modelConfigUtils-J3ZPW7ZK.js} +41 -44
- package/chunks/{monitor-62V72TGX.js → monitor-CI7YE7MT.js} +29 -32
- package/chunks/{nonInteractiveCli-GYKHG7RX.js → nonInteractiveCli-GPT3TVOK.js} +96 -98
- package/chunks/{notebook-edit-HOJLHP3F.js → notebook-edit-3WCVRNGL.js} +27 -30
- package/chunks/{openaiContentGenerator-ZAJTUWVO.js → openaiContentGenerator-OGILGUZE.js} +12 -17
- package/chunks/{openaiResponsesContentGenerator-AWRYZLJU.js → openaiResponsesContentGenerator-NXOXUPFM.js} +45 -13
- package/chunks/{pidfile-CS7LHAN5.js → pidfile-GBTBIGHF.js} +39 -42
- package/chunks/{process-registry-X6ZCASEN.js → process-registry-7LAPI3ZB.js} +1 -1
- package/chunks/{processUtils-OWQU3JQM.js → processUtils-O4II3RYH.js} +2 -2
- package/chunks/{prompt-terminal-ledger-76P527XD.js → prompt-terminal-ledger-ILIXZI3E.js} +40 -43
- package/chunks/{pt-5ZF7ZQUV.js → pt-FYYFWYUC.js} +11 -0
- package/chunks/{qwenContentGenerator-QZCQ3UTX.js → qwenContentGenerator-I4LRYADV.js} +33 -36
- package/chunks/{qwenOAuth2-WIEUEFEY.js → qwenOAuth2-3J66TOT5.js} +6 -7
- package/chunks/{read-file-KR5BES2E.js → read-file-G4XKW2CS.js} +5 -9
- package/chunks/{record-artifact-PXMNP7GZ.js → record-artifact-L3CFJOMA.js} +2 -2
- package/chunks/{report-findings-W6GR7SYZ.js → report-findings-LY5HQY4K.js} +3 -3
- package/chunks/{resumeHistoryUtils-36NM5S3D.js → resumeHistoryUtils-YPJU4XFE.js} +44 -47
- package/chunks/{ripGrep-QGFIVODS.js → ripGrep-AAKMALLM.js} +7 -11
- package/chunks/{ru-7BNZFQKG.js → ru-RHEB3RNS.js} +11 -0
- package/chunks/{run-qwen-serve-UFEOUIDD.js → run-qwen-serve-ZVEKGS7Y.js} +177 -98
- package/chunks/{runtime-7LTR2C7Q.js → runtime-SJCRYNPA.js} +52 -55
- package/chunks/safe-mode-KLGUG54M.js +11 -0
- package/chunks/sandbox-UIXL423Z.js +146 -0
- package/chunks/sandboxConfig-CY343YNJ.js +114 -0
- package/chunks/{scheduled-tasks-MV22T3JO.js → scheduled-tasks-5UGBEVNZ.js} +50 -53
- package/chunks/{scheduler-HSNQ53ML.js → scheduler-GCZYLZ2P.js} +41 -44
- package/chunks/{sdk-exporters-http-3R2TRQHE.js → sdk-exporters-http-DR4G663K.js} +1 -1
- package/chunks/{sdk-impl-4WF3VZ2F.js → sdk-impl-SJR26MQF.js} +3 -3
- package/chunks/{send-message-UMJKN27Q.js → send-message-DN76MXDX.js} +6 -6
- package/chunks/{serve-LDD4FEJQ.js → serve-2XXQLVK2.js} +48 -51
- package/chunks/{server-IKTZFW3E.js → server-UHMKPCAZ.js} +408 -211
- package/chunks/{session-T77EXOOI.js → session-ZLUK7E4P.js} +108 -108
- package/chunks/{session-attachments-root-FBASBVAO.js → session-attachments-root-DHQM5IEZ.js} +39 -42
- package/chunks/{session-pr-refresh-2BHKIMIN.js → session-pr-refresh-3OMTQWCZ.js} +48 -51
- package/chunks/{settings-TJNUFBGG.js → settings-P4DHIIUP.js} +50 -53
- package/chunks/{shell-HDI5VPGD.js → shell-IMFUVQQ5.js} +27 -30
- package/chunks/{skill-VTA6FNDX.js → skill-NB5RJGZW.js} +7 -11
- package/chunks/{skill-settings-K4LSGCKA.js → skill-settings-IXG5CTQO.js} +47 -50
- package/chunks/{spawnChannel-YSGSPD5D.js → spawnChannel-Q3YALTCJ.js} +44 -45
- package/chunks/{standalone-update-O5LYCCMB.js → standalone-update-H5OJ7MM7.js} +41 -44
- package/chunks/{start-opentui-ui-CS6HKYCE.js → start-opentui-ui-JKAIWGF7.js} +733 -386
- package/chunks/{startInteractiveUI-IVP5HEDD.js → startInteractiveUI-YRPOT6GH.js} +370 -337
- package/chunks/task-create-75HVPEAH.js +1 -1
- package/chunks/{team-create-DW4KE2PR.js → team-create-2XTBYRJF.js} +31 -34
- package/chunks/{team-plan-approval-33UL4JDG.js → team-plan-approval-CFNWW7ZQ.js} +27 -30
- package/chunks/{terminal-image-renderer-4FK76L22.js → terminal-image-renderer-UDPJPGPQ.js} +39 -42
- package/chunks/{theme-manager-UQ3EKEJ4.js → theme-manager-SK57EKMO.js} +39 -42
- package/chunks/{tool-search-QUOG6M6M.js → tool-search-ZHTJU2MV.js} +5 -9
- package/chunks/{total-session-admission-QRWPWSK5.js → total-session-admission-UUZBDQCG.js} +47 -50
- package/chunks/{tree-sitter-ALGO6NDO.js → tree-sitter-4D7QS7F6.js} +1 -1
- package/chunks/{tree-sitter-bash-H6YH7EBF.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
- package/chunks/{trustedFolders-HESP75BK.js → trustedFolders-4LDBLNTS.js} +40 -43
- package/chunks/{update-relaunch-YROJ7A26.js → update-relaunch-LI7GRP36.js} +5 -5
- package/chunks/{updateCheck-CUKTRHID.js → updateCheck-PKSSORPO.js} +43 -46
- package/chunks/{useAutoAcceptIndicator-BQGSRBHX.js → useAutoAcceptIndicator-I32UEQPI.js} +50 -53
- package/chunks/{validateNonInterActiveAuth-UM5U2ZZI.js → validateNonInterActiveAuth-YFPCYYNL.js} +93 -95
- package/chunks/{version-A6G2KO4K.js → version-4MTL4JVU.js} +1 -1
- package/chunks/{web-fetch-A3RMCVQY.js → web-fetch-O6RG6ISB.js} +9 -13
- package/chunks/{web-search-3XGJ773E.js → web-search-JHAXVEMD.js} +9 -14
- package/chunks/{web-shell-static-T7UGLVE4.js → web-shell-static-FFWCUUZS.js} +8 -4
- package/chunks/{workflow-4TWAFNIB.js → workflow-O7L6VDYU.js} +396 -113
- package/chunks/{workspace-providers-status-GNTJ4OIZ.js → workspace-providers-status-WRX6CJM4.js} +53 -56
- package/chunks/{workspace-registration-store-D3K34O63.js → workspace-registration-store-7G4E7YPY.js} +1 -1
- package/chunks/{workspace-registry-ZE5ZSWNF.js → workspace-registry-SXIMGT4D.js} +47 -50
- package/chunks/{workspace-runtime-coordinator-DEXM2635.js → workspace-runtime-coordinator-7DOEHXYT.js} +47 -50
- package/chunks/{workspace-service-OGYORPWD.js → workspace-service-HDXOZMYC.js} +53 -56
- package/chunks/{workspace-skills-status-4W4H3BGJ.js → workspace-skills-status-VN4L37CA.js} +50 -53
- package/chunks/{workspace-trust-reconciler-BHR7S7UJ.js → workspace-trust-reconciler-XEBW5FUL.js} +57 -60
- package/chunks/{write-file-EP5AEO5E.js → write-file-LKX4ETIO.js} +29 -32
- package/chunks/{zh-V2EYTYJP.js → zh-F76MZTL3.js} +23 -1
- package/chunks/{zh-TW-7PRVUGLW.js → zh-TW-S3YTQ4DS.js} +23 -1
- package/chunks/{zoom-image-DDEGWG3R.js → zoom-image-RDPRTP4B.js} +5 -9
- package/cli.js +19 -15
- package/export-transcript-document.css +1 -1
- package/export-transcript-document.js +151 -150
- package/locales/ca.js +19 -2
- package/locales/de.js +18 -0
- package/locales/en.js +33 -2
- package/locales/fr.js +18 -0
- package/locales/ja.js +18 -0
- package/locales/pt.js +18 -0
- package/locales/ru.js +18 -0
- package/locales/zh-TW.js +33 -2
- package/locales/zh.js +33 -2
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BtpzKw3A.js → abnfDiagram-VCTEODGH-RxykUDmi.js} +1 -1
- package/web-shell/assets/{arc-CQiVKZJP.js → arc-CZpgGCJC.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-ekIPBb2d.js → architectureDiagram-5GKGNRK7-BHSMzNDT.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-BrRWkWri.js → blockDiagram-NRAW4CY4-Bn4mF9SZ.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-qYS8CYZ3.js → c4Diagram-UCG6FXSJ-CBM-Bj6t.js} +1 -1
- package/web-shell/assets/channel-DFYs_LlK.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-ZasyyEZm.js → chunk-2Q5K7J3B-D5Fin58O.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-C_IzCGeA.js → chunk-5VM5RSS4-CY05weF7.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-C25NZOyD.js → chunk-F27PBJKO-3neZnj5Y.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-XPOHNSGX.js → chunk-G27WJ6UU-Cd7EU4BE.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BQBh0Xni.js → chunk-JWPE2WC7-DwK1mqFw.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CoShjpX7.js → chunk-LCL6LL3I-Sl7vY22C.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-BwRmCDSz.js → chunk-POPQ4Y6H-BXNzpbVg.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-DSzE5-Mw.js → chunk-SVP7TREG-DjjButcp.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-BQSQv30h.js → chunk-XXDRQBXY-DNOiCjOJ.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DnGrKXoM.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DnGrKXoM.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-XVUVTHVo.js → cose-bilkent-JH36ORCC-BUnker7a.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-CrsKx4lQ.js → cynefin-OW5HDTMX-DcUgdWE5.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BPeZEuHw.js → cynefinDiagram-5FMLGOSQ-CvDKsZsL.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-D31cQ2Qs.js → dagre-3AP2YEHR-jpCmUbr1.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-zyiG097Q.js → diagram-S7CK7UJ4-DBe_bKE5.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-Br3vtfsy.js → diagram-UQ7AKVKN-oXvPpDgs.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-Bxkhjx4u.js → diagram-VSXAHHWV-BD7-_SGh.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-BQH8QiDk.js → diagram-VX7I27RA-DOJL0wub.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-B_aQ1cw0.js → diagram-Z3DM3KII-DRIiodDD.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-B9N7BRQE.js → ebnfDiagram-PWID7BFC-Db31Ulmb.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-Cx6Hb1Re.js → erDiagram-SSCWMZ5O-CVHhwI2_.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-DTuLP7GU.js → flowDiagram-A5DVABFB-DWOFy1FK.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DYS3d-sL.js → ganttDiagram-EL5Y4UJY-C0sxQtPd.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Cp0EGx04.js → gitGraphDiagram-WWUBYQGX-CNituBYC.js} +1 -1
- package/web-shell/assets/index-B15NlwB8.js +2213 -0
- package/web-shell/assets/index-BSrS0tQ6.css +36 -0
- package/web-shell/assets/{index-45-LkPDB.js → index-gm9tLk7h.js} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-9--kukiT.js → infoDiagram-RXCK75RN-CxhJYtIR.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CGBdsDLD.js → ishikawaDiagram-5VMMS53U-By2mchUy.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DeXhcscd.js → journeyDiagram-EYS64GPL-CVH-OweI.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-CFdvsU3b.js → kanban-definition-3QL26DDD-Cc9dQXLy.js} +1 -1
- package/web-shell/assets/knowledge-Dg9788h4.svg +1 -0
- package/web-shell/assets/{layout-DAnwQ3KB.js → layout-C_60ysHw.js} +1 -1
- package/web-shell/assets/{linear-CTo7v7Nh.js → linear-BvAVfqwu.js} +1 -1
- package/web-shell/assets/{mermaid.core-jggSxF1i.js → mermaid.core-C3CoBKAc.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DzIepvlJ.js → mindmap-definition-FBJOCRG2-Cuu8Q8LM.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-BFGS9GJv.js → pegDiagram-XKGWAZYB-DmAeyDO2.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-B2UUcNIT.js → pieDiagram-E7YTZNPT-B7vbB_xv.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-BgM6htrX.js → quadrantDiagram-AXDQQJYC-BqOBkRR7.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-Dk9cS7N-.js → railroadDiagram-O6MQD6OU-sI06lZIu.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C9oRg7xi.js → requirementDiagram-EFPCY7ZU-Bg13d10S.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-B-_c7GzI.js → sankeyDiagram-P5KCCOFB-WFOzZHrR.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-R0M-347u.js → sequenceDiagram-WJ2MYXX4-CCdRbA4E.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-Df0f8UAW.js → sizeCapture-X5ZJPWSS-BH5F3bGg.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-CsUEfAA-.js → stateDiagram-HBIQ2CUA-NwS2X3QB.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-1aU2JZXO.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-9OGHVSrx.js → swimlanes-XN3QIQJK-Bm38pM28.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Dp-u6kQG.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DAfGqS2B.js → timeline-definition-24CTP7MA-Do-agLSo.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-CKATpwHi.js → vennDiagram-4TSXK5OY-aggLfZzl.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-CQHdhTrm.js → wardleyDiagram-VM6X3IG4-D5JR3mXX.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-5k9NLqlY.js → xychartDiagram-S5SC5T6Z-DhtLDuXs.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-7MIBD3LG.js +0 -137
- package/chunks/chunk-ARDHE6MM.js +0 -235
- package/chunks/chunk-C75BXMPM.js +0 -169
- package/chunks/chunk-ERU3SDXT.js +0 -27
- package/chunks/chunk-FPGTNKCP.js +0 -251
- package/chunks/chunk-JL6APGBX.js +0 -43
- package/chunks/chunk-L5OBTAXN.js +0 -137
- package/chunks/chunk-MZ3W3F44.js +0 -4172
- package/chunks/chunk-OIDF7L67.js +0 -514
- package/chunks/chunk-VSXX6VUI.js +0 -2812
- package/chunks/chunk-ZFYACOVD.js +0 -1416
- package/web-shell/assets/channel-DSQQnOZj.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-V94ta08R.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-V94ta08R.js +0 -1
- package/web-shell/assets/index-H8um-iEl.js +0 -2207
- package/web-shell/assets/index-n6N-2a3v.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CnSuTPJ2.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Bb7TcWQw.js +0 -8
- package/chunks/{chunk-QZW6WRB7.js → chunk-5NUKK2DT.js} +2 -2
- package/chunks/{chunk-JS73NNWF.js → chunk-FUSEMYFX.js} +0 -0
- package/chunks/{chunk-SVWWF5TZ.js → chunk-WVURIAEE.js} +3 -3
- package/chunks/{task-update-RI7QNVDP.js → task-update-3LSYQDRW.js} +4 -4
|
@@ -4,31 +4,27 @@ import {
|
|
|
4
4
|
DASHSCOPE_PROXY_BASE_URL,
|
|
5
5
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
6
6
|
DEFAULT_MAX_RETRIES,
|
|
7
|
+
buildSessionAwareFetch,
|
|
8
|
+
getEffectiveReasoning,
|
|
9
|
+
isOpenRouterHostname,
|
|
10
|
+
resolveReasoningForModel,
|
|
7
11
|
resolveRequestTimeout
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
buildSessionAwareFetch
|
|
11
|
-
} from "./chunk-C75BXMPM.js";
|
|
12
|
-
import {
|
|
13
|
-
isQwenFamilyWireModel,
|
|
14
|
-
isTieredEffortWireModel
|
|
15
|
-
} from "./chunk-7MIBD3LG.js";
|
|
12
|
+
} from "./chunk-KEM7MWS7.js";
|
|
16
13
|
import {
|
|
17
14
|
REASONING_EFFORT_TIERS,
|
|
18
15
|
clampReasoningEffort,
|
|
19
|
-
getGptReasoningCapabilities,
|
|
20
|
-
isReasoningEffortPlaceholder,
|
|
21
|
-
parseModelReasoningCapabilities
|
|
22
|
-
} from "./chunk-ARDHE6MM.js";
|
|
23
|
-
import {
|
|
24
16
|
defaultOutputCeiling,
|
|
17
|
+
getGptReasoningCapabilities,
|
|
25
18
|
hasExplicitOutputLimit,
|
|
19
|
+
isQwenFamilyWireModel,
|
|
20
|
+
isReasoningEffortPlaceholder,
|
|
21
|
+
isTieredEffortWireModel,
|
|
26
22
|
parsePositiveIntegerEnvValue,
|
|
27
23
|
tokenLimit
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GJKP6XOB.js";
|
|
29
25
|
import {
|
|
30
26
|
buildRuntimeFetchOptions
|
|
31
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7O5PYQ3M.js";
|
|
32
28
|
import {
|
|
33
29
|
createDebugLogger
|
|
34
30
|
} from "./chunk-ZAFYHRVY.js";
|
|
@@ -44,22 +40,6 @@ import {
|
|
|
44
40
|
|
|
45
41
|
// packages/core/src/core/openaiContentGenerator/provider/default.ts
|
|
46
42
|
init_esbuild_shims();
|
|
47
|
-
|
|
48
|
-
// packages/core/src/core/openaiContentGenerator/provider/openrouter.ts
|
|
49
|
-
init_esbuild_shims();
|
|
50
|
-
function isOpenRouterHostname(contentGeneratorConfig) {
|
|
51
|
-
const baseUrl = contentGeneratorConfig.baseUrl ?? "";
|
|
52
|
-
if (!baseUrl) return false;
|
|
53
|
-
try {
|
|
54
|
-
const hostname = new URL(baseUrl).hostname.toLowerCase();
|
|
55
|
-
return hostname === "openrouter.ai" || hostname.endsWith(".openrouter.ai");
|
|
56
|
-
} catch {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
__name(isOpenRouterHostname, "isOpenRouterHostname");
|
|
61
|
-
|
|
62
|
-
// packages/core/src/core/openaiContentGenerator/provider/default.ts
|
|
63
43
|
var debugLogger = createDebugLogger("DefaultOpenAICompatibleProvider");
|
|
64
44
|
var OPENAI_COMPATIBLE_EFFORTS = [
|
|
65
45
|
"low",
|
|
@@ -146,13 +126,18 @@ var DefaultOpenAICompatibleProvider = class {
|
|
|
146
126
|
* `super.buildRequest` path.
|
|
147
127
|
*/
|
|
148
128
|
supportedReasoningEffortsFor(model) {
|
|
149
|
-
const
|
|
150
|
-
if (!
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
129
|
+
const configured = this.getReasoningCapabilities(model);
|
|
130
|
+
if (!configured?.profile && !getGptReasoningCapabilities(model))
|
|
131
|
+
return OPENAI_COMPATIBLE_EFFORTS;
|
|
132
|
+
if (configured && !configured.toggleOnly) return configured.efforts;
|
|
133
|
+
return getGptReasoningCapabilities(model)?.efforts ?? OPENAI_COMPATIBLE_EFFORTS;
|
|
134
|
+
}
|
|
135
|
+
getReasoningCapabilities(model) {
|
|
136
|
+
return resolveReasoningForModel(
|
|
137
|
+
this.cliConfig,
|
|
138
|
+
this.contentGeneratorConfig,
|
|
139
|
+
model
|
|
140
|
+
);
|
|
156
141
|
}
|
|
157
142
|
/**
|
|
158
143
|
* Cap the pipeline-injected `reasoning.effort` at what this endpoint accepts.
|
|
@@ -166,7 +151,7 @@ var DefaultOpenAICompatibleProvider = class {
|
|
|
166
151
|
* merges after this, so both explicit overrides survive unchanged.
|
|
167
152
|
*/
|
|
168
153
|
clampConfiguredReasoningEffort(request) {
|
|
169
|
-
if (this.contentGeneratorConfig.samplingParams?.["reasoning"] !== void 0) {
|
|
154
|
+
if (this.contentGeneratorConfig.samplingParams?.["reasoning"] !== void 0 || this.getReasoningCapabilities(request.model)?.profile) {
|
|
170
155
|
return request;
|
|
171
156
|
}
|
|
172
157
|
const loose = request;
|
|
@@ -200,7 +185,8 @@ var DefaultOpenAICompatibleProvider = class {
|
|
|
200
185
|
const requestWithTokenLimits = this.clampConfiguredReasoningEffort(
|
|
201
186
|
this.applyOutputTokenLimit(request)
|
|
202
187
|
);
|
|
203
|
-
const
|
|
188
|
+
const profile = this.getReasoningCapabilities(request.model)?.profile;
|
|
189
|
+
const messages = !profile && isQwen3Model(request.model) || profile === "qwen-chat-template" ? requestWithTokenLimits.messages.map(mirrorReasoningContentToReasoning) : requestWithTokenLimits.messages;
|
|
204
190
|
const result = {
|
|
205
191
|
...requestWithTokenLimits,
|
|
206
192
|
messages,
|
|
@@ -210,7 +196,7 @@ var DefaultOpenAICompatibleProvider = class {
|
|
|
210
196
|
return result;
|
|
211
197
|
}
|
|
212
198
|
flattenGptReasoningEffort(body) {
|
|
213
|
-
if (!getGptReasoningCapabilities(body["model"]) || isOpenRouterHostname(this.contentGeneratorConfig) || this.contentGeneratorConfig.samplingParams?.["reasoning"] !== void 0 || this.contentGeneratorConfig.extra_body?.["reasoning"] !== void 0)
|
|
199
|
+
if (this.getReasoningCapabilities(body["model"])?.profile || !getGptReasoningCapabilities(body["model"]) || isOpenRouterHostname(this.contentGeneratorConfig) || this.contentGeneratorConfig.samplingParams?.["reasoning"] !== void 0 || this.contentGeneratorConfig.extra_body?.["reasoning"] !== void 0)
|
|
214
200
|
return;
|
|
215
201
|
const reasoning = body["reasoning"];
|
|
216
202
|
if (typeof reasoning?.effort !== "string" || !reasoning.effort) return;
|
|
@@ -607,15 +593,14 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
607
593
|
return merged;
|
|
608
594
|
}
|
|
609
595
|
getConfiguredReasoning(model) {
|
|
610
|
-
|
|
611
|
-
const wireModel = model ?? this.contentGeneratorConfig.model;
|
|
612
|
-
const reasoning = authType ? this.cliConfig.getResolvedModelConfig?.(authType, wireModel, baseUrl)?.capabilities.reasoning : void 0;
|
|
613
|
-
return parseModelReasoningCapabilities(reasoning);
|
|
596
|
+
return this.getReasoningCapabilities(model);
|
|
614
597
|
}
|
|
615
598
|
isTieredEffortModel(model) {
|
|
599
|
+
const configured = this.getConfiguredReasoning(model);
|
|
600
|
+
if (configured?.profile) return configured.profile === "dashscope-effort";
|
|
616
601
|
return isTieredEffortWireModel(
|
|
617
602
|
model ?? this.contentGeneratorConfig.model,
|
|
618
|
-
|
|
603
|
+
configured
|
|
619
604
|
);
|
|
620
605
|
}
|
|
621
606
|
resolveWireModel(model) {
|
|
@@ -631,15 +616,20 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
631
616
|
* model sharing the DashScope endpoint.
|
|
632
617
|
*/
|
|
633
618
|
buildQwenEffortConfig(model) {
|
|
634
|
-
const
|
|
619
|
+
const configured = this.getConfiguredReasoning(model);
|
|
620
|
+
if (configured?.profile) return {};
|
|
621
|
+
const reasoning = getEffectiveReasoning(
|
|
622
|
+
this.contentGeneratorConfig,
|
|
623
|
+
configured
|
|
624
|
+
);
|
|
635
625
|
if (!reasoning || reasoning.effort === void 0) {
|
|
636
626
|
return {};
|
|
637
627
|
}
|
|
638
628
|
const wireModel = this.resolveWireModel(model);
|
|
639
629
|
if (this.isTieredEffortModel(model)) {
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
642
|
-
return
|
|
630
|
+
const configured2 = this.getConfiguredReasoning(model);
|
|
631
|
+
if (configured2 && !configured2.toggleOnly) {
|
|
632
|
+
return configured2.efforts.includes(reasoning.effort) ? { reasoning_effort: reasoning.effort } : {};
|
|
643
633
|
}
|
|
644
634
|
return { reasoning_effort: this.clampTieredEffort(reasoning.effort) };
|
|
645
635
|
}
|
|
@@ -1007,14 +997,8 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
1007
997
|
};
|
|
1008
998
|
|
|
1009
999
|
export {
|
|
1010
|
-
isOpenRouterHostname,
|
|
1011
1000
|
DefaultOpenAICompatibleProvider,
|
|
1012
1001
|
selectDashScopeThinkingKnob,
|
|
1013
1002
|
DASHSCOPE_REGIONAL_HOSTS,
|
|
1014
1003
|
DashScopeOpenAICompatibleProvider
|
|
1015
1004
|
};
|
|
1016
|
-
/**
|
|
1017
|
-
* @license
|
|
1018
|
-
* Copyright 2025 Qwen
|
|
1019
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1020
|
-
*/
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
import {
|
|
4
4
|
SERVE_CONTROL_EXT_METHODS,
|
|
5
5
|
STATUS_SCHEMA_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M23GFJ5B.js";
|
|
7
7
|
import {
|
|
8
|
+
AcpChildCapacityExceededError,
|
|
8
9
|
WorkspaceDrainingError
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YXHY6BKS.js";
|
|
10
11
|
import {
|
|
11
12
|
init_esbuild_shims
|
|
12
13
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -154,7 +155,8 @@ var WorkspaceRuntimeCoordinator = class {
|
|
|
154
155
|
);
|
|
155
156
|
} catch (error) {
|
|
156
157
|
this.assertAcceptingWork(error);
|
|
157
|
-
if (error instanceof WorkspaceRuntimeStillStartingError
|
|
158
|
+
if (error instanceof WorkspaceRuntimeStillStartingError || error instanceof AcpChildCapacityExceededError)
|
|
159
|
+
throw error;
|
|
158
160
|
throw new WorkspaceRuntimeInitializationError(error);
|
|
159
161
|
}
|
|
160
162
|
}
|
|
@@ -339,7 +341,7 @@ var WorkspaceRuntimeCoordinator = class {
|
|
|
339
341
|
try {
|
|
340
342
|
await this.bridge.preheat({ keepAliveMs: ENSURE_KEEP_ALIVE_MS });
|
|
341
343
|
} catch (error) {
|
|
342
|
-
if (error instanceof WorkspaceRuntimeStillStartingError)
|
|
344
|
+
if (error instanceof WorkspaceRuntimeStillStartingError || error instanceof AcpChildCapacityExceededError)
|
|
343
345
|
throw error;
|
|
344
346
|
throw new WorkspaceRuntimeInitializationError(error);
|
|
345
347
|
}
|
|
@@ -469,7 +471,8 @@ var WorkspaceRuntimeCoordinator = class {
|
|
|
469
471
|
try {
|
|
470
472
|
await this.bridge.preheat({ keepAliveMs: ENSURE_KEEP_ALIVE_MS });
|
|
471
473
|
} catch (error) {
|
|
472
|
-
if (error instanceof WorkspaceRuntimeStillStartingError
|
|
474
|
+
if (error instanceof WorkspaceRuntimeStillStartingError || error instanceof AcpChildCapacityExceededError)
|
|
475
|
+
throw error;
|
|
473
476
|
throw new WorkspaceRuntimeInitializationError(error);
|
|
474
477
|
}
|
|
475
478
|
snapshot = this.bridge.getWorkspaceRuntimeLifecycleSnapshot();
|
|
@@ -13,6 +13,20 @@ import {
|
|
|
13
13
|
// packages/acp-bridge/src/bridgeErrors.ts
|
|
14
14
|
init_esbuild_shims();
|
|
15
15
|
var NOT_CURRENTLY_GENERATING_CANCEL_MESSAGE = "Not currently generating";
|
|
16
|
+
var AcpChildCapacityExceededError = class extends Error {
|
|
17
|
+
constructor(maxConcurrentChildren, committedAcpChildren) {
|
|
18
|
+
super(
|
|
19
|
+
"The service has reached its concurrent process limit. Try again later or cancel this operation."
|
|
20
|
+
);
|
|
21
|
+
this.maxConcurrentChildren = maxConcurrentChildren;
|
|
22
|
+
this.committedAcpChildren = committedAcpChildren;
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
__name(this, "AcpChildCapacityExceededError");
|
|
26
|
+
}
|
|
27
|
+
name = "AcpChildCapacityExceededError";
|
|
28
|
+
code = "acp_child_capacity_exhausted";
|
|
29
|
+
};
|
|
16
30
|
var StandaloneSessionSpawnError = class extends Error {
|
|
17
31
|
constructor(dispatched, cause) {
|
|
18
32
|
super("Daemon-owned standalone session creation failed", { cause });
|
|
@@ -498,6 +512,7 @@ var McpAuthenticationInProgressError = class extends Error {
|
|
|
498
512
|
|
|
499
513
|
export {
|
|
500
514
|
NOT_CURRENTLY_GENERATING_CANCEL_MESSAGE,
|
|
515
|
+
AcpChildCapacityExceededError,
|
|
501
516
|
StandaloneSessionSpawnError,
|
|
502
517
|
isNotCurrentlyGeneratingCancelError,
|
|
503
518
|
SessionNotFoundError,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
OpenAIContentConverter,
|
|
5
5
|
TaggedThinkingParser,
|
|
6
6
|
openaiRequestCaptureContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3WWPEFMX.js";
|
|
8
8
|
import {
|
|
9
9
|
applyOfficialOpenAIPromptCaching,
|
|
10
10
|
isOfficialOpenAIEndpoint,
|
|
@@ -12,9 +12,8 @@ import {
|
|
|
12
12
|
} from "./chunk-WFNEY5G7.js";
|
|
13
13
|
import {
|
|
14
14
|
DashScopeOpenAICompatibleProvider,
|
|
15
|
-
DefaultOpenAICompatibleProvider
|
|
16
|
-
|
|
17
|
-
} from "./chunk-GSS4SZNG.js";
|
|
15
|
+
DefaultOpenAICompatibleProvider
|
|
16
|
+
} from "./chunk-YP2K3WOS.js";
|
|
18
17
|
import {
|
|
19
18
|
getCurrentAgentId
|
|
20
19
|
} from "./chunk-BW2SMO6L.js";
|
|
@@ -31,7 +30,7 @@ import {
|
|
|
31
30
|
resolveStreamIdleTimeoutMs,
|
|
32
31
|
resolveStreamMaxLifetimeMs,
|
|
33
32
|
withStreamGuards
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HXUI5D4H.js";
|
|
35
34
|
import {
|
|
36
35
|
runtimeDiagnostics
|
|
37
36
|
} from "./chunk-VNOVK4I7.js";
|
|
@@ -49,32 +48,32 @@ import {
|
|
|
49
48
|
import {
|
|
50
49
|
getRateLimitErrorDetails,
|
|
51
50
|
getTransportCode
|
|
52
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3XBUCOWS.js";
|
|
53
52
|
import {
|
|
54
53
|
reportOpenAiChunk,
|
|
55
54
|
reportOpenAiRequest,
|
|
56
55
|
reportOpenAiResponse
|
|
57
56
|
} from "./chunk-AXPOOQAW.js";
|
|
57
|
+
import {
|
|
58
|
+
getEffectiveReasoning,
|
|
59
|
+
isOpenRouterHostname,
|
|
60
|
+
resolveReasoningForModel
|
|
61
|
+
} from "./chunk-KEM7MWS7.js";
|
|
58
62
|
import {
|
|
59
63
|
ProtocolTagSanitizedEvent,
|
|
60
64
|
logProtocolTagSanitized
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import {
|
|
63
|
-
isQwenFamilyWireModel,
|
|
64
|
-
isTieredEffortWireModel
|
|
65
|
-
} from "./chunk-7MIBD3LG.js";
|
|
65
|
+
} from "./chunk-CDDP4ONL.js";
|
|
66
66
|
import {
|
|
67
67
|
REASONING_EFFORT_TIERS,
|
|
68
68
|
getGptReasoningCapabilities,
|
|
69
|
+
isQwenFamilyWireModel,
|
|
69
70
|
isReasoningEffortPlaceholder,
|
|
70
|
-
|
|
71
|
-
} from "./chunk-ARDHE6MM.js";
|
|
72
|
-
import {
|
|
71
|
+
isTieredEffortWireModel,
|
|
73
72
|
reconcileMaxTokens
|
|
74
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-GJKP6XOB.js";
|
|
75
74
|
import {
|
|
76
75
|
redactProxyError
|
|
77
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-7O5PYQ3M.js";
|
|
78
77
|
import {
|
|
79
78
|
createDebugLogger,
|
|
80
79
|
getErrorMessage,
|
|
@@ -203,7 +202,7 @@ var DeepSeekOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProv
|
|
|
203
202
|
* `isDeepSeekHostname`. Elsewhere the generic ceiling applies.
|
|
204
203
|
*/
|
|
205
204
|
supportedReasoningEffortsFor(model) {
|
|
206
|
-
return isDeepSeekHostname(this.contentGeneratorConfig) ? REASONING_EFFORT_TIERS : super.supportedReasoningEffortsFor(model);
|
|
205
|
+
return !this.getReasoningCapabilities(model)?.profile && isDeepSeekHostname(this.contentGeneratorConfig) ? REASONING_EFFORT_TIERS : super.supportedReasoningEffortsFor(model);
|
|
207
206
|
}
|
|
208
207
|
/**
|
|
209
208
|
* Text-only DeepSeek APIs require message content to be a plain string, not
|
|
@@ -220,15 +219,15 @@ var DeepSeekOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProv
|
|
|
220
219
|
*/
|
|
221
220
|
buildRequest(request, userPromptId) {
|
|
222
221
|
const baseRequest = super.buildRequest(request, userPromptId);
|
|
223
|
-
const
|
|
222
|
+
const profile = this.getReasoningCapabilities(request.model)?.profile;
|
|
223
|
+
const reshaped = (!profile || this.contentGeneratorConfig.samplingParams?.["reasoning"] !== void 0 || this.contentGeneratorConfig.extra_body?.["reasoning"] !== void 0) && isDeepSeekHostname(this.contentGeneratorConfig) ? translateReasoningEffort(baseRequest) : baseRequest;
|
|
224
224
|
if (!reshaped.messages?.length) {
|
|
225
225
|
return reshaped;
|
|
226
226
|
}
|
|
227
|
-
const messages = reshaped.messages.map(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
);
|
|
227
|
+
const messages = reshaped.messages.map((message) => {
|
|
228
|
+
const content = this.contentGeneratorConfig.modalities?.image ? message : flattenContentParts(message);
|
|
229
|
+
return isDeepSeekHostname(this.contentGeneratorConfig) || !profile || profile === "deepseek-openai" ? ensureReasoningContentOnAssistantMessage(content) : content;
|
|
230
|
+
});
|
|
232
231
|
return {
|
|
233
232
|
...reshaped,
|
|
234
233
|
messages
|
|
@@ -402,6 +401,33 @@ var MiniMaxOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvi
|
|
|
402
401
|
return false;
|
|
403
402
|
}
|
|
404
403
|
}
|
|
404
|
+
/**
|
|
405
|
+
* MiniMax rejects a function tool that carries no `parameters` at all
|
|
406
|
+
* (#11834: `400 invalid params, function parameters is empty (2013)`), so
|
|
407
|
+
* zero-argument tools get an empty object schema injected here.
|
|
408
|
+
*
|
|
409
|
+
* This deliberately reverses the converter's invariant one layer down:
|
|
410
|
+
* converter.ts sets `parameters = undefined` for parameterless tools
|
|
411
|
+
* (#11431), because the default-provider endpoints #10080 was written for
|
|
412
|
+
* (llama.cpp, LM Studio, vLLM) reject the empty-object shape. Keep this
|
|
413
|
+
* MiniMax-scoped: do not hoist it into DefaultOpenAICompatibleProvider,
|
|
414
|
+
* and do not move it into the converter ahead of
|
|
415
|
+
* `relaxSchemaForFunctionCalling`, which strips empty `properties` and
|
|
416
|
+
* would emit the bare `{"type":"object"}` that #11410 reports as a 400.
|
|
417
|
+
*/
|
|
418
|
+
buildRequest(request, userPromptId) {
|
|
419
|
+
const baseRequest = super.buildRequest(request, userPromptId);
|
|
420
|
+
baseRequest.tools = baseRequest.tools?.map(
|
|
421
|
+
(tool) => tool.function.parameters === void 0 ? {
|
|
422
|
+
...tool,
|
|
423
|
+
function: {
|
|
424
|
+
...tool.function,
|
|
425
|
+
parameters: { type: "object", properties: {} }
|
|
426
|
+
}
|
|
427
|
+
} : tool
|
|
428
|
+
);
|
|
429
|
+
return baseRequest;
|
|
430
|
+
}
|
|
405
431
|
getResponseParsingOptions() {
|
|
406
432
|
return { taggedThinkingTags: true };
|
|
407
433
|
}
|
|
@@ -443,6 +469,8 @@ var MistralOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvi
|
|
|
443
469
|
static isMistralProvider = isMistralProvider;
|
|
444
470
|
buildRequest(request, userPromptId) {
|
|
445
471
|
const baseRequest = super.buildRequest(request, userPromptId);
|
|
472
|
+
if (!isMistralHostname(this.contentGeneratorConfig) && this.getReasoningCapabilities(request.model)?.profile === "deepseek-openai")
|
|
473
|
+
return baseRequest;
|
|
446
474
|
return {
|
|
447
475
|
...baseRequest,
|
|
448
476
|
messages: baseRequest.messages.map(stripReasoningContent)
|
|
@@ -548,7 +576,7 @@ var MiMoOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvider
|
|
|
548
576
|
static isMiMoProvider = isMiMoProvider;
|
|
549
577
|
buildRequest(request, userPromptId) {
|
|
550
578
|
const baseRequest = super.buildRequest(request, userPromptId);
|
|
551
|
-
if (!baseRequest.messages?.length) {
|
|
579
|
+
if (this.getReasoningCapabilities(request.model)?.profile && !isMiMoProvider({ ...this.contentGeneratorConfig, model: "" }) || !baseRequest.messages?.length) {
|
|
552
580
|
return baseRequest;
|
|
553
581
|
}
|
|
554
582
|
return {
|
|
@@ -1054,7 +1082,44 @@ function asObject(value) {
|
|
|
1054
1082
|
return value;
|
|
1055
1083
|
}
|
|
1056
1084
|
__name(asObject, "asObject");
|
|
1085
|
+
function profileReasoning(profile, reasoning) {
|
|
1086
|
+
if (reasoning === void 0) return {};
|
|
1087
|
+
const enabled = reasoning !== false;
|
|
1088
|
+
const effort = reasoning && reasoning.effort;
|
|
1089
|
+
switch (profile) {
|
|
1090
|
+
case "openai-reasoning":
|
|
1091
|
+
return { reasoning: enabled ? reasoning : { enabled: false } };
|
|
1092
|
+
case "openai-effort":
|
|
1093
|
+
case "dashscope-effort":
|
|
1094
|
+
return effort || !enabled ? { reasoning_effort: enabled ? effort : "none" } : {};
|
|
1095
|
+
case "deepseek-openai":
|
|
1096
|
+
return {
|
|
1097
|
+
thinking: { type: enabled ? "enabled" : "disabled" },
|
|
1098
|
+
...effort ? { reasoning_effort: effort } : {}
|
|
1099
|
+
};
|
|
1100
|
+
case "dashscope-thinking":
|
|
1101
|
+
return { enable_thinking: enabled };
|
|
1102
|
+
case "qwen-chat-template":
|
|
1103
|
+
return { chat_template_kwargs: { enable_thinking: enabled } };
|
|
1104
|
+
default:
|
|
1105
|
+
return {};
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
__name(profileReasoning, "profileReasoning");
|
|
1057
1109
|
function applyConfiguredReasoningEffort(request, capabilities) {
|
|
1110
|
+
if (capabilities?.profile) {
|
|
1111
|
+
const loose2 = request;
|
|
1112
|
+
const { reasoning: reasoning2, ...rest2 } = loose2;
|
|
1113
|
+
const { effort: _effort, ...siblings } = asObject(reasoning2) ?? {};
|
|
1114
|
+
return {
|
|
1115
|
+
...Object.keys(siblings).length ? { reasoning: siblings } : {},
|
|
1116
|
+
...profileReasoning(
|
|
1117
|
+
capabilities.profile,
|
|
1118
|
+
reasoning2
|
|
1119
|
+
),
|
|
1120
|
+
...rest2
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1058
1123
|
if (!capabilities || capabilities.toggleOnly || !Array.isArray(capabilities.efforts)) {
|
|
1059
1124
|
return request;
|
|
1060
1125
|
}
|
|
@@ -1555,10 +1620,16 @@ var ContentGenerationPipeline = class {
|
|
|
1555
1620
|
return true;
|
|
1556
1621
|
}
|
|
1557
1622
|
async buildRequest(request, userPromptId, context, isStreaming) {
|
|
1558
|
-
const
|
|
1623
|
+
const reasoningCapabilities = resolveReasoningForModel(
|
|
1624
|
+
this.config.cliConfig,
|
|
1625
|
+
this.contentGeneratorConfig,
|
|
1626
|
+
context.model
|
|
1627
|
+
);
|
|
1628
|
+
const convertedMessages = OpenAIContentConverter.convertLlmRequestToOpenAI(
|
|
1559
1629
|
request,
|
|
1560
1630
|
context
|
|
1561
1631
|
);
|
|
1632
|
+
const messages = reasoningCapabilities?.profile === "deepseek-openai" ? convertedMessages.map(ensureReasoningContentOnAssistantMessage) : convertedMessages;
|
|
1562
1633
|
let baseRequest = {
|
|
1563
1634
|
model: context.model,
|
|
1564
1635
|
messages,
|
|
@@ -1571,21 +1642,17 @@ var ContentGenerationPipeline = class {
|
|
|
1571
1642
|
} else {
|
|
1572
1643
|
baseRequest.stream = false;
|
|
1573
1644
|
}
|
|
1574
|
-
const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
this.contentGeneratorConfig.baseUrl
|
|
1580
|
-
)?.capabilities.reasoning
|
|
1581
|
-
) : void 0;
|
|
1582
|
-
if (reasoningCapabilities && !("reasoning" in baseRequest) && this.contentGeneratorConfig.reasoning) {
|
|
1645
|
+
const effectiveReasoning = getEffectiveReasoning(
|
|
1646
|
+
this.contentGeneratorConfig,
|
|
1647
|
+
reasoningCapabilities
|
|
1648
|
+
);
|
|
1649
|
+
if (reasoningCapabilities && !("reasoning" in baseRequest) && effectiveReasoning && request.config?.thinkingConfig?.includeThoughts !== false) {
|
|
1583
1650
|
baseRequest = {
|
|
1584
1651
|
...baseRequest,
|
|
1585
|
-
reasoning:
|
|
1652
|
+
reasoning: effectiveReasoning
|
|
1586
1653
|
};
|
|
1587
1654
|
}
|
|
1588
|
-
if (this.contentGeneratorConfig.samplingParams?.["reasoning"] === void 0 && !isOpenRouterHostname(this.contentGeneratorConfig)) {
|
|
1655
|
+
if (this.contentGeneratorConfig.samplingParams?.["reasoning"] === void 0 && (!reasoningCapabilities?.profile || this.contentGeneratorConfig.extra_body?.["reasoning"] === void 0) && (reasoningCapabilities?.profile || !isOpenRouterHostname(this.contentGeneratorConfig))) {
|
|
1589
1656
|
baseRequest = applyConfiguredReasoningEffort(
|
|
1590
1657
|
baseRequest,
|
|
1591
1658
|
reasoningCapabilities
|
|
@@ -1621,9 +1688,36 @@ var ContentGenerationPipeline = class {
|
|
|
1621
1688
|
this.contentGeneratorConfig
|
|
1622
1689
|
);
|
|
1623
1690
|
const explicitThinkingMandatory = reasoningCapabilities?.canDisable === false || this.requiresThinking(model);
|
|
1624
|
-
const
|
|
1691
|
+
const profile = reasoningCapabilities?.profile;
|
|
1692
|
+
const thinkingMandatory = explicitThinkingMandatory || !profile && getGptReasoningCapabilities(model)?.thinkingMandatory === true;
|
|
1625
1693
|
const reasoningDisabled = request.config?.thinkingConfig?.includeThoughts === false || this.contentGeneratorConfig.reasoning === false;
|
|
1626
|
-
if (
|
|
1694
|
+
if ((profile === "openai-effort" || profile === "dashscope-effort") && isReasoningEffortPlaceholder(providerRequest.reasoning_effort) && effectiveReasoning && this.contentGeneratorConfig.samplingParams?.["reasoning"] === void 0 && this.contentGeneratorConfig.extra_body?.["reasoning"] === void 0)
|
|
1695
|
+
providerRequest.reasoning_effort = effectiveReasoning.effort;
|
|
1696
|
+
if (reasoningDisabled && profile) {
|
|
1697
|
+
const typed2 = providerRequest;
|
|
1698
|
+
if (!thinkingMandatory || request.config?.thinkingConfig?.includeThoughts === false) {
|
|
1699
|
+
delete typed2["reasoning"];
|
|
1700
|
+
delete typed2["reasoning_effort"];
|
|
1701
|
+
}
|
|
1702
|
+
if (!thinkingMandatory) {
|
|
1703
|
+
if (isDashScope && profile === "dashscope-effort") {
|
|
1704
|
+
delete typed2["thinking_budget"];
|
|
1705
|
+
delete typed2["enable_thinking"];
|
|
1706
|
+
}
|
|
1707
|
+
const template = asObject(typed2["chat_template_kwargs"]);
|
|
1708
|
+
Object.assign(typed2, profileReasoning(profile, false));
|
|
1709
|
+
if (profile === "qwen-chat-template") {
|
|
1710
|
+
delete typed2["enable_thinking"];
|
|
1711
|
+
typed2["chat_template_kwargs"] = {
|
|
1712
|
+
...template,
|
|
1713
|
+
enable_thinking: false
|
|
1714
|
+
};
|
|
1715
|
+
} else if (reasoningCapabilities?.disableField === "enable_thinking") {
|
|
1716
|
+
delete typed2["reasoning_effort"];
|
|
1717
|
+
typed2["enable_thinking"] = false;
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
} else if (reasoningDisabled) {
|
|
1627
1721
|
const typed2 = providerRequest;
|
|
1628
1722
|
if (!thinkingMandatory && isQwenFamilyWireModel(model)) {
|
|
1629
1723
|
if (isDashScope) {
|
|
@@ -1788,7 +1882,14 @@ var ContentGenerationPipeline = class {
|
|
|
1788
1882
|
if (request.config?.thinkingConfig?.includeThoughts === false) {
|
|
1789
1883
|
return {};
|
|
1790
1884
|
}
|
|
1791
|
-
const reasoning =
|
|
1885
|
+
const reasoning = getEffectiveReasoning(
|
|
1886
|
+
this.contentGeneratorConfig,
|
|
1887
|
+
resolveReasoningForModel(
|
|
1888
|
+
this.config.cliConfig,
|
|
1889
|
+
this.contentGeneratorConfig,
|
|
1890
|
+
request.model
|
|
1891
|
+
)
|
|
1892
|
+
);
|
|
1792
1893
|
if (reasoning === false || reasoning === void 0) {
|
|
1793
1894
|
return {};
|
|
1794
1895
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
appEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CXY6BICQ.js";
|
|
6
6
|
import {
|
|
7
7
|
assembleMcpServers,
|
|
8
8
|
getPendingGatedMcpServers,
|
|
9
9
|
getPromptableMcpServers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WL36KHUQ.js";
|
|
11
11
|
import {
|
|
12
12
|
getMCPServerStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CDDP4ONL.js";
|
|
14
14
|
import {
|
|
15
15
|
require_fast_deep_equal
|
|
16
16
|
} from "./chunk-RSWBT7AZ.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-6H67XLET.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_RING_SIZE
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KWYTSSTJ.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_COMPACTED_REPLAY_MAX_BYTES,
|
|
11
11
|
DEFAULT_MAX_JOURNAL_BYTES,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
} from "./chunk-3VUENPWF.js";
|
|
28
28
|
import {
|
|
29
29
|
loadSettings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RRI764F7.js";
|
|
31
31
|
import {
|
|
32
32
|
MCP_BUDGET_WARN_FRACTION
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KAYC5FBN.js";
|
|
34
34
|
import {
|
|
35
35
|
parsePositiveIntegerEnv
|
|
36
36
|
} from "./chunk-6PVPNMXU.js";
|
|
@@ -272,9 +272,9 @@ var serveCommand = {
|
|
|
272
272
|
default: "observe",
|
|
273
273
|
description: "Whether the daemon derives a memory-pressure level from its own RSS and V8 heap. `observe` (default) reports the level in daemon status and raises a status issue when it leaves normal. `off` still reports the underlying figures but raises no issue, so the overall status rollup is unchanged \u2014 use it while calibrating, or if you alert on the top-level status. Nothing remediates in either mode."
|
|
274
274
|
}).option("child-heap-mode", {
|
|
275
|
-
choices: ["off", "observe"],
|
|
275
|
+
choices: ["off", "observe", "admit"],
|
|
276
276
|
default: "observe",
|
|
277
|
-
description: "Whether the daemon models a per-child heap partition of the memory budget. `observe` (default) reports the partition it would apply \u2014 `limits.memory.childHeap.perChildCeilingMb` and `maxConcurrentChildren` \u2014 and counts spawns that would have exceeded it. Nothing is applied: no child is sized from the budget and no spawn is refused. `off` models nothing. Note a refusal count of 0 does NOT mean the partition would be safe to apply; children still run on the much larger host-derived ceiling, so a workload needing more old space than the modeled ceiling looks healthy here."
|
|
277
|
+
description: "Whether the daemon models a per-child heap partition of the memory budget. `observe` (default) reports the partition it would apply \u2014 `limits.memory.childHeap.perChildCeilingMb` and `maxConcurrentChildren` \u2014 and counts spawns that would have exceeded it. Nothing is applied: no child is sized from the budget and no spawn is refused. `off` models nothing. Note a refusal count of 0 does NOT mean the partition would be safe to apply; children still run on the much larger host-derived ceiling, so a workload needing more old space than the modeled ceiling looks healthy here. `admit` rejects starts past the modeled process limit but keeps the existing child heap arguments."
|
|
278
278
|
}).option("mcp-client-budget", {
|
|
279
279
|
type: "number",
|
|
280
280
|
description: "Cap on live MCP clients spawned inside the ACP child for the bound workspace. Positive integer. Combine with --mcp-budget-mode to control behavior at the cap. When unset, mode defaults to off (no accounting-driven enforcement, but GET /workspace/mcp still reports `clientCount`). Distinct from claude-code MCP_SERVER_CONNECTION_BATCH_SIZE which gates startup concurrency, not the total client count."
|
|
@@ -447,7 +447,7 @@ var serveCommand = {
|
|
|
447
447
|
delete process.env[EXTERNAL_TOOL_GUARD_TOKEN_ENV];
|
|
448
448
|
const openWithAuth = argv["open-with-auth"];
|
|
449
449
|
const open = argv.open || openWithAuth;
|
|
450
|
-
const { runQwenServe } = await import("./run-qwen-serve-
|
|
450
|
+
const { runQwenServe } = await import("./run-qwen-serve-ZVEKGS7Y.js");
|
|
451
451
|
try {
|
|
452
452
|
const serveOptions = {
|
|
453
453
|
port: argv.port,
|