@qwen-code/qwen-code 0.22.2 → 0.22.3
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 +3 -3
- package/bundled/qc-helper/docs/configuration/settings.md +37 -36
- package/bundled/qc-helper/docs/features/channels/dws.md +2 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +34 -3
- package/bundled/qc-helper/docs/features/code-review.md +3 -3
- package/bundled/qc-helper/docs/features/computer-use.md +2 -2
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
- package/bundled/qc-helper/docs/qwen-serve.md +1 -1
- package/bundled/review/SKILL.md +81 -31
- package/bundled/review/references/persistence.md +7 -3
- package/bundled/review/references/posting.md +10 -4
- package/chunks/{MaxSizedBox-X5FZSNAJ.js → MaxSizedBox-X42SXBJH.js} +33 -35
- package/chunks/{StandaloneSessionPicker-AVLI6VJP.js → StandaloneSessionPicker-2FJAOLGG.js} +51 -53
- package/chunks/{acpAgent-MXEAN54C.js → acpAgent-2ZMIJAFV.js} +268 -186
- package/chunks/{agent-PJIPDWHB.js → agent-X5WX3L2I.js} +24 -26
- package/chunks/{agent-headless-B4JVD7UK.js → agent-headless-IZM25LJA.js} +24 -26
- package/chunks/{anthropicContentGenerator-HGMBACVE.js → anthropicContentGenerator-YVTB6QX7.js} +43 -47
- package/chunks/{artifact-tool-5YT4QF7Y.js → artifact-tool-XSMPHZBT.js} +9 -1
- package/chunks/{bridge-FKZTVIS3.js → bridge-ME6QXZNA.js} +37 -39
- package/chunks/{channel-management-service-X4AZ6IXX.js → channel-management-service-HQ6KDS7C.js} +6 -6
- package/chunks/{channel-settings-store-4UFCLBBG.js → channel-settings-store-PEOI7XCG.js} +47 -44
- package/chunks/{channel-worker-group-27HMGD5S.js → channel-worker-group-6NA6BBZV.js} +5 -5
- package/chunks/{channel-worker-manager-QEGX646Z.js → channel-worker-manager-NEZ2J6RK.js} +5 -5
- package/chunks/{channel-worker-supervisor-UEW2WWCC.js → channel-worker-supervisor-FKU7DIHJ.js} +4 -4
- package/chunks/{chunk-P5GGM4KS.js → chunk-2HYKTO7V.js} +3 -3
- package/chunks/{chunk-XDFHY4R3.js → chunk-2LNNVAUV.js} +2 -2
- package/chunks/{chunk-ZFKOCECU.js → chunk-2OBKDPZZ.js} +2 -2
- package/chunks/{chunk-3DXFGHAJ.js → chunk-2OUD5T67.js} +1 -1
- package/chunks/{chunk-EOGELB3H.js → chunk-2SXSLSQE.js} +1 -1
- package/chunks/{chunk-4JWNNLPT.js → chunk-2YOHKHYR.js} +2 -2
- package/chunks/{chunk-JU4EEXC7.js → chunk-36GSQ3MM.js} +2 -2
- package/chunks/chunk-36LGBEM6.js +130 -0
- package/chunks/{chunk-H2WDGQ6D.js → chunk-3JXM2CVW.js} +1 -1
- package/chunks/{chunk-G34IR3D6.js → chunk-3SZC4VP4.js} +26 -109
- package/chunks/{chunk-HVEYF6VT.js → chunk-3WK3QDNV.js} +1 -1
- package/chunks/{chunk-5XBFCMWD.js → chunk-3XKLXHGK.js} +17 -9
- package/chunks/{chunk-SFPGAQUL.js → chunk-42IDLQWS.js} +24 -18
- package/chunks/{chunk-43GGFFLY.js → chunk-4K7KNVWH.js} +1 -1
- package/chunks/{chunk-F6FV3C5K.js → chunk-4NDLQAY2.js} +24 -272
- package/chunks/{chunk-VVW4ZNFY.js → chunk-4QHPPXK2.js} +15 -7
- package/chunks/{chunk-IJKTMLBE.js → chunk-4TT3IVGA.js} +1 -1
- package/chunks/{chunk-C6K43ZDE.js → chunk-4VPCTGH6.js} +5 -5
- package/chunks/chunk-4VQBQLIZ.js +293 -0
- package/chunks/{chunk-OIVXBW3W.js → chunk-62GQFYID.js} +1 -1
- package/chunks/{chunk-BRVWYMKV.js → chunk-6MBXY6WM.js} +1 -1
- package/chunks/{chunk-AGR5UROZ.js → chunk-6X7EU5TI.js} +17 -29
- package/chunks/{chunk-PFCQ62V4.js → chunk-6ZPDLGHN.js} +6 -6
- package/chunks/{chunk-RIEFGNTP.js → chunk-734C6JGI.js} +207 -43
- package/chunks/{chunk-FBSSIAAQ.js → chunk-73RM4POK.js} +7 -7
- package/chunks/{chunk-KGJGEEVR.js → chunk-7FA2II6K.js} +10 -1
- package/chunks/chunk-7J6OTNGO.js +424 -0
- package/chunks/{chunk-O2UN57NX.js → chunk-7LOELM2I.js} +19 -2
- package/chunks/{chunk-DIMEPKCW.js → chunk-7S226YTK.js} +1 -1
- package/chunks/{chunk-CPGJJJLU.js → chunk-7T52W4SW.js} +1 -1
- package/chunks/{chunk-5O72BNDD.js → chunk-7VMIMAVB.js} +7 -7
- package/chunks/{chunk-XRSOI3DL.js → chunk-A3LWD5MK.js} +1 -1
- package/chunks/{chunk-F7TNAPZ4.js → chunk-AIAOIFY4.js} +5 -5
- package/chunks/{chunk-4CDSK5AZ.js → chunk-AYFA7MZV.js} +2 -2
- package/chunks/{chunk-3JGZSIDA.js → chunk-B466ZSHZ.js} +1 -1
- package/chunks/{chunk-L6BZRIUL.js → chunk-B5PHIJGI.js} +182 -4
- package/chunks/{chunk-3I6UTTDX.js → chunk-BKWNKLZB.js} +19 -19
- package/chunks/{chunk-3FDFA4MZ.js → chunk-BOWFGCEU.js} +1 -1
- package/chunks/{chunk-3AFMQUTI.js → chunk-C2X7KY45.js} +1 -1
- package/chunks/{chunk-FY76G3G5.js → chunk-C3PEFRKD.js} +4 -4
- package/chunks/{chunk-FDY5RMGH.js → chunk-CFJY4DGX.js} +1 -1
- package/chunks/{chunk-CCBZDVUA.js → chunk-CIZCL2MW.js} +33 -20
- package/chunks/{chunk-LDP5OD6N.js → chunk-CLWO3B77.js} +2 -2
- package/chunks/chunk-DJBQCO2E.js +842 -0
- package/chunks/{chunk-4J657AJR.js → chunk-DJECZIJX.js} +40 -40
- package/chunks/{chunk-F5SZP77N.js → chunk-DJEZ55D4.js} +71 -65
- package/chunks/{chunk-BAJKAAOY.js → chunk-DJPASAUV.js} +3840 -1055
- package/chunks/{chunk-RUGNCYNO.js → chunk-DMLVSW7L.js} +532 -22
- package/chunks/{chunk-4FTKQNWJ.js → chunk-DYXFD5RO.js} +181 -2
- package/chunks/{chunk-PDMJ3KGS.js → chunk-EB6QRGHM.js} +1 -1
- package/chunks/{chunk-DZWPESIF.js → chunk-EFWRMA2I.js} +3 -3
- package/chunks/{chunk-4MQEPP3Y.js → chunk-EQSBPBZ3.js} +5 -119
- package/chunks/{chunk-Z7TGYN5F.js → chunk-FROAFEFB.js} +2 -2
- package/chunks/{chunk-MZS7GEC7.js → chunk-FTF2YIZ5.js} +1 -1
- package/chunks/{chunk-Z7VOMGDC.js → chunk-FTJMWDND.js} +0 -24
- package/chunks/{chunk-43UYNAWX.js → chunk-G6FECKTJ.js} +2 -2
- package/chunks/{chunk-SJ3ZUWFK.js → chunk-GBJBJ4HX.js} +4 -4
- package/chunks/{chunk-IOPCFOTF.js → chunk-GPGU4S2N.js} +2 -2
- package/chunks/{chunk-6LFJEACX.js → chunk-GVIVASYK.js} +7 -7
- package/chunks/{chunk-Z4X5MTRT.js → chunk-HCOBAG2L.js} +2 -4
- package/chunks/{chunk-A7YP63XN.js → chunk-HP5LR5HL.js} +5 -5
- package/chunks/{chunk-7JPW6IYH.js → chunk-HVC3PNVC.js} +1 -1
- package/chunks/{chunk-TRZTNIQ6.js → chunk-I6LYRJPB.js} +2 -2
- package/chunks/{chunk-E55H6BZ7.js → chunk-ICURCKIU.js} +1335 -119
- package/chunks/{chunk-4HV6HH33.js → chunk-ISKH4QX3.js} +9 -9
- package/chunks/{chunk-WKK5BQNP.js → chunk-JHYH6PYQ.js} +43 -420
- package/chunks/{chunk-6IUNAPLR.js → chunk-K5KXUXWC.js} +1 -1
- package/chunks/{chunk-JHS74YAB.js → chunk-KID24ZFN.js} +1 -1
- package/chunks/{chunk-EFUM7RVY.js → chunk-KJO2LBUK.js} +942 -16
- package/chunks/{chunk-B7CDU2SL.js → chunk-KYWTPLBJ.js} +17 -20
- package/chunks/{chunk-JSHHYW6T.js → chunk-LHBUKJG2.js} +3 -3
- package/chunks/{chunk-P2SU6ZTI.js → chunk-LUEHOUHM.js} +1 -1
- package/chunks/{chunk-66KDY3LV.js → chunk-M3QRM3DE.js} +1 -1
- package/chunks/{chunk-V4QXXQJ2.js → chunk-MF7HCQWZ.js} +2 -2
- package/chunks/{chunk-W5MJJ2V7.js → chunk-MK2GIB46.js} +1 -1
- package/chunks/{chunk-Y6LSMB6J.js → chunk-MO3FC2WT.js} +1 -1
- package/chunks/{chunk-L6YT5H34.js → chunk-MPNBVAEU.js} +4 -4
- package/chunks/{chunk-CSMI4FP5.js → chunk-MSBO7X2W.js} +1 -1
- package/chunks/{chunk-5PA6UEYA.js → chunk-MZCJWS5Y.js} +1 -1
- package/chunks/{chunk-BGXZBI5B.js → chunk-N4X7G4J2.js} +2 -1
- package/chunks/{chunk-6LFTG244.js → chunk-NMOD2FXQ.js} +15 -5
- package/chunks/{chunk-KUX5D6DK.js → chunk-NV55WWD6.js} +11330 -10971
- package/chunks/{chunk-Q26AYA62.js → chunk-OU5APVWO.js} +2 -2
- package/chunks/{chunk-2K6ORIHJ.js → chunk-P2G476QN.js} +11 -11
- package/chunks/{chunk-OIP7C4FE.js → chunk-PADPMMYM.js} +4 -4
- package/chunks/{chunk-SAH4BD2J.js → chunk-PQEISIKS.js} +67 -0
- package/chunks/{chunk-TGWAQ5RB.js → chunk-PZ66FRIC.js} +2071 -2124
- package/chunks/{chunk-7UYV53BC.js → chunk-Q2MSPKIJ.js} +1 -1
- package/chunks/{chunk-L2M46FP5.js → chunk-QYMAKPY5.js} +5 -5
- package/chunks/{chunk-JVPFTDBK.js → chunk-RFIDDFAL.js} +1 -1
- package/chunks/chunk-SEONHUS3.js +275 -0
- package/chunks/{chunk-ZGXYO7DY.js → chunk-SS4MRMKE.js} +122 -13
- package/chunks/{chunk-T32W2JHI.js → chunk-SS5SDCD3.js} +2 -2
- package/chunks/{chunk-3SGB2UHX.js → chunk-ST5MDGH3.js} +23 -11
- package/chunks/{chunk-MIIVI25Q.js → chunk-ST5V3ZOC.js} +2 -2
- package/chunks/{chunk-4K7NQDCG.js → chunk-T4EFG2P5.js} +18 -9
- package/chunks/{chunk-TWSKM647.js → chunk-T7KMERIX.js} +1 -1
- package/chunks/{chunk-77RG5SFQ.js → chunk-TEBDFQBZ.js} +1 -1
- package/chunks/{chunk-6CGL7E7G.js → chunk-TVC6HQ2U.js} +2 -2
- package/chunks/{chunk-BBWV7ONL.js → chunk-TZBSGJ6C.js} +6 -6
- package/chunks/{chunk-T3WXYEZ4.js → chunk-U54AYGEC.js} +38 -5
- package/chunks/{chunk-JCQD3INC.js → chunk-URE3QBBB.js} +1 -1
- package/chunks/{chunk-Y3QL45LS.js → chunk-V4264FEG.js} +8 -8
- package/chunks/{chunk-KEKZFOL6.js → chunk-V7EESTJV.js} +1 -1
- package/chunks/{chunk-R4PMVSR5.js → chunk-VBCPNIQD.js} +18 -20
- package/chunks/{chunk-RJC5EIKY.js → chunk-VGIFXISB.js} +3 -3
- package/chunks/{chunk-Z7FLBQPR.js → chunk-W3JH33JE.js} +7 -7
- package/chunks/{chunk-K2NQPH5D.js → chunk-WGY3AVGM.js} +3 -3
- package/chunks/{chunk-PKAYJDB3.js → chunk-WNPDGUJO.js} +21 -2
- package/chunks/{chunk-IZIVM7LZ.js → chunk-WXEA74YB.js} +1 -1
- package/chunks/{chunk-YRLW2MSX.js → chunk-XBVNNDPK.js} +11 -4
- package/chunks/{chunk-IK5BW3CS.js → chunk-XHF7WQ6B.js} +2 -2
- package/chunks/{chunk-2NYCN6F2.js → chunk-XSG6G3G6.js} +43 -26
- package/chunks/{chunk-HVQ3B7FF.js → chunk-Y5S7LBOZ.js} +43 -6
- package/chunks/{chunk-LXIBMVRN.js → chunk-YLSQLSH7.js} +13 -7
- package/chunks/{chunk-JSC3H3TD.js → chunk-ZEYFMJQA.js} +14 -6
- package/chunks/chunk-ZWJDJ6RU.js +2597 -0
- package/chunks/{chunk-QP4C6WCE.js → chunk-ZYMLPEZQ.js} +2 -2
- package/chunks/{chunk-BNMF3K5X.js → chunk-ZZMSC3RG.js} +52 -36
- package/chunks/{chunk-XDLEZ5HX.js → chunk-ZZUKP7HV.js} +1 -1
- package/chunks/{config-utils-BBOCOGZW.js → config-utils-R6M3TA34.js} +39 -39
- package/chunks/{contextCommand-EET67MQ2.js → contextCommand-ZCAP23J6.js} +36 -38
- package/chunks/{core-runtime-677KFX6Q.js → core-runtime-AXB6SK5D.js} +41 -43
- package/chunks/{create-sub-session-JKZAYZX7.js → create-sub-session-4QNE64MR.js} +34 -36
- package/chunks/{daemon-MJQUO7RA.js → daemon-3GNHB3M2.js} +495 -7
- package/chunks/{daemon-git-worktree-guard-6MVAAZZZ.js → daemon-git-worktree-guard-IVAJJWYK.js} +33 -35
- package/chunks/{daemon-status-provider-RFKZOK3S.js → daemon-status-provider-K3SJ5C2U.js} +42 -44
- package/chunks/{daemon-trust-policy-DRZPFB4Q.js → daemon-trust-policy-DOR3YG62.js} +41 -43
- package/chunks/{daemon-trust-policy-monitor-B5U6TQX5.js → daemon-trust-policy-monitor-KGGROSIV.js} +41 -43
- package/chunks/{deferred-core-runtime-BBVIOP24.js → deferred-core-runtime-WOYLUQQ7.js} +33 -35
- package/chunks/{dist-DJBNNPLN.js → dist-4WXLCBDR.js} +1 -1
- package/chunks/{dist-TJUDJTCB.js → dist-5VXFRTWU.js} +280 -48
- package/chunks/{dist-QODVOVWI.js → dist-6BPYWHVD.js} +31 -30
- package/chunks/{dist-ZBVOXSKF.js → dist-GFN5DCBX.js} +74 -65
- package/chunks/{dist-SATKXKUR.js → dist-HZNT6GQS.js} +1 -1
- package/chunks/{dist-ILDBUWDB.js → dist-LVZCXVPF.js} +1 -1
- package/chunks/{dist-7CKN54NL.js → dist-N6W6E753.js} +71 -64
- package/chunks/{dist-4Q7NTUNB.js → dist-NSV4NBPK.js} +31 -14
- package/chunks/{dist-UQUFZDIY.js → dist-SWQMYP2Q.js} +18 -16
- package/chunks/{earlyInputCapture-2JOMMNQ4.js → earlyInputCapture-OHBEVO4K.js} +33 -35
- package/chunks/{edit-BSV6YRVW.js → edit-LEQLAGPZ.js} +24 -26
- package/chunks/{enter-worktree-MQXFFPKM.js → enter-worktree-35QCAAFP.js} +3 -3
- package/chunks/{enterPlanMode-PKNF35FE.js → enterPlanMode-ONQN3WHE.js} +27 -29
- package/chunks/{environment-MOZMPUHR.js → environment-UANTR7A4.js} +37 -39
- package/chunks/{errors-DMPQVYJL.js → errors-WAK6KFBC.js} +36 -38
- package/chunks/{exit-worktree-L344UY7K.js → exit-worktree-XQD6D543.js} +3 -3
- package/chunks/{exitPlanMode-UE4FGCY4.js → exitPlanMode-UEYBG6P5.js} +24 -26
- package/chunks/{fast-path-773PV7PU.js → fast-path-WUL7UZ6H.js} +4 -4
- package/chunks/{fast-path-settings-XMFBYFUH.js → fast-path-settings-XH426LUU.js} +3 -3
- package/chunks/{glob-CZHOWUEA.js → glob-Y54QUWDY.js} +24 -26
- package/chunks/{goal-tools-YZQJXTGH.js → goal-tools-PTD3MBA7.js} +2 -1
- package/chunks/{handleAutoUpdate-SGXKTQM6.js → handleAutoUpdate-FP3NWNSG.js} +37 -39
- package/chunks/{i18n-B42HKHKH.js → i18n-INIU5X7A.js} +35 -37
- package/chunks/{image-gen-HAYOEQ4O.js → image-gen-J6FDGUZP.js} +4 -6
- package/chunks/{initializer-FB66WYR3.js → initializer-TYODV6GE.js} +41 -43
- package/chunks/{installationInfo-Y7AULNMX.js → installationInfo-AAPKYDSZ.js} +33 -35
- package/chunks/{list-2HWGSVRA.js → list-TUODDN6J.js} +44 -46
- package/chunks/{gemini-IP4FJAP5.js → llm-NSAVK5V3.js} +84 -82
- package/chunks/{geminiContentGenerator-PUNEBWJW.js → llm-content-generator-AY2QKXHE.js} +25 -25
- package/chunks/{loadedSettingsAdapter-7Y7IEI6T.js → loadedSettingsAdapter-KJCLZ3C4.js} +41 -43
- package/chunks/{loggingContentGenerator-2GGZNGLG.js → loggingContentGenerator-DSFQHXIF.js} +305 -27
- package/chunks/{managed-npm-update-5TEV2E3J.js → managed-npm-update-TSWENTK5.js} +33 -35
- package/chunks/{mcp-QGG5NMJJ.js → mcp-MWSAPFOL.js} +41 -43
- package/chunks/{monitor-FI7PY36Z.js → monitor-RW4GWJHB.js} +24 -26
- package/chunks/{nonInteractiveCli-4LO2TL72.js → nonInteractiveCli-JXKL343Q.js} +77 -78
- package/chunks/{notebook-edit-TPGMGBST.js → notebook-edit-CQNYS5OR.js} +24 -26
- package/chunks/{open-with-auth-4UI3KHUR.js → open-with-auth-YN3QZHVM.js} +1 -1
- package/chunks/{openaiContentGenerator-SUCYANUZ.js → openaiContentGenerator-J6QIF7EX.js} +13 -15
- package/chunks/{pidfile-JMF2CLMY.js → pidfile-QOIQZFT2.js} +33 -35
- package/chunks/process-registry-OAEG6WGC.js +662 -0
- package/chunks/{processUtils-IQZBYWSB.js → processUtils-GPHNANKZ.js} +2 -2
- package/chunks/{prompt-terminal-ledger-DCZO6S7C.js → prompt-terminal-ledger-FOMFTYOM.js} +34 -36
- package/chunks/{qwenContentGenerator-J4TXFGJT.js → qwenContentGenerator-WWDXPYQI.js} +28 -30
- package/chunks/{qwenOAuth2-RF33DNZW.js → qwenOAuth2-OF5WRBQT.js} +4 -6
- package/chunks/{read-file-QE2B5FTX.js → read-file-FQUQHC6N.js} +5 -5
- package/chunks/{record-artifact-RZGZBENU.js → record-artifact-VW23GS4F.js} +2 -2
- package/chunks/{report-findings-Q3SYKKW5.js → report-findings-AO5VYFLR.js} +7 -3
- package/chunks/{resumeHistoryUtils-CZ4JRDVW.js → resumeHistoryUtils-NSGF3UCB.js} +37 -39
- package/chunks/{ripGrep-R6B6HWPX.js → ripGrep-4CAT6SKV.js} +7 -7
- package/chunks/{run-qwen-serve-TPHZMSXJ.js → run-qwen-serve-5X6IDZER.js} +271 -86
- package/chunks/{runtime-TTIGSBM4.js → runtime-HK27GMPF.js} +46 -48
- package/chunks/{scheduled-tasks-QB4ZVUQS.js → scheduled-tasks-MN2ZZ5P6.js} +39 -41
- package/chunks/{scheduler-YRUG22M7.js → scheduler-WD4MHMO5.js} +35 -37
- package/chunks/{sdk-exporters-http-KCJ4ZFG7.js → sdk-exporters-http-TTU2CHBU.js} +1 -1
- package/chunks/{sdk-impl-HLSEDAEP.js → sdk-impl-UUMVYMAL.js} +10 -4
- package/chunks/{send-message-Y5I6NYAM.js → send-message-AJ4OCUBV.js} +18 -2
- package/chunks/{serve-MXXCDAQN.js → serve-2XCHPPGG.js} +41 -43
- package/chunks/{server-DFUSSSHI.js → server-GO2N5DH7.js} +4148 -3348
- package/chunks/{session-3TEHNENZ.js → session-IFNHTUBT.js} +81 -82
- package/chunks/session-pr-refresh-I3UBWMVP.js +364 -0
- package/chunks/{settings-VOZYKLTT.js → settings-L6N54CU6.js} +40 -42
- package/chunks/{shell-6RTKZVMI.js → shell-4Y5LLW6N.js} +24 -26
- package/chunks/{skill-FEOKFX26.js → skill-YOWTRAKQ.js} +58 -14
- package/chunks/{skill-settings-VA4XVYVL.js → skill-settings-ZL4JY5UE.js} +41 -43
- package/chunks/{spawnChannel-F6WVP723.js → spawnChannel-ZST6XJVJ.js} +35 -37
- package/chunks/{standalone-update-RGILUQVK.js → standalone-update-THVU3OKY.js} +36 -38
- package/chunks/{startInteractiveUI-WHJPFOGH.js → startInteractiveUI-XDFSHBZD.js} +401 -334
- package/chunks/{stdioHelpers-7A2EE64Z.js → stdioHelpers-AY6XCDY2.js} +3 -1
- package/chunks/{task-create-TMSV7RD5.js → task-create-QN4LYRSE.js} +3 -3
- package/chunks/{task-list-W55RBFRX.js → task-list-JPLGK45U.js} +2 -2
- package/chunks/{task-update-N536I4GQ.js → task-update-IWEOJFV2.js} +3 -3
- package/chunks/{team-create-QYSWCYCL.js → team-create-OOPXCDBA.js} +24 -26
- package/chunks/{team-delete-FJRFX33M.js → team-delete-RZVVSGCY.js} +2 -2
- package/chunks/{team-plan-approval-P7DAD644.js → team-plan-approval-DSX5EWAT.js} +24 -26
- package/chunks/{terminal-image-renderer-SMQE46UJ.js → terminal-image-renderer-KS25G33E.js} +33 -35
- package/chunks/{theme-manager-RFO5WWFF.js → theme-manager-YMZNG45F.js} +33 -35
- package/chunks/{tool-search-F2EMIAPV.js → tool-search-J5Q6U7DN.js} +9 -9
- package/chunks/{total-session-admission-HTVTP4BS.js → total-session-admission-PVN64JVV.js} +37 -39
- package/chunks/{trustedFolders-7OCNMUQE.js → trustedFolders-FATSC4YI.js} +35 -37
- package/chunks/{types-WYCFCEHR.js → types-HKLPXZB3.js} +1 -3
- package/chunks/{update-relaunch-4GF3OXMB.js → update-relaunch-SIKHLHVR.js} +6 -6
- package/chunks/{updateCheck-7QBDXZRT.js → updateCheck-D3YG2WCD.js} +36 -38
- package/chunks/{useAutoAcceptIndicator-UI4SNL2O.js → useAutoAcceptIndicator-ILINOSAS.js} +43 -45
- package/chunks/{validateNonInterActiveAuth-BPPA563H.js → validateNonInterActiveAuth-JUDQP6V4.js} +74 -75
- package/chunks/{version-ANP4TS6O.js → version-C63GDDWN.js} +1 -1
- package/chunks/{web-fetch-QJADSAH3.js → web-fetch-FOQZMNSC.js} +8 -10
- package/chunks/{web-search-7TTQKEKM.js → web-search-PUJTBFUC.js} +5 -7
- package/chunks/{web-shell-static-A6QMUNNV.js → web-shell-static-HNB4FDOE.js} +2 -2
- package/chunks/{workflow-5XN6XSOT.js → workflow-Y5IPINVH.js} +47 -58
- package/chunks/{workspace-providers-status-PDFZWL5Q.js → workspace-providers-status-IJ4VHFMB.js} +45 -47
- package/chunks/{workspace-registration-store-XKVW2YVH.js → workspace-registration-store-SMJWI2AI.js} +1 -1
- package/chunks/{workspace-registry-23R7XRB5.js → workspace-registry-BTGZIMPK.js} +37 -39
- package/chunks/{workspace-service-MUYO2QIC.js → workspace-service-SIN67ITC.js} +46 -51
- package/chunks/{workspace-skills-status-IKECTOOQ.js → workspace-skills-status-F3RKCUIX.js} +44 -46
- package/chunks/{workspace-trust-reconciler-KLGOB53D.js → workspace-trust-reconciler-PLIDLJZX.js} +45 -47
- package/chunks/{write-file-GGRBB5TZ.js → write-file-PAIGB33C.js} +26 -28
- package/chunks/{zoom-image-6ASG6J4C.js → zoom-image-LYQD7BQA.js} +5 -5
- package/cli.js +14 -14
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-uS-vtfs3.js → abnfDiagram-VCTEODGH-TRCMSA_6.js} +1 -1
- package/web-shell/assets/{arc-BSTnk5pu.js → arc-D9Uls5b3.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-DCMyiqzy.js → architectureDiagram-5GKGNRK7-Bwb8jPXg.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-C7_gt0r1.js → blockDiagram-NRAW4CY4-DHj71TSX.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BeQg2L8B.js → c4Diagram-UCG6FXSJ-uKBBdbyr.js} +1 -1
- package/web-shell/assets/channel-CXjVLaBa.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-DnV9bKBe.js → chunk-2Q5K7J3B-BZd0Phrl.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-rT1GAcT7.js → chunk-5VM5RSS4-7KNeNBqN.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-BcgSxqGA.js → chunk-F27PBJKO-BeboS7Fi.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-Bw1ZhyZq.js → chunk-G27WJ6UU-RV3JONoj.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-D4iDw-96.js → chunk-JWPE2WC7-Yw9FCFsP.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-D3MB3GTZ.js → chunk-LCL6LL3I-GIMnydDe.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-Cep2ndrS.js → chunk-POPQ4Y6H-Cfrux7bL.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-BuahMHJc.js → chunk-SVP7TREG-BlvIN0CO.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-BdujIvJY.js → chunk-XXDRQBXY-DMs7Rr4t.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DANEijO3.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DANEijO3.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CGLLUbF8.js → cose-bilkent-JH36ORCC-DNGqTNwI.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-D6kDsRSh.js → cynefin-OW5HDTMX-CojMpaoH.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CCy78qZx.js → cynefinDiagram-5FMLGOSQ-DF07YXGo.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-D5gJuJsf.js → dagre-3AP2YEHR-17-4WtCH.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-ZwEZ5W__.js → diagram-S7CK7UJ4-G3Wuyz9m.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-B036APjv.js → diagram-UQ7AKVKN-nyWIKZ8P.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-BfDJ57Fq.js → diagram-VSXAHHWV-tKHhmYSC.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-Wha0p5rT.js → diagram-VX7I27RA-CpDf1hYk.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-L20bz2K1.js → diagram-Z3DM3KII-Cah2IFXG.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-D1ZM0Cp7.js → ebnfDiagram-PWID7BFC-DNaCkgxy.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-CMtA19v8.js → erDiagram-SSCWMZ5O-CAdRgcf1.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-D96m326S.js → flowDiagram-A5DVABFB-CMUJAShL.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BuHiYG2o.js → ganttDiagram-EL5Y4UJY-o-_MUNey.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Ck3NmkSw.js → gitGraphDiagram-WWUBYQGX-_aG-2Z7O.js} +1 -1
- package/web-shell/assets/{index-CBGz4Qjl.js → index-BK_NKxiJ.js} +1 -1
- package/web-shell/assets/index-Ci-z4zWY.js +1913 -0
- package/web-shell/assets/index-LDlXZRHA.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-B6DAOyXe.js → infoDiagram-RXCK75RN-qJPeZbGP.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-Bpg-joFo.js → ishikawaDiagram-5VMMS53U-7Om4vNo1.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BclrHzGa.js → journeyDiagram-EYS64GPL-BNtXqmBW.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-5gJzNTYG.js → kanban-definition-3QL26DDD-COgFec8P.js} +1 -1
- package/web-shell/assets/{layout-CEz_1L8z.js → layout-B9n81PC9.js} +1 -1
- package/web-shell/assets/{linear-CBjTq9Hc.js → linear-Bb6nXZQq.js} +1 -1
- package/web-shell/assets/{mermaid.core-Dzhbxx_I.js → mermaid.core-Cgrm3JVT.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DQdVqlBF.js → mindmap-definition-FBJOCRG2-TKwLTjnG.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-D1JZlYXL.js → pegDiagram-XKGWAZYB-BJPuvlpi.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BmkpYL0w.js → pieDiagram-E7YTZNPT-D01VkNsW.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DRvD6co5.js → quadrantDiagram-AXDQQJYC-C4hHsiv-.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CEdjDuoo.js → railroadDiagram-O6MQD6OU-CuEO4xK2.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BCHG-ie8.js → requirementDiagram-EFPCY7ZU-D5J_vIo5.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-C9cZMnye.js → sankeyDiagram-P5KCCOFB-DQKY223V.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DYHRV4zL.js → sequenceDiagram-WJ2MYXX4-D27YV_cm.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DlK21aye.js → sizeCapture-X5ZJPWSS-TJg8UcwV.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-BrmZssvk.js → stateDiagram-HBIQ2CUA-CmnPzUIx.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DNKPyrDc.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-D9xfcayR.js → swimlanes-XN3QIQJK-ByeP3_Nu.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-ZL1HPC6w.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-D4gdDL_d.js → timeline-definition-24CTP7MA-BsFA5juR.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DdhIExjI.js → vennDiagram-4TSXK5OY-DREP2ECo.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-C9RS_Zof.js → wardleyDiagram-VM6X3IG4-iyd9lKi2.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-orRgmxWk.js → xychartDiagram-S5SC5T6Z-CVr1_j9q.js} +1 -1
- package/web-shell/index.html +3 -3
- package/chunks/chunk-7DJCPZE3.js +0 -945
- package/chunks/chunk-J2OSJFP3.js +0 -202
- package/chunks/chunk-K2OJUPOE.js +0 -78
- package/chunks/chunk-P3QQPMQA.js +0 -19
- package/chunks/process-registry-PMJOA5CO.js +0 -172
- package/web-shell/assets/channel-CENAhErJ.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CM6FArGH.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CM6FArGH.js +0 -1
- package/web-shell/assets/index-8hXIpvo4.js +0 -1865
- package/web-shell/assets/index-DclEv91i.css +0 -5
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B2Q7XDaE.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DpZPOSbX.js +0 -8
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
recomputeMcpGating
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2HYKTO7V.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyApiError,
|
|
8
8
|
fireSessionDeleteHook
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
normalizePartList,
|
|
18
18
|
parseExtensionRef,
|
|
19
19
|
parseMcpServerRef
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PADPMMYM.js";
|
|
21
21
|
import {
|
|
22
22
|
getAvailableCommands,
|
|
23
23
|
getSlashCommandFirstToken,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
isSlashCommand,
|
|
27
27
|
recordDaemonSessionModel,
|
|
28
28
|
restoreSessionModelThenAuthenticate
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DJEZ55D4.js";
|
|
30
30
|
import {
|
|
31
31
|
SessionIdConflictError,
|
|
32
32
|
appEvents,
|
|
@@ -34,32 +34,32 @@ import {
|
|
|
34
34
|
cleanupReviewWorktreeLeases,
|
|
35
35
|
loadCliConfig,
|
|
36
36
|
normalizeDisabledToolList
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DJPASAUV.js";
|
|
38
38
|
import "./chunk-NYX53SV4.js";
|
|
39
39
|
import {
|
|
40
40
|
collectContextData,
|
|
41
41
|
formatContextUsageText
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6X7EU5TI.js";
|
|
43
43
|
import {
|
|
44
44
|
getCommandSubcommandNames
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4TT3IVGA.js";
|
|
46
46
|
import {
|
|
47
47
|
getEffectiveSupportedModes
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-WGY3AVGM.js";
|
|
49
|
+
import "./chunk-CFJY4DGX.js";
|
|
50
50
|
import "./chunk-4WGODMVR.js";
|
|
51
51
|
import "./chunk-3SH53ANB.js";
|
|
52
52
|
import {
|
|
53
53
|
isGoalStatusKind
|
|
54
54
|
} from "./chunk-EKTCKZV5.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-ZYMLPEZQ.js";
|
|
56
56
|
import "./chunk-YAF2MQZ6.js";
|
|
57
57
|
import "./chunk-QFCDF5PL.js";
|
|
58
58
|
import {
|
|
59
59
|
startNonInteractiveOpenAILogHousekeeping
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-LHBUKJG2.js";
|
|
61
61
|
import "./chunk-KW7NOTN6.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-4VPCTGH6.js";
|
|
63
63
|
import "./chunk-6H67XLET.js";
|
|
64
64
|
import {
|
|
65
65
|
beginAcpBootstrapConfigProfiling,
|
|
@@ -67,9 +67,9 @@ import {
|
|
|
67
67
|
endAcpBootstrapConfigProfiling,
|
|
68
68
|
markAcpStartup
|
|
69
69
|
} from "./chunk-5JTIYALA.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-HP5LR5HL.js";
|
|
71
|
+
import "./chunk-MPNBVAEU.js";
|
|
72
|
+
import "./chunk-MSBO7X2W.js";
|
|
73
73
|
import {
|
|
74
74
|
computeCpuPercent
|
|
75
75
|
} from "./chunk-LBOVL47Y.js";
|
|
@@ -85,7 +85,6 @@ import {
|
|
|
85
85
|
createWorkspaceMemoryExtractionErrorLogger,
|
|
86
86
|
executeGeneration,
|
|
87
87
|
formatWorkspaceMemoryForgetSummary,
|
|
88
|
-
isCompatibleLiveSessionSource,
|
|
89
88
|
isValidServerName,
|
|
90
89
|
projectAcpToolResultUpdate,
|
|
91
90
|
redactMcpServerSecrets,
|
|
@@ -94,7 +93,7 @@ import {
|
|
|
94
93
|
shouldSuppressRememberErrorDetails,
|
|
95
94
|
workspaceMemoryFailureCode,
|
|
96
95
|
workspaceMemoryFailureDiagnostics
|
|
97
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-EQSBPBZ3.js";
|
|
98
97
|
import {
|
|
99
98
|
BaseEmitter,
|
|
100
99
|
HistoryReplayer,
|
|
@@ -105,13 +104,17 @@ import {
|
|
|
105
104
|
hasFullSessionContext,
|
|
106
105
|
observeAcpToolResultProjection,
|
|
107
106
|
observeAcpToolResultWire
|
|
108
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-ST5MDGH3.js";
|
|
109
108
|
import "./chunk-BFPESSTR.js";
|
|
110
109
|
import "./chunk-E7REAOTN.js";
|
|
111
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-ZZUKP7HV.js";
|
|
112
111
|
import "./chunk-2MIN6GRR.js";
|
|
113
112
|
import "./chunk-QHTIBUWB.js";
|
|
114
113
|
import "./chunk-TXASDT2M.js";
|
|
114
|
+
import {
|
|
115
|
+
isCompatibleLiveSessionSource
|
|
116
|
+
} from "./chunk-36LGBEM6.js";
|
|
117
|
+
import "./chunk-4VQBQLIZ.js";
|
|
115
118
|
import {
|
|
116
119
|
DAEMON_OWNED_STANDALONE_CREATION_KEY,
|
|
117
120
|
SESSION_SOURCE_META_KEY,
|
|
@@ -122,9 +125,9 @@ import {
|
|
|
122
125
|
buildToolWriteOriginMeta,
|
|
123
126
|
getConversationDirectoryName,
|
|
124
127
|
isSameConversationPath
|
|
125
|
-
} from "./chunk-
|
|
126
|
-
import "./chunk-UXEO7E3V.js";
|
|
128
|
+
} from "./chunk-U54AYGEC.js";
|
|
127
129
|
import "./chunk-RXFQM6FQ.js";
|
|
130
|
+
import "./chunk-UXEO7E3V.js";
|
|
128
131
|
import {
|
|
129
132
|
normalizeChannelDeliveryText
|
|
130
133
|
} from "./chunk-4CMJKUND.js";
|
|
@@ -138,19 +141,19 @@ import {
|
|
|
138
141
|
buildPermissionSettings,
|
|
139
142
|
normalizePermissionRules,
|
|
140
143
|
readPermissionRuleSet
|
|
141
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-V7EESTJV.js";
|
|
142
145
|
import {
|
|
143
146
|
MAX_AUDIO_BYTES,
|
|
144
147
|
sanitizeVoiceErrorMessage,
|
|
145
148
|
transcribeVoiceAudio
|
|
146
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-URE3QBBB.js";
|
|
147
150
|
import {
|
|
148
151
|
readVoiceModel
|
|
149
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-A3LWD5MK.js";
|
|
150
153
|
import "./chunk-YTDVNSUQ.js";
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
154
|
+
import "./chunk-VGIFXISB.js";
|
|
155
|
+
import "./chunk-TVC6HQ2U.js";
|
|
156
|
+
import "./chunk-SS4MRMKE.js";
|
|
154
157
|
import "./chunk-7U5G6JXI.js";
|
|
155
158
|
import "./chunk-WCCLLK7X.js";
|
|
156
159
|
import {
|
|
@@ -160,7 +163,7 @@ import {
|
|
|
160
163
|
buildModelReasoningConfigOption,
|
|
161
164
|
buildModelReasoningConfigPreview,
|
|
162
165
|
getModelConfiguration
|
|
163
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-T4EFG2P5.js";
|
|
164
167
|
import {
|
|
165
168
|
ACP_ROUTE_ID_PREFIX,
|
|
166
169
|
buildAcpModelOptions,
|
|
@@ -169,23 +172,23 @@ import {
|
|
|
169
172
|
parseAcpModelOption,
|
|
170
173
|
resolveAcpModelOption,
|
|
171
174
|
sanitizeProviderBaseUrl
|
|
172
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-OU5APVWO.js";
|
|
173
176
|
import {
|
|
174
177
|
mapSkillConfigToStatus
|
|
175
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-N4X7G4J2.js";
|
|
176
179
|
import {
|
|
177
180
|
resolveSkillSettings
|
|
178
|
-
} from "./chunk-
|
|
179
|
-
import "./chunk-
|
|
180
|
-
import "./chunk-
|
|
181
|
+
} from "./chunk-HCOBAG2L.js";
|
|
182
|
+
import "./chunk-73RM4POK.js";
|
|
183
|
+
import "./chunk-6ZPDLGHN.js";
|
|
181
184
|
import "./chunk-57OAHC2Y.js";
|
|
182
|
-
import "./chunk-
|
|
183
|
-
import "./chunk-
|
|
184
|
-
import "./chunk-
|
|
185
|
+
import "./chunk-Y5S7LBOZ.js";
|
|
186
|
+
import "./chunk-3XKLXHGK.js";
|
|
187
|
+
import "./chunk-HVC3PNVC.js";
|
|
185
188
|
import "./chunk-V6WHFGST.js";
|
|
186
189
|
import {
|
|
187
190
|
createLoadedSettingsAdapter
|
|
188
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-7T52W4SW.js";
|
|
189
192
|
import {
|
|
190
193
|
ndJsonStream
|
|
191
194
|
} from "./chunk-H72BQNM3.js";
|
|
@@ -196,8 +199,8 @@ import {
|
|
|
196
199
|
SERVE_STATUS_EXT_METHODS,
|
|
197
200
|
STATUS_SCHEMA_VERSION,
|
|
198
201
|
mapDomainErrorToErrorKind
|
|
199
|
-
} from "./chunk-
|
|
200
|
-
import "./chunk-
|
|
202
|
+
} from "./chunk-KID24ZFN.js";
|
|
203
|
+
import "./chunk-FTF2YIZ5.js";
|
|
201
204
|
import {
|
|
202
205
|
ACTIVE_WORK_CLOSE_IF_UNHELD_PARAM,
|
|
203
206
|
ACTIVE_WORK_HEARTBEAT_META_KEY,
|
|
@@ -241,9 +244,9 @@ import {
|
|
|
241
244
|
import "./chunk-6PLDPT2C.js";
|
|
242
245
|
import "./chunk-FYJ7W2PI.js";
|
|
243
246
|
import "./chunk-STUJ7IMZ.js";
|
|
244
|
-
import "./chunk-JVPFTDBK.js";
|
|
245
|
-
import "./chunk-ALMR3E6Q.js";
|
|
246
247
|
import "./chunk-GYTKQYDB.js";
|
|
248
|
+
import "./chunk-RFIDDFAL.js";
|
|
249
|
+
import "./chunk-ALMR3E6Q.js";
|
|
247
250
|
import "./chunk-RKFGE7JH.js";
|
|
248
251
|
import "./chunk-UDG5EZJI.js";
|
|
249
252
|
import {
|
|
@@ -260,7 +263,7 @@ import "./chunk-7EQQR46F.js";
|
|
|
260
263
|
import {
|
|
261
264
|
ACP_EVENT_LOOP_STALL_RESTART_MS,
|
|
262
265
|
CHANNEL_PROMPT_META_KEY
|
|
263
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-ICURCKIU.js";
|
|
264
267
|
import {
|
|
265
268
|
AgentSideConnection,
|
|
266
269
|
PROTOCOL_VERSION,
|
|
@@ -269,7 +272,7 @@ import {
|
|
|
269
272
|
import {
|
|
270
273
|
assembleMcpServers,
|
|
271
274
|
loadMcpApprovals
|
|
272
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-7VMIMAVB.js";
|
|
273
276
|
import {
|
|
274
277
|
getOutputLanguageFilePath,
|
|
275
278
|
getPersistScopeForModelSelection,
|
|
@@ -278,9 +281,9 @@ import {
|
|
|
278
281
|
resolveOutputLanguageOrPreserveAuto,
|
|
279
282
|
updateOutputLanguageFile,
|
|
280
283
|
writeOutputLanguageAndRegisterPath
|
|
281
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-AIAOIFY4.js";
|
|
282
285
|
import "./chunk-RKUWKYED.js";
|
|
283
|
-
import "./chunk-
|
|
286
|
+
import "./chunk-ZEYFMJQA.js";
|
|
284
287
|
import "./chunk-GOXKNSDZ.js";
|
|
285
288
|
import {
|
|
286
289
|
getSystemDefaultsPath,
|
|
@@ -289,7 +292,7 @@ import {
|
|
|
289
292
|
import {
|
|
290
293
|
getCurrentLanguage,
|
|
291
294
|
setLanguageAsync
|
|
292
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-CLWO3B77.js";
|
|
293
296
|
import {
|
|
294
297
|
SUPPORTED_LANGUAGES
|
|
295
298
|
} from "./chunk-5EJZE3FP.js";
|
|
@@ -297,19 +300,19 @@ import {
|
|
|
297
300
|
findEnvFiles,
|
|
298
301
|
preResolveHomeEnvOverrides,
|
|
299
302
|
reloadEnvironment
|
|
300
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-XHF7WQ6B.js";
|
|
301
304
|
import {
|
|
302
305
|
ENV_ACP_REPEATED_TOOL_FAILURE_GUARD,
|
|
303
306
|
QWEN_CODE_SERVE_ENV
|
|
304
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-MZCJWS5Y.js";
|
|
305
308
|
import "./chunk-V2NDP3I4.js";
|
|
306
|
-
import "./chunk-
|
|
309
|
+
import "./chunk-Q2MSPKIJ.js";
|
|
307
310
|
import "./chunk-W3N5XAZ6.js";
|
|
308
311
|
import {
|
|
309
312
|
isFolderTrustEnabled,
|
|
310
313
|
isWorkspaceTrusted,
|
|
311
314
|
loadTrustedFolders
|
|
312
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-MF7HCQWZ.js";
|
|
313
316
|
import "./chunk-NPQ5ZKRP.js";
|
|
314
317
|
import "./chunk-MR3PXB6E.js";
|
|
315
318
|
import {
|
|
@@ -339,8 +342,8 @@ import {
|
|
|
339
342
|
resolveBaseUrl,
|
|
340
343
|
runManagedRememberByAgent,
|
|
341
344
|
subagentGenerator
|
|
342
|
-
} from "./chunk-
|
|
343
|
-
import "./chunk-
|
|
345
|
+
} from "./chunk-NV55WWD6.js";
|
|
346
|
+
import "./chunk-2OUD5T67.js";
|
|
344
347
|
import "./chunk-XFSFZCM5.js";
|
|
345
348
|
import "./chunk-2EAZ43JQ.js";
|
|
346
349
|
import "./chunk-NF5J2WFA.js";
|
|
@@ -348,21 +351,21 @@ import {
|
|
|
348
351
|
CreateSubSessionTool
|
|
349
352
|
} from "./chunk-CQH5KTKC.js";
|
|
350
353
|
import "./chunk-LJZSMWOH.js";
|
|
351
|
-
import "./chunk-
|
|
352
|
-
import "./chunk-
|
|
353
|
-
import "./chunk-
|
|
354
|
+
import "./chunk-NMOD2FXQ.js";
|
|
355
|
+
import "./chunk-WNPDGUJO.js";
|
|
356
|
+
import "./chunk-K5KXUXWC.js";
|
|
354
357
|
import {
|
|
355
358
|
restoreWorktreeContext
|
|
356
|
-
} from "./chunk-
|
|
357
|
-
import "./chunk-
|
|
359
|
+
} from "./chunk-62GQFYID.js";
|
|
360
|
+
import "./chunk-AYFA7MZV.js";
|
|
358
361
|
import "./chunk-XQFT3QUF.js";
|
|
359
362
|
import "./chunk-VTHREBQM.js";
|
|
360
363
|
import "./chunk-ZPJWUGCS.js";
|
|
361
364
|
import {
|
|
362
365
|
clearCachedCredentialFile,
|
|
363
366
|
qwenOAuth2Events
|
|
364
|
-
} from "./chunk-
|
|
365
|
-
import "./chunk-
|
|
367
|
+
} from "./chunk-3JXM2CVW.js";
|
|
368
|
+
import "./chunk-ST5V3ZOC.js";
|
|
366
369
|
import {
|
|
367
370
|
APPROVAL_MODE_INFO,
|
|
368
371
|
BranchPointInvalidError,
|
|
@@ -380,7 +383,6 @@ import {
|
|
|
380
383
|
MessageDisplayDispatcher,
|
|
381
384
|
PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,
|
|
382
385
|
POOLED_TRANSPORTS_DEFAULT,
|
|
383
|
-
SESSION_ARTIFACT_PERSISTENCE_VERSION,
|
|
384
386
|
SESSION_TITLE_MAX_LENGTH,
|
|
385
387
|
SESSION_TRANSCRIPT_MAX_LIMIT,
|
|
386
388
|
SESSION_TRANSCRIPT_MAX_PAGE_BYTES,
|
|
@@ -397,6 +399,7 @@ import {
|
|
|
397
399
|
TURN_RESULT_TEXT_MAX_CHARS,
|
|
398
400
|
abortGoalForStopHookCap,
|
|
399
401
|
acquireSleepInhibitor,
|
|
402
|
+
ambientGoalToolResultProvenance,
|
|
400
403
|
applyAutoModeDecision,
|
|
401
404
|
approxBase64Bytes,
|
|
402
405
|
bridgeToolResultImages,
|
|
@@ -454,8 +457,6 @@ import {
|
|
|
454
457
|
mcpServerRequiresOAuth,
|
|
455
458
|
needsConfirmation,
|
|
456
459
|
normalizeDerivedBranchTitle,
|
|
457
|
-
normalizeEventPayload,
|
|
458
|
-
normalizeSnapshotPayload,
|
|
459
460
|
normalizeTurnResultError,
|
|
460
461
|
observeToolResultBoundary,
|
|
461
462
|
persistPermissionOutcome,
|
|
@@ -479,7 +480,7 @@ import {
|
|
|
479
480
|
updateSetting,
|
|
480
481
|
validatePlanModeShellApproval,
|
|
481
482
|
validatePlanModeShellContext
|
|
482
|
-
} from "./chunk-
|
|
483
|
+
} from "./chunk-PZ66FRIC.js";
|
|
483
484
|
import "./chunk-GOFAQQZA.js";
|
|
484
485
|
import "./chunk-5M6IDOMF.js";
|
|
485
486
|
import "./chunk-TWPJO254.js";
|
|
@@ -487,15 +488,20 @@ import {
|
|
|
487
488
|
external_exports
|
|
488
489
|
} from "./chunk-CQ35AJ4Z.js";
|
|
489
490
|
import "./chunk-EKSCLBBF.js";
|
|
490
|
-
import "./chunk-
|
|
491
|
-
import "./chunk-
|
|
492
|
-
import "./chunk-
|
|
491
|
+
import "./chunk-LUEHOUHM.js";
|
|
492
|
+
import "./chunk-WXEA74YB.js";
|
|
493
|
+
import "./chunk-42IDLQWS.js";
|
|
493
494
|
import {
|
|
494
495
|
parsePositiveIntegerEnv
|
|
495
496
|
} from "./chunk-6PVPNMXU.js";
|
|
496
497
|
import {
|
|
497
498
|
RUNTIME_SNAPSHOT_PREFIX
|
|
498
499
|
} from "./chunk-JB4JIVTJ.js";
|
|
500
|
+
import {
|
|
501
|
+
SESSION_ARTIFACT_PERSISTENCE_VERSION,
|
|
502
|
+
normalizeEventPayload,
|
|
503
|
+
normalizeSnapshotPayload
|
|
504
|
+
} from "./chunk-DJBQCO2E.js";
|
|
499
505
|
import "./chunk-IRH27ZC2.js";
|
|
500
506
|
import "./chunk-QHWCP53L.js";
|
|
501
507
|
import "./chunk-D5LUXLUH.js";
|
|
@@ -504,18 +510,25 @@ import {
|
|
|
504
510
|
todoWorkChainContext
|
|
505
511
|
} from "./chunk-O6GEWCJA.js";
|
|
506
512
|
import "./chunk-T26EAKDL.js";
|
|
507
|
-
import "./chunk-
|
|
513
|
+
import "./chunk-2SXSLSQE.js";
|
|
508
514
|
import "./chunk-CPBF7KYF.js";
|
|
509
|
-
import
|
|
515
|
+
import {
|
|
516
|
+
AgentOutputMessageCapture,
|
|
517
|
+
addAgentInputMessageAttributes,
|
|
518
|
+
addToolArgumentsAttributes,
|
|
519
|
+
addToolCallResultAttributes,
|
|
520
|
+
registerAcpEventLoopLagGauge,
|
|
521
|
+
startEventLoopLagMonitor
|
|
522
|
+
} from "./chunk-KJO2LBUK.js";
|
|
510
523
|
import {
|
|
511
524
|
HookEventName,
|
|
512
525
|
createHookOutput
|
|
513
526
|
} from "./chunk-TTX2JUE6.js";
|
|
514
|
-
import "./chunk-
|
|
527
|
+
import "./chunk-4K7KNVWH.js";
|
|
515
528
|
import "./chunk-SMPR7SPO.js";
|
|
516
529
|
import "./chunk-JWALNCLT.js";
|
|
517
530
|
import "./chunk-NIFYWDYN.js";
|
|
518
|
-
import "./chunk-
|
|
531
|
+
import "./chunk-C2X7KY45.js";
|
|
519
532
|
import {
|
|
520
533
|
GoalConflictError,
|
|
521
534
|
GoalInvalidTransitionError,
|
|
@@ -524,50 +537,41 @@ import {
|
|
|
524
537
|
goalTurnContext,
|
|
525
538
|
parseGoalControlRequest,
|
|
526
539
|
parseGoalSnapshotV2,
|
|
527
|
-
parseGoalStateCause
|
|
540
|
+
parseGoalStateCause
|
|
541
|
+
} from "./chunk-JHYH6PYQ.js";
|
|
542
|
+
import {
|
|
528
543
|
wrapUserPromptSubmitContext
|
|
529
|
-
} from "./chunk-
|
|
544
|
+
} from "./chunk-7J6OTNGO.js";
|
|
530
545
|
import {
|
|
531
546
|
APPROVAL_MODES
|
|
532
547
|
} from "./chunk-V5J4J5TP.js";
|
|
533
548
|
import "./chunk-MLXTMF7H.js";
|
|
534
549
|
import "./chunk-NAVJD2PQ.js";
|
|
535
|
-
import "./chunk-
|
|
536
|
-
import "./chunk-
|
|
550
|
+
import "./chunk-B466ZSHZ.js";
|
|
551
|
+
import "./chunk-4QHPPXK2.js";
|
|
537
552
|
import "./chunk-QHMLYMMS.js";
|
|
538
|
-
import {
|
|
539
|
-
AgentOutputMessageCapture,
|
|
540
|
-
addAgentInputMessageAttributes,
|
|
541
|
-
addToolArgumentsAttributes,
|
|
542
|
-
addToolCallResultAttributes,
|
|
543
|
-
registerAcpEventLoopLagGauge,
|
|
544
|
-
startEventLoopLagMonitor
|
|
545
|
-
} from "./chunk-7DJCPZE3.js";
|
|
546
|
-
import "./chunk-P3QQPMQA.js";
|
|
547
553
|
import {
|
|
548
554
|
addDaemonRequestAttribute,
|
|
549
555
|
extractDaemonTraceContext,
|
|
550
556
|
withDaemonSpan
|
|
551
|
-
} from "./chunk-
|
|
557
|
+
} from "./chunk-3WK3QDNV.js";
|
|
552
558
|
import "./chunk-VNOVK4I7.js";
|
|
553
|
-
import "./chunk-
|
|
554
|
-
import "./chunk-
|
|
559
|
+
import "./chunk-PQEISIKS.js";
|
|
560
|
+
import "./chunk-EB6QRGHM.js";
|
|
555
561
|
import {
|
|
556
562
|
runWithRuntimeContentGenerator
|
|
557
563
|
} from "./chunk-CMHFCLBU.js";
|
|
558
564
|
import "./chunk-S6LOFUVP.js";
|
|
565
|
+
import {
|
|
566
|
+
getToolCallPreparations
|
|
567
|
+
} from "./chunk-CFKIH3D3.js";
|
|
559
568
|
import {
|
|
560
569
|
REASONING_EFFORT_TIERS,
|
|
561
570
|
applyReasoningEffort
|
|
562
571
|
} from "./chunk-2LD5U7Q3.js";
|
|
563
572
|
import "./chunk-DJ2GSRLV.js";
|
|
564
|
-
import "./chunk-
|
|
565
|
-
import "./chunk-
|
|
566
|
-
import {
|
|
567
|
-
getToolCallPreparations
|
|
568
|
-
} from "./chunk-CFKIH3D3.js";
|
|
569
|
-
import "./chunk-4FTKQNWJ.js";
|
|
570
|
-
import "./chunk-Y3QL45LS.js";
|
|
573
|
+
import "./chunk-DYXFD5RO.js";
|
|
574
|
+
import "./chunk-V4264FEG.js";
|
|
571
575
|
import {
|
|
572
576
|
ConversationFinishedEvent,
|
|
573
577
|
DiscoveredMCPTool,
|
|
@@ -598,13 +602,13 @@ import {
|
|
|
598
602
|
shouldRunVisionBridge,
|
|
599
603
|
splitImageParts,
|
|
600
604
|
uiTelemetryService
|
|
601
|
-
} from "./chunk-
|
|
602
|
-
import "./chunk-
|
|
605
|
+
} from "./chunk-QYMAKPY5.js";
|
|
606
|
+
import "./chunk-XBVNNDPK.js";
|
|
603
607
|
import "./chunk-VGC4I5JJ.js";
|
|
604
608
|
import {
|
|
605
|
-
|
|
609
|
+
getAllMemoryFilenames,
|
|
606
610
|
getSpecificMimeType
|
|
607
|
-
} from "./chunk-
|
|
611
|
+
} from "./chunk-BKWNKLZB.js";
|
|
608
612
|
import {
|
|
609
613
|
getAutoMemoryRoot,
|
|
610
614
|
getUserAutoMemoryRoot
|
|
@@ -621,7 +625,7 @@ import "./chunk-6DIGWMGT.js";
|
|
|
621
625
|
import {
|
|
622
626
|
hasVertexProjectConfigured,
|
|
623
627
|
preloadContentGenerator
|
|
624
|
-
} from "./chunk-
|
|
628
|
+
} from "./chunk-W3JH33JE.js";
|
|
625
629
|
import "./chunk-XZA32HII.js";
|
|
626
630
|
import "./chunk-23RFD54N.js";
|
|
627
631
|
import {
|
|
@@ -638,7 +642,7 @@ import {
|
|
|
638
642
|
startToolExecutionSpan,
|
|
639
643
|
startToolSpan,
|
|
640
644
|
withInteractionSpan
|
|
641
|
-
} from "./chunk-
|
|
645
|
+
} from "./chunk-B5PHIJGI.js";
|
|
642
646
|
import "./chunk-74TONY4F.js";
|
|
643
647
|
import "./chunk-XF63PKEN.js";
|
|
644
648
|
import {
|
|
@@ -665,14 +669,14 @@ import {
|
|
|
665
669
|
isSubpath,
|
|
666
670
|
sessionIdContext
|
|
667
671
|
} from "./chunk-UHQFIS7N.js";
|
|
668
|
-
import "./chunk-
|
|
672
|
+
import "./chunk-MK2GIB46.js";
|
|
669
673
|
import {
|
|
670
674
|
runExitCleanup
|
|
671
|
-
} from "./chunk-
|
|
675
|
+
} from "./chunk-MO3FC2WT.js";
|
|
672
676
|
import {
|
|
673
677
|
writeStderrLine,
|
|
674
678
|
writeStderrLineSafe
|
|
675
|
-
} from "./chunk-
|
|
679
|
+
} from "./chunk-7FA2II6K.js";
|
|
676
680
|
import "./chunk-75DOP5OR.js";
|
|
677
681
|
import "./chunk-DMTGGOSA.js";
|
|
678
682
|
import "./chunk-YQ3U5MUC.js";
|
|
@@ -1050,9 +1054,6 @@ function inactiveExtensionSkillRefs(config) {
|
|
|
1050
1054
|
if (extension.isActive) continue;
|
|
1051
1055
|
for (const skill of extension.skills ?? []) {
|
|
1052
1056
|
refs.add(extensionSkillRef(extension.name, skill.name));
|
|
1053
|
-
if (extension.displayName) {
|
|
1054
|
-
refs.add(extensionSkillRef(extension.displayName, skill.name));
|
|
1055
|
-
}
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
1058
1059
|
return refs;
|
|
@@ -3871,13 +3872,13 @@ async function registerCreateSubSessionTool(config) {
|
|
|
3871
3872
|
ToolNames.CREATE_SUB_SESSION,
|
|
3872
3873
|
async () => new CreateSubSessionTool(config)
|
|
3873
3874
|
);
|
|
3874
|
-
await config.
|
|
3875
|
+
await config.getLlmClient().setTools();
|
|
3875
3876
|
return;
|
|
3876
3877
|
}
|
|
3877
3878
|
toolRegistry.registerTool(new CreateSubSessionTool(config));
|
|
3878
3879
|
toolRegistry.revealDeferredTool(ToolNames.CREATE_SUB_SESSION);
|
|
3879
3880
|
toolRegistry.pinDeferredToolReveal(ToolNames.CREATE_SUB_SESSION);
|
|
3880
|
-
await config.
|
|
3881
|
+
await config.getLlmClient().setTools();
|
|
3881
3882
|
}
|
|
3882
3883
|
__name(registerCreateSubSessionTool, "registerCreateSubSessionTool");
|
|
3883
3884
|
var STANDALONE_SLASH_COMMAND_POLICY = Object.freeze({
|
|
@@ -4211,6 +4212,7 @@ var Session = class {
|
|
|
4211
4212
|
controller: new AbortController(),
|
|
4212
4213
|
origin: "runtime",
|
|
4213
4214
|
continuationContext: input.continuationContext,
|
|
4215
|
+
...input.objectiveUpdated ? { objectiveUpdated: input.objectiveUpdated } : {},
|
|
4214
4216
|
...input.windDown ? { windDown: true } : {},
|
|
4215
4217
|
...input.verifierFeedback ? { verifierFeedback: input.verifierFeedback } : {},
|
|
4216
4218
|
modelStarted: false
|
|
@@ -4413,6 +4415,24 @@ var Session = class {
|
|
|
4413
4415
|
void this.#drainGoalQueue();
|
|
4414
4416
|
}
|
|
4415
4417
|
}
|
|
4418
|
+
/**
|
|
4419
|
+
* Confirms the continuation's prompt reached the model.
|
|
4420
|
+
*
|
|
4421
|
+
* `startGoalTurn` resolves at enqueue time, so the runtime cannot tell a
|
|
4422
|
+
* delivered turn from a queued one when it settles; `#settleGoalTurn`'s
|
|
4423
|
+
* degraded-persistence fallback settles a model-started turn through
|
|
4424
|
+
* `releaseTurn`, and only this confirmation keeps that turn's objective
|
|
4425
|
+
* announcement from rolling back and re-firing on the next continuation.
|
|
4426
|
+
*/
|
|
4427
|
+
#markGoalTurnDelivered(turnKey) {
|
|
4428
|
+
try {
|
|
4429
|
+
this.config.getGoalRuntime().markTurnDelivered(turnKey);
|
|
4430
|
+
} catch (error) {
|
|
4431
|
+
debugLogger6.debug(
|
|
4432
|
+
`Failed to confirm ACP Goal turn delivery: ${error instanceof Error ? error.message : String(error)}`
|
|
4433
|
+
);
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4416
4436
|
async #settleGoalTurn(turn, result, failed) {
|
|
4417
4437
|
try {
|
|
4418
4438
|
const runtime = await this.config.getGoalRuntimeReady();
|
|
@@ -5044,11 +5064,11 @@ var Session = class {
|
|
|
5044
5064
|
await this.#syncLiveToolDeclarations();
|
|
5045
5065
|
}
|
|
5046
5066
|
async #syncLiveToolDeclarations() {
|
|
5047
|
-
const
|
|
5048
|
-
if (!
|
|
5067
|
+
const llmClient = this.config.getLlmClient();
|
|
5068
|
+
if (!llmClient) {
|
|
5049
5069
|
throw new Error("The Live backend model client is unavailable.");
|
|
5050
5070
|
}
|
|
5051
|
-
await
|
|
5071
|
+
await llmClient.setTools();
|
|
5052
5072
|
}
|
|
5053
5073
|
async setLiveConversationActive(active) {
|
|
5054
5074
|
if (this.liveConversationActive === active) return;
|
|
@@ -5065,7 +5085,7 @@ var Session = class {
|
|
|
5065
5085
|
this.liveEndInstructionPending = true;
|
|
5066
5086
|
this.config.setLiveAppendSystemPrompt(LIVE_BACKEND_END_INSTRUCTIONS);
|
|
5067
5087
|
}
|
|
5068
|
-
await this.config.
|
|
5088
|
+
await this.config.getLlmClient()?.refreshSystemInstruction();
|
|
5069
5089
|
}
|
|
5070
5090
|
async appendLiveConversationTranscript(entries, model) {
|
|
5071
5091
|
if (this.liveConversationActive !== true) {
|
|
@@ -5103,7 +5123,7 @@ var Session = class {
|
|
|
5103
5123
|
if (this.liveConversationActive || !this.liveEndInstructionPending) return;
|
|
5104
5124
|
this.liveEndInstructionPending = false;
|
|
5105
5125
|
this.config.setLiveAppendSystemPrompt(void 0);
|
|
5106
|
-
await this.config.
|
|
5126
|
+
await this.config.getLlmClient()?.refreshSystemInstruction();
|
|
5107
5127
|
}
|
|
5108
5128
|
getId() {
|
|
5109
5129
|
return this.sessionId;
|
|
@@ -5555,7 +5575,7 @@ var Session = class {
|
|
|
5555
5575
|
"Cannot rewind while a prompt is running"
|
|
5556
5576
|
);
|
|
5557
5577
|
}
|
|
5558
|
-
const chat = this.config.
|
|
5578
|
+
const chat = this.config.getLlmClient().getChat();
|
|
5559
5579
|
const apiHistory = chat.getHistoryShallow();
|
|
5560
5580
|
const apiTruncateIndex = this.#computeApiTruncationIndexForUserTurn(
|
|
5561
5581
|
apiHistory,
|
|
@@ -5591,7 +5611,7 @@ var Session = class {
|
|
|
5591
5611
|
return { targetTurnIndex, apiTruncateIndex };
|
|
5592
5612
|
}
|
|
5593
5613
|
captureHistorySnapshot() {
|
|
5594
|
-
return this.config.
|
|
5614
|
+
return this.config.getLlmClient().getChat().getHistoryShallow();
|
|
5595
5615
|
}
|
|
5596
5616
|
getRewindableUserTurnCount() {
|
|
5597
5617
|
const apiHistory = this.captureHistorySnapshot();
|
|
@@ -5613,7 +5633,7 @@ var Session = class {
|
|
|
5613
5633
|
"Cannot restore history while a prompt is running"
|
|
5614
5634
|
);
|
|
5615
5635
|
}
|
|
5616
|
-
this.config.
|
|
5636
|
+
this.config.getLlmClient().getChat().setHistory(structuredClone(history));
|
|
5617
5637
|
this.activeTodoPlanRevision = void 0;
|
|
5618
5638
|
this.#clearTodoStopGuardTrustAndDrainAutomaticQueues();
|
|
5619
5639
|
}
|
|
@@ -6040,8 +6060,8 @@ var Session = class {
|
|
|
6040
6060
|
* authoritatively. Powers `qwen/control/session/continue`.
|
|
6041
6061
|
*/
|
|
6042
6062
|
async continueLastTurn() {
|
|
6043
|
-
const
|
|
6044
|
-
if (!
|
|
6063
|
+
const llmClient = this.config.getLlmClient();
|
|
6064
|
+
if (!llmClient || !llmClient.isInitialized()) {
|
|
6045
6065
|
return { accepted: false, interruption: "none" };
|
|
6046
6066
|
}
|
|
6047
6067
|
const chat = this.#getCurrentChat();
|
|
@@ -6090,7 +6110,7 @@ var Session = class {
|
|
|
6090
6110
|
}
|
|
6091
6111
|
if (this.settings.merged.ui?.enableFollowupSuggestions === false) return;
|
|
6092
6112
|
if (this.config.getApprovalMode() === "plan" /* PLAN */) return;
|
|
6093
|
-
const chat = this.config.
|
|
6113
|
+
const chat = this.config.getLlmClient()?.getChat();
|
|
6094
6114
|
if (!chat) return;
|
|
6095
6115
|
const ac = new AbortController();
|
|
6096
6116
|
this.followupAbort = ac;
|
|
@@ -6421,7 +6441,7 @@ var Session = class {
|
|
|
6421
6441
|
}
|
|
6422
6442
|
if (isFreshUserTurn) {
|
|
6423
6443
|
managedMemoryRecallStarted = true;
|
|
6424
|
-
this.config.
|
|
6444
|
+
this.config.getLlmClient().beginManagedAutoMemoryRecall(promptText, pendingSend.signal);
|
|
6425
6445
|
}
|
|
6426
6446
|
if (!continuesCurrentWorkChain && !this.todoStopGuard.enabled) {
|
|
6427
6447
|
this.#resetTodoStopGuardBackgroundLineage();
|
|
@@ -6449,7 +6469,7 @@ var Session = class {
|
|
|
6449
6469
|
}
|
|
6450
6470
|
const systemReminders = await this.#buildInitialSystemReminders();
|
|
6451
6471
|
if (isFreshUserTurn) {
|
|
6452
|
-
const memory = await this.config.
|
|
6472
|
+
const memory = await this.config.getLlmClient().consumeManagedAutoMemoryRecall("initial");
|
|
6453
6473
|
if (memory?.prompt) {
|
|
6454
6474
|
systemReminders.unshift({ text: memory.prompt });
|
|
6455
6475
|
}
|
|
@@ -6630,7 +6650,12 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
6630
6650
|
let channelDeliveryResponseBlock;
|
|
6631
6651
|
let channelDeliveryCheckpoint = 0;
|
|
6632
6652
|
try {
|
|
6633
|
-
if (goalTurn)
|
|
6653
|
+
if (goalTurn) {
|
|
6654
|
+
goalTurn.modelStarted = true;
|
|
6655
|
+
if (goalTurn.origin === "runtime") {
|
|
6656
|
+
this.#markGoalTurnDelivered(goalTurn.turnKey);
|
|
6657
|
+
}
|
|
6658
|
+
}
|
|
6634
6659
|
const sendResult = await this.#sendMessageStreamWithAutoCompression(
|
|
6635
6660
|
promptId,
|
|
6636
6661
|
nextMessage?.parts ?? [],
|
|
@@ -6897,7 +6922,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
6897
6922
|
}
|
|
6898
6923
|
).finally(() => {
|
|
6899
6924
|
if (managedMemoryRecallStarted) {
|
|
6900
|
-
this.config.
|
|
6925
|
+
this.config.getLlmClient().finishManagedAutoMemoryRecall();
|
|
6901
6926
|
}
|
|
6902
6927
|
});
|
|
6903
6928
|
}
|
|
@@ -7792,7 +7817,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7792
7817
|
}
|
|
7793
7818
|
}
|
|
7794
7819
|
#getCurrentChat() {
|
|
7795
|
-
return this.config.
|
|
7820
|
+
return this.config.getLlmClient().getChat();
|
|
7796
7821
|
}
|
|
7797
7822
|
async #runWithFullTurnModel(modelOverride, fn) {
|
|
7798
7823
|
if (!modelOverride?.endsWith("\0")) {
|
|
@@ -7804,9 +7829,9 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7804
7829
|
/**
|
|
7805
7830
|
* Create the MessageDisplay hook dispatcher for one model call's streamed
|
|
7806
7831
|
* reply, or null when the hook isn't registered (the common case — keeps
|
|
7807
|
-
* the streaming loops zero-cost). The ACP surface consumes
|
|
7832
|
+
* the streaming loops zero-cost). The ACP surface consumes LlmChat's
|
|
7808
7833
|
* raw stream directly rather than going through
|
|
7809
|
-
*
|
|
7834
|
+
* LlmClient.sendMessageStream, so it has to fire this hook itself —
|
|
7810
7835
|
* with the same contract as the terminal UI path in client.ts: debounced
|
|
7811
7836
|
* cumulative text, one message_id per model call, and an is_final firing
|
|
7812
7837
|
* on every non-aborted exit (delivered by awaiting `finish()` in a
|
|
@@ -7832,7 +7857,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7832
7857
|
* was cancelled or the session token limit was exceeded.
|
|
7833
7858
|
*/
|
|
7834
7859
|
async #sendMessageStreamWithAutoCompression(promptId, message, abortSignal, options = {}) {
|
|
7835
|
-
const
|
|
7860
|
+
const llmClient = this.config.getLlmClient();
|
|
7836
7861
|
if (options.prepareBeforeCompression) {
|
|
7837
7862
|
const decision = await options.prepareBeforeCompression();
|
|
7838
7863
|
if (decision.kind === "stop") {
|
|
@@ -7851,7 +7876,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7851
7876
|
let compressionFailed = false;
|
|
7852
7877
|
if (!options.skipCompression && !(options.getModelOverride?.() ?? options.modelOverride)) {
|
|
7853
7878
|
try {
|
|
7854
|
-
const compressed = await
|
|
7879
|
+
const compressed = await llmClient.tryCompressChat(
|
|
7855
7880
|
promptId,
|
|
7856
7881
|
false,
|
|
7857
7882
|
abortSignal
|
|
@@ -7930,7 +7955,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7930
7955
|
return { responseStream: null, stopReason: "cancelled" };
|
|
7931
7956
|
}
|
|
7932
7957
|
if (message[0]?.functionResponse) {
|
|
7933
|
-
const memory = await
|
|
7958
|
+
const memory = await llmClient.consumeManagedAutoMemoryRecall("tool_result");
|
|
7934
7959
|
if (memory?.prompt) {
|
|
7935
7960
|
message = insertAfterFunctionResponses(message, [
|
|
7936
7961
|
{ text: memory.prompt }
|
|
@@ -8549,11 +8574,13 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8549
8574
|
* `_meta.source='cron'`, streams the model response, and handles tool calls.
|
|
8550
8575
|
*/
|
|
8551
8576
|
async #executeCronPrompt(item) {
|
|
8552
|
-
return
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8577
|
+
return goalTurnContext.exit(
|
|
8578
|
+
() => runWithInvocationContext(
|
|
8579
|
+
void 0,
|
|
8580
|
+
() => sessionIdContext.run(
|
|
8581
|
+
this.config.getSessionId(),
|
|
8582
|
+
() => this.#executeCronPromptInner(item)
|
|
8583
|
+
)
|
|
8557
8584
|
)
|
|
8558
8585
|
);
|
|
8559
8586
|
}
|
|
@@ -9117,11 +9144,13 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9117
9144
|
this.currentShellNotificationActive = item.kind === "shell";
|
|
9118
9145
|
this.#activeWorkChanged();
|
|
9119
9146
|
try {
|
|
9120
|
-
await
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9147
|
+
await goalTurnContext.exit(
|
|
9148
|
+
() => runWithInvocationContext(
|
|
9149
|
+
void 0,
|
|
9150
|
+
() => sessionIdContext.run(
|
|
9151
|
+
this.config.getSessionId(),
|
|
9152
|
+
() => this.#executeBackgroundNotificationPromptInner(item)
|
|
9153
|
+
)
|
|
9125
9154
|
)
|
|
9126
9155
|
);
|
|
9127
9156
|
} finally {
|
|
@@ -9778,11 +9807,16 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9778
9807
|
if (record.skipPersistence === true || this.#shouldSkipRestoredAskUserQuestionPersistence(record.callId)) {
|
|
9779
9808
|
return;
|
|
9780
9809
|
}
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9810
|
+
const goalProvenance = ambientGoalToolResultProvenance(record.toolName);
|
|
9811
|
+
this.config.getChatRecordingService()?.recordToolResult(
|
|
9812
|
+
finalized[index].responseParts,
|
|
9813
|
+
{
|
|
9814
|
+
...record.metadata,
|
|
9815
|
+
persistedOutputFiles: finalized[index].persistedOutputFiles,
|
|
9816
|
+
artifacts: finalized[index].artifacts
|
|
9817
|
+
},
|
|
9818
|
+
...goalProvenance ? [goalProvenance] : []
|
|
9819
|
+
);
|
|
9786
9820
|
});
|
|
9787
9821
|
return {
|
|
9788
9822
|
...result,
|
|
@@ -10266,9 +10300,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10266
10300
|
/**
|
|
10267
10301
|
* Assemble the per-turn system reminders the model needs to see at the
|
|
10268
10302
|
* start of a user query or cron fire. Mirrors the subagent/plan/arena
|
|
10269
|
-
* branches in `
|
|
10303
|
+
* branches in `LlmClient.sendMessageStream` (`client.ts:848-878`) —
|
|
10270
10304
|
* the ACP path bypasses that code, so without this helper plan mode is
|
|
10271
10305
|
* silently inert and subagent/arena sessions lose context.
|
|
10306
|
+
*
|
|
10307
|
+
* Scope note: the `relevantAutoMemory` reminder is intentionally NOT
|
|
10308
|
+
* included here. Managed auto-memory requires a prefetch pipeline that
|
|
10309
|
+
* lives in `LlmClient`, and porting it into the ACP path is tracked
|
|
10310
|
+
* separately as part of the broader middleware-alignment work.
|
|
10272
10311
|
*/
|
|
10273
10312
|
async #buildInitialSystemReminders() {
|
|
10274
10313
|
const reminders = [];
|
|
@@ -10729,7 +10768,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10729
10768
|
if (!autoModeAllowed && !requiresUserInteraction && shouldRunAutoModeForCall(approvalMode, policyToolName)) {
|
|
10730
10769
|
const denialState = this.config.getAutoModeDenialState();
|
|
10731
10770
|
const fallback = shouldFallback(denialState);
|
|
10732
|
-
const messages = this.config.
|
|
10771
|
+
const messages = this.config.getLlmClient?.()?.getHistoryTail(MAX_TRANSCRIPT_MESSAGES, false) ?? [];
|
|
10733
10772
|
const decision = await evaluateAutoMode({
|
|
10734
10773
|
ctx: pmCtx,
|
|
10735
10774
|
pmForcedAsk,
|
|
@@ -11812,7 +11851,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11812
11851
|
});
|
|
11813
11852
|
} finally {
|
|
11814
11853
|
if (terminalStatus && terminalStatus !== "cancelled") {
|
|
11815
|
-
this.config.
|
|
11854
|
+
this.config.getLlmClient().recordCompletedToolCall(toolName, args);
|
|
11816
11855
|
}
|
|
11817
11856
|
if (terminalStatus === "cancelled") {
|
|
11818
11857
|
endToolSpan(toolSpan, { success: false, cancelled: true });
|
|
@@ -14867,7 +14906,7 @@ function readScopeSettings(settings, scope) {
|
|
|
14867
14906
|
}
|
|
14868
14907
|
__name(readScopeSettings, "readScopeSettings");
|
|
14869
14908
|
async function resolvePreferredMemoryFile(dir, fallbackFilename) {
|
|
14870
|
-
for (const filename of
|
|
14909
|
+
for (const filename of getAllMemoryFilenames()) {
|
|
14871
14910
|
const filePath = path6.join(dir, filename);
|
|
14872
14911
|
try {
|
|
14873
14912
|
await fs3.access(filePath);
|
|
@@ -14879,7 +14918,7 @@ async function resolvePreferredMemoryFile(dir, fallbackFilename) {
|
|
|
14879
14918
|
}
|
|
14880
14919
|
__name(resolvePreferredMemoryFile, "resolvePreferredMemoryFile");
|
|
14881
14920
|
async function resolveQwenMemoryPaths(params) {
|
|
14882
|
-
const fallbackFilename =
|
|
14921
|
+
const fallbackFilename = getAllMemoryFilenames()[0] ?? "QWEN.md";
|
|
14883
14922
|
const userMemoryFile = await resolvePreferredMemoryFile(
|
|
14884
14923
|
Storage.getGlobalQwenDir(),
|
|
14885
14924
|
fallbackFilename
|
|
@@ -15103,7 +15142,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
15103
15142
|
beginAcpBootstrapConfigProfiling();
|
|
15104
15143
|
try {
|
|
15105
15144
|
await config.initialize({
|
|
15106
|
-
|
|
15145
|
+
skipLlmInitialization: true,
|
|
15107
15146
|
// Bootstrap skips MCP discovery — each session runs its own
|
|
15108
15147
|
// pool-routed discovery, so bootstrap-level spawns would be
|
|
15109
15148
|
// redundant subprocess leaks (W119).
|
|
@@ -15884,9 +15923,9 @@ var QwenAgent = class {
|
|
|
15884
15923
|
const registry = config.getToolRegistry();
|
|
15885
15924
|
if (operation === "discover") {
|
|
15886
15925
|
await registry?.discoverToolsForServer(serverName);
|
|
15887
|
-
const
|
|
15888
|
-
if (
|
|
15889
|
-
await
|
|
15926
|
+
const llmClient = config.getLlmClient?.();
|
|
15927
|
+
if (llmClient?.isInitialized?.()) {
|
|
15928
|
+
await llmClient.setTools?.();
|
|
15890
15929
|
}
|
|
15891
15930
|
} else if (operation === "disable") {
|
|
15892
15931
|
await registry?.disableMcpServer(serverName);
|
|
@@ -15956,7 +15995,7 @@ var QwenAgent = class {
|
|
|
15956
15995
|
config.setMcpTransportPool(this.mcpPool);
|
|
15957
15996
|
try {
|
|
15958
15997
|
await config.initialize({
|
|
15959
|
-
|
|
15998
|
+
skipLlmInitialization: true,
|
|
15960
15999
|
skipFileCheckpointing: true,
|
|
15961
16000
|
skipHooks: true,
|
|
15962
16001
|
skipSkillManager: true,
|
|
@@ -16072,9 +16111,9 @@ var QwenAgent = class {
|
|
|
16072
16111
|
}
|
|
16073
16112
|
await Promise.all(
|
|
16074
16113
|
this.getLiveMcpConfigs(serverName).map(async (config) => {
|
|
16075
|
-
const
|
|
16076
|
-
if (
|
|
16077
|
-
await
|
|
16114
|
+
const llmClient = config.getLlmClient?.();
|
|
16115
|
+
if (llmClient?.isInitialized?.()) {
|
|
16116
|
+
await llmClient.setTools?.();
|
|
16078
16117
|
}
|
|
16079
16118
|
})
|
|
16080
16119
|
);
|
|
@@ -16483,7 +16522,7 @@ var QwenAgent = class {
|
|
|
16483
16522
|
}
|
|
16484
16523
|
this.clientCapabilities = args.clientCapabilities;
|
|
16485
16524
|
const authMethods = buildAuthMethods();
|
|
16486
|
-
const version = "0.22.
|
|
16525
|
+
const version = "0.22.3";
|
|
16487
16526
|
const response = {
|
|
16488
16527
|
protocolVersion: PROTOCOL_VERSION,
|
|
16489
16528
|
agentInfo: {
|
|
@@ -17381,15 +17420,17 @@ var QwenAgent = class {
|
|
|
17381
17420
|
break;
|
|
17382
17421
|
}
|
|
17383
17422
|
case "reasoning_effort": {
|
|
17423
|
+
const generation = session.getConfig().getContentGeneratorConfig();
|
|
17424
|
+
const thinkingMandatory = generation.thinkingMandatory === true;
|
|
17384
17425
|
const modelReasoning = this.getModelReasoningConfiguration(
|
|
17385
17426
|
session.getConfig()
|
|
17386
17427
|
);
|
|
17387
17428
|
if (modelReasoning) {
|
|
17388
17429
|
const effortValues = modelReasoning.toggleOnly ? void 0 : modelReasoning.efforts;
|
|
17389
|
-
const selected = value === REASONING_EFFORT_NONE ? REASONING_EFFORT_NONE : modelReasoning.toggleOnly ? value === REASONING_EFFORT_DEFAULT ? REASONING_EFFORT_DEFAULT : void 0 : effortValues?.find((effort2) => effort2 === value);
|
|
17430
|
+
const selected = value === REASONING_EFFORT_NONE && !thinkingMandatory ? REASONING_EFFORT_NONE : modelReasoning.toggleOnly ? value === REASONING_EFFORT_DEFAULT ? REASONING_EFFORT_DEFAULT : void 0 : effortValues?.find((effort2) => effort2 === value);
|
|
17390
17431
|
if (!selected) {
|
|
17391
17432
|
const choices = [
|
|
17392
|
-
REASONING_EFFORT_NONE,
|
|
17433
|
+
...thinkingMandatory ? [] : [REASONING_EFFORT_NONE],
|
|
17393
17434
|
...effortValues ?? [REASONING_EFFORT_DEFAULT]
|
|
17394
17435
|
];
|
|
17395
17436
|
throw RequestError.invalidParams(
|
|
@@ -17397,7 +17438,17 @@ var QwenAgent = class {
|
|
|
17397
17438
|
`Unknown reasoning effort: ${value}. Choose one of: ${choices.join(", ")}`
|
|
17398
17439
|
);
|
|
17399
17440
|
}
|
|
17400
|
-
|
|
17441
|
+
if (!modelReasoning.toggleOnly) {
|
|
17442
|
+
for (const source of ["extra_body", "samplingParams"]) {
|
|
17443
|
+
const layer = generation[source];
|
|
17444
|
+
if (!layer) continue;
|
|
17445
|
+
const next = { ...layer };
|
|
17446
|
+
delete next["enable_thinking"];
|
|
17447
|
+
delete next["reasoning_effort"];
|
|
17448
|
+
delete next["thinking_budget"];
|
|
17449
|
+
generation[source] = next;
|
|
17450
|
+
}
|
|
17451
|
+
}
|
|
17401
17452
|
if (selected === REASONING_EFFORT_NONE) {
|
|
17402
17453
|
generation.reasoning = false;
|
|
17403
17454
|
} else if (selected === REASONING_EFFORT_DEFAULT) {
|
|
@@ -18281,18 +18332,17 @@ var QwenAgent = class {
|
|
|
18281
18332
|
for (const extension of config.getExtensions()) {
|
|
18282
18333
|
if (extension.isActive) continue;
|
|
18283
18334
|
for (const skill of extension.skills ?? []) {
|
|
18284
|
-
const extensionName = extension.
|
|
18335
|
+
const extensionName = extension.name;
|
|
18285
18336
|
const key = `extension:${extensionName}:${skill.name}`;
|
|
18286
|
-
if (skillsByKey.has(
|
|
18287
|
-
continue;
|
|
18288
|
-
}
|
|
18337
|
+
if (skillsByKey.has(key)) continue;
|
|
18289
18338
|
skillsByKey.set(
|
|
18290
18339
|
key,
|
|
18291
18340
|
mapSkillConfigToStatus(
|
|
18292
18341
|
{
|
|
18293
18342
|
...skill,
|
|
18294
18343
|
level: "extension",
|
|
18295
|
-
extensionName
|
|
18344
|
+
extensionName,
|
|
18345
|
+
extensionDisplayName: extension.displayName
|
|
18296
18346
|
},
|
|
18297
18347
|
disablements,
|
|
18298
18348
|
{ disabled: true }
|
|
@@ -18351,7 +18401,13 @@ var QwenAgent = class {
|
|
|
18351
18401
|
providers.set(authType, provider);
|
|
18352
18402
|
}
|
|
18353
18403
|
const isCurrent = currentAuth === model.authType && currentAcpModelId === modelId;
|
|
18354
|
-
const configOptions = model.isRuntimeModel || modelId.startsWith(ACP_ROUTE_ID_PREFIX) ? void 0 : buildModelReasoningConfigPreview(model.id
|
|
18404
|
+
const configOptions = model.isRuntimeModel || modelId.startsWith(ACP_ROUTE_ID_PREFIX) ? void 0 : buildModelReasoningConfigPreview(model.id, {
|
|
18405
|
+
thinkingMandatory: config.getResolvedModelConfig?.(
|
|
18406
|
+
model.authType,
|
|
18407
|
+
model.id,
|
|
18408
|
+
model.registryBaseUrl ?? model.baseUrl
|
|
18409
|
+
)?.generationConfig.thinkingMandatory === true
|
|
18410
|
+
});
|
|
18355
18411
|
const providerModel = {
|
|
18356
18412
|
modelId,
|
|
18357
18413
|
baseModelId: parseAcpBaseModelId(effectiveModelId),
|
|
@@ -20049,9 +20105,9 @@ var QwenAgent = class {
|
|
|
20049
20105
|
});
|
|
20050
20106
|
await Promise.all(
|
|
20051
20107
|
this.getLiveMcpConfigs(serverName).map(async (liveConfig) => {
|
|
20052
|
-
const
|
|
20053
|
-
if (
|
|
20054
|
-
await
|
|
20108
|
+
const llmClient = liveConfig.getLlmClient?.();
|
|
20109
|
+
if (llmClient?.isInitialized?.()) {
|
|
20110
|
+
await llmClient.setTools?.();
|
|
20055
20111
|
}
|
|
20056
20112
|
})
|
|
20057
20113
|
);
|
|
@@ -21065,7 +21121,7 @@ var QwenAgent = class {
|
|
|
21065
21121
|
);
|
|
21066
21122
|
}
|
|
21067
21123
|
try {
|
|
21068
|
-
await config.
|
|
21124
|
+
await config.getLlmClient()?.addWorkingDirectoryChangedContext(
|
|
21069
21125
|
settledPreviousCwd,
|
|
21070
21126
|
canonicalPath
|
|
21071
21127
|
);
|
|
@@ -21243,7 +21299,7 @@ var QwenAgent = class {
|
|
|
21243
21299
|
);
|
|
21244
21300
|
}
|
|
21245
21301
|
await cfg.refreshHierarchicalMemory();
|
|
21246
|
-
await cfg.
|
|
21302
|
+
await cfg.getLlmClient()?.refreshSystemInstruction();
|
|
21247
21303
|
})
|
|
21248
21304
|
);
|
|
21249
21305
|
const failedCount = results.filter(
|
|
@@ -21409,7 +21465,7 @@ var QwenAgent = class {
|
|
|
21409
21465
|
}
|
|
21410
21466
|
let hasHistory = false;
|
|
21411
21467
|
try {
|
|
21412
|
-
hasHistory = (config.
|
|
21468
|
+
hasHistory = (config.getLlmClient().getHistoryShallow() ?? []).length > 0;
|
|
21413
21469
|
} catch (error) {
|
|
21414
21470
|
debugLogger9.debug("Failed to read history before /fork:", error);
|
|
21415
21471
|
}
|
|
@@ -21442,7 +21498,7 @@ var QwenAgent = class {
|
|
|
21442
21498
|
);
|
|
21443
21499
|
}
|
|
21444
21500
|
try {
|
|
21445
|
-
config.
|
|
21501
|
+
config.getLlmClient().addHistory({
|
|
21446
21502
|
role: "user",
|
|
21447
21503
|
parts: [
|
|
21448
21504
|
{
|
|
@@ -21474,9 +21530,9 @@ var QwenAgent = class {
|
|
|
21474
21530
|
}
|
|
21475
21531
|
const session = this.sessionOrThrow(sessionId);
|
|
21476
21532
|
const config = session.getConfig();
|
|
21477
|
-
const
|
|
21533
|
+
const llmClient = config.getLlmClient();
|
|
21478
21534
|
const outputText = typeof params["output"] === "string" ? params["output"] : "";
|
|
21479
|
-
|
|
21535
|
+
llmClient.addHistory({
|
|
21480
21536
|
role: "user",
|
|
21481
21537
|
parts: [
|
|
21482
21538
|
{
|
|
@@ -21882,7 +21938,7 @@ ${outputText}
|
|
|
21882
21938
|
);
|
|
21883
21939
|
}
|
|
21884
21940
|
await runRefresh(
|
|
21885
|
-
async () => await config.
|
|
21941
|
+
async () => await config.getLlmClient()?.refreshSystemInstruction()
|
|
21886
21942
|
);
|
|
21887
21943
|
await runRefresh(
|
|
21888
21944
|
async () => await session.sendAvailableCommandsUpdate()
|
|
@@ -22605,7 +22661,7 @@ ${outputText}
|
|
|
22605
22661
|
);
|
|
22606
22662
|
}
|
|
22607
22663
|
try {
|
|
22608
|
-
await config.
|
|
22664
|
+
await config.getLlmClient()?.refreshSystemInstruction();
|
|
22609
22665
|
} catch (err) {
|
|
22610
22666
|
debugLogger9.warn(
|
|
22611
22667
|
`reload: refreshSystemInstruction failed for session ${id}: ${err}`
|
|
@@ -23083,10 +23139,10 @@ ${outputText}
|
|
|
23083
23139
|
async createAndStoreSession(config, settings, sessionData, options = {}) {
|
|
23084
23140
|
this.assertManagedSessionAdmission();
|
|
23085
23141
|
const sessionId = normalizeSessionIdForLookup(config.getSessionId());
|
|
23086
|
-
const
|
|
23087
|
-
const needsInitialize = !
|
|
23142
|
+
const llmClient = config.getLlmClient();
|
|
23143
|
+
const needsInitialize = !llmClient.isInitialized();
|
|
23088
23144
|
if (needsInitialize && options.deferWorkspaceActivation !== true) {
|
|
23089
|
-
await
|
|
23145
|
+
await llmClient.initialize();
|
|
23090
23146
|
}
|
|
23091
23147
|
this.assertManagedSessionAdmission();
|
|
23092
23148
|
if (this.sessions.has(sessionId)) {
|
|
@@ -23299,11 +23355,29 @@ ${outputText}
|
|
|
23299
23355
|
currentValue: currentModelId,
|
|
23300
23356
|
options: configModelOptions
|
|
23301
23357
|
};
|
|
23302
|
-
const
|
|
23358
|
+
const generation = config.getContentGeneratorConfig();
|
|
23359
|
+
const modelReasoning = this.getModelReasoningConfiguration(
|
|
23360
|
+
config,
|
|
23361
|
+
currentModelId
|
|
23362
|
+
);
|
|
23303
23363
|
const currentModelEffort = config.getReasoningEffort?.();
|
|
23364
|
+
const reasoningOverride = config.getReasoningEffortOverride?.();
|
|
23365
|
+
const reasoningOverrideValue = reasoningOverride ? generation[reasoningOverride.source]?.[reasoningOverride.field] : void 0;
|
|
23366
|
+
const normalizedEffortOverride = reasoningOverride?.field === "reasoning_effort" && typeof reasoningOverrideValue === "string" ? reasoningOverrideValue === "minimal" ? "low" : REASONING_EFFORT_TIERS.find(
|
|
23367
|
+
(effort) => effort === reasoningOverrideValue
|
|
23368
|
+
) : void 0;
|
|
23369
|
+
const normalizedBudgetOverride = reasoningOverride?.field === "thinking_budget" && typeof reasoningOverrideValue === "number" && Number.isFinite(reasoningOverrideValue) && reasoningOverrideValue >= 0 && reasoningOverrideValue <= 262144 ? reasoningOverrideValue <= 4096 ? "low" : reasoningOverrideValue <= 16384 ? "medium" : "xhigh" : void 0;
|
|
23370
|
+
const normalizedOverrideEffort = normalizedEffortOverride ?? normalizedBudgetOverride;
|
|
23371
|
+
const overrideDisablesReasoning = reasoningOverride?.field === "enable_thinking" && reasoningOverrideValue === false || reasoningOverride?.field === "reasoning_effort" && reasoningOverrideValue === REASONING_EFFORT_NONE;
|
|
23372
|
+
const mandatoryUsesDefaultEffort = generation.thinkingMandatory === true && (overrideDisablesReasoning || generation.reasoning === false && reasoningOverride?.field === "reasoning_effort");
|
|
23373
|
+
const effectiveModelEffort = modelReasoning && !modelReasoning.toggleOnly ? mandatoryUsesDefaultEffort ? modelReasoning.defaultEffort : normalizedOverrideEffort ? modelReasoning.efforts.find(
|
|
23374
|
+
(effort) => effort === normalizedOverrideEffort
|
|
23375
|
+
) ?? modelReasoning.defaultEffort : currentModelEffort : currentModelEffort;
|
|
23376
|
+
const reasoningEnabled = generation.reasoning !== false && (!reasoningOverride || !overrideDisablesReasoning);
|
|
23304
23377
|
const reasoningEffortConfigOption = (modelReasoning ? buildModelReasoningConfigOption(rawCurrentModelId, {
|
|
23305
|
-
enabled:
|
|
23306
|
-
effort:
|
|
23378
|
+
enabled: reasoningEnabled,
|
|
23379
|
+
effort: effectiveModelEffort,
|
|
23380
|
+
thinkingMandatory: generation.thinkingMandatory === true
|
|
23307
23381
|
}) : void 0) ?? {
|
|
23308
23382
|
id: "reasoning_effort",
|
|
23309
23383
|
name: "Reasoning effort",
|
|
@@ -23326,13 +23400,21 @@ ${outputText}
|
|
|
23326
23400
|
};
|
|
23327
23401
|
return [modeConfigOption, modelConfigOption, reasoningEffortConfigOption];
|
|
23328
23402
|
}
|
|
23329
|
-
getModelReasoningConfiguration(config) {
|
|
23330
|
-
if (config.getActiveRuntimeModelSnapshot?.()
|
|
23403
|
+
getModelReasoningConfiguration(config, currentAcpModelId) {
|
|
23404
|
+
if (config.getActiveRuntimeModelSnapshot?.()) {
|
|
23405
|
+
return void 0;
|
|
23406
|
+
}
|
|
23407
|
+
const completeModelId = currentAcpModelId ?? getCurrentAcpModelId(
|
|
23408
|
+
this.buildSelectableModelOptions(config),
|
|
23409
|
+
(config.getModel() || "").trim(),
|
|
23410
|
+
config.getAuthType?.(),
|
|
23411
|
+
config.getCurrentModelRegistryBaseUrl?.()
|
|
23412
|
+
);
|
|
23413
|
+
if (completeModelId.startsWith(ACP_ROUTE_ID_PREFIX)) {
|
|
23331
23414
|
return void 0;
|
|
23332
23415
|
}
|
|
23333
23416
|
const reasoning = getModelConfiguration(config.getModel())?.reasoning;
|
|
23334
|
-
|
|
23335
|
-
return reasoning?.thinking && (reasoning.toggleOnly || !currentEffort || reasoning.efforts.includes(currentEffort)) ? reasoning : void 0;
|
|
23417
|
+
return reasoning?.thinking ? reasoning : void 0;
|
|
23336
23418
|
}
|
|
23337
23419
|
buildSelectableModelOptions(config) {
|
|
23338
23420
|
const currentAuthType = config.getAuthType();
|