@qwen-code/qwen-code 0.21.10 → 0.21.11-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/qc-helper/docs/extension/_meta.ts +1 -0
- package/bundled/qc-helper/docs/extension/agent-plugins.md +50 -0
- package/bundled/qc-helper/docs/extension/extension-releasing.md +3 -3
- package/bundled/qc-helper/docs/extension/introduction.md +17 -3
- package/chunks/{MaxSizedBox-FKXYULMW.js → MaxSizedBox-FVSXOMKP.js} +3 -3
- package/chunks/{StandaloneSessionPicker-OQS3M7AY.js → StandaloneSessionPicker-Q27UAQ3X.js} +17 -17
- package/chunks/{acpAgent-AGS6HLQQ.js → acpAgent-C6TV2BIU.js} +39 -39
- package/chunks/{agent-4NCVO27U.js → agent-IPODFZTU.js} +3 -3
- package/chunks/{agent-headless-HYEHZFH6.js → agent-headless-JOL3STCJ.js} +3 -3
- package/chunks/{bridge-FHINXZMN.js → bridge-YX2R6VVM.js} +5 -5
- package/chunks/{channel-settings-store-OXYG5S5X.js → channel-settings-store-CDUEUDYS.js} +9 -9
- package/chunks/{chunk-ZRBMO3C7.js → chunk-2Z6PYTOK.js} +1 -1
- package/chunks/{chunk-Y4R47ZUH.js → chunk-3WOZVMGJ.js} +5 -5
- package/chunks/{chunk-A7XMDZRI.js → chunk-4P66JPNV.js} +2 -2
- package/chunks/{chunk-OONWZLFK.js → chunk-5BRSWOSC.js} +3 -3
- package/chunks/{chunk-5MZCSWI4.js → chunk-5C7FDVHB.js} +3 -3
- package/chunks/{chunk-NV65ZUVM.js → chunk-6CONQTS2.js} +1 -1
- package/chunks/{chunk-VWKER4ZH.js → chunk-6S4NCX23.js} +2 -2
- package/chunks/{chunk-AAE6SR4Q.js → chunk-6WIKTX4C.js} +1 -1
- package/chunks/{chunk-NDU63YLI.js → chunk-7C7RTJPC.js} +2 -2
- package/chunks/{chunk-KONVMRK7.js → chunk-7OFX3YZW.js} +1 -1
- package/chunks/{chunk-D27I6YJT.js → chunk-7S4DYMFG.js} +10 -10
- package/chunks/{chunk-NRLFZWCT.js → chunk-7WUUNAJP.js} +1 -1
- package/chunks/{chunk-F6WDTQ3M.js → chunk-A6PSUNCY.js} +2 -2
- package/chunks/{chunk-AQAJJMRR.js → chunk-AJ6LQ5A6.js} +1 -1
- package/chunks/{chunk-VSFKIRRW.js → chunk-B7SQOICP.js} +3 -3
- package/chunks/{chunk-Y3OVRWRY.js → chunk-BCZ2TTSH.js} +1 -1
- package/chunks/{chunk-YF5MALI4.js → chunk-BO2VRKY2.js} +3 -3
- package/chunks/{chunk-QG3FFJYU.js → chunk-CQGGDOR5.js} +1 -1
- package/chunks/{chunk-4MKXUHXY.js → chunk-DCGYLIYO.js} +2 -2
- package/chunks/{chunk-IBUGFUXC.js → chunk-DVQECPGW.js} +9 -9
- package/chunks/{chunk-F24A2JBM.js → chunk-E2XBEWAK.js} +42 -24
- package/chunks/{chunk-I5VM3SKY.js → chunk-EV3LZGGK.js} +332 -34
- package/chunks/{chunk-LLCWZQCU.js → chunk-F32C6V5B.js} +1 -1
- package/chunks/{chunk-DCZEPFB4.js → chunk-FTO3P6PZ.js} +2 -2
- package/chunks/{chunk-26CXSA6V.js → chunk-FYTHSJDQ.js} +1 -1
- package/chunks/{chunk-YWPSGJFI.js → chunk-HDHLWOG5.js} +2 -2
- package/chunks/{chunk-UBX6NL47.js → chunk-HGBUHVFO.js} +1 -1
- package/chunks/{chunk-KID7K6H2.js → chunk-HOUK5CR2.js} +4 -4
- package/chunks/{chunk-2PLNY5TN.js → chunk-I7XTOGIS.js} +3 -3
- package/chunks/{chunk-Z4JX4NSH.js → chunk-K4QON4BH.js} +10 -10
- package/chunks/{chunk-UEOKWYGY.js → chunk-KHLBIO6M.js} +1 -1
- package/chunks/{chunk-QJMOAMXT.js → chunk-LU7RJB2W.js} +4 -4
- package/chunks/{chunk-P3BJLFSZ.js → chunk-MTE6R5HF.js} +1 -1
- package/chunks/{chunk-EI3NWELG.js → chunk-O3VWAZLP.js} +3816 -3033
- package/chunks/{chunk-GWVUR3QZ.js → chunk-P6RBCBBE.js} +1 -1
- package/chunks/{chunk-NEOXOWYH.js → chunk-PDUIXSYP.js} +2 -2
- package/chunks/{chunk-47PEPJO7.js → chunk-PFWPBYL2.js} +3 -3
- package/chunks/{chunk-IWTMYQ32.js → chunk-PIA35YOG.js} +3 -3
- package/chunks/{chunk-QGNOFE5E.js → chunk-PWYEWOZM.js} +1 -1
- package/chunks/{chunk-AEL7KN2O.js → chunk-RKCPPZV6.js} +1 -1
- package/chunks/{chunk-URKIBIFC.js → chunk-SKSOLRPK.js} +2 -2
- package/chunks/{chunk-ABVRJU3D.js → chunk-SVY7G3WS.js} +5 -5
- package/chunks/{chunk-4WL6SY4F.js → chunk-T3FNRMFJ.js} +1 -1
- package/chunks/{chunk-TRRF5BSP.js → chunk-TCRQD7F6.js} +1 -1
- package/chunks/{chunk-UMD7WQTR.js → chunk-TG3IUQ6M.js} +10 -8
- package/chunks/{chunk-OJUQF2PL.js → chunk-TZ3FN4B2.js} +2 -2
- package/chunks/{chunk-OCSFNUU4.js → chunk-UHJ5S7DF.js} +6 -6
- package/chunks/{chunk-IRZ2ZH72.js → chunk-UMEB4DHF.js} +4 -4
- package/chunks/{chunk-O3EU6GMH.js → chunk-UO2N5QWP.js} +2 -2
- package/chunks/{chunk-EBZ6BJTF.js → chunk-UXV3DYVT.js} +1 -1
- package/chunks/{chunk-ZJ4W6SUY.js → chunk-V3KCCRKA.js} +1 -1
- package/chunks/{chunk-MIKXJYZB.js → chunk-VBU76UYP.js} +25 -23
- package/chunks/{chunk-6LP743KE.js → chunk-VVSMEI6C.js} +3 -3
- package/chunks/{chunk-ECWR5LQR.js → chunk-X76PVMPQ.js} +1 -1
- package/chunks/{chunk-Q3AL4JQ3.js → chunk-X7XXP7CN.js} +1 -1
- package/chunks/{chunk-KZ22NXBY.js → chunk-XGLVQQ6F.js} +2 -2
- package/chunks/{chunk-XVHYA33G.js → chunk-Y3NNBNGM.js} +3 -3
- package/chunks/{chunk-7GTMV7UE.js → chunk-ZUIOLZ4V.js} +18 -18
- package/chunks/{computer-use-WQFK33Z3.js → computer-use-5LGM2YO5.js} +3 -3
- package/chunks/{contextCommand-7EOZND7C.js → contextCommand-JT44ADUD.js} +5 -5
- package/chunks/{core-runtime-FGMQRM6E.js → core-runtime-XHEJM2VB.js} +3 -3
- package/chunks/{create-sub-session-QM2K5HLZ.js → create-sub-session-UQBDJF5G.js} +3 -3
- package/chunks/{daemon-status-provider-L3J6GKCT.js → daemon-status-provider-67M3LFIJ.js} +9 -9
- package/chunks/{daemon-trust-policy-4PHPY23S.js → daemon-trust-policy-3XCIBLLT.js} +9 -9
- package/chunks/{daemon-trust-policy-monitor-6UKEABN5.js → daemon-trust-policy-monitor-LUMB46CL.js} +9 -9
- package/chunks/{deferred-core-runtime-67GJXHXS.js → deferred-core-runtime-BFB6YRTZ.js} +3 -3
- package/chunks/{earlyInputCapture-IWMYR6OB.js → earlyInputCapture-GPULMO2H.js} +3 -3
- package/chunks/{edit-ZFGROCAF.js → edit-XYMQNMWU.js} +3 -3
- package/chunks/{enter-worktree-TZZZCDM5.js → enter-worktree-TIASENJP.js} +3 -3
- package/chunks/{enterPlanMode-U77BI3R6.js → enterPlanMode-K6LTIGWM.js} +3 -3
- package/chunks/{environment-HC37DS2I.js → environment-3XX7LUMG.js} +5 -5
- package/chunks/{errors-6AG54JPD.js → errors-VTFZ6M4W.js} +5 -5
- package/chunks/{exit-worktree-UYYWFPNK.js → exit-worktree-IBKPEHUJ.js} +3 -3
- package/chunks/{exitPlanMode-RWJR2KGB.js → exitPlanMode-2U23CG2U.js} +3 -3
- package/chunks/{fast-path-F5FSZ3O7.js → fast-path-QOBSDLA6.js} +2 -2
- package/chunks/{gemini-NKQHYM36.js → gemini-OCRXJUWF.js} +36 -36
- package/chunks/{geminiContentGenerator-HCWZOUX3.js → geminiContentGenerator-VHSPCS6F.js} +1 -1
- package/chunks/{glob-3PDXKBAO.js → glob-BVX4L3CM.js} +3 -3
- package/chunks/{grep-5HZKZYVD.js → grep-CJSUX5NJ.js} +3 -3
- package/chunks/{handleAutoUpdate-NHFSGYTF.js → handleAutoUpdate-2F3RWBIT.js} +7 -7
- package/chunks/{i18n-Q27KKNDL.js → i18n-BPEDXABF.js} +4 -4
- package/chunks/{image-gen-2Z2RJ6W7.js → image-gen-DEEXNNA2.js} +1 -1
- package/chunks/{initializer-Y5DJLT43.js → initializer-QRD7X25L.js} +9 -9
- package/chunks/{installationInfo-XXB75T7O.js → installationInfo-JCUKPGDB.js} +4 -4
- package/chunks/{list-YHNQ32CS.js → list-G6SHYRHQ.js} +12 -12
- package/chunks/{loadedSettingsAdapter-GHUQK7H4.js → loadedSettingsAdapter-S4EPYP35.js} +9 -9
- package/chunks/{loggingContentGenerator-6NTFBM7Q.js → loggingContentGenerator-MOOIBKKR.js} +1 -1
- package/chunks/{managed-npm-update-SPHYQUWZ.js → managed-npm-update-7K2LDL7V.js} +4 -4
- package/chunks/{mcp-EA3KO6FS.js → mcp-R2Z6IKPN.js} +9 -9
- package/chunks/{monitor-ZBBPAA54.js → monitor-EXI73A5P.js} +3 -3
- package/chunks/{nonInteractiveCli-NNOR56HU.js → nonInteractiveCli-E6CEE6IG.js} +33 -33
- package/chunks/{notebook-edit-5W3FW7Z2.js → notebook-edit-GKKQJQQU.js} +3 -3
- package/chunks/{openaiContentGenerator-TQANPEVZ.js → openaiContentGenerator-NSPCP4FY.js} +1 -1
- package/chunks/{pidfile-EQOBLH4E.js → pidfile-IU4ETBRE.js} +3 -3
- package/chunks/{processUtils-7XQG7EHS.js → processUtils-GZOVMFK4.js} +2 -2
- package/chunks/{qwenContentGenerator-BKCPHHXU.js → qwenContentGenerator-BBTNTOMB.js} +3 -3
- package/chunks/{qwenOAuth2-BJ6PQKE6.js → qwenOAuth2-D6L2W25Z.js} +1 -1
- package/chunks/{read-file-KKTXGIZD.js → read-file-S2BROE4F.js} +1 -1
- package/chunks/{resumeHistoryUtils-6N6XGJJW.js → resumeHistoryUtils-VUY4B6BO.js} +6 -6
- package/chunks/{ripGrep-SJVAAYDV.js → ripGrep-V4EX6SLA.js} +3 -3
- package/chunks/{run-qwen-serve-BCKBCAMX.js → run-qwen-serve-7BDTKCFP.js} +32 -28
- package/chunks/{runtime-E2437YKL.js → runtime-VMWGIAX7.js} +10 -10
- package/chunks/{scheduler-K3D5Z655.js → scheduler-MUKPARY5.js} +5 -5
- package/chunks/{serve-IH4XR5IL.js → serve-7G5R52HX.js} +9 -9
- package/chunks/{server-UD6INW7J.js → server-FTSWAHXF.js} +41 -35
- package/chunks/{session-GR4ZEVW4.js → session-FLUDUMZJ.js} +34 -34
- package/chunks/{settings-5O24D3OJ.js → settings-CJVTBEW7.js} +8 -8
- package/chunks/{shell-UTLWLG5G.js → shell-2DOQIYEE.js} +3 -3
- package/chunks/{skill-QQAZL4VO.js → skill-2GOEKN34.js} +1 -1
- package/chunks/{skill-settings-P3YHJVBZ.js → skill-settings-5FEOMZQS.js} +8 -8
- package/chunks/{spawnChannel-UAQMH6Y6.js → spawnChannel-VJRIO75F.js} +6 -4
- package/chunks/{standalone-update-QP742MGP.js → standalone-update-OC5IKJGY.js} +5 -5
- package/chunks/{startInteractiveUI-YCS6AEPN.js → startInteractiveUI-HFHFI2ZR.js} +43 -42
- package/chunks/{team-create-WFH7OCDQ.js → team-create-ZWAXZR75.js} +3 -3
- package/chunks/{team-plan-approval-EGTT53MV.js → team-plan-approval-LH23GCUV.js} +3 -3
- package/chunks/{terminal-image-renderer-BWRESAQ7.js → terminal-image-renderer-7L3GCHD5.js} +3 -3
- package/chunks/{theme-manager-ZNDGAHJN.js → theme-manager-7WO6DXIT.js} +3 -3
- package/chunks/{tool-search-TI5PTIBF.js → tool-search-BZOZHGKI.js} +1 -1
- package/chunks/{total-session-admission-66UDSOHO.js → total-session-admission-KP4CJTSB.js} +5 -5
- package/chunks/{trustedFolders-4KYHA4IG.js → trustedFolders-57QEHV67.js} +4 -4
- package/chunks/{update-relaunch-WB6LGIF2.js → update-relaunch-53MODFE4.js} +5 -5
- package/chunks/{updateCheck-LOS5GYFC.js → updateCheck-4QDI7CUZ.js} +6 -6
- package/chunks/{useAutoAcceptIndicator-MHAPY52L.js → useAutoAcceptIndicator-VVQUPTM5.js} +9 -9
- package/chunks/{validateNonInterActiveAuth-QV22HNQU.js → validateNonInterActiveAuth-KKVD5E43.js} +30 -30
- package/chunks/{version-DALWZHKQ.js → version-IB5ASN63.js} +1 -1
- package/chunks/{web-fetch-JMJVMYFE.js → web-fetch-APSFQMIH.js} +1 -1
- package/chunks/{web-search-DNDUIPU5.js → web-search-EWEHMFIW.js} +2 -2
- package/chunks/{workflow-JGNN64PM.js → workflow-LA4ACRO4.js} +4 -4
- package/chunks/{workspace-providers-status-K22B3Z6B.js → workspace-providers-status-5C3HGWHF.js} +11 -11
- package/chunks/{workspace-registration-store-LRJG7QA4.js → workspace-registration-store-WSLHN7HA.js} +1 -1
- package/chunks/{workspace-registry-KVXIFM36.js → workspace-registry-5HXRV7L4.js} +5 -5
- package/chunks/{workspace-service-PO4AAKKT.js → workspace-service-SSP4PLBC.js} +12 -12
- package/chunks/{workspace-skills-status-DDYCBVSH.js → workspace-skills-status-DX7CA34S.js} +9 -9
- package/chunks/{workspace-trust-reconciler-DOZPCVHG.js → workspace-trust-reconciler-PASUNEKQ.js} +11 -11
- package/chunks/{write-file-TT6MWIKC.js → write-file-3N2WAE3F.js} +3 -3
- package/chunks/{zoom-image-CNC77ZMA.js → zoom-image-NAVVM4R2.js} +1 -1
- package/cli.js +12 -12
- package/package.json +3 -3
- package/web-shell/assets/{arc-CDk0d60K.js → arc-BGiARkbG.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-h-W3I2lP.js → architectureDiagram-3BPJPVTR-3QBZDeqg.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-D1pvSmZg.js → blockDiagram-GPEHLZMM-CbJI0j0o.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-ByAm5ZNf.js → c4Diagram-AAUBKEIU-pita1IYy.js} +1 -1
- package/web-shell/assets/channel-3vYOf77E.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-VrGPPOGV.js → chunk-2J33WTMH-WzTFww1i.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-B7hTowgG.js → chunk-4BX2VUAB-8TIRo9bL.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-j1Fq8DpE.js → chunk-55IACEB6-CuCr34qf.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-UjABYpF2.js → chunk-727SXJPM-Bb_xWEAx.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D4uBItrs.js → chunk-AQP2D5EJ-C8T1b2Qw.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DeFbKlb8.js → chunk-FMBD7UC4-kjpyMkNM.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-rQJ8TIgT.js → chunk-ND2GUHAM-Dm35jDmi.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-DAGcRxvq.js → chunk-QZHKN3VN-BPVKwuby.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Dr2aqxvr.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Dr2aqxvr.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-MaE7MJSt.js → cose-bilkent-S5V4N54A-M-7J9Xyz.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DzijYGSb.js → dagre-BM42HDAG-u6rmS689.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-WdbG7WnX.js → diagram-2AECGRRQ-nAisfOUB.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-NYutsBnw.js → diagram-5GNKFQAL-CpobRd3l.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Dqg0eBY0.js → diagram-KO2AKTUF-B82W_wPq.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-C7vRP2Lb.js → diagram-LMA3HP47-ClTkmPW6.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-B2sEPpPt.js → diagram-OG6HWLK6-42fbxGPW.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-a4zIbzm8.js → erDiagram-TEJ5UH35-8_zQfzlQ.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BK9y89ya.js → flowDiagram-I6XJVG4X-DQDoN_oV.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-wUQTSNvV.js → ganttDiagram-6RSMTGT7-Cqd646fB.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Dnzt4SAi.js → gitGraphDiagram-PVQCEYII-B6qWs_tS.js} +1 -1
- package/web-shell/assets/{index-BA3wUcKL.js → index-BCeQB_tk.js} +1 -1
- package/web-shell/assets/{index-QzFq6w7o.js → index-Dv9zBWC9.js} +341 -341
- package/web-shell/assets/{index-BjC3yjjL.css → index-eYjX7fQg.css} +1 -1
- package/web-shell/assets/{infoDiagram-5YYISTIA-DcaoToij.js → infoDiagram-5YYISTIA-BVyDAHuu.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DzduqhP2.js → ishikawaDiagram-YF4QCWOH-BBHM904I.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BvviZR_O.js → journeyDiagram-JHISSGLW-B5Bv5Z_0.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-Efm2JxY3.js → kanban-definition-UN3LZRKU-BwSTb0YF.js} +1 -1
- package/web-shell/assets/{linear-DtY3IbOs.js → linear-CHtTm36c.js} +1 -1
- package/web-shell/assets/{mermaid.core-PzpFqoMe.js → mermaid.core-vBCuAUkf.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BLlTkHS0.js → mindmap-definition-RKZ34NQL-CNfKHJrA.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-D-mKF-jE.js → pieDiagram-4H26LBE5-DT6QMLhc.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DYCzslGm.js → quadrantDiagram-W4KKPZXB-Rb2Dar4i.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-Dfpxlk7R.js → requirementDiagram-4Y6WPE33-CA9YzPUY.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-D5cRaaxh.js → sankeyDiagram-5OEKKPKP-CJ5SkhJw.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-s04DReiS.js → sequenceDiagram-3UESZ5HK-T31AiuVM.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-01UNFgnb.js → stateDiagram-AJRCARHV-f7Xpd_Xh.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-wucbNzkr.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-DX8_wZBC.js → timeline-definition-PNZ67QCA-dCwsTscr.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BK0FlBme.js → vennDiagram-CIIHVFJN-SQtBFYkQ.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-DkPc9UlD.js → wardley-L42UT6IY-Dfh4eW0B.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DNKkpDAo.js → wardleyDiagram-YWT4CUSO-BWBKXBsC.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CiPwg8QG.js → xychartDiagram-2RQKCTM6-DVqzcaxh.js} +1 -1
- package/web-shell/index.html +2 -2
- package/web-shell/assets/channel-DPFUV4oi.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CLm0hVvw.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CLm0hVvw.js +0 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DXb5olqv.js +0 -1
|
@@ -405,18 +405,18 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
405
405
|
try {
|
|
406
406
|
if (authType === "openai" /* USE_OPENAI */) {
|
|
407
407
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
408
|
-
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-
|
|
408
|
+
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-NSPCP4FY.js");
|
|
409
409
|
return createOpenAIContentGenerator(generatorConfig, config);
|
|
410
410
|
}, "loadBaseGenerator");
|
|
411
411
|
} else if (authType === "qwen-oauth" /* QWEN_OAUTH */) {
|
|
412
|
-
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-
|
|
412
|
+
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-D6L2W25Z.js");
|
|
413
413
|
try {
|
|
414
414
|
const qwenClient = await getQwenOauthClient(
|
|
415
415
|
config,
|
|
416
416
|
isInitialAuth ? { requireCachedCredentials: true } : void 0
|
|
417
417
|
);
|
|
418
418
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
419
|
-
const { QwenContentGenerator } = await import("./qwenContentGenerator-
|
|
419
|
+
const { QwenContentGenerator } = await import("./qwenContentGenerator-BBTNTOMB.js");
|
|
420
420
|
return new QwenContentGenerator(qwenClient, generatorConfig, config);
|
|
421
421
|
}, "loadBaseGenerator");
|
|
422
422
|
} catch (error) {
|
|
@@ -432,7 +432,7 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
432
432
|
}, "loadBaseGenerator");
|
|
433
433
|
} else if (authType === "gemini" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
434
434
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
435
|
-
const { createGeminiContentGenerator } = await import("./geminiContentGenerator-
|
|
435
|
+
const { createGeminiContentGenerator } = await import("./geminiContentGenerator-VHSPCS6F.js");
|
|
436
436
|
return createGeminiContentGenerator(generatorConfig, config);
|
|
437
437
|
}, "loadBaseGenerator");
|
|
438
438
|
} else {
|
|
@@ -448,7 +448,7 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
448
448
|
try {
|
|
449
449
|
const [baseGenerator, { LoggingContentGenerator }] = await Promise.all([
|
|
450
450
|
loadBaseGenerator(),
|
|
451
|
-
import("./loggingContentGenerator-
|
|
451
|
+
import("./loggingContentGenerator-MOOIBKKR.js")
|
|
452
452
|
]);
|
|
453
453
|
return new LoggingContentGenerator(
|
|
454
454
|
baseGenerator,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
initializeI18n,
|
|
9
9
|
resolveLanguageSetting,
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KHLBIO6M.js";
|
|
12
12
|
import {
|
|
13
13
|
IdeClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O3VWAZLP.js";
|
|
15
15
|
import {
|
|
16
16
|
AuthEvent,
|
|
17
17
|
IdeConnectionEvent,
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getGitVersion,
|
|
5
5
|
getNpmVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B7SQOICP.js";
|
|
7
7
|
import {
|
|
8
8
|
buildEnvStatusFromEnv,
|
|
9
9
|
snapshotProcessEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MTE6R5HF.js";
|
|
11
11
|
import {
|
|
12
12
|
mapDomainErrorToErrorKind
|
|
13
13
|
} from "./chunk-DA4HRSBW.js";
|
|
14
14
|
import {
|
|
15
15
|
canUseRipgrep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-O3VWAZLP.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esbuild_shims
|
|
19
19
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
formatHistoryGapNotice
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2Z6PYTOK.js";
|
|
6
6
|
import {
|
|
7
7
|
sanitizeTerminalText
|
|
8
8
|
} from "./chunk-4NFY2S7N.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setGoalTerminalObserver,
|
|
20
20
|
setLastGoalTerminal,
|
|
21
21
|
unregisterGoalHook
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O3VWAZLP.js";
|
|
23
23
|
import {
|
|
24
24
|
projectUserTranscriptForDisplay
|
|
25
25
|
} from "./chunk-QUI267ZP.js";
|
|
@@ -2931,7 +2931,7 @@ async function extractMetadata(conversation, config) {
|
|
|
2931
2931
|
const gitBranch = firstRecord?.gitBranch;
|
|
2932
2932
|
let gitRepo;
|
|
2933
2933
|
if (cwd) {
|
|
2934
|
-
const { getGitRepoName } = await import("./deferred-core-runtime-
|
|
2934
|
+
const { getGitRepoName } = await import("./deferred-core-runtime-BFB6YRTZ.js");
|
|
2935
2935
|
gitRepo = getGitRepoName(cwd);
|
|
2936
2936
|
}
|
|
2937
2937
|
let model;
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-DA4HRSBW.js";
|
|
12
12
|
import {
|
|
13
13
|
loadSettings
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SVY7G3WS.js";
|
|
15
15
|
import {
|
|
16
16
|
SkillManager,
|
|
17
17
|
isSafeModeEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O3VWAZLP.js";
|
|
19
19
|
import {
|
|
20
20
|
writeStderrLine
|
|
21
21
|
} from "./chunk-KGJGEEVR.js";
|
|
@@ -64,7 +64,7 @@ async function runExitCleanup(options = {}) {
|
|
|
64
64
|
}
|
|
65
65
|
__name(runExitCleanup, "runExitCleanup");
|
|
66
66
|
async function cleanupCheckpoints() {
|
|
67
|
-
const { Storage } = await import("./deferred-core-runtime-
|
|
67
|
+
const { Storage } = await import("./deferred-core-runtime-BFB6YRTZ.js");
|
|
68
68
|
const storage = new Storage(process.cwd());
|
|
69
69
|
const tempDir = storage.getProjectTempDir();
|
|
70
70
|
const checkpointsDir = join(tempDir, "checkpoints");
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
t
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KHLBIO6M.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionReferenceService,
|
|
8
8
|
SessionService,
|
|
9
9
|
readManyFiles,
|
|
10
10
|
stripTerminalControlSequences
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O3VWAZLP.js";
|
|
12
12
|
import {
|
|
13
13
|
emptyMcpResourceText,
|
|
14
14
|
formatMcpResourceContents,
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
settleChatRecording,
|
|
5
5
|
subscribeToHeadlessChatRecordingFailures
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FYTHSJDQ.js";
|
|
7
7
|
import {
|
|
8
8
|
JsonOutputAdapter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6CONQTS2.js";
|
|
10
10
|
import {
|
|
11
11
|
StreamJsonOutputAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UO2N5QWP.js";
|
|
13
13
|
import {
|
|
14
14
|
handleAtCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7C7RTJPC.js";
|
|
16
16
|
import {
|
|
17
17
|
buildInitialSystemReminders,
|
|
18
18
|
buildSystemMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
insertAfterFunctionResponses,
|
|
25
25
|
isSlashCommand,
|
|
26
26
|
normalizePartList
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VBU76UYP.js";
|
|
28
28
|
import {
|
|
29
29
|
RunBudgetEnforcer,
|
|
30
30
|
cleanupReviewWorktreeLeases
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZUIOLZ4V.js";
|
|
32
32
|
import {
|
|
33
33
|
AlreadyReportedError,
|
|
34
34
|
handleBudgetExceededError,
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
handleError,
|
|
37
37
|
handleMaxTurnsExceededError,
|
|
38
38
|
handleToolError
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FTO3P6PZ.js";
|
|
40
40
|
import {
|
|
41
41
|
isInlineModelOverrideAllowed
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-I7XTOGIS.js";
|
|
43
43
|
import {
|
|
44
44
|
PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,
|
|
45
45
|
buildSessionRecoveryPlanFromApiHistory,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
parseAndFormatApiError,
|
|
57
57
|
partitionByConcurrencySafety,
|
|
58
58
|
restoreWorktreeContext
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-O3VWAZLP.js";
|
|
60
60
|
import {
|
|
61
61
|
parsePositiveIntegerEnv
|
|
62
62
|
} from "./chunk-6PVPNMXU.js";
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "./chunk-OIVKILPI.js";
|
|
94
94
|
import {
|
|
95
95
|
registerCleanup
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-6WIKTX4C.js";
|
|
97
97
|
import {
|
|
98
98
|
init_esbuild_shims
|
|
99
99
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
t
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KHLBIO6M.js";
|
|
6
6
|
import {
|
|
7
7
|
computeThresholds,
|
|
8
8
|
getCoreSystemPrompt,
|
|
9
9
|
resolveInteractionMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O3VWAZLP.js";
|
|
11
11
|
import {
|
|
12
12
|
buildSkillLlmContent
|
|
13
13
|
} from "./chunk-K623ENWT.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
getCliVersion
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RKCPPZV6.js";
|
|
6
6
|
import {
|
|
7
7
|
IdeClient,
|
|
8
8
|
formatMemoryUsage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O3VWAZLP.js";
|
|
10
10
|
import {
|
|
11
11
|
createDebugLogger
|
|
12
12
|
} from "./chunk-OIVKILPI.js";
|
|
@@ -25,7 +25,7 @@ import { execFile } from "node:child_process";
|
|
|
25
25
|
|
|
26
26
|
// packages/cli/src/generated/git-commit.ts
|
|
27
27
|
init_esbuild_shims();
|
|
28
|
-
var GIT_COMMIT_INFO = "
|
|
28
|
+
var GIT_COMMIT_INFO = "3d99a89b57";
|
|
29
29
|
|
|
30
30
|
// packages/cli/src/utils/systemInfo.ts
|
|
31
31
|
var debugLogger = createDebugLogger("STATUS");
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
} from "./chunk-BKHCW2BI.js";
|
|
24
24
|
import {
|
|
25
25
|
loadSettings
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SVY7G3WS.js";
|
|
27
27
|
import {
|
|
28
28
|
MCP_BUDGET_WARN_FRACTION,
|
|
29
29
|
sleepInhibitor
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-O3VWAZLP.js";
|
|
31
31
|
import {
|
|
32
32
|
parsePositiveIntegerEnv
|
|
33
33
|
} from "./chunk-6PVPNMXU.js";
|
|
@@ -421,7 +421,7 @@ var serveCommand = {
|
|
|
421
421
|
}
|
|
422
422
|
const externalToolGuardToken = process.env[EXTERNAL_TOOL_GUARD_TOKEN_ENV] ?? "";
|
|
423
423
|
delete process.env[EXTERNAL_TOOL_GUARD_TOKEN_ENV];
|
|
424
|
-
const { runQwenServe } = await import("./run-qwen-serve-
|
|
424
|
+
const { runQwenServe } = await import("./run-qwen-serve-7BDTKCFP.js");
|
|
425
425
|
try {
|
|
426
426
|
const localControlToken = argv["local-control"] ? randomBytes(32).toString("base64url") : void 0;
|
|
427
427
|
const localControlPairing = localControlToken ? localControlUrls(
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
appEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZUIOLZ4V.js";
|
|
6
6
|
import {
|
|
7
7
|
assembleMcpServers,
|
|
8
8
|
getPendingGatedMcpServers,
|
|
9
9
|
getPromptableMcpServers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HOUK5CR2.js";
|
|
11
11
|
import {
|
|
12
12
|
getMCPServerStatus
|
|
13
13
|
} from "./chunk-YGT2AUJ7.js";
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
appEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZUIOLZ4V.js";
|
|
6
6
|
import {
|
|
7
7
|
CUSTOM_SANDBOX_IMAGE_ENV_VAR,
|
|
8
8
|
HOST_UPDATE_RELAUNCH_ENV_VAR,
|
|
9
9
|
SKIP_UPDATE_CHECK_ENV_VAR,
|
|
10
10
|
requestUpdateOnExit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7OFX3YZW.js";
|
|
12
12
|
import {
|
|
13
13
|
loadUndici
|
|
14
14
|
} from "./chunk-3Z43GZUQ.js";
|
|
15
15
|
import {
|
|
16
16
|
IdeClient,
|
|
17
17
|
getAllProviderBaseUrls
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O3VWAZLP.js";
|
|
19
19
|
import {
|
|
20
20
|
detectRuntime,
|
|
21
21
|
getOrCreateSharedDispatcher,
|
|
@@ -231,11 +231,11 @@ function startPostRenderPrefetches(config, settings, options = {}) {
|
|
|
231
231
|
{ updateEventEmitter },
|
|
232
232
|
{ t }
|
|
233
233
|
] = await Promise.all([
|
|
234
|
-
import("./updateCheck-
|
|
235
|
-
import("./handleAutoUpdate-
|
|
236
|
-
import("./installationInfo-
|
|
234
|
+
import("./updateCheck-4QDI7CUZ.js"),
|
|
235
|
+
import("./handleAutoUpdate-2F3RWBIT.js"),
|
|
236
|
+
import("./installationInfo-JCUKPGDB.js"),
|
|
237
237
|
import("./updateEventEmitter-5MKC7BLQ.js"),
|
|
238
|
-
import("./i18n-
|
|
238
|
+
import("./i18n-BPEDXABF.js")
|
|
239
239
|
]);
|
|
240
240
|
const updateCheckSkippedMessage = /* @__PURE__ */ __name((error) => t("Update check skipped ({{reason}}) \u2014 run /update to retry.", {
|
|
241
241
|
reason: describeUpdateCheckFailure(error)
|
|
@@ -308,7 +308,7 @@ ${t(
|
|
|
308
308
|
state: "connecting"
|
|
309
309
|
});
|
|
310
310
|
try {
|
|
311
|
-
const { connectIdeForStartup } = await import("./initializer-
|
|
311
|
+
const { connectIdeForStartup } = await import("./initializer-QRD7X25L.js");
|
|
312
312
|
await withTimeout(
|
|
313
313
|
connectIdeForStartup(config),
|
|
314
314
|
"ide_connect",
|
|
@@ -332,7 +332,7 @@ ${t(
|
|
|
332
332
|
}
|
|
333
333
|
if (config.isInteractive()) {
|
|
334
334
|
runDeferredTask("background_housekeeping", async () => {
|
|
335
|
-
const { startBackgroundHousekeeping } = await import("./scheduler-
|
|
335
|
+
const { startBackgroundHousekeeping } = await import("./scheduler-MUKPARY5.js");
|
|
336
336
|
startBackgroundHousekeeping(config, settings);
|
|
337
337
|
});
|
|
338
338
|
}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-OCPBI7J5.js";
|
|
18
18
|
import {
|
|
19
19
|
defaultSpawnChannelFactory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EV3LZGGK.js";
|
|
21
21
|
import {
|
|
22
22
|
BridgeChannelClosedError,
|
|
23
23
|
BridgeTimeoutError,
|
|
@@ -105,6 +105,7 @@ import {
|
|
|
105
105
|
} from "./chunk-UDXSXLER.js";
|
|
106
106
|
import {
|
|
107
107
|
SESSION_ARTIFACT_PERSISTENCE_VERSION,
|
|
108
|
+
SESSION_TRANSCRIPT_MAX_LIMIT,
|
|
108
109
|
ShellExecutionService,
|
|
109
110
|
TrustGateError,
|
|
110
111
|
WORKSPACE_CONTENT_MTIME_MS_METADATA_KEY,
|
|
@@ -114,7 +115,7 @@ import {
|
|
|
114
115
|
metadataBudgetBytes,
|
|
115
116
|
normalizeSnapshotPayload,
|
|
116
117
|
stableSessionArtifactId
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-O3VWAZLP.js";
|
|
118
119
|
import {
|
|
119
120
|
DAEMON_TRACEPARENT_META_KEY,
|
|
120
121
|
DAEMON_TRACESTATE_META_KEY
|
|
@@ -8039,7 +8040,7 @@ function createAcpSessionBridge(opts) {
|
|
|
8039
8040
|
`ACP session close channel unavailable for ${entry.sessionId}`
|
|
8040
8041
|
);
|
|
8041
8042
|
}
|
|
8042
|
-
return;
|
|
8043
|
+
return false;
|
|
8043
8044
|
}
|
|
8044
8045
|
try {
|
|
8045
8046
|
const closeRequest = entry.connection.extMethod(
|
|
@@ -8051,7 +8052,7 @@ function createAcpSessionBridge(opts) {
|
|
|
8051
8052
|
}
|
|
8052
8053
|
);
|
|
8053
8054
|
const observedCloseRequest = opts2?.timeoutMs ? withTimeout(closeRequest, opts2.timeoutMs, label) : closeRequest;
|
|
8054
|
-
await Promise.race([
|
|
8055
|
+
const response = await Promise.race([
|
|
8055
8056
|
opts2?.throwOnFailure === true ? observedCloseRequest : withTimeout(
|
|
8056
8057
|
observedCloseRequest,
|
|
8057
8058
|
initTimeoutMs,
|
|
@@ -8059,6 +8060,7 @@ function createAcpSessionBridge(opts) {
|
|
|
8059
8060
|
),
|
|
8060
8061
|
getTransportClosedReject(entry)
|
|
8061
8062
|
]);
|
|
8063
|
+
return response["closed"] === true;
|
|
8062
8064
|
} catch (err) {
|
|
8063
8065
|
writeStderrLine(
|
|
8064
8066
|
`qwen serve: ${label} ACP session close notification failed for session ${JSON.stringify(entry.sessionId)}: ${String(
|
|
@@ -8068,6 +8070,7 @@ function createAcpSessionBridge(opts) {
|
|
|
8068
8070
|
if (opts2?.throwOnFailure === true) {
|
|
8069
8071
|
throw err;
|
|
8070
8072
|
}
|
|
8073
|
+
return false;
|
|
8071
8074
|
}
|
|
8072
8075
|
}, "notifyAgentSessionClose");
|
|
8073
8076
|
const broadcastWorkspaceEvent = /* @__PURE__ */ __name((envelope, skipSessionId) => {
|
|
@@ -8580,6 +8583,12 @@ function createAcpSessionBridge(opts) {
|
|
|
8580
8583
|
);
|
|
8581
8584
|
}
|
|
8582
8585
|
const historyReplay = action === "load" ? req.historyReplay ?? "stream" : "stream";
|
|
8586
|
+
const historyPageSize = action === "load" && historyReplay === "response" ? req.historyPageSize : void 0;
|
|
8587
|
+
if (historyPageSize !== void 0 && (!Number.isSafeInteger(historyPageSize) || historyPageSize < 1 || historyPageSize > SESSION_TRANSCRIPT_MAX_LIMIT)) {
|
|
8588
|
+
throw new Error(
|
|
8589
|
+
`Invalid historyPageSize; expected 1..${SESSION_TRANSCRIPT_MAX_LIMIT}`
|
|
8590
|
+
);
|
|
8591
|
+
}
|
|
8583
8592
|
const hideInheritedHistory = action === "load" && req.hideInheritedHistory === true;
|
|
8584
8593
|
const existing = byId.get(req.sessionId);
|
|
8585
8594
|
if (existing) {
|
|
@@ -8590,7 +8599,7 @@ function createAcpSessionBridge(opts) {
|
|
|
8590
8599
|
"session_closing"
|
|
8591
8600
|
);
|
|
8592
8601
|
}
|
|
8593
|
-
const replayFields =
|
|
8602
|
+
const replayFields = historyPageSize !== void 0 ? await refreshedReplayFieldsFor(existing, historyPageSize) : replayFieldsFor(existing, action);
|
|
8594
8603
|
const historyAnchorRecordId = action === "load" ? await resolveHistoryAnchorRecordId(existing, replayFields) : void 0;
|
|
8595
8604
|
if (byId.get(req.sessionId) !== existing) {
|
|
8596
8605
|
throw new SessionNotFoundError(req.sessionId);
|
|
@@ -8630,7 +8639,7 @@ function createAcpSessionBridge(opts) {
|
|
|
8630
8639
|
}
|
|
8631
8640
|
const inFlight = inFlightRestores.get(req.sessionId);
|
|
8632
8641
|
if (inFlight) {
|
|
8633
|
-
if (inFlight.lifecycle.phase === "abandoned" || action !== inFlight.action || historyReplay !== inFlight.historyReplay || hideInheritedHistory !== inFlight.hideInheritedHistory) {
|
|
8642
|
+
if (inFlight.lifecycle.phase === "abandoned" || action !== inFlight.action || historyReplay !== inFlight.historyReplay || historyPageSize !== inFlight.historyPageSize || hideInheritedHistory !== inFlight.hideInheritedHistory) {
|
|
8634
8643
|
const abandoned = inFlight.lifecycle.phase === "abandoned";
|
|
8635
8644
|
throw new RestoreInProgressError(
|
|
8636
8645
|
req.sessionId,
|
|
@@ -8863,8 +8872,8 @@ function createAcpSessionBridge(opts) {
|
|
|
8863
8872
|
...sessionSourceRequestMeta(req.sourceType, req.sourceId),
|
|
8864
8873
|
...historyReplay === "response" ? {
|
|
8865
8874
|
[LOAD_REPLAY_MODE_META_KEY]: LOAD_REPLAY_BULK_MODE,
|
|
8866
|
-
...
|
|
8867
|
-
[LOAD_REPLAY_PAGE_SIZE_META_KEY]:
|
|
8875
|
+
...historyPageSize !== void 0 ? {
|
|
8876
|
+
[LOAD_REPLAY_PAGE_SIZE_META_KEY]: historyPageSize
|
|
8868
8877
|
} : {}
|
|
8869
8878
|
} : {},
|
|
8870
8879
|
...hideInheritedHistory ? { [LOAD_REPLAY_HIDE_INHERITED_META_KEY]: true } : {}
|
|
@@ -9063,7 +9072,7 @@ function createAcpSessionBridge(opts) {
|
|
|
9063
9072
|
await ci.client.seedSessionUpdates(entry, replayUpdates, {
|
|
9064
9073
|
ingestArtifacts: restoredArtifactSnapshot === void 0 || artifactRestoreFailed
|
|
9065
9074
|
});
|
|
9066
|
-
if (
|
|
9075
|
+
if (historyPageSize !== void 0 && entry.events.snapshotReplay()?.compactedTurns.some((event) => event.type === "history_truncated")) {
|
|
9067
9076
|
entry.restoreHistoryHasMore = true;
|
|
9068
9077
|
}
|
|
9069
9078
|
ci.client.drainEarlyEvents(entry.sessionId, entry);
|
|
@@ -9147,6 +9156,7 @@ function createAcpSessionBridge(opts) {
|
|
|
9147
9156
|
inFlightRestores.set(req.sessionId, {
|
|
9148
9157
|
action,
|
|
9149
9158
|
historyReplay,
|
|
9159
|
+
...historyPageSize !== void 0 ? { historyPageSize } : {},
|
|
9150
9160
|
hideInheritedHistory,
|
|
9151
9161
|
publicPromise: promise,
|
|
9152
9162
|
settlementPromise,
|
|
@@ -9192,15 +9202,21 @@ function createAcpSessionBridge(opts) {
|
|
|
9192
9202
|
`qwen serve: closeSession channelInfoForEntry returned undefined for session ${JSON.stringify(sessionId)} \u2014 channel cleanup skipped (entry's channel already torn down)`
|
|
9193
9203
|
);
|
|
9194
9204
|
}
|
|
9205
|
+
let agentSessionClosed = false;
|
|
9195
9206
|
try {
|
|
9196
9207
|
permissionMediator.forgetSession(sessionId);
|
|
9197
9208
|
entry.pendingPermissionIds.clear();
|
|
9198
9209
|
entry.pendingInteractions.clear();
|
|
9199
|
-
await notifyAgentSessionClose(
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9210
|
+
agentSessionClosed = await notifyAgentSessionClose(
|
|
9211
|
+
entry,
|
|
9212
|
+
ci,
|
|
9213
|
+
"closeSession",
|
|
9214
|
+
{
|
|
9215
|
+
throwOnFailure: true,
|
|
9216
|
+
requireFlush: closeOpts?.requireAgentClose === true,
|
|
9217
|
+
...closeOpts?.agentCloseTimeoutMs !== void 0 ? { timeoutMs: closeOpts.agentCloseTimeoutMs } : {}
|
|
9218
|
+
}
|
|
9219
|
+
);
|
|
9204
9220
|
} catch (error) {
|
|
9205
9221
|
if (isDefinitiveAcpRequestError(error)) {
|
|
9206
9222
|
entry.closing = false;
|
|
@@ -9254,16 +9270,18 @@ function createAcpSessionBridge(opts) {
|
|
|
9254
9270
|
} catch {
|
|
9255
9271
|
}
|
|
9256
9272
|
entry.events.close();
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9273
|
+
if (!agentSessionClosed) {
|
|
9274
|
+
try {
|
|
9275
|
+
await telemetry.withSpan(
|
|
9276
|
+
"session.close.cancel_active_prompt",
|
|
9277
|
+
{
|
|
9278
|
+
"qwen-code.daemon.bridge.operation": "session.close.cancel_active_prompt",
|
|
9279
|
+
"session.id": sessionId
|
|
9280
|
+
},
|
|
9281
|
+
async () => await entry.connection.cancel({ sessionId })
|
|
9282
|
+
);
|
|
9283
|
+
} catch {
|
|
9284
|
+
}
|
|
9267
9285
|
}
|
|
9268
9286
|
if (ci && hasNoChannelWork(ci)) {
|
|
9269
9287
|
await reapPendingEmptyChannel(ci);
|