@qwen-code/qwen-code 0.21.6 → 0.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/settings.md +19 -9
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +1 -1
- package/bundled/qc-helper/docs/features/code-review.md +27 -0
- package/bundled/qc-helper/docs/qwen-serve.md +1 -1
- package/bundled/review/SKILL.md +48 -16
- package/chunks/{MaxSizedBox-2HFKP4LI.js → MaxSizedBox-ANWZBPTS.js} +38 -38
- package/chunks/{StandaloneSessionPicker-RBV72M5N.js → StandaloneSessionPicker-XKS3VU3A.js} +54 -53
- package/chunks/{acpAgent-WO6JFCVQ.js → acpAgent-KUAZ3GCZ.js} +80 -80
- package/chunks/{agent-AHGLYNZ4.js → agent-T6PTGX5R.js} +35 -35
- package/chunks/{agent-headless-NTXKKGRO.js → agent-headless-PR7YCB7S.js} +35 -35
- package/chunks/{anthropicContentGenerator-3CAHEZBM.js → anthropicContentGenerator-DTMVEL5M.js} +7 -7
- package/chunks/{artifact-tool-RROCCJDA.js → artifact-tool-U4VOZIK5.js} +2 -2
- package/chunks/{askUserQuestion-2EPPBPUZ.js → askUserQuestion-XOBQLPFA.js} +2 -2
- package/chunks/{bridge-RPAU64CA.js → bridge-NU6YEEHK.js} +39 -39
- package/chunks/{channel-management-service-IGEUOVRT.js → channel-management-service-FSQ7SHYI.js} +1 -1
- package/chunks/{channel-settings-store-ON64MF7G.js → channel-settings-store-35VQVUVV.js} +41 -41
- package/chunks/{chunk-XC656O42.js → chunk-22NBYCPD.js} +3 -3
- package/chunks/{chunk-T4JSA7KU.js → chunk-23RZCH76.js} +3 -3
- package/chunks/{chunk-PX5DNLSA.js → chunk-2U3WZGZG.js} +18 -10
- package/chunks/chunk-2VSTGY6M.js +107 -0
- package/chunks/{chunk-QZKYZCN3.js → chunk-33ACCIIY.js} +3 -3
- package/chunks/{chunk-MBEMTXQT.js → chunk-3K7FH2KQ.js} +1 -32
- package/chunks/{chunk-ODPXHGLL.js → chunk-3NB7TSE2.js} +2 -2
- package/chunks/{chunk-QYPT3QUD.js → chunk-3ULCB3NE.js} +3 -3
- package/chunks/{chunk-C4CBJQKY.js → chunk-55LYDVPU.js} +1 -1
- package/chunks/{chunk-NKSF7HYF.js → chunk-5KH532V7.js} +1 -1
- package/chunks/{chunk-BOGOR4HB.js → chunk-6EOI4HOK.js} +7 -7
- package/chunks/{chunk-CA4UIDFU.js → chunk-6GONZVLS.js} +1 -1
- package/chunks/{chunk-3UOLYNTF.js → chunk-6HVUFDS2.js} +6 -6
- package/chunks/{chunk-5L6CQ4ZU.js → chunk-6M26GBKX.js} +2 -2
- package/chunks/{chunk-XA4TMLFN.js → chunk-6UWFTUQL.js} +530 -388
- package/chunks/{chunk-W5DXUTXD.js → chunk-6XJMFJ4D.js} +8 -8
- package/chunks/{chunk-ACZRB7AD.js → chunk-6XU3PH66.js} +3 -3
- package/chunks/{chunk-NGJOAKJY.js → chunk-72LNFGUY.js} +3 -3
- package/chunks/{chunk-33FNCQSY.js → chunk-7MH4J33A.js} +2 -2
- package/chunks/{chunk-2AGOQ7QO.js → chunk-7UFKAV7Y.js} +118 -6
- package/chunks/{chunk-O7V7N4G7.js → chunk-AE77C5ZU.js} +198 -35
- package/chunks/{chunk-JELIWHXD.js → chunk-AOHJKPKL.js} +1 -1
- package/chunks/{chunk-GLNBDYUX.js → chunk-AXMWHKXA.js} +6 -2
- package/chunks/{chunk-H36SETQS.js → chunk-B2GJNDTV.js} +1 -1
- package/chunks/{chunk-QMBEW7EW.js → chunk-BGG4MBYD.js} +2 -2
- package/chunks/{chunk-6WBWIPBF.js → chunk-BVWVWGLE.js} +2 -2
- package/chunks/{chunk-GK2H5GRC.js → chunk-CB2464BK.js} +5 -5
- package/chunks/{chunk-2UISUFHQ.js → chunk-CJXIIILK.js} +3 -3
- package/chunks/{chunk-WK4TJUEA.js → chunk-CKASRHZI.js} +1 -1
- package/chunks/{chunk-Z7JILXGX.js → chunk-CNIID3TV.js} +3 -3
- package/chunks/{chunk-5MJGUQU5.js → chunk-CSZEXZBE.js} +3 -3
- package/chunks/{chunk-KKN2IE7Q.js → chunk-CTJLZLB5.js} +1 -1
- package/chunks/{chunk-HY25ULVN.js → chunk-CXE7E23H.js} +131 -48
- package/chunks/{chunk-4WTAQEHV.js → chunk-CYR3HI5X.js} +3 -3
- package/chunks/{chunk-KHUA3NQV.js → chunk-DBOFL3LQ.js} +2 -2
- package/chunks/{chunk-4LKVQFHM.js → chunk-DREZZAZM.js} +2 -2
- package/chunks/{chunk-SQC6K5HI.js → chunk-E33LOKRA.js} +1 -1
- package/chunks/{chunk-2DNKEBXY.js → chunk-EI3HZX6C.js} +1 -1
- package/chunks/{chunk-U25CMJYY.js → chunk-EKPKKXY2.js} +1 -1
- package/chunks/{chunk-RHTTKJTP.js → chunk-EORNAQDT.js} +1 -1
- package/chunks/{chunk-432XCUHF.js → chunk-EQL65XGA.js} +1 -1
- package/chunks/{chunk-TYERNYH4.js → chunk-EUNWC2VS.js} +2 -2
- package/chunks/{chunk-OWSW7EYP.js → chunk-EUQTXRKZ.js} +6 -6
- package/chunks/{chunk-UH7Z7Y45.js → chunk-FOGU3LJX.js} +1 -1
- package/chunks/{chunk-536SWZTA.js → chunk-FPM27XN4.js} +4 -4
- package/chunks/{chunk-E4WHKETF.js → chunk-FVKHVJZQ.js} +2 -49
- package/chunks/{chunk-YMBOEAF4.js → chunk-FZBZSYKU.js} +1 -1
- package/chunks/{chunk-YZQTA3ID.js → chunk-GDXET5XU.js} +31 -3396
- package/chunks/{chunk-A5YZ3FA2.js → chunk-GM463R2B.js} +1 -1
- package/chunks/{chunk-MOHAWIAW.js → chunk-GNPNYXJB.js} +2 -2
- package/chunks/{chunk-2POQWYM6.js → chunk-GSS34377.js} +3 -3
- package/chunks/{chunk-CJ5WLD5Y.js → chunk-H2UQ2M5Z.js} +2 -2
- package/chunks/{chunk-SUKEUUAA.js → chunk-HQB2KUAN.js} +1 -1
- package/chunks/{chunk-JE44IPH6.js → chunk-HYRDKNUY.js} +2 -2
- package/chunks/{chunk-D7D7RXIJ.js → chunk-IC4Z6LX6.js} +1 -1
- package/chunks/{chunk-HU5TUALO.js → chunk-IIJEYBNH.js} +3 -3
- package/chunks/{chunk-EMYZIABH.js → chunk-IUFV6FYU.js} +1 -1
- package/chunks/{chunk-4S4OEQ6U.js → chunk-J6SZID63.js} +2 -2
- package/chunks/{chunk-BFHXDAR7.js → chunk-KKBPOU75.js} +1 -1
- package/chunks/{chunk-XM2O73NC.js → chunk-KKJJB5X6.js} +2455 -1314
- package/chunks/{chunk-SLSWFHDF.js → chunk-KR4ZSC7K.js} +4 -4
- package/chunks/{chunk-RFUHDCNF.js → chunk-KXSDEOFU.js} +1 -1
- package/chunks/{chunk-MGSSJT27.js → chunk-L4N6TIP7.js} +5 -3
- package/chunks/{chunk-OP2OHZ7K.js → chunk-LA7YLSR6.js} +6 -6
- package/chunks/{chunk-EXCEQD22.js → chunk-LEMXGVEP.js} +4 -4
- package/chunks/{chunk-WVAESIM6.js → chunk-LZC3B5N2.js} +4 -4
- package/chunks/{chunk-6O5DVH27.js → chunk-M6HMMKVG.js} +1 -1
- package/chunks/{chunk-75QMRMO7.js → chunk-MAJS7AT4.js} +3 -3
- package/chunks/{chunk-T5U6IM4C.js → chunk-MVUQRLOH.js} +3 -3
- package/chunks/{chunk-GLWP3FDB.js → chunk-MZSJ43WV.js} +31 -2
- package/chunks/{chunk-ZPPP6VCL.js → chunk-NG2R4N5O.js} +1 -1
- package/chunks/{chunk-UGTWD35F.js → chunk-NLREQJFK.js} +1 -1
- package/chunks/{chunk-N2GJU6KI.js → chunk-OFI7IGST.js} +12 -12
- package/chunks/{chunk-VGFPFM4U.js → chunk-OH2VKQXH.js} +42 -16
- package/chunks/{chunk-G5NNWEYE.js → chunk-OHJLEW5J.js} +4 -4
- package/chunks/{chunk-3RXUYQJI.js → chunk-OIVKILPI.js} +49 -0
- package/chunks/{chunk-VNQCPBC2.js → chunk-OMKQH5C5.js} +3 -3
- package/chunks/{chunk-LBWNSLJK.js → chunk-ONSZH6VM.js} +2 -2
- package/chunks/{chunk-DYA25Y7U.js → chunk-OWMAZHIX.js} +1 -1
- package/chunks/{chunk-4JH77A2U.js → chunk-P2AJ7FTI.js} +1 -1
- package/chunks/{chunk-WNU7TZTO.js → chunk-P3LEG54R.js} +3 -3
- package/chunks/{chunk-VSALQLT7.js → chunk-PJOBIWUG.js} +1 -1
- package/chunks/{chunk-PPUOYL77.js → chunk-PQBHU2IA.js} +49 -18
- package/chunks/{chunk-WO2B5E5B.js → chunk-Q3JQ7OSU.js} +1 -1
- package/chunks/{chunk-IMOQO6YL.js → chunk-QETYKPMG.js} +1 -1
- package/chunks/{chunk-DVBEGGLG.js → chunk-RERATVSK.js} +10 -9
- package/chunks/chunk-RGSBTHSU.js +3381 -0
- package/chunks/{chunk-DIT4V3XH.js → chunk-RMH5OWLD.js} +1 -1
- package/chunks/{chunk-TOGZTG4X.js → chunk-RNVQB725.js} +2 -2
- package/chunks/{chunk-GESMMPAK.js → chunk-RUL4S3K3.js} +79 -59
- package/chunks/{chunk-3LZKY4V4.js → chunk-RZHU3ILK.js} +5 -5
- package/chunks/{chunk-SKNE3KQC.js → chunk-SCI7K3GM.js} +4 -4
- package/chunks/{chunk-YAVY33G4.js → chunk-SEZ556DZ.js} +1 -1
- package/chunks/{chunk-Q5RM32DR.js → chunk-SHZYHGQH.js} +1 -1
- package/chunks/chunk-SOORFWKY.js +155 -0
- package/chunks/{chunk-K2B3X3E7.js → chunk-SPMY6CX6.js} +4 -4
- package/chunks/{chunk-FZFP7RZI.js → chunk-TDXGKHDN.js} +3 -3
- package/chunks/{chunk-R5RBXLNC.js → chunk-TLV2IMHR.js} +5 -5
- package/chunks/{chunk-U4AF3QLU.js → chunk-TRLYP7OF.js} +8 -8
- package/chunks/{chunk-ULPQQSDN.js → chunk-TYKC75AX.js} +3 -3
- package/chunks/{chunk-KVUBYJDM.js → chunk-TZEZYNYD.js} +1 -1
- package/chunks/{chunk-XC2VAFVZ.js → chunk-UVX4Y6IN.js} +1 -1
- package/chunks/{chunk-RK2EE3T7.js → chunk-VOARQPTA.js} +2 -2
- package/chunks/{chunk-TGGEZINK.js → chunk-W4B7UBUS.js} +7 -7
- package/chunks/{chunk-URN76TKR.js → chunk-WCG5O7IP.js} +2 -2
- package/chunks/{chunk-TSERKWCX.js → chunk-XCWO3SMQ.js} +3 -3
- package/chunks/{chunk-OXX3FG2N.js → chunk-Y4EWSQF7.js} +3 -3
- package/chunks/{chunk-3PRJYMXC.js → chunk-Y4NGLFGJ.js} +1 -1
- package/chunks/{chunk-A4VTILZT.js → chunk-Y7E5LNLO.js} +115 -85
- package/chunks/{chunk-3LGZEYOF.js → chunk-YHEEE624.js} +2 -2
- package/chunks/{chunk-SQOMTWQT.js → chunk-YJQCUTT2.js} +4 -4
- package/chunks/{chunk-GWRHVJY2.js → chunk-ZJ3VGYHK.js} +20 -20
- package/chunks/{chunk-LAAFLUQV.js → chunk-ZXU5UHMI.js} +1 -1
- package/chunks/{computer-use-5HXJ2P4X.js → computer-use-KEAPATUY.js} +35 -35
- package/chunks/{config-utils-VXD4SPVR.js → config-utils-K7SCOWHD.js} +2 -2
- package/chunks/{contextCommand-7BEHRX2H.js → contextCommand-ZJA6A5K5.js} +37 -37
- package/chunks/{core-runtime-U4VJ5TIV.js → core-runtime-QMJPWHCI.js} +35 -35
- package/chunks/{create-sub-session-QZNQY332.js → create-sub-session-DJE6XICH.js} +35 -35
- package/chunks/{create-sub-session-6EWLAZD5.js → create-sub-session-E4PBYXV5.js} +2 -2
- package/chunks/{cron-create-CCRIULJE.js → cron-create-GRBWYMIJ.js} +4 -4
- package/chunks/{cron-delete-FCFW6BGP.js → cron-delete-4CMKBR2M.js} +4 -4
- package/chunks/{cron-list-QDBVCHRF.js → cron-list-W7K4ASOA.js} +4 -4
- package/chunks/{daemon-YI5RY62O.js → daemon-SCTQMM7Z.js} +50 -2
- package/chunks/{daemon-status-provider-UJUGTDTL.js → daemon-status-provider-FSWDPE2G.js} +43 -43
- package/chunks/{daemon-trust-policy-ZHDD5VYQ.js → daemon-trust-policy-P5L5VFAY.js} +40 -40
- package/chunks/{daemon-trust-policy-monitor-5SHYBDGA.js → daemon-trust-policy-monitor-73JYN6ET.js} +40 -40
- package/chunks/{deferred-core-runtime-QWAEBTR5.js → deferred-core-runtime-BWRCCFTE.js} +35 -35
- package/chunks/{display-image-GUJA352B.js → display-image-O2XFPQTC.js} +4 -4
- package/chunks/{dist-A7H2KKUC.js → dist-K4WWQBHS.js} +277 -98
- package/chunks/{earlyInputCapture-5BMSGKOI.js → earlyInputCapture-L5ST23A6.js} +36 -36
- package/chunks/{edit-IVQQVYYK.js → edit-LHHRFNFK.js} +35 -35
- package/chunks/{enter-worktree-P3DF2N6O.js → enter-worktree-6NXCRZPF.js} +35 -35
- package/chunks/{enterPlanMode-KKTDVLAD.js → enterPlanMode-ZVQT4U7D.js} +35 -35
- package/chunks/{environment-W5TRDM3G.js → environment-GJ2HWJOS.js} +37 -37
- package/chunks/{errors-GJJB36IG.js → errors-6RLH3XXC.js} +37 -37
- package/chunks/{exit-worktree-LV5RLOCU.js → exit-worktree-I2YLUHHY.js} +35 -35
- package/chunks/{exitPlanMode-TUGOB2LL.js → exitPlanMode-7CCWKO7I.js} +35 -35
- package/chunks/{fast-path-2FU23PAQ.js → fast-path-DVFD4HQD.js} +2 -2
- package/chunks/{gemini-KDULDQPP.js → gemini-7FWGOYD4.js} +72 -72
- package/chunks/{geminiContentGenerator-LOCFHNVA.js → geminiContentGenerator-V2WVLIXU.js} +6 -6
- package/chunks/{glob-Z4NQFKWS.js → glob-3N6GGI75.js} +35 -35
- package/chunks/{goal-tools-3AZKX5WQ.js → goal-tools-APOW6UXL.js} +3 -3
- package/chunks/{grep-Z67Z7EN6.js → grep-V43ILZVX.js} +35 -35
- package/chunks/{handleAutoUpdate-DFUZE6I6.js → handleAutoUpdate-A5WFVWIA.js} +39 -39
- package/chunks/{i18n-R4FMZ7N2.js → i18n-PLVQ4FBZ.js} +36 -36
- package/chunks/{image-gen-4CQJPQP5.js → image-gen-7C6IK6DC.js} +9 -9
- package/chunks/{initializer-DK672ZVE.js → initializer-CVAIKZYL.js} +41 -41
- package/chunks/{installationInfo-PO4Z3ES7.js → installationInfo-J6QDHNTK.js} +36 -36
- package/chunks/{keychain-token-storage-7BT4TQ2A.js → keychain-token-storage-TVAMTNP7.js} +2 -2
- package/chunks/{list-QXQF6C53.js → list-ZZ4OUUWV.js} +43 -43
- package/chunks/{list-agents-GC4BRET7.js → list-agents-KFFIIS2G.js} +2 -2
- package/chunks/{loadedSettingsAdapter-4D7GUGW6.js → loadedSettingsAdapter-QRYRJSWL.js} +40 -40
- package/chunks/{loggingContentGenerator-2P3MNACM.js → loggingContentGenerator-OJCO75HM.js} +17 -17
- package/chunks/{loop-wakeup-SQQSBMEY.js → loop-wakeup-TLMJPMMP.js} +5 -5
- package/chunks/{ls-63CC3NNX.js → ls-UVVE2XGE.js} +4 -4
- package/chunks/{lsp-P6NVJVNT.js → lsp-QMEA2VLB.js} +2 -2
- package/chunks/{managed-npm-update-LWVJQTWO.js → managed-npm-update-PCOSCP2N.js} +36 -36
- package/chunks/{mcp-GHETAR6V.js → mcp-M3WKKWKY.js} +40 -40
- package/chunks/{monitor-4T7W4M6Q.js → monitor-GN24FH6C.js} +35 -35
- package/chunks/{nonInteractiveCli-P4UKCJFM.js → nonInteractiveCli-KPTU3VSQ.js} +72 -72
- package/chunks/{notebook-edit-OC2V7U5D.js → notebook-edit-4YM65BBO.js} +35 -35
- package/chunks/{openaiContentGenerator-RAJUFWQY.js → openaiContentGenerator-EDQT6GTV.js} +19 -19
- package/chunks/{pidfile-HVPYVRLS.js → pidfile-JOIIRN2C.js} +36 -36
- package/chunks/{processUtils-VIQ4JHVX.js → processUtils-5SV4MX3Q.js} +2 -2
- package/chunks/{qwenContentGenerator-2QLCUFNZ.js → qwenContentGenerator-ODRJSUGR.js} +40 -40
- package/chunks/{qwenOAuth2-J2X3EN43.js → qwenOAuth2-NESCMZ47.js} +8 -8
- package/chunks/{read-file-ZNAN2B26.js → read-file-HPSODLPK.js} +10 -10
- package/chunks/{read-mcp-resource-RTSSEER5.js → read-mcp-resource-2TNSJTC3.js} +2 -2
- package/chunks/{record-artifact-E6AWQU2Z.js → record-artifact-RAON52FC.js} +3 -3
- package/chunks/{resumeHistoryUtils-RCY7AL5Y.js → resumeHistoryUtils-TXCOFFMQ.js} +41 -40
- package/chunks/{ripGrep-C3KMLZM5.js → ripGrep-ZKQGTQAO.js} +35 -35
- package/chunks/{run-qwen-serve-3JN75CIQ.js → run-qwen-serve-ZPKPKECF.js} +65 -43
- package/chunks/{runtime-VUA4WQYD.js → runtime-2FLNNM36.js} +43 -43
- package/chunks/{scheduler-Z4IBXCOY.js → scheduler-365PJHNR.js} +35 -35
- package/chunks/{sdk-exporters-http-IL2346MJ.js → sdk-exporters-http-KHAB5JSD.js} +2 -2
- package/chunks/{sdk-impl-SYKGVWOZ.js → sdk-impl-KD7FSTC3.js} +2 -2
- package/chunks/{send-message-TL6FIMMN.js → send-message-ZM7MRUGP.js} +5 -5
- package/chunks/{serve-67T3P7XI.js → serve-QD2RNLKJ.js} +41 -41
- package/chunks/{server-46ZO2CLV.js → server-XLJVLTYM.js} +621 -332
- package/chunks/{session-B4IFAFC4.js → session-3VTUHH4Q.js} +73 -73
- package/chunks/{settings-AI2BTBOZ.js → settings-KULVPCQC.js} +39 -39
- package/chunks/{shell-BKII3B6E.js → shell-3SWW22MH.js} +35 -35
- package/chunks/{skill-6CFOWVGA.js → skill-KDHWYS7W.js} +14 -14
- package/chunks/{skill-settings-6BFQWMW4.js → skill-settings-NMY4JEJC.js} +39 -39
- package/chunks/{spawnChannel-FJXW35U7.js → spawnChannel-ZKS4Q5OU.js} +37 -37
- package/chunks/{standalone-update-WVINHRNS.js → standalone-update-7CXPGAQ4.js} +37 -37
- package/chunks/{startInteractiveUI-YE57CJ57.js → startInteractiveUI-2QQLEKM6.js} +399 -159
- package/chunks/{syntheticOutput-BN7E626U.js → syntheticOutput-ZLCUTKO2.js} +3 -3
- package/chunks/{task-create-Q727MXHJ.js → task-create-CQP5UEA3.js} +9 -9
- package/chunks/{task-list-G6KPQ5JT.js → task-list-XLEZOJXP.js} +5 -5
- package/chunks/{task-stop-TNXRNAL2.js → task-stop-7ZQM5CFF.js} +2 -2
- package/chunks/{task-update-YB7PXO4R.js → task-update-JA75U2SN.js} +9 -9
- package/chunks/{team-create-GNC7NFY6.js → team-create-2WTNGAOX.js} +35 -35
- package/chunks/{team-delete-GDO7H2T4.js → team-delete-MHY3UZGY.js} +5 -5
- package/chunks/{team-plan-approval-ECALJLIO.js → team-plan-approval-LZTYLEG4.js} +35 -35
- package/chunks/{terminal-image-renderer-II74TFVW.js → terminal-image-renderer-R5HHAFJN.js} +41 -36
- package/chunks/{theme-manager-2MGEDD22.js → theme-manager-PAUCSJFF.js} +36 -36
- package/chunks/{todoWrite-MHWHO5UO.js → todoWrite-UPVOHYGD.js} +4 -4
- package/chunks/{tool-search-S6LRRACA.js → tool-search-2BFCGLI6.js} +13 -13
- package/chunks/{total-session-admission-7WVAWQPU.js → total-session-admission-MK4SINFK.js} +39 -39
- package/chunks/{trustedFolders-NFS4KHO4.js → trustedFolders-TJ5S26N7.js} +36 -36
- package/chunks/{update-relaunch-Q5HLZ6UW.js → update-relaunch-N7AYLARF.js} +5 -5
- package/chunks/{updateCheck-UOVZSTP7.js → updateCheck-QRZ3DVT5.js} +38 -38
- package/chunks/{useAutoAcceptIndicator-PC6MOJCO.js → useAutoAcceptIndicator-DBJ7Y5AF.js} +42 -42
- package/chunks/{validateNonInterActiveAuth-YMQP3ZM7.js → validateNonInterActiveAuth-6ZQWUDS3.js} +69 -69
- package/chunks/{version-T4AQFZJH.js → version-AJQGQWXC.js} +1 -1
- package/chunks/{web-fetch-JQCJHEEX.js → web-fetch-QWJYRXFL.js} +13 -13
- package/chunks/{web-search-QGZ2KY4G.js → web-search-2AOXJGHU.js} +9 -9
- package/chunks/web-shell-static-O73YPVVC.js +33 -0
- package/chunks/{workflow-YIT27YWZ.js → workflow-ERH3SJG2.js} +36 -36
- package/chunks/{workspace-providers-status-FIDZQ2PL.js → workspace-providers-status-HZ474RA4.js} +43 -43
- package/chunks/{workspace-registration-store-RCSPE4DU.js → workspace-registration-store-6EUP4JXG.js} +1 -1
- package/chunks/{workspace-registry-5PEUCY6E.js → workspace-registry-R4APRRNC.js} +39 -39
- package/chunks/{workspace-service-LANDVPL7.js → workspace-service-HFIFDMU7.js} +45 -45
- package/chunks/{workspace-skills-status-2IQVJNIN.js → workspace-skills-status-HAHEIHGK.js} +41 -41
- package/chunks/{workspace-trust-reconciler-CZPZZCZC.js → workspace-trust-reconciler-65GTAGDK.js} +45 -45
- package/chunks/{write-file-G5VNGCOG.js → write-file-B34CDELV.js} +35 -35
- package/chunks/{zoom-image-6RBLD7X6.js → zoom-image-HPRBZHSS.js} +10 -10
- package/cli.js +12 -12
- package/package.json +3 -3
- package/web-shell/assets/{arc-B-Vtkp1W.js → arc-Ip-FFDJ0.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-qmTXIj64.js → architectureDiagram-3BPJPVTR-CChqgwIb.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-ZlnXEtdP.js → blockDiagram-GPEHLZMM-BHN-Tfss.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-Wyoirf6Z.js → c4Diagram-AAUBKEIU-BhyjzDjN.js} +1 -1
- package/web-shell/assets/channel-Cu8qd6OB.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-WQwbq9d8.js → chunk-2J33WTMH-BB9eyHrx.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DQKnAXC4.js → chunk-4BX2VUAB-BeV7ce_J.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DIdgXNcO.js → chunk-55IACEB6-DO7kXDiV.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-CUwGOLEd.js → chunk-727SXJPM-B27MPznD.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-CCBGZFZ4.js → chunk-AQP2D5EJ-DHIjqjD_.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DMGXProk.js → chunk-FMBD7UC4-DabMqyN2.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-yejcFqsh.js → chunk-ND2GUHAM-Dw7Nnnxc.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-DxCyqTf7.js → chunk-QZHKN3VN-DdaZew1Q.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BI3KrXhq.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BI3KrXhq.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-DOrF3cg_.js → cose-bilkent-S5V4N54A-CgBpCYH5.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-Be6CdYQ_.js → dagre-BM42HDAG-BB4IU8G0.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-B_Rjsft2.js → diagram-2AECGRRQ-BcUTHU37.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BvQbKSm1.js → diagram-5GNKFQAL-B6Lyihyv.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-BsdmMdpS.js → diagram-KO2AKTUF-CRIJOjpG.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-CrQlBaNr.js → diagram-LMA3HP47-DdNiwWWT.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-aB1MD_DL.js → diagram-OG6HWLK6-Dz4b32Do.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-F-eUUn9n.js → erDiagram-TEJ5UH35-D-8NGw77.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-DY_d8lUK.js → flowDiagram-I6XJVG4X-Dun26LyM.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-Dqu7KBPg.js → ganttDiagram-6RSMTGT7-F10Hu1Gc.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-2IkU_VEj.js → gitGraphDiagram-PVQCEYII-Bf8Ez6-D.js} +1 -1
- package/web-shell/assets/{index-BuSbqggh.js → index-BXqw-nGq.js} +1 -1
- package/web-shell/assets/{index-DrfC2e9s.js → index-hcgjV7vS.js} +333 -333
- package/web-shell/assets/{infoDiagram-5YYISTIA-C4orwzPw.js → infoDiagram-5YYISTIA-DVgTMLvj.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-fXUEfef_.js → ishikawaDiagram-YF4QCWOH-uT-KepvK.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-Bs0I1_J5.js → journeyDiagram-JHISSGLW-Vg_XadQf.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BPRj1dw_.js → kanban-definition-UN3LZRKU-Dyv1ESBE.js} +1 -1
- package/web-shell/assets/{linear-DFS6ZDpW.js → linear-BMIepYX3.js} +1 -1
- package/web-shell/assets/{mermaid.core-CZxjWMaO.js → mermaid.core-zA8pJ9ag.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-Dsr3PmNs.js → mindmap-definition-RKZ34NQL-BCW_BZ_5.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-D5Ngpz5Y.js → pieDiagram-4H26LBE5-DseNEGp2.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-WJK9I25z.js → quadrantDiagram-W4KKPZXB-6Z7wr1Fi.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CmrYcwOH.js → requirementDiagram-4Y6WPE33-CVOlCRPf.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-7SjCc4Mv.js → sankeyDiagram-5OEKKPKP-CGhgrUJZ.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-Dl9E0IRM.js → sequenceDiagram-3UESZ5HK-dlqmpLuQ.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CRRio7yV.js → stateDiagram-AJRCARHV-B9EW10Xb.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CJTZJJ5X.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-DVyXjjfq.js → timeline-definition-PNZ67QCA-BBRh0mgZ.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-Nb2Lckzq.js → vennDiagram-CIIHVFJN-B8Gs-REP.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-DuL_otIP.js → wardley-L42UT6IY-D_y80Ur7.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DVI9Q4Aa.js → wardleyDiagram-YWT4CUSO-D-CNfHJ-.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BNjAm7KD.js → xychartDiagram-2RQKCTM6-DQ5CvELo.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/assets/channel-DXaHnfjS.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BigU82A0.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BigU82A0.js +0 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-1atT7XaU.js +0 -1
|
@@ -6,10 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
TUI_CHAT_RECORDING_FAILURE_MESSAGE,
|
|
8
8
|
reportChatRecordingFailureToAdapter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3NB7TSE2.js";
|
|
10
|
+
import {
|
|
11
|
+
StreamJsonOutputAdapter
|
|
12
|
+
} from "./chunk-72LNFGUY.js";
|
|
10
13
|
import {
|
|
11
14
|
startPostRenderPrefetches
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OFI7IGST.js";
|
|
13
16
|
import {
|
|
14
17
|
AboutBox,
|
|
15
18
|
BaseSelectionList,
|
|
@@ -87,19 +90,35 @@ import {
|
|
|
87
90
|
useUIActions,
|
|
88
91
|
useUIState,
|
|
89
92
|
useVirtualViewport
|
|
90
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-6UWFTUQL.js";
|
|
94
|
+
import {
|
|
95
|
+
GeminiRespondingSpinner,
|
|
96
|
+
GeminiSpinner,
|
|
97
|
+
ICON,
|
|
98
|
+
SCREEN_READER_USER_PREFIX,
|
|
99
|
+
SHELL_COMMAND_NAME,
|
|
100
|
+
StreamingContext,
|
|
101
|
+
applyCollapsePolicyAndSummary,
|
|
102
|
+
buildResumedHistoryItems,
|
|
103
|
+
build_default,
|
|
104
|
+
expandCollapsedHistory,
|
|
105
|
+
isCollapsibleTool,
|
|
106
|
+
shouldDisplayGoalStateCause,
|
|
107
|
+
useStreamingContext,
|
|
108
|
+
waitForGoalRuntime
|
|
109
|
+
} from "./chunk-OH2VKQXH.js";
|
|
91
110
|
import {
|
|
92
111
|
stopAndGetCapturedInput
|
|
93
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-TZEZYNYD.js";
|
|
94
113
|
import {
|
|
95
114
|
useAutoAcceptIndicator
|
|
96
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-23RZCH76.js";
|
|
97
116
|
import {
|
|
98
117
|
KeypressProvider,
|
|
99
118
|
useFocus,
|
|
100
119
|
useKeypress,
|
|
101
120
|
useKeypressContext
|
|
102
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-MAJS7AT4.js";
|
|
103
122
|
import {
|
|
104
123
|
classifyApiError,
|
|
105
124
|
fireSessionDeleteHook
|
|
@@ -115,14 +134,7 @@ import {
|
|
|
115
134
|
matchMcpServerPrefix,
|
|
116
135
|
resolveAtCommandQuery,
|
|
117
136
|
sanitizeDisplayText
|
|
118
|
-
} from "./chunk-
|
|
119
|
-
import {
|
|
120
|
-
getCommandDisplayName,
|
|
121
|
-
getCommandSourceBadge
|
|
122
|
-
} from "./chunk-IMOQO6YL.js";
|
|
123
|
-
import {
|
|
124
|
-
StreamJsonOutputAdapter
|
|
125
|
-
} from "./chunk-NGJOAKJY.js";
|
|
137
|
+
} from "./chunk-KR4ZSC7K.js";
|
|
126
138
|
import {
|
|
127
139
|
BuiltinCommandLoader,
|
|
128
140
|
BundledSkillLoader,
|
|
@@ -163,18 +175,22 @@ import {
|
|
|
163
175
|
resetBackgroundStateForSessionSwitch,
|
|
164
176
|
serializeUserPromptExpansionPrompt,
|
|
165
177
|
supportsMatchers
|
|
166
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-RUL4S3K3.js";
|
|
167
179
|
import {
|
|
168
180
|
EXTENSION_RELOAD_FAILED_REASON,
|
|
169
181
|
ExtensionRefreshState,
|
|
170
182
|
appEvents,
|
|
171
183
|
cleanupReviewWorktreeLeases,
|
|
172
184
|
loadHierarchicalGeminiMemory
|
|
173
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-KKJJB5X6.js";
|
|
186
|
+
import {
|
|
187
|
+
getCommandDisplayName,
|
|
188
|
+
getCommandSourceBadge
|
|
189
|
+
} from "./chunk-QETYKPMG.js";
|
|
174
190
|
import {
|
|
175
191
|
computeSessionStats,
|
|
176
192
|
levelLabel
|
|
177
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-RNVQB725.js";
|
|
178
194
|
import {
|
|
179
195
|
disableKittyProtocol,
|
|
180
196
|
isKittyProtocolEnabled,
|
|
@@ -193,34 +209,19 @@ import {
|
|
|
193
209
|
oscKittyNotify,
|
|
194
210
|
saveClipboardImage,
|
|
195
211
|
writeOsc52
|
|
196
|
-
} from "./chunk-
|
|
197
|
-
import "./chunk-
|
|
212
|
+
} from "./chunk-YHEEE624.js";
|
|
213
|
+
import "./chunk-SCI7K3GM.js";
|
|
198
214
|
import "./chunk-4WGODMVR.js";
|
|
215
|
+
import "./chunk-TLV2IMHR.js";
|
|
199
216
|
import "./chunk-KW7NOTN6.js";
|
|
200
217
|
import {
|
|
201
218
|
MaxSizedBox,
|
|
202
219
|
OverflowProvider,
|
|
203
220
|
useOverflowState
|
|
204
|
-
} from "./chunk-
|
|
205
|
-
import {
|
|
206
|
-
GeminiRespondingSpinner,
|
|
207
|
-
GeminiSpinner,
|
|
208
|
-
ICON,
|
|
209
|
-
SCREEN_READER_USER_PREFIX,
|
|
210
|
-
SHELL_COMMAND_NAME,
|
|
211
|
-
StreamingContext,
|
|
212
|
-
applyCollapsePolicyAndSummary,
|
|
213
|
-
buildResumedHistoryItems,
|
|
214
|
-
build_default,
|
|
215
|
-
expandCollapsedHistory,
|
|
216
|
-
isCollapsibleTool,
|
|
217
|
-
shouldDisplayGoalStateCause,
|
|
218
|
-
useStreamingContext,
|
|
219
|
-
waitForGoalRuntime
|
|
220
|
-
} from "./chunk-VGFPFM4U.js";
|
|
221
|
+
} from "./chunk-ONSZH6VM.js";
|
|
221
222
|
import {
|
|
222
223
|
theme
|
|
223
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-EKPKKXY2.js";
|
|
224
225
|
import {
|
|
225
226
|
require_jsx_runtime
|
|
226
227
|
} from "./chunk-SV5PQVQE.js";
|
|
@@ -241,35 +242,40 @@ import {
|
|
|
241
242
|
import {
|
|
242
243
|
require_react
|
|
243
244
|
} from "./chunk-5QWWOFGG.js";
|
|
244
|
-
import "./chunk-
|
|
245
|
-
import "./chunk-
|
|
245
|
+
import "./chunk-Y4EWSQF7.js";
|
|
246
|
+
import "./chunk-7UFKAV7Y.js";
|
|
247
|
+
import {
|
|
248
|
+
MAX_INLINE_IMAGES_PER_ITEM,
|
|
249
|
+
collectInlineImages,
|
|
250
|
+
getInlineImageData
|
|
251
|
+
} from "./chunk-2VSTGY6M.js";
|
|
246
252
|
import {
|
|
247
253
|
relaunchApp
|
|
248
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-HQB2KUAN.js";
|
|
249
255
|
import {
|
|
250
256
|
setUpdateHandler
|
|
251
|
-
} from "./chunk-
|
|
252
|
-
import "./chunk-
|
|
257
|
+
} from "./chunk-LEMXGVEP.js";
|
|
258
|
+
import "./chunk-GSS34377.js";
|
|
253
259
|
import "./chunk-YAF2MQZ6.js";
|
|
254
|
-
import "./chunk-R5RBXLNC.js";
|
|
255
260
|
import {
|
|
256
261
|
AUTO_THEME_NAME,
|
|
257
262
|
DEFAULT_THEME,
|
|
258
263
|
themeManager
|
|
259
|
-
} from "./chunk-
|
|
260
|
-
import "./chunk-
|
|
264
|
+
} from "./chunk-CTJLZLB5.js";
|
|
265
|
+
import "./chunk-CB2464BK.js";
|
|
261
266
|
import "./chunk-6H67XLET.js";
|
|
262
|
-
import "./chunk-
|
|
267
|
+
import "./chunk-FPM27XN4.js";
|
|
263
268
|
import {
|
|
264
269
|
getErrorMessage as getErrorMessage2
|
|
265
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-TDXGKHDN.js";
|
|
266
271
|
import {
|
|
267
272
|
openQwenAsrRealtimeStream,
|
|
268
273
|
openVoiceStream,
|
|
269
274
|
openVoiceStreamWithRetry
|
|
270
|
-
} from "./chunk-
|
|
271
|
-
import "./chunk-
|
|
272
|
-
import "./chunk-
|
|
275
|
+
} from "./chunk-Q3JQ7OSU.js";
|
|
276
|
+
import "./chunk-6XJMFJ4D.js";
|
|
277
|
+
import "./chunk-OWMAZHIX.js";
|
|
278
|
+
import "./chunk-KXSDEOFU.js";
|
|
273
279
|
import {
|
|
274
280
|
cpLen,
|
|
275
281
|
cpSlice,
|
|
@@ -282,7 +288,6 @@ import {
|
|
|
282
288
|
stripUnsafeCharacters,
|
|
283
289
|
toCodePoints
|
|
284
290
|
} from "./chunk-4NFY2S7N.js";
|
|
285
|
-
import "./chunk-RFUHDCNF.js";
|
|
286
291
|
import {
|
|
287
292
|
stringWidth
|
|
288
293
|
} from "./chunk-2MIN6GRR.js";
|
|
@@ -295,46 +300,46 @@ import "./chunk-RXFQM6FQ.js";
|
|
|
295
300
|
import "./chunk-HGCQ5SE7.js";
|
|
296
301
|
import {
|
|
297
302
|
isInlineModelOverrideAllowed
|
|
298
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-CSZEXZBE.js";
|
|
299
304
|
import {
|
|
300
305
|
assertVoiceBaseUrlNetworkAllowed,
|
|
301
306
|
isKeytermEcho,
|
|
302
307
|
isStreamingVoiceModel,
|
|
303
308
|
resolveVoiceStreamConfig,
|
|
304
309
|
transcribeVoiceAudio
|
|
305
|
-
} from "./chunk-
|
|
310
|
+
} from "./chunk-AE77C5ZU.js";
|
|
306
311
|
import {
|
|
307
312
|
formatUnsupportedVoiceModelMessage,
|
|
308
313
|
isSelectableVoiceModel
|
|
309
|
-
} from "./chunk-
|
|
310
|
-
import "./chunk-
|
|
314
|
+
} from "./chunk-55LYDVPU.js";
|
|
315
|
+
import "./chunk-AOHJKPKL.js";
|
|
311
316
|
import {
|
|
312
317
|
computeWorkspaceSkillListUpdates,
|
|
313
318
|
resolveSkillSettings,
|
|
314
319
|
skillSettingStrings
|
|
315
320
|
} from "./chunk-Z4X5MTRT.js";
|
|
316
|
-
import "./chunk-
|
|
321
|
+
import "./chunk-EUQTXRKZ.js";
|
|
317
322
|
import {
|
|
318
323
|
requestConsentInteractive,
|
|
319
324
|
requestConsentOrFail
|
|
320
|
-
} from "./chunk-
|
|
325
|
+
} from "./chunk-OHJLEW5J.js";
|
|
321
326
|
import "./chunk-57OAHC2Y.js";
|
|
322
327
|
import {
|
|
323
328
|
createLoadedSettingsAdapter
|
|
324
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-5KH532V7.js";
|
|
325
330
|
import {
|
|
326
331
|
getExtendedSystemInfo
|
|
327
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-SPMY6CX6.js";
|
|
328
333
|
import {
|
|
329
334
|
formatDuration,
|
|
330
335
|
formatRelativeTime,
|
|
331
336
|
formatTokenCount
|
|
332
337
|
} from "./chunk-3SH53ANB.js";
|
|
333
|
-
import "./chunk-
|
|
338
|
+
import "./chunk-MZSJ43WV.js";
|
|
334
339
|
import "./chunk-XCGIMOLN.js";
|
|
335
|
-
import "./chunk-
|
|
340
|
+
import "./chunk-ZXU5UHMI.js";
|
|
336
341
|
import "./chunk-VWOVHOTT.js";
|
|
337
|
-
import "./chunk-
|
|
342
|
+
import "./chunk-IUFV6FYU.js";
|
|
338
343
|
import "./chunk-V6WHFGST.js";
|
|
339
344
|
import "./chunk-DP3IHZGG.js";
|
|
340
345
|
import "./chunk-6PLDPT2C.js";
|
|
@@ -345,13 +350,13 @@ import "./chunk-ALMR3E6Q.js";
|
|
|
345
350
|
import "./chunk-HIBNSEJE.js";
|
|
346
351
|
import "./chunk-BKHCW2BI.js";
|
|
347
352
|
import "./chunk-M5GB774H.js";
|
|
348
|
-
import "./chunk-
|
|
353
|
+
import "./chunk-UVX4Y6IN.js";
|
|
349
354
|
import "./chunk-WUC6ZFXO.js";
|
|
350
355
|
import "./chunk-DIEFUBV6.js";
|
|
351
356
|
import "./chunk-UDXSXLER.js";
|
|
352
357
|
import {
|
|
353
358
|
loadMcpApprovals
|
|
354
|
-
} from "./chunk-
|
|
359
|
+
} from "./chunk-6HVUFDS2.js";
|
|
355
360
|
import {
|
|
356
361
|
CORRUPTED_SUFFIX,
|
|
357
362
|
SettingScope,
|
|
@@ -374,7 +379,7 @@ import {
|
|
|
374
379
|
settingExistsInScope,
|
|
375
380
|
validateSettingValue,
|
|
376
381
|
writeOutputLanguageAndRegisterPath
|
|
377
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-PQBHU2IA.js";
|
|
378
383
|
import "./chunk-RKUWKYED.js";
|
|
379
384
|
import "./chunk-GOXKNSDZ.js";
|
|
380
385
|
import "./chunk-IDS7MSUP.js";
|
|
@@ -383,18 +388,18 @@ import {
|
|
|
383
388
|
localizeToolDisplayName,
|
|
384
389
|
t,
|
|
385
390
|
ta
|
|
386
|
-
} from "./chunk-
|
|
387
|
-
import "./chunk-
|
|
391
|
+
} from "./chunk-DBOFL3LQ.js";
|
|
392
|
+
import "./chunk-VOARQPTA.js";
|
|
388
393
|
import "./chunk-6PEXNQTX.js";
|
|
389
|
-
import "./chunk-
|
|
394
|
+
import "./chunk-HYRDKNUY.js";
|
|
390
395
|
import {
|
|
391
396
|
getCliVersion
|
|
392
|
-
} from "./chunk-
|
|
397
|
+
} from "./chunk-FZBZSYKU.js";
|
|
393
398
|
import "./chunk-VJNBRRZG.js";
|
|
394
399
|
import {
|
|
395
400
|
isWorkspaceTrusted,
|
|
396
401
|
loadTrustedFolders
|
|
397
|
-
} from "./chunk-
|
|
402
|
+
} from "./chunk-6XU3PH66.js";
|
|
398
403
|
import {
|
|
399
404
|
require_strip_json_comments
|
|
400
405
|
} from "./chunk-ALGGS7UH.js";
|
|
@@ -503,65 +508,65 @@ import {
|
|
|
503
508
|
validateWorkflowName,
|
|
504
509
|
watchRepoBranch,
|
|
505
510
|
writeRuntimeStatus
|
|
506
|
-
} from "./chunk-
|
|
511
|
+
} from "./chunk-Y7E5LNLO.js";
|
|
507
512
|
import "./chunk-GOFAQQZA.js";
|
|
508
513
|
import "./chunk-5M6IDOMF.js";
|
|
509
514
|
import "./chunk-TWPJO254.js";
|
|
510
515
|
import "./chunk-H6XPXXMH.js";
|
|
511
|
-
import "./chunk-
|
|
512
|
-
import "./chunk-
|
|
513
|
-
import "./chunk-
|
|
514
|
-
import "./chunk-
|
|
516
|
+
import "./chunk-CNIID3TV.js";
|
|
517
|
+
import "./chunk-MVUQRLOH.js";
|
|
518
|
+
import "./chunk-XCWO3SMQ.js";
|
|
519
|
+
import "./chunk-7MH4J33A.js";
|
|
515
520
|
import "./chunk-6PVPNMXU.js";
|
|
516
521
|
import {
|
|
517
522
|
resolveModelId
|
|
518
|
-
} from "./chunk-
|
|
523
|
+
} from "./chunk-RMH5OWLD.js";
|
|
519
524
|
import "./chunk-IRH27ZC2.js";
|
|
520
525
|
import "./chunk-QHWCP53L.js";
|
|
521
|
-
import "./chunk-
|
|
522
|
-
import "./chunk-
|
|
526
|
+
import "./chunk-GNPNYXJB.js";
|
|
527
|
+
import "./chunk-Y4NGLFGJ.js";
|
|
523
528
|
import {
|
|
524
529
|
promptIdContext
|
|
525
530
|
} from "./chunk-O6GEWCJA.js";
|
|
526
531
|
import "./chunk-T26EAKDL.js";
|
|
527
532
|
import "./chunk-ZPJWUGCS.js";
|
|
528
533
|
import "./chunk-CPBF7KYF.js";
|
|
529
|
-
import "./chunk-
|
|
534
|
+
import "./chunk-J6SZID63.js";
|
|
530
535
|
import "./chunk-KRXPRVGL.js";
|
|
531
536
|
import {
|
|
532
537
|
HOOKS_CONFIG_FIELDS
|
|
533
|
-
} from "./chunk-
|
|
534
|
-
import "./chunk-
|
|
535
|
-
import "./chunk-
|
|
538
|
+
} from "./chunk-GM463R2B.js";
|
|
539
|
+
import "./chunk-SEZ556DZ.js";
|
|
540
|
+
import "./chunk-CJXIIILK.js";
|
|
536
541
|
import {
|
|
537
542
|
elapsedActiveTime,
|
|
538
543
|
goalRequiresExactPermit
|
|
539
|
-
} from "./chunk-
|
|
544
|
+
} from "./chunk-3K7FH2KQ.js";
|
|
540
545
|
import {
|
|
541
546
|
APPROVAL_MODES,
|
|
542
547
|
runOutsideAgentContext
|
|
543
|
-
} from "./chunk-
|
|
548
|
+
} from "./chunk-BVWVWGLE.js";
|
|
544
549
|
import "./chunk-S6LOFUVP.js";
|
|
545
550
|
import {
|
|
546
551
|
getStartupContextLength,
|
|
547
552
|
isSystemReminderContent
|
|
548
|
-
} from "./chunk-
|
|
553
|
+
} from "./chunk-LZC3B5N2.js";
|
|
549
554
|
import "./chunk-K623ENWT.js";
|
|
550
555
|
import "./chunk-AQ37AY7B.js";
|
|
551
556
|
import {
|
|
552
557
|
isPathWithinRoot
|
|
553
|
-
} from "./chunk-
|
|
554
|
-
import "./chunk-
|
|
558
|
+
} from "./chunk-EQL65XGA.js";
|
|
559
|
+
import "./chunk-IIJEYBNH.js";
|
|
555
560
|
import {
|
|
556
561
|
osc8Hyperlink,
|
|
557
562
|
qwenOAuth2Events,
|
|
558
563
|
sanitizeForOsc,
|
|
559
564
|
supportsHyperlinks,
|
|
560
565
|
wrapForMultiplexer
|
|
561
|
-
} from "./chunk-
|
|
566
|
+
} from "./chunk-22NBYCPD.js";
|
|
562
567
|
import "./chunk-NAVJD2PQ.js";
|
|
563
|
-
import "./chunk-
|
|
564
|
-
import "./chunk-
|
|
568
|
+
import "./chunk-3ULCB3NE.js";
|
|
569
|
+
import "./chunk-BGG4MBYD.js";
|
|
565
570
|
import {
|
|
566
571
|
REASONING_EFFORT_TIERS
|
|
567
572
|
} from "./chunk-DGEIYUC3.js";
|
|
@@ -569,15 +574,15 @@ import {
|
|
|
569
574
|
getUnsupportedImageFormatWarning,
|
|
570
575
|
isSupportedImageMimeType
|
|
571
576
|
} from "./chunk-MPHPFVKK.js";
|
|
572
|
-
import "./chunk-
|
|
577
|
+
import "./chunk-AXMWHKXA.js";
|
|
573
578
|
import "./chunk-DJ2GSRLV.js";
|
|
574
|
-
import "./chunk-
|
|
575
|
-
import "./chunk-
|
|
579
|
+
import "./chunk-33ACCIIY.js";
|
|
580
|
+
import "./chunk-L4N6TIP7.js";
|
|
576
581
|
import "./chunk-2J3OJGTL.js";
|
|
577
582
|
import "./chunk-P3QQPMQA.js";
|
|
578
|
-
import "./chunk-
|
|
583
|
+
import "./chunk-M6HMMKVG.js";
|
|
579
584
|
import "./chunk-GLCZKT5V.js";
|
|
580
|
-
import "./chunk-
|
|
585
|
+
import "./chunk-EI3HZX6C.js";
|
|
581
586
|
import {
|
|
582
587
|
ApiCancelEvent,
|
|
583
588
|
AuthEvent,
|
|
@@ -618,7 +623,7 @@ import {
|
|
|
618
623
|
runVisionBridge,
|
|
619
624
|
shouldRunVisionBridge,
|
|
620
625
|
splitImageParts
|
|
621
|
-
} from "./chunk-
|
|
626
|
+
} from "./chunk-2U3WZGZG.js";
|
|
622
627
|
import "./chunk-WOJZWRAZ.js";
|
|
623
628
|
import "./chunk-VGC4I5JJ.js";
|
|
624
629
|
import {
|
|
@@ -627,25 +632,25 @@ import {
|
|
|
627
632
|
getAutoMemoryRoot,
|
|
628
633
|
getUserAutoMemoryRoot,
|
|
629
634
|
isAnyAutoMemPath
|
|
630
|
-
} from "./chunk-
|
|
631
|
-
import "./chunk-
|
|
635
|
+
} from "./chunk-FVKHVJZQ.js";
|
|
636
|
+
import "./chunk-NG2R4N5O.js";
|
|
632
637
|
import {
|
|
633
638
|
ToolNames,
|
|
634
639
|
isShellProgressData
|
|
635
|
-
} from "./chunk-
|
|
640
|
+
} from "./chunk-IC4Z6LX6.js";
|
|
636
641
|
import {
|
|
637
642
|
MAINLINE_CODER_MODEL
|
|
638
|
-
} from "./chunk-
|
|
643
|
+
} from "./chunk-6EOI4HOK.js";
|
|
639
644
|
import "./chunk-46UV252V.js";
|
|
640
645
|
import {
|
|
641
646
|
DEFAULT_TOKEN_LIMIT
|
|
642
647
|
} from "./chunk-ZBVS26BY.js";
|
|
643
|
-
import "./chunk-
|
|
644
|
-
import "./chunk-
|
|
648
|
+
import "./chunk-KKBPOU75.js";
|
|
649
|
+
import "./chunk-EUNWC2VS.js";
|
|
645
650
|
import {
|
|
646
651
|
atomicWriteFileSync
|
|
647
|
-
} from "./chunk-
|
|
648
|
-
import "./chunk-
|
|
652
|
+
} from "./chunk-FOGU3LJX.js";
|
|
653
|
+
import "./chunk-6M26GBKX.js";
|
|
649
654
|
import "./chunk-W4RQUHY3.js";
|
|
650
655
|
import "./chunk-LKRMNRSN.js";
|
|
651
656
|
import {
|
|
@@ -659,9 +664,9 @@ import {
|
|
|
659
664
|
isNodeError,
|
|
660
665
|
shortenPath,
|
|
661
666
|
tildeifyPath
|
|
662
|
-
} from "./chunk-
|
|
667
|
+
} from "./chunk-OIVKILPI.js";
|
|
663
668
|
import "./chunk-VOQXFAY5.js";
|
|
664
|
-
import "./chunk-
|
|
669
|
+
import "./chunk-PJOBIWUG.js";
|
|
665
670
|
import {
|
|
666
671
|
finalizeStartupProfile,
|
|
667
672
|
profileCheckpoint
|
|
@@ -670,7 +675,7 @@ import "./chunk-Q7YDKOGY.js";
|
|
|
670
675
|
import {
|
|
671
676
|
registerCleanup,
|
|
672
677
|
runExitCleanup
|
|
673
|
-
} from "./chunk-
|
|
678
|
+
} from "./chunk-EORNAQDT.js";
|
|
674
679
|
import {
|
|
675
680
|
clearScreen,
|
|
676
681
|
writeStderrLine,
|
|
@@ -33892,7 +33897,14 @@ function deriveFirstPrompt(messages) {
|
|
|
33892
33897
|
}
|
|
33893
33898
|
__name(deriveFirstPrompt, "deriveFirstPrompt");
|
|
33894
33899
|
function useBranchCommand(options) {
|
|
33895
|
-
const {
|
|
33900
|
+
const {
|
|
33901
|
+
config,
|
|
33902
|
+
historyManager,
|
|
33903
|
+
startNewSession,
|
|
33904
|
+
clearPendingState,
|
|
33905
|
+
setSessionName,
|
|
33906
|
+
remount
|
|
33907
|
+
} = options;
|
|
33896
33908
|
const handleBranch = (0, import_react125.useCallback)(
|
|
33897
33909
|
async (name) => {
|
|
33898
33910
|
if (!config) return;
|
|
@@ -33957,6 +33969,7 @@ function useBranchCommand(options) {
|
|
|
33957
33969
|
collapsePreviewCount
|
|
33958
33970
|
);
|
|
33959
33971
|
startNewSession(newSessionId);
|
|
33972
|
+
clearPendingState?.();
|
|
33960
33973
|
historyManager.clearItems();
|
|
33961
33974
|
historyManager.loadHistory(uiHistoryItems);
|
|
33962
33975
|
uiSwapped = true;
|
|
@@ -34016,6 +34029,7 @@ function useBranchCommand(options) {
|
|
|
34016
34029
|
config,
|
|
34017
34030
|
historyManager,
|
|
34018
34031
|
startNewSession,
|
|
34032
|
+
clearPendingState,
|
|
34019
34033
|
setSessionName,
|
|
34020
34034
|
remount,
|
|
34021
34035
|
options.settings.merged.ui?.history?.collapseOnResume,
|
|
@@ -34049,6 +34063,7 @@ function useResumeCommand(options) {
|
|
|
34049
34063
|
settings,
|
|
34050
34064
|
historyManager,
|
|
34051
34065
|
startNewSession,
|
|
34066
|
+
clearPendingState,
|
|
34052
34067
|
setSessionName,
|
|
34053
34068
|
remount
|
|
34054
34069
|
} = options;
|
|
@@ -34113,6 +34128,7 @@ function useResumeCommand(options) {
|
|
|
34113
34128
|
}
|
|
34114
34129
|
startNewSession(sessionId);
|
|
34115
34130
|
setSessionName?.(customTitle ?? null);
|
|
34131
|
+
clearPendingState?.();
|
|
34116
34132
|
clearItems();
|
|
34117
34133
|
loadHistory(uiHistoryItems);
|
|
34118
34134
|
if (recoveredBackgroundAgentsNotice) {
|
|
@@ -34157,6 +34173,7 @@ function useResumeCommand(options) {
|
|
|
34157
34173
|
clearItems,
|
|
34158
34174
|
loadHistory,
|
|
34159
34175
|
startNewSession,
|
|
34176
|
+
clearPendingState,
|
|
34160
34177
|
setSessionName,
|
|
34161
34178
|
remount,
|
|
34162
34179
|
settings.merged.ui?.history?.collapseOnResume,
|
|
@@ -34661,11 +34678,13 @@ var useSlashCommandProcessor = /* @__PURE__ */ __name((config, settings, history
|
|
|
34661
34678
|
addItem,
|
|
34662
34679
|
clear: /* @__PURE__ */ __name(() => {
|
|
34663
34680
|
cancelBtw();
|
|
34681
|
+
actions.clearPendingState();
|
|
34664
34682
|
clearItems();
|
|
34665
34683
|
clearScreen();
|
|
34666
34684
|
refreshStatic();
|
|
34667
34685
|
setSessionName?.(null);
|
|
34668
34686
|
}, "clear"),
|
|
34687
|
+
clearPendingState: actions.clearPendingState,
|
|
34669
34688
|
loadHistory,
|
|
34670
34689
|
refreshStatic,
|
|
34671
34690
|
setDebugMessage: actions.setDebugMessage,
|
|
@@ -36158,8 +36177,9 @@ function mapToDisplay(toolOrTools, projectRoot) {
|
|
|
36158
36177
|
projectRoot
|
|
36159
36178
|
) : void 0
|
|
36160
36179
|
};
|
|
36180
|
+
const inlineImageCollection = trackedCall.status === "success" || trackedCall.status === "error" || trackedCall.status === "cancelled" ? collectInlineImages(trackedCall.response.responseParts) : null;
|
|
36161
36181
|
switch (trackedCall.status) {
|
|
36162
|
-
case "success":
|
|
36182
|
+
case "success": {
|
|
36163
36183
|
return {
|
|
36164
36184
|
...baseDisplayProperties,
|
|
36165
36185
|
status: mapCoreStatusToDisplayStatus(trackedCall.status),
|
|
@@ -36179,9 +36199,15 @@ function mapToDisplay(toolOrTools, projectRoot) {
|
|
|
36179
36199
|
// that the renderer would never use. Mirrors ToolMessage's
|
|
36180
36200
|
// `usingDetailedDisplay` gate, which also keys off the display name.
|
|
36181
36201
|
detailedDisplay: isCollapsibleTool(displayName) ? getToolResponseDisplayText(trackedCall.response.responseParts) : void 0,
|
|
36202
|
+
...inlineImageCollection?.images.length ? { images: inlineImageCollection.images } : {},
|
|
36203
|
+
...inlineImageCollection?.omittedImageCount ? {
|
|
36204
|
+
omittedImageCount: inlineImageCollection.omittedImageCount
|
|
36205
|
+
} : {},
|
|
36182
36206
|
confirmationDetails: void 0
|
|
36183
36207
|
};
|
|
36208
|
+
}
|
|
36184
36209
|
case "error":
|
|
36210
|
+
case "cancelled": {
|
|
36185
36211
|
return {
|
|
36186
36212
|
...baseDisplayProperties,
|
|
36187
36213
|
status: mapCoreStatusToDisplayStatus(trackedCall.status),
|
|
@@ -36191,20 +36217,13 @@ function mapToDisplay(toolOrTools, projectRoot) {
|
|
|
36191
36217
|
...trackedCall.response.visionBridgeNotice !== void 0 ? {
|
|
36192
36218
|
visionBridgeNotice: trackedCall.response.visionBridgeNotice
|
|
36193
36219
|
} : {},
|
|
36194
|
-
|
|
36195
|
-
|
|
36196
|
-
|
|
36197
|
-
return {
|
|
36198
|
-
...baseDisplayProperties,
|
|
36199
|
-
status: mapCoreStatusToDisplayStatus(trackedCall.status),
|
|
36200
|
-
resultDisplay: compactToolResultDisplayForHistory(
|
|
36201
|
-
trackedCall.response.resultDisplay
|
|
36202
|
-
),
|
|
36203
|
-
...trackedCall.response.visionBridgeNotice !== void 0 ? {
|
|
36204
|
-
visionBridgeNotice: trackedCall.response.visionBridgeNotice
|
|
36220
|
+
...inlineImageCollection?.images.length ? { images: inlineImageCollection.images } : {},
|
|
36221
|
+
...inlineImageCollection?.omittedImageCount ? {
|
|
36222
|
+
omittedImageCount: inlineImageCollection.omittedImageCount
|
|
36205
36223
|
} : {},
|
|
36206
36224
|
confirmationDetails: void 0
|
|
36207
36225
|
};
|
|
36226
|
+
}
|
|
36208
36227
|
case "awaiting_approval":
|
|
36209
36228
|
return {
|
|
36210
36229
|
...baseDisplayProperties,
|
|
@@ -36749,6 +36768,40 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
36749
36768
|
}, [history]);
|
|
36750
36769
|
const auxiliaryAbortRefsRef = (0, import_react135.useRef)(/* @__PURE__ */ new Set());
|
|
36751
36770
|
const [pendingHistoryItem, pendingHistoryItemRef, setPendingHistoryItem] = useStateAndRef(null);
|
|
36771
|
+
const [
|
|
36772
|
+
pendingAssistantItems,
|
|
36773
|
+
pendingAssistantItemsRef,
|
|
36774
|
+
setPendingAssistantItems
|
|
36775
|
+
] = useStateAndRef([]);
|
|
36776
|
+
const commitPendingAssistantItems = (0, import_react135.useCallback)(
|
|
36777
|
+
(userMessageTimestamp) => {
|
|
36778
|
+
const items = pendingAssistantItemsRef.current;
|
|
36779
|
+
if (items.length === 0) {
|
|
36780
|
+
return;
|
|
36781
|
+
}
|
|
36782
|
+
for (const item of items) {
|
|
36783
|
+
commitItem(item, userMessageTimestamp);
|
|
36784
|
+
}
|
|
36785
|
+
setPendingAssistantItems([]);
|
|
36786
|
+
},
|
|
36787
|
+
[commitItem, pendingAssistantItemsRef, setPendingAssistantItems]
|
|
36788
|
+
);
|
|
36789
|
+
const commitItemInOrder = (0, import_react135.useCallback)(
|
|
36790
|
+
(item, userMessageTimestamp) => {
|
|
36791
|
+
commitPendingAssistantItems(userMessageTimestamp);
|
|
36792
|
+
return commitItem(item, userMessageTimestamp);
|
|
36793
|
+
},
|
|
36794
|
+
[commitItem, commitPendingAssistantItems]
|
|
36795
|
+
);
|
|
36796
|
+
const stagePendingAssistantItem = (0, import_react135.useCallback)(() => {
|
|
36797
|
+
const item = pendingHistoryItemRef.current;
|
|
36798
|
+
if (item?.type !== "gemini" && item?.type !== "gemini_content") {
|
|
36799
|
+
return false;
|
|
36800
|
+
}
|
|
36801
|
+
setPendingAssistantItems((items) => [...items, item]);
|
|
36802
|
+
setPendingHistoryItem(null);
|
|
36803
|
+
return true;
|
|
36804
|
+
}, [pendingHistoryItemRef, setPendingAssistantItems, setPendingHistoryItem]);
|
|
36752
36805
|
const [pendingThoughtItem, pendingThoughtItemRef, setPendingThoughtItem] = useStateAndRef(null);
|
|
36753
36806
|
const thoughtStartTimeRef = (0, import_react135.useRef)(null);
|
|
36754
36807
|
const [
|
|
@@ -36761,6 +36814,15 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
36761
36814
|
pendingRetryCountdownItemRef,
|
|
36762
36815
|
setPendingRetryCountdownItem
|
|
36763
36816
|
] = useStateAndRef(null);
|
|
36817
|
+
const clearPendingState = (0, import_react135.useCallback)(() => {
|
|
36818
|
+
setPendingAssistantItems([]);
|
|
36819
|
+
setPendingHistoryItem(null);
|
|
36820
|
+
setPendingRetryErrorItem(null);
|
|
36821
|
+
}, [
|
|
36822
|
+
setPendingAssistantItems,
|
|
36823
|
+
setPendingHistoryItem,
|
|
36824
|
+
setPendingRetryErrorItem
|
|
36825
|
+
]);
|
|
36764
36826
|
const retryCountdownTimerRef = (0, import_react135.useRef)(
|
|
36765
36827
|
null
|
|
36766
36828
|
);
|
|
@@ -36964,7 +37026,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
36964
37026
|
);
|
|
36965
37027
|
logApiCancel(config, cancellationEvent);
|
|
36966
37028
|
if (pendingHistoryItemRef.current) {
|
|
36967
|
-
|
|
37029
|
+
commitItemInOrder(pendingHistoryItemRef.current, Date.now());
|
|
36968
37030
|
}
|
|
36969
37031
|
addItem(
|
|
36970
37032
|
{
|
|
@@ -36999,7 +37061,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
36999
37061
|
}, [
|
|
37000
37062
|
streamingState,
|
|
37001
37063
|
addItem,
|
|
37002
|
-
|
|
37064
|
+
commitItemInOrder,
|
|
37003
37065
|
setPendingHistoryItem,
|
|
37004
37066
|
onCancelSubmit,
|
|
37005
37067
|
pendingHistoryItemRef,
|
|
@@ -37232,7 +37294,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37232
37294
|
]
|
|
37233
37295
|
);
|
|
37234
37296
|
const handleContentEvent = (0, import_react135.useCallback)(
|
|
37235
|
-
(eventValue, currentGeminiMessageBuffer, userMessageTimestamp) => {
|
|
37297
|
+
(eventValue, currentGeminiMessageBuffer, userMessageTimestamp, startAsContinuation = false) => {
|
|
37236
37298
|
if (turnCancelledRef.current) {
|
|
37237
37299
|
return "";
|
|
37238
37300
|
}
|
|
@@ -37240,21 +37302,29 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37240
37302
|
setIsReceivingContent(true);
|
|
37241
37303
|
turnSawContentEventRef.current = true;
|
|
37242
37304
|
let newGeminiMessageBuffer = currentGeminiMessageBuffer + eventValue;
|
|
37305
|
+
const pendingItem = pendingHistoryItemRef.current;
|
|
37306
|
+
if ((pendingItem?.type === "gemini" || pendingItem?.type === "gemini_content") && (pendingItem.images?.length || pendingItem.omittedImageCount)) {
|
|
37307
|
+
if (newGeminiMessageBuffer.trim().length === 0) {
|
|
37308
|
+
return newGeminiMessageBuffer;
|
|
37309
|
+
}
|
|
37310
|
+
stagePendingAssistantItem();
|
|
37311
|
+
}
|
|
37243
37312
|
if (pendingHistoryItemRef.current?.type !== "gemini" && pendingHistoryItemRef.current?.type !== "gemini_content") {
|
|
37244
37313
|
if (newGeminiMessageBuffer.trim().length === 0) {
|
|
37245
37314
|
return newGeminiMessageBuffer;
|
|
37246
37315
|
}
|
|
37247
37316
|
if (pendingHistoryItemRef.current) {
|
|
37248
|
-
|
|
37317
|
+
commitItemInOrder(
|
|
37318
|
+
pendingHistoryItemRef.current,
|
|
37319
|
+
userMessageTimestamp
|
|
37320
|
+
);
|
|
37249
37321
|
}
|
|
37250
|
-
setPendingHistoryItem(
|
|
37251
|
-
type: "gemini",
|
|
37252
|
-
|
|
37253
|
-
timestamp: Date.now()
|
|
37254
|
-
});
|
|
37322
|
+
setPendingHistoryItem(
|
|
37323
|
+
startAsContinuation ? { type: "gemini_content", text: "" } : { type: "gemini", text: "", timestamp: Date.now() }
|
|
37324
|
+
);
|
|
37255
37325
|
newGeminiMessageBuffer = stripLeadingBlankLines(newGeminiMessageBuffer);
|
|
37256
37326
|
}
|
|
37257
|
-
let nextPendingType = pendingHistoryItemRef.current?.type;
|
|
37327
|
+
let nextPendingType = pendingHistoryItemRef.current?.type === "gemini_content" ? "gemini_content" : pendingHistoryItemRef.current?.type === "gemini" ? "gemini" : startAsContinuation ? "gemini_content" : "gemini";
|
|
37258
37328
|
while (newGeminiMessageBuffer.length > STREAM_PENDING_ITEM_MAX_CHARS) {
|
|
37259
37329
|
const splitPoint = findLastSafeSplitPoint(
|
|
37260
37330
|
newGeminiMessageBuffer,
|
|
@@ -37265,7 +37335,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37265
37335
|
newGeminiMessageBuffer,
|
|
37266
37336
|
safeSplitPoint
|
|
37267
37337
|
);
|
|
37268
|
-
|
|
37338
|
+
commitItemInOrder(
|
|
37269
37339
|
{
|
|
37270
37340
|
type: nextPendingType,
|
|
37271
37341
|
text: beforeText
|
|
@@ -37324,7 +37394,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37324
37394
|
newGeminiMessageBuffer,
|
|
37325
37395
|
splitPoint
|
|
37326
37396
|
);
|
|
37327
|
-
|
|
37397
|
+
commitItemInOrder(
|
|
37328
37398
|
{
|
|
37329
37399
|
type: nextPendingType,
|
|
37330
37400
|
text: beforeText
|
|
@@ -37347,9 +37417,10 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37347
37417
|
return newGeminiMessageBuffer;
|
|
37348
37418
|
},
|
|
37349
37419
|
[
|
|
37350
|
-
|
|
37420
|
+
commitItemInOrder,
|
|
37351
37421
|
pendingHistoryItemRef,
|
|
37352
37422
|
setPendingHistoryItem,
|
|
37423
|
+
stagePendingAssistantItem,
|
|
37353
37424
|
terminalWidth,
|
|
37354
37425
|
terminalHeight,
|
|
37355
37426
|
availableTerminalHeightRef,
|
|
@@ -37479,7 +37550,10 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37479
37550
|
};
|
|
37480
37551
|
addItem(pendingItem, userMessageTimestamp);
|
|
37481
37552
|
} else {
|
|
37482
|
-
|
|
37553
|
+
commitItemInOrder(
|
|
37554
|
+
pendingHistoryItemRef.current,
|
|
37555
|
+
userMessageTimestamp
|
|
37556
|
+
);
|
|
37483
37557
|
}
|
|
37484
37558
|
setPendingHistoryItem(null);
|
|
37485
37559
|
}
|
|
@@ -37494,7 +37568,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37494
37568
|
[
|
|
37495
37569
|
addItem,
|
|
37496
37570
|
commitPendingThought,
|
|
37497
|
-
|
|
37571
|
+
commitItemInOrder,
|
|
37498
37572
|
pendingHistoryItemRef,
|
|
37499
37573
|
setPendingHistoryItem,
|
|
37500
37574
|
setThought,
|
|
@@ -37510,7 +37584,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37510
37584
|
}
|
|
37511
37585
|
commitPendingThought(userMessageTimestamp);
|
|
37512
37586
|
if (pendingHistoryItemRef.current) {
|
|
37513
|
-
|
|
37587
|
+
commitItemInOrder(pendingHistoryItemRef.current, userMessageTimestamp);
|
|
37514
37588
|
setPendingHistoryItem(null);
|
|
37515
37589
|
}
|
|
37516
37590
|
const isShowingAutoRetry = retryCountdownTimerRef.current !== null;
|
|
@@ -37539,7 +37613,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37539
37613
|
},
|
|
37540
37614
|
[
|
|
37541
37615
|
commitPendingThought,
|
|
37542
|
-
|
|
37616
|
+
commitItemInOrder,
|
|
37543
37617
|
pendingHistoryItemRef,
|
|
37544
37618
|
setPendingHistoryItem,
|
|
37545
37619
|
setPendingRetryErrorItem,
|
|
@@ -37554,14 +37628,14 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37554
37628
|
return;
|
|
37555
37629
|
}
|
|
37556
37630
|
if (pendingHistoryItemRef.current) {
|
|
37557
|
-
|
|
37631
|
+
commitItemInOrder(pendingHistoryItemRef.current, userMessageTimestamp);
|
|
37558
37632
|
setPendingHistoryItem(null);
|
|
37559
37633
|
}
|
|
37560
37634
|
addItem({ type: "info" /* INFO */, text }, userMessageTimestamp);
|
|
37561
37635
|
},
|
|
37562
37636
|
[
|
|
37563
37637
|
addItem,
|
|
37564
|
-
|
|
37638
|
+
commitItemInOrder,
|
|
37565
37639
|
pendingHistoryItemRef,
|
|
37566
37640
|
setPendingHistoryItem,
|
|
37567
37641
|
settings
|
|
@@ -37613,7 +37687,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37613
37687
|
(eventValue, userMessageTimestamp) => {
|
|
37614
37688
|
autonomousLoopTickResolverRef.current?.resetCache();
|
|
37615
37689
|
if (pendingHistoryItemRef.current) {
|
|
37616
|
-
|
|
37690
|
+
commitItemInOrder(pendingHistoryItemRef.current, userMessageTimestamp);
|
|
37617
37691
|
setPendingHistoryItem(null);
|
|
37618
37692
|
}
|
|
37619
37693
|
const activeModel = modelOverrideRef.current ?? config.getModel();
|
|
@@ -37628,7 +37702,13 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37628
37702
|
Date.now()
|
|
37629
37703
|
);
|
|
37630
37704
|
},
|
|
37631
|
-
[
|
|
37705
|
+
[
|
|
37706
|
+
addItem,
|
|
37707
|
+
commitItemInOrder,
|
|
37708
|
+
config,
|
|
37709
|
+
pendingHistoryItemRef,
|
|
37710
|
+
setPendingHistoryItem
|
|
37711
|
+
]
|
|
37632
37712
|
);
|
|
37633
37713
|
const handleMaxSessionTurnsEvent = (0, import_react135.useCallback)(
|
|
37634
37714
|
() => addItem(
|
|
@@ -37687,7 +37767,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37687
37767
|
const handleUserPromptSubmitBlockedEvent = (0, import_react135.useCallback)(
|
|
37688
37768
|
(value, userMessageTimestamp) => {
|
|
37689
37769
|
if (pendingHistoryItemRef.current) {
|
|
37690
|
-
|
|
37770
|
+
commitItemInOrder(pendingHistoryItemRef.current, userMessageTimestamp);
|
|
37691
37771
|
setPendingHistoryItem(null);
|
|
37692
37772
|
}
|
|
37693
37773
|
addItem(
|
|
@@ -37699,12 +37779,12 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37699
37779
|
userMessageTimestamp
|
|
37700
37780
|
);
|
|
37701
37781
|
},
|
|
37702
|
-
[addItem,
|
|
37782
|
+
[addItem, commitItemInOrder, pendingHistoryItemRef, setPendingHistoryItem]
|
|
37703
37783
|
);
|
|
37704
37784
|
const handleStopHookLoopEvent = (0, import_react135.useCallback)(
|
|
37705
37785
|
(value, userMessageTimestamp) => {
|
|
37706
37786
|
if (pendingHistoryItemRef.current) {
|
|
37707
|
-
|
|
37787
|
+
commitItemInOrder(pendingHistoryItemRef.current, userMessageTimestamp);
|
|
37708
37788
|
setPendingHistoryItem(null);
|
|
37709
37789
|
}
|
|
37710
37790
|
addItem(
|
|
@@ -37717,13 +37797,21 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37717
37797
|
userMessageTimestamp
|
|
37718
37798
|
);
|
|
37719
37799
|
},
|
|
37720
|
-
[addItem,
|
|
37800
|
+
[addItem, commitItemInOrder, pendingHistoryItemRef, setPendingHistoryItem]
|
|
37721
37801
|
);
|
|
37722
37802
|
const processGeminiStreamEvents = (0, import_react135.useCallback)(
|
|
37723
37803
|
async (stream, userMessageTimestamp, signal, submitType, turnAdmission) => {
|
|
37724
37804
|
let geminiMessageBuffer = "";
|
|
37725
37805
|
let thoughtBuffer = "";
|
|
37726
37806
|
let scheduledToolContinuation = false;
|
|
37807
|
+
let assistantOutputStarted = pendingHistoryItemRef.current?.type === "gemini" || pendingHistoryItemRef.current?.type === "gemini_content";
|
|
37808
|
+
let assistantInlineImageCount = [
|
|
37809
|
+
...pendingAssistantItemsRef.current,
|
|
37810
|
+
pendingHistoryItemRef.current
|
|
37811
|
+
].reduce(
|
|
37812
|
+
(count, item) => item?.type === "gemini" || item?.type === "gemini_content" ? count + (item.images?.length ?? 0) : count,
|
|
37813
|
+
0
|
|
37814
|
+
);
|
|
37727
37815
|
const toolCallRequests = [];
|
|
37728
37816
|
const bufferedEvents = [];
|
|
37729
37817
|
let flushTimer = null;
|
|
@@ -37756,8 +37844,59 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37756
37844
|
geminiMessageBuffer = handleContentEvent(
|
|
37757
37845
|
contentParts.join(""),
|
|
37758
37846
|
geminiMessageBuffer,
|
|
37759
|
-
userMessageTimestamp
|
|
37847
|
+
userMessageTimestamp,
|
|
37848
|
+
assistantOutputStarted
|
|
37760
37849
|
);
|
|
37850
|
+
if (contentParts.some((part) => part.trim().length > 0)) {
|
|
37851
|
+
assistantOutputStarted = true;
|
|
37852
|
+
}
|
|
37853
|
+
continue;
|
|
37854
|
+
}
|
|
37855
|
+
if (nextEvent.kind === "image") {
|
|
37856
|
+
if (turnCancelledRef.current) {
|
|
37857
|
+
continue;
|
|
37858
|
+
}
|
|
37859
|
+
setIsReceivingContent(true);
|
|
37860
|
+
turnSawContentEventRef.current = true;
|
|
37861
|
+
const pendingItem = pendingHistoryItemRef.current;
|
|
37862
|
+
const isOverflowOnlyItem = (pendingItem?.type === "gemini" || pendingItem?.type === "gemini_content") && pendingItem.text.length === 0 && !pendingItem.images?.length && Boolean(pendingItem.omittedImageCount);
|
|
37863
|
+
const shouldDisplayImage = assistantInlineImageCount < MAX_INLINE_IMAGES_PER_ITEM;
|
|
37864
|
+
if (!shouldDisplayImage && isOverflowOnlyItem) {
|
|
37865
|
+
setPendingHistoryItem({
|
|
37866
|
+
...pendingItem,
|
|
37867
|
+
omittedImageCount: (pendingItem.omittedImageCount ?? 0) + 1
|
|
37868
|
+
});
|
|
37869
|
+
geminiMessageBuffer = "";
|
|
37870
|
+
assistantOutputStarted = true;
|
|
37871
|
+
continue;
|
|
37872
|
+
}
|
|
37873
|
+
if (pendingHistoryItemRef.current) {
|
|
37874
|
+
if (!stagePendingAssistantItem()) {
|
|
37875
|
+
commitItemInOrder(
|
|
37876
|
+
pendingHistoryItemRef.current,
|
|
37877
|
+
userMessageTimestamp
|
|
37878
|
+
);
|
|
37879
|
+
setPendingHistoryItem(null);
|
|
37880
|
+
}
|
|
37881
|
+
}
|
|
37882
|
+
geminiMessageBuffer = "";
|
|
37883
|
+
if (shouldDisplayImage) {
|
|
37884
|
+
setPendingHistoryItem({
|
|
37885
|
+
type: assistantOutputStarted ? "gemini_content" : "gemini",
|
|
37886
|
+
text: "",
|
|
37887
|
+
images: [nextEvent.value],
|
|
37888
|
+
...!assistantOutputStarted ? { timestamp: Date.now() } : {}
|
|
37889
|
+
});
|
|
37890
|
+
assistantInlineImageCount++;
|
|
37891
|
+
} else {
|
|
37892
|
+
setPendingHistoryItem({
|
|
37893
|
+
type: assistantOutputStarted ? "gemini_content" : "gemini",
|
|
37894
|
+
text: "",
|
|
37895
|
+
omittedImageCount: 1,
|
|
37896
|
+
...!assistantOutputStarted ? { timestamp: Date.now() } : {}
|
|
37897
|
+
});
|
|
37898
|
+
}
|
|
37899
|
+
assistantOutputStarted = true;
|
|
37761
37900
|
continue;
|
|
37762
37901
|
}
|
|
37763
37902
|
let subject = nextEvent.value.subject;
|
|
@@ -37808,16 +37947,31 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37808
37947
|
scheduleBufferedStreamFlush();
|
|
37809
37948
|
}
|
|
37810
37949
|
break;
|
|
37811
|
-
case "content" /* Content */:
|
|
37950
|
+
case "content" /* Content */: {
|
|
37812
37951
|
if (pendingThoughtItemRef.current || bufferedEvents.some((e) => e.kind === "thought")) {
|
|
37813
37952
|
flushBufferedStreamEvents();
|
|
37814
37953
|
commitPendingThought(userMessageTimestamp);
|
|
37815
37954
|
thoughtBuffer = "";
|
|
37816
37955
|
}
|
|
37817
37956
|
setThought((prev) => prev ? null : prev);
|
|
37818
|
-
|
|
37957
|
+
const displayParts = event.parts ?? [{ text: event.value }];
|
|
37958
|
+
for (const part of displayParts) {
|
|
37959
|
+
if ("text" in part) {
|
|
37960
|
+
if (part.text.length > 0) {
|
|
37961
|
+
bufferedEvents.push({ kind: "content", value: part.text });
|
|
37962
|
+
}
|
|
37963
|
+
} else {
|
|
37964
|
+
const image = getInlineImageData({
|
|
37965
|
+
inlineData: part.inlineData
|
|
37966
|
+
});
|
|
37967
|
+
if (image) {
|
|
37968
|
+
bufferedEvents.push({ kind: "image", value: image });
|
|
37969
|
+
}
|
|
37970
|
+
}
|
|
37971
|
+
}
|
|
37819
37972
|
scheduleBufferedStreamFlush();
|
|
37820
37973
|
break;
|
|
37974
|
+
}
|
|
37821
37975
|
case "tool_call_request" /* ToolCallRequest */:
|
|
37822
37976
|
flushBufferedStreamEvents();
|
|
37823
37977
|
commitPendingThought(userMessageTimestamp);
|
|
@@ -37853,6 +38007,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37853
38007
|
case "chat_compressed" /* ChatCompressed */:
|
|
37854
38008
|
flushBufferedStreamEvents();
|
|
37855
38009
|
handleChatCompressionEvent(event.value, userMessageTimestamp);
|
|
38010
|
+
geminiMessageBuffer = "";
|
|
38011
|
+
assistantOutputStarted = false;
|
|
37856
38012
|
break;
|
|
37857
38013
|
case "tool_call_confirmation" /* ToolCallConfirmation */:
|
|
37858
38014
|
case "tool_call_response" /* ToolCallResponse */:
|
|
@@ -37860,30 +38016,57 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37860
38016
|
break;
|
|
37861
38017
|
case "max_session_turns" /* MaxSessionTurns */:
|
|
37862
38018
|
flushBufferedStreamEvents();
|
|
38019
|
+
if (pendingHistoryItemRef.current) {
|
|
38020
|
+
commitItemInOrder(
|
|
38021
|
+
pendingHistoryItemRef.current,
|
|
38022
|
+
userMessageTimestamp
|
|
38023
|
+
);
|
|
38024
|
+
setPendingHistoryItem(null);
|
|
38025
|
+
}
|
|
37863
38026
|
handleMaxSessionTurnsEvent();
|
|
38027
|
+
geminiMessageBuffer = "";
|
|
38028
|
+
assistantOutputStarted = false;
|
|
37864
38029
|
break;
|
|
37865
38030
|
case "session_token_limit_exceeded" /* SessionTokenLimitExceeded */:
|
|
37866
38031
|
flushBufferedStreamEvents();
|
|
38032
|
+
if (pendingHistoryItemRef.current) {
|
|
38033
|
+
commitItemInOrder(
|
|
38034
|
+
pendingHistoryItemRef.current,
|
|
38035
|
+
userMessageTimestamp
|
|
38036
|
+
);
|
|
38037
|
+
setPendingHistoryItem(null);
|
|
38038
|
+
}
|
|
37867
38039
|
handleSessionTokenLimitExceededEvent(event.value);
|
|
38040
|
+
geminiMessageBuffer = "";
|
|
38041
|
+
assistantOutputStarted = false;
|
|
37868
38042
|
break;
|
|
37869
38043
|
case "finished" /* Finished */:
|
|
37870
38044
|
flushBufferedStreamEvents();
|
|
37871
38045
|
commitPendingThought(userMessageTimestamp);
|
|
37872
|
-
handleFinishedEvent(
|
|
37873
|
-
event,
|
|
37874
|
-
userMessageTimestamp
|
|
37875
|
-
);
|
|
37876
38046
|
if (pendingHistoryItemRef.current) {
|
|
37877
|
-
|
|
38047
|
+
commitItemInOrder(
|
|
38048
|
+
pendingHistoryItemRef.current,
|
|
38049
|
+
userMessageTimestamp
|
|
38050
|
+
);
|
|
37878
38051
|
setPendingHistoryItem(null);
|
|
37879
38052
|
}
|
|
37880
38053
|
geminiMessageBuffer = "";
|
|
37881
38054
|
thoughtBuffer = "";
|
|
38055
|
+
assistantOutputStarted = false;
|
|
38056
|
+
assistantInlineImageCount = 0;
|
|
37882
38057
|
setThought(null);
|
|
38058
|
+
handleFinishedEvent(
|
|
38059
|
+
event,
|
|
38060
|
+
userMessageTimestamp
|
|
38061
|
+
);
|
|
37883
38062
|
break;
|
|
37884
38063
|
case "citation" /* Citation */:
|
|
37885
38064
|
flushBufferedStreamEvents();
|
|
37886
38065
|
handleCitationEvent(event.value, userMessageTimestamp);
|
|
38066
|
+
if (showCitations(settings)) {
|
|
38067
|
+
geminiMessageBuffer = "";
|
|
38068
|
+
assistantOutputStarted = false;
|
|
38069
|
+
}
|
|
37887
38070
|
break;
|
|
37888
38071
|
case "loop_detected" /* LoopDetected */:
|
|
37889
38072
|
flushBufferedStreamEvents();
|
|
@@ -37892,6 +38075,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37892
38075
|
case "retry" /* Retry */:
|
|
37893
38076
|
if (!event.isContinuation) {
|
|
37894
38077
|
discardBufferedStreamEvents();
|
|
38078
|
+
setPendingAssistantItems([]);
|
|
37895
38079
|
if (pendingHistoryItemRef.current) {
|
|
37896
38080
|
setPendingHistoryItem(null);
|
|
37897
38081
|
}
|
|
@@ -37899,6 +38083,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37899
38083
|
thoughtBuffer = "";
|
|
37900
38084
|
setThought(null);
|
|
37901
38085
|
geminiMessageBuffer = "";
|
|
38086
|
+
assistantOutputStarted = false;
|
|
38087
|
+
assistantInlineImageCount = 0;
|
|
37902
38088
|
} else {
|
|
37903
38089
|
flushBufferedStreamEvents();
|
|
37904
38090
|
}
|
|
@@ -37911,6 +38097,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37911
38097
|
break;
|
|
37912
38098
|
case "model_fallback" /* ModelFallback */: {
|
|
37913
38099
|
discardBufferedStreamEvents();
|
|
38100
|
+
setPendingAssistantItems([]);
|
|
37914
38101
|
if (pendingHistoryItemRef.current) {
|
|
37915
38102
|
setPendingHistoryItem(null);
|
|
37916
38103
|
}
|
|
@@ -37918,6 +38105,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37918
38105
|
thoughtBuffer = "";
|
|
37919
38106
|
setThought(null);
|
|
37920
38107
|
geminiMessageBuffer = "";
|
|
38108
|
+
assistantOutputStarted = false;
|
|
38109
|
+
assistantInlineImageCount = 0;
|
|
37921
38110
|
toolCallRequests.length = 0;
|
|
37922
38111
|
clearRetryCountdown();
|
|
37923
38112
|
const fromModel = sanitizeDisplayText(event.fromModel) ?? "(unknown)";
|
|
@@ -37934,7 +38123,10 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37934
38123
|
case "hook_system_message" /* HookSystemMessage */:
|
|
37935
38124
|
flushBufferedStreamEvents();
|
|
37936
38125
|
if (pendingHistoryItemRef.current) {
|
|
37937
|
-
|
|
38126
|
+
commitItemInOrder(
|
|
38127
|
+
pendingHistoryItemRef.current,
|
|
38128
|
+
userMessageTimestamp
|
|
38129
|
+
);
|
|
37938
38130
|
setPendingHistoryItem(null);
|
|
37939
38131
|
}
|
|
37940
38132
|
addItem(
|
|
@@ -37944,6 +38136,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37944
38136
|
},
|
|
37945
38137
|
userMessageTimestamp
|
|
37946
38138
|
);
|
|
38139
|
+
geminiMessageBuffer = "";
|
|
38140
|
+
assistantOutputStarted = false;
|
|
37947
38141
|
break;
|
|
37948
38142
|
case "user_prompt_submit_blocked" /* UserPromptSubmitBlocked */:
|
|
37949
38143
|
flushBufferedStreamEvents();
|
|
@@ -37951,10 +38145,14 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37951
38145
|
event.value,
|
|
37952
38146
|
userMessageTimestamp
|
|
37953
38147
|
);
|
|
38148
|
+
geminiMessageBuffer = "";
|
|
38149
|
+
assistantOutputStarted = false;
|
|
37954
38150
|
break;
|
|
37955
38151
|
case "stop_hook_loop" /* StopHookLoop */:
|
|
37956
38152
|
flushBufferedStreamEvents();
|
|
37957
38153
|
handleStopHookLoopEvent(event.value, userMessageTimestamp);
|
|
38154
|
+
geminiMessageBuffer = "";
|
|
38155
|
+
assistantOutputStarted = false;
|
|
37958
38156
|
break;
|
|
37959
38157
|
case "active_goal" /* ActiveGoal */:
|
|
37960
38158
|
break;
|
|
@@ -37962,7 +38160,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37962
38160
|
if (event.cause && shouldDisplayGoalStateCause(event.cause)) {
|
|
37963
38161
|
flushBufferedStreamEvents();
|
|
37964
38162
|
if (pendingHistoryItemRef.current) {
|
|
37965
|
-
|
|
38163
|
+
commitItemInOrder(
|
|
37966
38164
|
pendingHistoryItemRef.current,
|
|
37967
38165
|
userMessageTimestamp
|
|
37968
38166
|
);
|
|
@@ -37976,6 +38174,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
37976
38174
|
},
|
|
37977
38175
|
userMessageTimestamp
|
|
37978
38176
|
);
|
|
38177
|
+
geminiMessageBuffer = "";
|
|
38178
|
+
assistantOutputStarted = false;
|
|
37979
38179
|
}
|
|
37980
38180
|
break;
|
|
37981
38181
|
default: {
|
|
@@ -38082,18 +38282,22 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
38082
38282
|
handleMaxSessionTurnsEvent,
|
|
38083
38283
|
handleSessionTokenLimitExceededEvent,
|
|
38084
38284
|
handleCitationEvent,
|
|
38285
|
+
settings,
|
|
38085
38286
|
startRetryCountdown,
|
|
38086
38287
|
clearRetryCountdown,
|
|
38087
38288
|
setThought,
|
|
38088
38289
|
commitPendingThought,
|
|
38089
38290
|
pendingHistoryItemRef,
|
|
38291
|
+
pendingAssistantItemsRef,
|
|
38090
38292
|
pendingThoughtItemRef,
|
|
38091
38293
|
setPendingHistoryItem,
|
|
38092
38294
|
handleUserPromptSubmitBlockedEvent,
|
|
38093
38295
|
handleStopHookLoopEvent,
|
|
38094
38296
|
bindGoalTurn,
|
|
38095
38297
|
addItem,
|
|
38096
|
-
|
|
38298
|
+
commitItemInOrder,
|
|
38299
|
+
stagePendingAssistantItem,
|
|
38300
|
+
setPendingAssistantItems,
|
|
38097
38301
|
dualOutput
|
|
38098
38302
|
]
|
|
38099
38303
|
);
|
|
@@ -38351,6 +38555,21 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
38351
38555
|
immediateDuplicateToolResponsesRef.current = null;
|
|
38352
38556
|
}
|
|
38353
38557
|
const userMessageTimestamp = Date.now();
|
|
38558
|
+
if (submitType === "retry" /* Retry */) {
|
|
38559
|
+
setPendingAssistantItems([]);
|
|
38560
|
+
const pendingItem = pendingHistoryItemRef.current;
|
|
38561
|
+
if (pendingItem?.type === "gemini" || pendingItem?.type === "gemini_content") {
|
|
38562
|
+
setPendingHistoryItem(null);
|
|
38563
|
+
}
|
|
38564
|
+
} else if (!isTurnContinuation && !allowConcurrentBtwDuringResponse) {
|
|
38565
|
+
const pendingItem = pendingHistoryItemRef.current;
|
|
38566
|
+
if (pendingItem?.type === "gemini" || pendingItem?.type === "gemini_content") {
|
|
38567
|
+
commitItemInOrder(pendingItem, userMessageTimestamp);
|
|
38568
|
+
setPendingHistoryItem(null);
|
|
38569
|
+
} else {
|
|
38570
|
+
commitPendingAssistantItems(userMessageTimestamp);
|
|
38571
|
+
}
|
|
38572
|
+
}
|
|
38354
38573
|
if (!isTurnContinuation && submitType !== "notification" /* Notification */ && submitType !== "goal" /* Goal */ && !allowConcurrentBtwDuringResponse) {
|
|
38355
38574
|
setModelSwitchedFromQuotaError(false);
|
|
38356
38575
|
const droppingInlineOverrideOnRetry = submitType === "retry" /* Retry */ && inlineModelOverrideActiveRef.current;
|
|
@@ -38568,7 +38787,10 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
38568
38787
|
return;
|
|
38569
38788
|
}
|
|
38570
38789
|
if (pendingHistoryItemRef.current) {
|
|
38571
|
-
|
|
38790
|
+
commitItemInOrder(
|
|
38791
|
+
pendingHistoryItemRef.current,
|
|
38792
|
+
userMessageTimestamp
|
|
38793
|
+
);
|
|
38572
38794
|
setPendingHistoryItem(null);
|
|
38573
38795
|
}
|
|
38574
38796
|
const immediateDuplicateToolResponses = immediateDuplicateToolResponsesRef.current;
|
|
@@ -38723,7 +38945,9 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
38723
38945
|
processGeminiStreamEvents,
|
|
38724
38946
|
pendingHistoryItemRef,
|
|
38725
38947
|
addItem,
|
|
38726
|
-
|
|
38948
|
+
commitPendingAssistantItems,
|
|
38949
|
+
commitItemInOrder,
|
|
38950
|
+
setPendingAssistantItems,
|
|
38727
38951
|
setPendingHistoryItem,
|
|
38728
38952
|
setInitError,
|
|
38729
38953
|
geminiClient,
|
|
@@ -39309,6 +39533,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
39309
39533
|
() => [
|
|
39310
39534
|
// Reasoning renders above the streaming answer.
|
|
39311
39535
|
pendingThoughtItem,
|
|
39536
|
+
...pendingAssistantItems,
|
|
39312
39537
|
pendingHistoryItem,
|
|
39313
39538
|
pendingRetryErrorItem,
|
|
39314
39539
|
pendingRetryCountdownItem,
|
|
@@ -39316,6 +39541,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
39316
39541
|
].filter((i) => i !== void 0 && i !== null),
|
|
39317
39542
|
[
|
|
39318
39543
|
pendingThoughtItem,
|
|
39544
|
+
pendingAssistantItems,
|
|
39319
39545
|
pendingHistoryItem,
|
|
39320
39546
|
pendingRetryErrorItem,
|
|
39321
39547
|
pendingRetryCountdownItem,
|
|
@@ -39718,6 +39944,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
39718
39944
|
submitQuery,
|
|
39719
39945
|
initError,
|
|
39720
39946
|
pendingHistoryItems,
|
|
39947
|
+
clearPendingState,
|
|
39721
39948
|
thought,
|
|
39722
39949
|
cancelOngoingRequest,
|
|
39723
39950
|
preemptGoalTurn,
|
|
@@ -43739,6 +43966,12 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
43739
43966
|
);
|
|
43740
43967
|
});
|
|
43741
43968
|
}, [addHistoryItem, config]);
|
|
43969
|
+
const clearPendingStateRef = (0, import_react161.useRef)(() => {
|
|
43970
|
+
});
|
|
43971
|
+
const clearPendingStateFromRef = (0, import_react161.useCallback)(
|
|
43972
|
+
() => clearPendingStateRef.current(),
|
|
43973
|
+
[]
|
|
43974
|
+
);
|
|
43742
43975
|
const {
|
|
43743
43976
|
isResumeDialogOpen,
|
|
43744
43977
|
resumeMatchedSessions,
|
|
@@ -43750,6 +43983,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
43750
43983
|
settings,
|
|
43751
43984
|
historyManager,
|
|
43752
43985
|
startNewSession,
|
|
43986
|
+
clearPendingState: clearPendingStateFromRef,
|
|
43753
43987
|
setSessionName,
|
|
43754
43988
|
remount: refreshStatic
|
|
43755
43989
|
});
|
|
@@ -43758,6 +43992,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
43758
43992
|
settings,
|
|
43759
43993
|
historyManager,
|
|
43760
43994
|
startNewSession,
|
|
43995
|
+
clearPendingState: clearPendingStateFromRef,
|
|
43761
43996
|
setSessionName,
|
|
43762
43997
|
remount: refreshStatic
|
|
43763
43998
|
});
|
|
@@ -43922,7 +44157,8 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
43922
44157
|
handleResume,
|
|
43923
44158
|
handleBranch,
|
|
43924
44159
|
openDeleteDialog,
|
|
43925
|
-
openHelpDialog
|
|
44160
|
+
openHelpDialog,
|
|
44161
|
+
clearPendingState: /* @__PURE__ */ __name(() => clearPendingStateRef.current(), "clearPendingState")
|
|
43926
44162
|
}),
|
|
43927
44163
|
[
|
|
43928
44164
|
openAuthDialog,
|
|
@@ -44154,6 +44390,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
44154
44390
|
submitQuery,
|
|
44155
44391
|
initError,
|
|
44156
44392
|
pendingHistoryItems: pendingGeminiHistoryItems,
|
|
44393
|
+
clearPendingState,
|
|
44157
44394
|
thought,
|
|
44158
44395
|
cancelOngoingRequest,
|
|
44159
44396
|
preemptGoalTurn,
|
|
@@ -44192,6 +44429,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
44192
44429
|
goalQueueRef
|
|
44193
44430
|
);
|
|
44194
44431
|
cancelOngoingRequestRef.current = cancelOngoingRequest;
|
|
44432
|
+
clearPendingStateRef.current = clearPendingState;
|
|
44195
44433
|
isIdleRef.current = streamingState === "idle" /* Idle */;
|
|
44196
44434
|
(0, import_react161.useEffect)(() => {
|
|
44197
44435
|
if (streamingState === "idle" /* Idle */) {
|
|
@@ -44762,6 +45000,7 @@ ${currentText}` : popped.modelText
|
|
|
44762
45000
|
]
|
|
44763
45001
|
);
|
|
44764
45002
|
const handleClearScreen = (0, import_react161.useCallback)(() => {
|
|
45003
|
+
clearPendingStateRef.current();
|
|
44765
45004
|
historyManager.clearItems();
|
|
44766
45005
|
clearScreen();
|
|
44767
45006
|
remountStaticHistory();
|
|
@@ -45179,6 +45418,7 @@ ${currentText}` : popped.modelText
|
|
|
45179
45418
|
const truncatedUi = expandCollapsedHistory(
|
|
45180
45419
|
originalHistory.filter((h) => h.id < userItem.id)
|
|
45181
45420
|
);
|
|
45421
|
+
clearPendingStateRef.current();
|
|
45182
45422
|
historyManager.loadHistory(truncatedUi);
|
|
45183
45423
|
refreshStatic();
|
|
45184
45424
|
if (userItem.type === "user" && userItem.text) {
|