@qwen-code/qwen-code 0.21.10 → 0.21.11-nightly.20260815.c396fe3d12
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/coordinate/SKILL.md +52 -0
- package/bundled/qc-helper/docs/configuration/model-providers.md +10 -8
- package/bundled/qc-helper/docs/configuration/settings.md +10 -0
- 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/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/arena.md +4 -3
- package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
- package/bundled/qc-helper/docs/features/channels/plugins.md +11 -11
- package/bundled/qc-helper/docs/features/code-review.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +7 -6
- package/bundled/qc-helper/docs/features/dual-output.md +5 -0
- package/bundled/qc-helper/docs/features/headless.md +8 -0
- package/bundled/qc-helper/docs/features/multi-agent-coordination.md +30 -0
- package/bundled/qc-helper/docs/qwen-serve.md +105 -40
- package/bundled/review/SKILL.md +72 -43
- package/chunks/{MaxSizedBox-FKXYULMW.js → MaxSizedBox-RRYY7LE5.js} +45 -44
- package/chunks/{StandaloneSessionPicker-OQS3M7AY.js → StandaloneSessionPicker-CK3O3N7F.js} +68 -67
- package/chunks/{acp-startup-profiler-VNTFWYAC.js → acp-startup-profiler-SVPUHLXV.js} +2 -2
- package/chunks/{acpAgent-AGS6HLQQ.js → acpAgent-DXUWYWDM.js} +1889 -640
- package/chunks/{agent-4NCVO27U.js → agent-DEPG4BP7.js} +42 -41
- package/chunks/agent-headless-VLBUWGPP.js +87 -0
- package/chunks/{anthropicContentGenerator-D3Y4RFT4.js → anthropicContentGenerator-YDT4EOKO.js} +8 -8
- package/chunks/{artifact-tool-N652YE4L.js → artifact-tool-4GCQQDZI.js} +2 -2
- package/chunks/{askUserQuestion-ONW74PKJ.js → askUserQuestion-HZJJLR3Z.js} +2 -2
- package/chunks/bridge-U7LETTTF.js +104 -0
- package/chunks/{ca-ZLKAB4K3.js → ca-4CQ6MYNQ.js} +2 -1
- package/chunks/{channel-management-service-PHELKOW2.js → channel-management-service-OADNGQM3.js} +6 -6
- package/chunks/channel-settings-store-B2GRIZ2D.js +102 -0
- package/chunks/{channel-worker-group-WQP4RCDO.js → channel-worker-group-IHBIHQ45.js} +9 -8
- package/chunks/{channel-worker-manager-MRDFAKIM.js → channel-worker-manager-GEHYJ5AE.js} +9 -8
- package/chunks/{channel-worker-supervisor-IVSDIMI4.js → channel-worker-supervisor-ZJIIWM4I.js} +7 -6
- package/chunks/{chunk-26CXSA6V.js → chunk-25VWCPYE.js} +2 -2
- package/chunks/{chunk-DP3IHZGG.js → chunk-2AUM35J5.js} +59 -7
- package/chunks/{chunk-URKIBIFC.js → chunk-2QHWLRQ2.js} +3 -3
- package/chunks/{chunk-4PYCZH2V.js → chunk-2ZWH53I4.js} +3 -3
- package/chunks/{chunk-UVX4Y6IN.js → chunk-3AEKDXKT.js} +1 -1
- package/chunks/{chunk-ABVRJU3D.js → chunk-3ER3FWZM.js} +9 -9
- package/chunks/{chunk-DZUO626D.js → chunk-3GM5DLBI.js} +3 -3
- package/chunks/{chunk-VSFKIRRW.js → chunk-3NBTNFNC.js} +4 -4
- package/chunks/{chunk-NEOXOWYH.js → chunk-3QZY3JSR.js} +7 -7
- package/chunks/{chunk-BKHCW2BI.js → chunk-3VUENPWF.js} +10 -0
- package/chunks/{chunk-67EWJE77.js → chunk-45NQKMYB.js} +1 -1
- package/chunks/{chunk-KKBPOU75.js → chunk-4AOVQPJU.js} +1 -1
- package/chunks/{chunk-OONWZLFK.js → chunk-4EB5GRRC.js} +4 -4
- package/chunks/{chunk-YGT2AUJ7.js → chunk-4KM2SYK5.js} +39 -19
- package/chunks/{chunk-Y3OVRWRY.js → chunk-4N4JVRZA.js} +1 -1
- package/chunks/{chunk-VNNWAZSI.js → chunk-56HVDG3M.js} +6 -6
- package/chunks/{chunk-TRRF5BSP.js → chunk-5C42HXEX.js} +1 -1
- package/chunks/{chunk-J6SZID63.js → chunk-5RUCD4ED.js} +2 -2
- package/chunks/{chunk-WAUGQKUU.js → chunk-63FNZTWG.js} +9 -5
- package/chunks/{chunk-F6WDTQ3M.js → chunk-655DWW7X.js} +5 -5
- package/chunks/{chunk-AAE6SR4Q.js → chunk-7P5NK5EI.js} +1 -1
- package/chunks/{chunk-MZSJ43WV.js → chunk-7U5G6JXI.js} +24 -2
- package/chunks/{chunk-GWVUR3QZ.js → chunk-7WROZ3E6.js} +3 -3
- package/chunks/{chunk-PBRVUF5B.js → chunk-A6NRNRKE.js} +1 -1
- package/chunks/{chunk-IBUGFUXC.js → chunk-A6TJ7QUA.js} +13 -13
- package/chunks/{chunk-DCZEPFB4.js → chunk-ADM4C4TX.js} +3 -3
- package/chunks/{chunk-UBX6NL47.js → chunk-AGWK35OJ.js} +47 -3
- package/chunks/{chunk-4MKXUHXY.js → chunk-AGWZRQJJ.js} +5 -5
- package/chunks/{chunk-GNPNYXJB.js → chunk-AKBFSOC5.js} +2 -2
- package/chunks/{chunk-YWPSGJFI.js → chunk-ARSQPRYL.js} +2 -2
- package/chunks/{chunk-IWTMYQ32.js → chunk-AVKPDOQZ.js} +12 -11
- package/chunks/{chunk-DX3RGJMS.js → chunk-AW27A43Y.js} +76 -19
- package/chunks/{chunk-MIKXJYZB.js → chunk-AZPFLLFR.js} +315 -299
- package/chunks/{chunk-2PLNY5TN.js → chunk-BBCGHZ4S.js} +4 -4
- package/chunks/{chunk-KID7K6H2.js → chunk-BP5VZBVK.js} +6 -6
- package/chunks/{chunk-LLCWZQCU.js → chunk-BRQR2FJ5.js} +3 -3
- package/chunks/{chunk-LHEC5V6G.js → chunk-BSR5AXZR.js} +4 -3
- package/chunks/{chunk-ONSZH6VM.js → chunk-CGM3E75C.js} +2 -2
- package/chunks/{chunk-SEZ556DZ.js → chunk-CPFFU46D.js} +1 -1
- package/chunks/{chunk-H6XPXXMH.js → chunk-CQ35AJ4Z.js} +252 -254
- package/chunks/{chunk-7MH4J33A.js → chunk-D2RNVVH6.js} +2 -2
- package/chunks/{chunk-M6HMMKVG.js → chunk-D7QGE3RT.js} +1 -1
- package/chunks/{chunk-UMD7WQTR.js → chunk-D7VALEOK.js} +13 -9
- package/chunks/chunk-DAV4QFD5.js +1280 -0
- package/chunks/{chunk-B2GJNDTV.js → chunk-DD6O3ZRD.js} +1 -1
- package/chunks/{chunk-HUWENAHO.js → chunk-DEDESZDL.js} +1 -1
- package/chunks/{chunk-3P2LV43B.js → chunk-DG4IQ6JG.js} +3 -3
- package/chunks/{chunk-QUI267ZP.js → chunk-DPTMKFIH.js} +492 -63
- package/chunks/{chunk-Q3JQ7OSU.js → chunk-EJOGLSNJ.js} +1 -1
- package/chunks/{chunk-NRLFZWCT.js → chunk-EQHCHTHC.js} +48 -5
- package/chunks/{chunk-P3BJLFSZ.js → chunk-EQR7YDXY.js} +3 -3
- package/chunks/{chunk-4WL6SY4F.js → chunk-EQUXHAFW.js} +1 -1
- package/chunks/{chunk-Q3AL4JQ3.js → chunk-F5BD3RNA.js} +2 -2
- package/chunks/{chunk-A7XMDZRI.js → chunk-FJYUSD2N.js} +5 -5
- package/chunks/{chunk-JT7XS4YW.js → chunk-FMIH5KMQ.js} +1 -1
- package/chunks/{chunk-ZBVS26BY.js → chunk-FPGTNKCP.js} +7 -5
- package/chunks/{chunk-W5UC37EE.js → chunk-FQDCO3CJ.js} +12 -1
- package/chunks/{chunk-EQL65XGA.js → chunk-FRHQQC2Z.js} +47 -21
- package/chunks/{chunk-FVKHVJZQ.js → chunk-G6MUFRNI.js} +1 -1
- package/chunks/{chunk-D27I6YJT.js → chunk-GB245X4Z.js} +129 -26
- package/chunks/{chunk-WCG5O7IP.js → chunk-GZDWTBT3.js} +2 -2
- package/chunks/{chunk-AOHJKPKL.js → chunk-H7TMVHKE.js} +1 -1
- package/chunks/{chunk-ZJ4W6SUY.js → chunk-HDRTQ5DH.js} +3 -3
- package/chunks/{chunk-ZZCWJWTF.js → chunk-HG3UBTJ4.js} +31 -11
- package/chunks/chunk-HHJLM3WQ.js +41 -0
- package/chunks/{chunk-6LP743KE.js → chunk-HHZU6ZZM.js} +79 -113
- package/chunks/{chunk-OIVKILPI.js → chunk-HOSVOUDK.js} +74 -0
- package/chunks/{chunk-DA4HRSBW.js → chunk-HTYND72J.js} +1 -1
- package/chunks/{chunk-ZRBMO3C7.js → chunk-IKFHTAQW.js} +1 -1
- package/chunks/{chunk-KZ22NXBY.js → chunk-IVROQYG5.js} +4 -4
- package/chunks/{chunk-UDXSXLER.js → chunk-IW6RQPQB.js} +14 -4
- package/chunks/{chunk-F24A2JBM.js → chunk-J6JVP7ZZ.js} +1180 -254
- package/chunks/{chunk-ECWR5LQR.js → chunk-JB6IM2TJ.js} +3 -3
- package/chunks/{chunk-MVUQRLOH.js → chunk-JRIVMPD2.js} +3 -3
- package/chunks/{chunk-Q7YDKOGY.js → chunk-JVEGA3MM.js} +1 -1
- package/chunks/{chunk-4TRQPFDP.js → chunk-K34GJQOZ.js} +140 -20
- package/chunks/{chunk-W4RQUHY3.js → chunk-K5IDV3PC.js} +184 -22
- package/chunks/{chunk-NDU63YLI.js → chunk-KD6FGI2Q.js} +4 -4
- package/chunks/{chunk-HV76SFIA.js → chunk-KEC5FHLM.js} +3 -3
- package/chunks/{chunk-IIJEYBNH.js → chunk-KLOMACIR.js} +197 -60
- package/chunks/{chunk-Z4JX4NSH.js → chunk-KSPRBJJ3.js} +50 -50
- package/chunks/{chunk-KONVMRK7.js → chunk-KX5TNFCJ.js} +1 -1
- package/chunks/{chunk-QGNOFE5E.js → chunk-KX7PC5QG.js} +1 -1
- package/chunks/{chunk-OJUQF2PL.js → chunk-LEKKQEQW.js} +5 -5
- package/chunks/{chunk-COBO5EBO.js → chunk-LSRI3ND3.js} +1 -1
- package/chunks/{chunk-BSI645OU.js → chunk-LUISTZXI.js} +3 -3
- package/chunks/{chunk-YTFDX4PR.js → chunk-M6NDLY2T.js} +1 -1
- package/chunks/{chunk-EBZ6BJTF.js → chunk-MNUKNVYQ.js} +1 -1
- package/chunks/{chunk-VFMASYQA.js → chunk-MS7GNABG.js} +3 -0
- package/chunks/{chunk-EI3NWELG.js → chunk-MSSNVG2G.js} +6430 -4463
- package/chunks/{chunk-L2AFWWJE.js → chunk-N4SVADAV.js} +351 -144
- package/chunks/{chunk-URK542T4.js → chunk-NF5J2WFA.js} +15 -2
- package/chunks/{chunk-EI3HZX6C.js → chunk-NLFLYSS4.js} +1 -1
- package/chunks/{chunk-NV3F44FL.js → chunk-NW2GIPG3.js} +2 -2
- package/chunks/{chunk-OQTXYMKW.js → chunk-NX4A23LY.js} +3 -3
- package/chunks/{chunk-E2FPSSKP.js → chunk-OK47XBYH.js} +97 -10
- package/chunks/{chunk-EKPKKXY2.js → chunk-OWGRUU7F.js} +1 -1
- package/chunks/{chunk-CTJLZLB5.js → chunk-OYWVIXHT.js} +1 -1
- package/chunks/{chunk-47PEPJO7.js → chunk-P7PSGVWP.js} +3 -3
- package/chunks/{chunk-6Q5ABMTU.js → chunk-PTSEETCO.js} +23 -19
- package/chunks/{chunk-6ZRFAKXK.js → chunk-PVXEJB66.js} +1 -1
- package/chunks/{chunk-EUNWC2VS.js → chunk-PZW46OTB.js} +2 -2
- package/chunks/{chunk-QSWDGAIC.js → chunk-QILD6R27.js} +1 -1
- package/chunks/{chunk-CKASRHZI.js → chunk-QLTATTPS.js} +1 -1
- package/chunks/{chunk-2UUMVNYT.js → chunk-QPBFRWCP.js} +3 -3
- package/chunks/{chunk-QJMOAMXT.js → chunk-QQSXM3FE.js} +8 -8
- package/chunks/{chunk-AEL7KN2O.js → chunk-RN7GFREP.js} +2 -2
- package/chunks/{chunk-AQAJJMRR.js → chunk-RYSBWLLV.js} +1 -1
- package/chunks/{chunk-MFDYOYZZ.js → chunk-SYHXR6WM.js} +26 -3
- package/chunks/{chunk-SR7RZ4MS.js → chunk-TB4YFWXG.js} +2 -2
- package/chunks/{chunk-IRZ2ZH72.js → chunk-TCMU4ZUE.js} +4 -4
- package/chunks/{chunk-OWMAZHIX.js → chunk-TMFWI4RC.js} +1 -1
- package/chunks/{chunk-TZEZYNYD.js → chunk-TQDFSQQF.js} +1 -1
- package/chunks/{chunk-IA7TGCN2.js → chunk-TTRH3RTQ.js} +4 -4
- package/chunks/{chunk-PJRW65JO.js → chunk-TXP5NGG3.js} +1 -1
- package/chunks/{chunk-VWKER4ZH.js → chunk-ULJGMSG5.js} +3 -3
- package/chunks/{chunk-2FRY5CRX.js → chunk-ULNWG62W.js} +3 -3
- package/chunks/{chunk-XVHYA33G.js → chunk-URYJYT5W.js} +4 -4
- package/chunks/{chunk-7GTMV7UE.js → chunk-US7J7LJT.js} +10786 -4462
- package/chunks/{chunk-HGCQ5SE7.js → chunk-UXEO7E3V.js} +21 -0
- package/chunks/{chunk-NV65ZUVM.js → chunk-VKT2R3NB.js} +1 -1
- package/chunks/{chunk-CPG6P4GG.js → chunk-VPV7WBVT.js} +1 -1
- package/chunks/{chunk-QG3FFJYU.js → chunk-VXSD4AGT.js} +1 -1
- package/chunks/{chunk-XCGIMOLN.js → chunk-WCCLLK7X.js} +14 -1
- package/chunks/{chunk-VJNBRRZG.js → chunk-WZMH7II3.js} +1 -1
- package/chunks/{chunk-5MZCSWI4.js → chunk-WZRLXVLJ.js} +1185 -1451
- package/chunks/{chunk-YF5MALI4.js → chunk-X5QJFMLY.js} +21 -17
- package/chunks/{chunk-DREZZAZM.js → chunk-XDRXOSAD.js} +13 -5
- package/chunks/{chunk-FOGU3LJX.js → chunk-YBHUXEC6.js} +1 -1
- package/chunks/{chunk-GM463R2B.js → chunk-YBVVOSOH.js} +1 -1
- package/chunks/{chunk-PYQADEFD.js → chunk-YIGGWOJE.js} +1 -1
- package/chunks/{chunk-XCWO3SMQ.js → chunk-YILJKX2T.js} +3 -3
- package/chunks/{chunk-Y4R47ZUH.js → chunk-YM3I6VW5.js} +7 -7
- package/chunks/{chunk-OCSFNUU4.js → chunk-YMALTWIZ.js} +13 -11
- package/chunks/{chunk-WOJZWRAZ.js → chunk-YRLW2MSX.js} +1 -1
- package/chunks/{chunk-UEOKWYGY.js → chunk-YYIOFWVH.js} +11 -11
- package/chunks/chunk-Z7B6SRPM.js +32 -0
- package/chunks/{chunk-S6HYI3MF.js → chunk-ZBB5EZZV.js} +2 -2
- package/chunks/{chunk-VKJ4KTPJ.js → chunk-ZLCT4C5A.js} +1 -1
- package/chunks/{chunk-O3EU6GMH.js → chunk-ZO37CAQH.js} +27 -4
- package/chunks/{computer-use-WQFK33Z3.js → computer-use-TMDO6TEC.js} +42 -41
- package/chunks/{config-utils-ULCSRMWD.js → config-utils-Z3OW3IQG.js} +6 -6
- package/chunks/{contextCommand-7EOZND7C.js → contextCommand-IUQ6G5ES.js} +44 -43
- package/chunks/{core-runtime-FGMQRM6E.js → core-runtime-HAZLPQXI.js} +42 -41
- package/chunks/{create-sub-session-QM2K5HLZ.js → create-sub-session-GREIOIZU.js} +42 -41
- package/chunks/{create-sub-session-QIDZUOPU.js → create-sub-session-XT6DLYOE.js} +2 -2
- package/chunks/{cron-create-VONA5JYY.js → cron-create-2JZ2TWTF.js} +4 -4
- package/chunks/{cron-delete-5JXSP2MI.js → cron-delete-CTPD2P26.js} +4 -4
- package/chunks/{cron-list-KE4F2CIR.js → cron-list-V44KHAF6.js} +4 -4
- package/chunks/{daemon-GWD7BT6E.js → daemon-GED37WOX.js} +216 -9
- package/chunks/daemon-git-worktree-guard-BSKVBYPM.js +2062 -0
- package/chunks/daemon-status-provider-7UK2DVVN.js +102 -0
- package/chunks/daemon-trust-policy-BZEALQSM.js +99 -0
- package/chunks/{daemon-trust-policy-monitor-6UKEABN5.js → daemon-trust-policy-monitor-P7OM342T.js} +49 -48
- package/chunks/{de-LIW4XVLN.js → de-UBEBKG6V.js} +2 -1
- package/chunks/{deferred-core-runtime-67GJXHXS.js → deferred-core-runtime-MTDXZT6B.js} +42 -41
- package/chunks/{display-image-NQRSIBXM.js → display-image-M2ELAVN4.js} +4 -4
- package/chunks/{dist-OTUO3AS2.js → dist-4ZPG4BY6.js} +13 -5
- package/chunks/{dist-B2CGTW6T.js → dist-BROOP2EG.js} +3 -3
- package/chunks/{dist-EZE3V3Q7.js → dist-IYYN3RUT.js} +3 -3
- package/chunks/{dist-3NTTUAHT.js → dist-JWMKPWT5.js} +5 -3
- package/chunks/{dist-Z3CS4OVP.js → dist-K7IQB53U.js} +11 -5
- package/chunks/{dist-J47AXBZC.js → dist-MAQXAQ2Y.js} +3 -3
- package/chunks/{dist-6BMOAE3Z.js → dist-WJ4BHIEW.js} +4 -4
- package/chunks/{dist-EWW3J4HQ.js → dist-YEPL4RAW.js} +3 -3
- package/chunks/{earlyInputCapture-IWMYR6OB.js → earlyInputCapture-BGZYFN2F.js} +43 -42
- package/chunks/{edit-ZFGROCAF.js → edit-ASQVJARF.js} +45 -43
- package/chunks/{en-SY5GTIGX.js → en-X6YV7GME.js} +2 -1
- package/chunks/{enter-worktree-TZZZCDM5.js → enter-worktree-WIUNMC64.js} +42 -41
- package/chunks/{enterPlanMode-U77BI3R6.js → enterPlanMode-TUBB2L7O.js} +42 -41
- package/chunks/{environment-HC37DS2I.js → environment-RWSNEY4T.js} +45 -44
- package/chunks/{errors-6AG54JPD.js → errors-44QVVNGT.js} +44 -43
- package/chunks/{exit-worktree-UYYWFPNK.js → exit-worktree-WPBRPIRR.js} +42 -41
- package/chunks/exitPlanMode-AP7J626M.js +85 -0
- package/chunks/{external-tool-guard-provider-5HTGOPGU.js → external-tool-guard-provider-TE4DRY36.js} +1 -1
- package/chunks/{fast-path-F5FSZ3O7.js → fast-path-XG5KXXLS.js} +6 -6
- package/chunks/{fast-path-settings-RPAVBD7P.js → fast-path-settings-LNOFM2YP.js} +2 -2
- package/chunks/{fr-RQFO7U4P.js → fr-VENTC2BS.js} +2 -1
- package/chunks/{gemini-NKQHYM36.js → gemini-PGXORAFF.js} +112 -103
- package/chunks/{geminiContentGenerator-HCWZOUX3.js → geminiContentGenerator-ZQVVD4J4.js} +6 -6
- package/chunks/{glob-3PDXKBAO.js → glob-Q6LWKMBU.js} +42 -41
- package/chunks/{goal-tools-SWNB6GP4.js → goal-tools-M4UDAZXP.js} +4 -4
- package/chunks/{grep-5HZKZYVD.js → grep-C67Z35I4.js} +42 -41
- package/chunks/handleAutoUpdate-75L74MB4.js +94 -0
- package/chunks/{i18n-Q27KKNDL.js → i18n-GYUC23UJ.js} +43 -42
- package/chunks/{image-gen-2Z2RJ6W7.js → image-gen-XE56S4MG.js} +10 -10
- package/chunks/initializer-V7XZVY35.js +100 -0
- package/chunks/{installationInfo-XXB75T7O.js → installationInfo-S5PPSD7T.js} +43 -42
- package/chunks/{ja-KOZKHJHZ.js → ja-QHT4EQTO.js} +2 -1
- package/chunks/{keychain-token-storage-TVAMTNP7.js → keychain-token-storage-NKKCUHI2.js} +2 -2
- package/chunks/list-JJ2FB7SP.js +103 -0
- package/chunks/{list-agents-Z4WABFDZ.js → list-agents-O6WSY4CT.js} +2 -2
- package/chunks/loadedSettingsAdapter-LNUDRGW5.js +97 -0
- package/chunks/{loggingContentGenerator-6NTFBM7Q.js → loggingContentGenerator-HCJ2DX2S.js} +162 -112
- package/chunks/{loop-wakeup-UZ5RL5Y2.js → loop-wakeup-GVQRMUKS.js} +5 -5
- package/chunks/{ls-TVHDGIES.js → ls-6W2D7TKU.js} +4 -4
- package/chunks/{lsp-CVN6OQPI.js → lsp-NJ4KFBI2.js} +2 -2
- package/chunks/{managed-npm-update-SPHYQUWZ.js → managed-npm-update-MDF2JDTH.js} +45 -44
- package/chunks/mcp-M5OML5FI.js +97 -0
- package/chunks/{monitor-ZBBPAA54.js → monitor-U5NM5ONC.js} +42 -41
- package/chunks/nonInteractiveCli-TX3QP7JT.js +163 -0
- package/chunks/{notebook-edit-5W3FW7Z2.js → notebook-edit-Q7SUR44R.js} +42 -41
- package/chunks/{openaiContentGenerator-TQANPEVZ.js → openaiContentGenerator-2H5CYLXP.js} +29 -29
- package/chunks/{pidfile-EQOBLH4E.js → pidfile-SHSMSAZR.js} +43 -42
- package/chunks/{processUtils-7XQG7EHS.js → processUtils-GZAP6EYW.js} +2 -2
- package/chunks/{pt-U6AOCTMF.js → pt-VL3I5RNY.js} +2 -1
- package/chunks/{qwenContentGenerator-BKCPHHXU.js → qwenContentGenerator-2624VVZH.js} +48 -48
- package/chunks/{qwenOAuth2-BJ6PQKE6.js → qwenOAuth2-AAWH3C7N.js} +9 -9
- package/chunks/read-file-ZWGQE2TE.js +32 -0
- package/chunks/{read-mcp-resource-PZ4ZF6YL.js → read-mcp-resource-GWCP23WG.js} +2 -2
- package/chunks/{read-package-up-TCM6I7S2.js → read-package-up-K6RKTL5D.js} +1 -1
- package/chunks/{record-artifact-P4HFMS7X.js → record-artifact-IYQDEYMV.js} +3 -3
- package/chunks/{resumeHistoryUtils-6N6XGJJW.js → resumeHistoryUtils-7N2H4QCU.js} +50 -49
- package/chunks/ripGrep-6JGJDWYB.js +85 -0
- package/chunks/{ru-CMX4UMYP.js → ru-4RCKL4PY.js} +2 -1
- package/chunks/{run-qwen-serve-BCKBCAMX.js → run-qwen-serve-2A6RHHI7.js} +197 -90
- package/chunks/{runtime-E2437YKL.js → runtime-NPYVZVRI.js} +55 -54
- package/chunks/{scheduler-K3D5Z655.js → scheduler-UMKTEQAM.js} +44 -43
- package/chunks/{sdk-exporters-http-XVTZQRCE.js → sdk-exporters-http-NHBYB5FZ.js} +11 -7
- package/chunks/{sdk-impl-7W7AKCS4.js → sdk-impl-SK4P5WON.js} +13 -10
- package/chunks/{send-message-CAMSLG2L.js → send-message-O7FO63UK.js} +6 -6
- package/chunks/serve-LYADPWRV.js +107 -0
- package/chunks/{server-UD6INW7J.js → server-WMVPH4G4.js} +1137 -382
- package/chunks/{session-GR4ZEVW4.js → session-LE6O62ZE.js} +122 -102
- package/chunks/{settings-5O24D3OJ.js → settings-2IPZYYGS.js} +48 -47
- package/chunks/{shell-UTLWLG5G.js → shell-VOBAZFFI.js} +42 -41
- package/chunks/{skill-QQAZL4VO.js → skill-6LKOWJV4.js} +19 -19
- package/chunks/{skill-settings-P3YHJVBZ.js → skill-settings-J5IHQA7L.js} +48 -47
- package/chunks/spawnChannel-TLW7N3SM.js +98 -0
- package/chunks/{standalone-update-QP742MGP.js → standalone-update-6OFPUBEM.js} +44 -43
- package/chunks/{startInteractiveUI-YCS6AEPN.js → startInteractiveUI-KVHNCR2L.js} +836 -444
- package/chunks/{syntheticOutput-PEBJQYJV.js → syntheticOutput-DVHJMUGV.js} +3 -3
- package/chunks/{task-create-5NWCQSJF.js → task-create-4NC7PDI4.js} +10 -10
- package/chunks/{task-list-53265TRZ.js → task-list-LBSRMOC7.js} +5 -5
- package/chunks/{task-stop-FPCOIRYX.js → task-stop-YFNATTIM.js} +2 -2
- package/chunks/{task-update-5HN577LS.js → task-update-BPLM52GD.js} +10 -10
- package/chunks/{team-create-WFH7OCDQ.js → team-create-INCC7G74.js} +44 -43
- package/chunks/{team-delete-MMQB4OSC.js → team-delete-MKYMYBFM.js} +5 -5
- package/chunks/{team-plan-approval-EGTT53MV.js → team-plan-approval-6DCWGZQ4.js} +42 -41
- package/chunks/{terminal-image-renderer-BWRESAQ7.js → terminal-image-renderer-O5EDW64G.js} +44 -43
- package/chunks/theme-manager-NZZO4SWE.js +89 -0
- package/chunks/{todoWrite-JGV6VLOX.js → todoWrite-K5K7NRE5.js} +4 -4
- package/chunks/{tool-search-TI5PTIBF.js → tool-search-JB2PXD5P.js} +19 -19
- package/chunks/total-session-admission-NWNMU6AW.js +99 -0
- package/chunks/{trustedFolders-4KYHA4IG.js → trustedFolders-A5ZWRRSP.js} +43 -42
- package/chunks/{update-relaunch-WB6LGIF2.js → update-relaunch-GG7EDBEA.js} +5 -5
- package/chunks/{updateCheck-LOS5GYFC.js → updateCheck-P6JJ4MBU.js} +48 -47
- package/chunks/{useAutoAcceptIndicator-MHAPY52L.js → useAutoAcceptIndicator-KV2AANVG.js} +53 -52
- package/chunks/{validateNonInterActiveAuth-QV22HNQU.js → validateNonInterActiveAuth-HXRCYXY7.js} +89 -88
- package/chunks/{version-DALWZHKQ.js → version-HH5V762G.js} +2 -2
- package/chunks/{web-fetch-JMJVMYFE.js → web-fetch-LVXPFB5O.js} +19 -19
- package/chunks/{web-search-DNDUIPU5.js → web-search-4E234FSM.js} +11 -11
- package/chunks/{workflow-JGNN64PM.js → workflow-GUE6WIMP.js} +117 -50
- package/chunks/workspace-providers-status-TUWLGJOF.js +100 -0
- package/chunks/{workspace-registration-store-LRJG7QA4.js → workspace-registration-store-22XXHPKR.js} +1 -1
- package/chunks/{workspace-registry-KVXIFM36.js → workspace-registry-HUFJF5W5.js} +50 -49
- package/chunks/{workspace-service-PO4AAKKT.js → workspace-service-NAGTBJXJ.js} +54 -53
- package/chunks/workspace-skills-status-LWDBXAQI.js +100 -0
- package/chunks/{workspace-trust-reconciler-DOZPCVHG.js → workspace-trust-reconciler-DLWV2ZO6.js} +57 -56
- package/chunks/write-file-QVHVOKKR.js +87 -0
- package/chunks/{zh-AGL2FVBI.js → zh-LMSTK4WD.js} +2 -1
- package/chunks/{zh-TW-KI66MHQY.js → zh-TW-SQ4HTSCW.js} +2 -1
- package/chunks/{zoom-image-CNC77ZMA.js → zoom-image-CJDXYWJH.js} +15 -15
- package/cli.js +18 -17
- package/locales/ca.js +1 -0
- package/locales/de.js +1 -0
- package/locales/en.js +1 -0
- package/locales/fr.js +1 -0
- package/locales/ja.js +1 -0
- package/locales/pt.js +1 -0
- package/locales/ru.js +1 -0
- package/locales/zh-TW.js +1 -0
- package/locales/zh.js +1 -0
- package/package.json +4 -4
- package/web-shell/assets/{arc-CDk0d60K.js → arc-DagtOPoO.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-h-W3I2lP.js → architectureDiagram-3BPJPVTR-Dc3kGCBm.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-D1pvSmZg.js → blockDiagram-GPEHLZMM-BUZvQLL_.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-ByAm5ZNf.js → c4Diagram-AAUBKEIU-BbBgCu9K.js} +1 -1
- package/web-shell/assets/channel-aMHKHCQ2.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-VrGPPOGV.js → chunk-2J33WTMH-CZ4miMNB.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-B7hTowgG.js → chunk-4BX2VUAB-B2_qQSGx.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-j1Fq8DpE.js → chunk-55IACEB6-EdmTwZW7.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-UjABYpF2.js → chunk-727SXJPM-l2EpyrLV.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D4uBItrs.js → chunk-AQP2D5EJ-0q9sx5lV.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DeFbKlb8.js → chunk-FMBD7UC4-CbGnA4Dp.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-rQJ8TIgT.js → chunk-ND2GUHAM-D8JBELgZ.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-DAGcRxvq.js → chunk-QZHKN3VN-DQMpGGOO.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-zASpLzDx.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-zASpLzDx.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-MaE7MJSt.js → cose-bilkent-S5V4N54A-DzM-ZRsM.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DzijYGSb.js → dagre-BM42HDAG-uxLS-TtN.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-WdbG7WnX.js → diagram-2AECGRRQ-DH7Gnqzr.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-NYutsBnw.js → diagram-5GNKFQAL-B2TngKRK.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Dqg0eBY0.js → diagram-KO2AKTUF-DQ61-HiV.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-C7vRP2Lb.js → diagram-LMA3HP47-By6qvgAT.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-B2sEPpPt.js → diagram-OG6HWLK6-ClVSEz-3.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-a4zIbzm8.js → erDiagram-TEJ5UH35-C9gFc5Fg.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BK9y89ya.js → flowDiagram-I6XJVG4X-BWPLLJ5-.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-wUQTSNvV.js → ganttDiagram-6RSMTGT7-C6RMacQQ.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Dnzt4SAi.js → gitGraphDiagram-PVQCEYII-LnqiWuka.js} +1 -1
- package/web-shell/assets/index---fOcMdS.js +1789 -0
- package/web-shell/assets/{index-BA3wUcKL.js → index-B9iqcrv0.js} +1 -1
- package/web-shell/assets/index-BIGQygTL.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DcaoToij.js → infoDiagram-5YYISTIA-Bc4iS8YB.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DzduqhP2.js → ishikawaDiagram-YF4QCWOH-9pH4Dpnd.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BvviZR_O.js → journeyDiagram-JHISSGLW-C-YMnw2W.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-Efm2JxY3.js → kanban-definition-UN3LZRKU-D-PaAIp-.js} +1 -1
- package/web-shell/assets/{linear-DtY3IbOs.js → linear-DpLgI2kt.js} +1 -1
- package/web-shell/assets/{mermaid.core-PzpFqoMe.js → mermaid.core-nZbOHGxx.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BLlTkHS0.js → mindmap-definition-RKZ34NQL-Dq0xxnET.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-D-mKF-jE.js → pieDiagram-4H26LBE5-ctqG2eeF.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DYCzslGm.js → quadrantDiagram-W4KKPZXB-MivToddn.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-Dfpxlk7R.js → requirementDiagram-4Y6WPE33-DrLLnkpQ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-D5cRaaxh.js → sankeyDiagram-5OEKKPKP-sYdYhdpV.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-s04DReiS.js → sequenceDiagram-3UESZ5HK-CuvhxDOs.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-01UNFgnb.js → stateDiagram-AJRCARHV-BLZgbV7Q.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DR_gXrIC.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-DX8_wZBC.js → timeline-definition-PNZ67QCA-lNr2Uz_Q.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BK0FlBme.js → vennDiagram-CIIHVFJN-CoaexGVO.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-DkPc9UlD.js → wardley-L42UT6IY-DG1vhGKA.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DNKkpDAo.js → wardleyDiagram-YWT4CUSO-CqNjF5xC.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CiPwg8QG.js → xychartDiagram-2RQKCTM6-BXg1gx3C.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/agent-headless-HYEHZFH6.js +0 -86
- package/chunks/bridge-FHINXZMN.js +0 -103
- package/chunks/channel-settings-store-OXYG5S5X.js +0 -101
- package/chunks/chunk-I5VM3SKY.js +0 -451
- package/chunks/chunk-PDPFQ2FO.js +0 -156
- package/chunks/daemon-status-provider-L3J6GKCT.js +0 -102
- package/chunks/daemon-trust-policy-4PHPY23S.js +0 -98
- package/chunks/exitPlanMode-RWJR2KGB.js +0 -84
- package/chunks/handleAutoUpdate-NHFSGYTF.js +0 -93
- package/chunks/initializer-Y5DJLT43.js +0 -99
- package/chunks/list-YHNQ32CS.js +0 -102
- package/chunks/loadedSettingsAdapter-GHUQK7H4.js +0 -96
- package/chunks/mcp-EA3KO6FS.js +0 -96
- package/chunks/nonInteractiveCli-NNOR56HU.js +0 -162
- package/chunks/read-file-KKTXGIZD.js +0 -32
- package/chunks/ripGrep-SJVAAYDV.js +0 -84
- package/chunks/serve-IH4XR5IL.js +0 -106
- package/chunks/spawnChannel-UAQMH6Y6.js +0 -94
- package/chunks/theme-manager-ZNDGAHJN.js +0 -88
- package/chunks/total-session-admission-66UDSOHO.js +0 -98
- package/chunks/workspace-providers-status-K22B3Z6B.js +0 -99
- package/chunks/workspace-skills-status-DDYCBVSH.js +0 -99
- package/chunks/write-file-TT6MWIKC.js +0 -86
- 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/index-BjC3yjjL.css +0 -5
- package/web-shell/assets/index-QzFq6w7o.js +0 -1775
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DXb5olqv.js +0 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
staleArgsWarning,
|
|
9
9
|
validateAuthMethod,
|
|
10
10
|
writeSkillArgs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-US7J7LJT.js";
|
|
12
12
|
import {
|
|
13
13
|
calculateCost,
|
|
14
14
|
computeSessionStats,
|
|
@@ -17,7 +17,11 @@ import {
|
|
|
17
17
|
findInlineMathExpressions,
|
|
18
18
|
getSystemInfoFields,
|
|
19
19
|
levelLabel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ARSQPRYL.js";
|
|
21
|
+
import {
|
|
22
|
+
formatDuration,
|
|
23
|
+
formatTokenCount
|
|
24
|
+
} from "./chunk-3SH53ANB.js";
|
|
21
25
|
import {
|
|
22
26
|
isKittyProtocolEnabled
|
|
23
27
|
} from "./chunk-NYX53SV4.js";
|
|
@@ -25,33 +29,32 @@ import {
|
|
|
25
29
|
VSCODE_SHIFT_ENTER_SEQUENCE,
|
|
26
30
|
isWaylandSession,
|
|
27
31
|
writeOsc52
|
|
28
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NW2GIPG3.js";
|
|
29
33
|
import {
|
|
30
34
|
contextCommand
|
|
31
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-655DWW7X.js";
|
|
32
36
|
import {
|
|
33
37
|
themeManager
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
rollbackStandaloneUpdate
|
|
37
|
-
} from "./chunk-URKIBIFC.js";
|
|
38
|
+
} from "./chunk-OYWVIXHT.js";
|
|
38
39
|
import {
|
|
39
40
|
getErrorMessage as getErrorMessage2
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ADM4C4TX.js";
|
|
42
|
+
import {
|
|
43
|
+
rollbackStandaloneUpdate
|
|
44
|
+
} from "./chunk-2QHWLRQ2.js";
|
|
41
45
|
import {
|
|
42
46
|
GITHUB_WORKFLOW_PATHS,
|
|
43
47
|
INSIGHT_CSS,
|
|
44
48
|
INSIGHT_JS,
|
|
45
49
|
collectSessionData,
|
|
46
50
|
generateExportFilename,
|
|
47
|
-
installGoalTerminalObserver,
|
|
48
51
|
normalizeSessionData,
|
|
49
52
|
setupGithub,
|
|
50
53
|
toHtml,
|
|
51
54
|
toJson,
|
|
52
55
|
toJsonl,
|
|
53
56
|
toMarkdown
|
|
54
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WZRLXVLJ.js";
|
|
55
58
|
import {
|
|
56
59
|
stripUnsafeCharacters,
|
|
57
60
|
toCodePoints,
|
|
@@ -67,20 +70,16 @@ import {
|
|
|
67
70
|
isVoiceEnabled,
|
|
68
71
|
readVoiceMode,
|
|
69
72
|
readVoiceModel
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-MNUKNVYQ.js";
|
|
71
74
|
import {
|
|
72
75
|
getExtendedSystemInfo,
|
|
73
76
|
getGitVersion,
|
|
74
77
|
getNpmVersion
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import {
|
|
77
|
-
formatDuration,
|
|
78
|
-
formatTokenCount
|
|
79
|
-
} from "./chunk-3SH53ANB.js";
|
|
78
|
+
} from "./chunk-3NBTNFNC.js";
|
|
80
79
|
import {
|
|
81
80
|
isInlineModelOverrideAllowed,
|
|
82
81
|
parseAcpModelOption
|
|
83
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BBCGHZ4S.js";
|
|
84
83
|
import {
|
|
85
84
|
OUTPUT_LANGUAGE_AUTO,
|
|
86
85
|
getAllSettingKeys,
|
|
@@ -92,12 +91,12 @@ import {
|
|
|
92
91
|
resolveOutputLanguageOrPreserveAuto,
|
|
93
92
|
validateSettingValue,
|
|
94
93
|
writeOutputLanguageAndRegisterPath
|
|
95
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-3ER3FWZM.js";
|
|
96
95
|
import {
|
|
97
96
|
getCurrentLanguage,
|
|
98
97
|
setLanguageAsync,
|
|
99
98
|
t
|
|
100
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-YYIOFWVH.js";
|
|
101
100
|
import {
|
|
102
101
|
SUPPORTED_LANGUAGES,
|
|
103
102
|
getSupportedLanguageIds,
|
|
@@ -105,11 +104,11 @@ import {
|
|
|
105
104
|
} from "./chunk-5EJZE3FP.js";
|
|
106
105
|
import {
|
|
107
106
|
getInstallationInfo
|
|
108
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-F5BD3RNA.js";
|
|
109
108
|
import {
|
|
110
109
|
isFolderTrustEnabled,
|
|
111
110
|
loadTrustedFolders
|
|
112
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-7WROZ3E6.js";
|
|
113
112
|
import {
|
|
114
113
|
require_strip_json_comments
|
|
115
114
|
} from "./chunk-NPQ5ZKRP.js";
|
|
@@ -125,6 +124,7 @@ import {
|
|
|
125
124
|
SESSION_TITLE_MAX_LENGTH,
|
|
126
125
|
SessionService,
|
|
127
126
|
ShellExecutionService,
|
|
127
|
+
analyzeToolResultRetention,
|
|
128
128
|
appendToLastTextPart,
|
|
129
129
|
buildBackgroundEntryLabel,
|
|
130
130
|
buildBareRememberPrompt,
|
|
@@ -145,13 +145,11 @@ import {
|
|
|
145
145
|
flatMapTextParts,
|
|
146
146
|
formatMemoryUsage,
|
|
147
147
|
generateSessionRecap,
|
|
148
|
-
getActiveGoal,
|
|
149
148
|
getArenaSystemReminder,
|
|
150
149
|
getExtensionDescription,
|
|
151
150
|
getExtensionDisplayName,
|
|
152
151
|
getIdeInstaller,
|
|
153
152
|
getInsightPrompt,
|
|
154
|
-
getLastGoalTerminal,
|
|
155
153
|
getMCPServerPrompts,
|
|
156
154
|
getPlanModeSystemReminder,
|
|
157
155
|
getProjectSummaryPrompt,
|
|
@@ -169,7 +167,6 @@ import {
|
|
|
169
167
|
listWorkflowSnapshots,
|
|
170
168
|
loadServerHierarchicalMemory,
|
|
171
169
|
normalizeClaudeMcpServer,
|
|
172
|
-
normalizeContent,
|
|
173
170
|
normalizeSkillPriority,
|
|
174
171
|
parseInstallSource,
|
|
175
172
|
parseLearnVideoInput,
|
|
@@ -177,19 +174,17 @@ import {
|
|
|
177
174
|
partToString,
|
|
178
175
|
persistSessionUsage,
|
|
179
176
|
readPathFromWorkspace,
|
|
180
|
-
redactUrlCredentials,
|
|
181
|
-
registerGoalHook,
|
|
182
177
|
require_toml,
|
|
178
|
+
resolveSlimmingConfig,
|
|
183
179
|
runForkedAgent,
|
|
184
|
-
tryGenerateSessionTitle
|
|
185
|
-
|
|
186
|
-
} from "./chunk-EI3NWELG.js";
|
|
180
|
+
tryGenerateSessionTitle
|
|
181
|
+
} from "./chunk-MSSNVG2G.js";
|
|
187
182
|
import {
|
|
188
183
|
external_exports
|
|
189
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-CQ35AJ4Z.js";
|
|
190
185
|
import {
|
|
191
186
|
resolveModelId
|
|
192
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-5C42HXEX.js";
|
|
193
188
|
import {
|
|
194
189
|
getAutoSkillCuratorStatus,
|
|
195
190
|
parse,
|
|
@@ -197,24 +192,26 @@ import {
|
|
|
197
192
|
restoreArchivedAutoSkill,
|
|
198
193
|
runAutoSkillCurator,
|
|
199
194
|
setAutoSkillPinned
|
|
200
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-5RUCD4ED.js";
|
|
201
196
|
import {
|
|
202
197
|
HookEventName,
|
|
203
198
|
sanitizeUserPromptExpansionAdditionalContext
|
|
204
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-YBVVOSOH.js";
|
|
205
200
|
import {
|
|
201
|
+
GoalPersistenceUnavailableError,
|
|
202
|
+
emptyGoalSnapshot,
|
|
206
203
|
projectUserTranscriptForDisplay
|
|
207
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-DPTMKFIH.js";
|
|
208
205
|
import {
|
|
209
206
|
APPROVAL_MODES
|
|
210
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-63FNZTWG.js";
|
|
211
208
|
import {
|
|
212
209
|
resolveOpenAILogDir
|
|
213
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-3GM5DLBI.js";
|
|
214
211
|
import {
|
|
215
212
|
FORK_SUBAGENT_TYPE,
|
|
216
213
|
stripStartupContext
|
|
217
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-TTRH3RTQ.js";
|
|
218
215
|
import {
|
|
219
216
|
applySkillAllowedTools,
|
|
220
217
|
buildSkillLlmContent
|
|
@@ -228,6 +225,7 @@ import {
|
|
|
228
225
|
normalizeReasoningEffort
|
|
229
226
|
} from "./chunk-KM73TBQ4.js";
|
|
230
227
|
import {
|
|
228
|
+
COMBINED_PASS_TOLERANCE_FACTOR,
|
|
231
229
|
IdeConnectionEvent,
|
|
232
230
|
formatTokenUsageSummaryAsCsv,
|
|
233
231
|
formatTokenUsageSummaryAsJson,
|
|
@@ -239,17 +237,23 @@ import {
|
|
|
239
237
|
read,
|
|
240
238
|
recordSkillInvocation,
|
|
241
239
|
uiTelemetryService
|
|
242
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-4KM2SYK5.js";
|
|
243
241
|
import {
|
|
244
242
|
getAutoMemoryRoot
|
|
245
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-G6MUFRNI.js";
|
|
246
244
|
import {
|
|
247
245
|
runSideQuery
|
|
248
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-LSRI3ND3.js";
|
|
249
247
|
import {
|
|
248
|
+
ToolDisplayNamesMigration,
|
|
250
249
|
ToolNames,
|
|
250
|
+
canonicalToolName,
|
|
251
251
|
isShellProgressData
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-YIGGWOJE.js";
|
|
253
|
+
import {
|
|
254
|
+
normalizeContent,
|
|
255
|
+
redactUrlCredentials
|
|
256
|
+
} from "./chunk-N4SVADAV.js";
|
|
253
257
|
import {
|
|
254
258
|
Storage,
|
|
255
259
|
createDebugLogger,
|
|
@@ -258,12 +262,12 @@ import {
|
|
|
258
262
|
isSubpath,
|
|
259
263
|
resolvePath,
|
|
260
264
|
updateSymlink
|
|
261
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-HOSVOUDK.js";
|
|
262
266
|
import {
|
|
263
267
|
isCpuProfileRecording,
|
|
264
268
|
startCpuProfile,
|
|
265
269
|
stopCpuProfile
|
|
266
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-RYSBWLLV.js";
|
|
267
271
|
import {
|
|
268
272
|
init_esbuild_shims
|
|
269
273
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2053,7 +2057,7 @@ var approvalModeCommand = {
|
|
|
2053
2057
|
};
|
|
2054
2058
|
}
|
|
2055
2059
|
}
|
|
2056
|
-
const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-
|
|
2060
|
+
const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-KV2AANVG.js") : void 0;
|
|
2057
2061
|
if (config) {
|
|
2058
2062
|
try {
|
|
2059
2063
|
config.setApprovalMode(mode);
|
|
@@ -5090,6 +5094,7 @@ function formatMemoryDiagnostics(diagnostics) {
|
|
|
5090
5094
|
__name(formatMemoryDiagnostics, "formatMemoryDiagnostics");
|
|
5091
5095
|
|
|
5092
5096
|
// packages/cli/src/ui/commands/doctorCommand.ts
|
|
5097
|
+
var debugLogger6 = createDebugLogger("DOCTOR_MEMORY");
|
|
5093
5098
|
var MEMORY_SUBCOMMAND = "memory";
|
|
5094
5099
|
var CPU_PROFILE_SUBCOMMAND = "cpu-profile";
|
|
5095
5100
|
var ROLLBACK_SUBCOMMAND = "rollback";
|
|
@@ -5162,6 +5167,12 @@ var doctorCommand = {
|
|
|
5162
5167
|
return;
|
|
5163
5168
|
}
|
|
5164
5169
|
let report = formatMemoryDiagnostics(diagnostics);
|
|
5170
|
+
const toolResultRetention = collectToolResultRetention(context);
|
|
5171
|
+
if (toolResultRetention) {
|
|
5172
|
+
report = `${report}
|
|
5173
|
+
|
|
5174
|
+
${formatToolResultRetention(toolResultRetention)}`;
|
|
5175
|
+
}
|
|
5165
5176
|
let messageType = "info";
|
|
5166
5177
|
let heapSnapshotWritten = false;
|
|
5167
5178
|
if (abortSignal?.aborted) {
|
|
@@ -5354,10 +5365,20 @@ async function memoryDoctorAction(context, args = "") {
|
|
|
5354
5365
|
if (context.abortSignal?.aborted) {
|
|
5355
5366
|
return;
|
|
5356
5367
|
}
|
|
5368
|
+
const toolResultRetention = collectToolResultRetention(context);
|
|
5357
5369
|
return {
|
|
5358
5370
|
type: "message",
|
|
5359
5371
|
messageType: diagnostics.analysis.risks.length > 0 ? "warning" : "info",
|
|
5360
|
-
content: tokens.includes("--json") ? JSON.stringify(
|
|
5372
|
+
content: tokens.includes("--json") ? JSON.stringify(
|
|
5373
|
+
{
|
|
5374
|
+
...diagnostics,
|
|
5375
|
+
...toolResultRetention ? { toolResultRetention } : {}
|
|
5376
|
+
},
|
|
5377
|
+
null,
|
|
5378
|
+
2
|
|
5379
|
+
) : formatCoreDiagnostics(diagnostics) + (toolResultRetention ? `
|
|
5380
|
+
|
|
5381
|
+
${formatToolResultRetention(toolResultRetention)}` : "")
|
|
5361
5382
|
};
|
|
5362
5383
|
} catch (error) {
|
|
5363
5384
|
if (context.abortSignal?.aborted) {
|
|
@@ -5437,6 +5458,81 @@ function formatCoreDiagnostics(diagnostics) {
|
|
|
5437
5458
|
return lines.join("\n");
|
|
5438
5459
|
}
|
|
5439
5460
|
__name(formatCoreDiagnostics, "formatCoreDiagnostics");
|
|
5461
|
+
function collectToolResultRetention(context) {
|
|
5462
|
+
try {
|
|
5463
|
+
const config = context.services.config;
|
|
5464
|
+
const history = config?.getGeminiClient()?.getHistoryShallow();
|
|
5465
|
+
if (!history) {
|
|
5466
|
+
return null;
|
|
5467
|
+
}
|
|
5468
|
+
const resolveToolBudgetChars = /* @__PURE__ */ __name((name) => config?.getToolRegistry?.()?.getTool(canonicalToolName(name))?.maxOutputChars, "resolveToolBudgetChars");
|
|
5469
|
+
const displayNameBudgets = /* @__PURE__ */ new Map();
|
|
5470
|
+
for (const tool of config?.getToolRegistry?.()?.getAllTools() ?? []) {
|
|
5471
|
+
if (tool.displayName) {
|
|
5472
|
+
displayNameBudgets.set(tool.displayName, tool.maxOutputChars);
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5475
|
+
const stats = analyzeToolResultRetention(history, {
|
|
5476
|
+
// Compare each result against its own tool's declared budget (mirroring
|
|
5477
|
+
// the scheduler), so compliant high-budget results (e.g. MCP) are not
|
|
5478
|
+
// flagged; tools declaring none fall back to the configured global
|
|
5479
|
+
// threshold — the bound the scheduler applies to them.
|
|
5480
|
+
resolveToolBudgetChars,
|
|
5481
|
+
thresholdChars: config?.getTruncateToolOutputThreshold?.(),
|
|
5482
|
+
imageTokenEstimate: resolveSlimmingConfig(config?.getChatCompression?.()).imageTokenEstimate
|
|
5483
|
+
});
|
|
5484
|
+
const threshold = config?.getTruncateToolOutputThreshold?.() ?? stats.oversizedThresholdChars;
|
|
5485
|
+
let largeOutputsInUIHistory = 0;
|
|
5486
|
+
for (const item of context.ui.history ?? []) {
|
|
5487
|
+
if (item.type !== "tool_group") {
|
|
5488
|
+
continue;
|
|
5489
|
+
}
|
|
5490
|
+
for (const tool of item.tools) {
|
|
5491
|
+
if (typeof tool.resultDisplay !== "string") {
|
|
5492
|
+
continue;
|
|
5493
|
+
}
|
|
5494
|
+
const migratedName = ToolDisplayNamesMigration[tool.name] ?? tool.name;
|
|
5495
|
+
const budget = displayNameBudgets.get(tool.name) ?? displayNameBudgets.get(migratedName) ?? resolveToolBudgetChars(tool.name) ?? threshold;
|
|
5496
|
+
if (Number.isFinite(budget) && tool.resultDisplay.length > budget * COMBINED_PASS_TOLERANCE_FACTOR) {
|
|
5497
|
+
largeOutputsInUIHistory += 1;
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
}
|
|
5501
|
+
return {
|
|
5502
|
+
...stats,
|
|
5503
|
+
largeOutputsInUIHistory,
|
|
5504
|
+
// Derived assumption: compression reads the live history by reference
|
|
5505
|
+
// (getHistoryShallow; see chatCompressionService). If compression input
|
|
5506
|
+
// assembly ever changes to copy or filter history, this derivation must
|
|
5507
|
+
// be revisited.
|
|
5508
|
+
presentInCompressionInput: stats.oversizedResultCount > 0
|
|
5509
|
+
};
|
|
5510
|
+
} catch (error) {
|
|
5511
|
+
debugLogger6.warn(
|
|
5512
|
+
`Tool result retention diagnostics unavailable: ${formatErrorMessage2(error)}`
|
|
5513
|
+
);
|
|
5514
|
+
return null;
|
|
5515
|
+
}
|
|
5516
|
+
}
|
|
5517
|
+
__name(collectToolResultRetention, "collectToolResultRetention");
|
|
5518
|
+
function formatToolResultRetention(stats) {
|
|
5519
|
+
const lines = [
|
|
5520
|
+
"Tool result retention",
|
|
5521
|
+
` Tool results in history: ${stats.toolResultCount}`,
|
|
5522
|
+
` Total retained: ${stats.totalChars} chars`,
|
|
5523
|
+
` Largest result: ${stats.largestResultChars} chars`,
|
|
5524
|
+
` Oversized results (above tool budget): ${stats.oversizedResultCount}`,
|
|
5525
|
+
` Oversized also rendered in UI history: ${stats.largeOutputsInUIHistory} item(s)`,
|
|
5526
|
+
` Oversized also in compression input: ${stats.presentInCompressionInput ? "yes (shared by reference, no extra copy)" : "no"}`
|
|
5527
|
+
];
|
|
5528
|
+
if (stats.oversizedResultCount > 0) {
|
|
5529
|
+
lines.push(
|
|
5530
|
+
" Hint: oversized tool results stay in context and tax every later turn; /compress can reclaim space."
|
|
5531
|
+
);
|
|
5532
|
+
}
|
|
5533
|
+
return lines.join("\n");
|
|
5534
|
+
}
|
|
5535
|
+
__name(formatToolResultRetention, "formatToolResultRetention");
|
|
5440
5536
|
var CPU_PROFILE_USAGE_HINT = "/doctor cpu-profile [--duration <seconds>]";
|
|
5441
5537
|
var DEFAULT_CPU_PROFILE_DURATION_SEC = 30;
|
|
5442
5538
|
var MAX_CPU_PROFILE_DURATION_SEC = 300;
|
|
@@ -5646,6 +5742,38 @@ var editorCommand = {
|
|
|
5646
5742
|
|
|
5647
5743
|
// packages/cli/src/ui/commands/effort-command.ts
|
|
5648
5744
|
init_esbuild_shims();
|
|
5745
|
+
|
|
5746
|
+
// packages/cli/src/ui/commands/effort-utils.ts
|
|
5747
|
+
init_esbuild_shims();
|
|
5748
|
+
function formatEffortChangeMessage(config, tier) {
|
|
5749
|
+
if (config.getReasoningEffort() !== tier) {
|
|
5750
|
+
const override2 = config.getReasoningEffortOverride?.();
|
|
5751
|
+
if (override2) {
|
|
5752
|
+
return t(
|
|
5753
|
+
"Reasoning effort set to {{tier}}, but thinking is currently disabled; after thinking is re-enabled, {{source}}.{{field}} will still have higher priority.",
|
|
5754
|
+
{ tier, source: override2.source, field: override2.field }
|
|
5755
|
+
);
|
|
5756
|
+
}
|
|
5757
|
+
return t(
|
|
5758
|
+
"Reasoning effort set to {{tier}}, but thinking is currently disabled \u2014 it will take effect when thinking is re-enabled.",
|
|
5759
|
+
{ tier }
|
|
5760
|
+
);
|
|
5761
|
+
}
|
|
5762
|
+
const override = config.getReasoningEffortOverride?.();
|
|
5763
|
+
if (override) {
|
|
5764
|
+
return t(
|
|
5765
|
+
"Reasoning effort: {{tier}} requested, but {{source}}.{{field}} has higher priority for the active DashScope Qwen model; that configured value will remain effective.",
|
|
5766
|
+
{ tier, source: override.source, field: override.field }
|
|
5767
|
+
);
|
|
5768
|
+
}
|
|
5769
|
+
return t(
|
|
5770
|
+
"Reasoning effort: {{tier}} (requested; the effective tier depends on the active provider/model).",
|
|
5771
|
+
{ tier }
|
|
5772
|
+
);
|
|
5773
|
+
}
|
|
5774
|
+
__name(formatEffortChangeMessage, "formatEffortChangeMessage");
|
|
5775
|
+
|
|
5776
|
+
// packages/cli/src/ui/commands/effort-command.ts
|
|
5649
5777
|
var TIER_LIST = REASONING_EFFORT_TIERS.join(", ");
|
|
5650
5778
|
var effortCommand = {
|
|
5651
5779
|
name: "effort",
|
|
@@ -5709,29 +5837,16 @@ var effortCommand = {
|
|
|
5709
5837
|
content: t("Settings service not available.")
|
|
5710
5838
|
};
|
|
5711
5839
|
}
|
|
5712
|
-
|
|
5840
|
+
applyReasoningEffort(config, tier);
|
|
5713
5841
|
settings.setValue(
|
|
5714
5842
|
getPersistScopeForModelSelection(settings),
|
|
5715
5843
|
"model.reasoningEffort",
|
|
5716
5844
|
tier
|
|
5717
5845
|
);
|
|
5718
|
-
if (!applied) {
|
|
5719
|
-
return {
|
|
5720
|
-
type: "message",
|
|
5721
|
-
messageType: "info",
|
|
5722
|
-
content: t(
|
|
5723
|
-
"Reasoning effort set to {{tier}}, but thinking is currently disabled \u2014 it will take effect when thinking is re-enabled.",
|
|
5724
|
-
{ tier }
|
|
5725
|
-
)
|
|
5726
|
-
};
|
|
5727
|
-
}
|
|
5728
5846
|
return {
|
|
5729
5847
|
type: "message",
|
|
5730
5848
|
messageType: "info",
|
|
5731
|
-
content:
|
|
5732
|
-
"Reasoning effort: {{tier}} (requested; the effective tier depends on the active provider/model).",
|
|
5733
|
-
{ tier }
|
|
5734
|
-
)
|
|
5849
|
+
content: formatEffortChangeMessage(config, tier)
|
|
5735
5850
|
};
|
|
5736
5851
|
}, "action")
|
|
5737
5852
|
};
|
|
@@ -5741,7 +5856,7 @@ init_esbuild_shims();
|
|
|
5741
5856
|
import * as fs5 from "node:fs/promises";
|
|
5742
5857
|
import path5 from "node:path";
|
|
5743
5858
|
var EXPORT_DIR_OUT_OF_CWD = "Export directory must be within the project working directory.";
|
|
5744
|
-
var
|
|
5859
|
+
var debugLogger7 = createDebugLogger("EXPORT_COMMAND");
|
|
5745
5860
|
function formatExportTargetContext(target) {
|
|
5746
5861
|
return `target: "${target.outputDir}", cwd: "${target.resolvedCwd}"`;
|
|
5747
5862
|
}
|
|
@@ -5770,7 +5885,7 @@ function resolveExportTarget(cwd, args, extension) {
|
|
|
5770
5885
|
}
|
|
5771
5886
|
__name(resolveExportTarget, "resolveExportTarget");
|
|
5772
5887
|
async function validateExportTargetWithinCwd(target) {
|
|
5773
|
-
|
|
5888
|
+
debugLogger7.debug(
|
|
5774
5889
|
"Validating export target realpath:",
|
|
5775
5890
|
formatExportTargetContext(target)
|
|
5776
5891
|
);
|
|
@@ -5783,7 +5898,7 @@ async function validateExportTargetWithinCwd(target) {
|
|
|
5783
5898
|
]);
|
|
5784
5899
|
} catch (error) {
|
|
5785
5900
|
if (error.code === "ENOENT") {
|
|
5786
|
-
|
|
5901
|
+
debugLogger7.debug(
|
|
5787
5902
|
"Export target realpath validation failed: missing path",
|
|
5788
5903
|
formatExportTargetContext(target)
|
|
5789
5904
|
);
|
|
@@ -5798,7 +5913,7 @@ async function validateExportTargetWithinCwd(target) {
|
|
|
5798
5913
|
throw error;
|
|
5799
5914
|
}
|
|
5800
5915
|
if (!isSubpath(realCwd, realOutputDir)) {
|
|
5801
|
-
|
|
5916
|
+
debugLogger7.debug("Export target realpath escaped cwd:", {
|
|
5802
5917
|
realCwd,
|
|
5803
5918
|
realOutputDir,
|
|
5804
5919
|
target
|
|
@@ -5816,21 +5931,21 @@ async function validateExportTargetWithinCwd(target) {
|
|
|
5816
5931
|
__name(validateExportTargetWithinCwd, "validateExportTargetWithinCwd");
|
|
5817
5932
|
async function realpathNearestExisting(outputDir, resolvedCwd) {
|
|
5818
5933
|
let currentPath = outputDir;
|
|
5819
|
-
|
|
5934
|
+
debugLogger7.debug("Resolving nearest existing export parent:", {
|
|
5820
5935
|
outputDir,
|
|
5821
5936
|
resolvedCwd
|
|
5822
5937
|
});
|
|
5823
5938
|
while (isSubpath(resolvedCwd, currentPath)) {
|
|
5824
5939
|
try {
|
|
5825
5940
|
const realCurrentPath = await fs5.realpath(currentPath);
|
|
5826
|
-
|
|
5941
|
+
debugLogger7.debug("Resolved nearest existing export parent:", {
|
|
5827
5942
|
currentPath,
|
|
5828
5943
|
realCurrentPath
|
|
5829
5944
|
});
|
|
5830
5945
|
return realCurrentPath;
|
|
5831
5946
|
} catch (error) {
|
|
5832
5947
|
if (error.code !== "ENOENT") {
|
|
5833
|
-
|
|
5948
|
+
debugLogger7.debug("Failed to resolve existing export parent:", error);
|
|
5834
5949
|
throw error;
|
|
5835
5950
|
}
|
|
5836
5951
|
const parentPath = path5.dirname(currentPath);
|
|
@@ -5844,7 +5959,7 @@ async function realpathNearestExisting(outputDir, resolvedCwd) {
|
|
|
5844
5959
|
}
|
|
5845
5960
|
__name(realpathNearestExisting, "realpathNearestExisting");
|
|
5846
5961
|
async function validateExistingExportParentWithinCwd(target) {
|
|
5847
|
-
|
|
5962
|
+
debugLogger7.debug(
|
|
5848
5963
|
"Validating existing export parent realpath:",
|
|
5849
5964
|
formatExportTargetContext(target)
|
|
5850
5965
|
);
|
|
@@ -5862,7 +5977,7 @@ async function validateExistingExportParentWithinCwd(target) {
|
|
|
5862
5977
|
target.resolvedCwd
|
|
5863
5978
|
);
|
|
5864
5979
|
if (!isSubpath(realCwd, realExistingParent)) {
|
|
5865
|
-
|
|
5980
|
+
debugLogger7.debug("Existing export parent escaped cwd:", {
|
|
5866
5981
|
realCwd,
|
|
5867
5982
|
realExistingParent,
|
|
5868
5983
|
target
|
|
@@ -5898,7 +6013,7 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5898
6013
|
}
|
|
5899
6014
|
const target = resolveExportTarget(cwd, args, exportFormat.extension);
|
|
5900
6015
|
const targetFilepath = target.filepath;
|
|
5901
|
-
|
|
6016
|
+
debugLogger7.debug("Resolved export target:", {
|
|
5902
6017
|
format: exportFormat.displayName,
|
|
5903
6018
|
cwd,
|
|
5904
6019
|
outputDirArg: args.trim(),
|
|
@@ -5907,7 +6022,7 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5907
6022
|
filepath: target.filepath
|
|
5908
6023
|
});
|
|
5909
6024
|
if (!target.isInsideCwd) {
|
|
5910
|
-
|
|
6025
|
+
debugLogger7.debug(
|
|
5911
6026
|
"Export target rejected before realpath validation:",
|
|
5912
6027
|
formatExportTargetContext(target)
|
|
5913
6028
|
);
|
|
@@ -5924,17 +6039,17 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5924
6039
|
if (initialValidationError) {
|
|
5925
6040
|
return initialValidationError;
|
|
5926
6041
|
}
|
|
5927
|
-
|
|
6042
|
+
debugLogger7.debug("Export target validation passed:", {
|
|
5928
6043
|
format: exportFormat.displayName,
|
|
5929
6044
|
outputDir: target.outputDir,
|
|
5930
6045
|
outputDirKind: target.outputDirKind
|
|
5931
6046
|
});
|
|
5932
6047
|
const sessionService = new SessionService(cwd);
|
|
5933
6048
|
const sessionId = config.getSessionId();
|
|
5934
|
-
|
|
6049
|
+
debugLogger7.debug("Loading session for export:", { sessionId, cwd });
|
|
5935
6050
|
const sessionData = await sessionService.loadSession(sessionId);
|
|
5936
6051
|
if (!sessionData) {
|
|
5937
|
-
|
|
6052
|
+
debugLogger7.debug("No active session found for export:", {
|
|
5938
6053
|
sessionId,
|
|
5939
6054
|
cwd
|
|
5940
6055
|
});
|
|
@@ -5954,12 +6069,12 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5954
6069
|
const content = exportFormat.format(normalizedData);
|
|
5955
6070
|
if (target.outputDirKind === "custom") {
|
|
5956
6071
|
try {
|
|
5957
|
-
|
|
6072
|
+
debugLogger7.debug("Creating export directory:", {
|
|
5958
6073
|
outputDir: target.outputDir
|
|
5959
6074
|
});
|
|
5960
6075
|
await fs5.mkdir(target.outputDir, { recursive: true, mode: 448 });
|
|
5961
6076
|
} catch (error) {
|
|
5962
|
-
|
|
6077
|
+
debugLogger7.debug("Failed to create export directory:", error);
|
|
5963
6078
|
return {
|
|
5964
6079
|
type: "message",
|
|
5965
6080
|
messageType: "error",
|
|
@@ -5973,7 +6088,7 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5973
6088
|
return writeValidationError;
|
|
5974
6089
|
}
|
|
5975
6090
|
} catch (error) {
|
|
5976
|
-
|
|
6091
|
+
debugLogger7.debug("Export path validation failed before write:", error);
|
|
5977
6092
|
return {
|
|
5978
6093
|
type: "message",
|
|
5979
6094
|
messageType: "error",
|
|
@@ -5981,7 +6096,7 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5981
6096
|
};
|
|
5982
6097
|
}
|
|
5983
6098
|
try {
|
|
5984
|
-
|
|
6099
|
+
debugLogger7.debug("Writing export file:", {
|
|
5985
6100
|
format: exportFormat.displayName,
|
|
5986
6101
|
filepath: target.filepath
|
|
5987
6102
|
});
|
|
@@ -5990,17 +6105,17 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
5990
6105
|
mode: 384
|
|
5991
6106
|
});
|
|
5992
6107
|
await fs5.chmod(target.filepath, 384).catch((error) => {
|
|
5993
|
-
|
|
6108
|
+
debugLogger7.debug("Failed to tighten export file permissions:", error);
|
|
5994
6109
|
});
|
|
5995
6110
|
} catch (error) {
|
|
5996
|
-
|
|
6111
|
+
debugLogger7.debug("Failed to write export file:", error);
|
|
5997
6112
|
return {
|
|
5998
6113
|
type: "message",
|
|
5999
6114
|
messageType: "error",
|
|
6000
6115
|
content: `Failed to export session: ${error instanceof Error ? error.message : String(error)} (${exportFormat.displayName} target: "${targetFilepath}")`
|
|
6001
6116
|
};
|
|
6002
6117
|
}
|
|
6003
|
-
|
|
6118
|
+
debugLogger7.debug("Session export completed:", {
|
|
6004
6119
|
format: exportFormat.displayName,
|
|
6005
6120
|
filepath: target.filepath
|
|
6006
6121
|
});
|
|
@@ -6010,7 +6125,7 @@ async function exportSessionAction(context, args, exportFormat) {
|
|
|
6010
6125
|
content: `Session exported to ${exportFormat.displayName}: ${target.displayPath}`
|
|
6011
6126
|
};
|
|
6012
6127
|
} catch (error) {
|
|
6013
|
-
|
|
6128
|
+
debugLogger7.debug("Session export failed:", {
|
|
6014
6129
|
format: exportFormat.displayName,
|
|
6015
6130
|
target,
|
|
6016
6131
|
error
|
|
@@ -6106,7 +6221,7 @@ var exportCommand = {
|
|
|
6106
6221
|
|
|
6107
6222
|
// packages/cli/src/ui/commands/forkCommand.ts
|
|
6108
6223
|
init_esbuild_shims();
|
|
6109
|
-
var
|
|
6224
|
+
var debugLogger8 = createDebugLogger("FORK_COMMAND");
|
|
6110
6225
|
function deriveForkDescription(directive) {
|
|
6111
6226
|
const oneLine = directive.replace(/\s+/g, " ").trim();
|
|
6112
6227
|
return oneLine.length > 60 ? `${oneLine.slice(0, 57)}\u2026` : oneLine;
|
|
@@ -6162,7 +6277,7 @@ var forkCommand = {
|
|
|
6162
6277
|
try {
|
|
6163
6278
|
hasHistory = (config.getGeminiClient().getHistoryShallow() ?? []).length > 0;
|
|
6164
6279
|
} catch (error) {
|
|
6165
|
-
|
|
6280
|
+
debugLogger8.debug("Failed to read history before /fork:", error);
|
|
6166
6281
|
hasHistory = false;
|
|
6167
6282
|
}
|
|
6168
6283
|
if (!hasHistory) {
|
|
@@ -6222,7 +6337,7 @@ var forkCommand = {
|
|
|
6222
6337
|
]
|
|
6223
6338
|
});
|
|
6224
6339
|
} catch (error) {
|
|
6225
|
-
|
|
6340
|
+
debugLogger8.debug("Failed to record fork event in history:", error);
|
|
6226
6341
|
}
|
|
6227
6342
|
return {
|
|
6228
6343
|
type: "message",
|
|
@@ -6236,7 +6351,7 @@ var forkCommand = {
|
|
|
6236
6351
|
|
|
6237
6352
|
// packages/cli/src/ui/commands/extensionsCommand.ts
|
|
6238
6353
|
init_esbuild_shims();
|
|
6239
|
-
var
|
|
6354
|
+
var debugLogger9 = createDebugLogger("EXTENSIONS_COMMAND");
|
|
6240
6355
|
var EXTENSION_EXPLORE_URL = {
|
|
6241
6356
|
Gemini: "https://geminicli.com/extensions/",
|
|
6242
6357
|
ClaudeCode: "https://claudemarketplaces.com/"
|
|
@@ -6399,7 +6514,7 @@ async function installAction(context, args) {
|
|
|
6399
6514
|
}
|
|
6400
6515
|
const extensionManager = context.services.config?.getExtensionManager();
|
|
6401
6516
|
if (!(extensionManager instanceof ExtensionManager)) {
|
|
6402
|
-
|
|
6517
|
+
debugLogger9.error(
|
|
6403
6518
|
`Cannot ${context.invocation?.name} extensions in this environment`
|
|
6404
6519
|
);
|
|
6405
6520
|
return;
|
|
@@ -6544,140 +6659,6 @@ var CLEAR_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
6544
6659
|
"none",
|
|
6545
6660
|
"cancel"
|
|
6546
6661
|
]);
|
|
6547
|
-
function formatLegacyTurns(count) {
|
|
6548
|
-
return `${count} ${count === 1 ? "turn" : "turns"}`;
|
|
6549
|
-
}
|
|
6550
|
-
__name(formatLegacyTurns, "formatLegacyTurns");
|
|
6551
|
-
function assertNeverTerminalKind(kind) {
|
|
6552
|
-
throw new Error(`Unexpected GoalTerminalKind: ${kind}`);
|
|
6553
|
-
}
|
|
6554
|
-
__name(assertNeverTerminalKind, "assertNeverTerminalKind");
|
|
6555
|
-
function formatLegacyTerminalSummary(event) {
|
|
6556
|
-
let title;
|
|
6557
|
-
switch (event.kind) {
|
|
6558
|
-
case "achieved":
|
|
6559
|
-
title = "Goal achieved";
|
|
6560
|
-
break;
|
|
6561
|
-
case "failed":
|
|
6562
|
-
title = "Goal could not be achieved";
|
|
6563
|
-
break;
|
|
6564
|
-
case "aborted":
|
|
6565
|
-
title = "Goal aborted";
|
|
6566
|
-
break;
|
|
6567
|
-
default:
|
|
6568
|
-
title = assertNeverTerminalKind(event.kind);
|
|
6569
|
-
}
|
|
6570
|
-
const stats = [];
|
|
6571
|
-
if (event.iterations > 0) stats.push(formatLegacyTurns(event.iterations));
|
|
6572
|
-
if (typeof event.durationMs === "number") {
|
|
6573
|
-
stats.push(formatDuration(event.durationMs, { hideTrailingZeros: true }));
|
|
6574
|
-
}
|
|
6575
|
-
const subtitle = stats.length > 0 ? ` \xB7 ${stats.join(" \xB7 ")}` : "";
|
|
6576
|
-
const reason = event.lastReason?.trim();
|
|
6577
|
-
return `${title}${subtitle}
|
|
6578
|
-
Goal: ${event.condition}${reason ? `
|
|
6579
|
-
Last check: ${reason}` : ""}`;
|
|
6580
|
-
}
|
|
6581
|
-
__name(formatLegacyTerminalSummary, "formatLegacyTerminalSummary");
|
|
6582
|
-
async function runLegacyGoalCommand(context, args, explicitSet = false) {
|
|
6583
|
-
const { config } = context.services;
|
|
6584
|
-
if (!config) return errorMessage("Configuration is not available.");
|
|
6585
|
-
const sessionId = config.getSessionId();
|
|
6586
|
-
const objective = args.trim();
|
|
6587
|
-
if (!objective) {
|
|
6588
|
-
const active = getActiveGoal(sessionId);
|
|
6589
|
-
if (active) {
|
|
6590
|
-
const turns = active.iterations === 0 ? "not yet evaluated" : formatLegacyTurns(active.iterations);
|
|
6591
|
-
return {
|
|
6592
|
-
type: "message",
|
|
6593
|
-
messageType: "info",
|
|
6594
|
-
content: `Goal active: ${active.condition} (${turns})${active.lastReason ? `
|
|
6595
|
-
Last check: ${active.lastReason}` : ""}`
|
|
6596
|
-
};
|
|
6597
|
-
}
|
|
6598
|
-
const terminal = getLastGoalTerminal(sessionId);
|
|
6599
|
-
return {
|
|
6600
|
-
type: "message",
|
|
6601
|
-
messageType: "info",
|
|
6602
|
-
content: terminal ? formatLegacyTerminalSummary(terminal) : "No goal set. Usage: `/goal <condition>` (or `/goal clear`)."
|
|
6603
|
-
};
|
|
6604
|
-
}
|
|
6605
|
-
if (!explicitSet && CLEAR_KEYWORDS.has(objective.toLowerCase())) {
|
|
6606
|
-
const cleared = unregisterGoalHook(config, sessionId);
|
|
6607
|
-
if (!cleared) {
|
|
6608
|
-
return {
|
|
6609
|
-
type: "message",
|
|
6610
|
-
messageType: "info",
|
|
6611
|
-
content: "No goal set."
|
|
6612
|
-
};
|
|
6613
|
-
}
|
|
6614
|
-
const item = {
|
|
6615
|
-
type: "goal_status" /* GOAL_STATUS */,
|
|
6616
|
-
kind: "cleared",
|
|
6617
|
-
condition: cleared.condition,
|
|
6618
|
-
iterations: cleared.iterations,
|
|
6619
|
-
durationMs: Date.now() - cleared.setAt
|
|
6620
|
-
};
|
|
6621
|
-
context.ui.addItem(item, Date.now());
|
|
6622
|
-
return {
|
|
6623
|
-
type: "message",
|
|
6624
|
-
messageType: "info",
|
|
6625
|
-
content: `Goal cleared: ${cleared.condition}`
|
|
6626
|
-
};
|
|
6627
|
-
}
|
|
6628
|
-
if (!config.isTrustedFolder()) {
|
|
6629
|
-
return errorMessage(
|
|
6630
|
-
"/goal is only available in trusted workspaces. Trust this folder via `/trust` and try again."
|
|
6631
|
-
);
|
|
6632
|
-
}
|
|
6633
|
-
if (config.getDisableAllHooks()) {
|
|
6634
|
-
return errorMessage(
|
|
6635
|
-
"/goal is disabled because hooks are turned off in this session (`disableAllHooks` or bare mode)."
|
|
6636
|
-
);
|
|
6637
|
-
}
|
|
6638
|
-
if (!config.getHookSystem()) {
|
|
6639
|
-
return errorMessage(
|
|
6640
|
-
"Hook system is not initialized; cannot set a /goal in this session."
|
|
6641
|
-
);
|
|
6642
|
-
}
|
|
6643
|
-
let registered;
|
|
6644
|
-
try {
|
|
6645
|
-
registered = registerGoalHook({
|
|
6646
|
-
config,
|
|
6647
|
-
sessionId,
|
|
6648
|
-
condition: objective,
|
|
6649
|
-
tokensAtStart: 0
|
|
6650
|
-
});
|
|
6651
|
-
} catch (error) {
|
|
6652
|
-
return errorMessage(
|
|
6653
|
-
`Failed to set goal: ${error instanceof Error ? error.message : String(error)}`
|
|
6654
|
-
);
|
|
6655
|
-
}
|
|
6656
|
-
context.ui.addItem(
|
|
6657
|
-
{
|
|
6658
|
-
type: "goal_status" /* GOAL_STATUS */,
|
|
6659
|
-
kind: "set",
|
|
6660
|
-
condition: registered.condition,
|
|
6661
|
-
setAt: registered.setAt
|
|
6662
|
-
},
|
|
6663
|
-
Date.now()
|
|
6664
|
-
);
|
|
6665
|
-
installGoalTerminalObserver({
|
|
6666
|
-
sessionId,
|
|
6667
|
-
config,
|
|
6668
|
-
addItem: context.ui.addItem
|
|
6669
|
-
});
|
|
6670
|
-
const result = {
|
|
6671
|
-
type: "submit_prompt",
|
|
6672
|
-
content: [
|
|
6673
|
-
{
|
|
6674
|
-
text: `A session-scoped Stop hook is now active with condition: "${objective.replace(/[\r\n]+/g, " ").replace(/"/g, "'")}". Briefly acknowledge the goal, then immediately start (or continue) working toward it \u2014 treat the condition itself as your directive and do not pause to ask the user what to do. The hook will block stopping until the condition holds. It auto-clears once the condition is met \u2014 do not tell the user to run \`/goal clear\` after success; that is only for clearing a goal early.`
|
|
6675
|
-
}
|
|
6676
|
-
]
|
|
6677
|
-
};
|
|
6678
|
-
return result;
|
|
6679
|
-
}
|
|
6680
|
-
__name(runLegacyGoalCommand, "runLegacyGoalCommand");
|
|
6681
6662
|
function parseGoalCommand(args) {
|
|
6682
6663
|
let input = args.trim();
|
|
6683
6664
|
if (/^\/goal(?:\s|$)/i.test(input)) {
|
|
@@ -6723,22 +6704,6 @@ var goalCommand = {
|
|
|
6723
6704
|
kind: "built-in" /* BUILT_IN */,
|
|
6724
6705
|
supportedModes: ["interactive", "non_interactive", "acp"],
|
|
6725
6706
|
action: /* @__PURE__ */ __name(async (context, args) => {
|
|
6726
|
-
if (context.executionMode === "acp") {
|
|
6727
|
-
const operation2 = parseGoalCommand(args);
|
|
6728
|
-
if (operation2.kind === "error") return errorMessage(operation2.message);
|
|
6729
|
-
if (operation2.kind !== "status" && operation2.kind !== "clear" && operation2.kind !== "set") {
|
|
6730
|
-
return errorMessage(
|
|
6731
|
-
`'/goal ${operation2.kind}' is not available in ACP mode.`
|
|
6732
|
-
);
|
|
6733
|
-
}
|
|
6734
|
-
const explicitSet = operation2.kind === "set";
|
|
6735
|
-
const legacyArgs = explicitSet ? operation2.objective : args;
|
|
6736
|
-
return await runLegacyGoalCommand(context, legacyArgs, explicitSet) ?? {
|
|
6737
|
-
type: "message",
|
|
6738
|
-
messageType: "info",
|
|
6739
|
-
content: "Command executed successfully."
|
|
6740
|
-
};
|
|
6741
|
-
}
|
|
6742
6707
|
const { config } = context.services;
|
|
6743
6708
|
if (!config) return errorMessage("Configuration is not available.");
|
|
6744
6709
|
const operation = parseGoalCommand(args);
|
|
@@ -6749,8 +6714,18 @@ var goalCommand = {
|
|
|
6749
6714
|
"/goal is only available in trusted workspaces. Trust this folder via `/trust` and try again."
|
|
6750
6715
|
);
|
|
6751
6716
|
}
|
|
6717
|
+
let runtime;
|
|
6718
|
+
try {
|
|
6719
|
+
runtime = await config.getGoalRuntimeReady();
|
|
6720
|
+
} catch (error) {
|
|
6721
|
+
if (error instanceof GoalPersistenceUnavailableError && (operation.kind === "status" || operation.kind === "clear") && config.getChatRecordingService() === void 0) {
|
|
6722
|
+
return goalControl(operation, { snapshot: emptyGoalSnapshot() });
|
|
6723
|
+
}
|
|
6724
|
+
return errorMessage(
|
|
6725
|
+
error instanceof Error ? error.message : String(error)
|
|
6726
|
+
);
|
|
6727
|
+
}
|
|
6752
6728
|
try {
|
|
6753
|
-
const runtime = await config.getGoalRuntimeReady();
|
|
6754
6729
|
const snapshot = runtime.getSnapshot();
|
|
6755
6730
|
if (operation.kind === "status") {
|
|
6756
6731
|
return goalControl(operation, { snapshot });
|
|
@@ -6873,7 +6848,7 @@ var expandNowCommand = {
|
|
|
6873
6848
|
content: t("History is already expanded in this session.")
|
|
6874
6849
|
};
|
|
6875
6850
|
}
|
|
6876
|
-
const { expandCollapsedHistory } = await import("./resumeHistoryUtils-
|
|
6851
|
+
const { expandCollapsedHistory } = await import("./resumeHistoryUtils-7N2H4QCU.js");
|
|
6877
6852
|
const updated = expandCollapsedHistory(history);
|
|
6878
6853
|
loadHistory(updated);
|
|
6879
6854
|
refreshStatic();
|
|
@@ -8406,7 +8381,7 @@ Write the complete content to the \`${contextFileName}\` file. The output must b
|
|
|
8406
8381
|
|
|
8407
8382
|
// packages/cli/src/ui/commands/languageCommand.ts
|
|
8408
8383
|
init_esbuild_shims();
|
|
8409
|
-
var
|
|
8384
|
+
var debugLogger10 = createDebugLogger("LANGUAGE_COMMAND");
|
|
8410
8385
|
function getCurrentOutputLanguage(context) {
|
|
8411
8386
|
const settingValue = context?.services?.settings?.merged?.general?.outputLanguage || OUTPUT_LANGUAGE_AUTO;
|
|
8412
8387
|
const resolved = resolveOutputLanguageOrPreserveAuto(settingValue);
|
|
@@ -8474,7 +8449,7 @@ async function setUiLanguage(context, lang, scope = "User" /* User */) {
|
|
|
8474
8449
|
throwOnWriteFailure: true
|
|
8475
8450
|
});
|
|
8476
8451
|
} catch (error) {
|
|
8477
|
-
|
|
8452
|
+
debugLogger10.warn("Failed to save language setting:", error);
|
|
8478
8453
|
return {
|
|
8479
8454
|
type: "message",
|
|
8480
8455
|
messageType: "error",
|
|
@@ -8510,7 +8485,7 @@ async function setOutputLanguage(context, language) {
|
|
|
8510
8485
|
settingValue
|
|
8511
8486
|
);
|
|
8512
8487
|
} catch (error) {
|
|
8513
|
-
|
|
8488
|
+
debugLogger10.warn("Failed to save output language setting:", error);
|
|
8514
8489
|
}
|
|
8515
8490
|
}
|
|
8516
8491
|
const config = context.services.config;
|
|
@@ -8519,7 +8494,7 @@ async function setOutputLanguage(context, language) {
|
|
|
8519
8494
|
await config.refreshHierarchicalMemory();
|
|
8520
8495
|
await config.getGeminiClient().refreshSystemInstruction();
|
|
8521
8496
|
} catch (error) {
|
|
8522
|
-
|
|
8497
|
+
debugLogger10.warn(
|
|
8523
8498
|
"Failed to apply output language to running session:",
|
|
8524
8499
|
error
|
|
8525
8500
|
);
|
|
@@ -8875,6 +8850,23 @@ var FAST_MODEL_CONFIGURATION_HINT = "Configure models in settings.modelProviders
|
|
|
8875
8850
|
var VISION_MODEL_CONFIGURATION_HINT = "Configure an image-capable model in settings.modelProviders and ensure the required environment variables are set. Run /model --vision <model-id> to set it, or leave it unset to auto-pick a same-provider vision model.";
|
|
8876
8851
|
var COMPACTION_MODEL_CONFIGURATION_HINT = "Configure models in settings.modelProviders and ensure the required environment variables are set. In interactive mode, run /auth to configure or switch providers, or run /model --compaction without a model to choose from configured models.";
|
|
8877
8852
|
var IMAGE_MODEL_CONFIGURATION_HINT = "Configure a model with imageOnly: true, baseUrl, and envKey in settings.modelProviders. Run /model --image <model-id> to select it.";
|
|
8853
|
+
var MODEL_PICKER_FLAGS = [
|
|
8854
|
+
"fast",
|
|
8855
|
+
"voice",
|
|
8856
|
+
"vision",
|
|
8857
|
+
"compaction",
|
|
8858
|
+
"image",
|
|
8859
|
+
"project",
|
|
8860
|
+
"global"
|
|
8861
|
+
];
|
|
8862
|
+
var MODEL_PICKER_FLAG_PATTERN = `(?:${MODEL_PICKER_FLAGS.join("|")})`;
|
|
8863
|
+
var MODEL_PICKER_ONLY_PATTERN = new RegExp(
|
|
8864
|
+
`^(?:\\s*--${MODEL_PICKER_FLAG_PATTERN})*\\s*$`
|
|
8865
|
+
);
|
|
8866
|
+
function isPickerOnlyModelInvocation(args) {
|
|
8867
|
+
return MODEL_PICKER_ONLY_PATTERN.test(args);
|
|
8868
|
+
}
|
|
8869
|
+
__name(isPickerOnlyModelInvocation, "isPickerOnlyModelInvocation");
|
|
8878
8870
|
function parseScopeFlags(args) {
|
|
8879
8871
|
let scopeOverride;
|
|
8880
8872
|
let remaining = args;
|
|
@@ -9921,7 +9913,7 @@ init_esbuild_shims();
|
|
|
9921
9913
|
|
|
9922
9914
|
// packages/cli/src/config/extension-runtime-reload.ts
|
|
9923
9915
|
init_esbuild_shims();
|
|
9924
|
-
var
|
|
9916
|
+
var debugLogger11 = createDebugLogger("EXTENSION_RUNTIME_RELOAD");
|
|
9925
9917
|
async function reloadPluginsRuntime(options) {
|
|
9926
9918
|
if (options.config.isSafeMode()) {
|
|
9927
9919
|
throw new Error("Extension reload is disabled in safe mode.");
|
|
@@ -9941,7 +9933,7 @@ async function refreshExtensionContentRuntime(options) {
|
|
|
9941
9933
|
await manager.refreshCache();
|
|
9942
9934
|
} catch (error) {
|
|
9943
9935
|
errors.push(error);
|
|
9944
|
-
|
|
9936
|
+
debugLogger11.warn(
|
|
9945
9937
|
"refreshExtensionContentRuntime: refreshCache failed:",
|
|
9946
9938
|
error
|
|
9947
9939
|
);
|
|
@@ -9954,7 +9946,7 @@ async function refreshExtensionContentRuntime(options) {
|
|
|
9954
9946
|
for (const result of settled) {
|
|
9955
9947
|
if (result.status === "rejected") {
|
|
9956
9948
|
errors.push(result.reason);
|
|
9957
|
-
|
|
9949
|
+
debugLogger11.warn(
|
|
9958
9950
|
"refreshExtensionContentRuntime: a refresh leg failed:",
|
|
9959
9951
|
result.reason
|
|
9960
9952
|
);
|
|
@@ -10216,9 +10208,15 @@ var renameCommand = {
|
|
|
10216
10208
|
}, 500);
|
|
10217
10209
|
let outcome;
|
|
10218
10210
|
try {
|
|
10211
|
+
const userDisplayTexts = config.getChatRecordingService()?.getUserDisplayTextsForTitle?.() ?? [];
|
|
10212
|
+
const lastDisplayText = userDisplayTexts.at(-1)?.trim();
|
|
10213
|
+
const titleDisplayTexts = lastDisplayText?.match(
|
|
10214
|
+
/^\/(?:rename|tag)(?:\s+--auto)?$/i
|
|
10215
|
+
) ? userDisplayTexts.slice(0, -1) : userDisplayTexts;
|
|
10219
10216
|
outcome = await tryGenerateSessionTitle(
|
|
10220
10217
|
config,
|
|
10221
|
-
context.abortSignal ?? new AbortController().signal
|
|
10218
|
+
context.abortSignal ?? new AbortController().signal,
|
|
10219
|
+
titleDisplayTexts
|
|
10222
10220
|
);
|
|
10223
10221
|
} finally {
|
|
10224
10222
|
clearInterval(timer);
|
|
@@ -11757,7 +11755,7 @@ import * as os4 from "node:os";
|
|
|
11757
11755
|
import * as path13 from "node:path";
|
|
11758
11756
|
import { exec } from "node:child_process";
|
|
11759
11757
|
import { promisify } from "node:util";
|
|
11760
|
-
var
|
|
11758
|
+
var debugLogger12 = createDebugLogger("TERMINAL_SETUP");
|
|
11761
11759
|
var execAsync = promisify(exec);
|
|
11762
11760
|
function stripJsonComments2(content) {
|
|
11763
11761
|
return content.replace(/^\s*\/\/.*$/gm, "");
|
|
@@ -11790,7 +11788,7 @@ async function detectTerminal() {
|
|
|
11790
11788
|
if (parentName.includes("trae") || parentName.includes("Trae"))
|
|
11791
11789
|
return "trae";
|
|
11792
11790
|
} catch (error) {
|
|
11793
|
-
|
|
11791
|
+
debugLogger12.debug("Parent process detection failed:", error);
|
|
11794
11792
|
}
|
|
11795
11793
|
}
|
|
11796
11794
|
return null;
|
|
@@ -11802,7 +11800,7 @@ async function backupFile(filePath) {
|
|
|
11802
11800
|
const backupPath = `${filePath}.backup.${timestamp}`;
|
|
11803
11801
|
await fs10.copyFile(filePath, backupPath);
|
|
11804
11802
|
} catch (error) {
|
|
11805
|
-
|
|
11803
|
+
debugLogger12.warn(`Failed to create backup of ${filePath}:`, error);
|
|
11806
11804
|
}
|
|
11807
11805
|
}
|
|
11808
11806
|
__name(backupFile, "backupFile");
|
|
@@ -12033,6 +12031,7 @@ var terminalSetupCommand = {
|
|
|
12033
12031
|
|
|
12034
12032
|
// packages/cli/src/ui/commands/themeCommand.ts
|
|
12035
12033
|
init_esbuild_shims();
|
|
12034
|
+
import process5 from "node:process";
|
|
12036
12035
|
var themeCommand = {
|
|
12037
12036
|
name: "theme",
|
|
12038
12037
|
get description() {
|
|
@@ -12040,10 +12039,21 @@ var themeCommand = {
|
|
|
12040
12039
|
},
|
|
12041
12040
|
kind: "built-in" /* BUILT_IN */,
|
|
12042
12041
|
supportedModes: ["interactive"],
|
|
12043
|
-
action: /* @__PURE__ */ __name((_context, _args) =>
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12042
|
+
action: /* @__PURE__ */ __name((_context, _args) => {
|
|
12043
|
+
if (process5.env["NO_COLOR"]) {
|
|
12044
|
+
return {
|
|
12045
|
+
type: "message",
|
|
12046
|
+
messageType: "info",
|
|
12047
|
+
content: t(
|
|
12048
|
+
"Theme configuration unavailable due to NO_COLOR env variable."
|
|
12049
|
+
)
|
|
12050
|
+
};
|
|
12051
|
+
}
|
|
12052
|
+
return {
|
|
12053
|
+
type: "dialog",
|
|
12054
|
+
dialog: "theme"
|
|
12055
|
+
};
|
|
12056
|
+
}, "action")
|
|
12047
12057
|
};
|
|
12048
12058
|
|
|
12049
12059
|
// packages/cli/src/ui/commands/toolsCommand.ts
|
|
@@ -12112,7 +12122,7 @@ init_esbuild_shims();
|
|
|
12112
12122
|
// packages/cli/src/ui/voice/voice-availability.ts
|
|
12113
12123
|
init_esbuild_shims();
|
|
12114
12124
|
import { existsSync as existsSync2 } from "node:fs";
|
|
12115
|
-
import
|
|
12125
|
+
import process6 from "node:process";
|
|
12116
12126
|
var SUPPORTED_PLATFORMS = [
|
|
12117
12127
|
"darwin",
|
|
12118
12128
|
"linux",
|
|
@@ -12123,8 +12133,8 @@ function isWsl(env) {
|
|
|
12123
12133
|
}
|
|
12124
12134
|
__name(isWsl, "isWsl");
|
|
12125
12135
|
function getVoiceUnavailableReason(environment = {
|
|
12126
|
-
platform:
|
|
12127
|
-
env:
|
|
12136
|
+
platform: process6.platform,
|
|
12137
|
+
env: process6.env
|
|
12128
12138
|
}) {
|
|
12129
12139
|
const { platform: platform2, env } = environment;
|
|
12130
12140
|
const fileExists = environment.fileExists ?? existsSync2;
|
|
@@ -14109,10 +14119,10 @@ var updateCommand = {
|
|
|
14109
14119
|
{ performStandaloneUpdate },
|
|
14110
14120
|
installationInfo
|
|
14111
14121
|
] = await Promise.all([
|
|
14112
|
-
import("./updateCheck-
|
|
14113
|
-
import("./processUtils-
|
|
14114
|
-
import("./standalone-update-
|
|
14115
|
-
import("./installationInfo-
|
|
14122
|
+
import("./updateCheck-P6JJ4MBU.js"),
|
|
14123
|
+
import("./processUtils-GZAP6EYW.js"),
|
|
14124
|
+
import("./standalone-update-6OFPUBEM.js"),
|
|
14125
|
+
import("./installationInfo-S5PPSD7T.js")
|
|
14116
14126
|
]);
|
|
14117
14127
|
const { formatUpdateInstructions, getInstallationInfo: getInstallationInfo2 } = installationInfo;
|
|
14118
14128
|
const settings = context.services.settings;
|
|
@@ -14344,7 +14354,7 @@ var BuiltinCommandLoader = class {
|
|
|
14344
14354
|
// packages/cli/src/services/BundledSkillLoader.ts
|
|
14345
14355
|
init_esbuild_shims();
|
|
14346
14356
|
import { dirname as dirname2 } from "node:path";
|
|
14347
|
-
var
|
|
14357
|
+
var debugLogger13 = createDebugLogger("BUNDLED_SKILL_LOADER");
|
|
14348
14358
|
var BundledSkillLoader = class {
|
|
14349
14359
|
constructor(config) {
|
|
14350
14360
|
this.config = config;
|
|
@@ -14354,12 +14364,12 @@ var BundledSkillLoader = class {
|
|
|
14354
14364
|
}
|
|
14355
14365
|
async loadCommands(_signal) {
|
|
14356
14366
|
if (this.config?.getBareMode?.()) {
|
|
14357
|
-
|
|
14367
|
+
debugLogger13.debug("Bare mode enabled, skipping bundled skills");
|
|
14358
14368
|
return [];
|
|
14359
14369
|
}
|
|
14360
14370
|
const skillManager = this.config?.getSkillManager();
|
|
14361
14371
|
if (!skillManager) {
|
|
14362
|
-
|
|
14372
|
+
debugLogger13.debug("SkillManager not available, skipping bundled skills");
|
|
14363
14373
|
return [];
|
|
14364
14374
|
}
|
|
14365
14375
|
try {
|
|
@@ -14367,7 +14377,7 @@ var BundledSkillLoader = class {
|
|
|
14367
14377
|
const cronEnabled = this.config?.isCronEnabled() ?? false;
|
|
14368
14378
|
const cronVisible = allSkills.filter((skill) => {
|
|
14369
14379
|
if (!cronEnabled && skill.allowedTools?.some((t2) => t2.startsWith("cron_"))) {
|
|
14370
|
-
|
|
14380
|
+
debugLogger13.debug(
|
|
14371
14381
|
`Hiding skill "${skill.name}" because cron is not enabled`
|
|
14372
14382
|
);
|
|
14373
14383
|
return false;
|
|
@@ -14378,7 +14388,7 @@ var BundledSkillLoader = class {
|
|
|
14378
14388
|
const skills = cronVisible.filter(
|
|
14379
14389
|
(skill) => !disabled.has(skill.name.toLowerCase())
|
|
14380
14390
|
);
|
|
14381
|
-
|
|
14391
|
+
debugLogger13.debug(
|
|
14382
14392
|
`Loaded ${skills.length} bundled skill(s) as slash commands; ${cronVisible.length - skills.length} hidden by skills.disabled`
|
|
14383
14393
|
);
|
|
14384
14394
|
return skills.map((skill) => ({
|
|
@@ -14440,7 +14450,7 @@ ${body}`;
|
|
|
14440
14450
|
}, "action")
|
|
14441
14451
|
}));
|
|
14442
14452
|
} catch (error) {
|
|
14443
|
-
|
|
14453
|
+
debugLogger13.error("Failed to load bundled skills:", error);
|
|
14444
14454
|
return [];
|
|
14445
14455
|
}
|
|
14446
14456
|
}
|
|
@@ -14720,7 +14730,7 @@ var ShellProcessor = class {
|
|
|
14720
14730
|
|
|
14721
14731
|
// packages/cli/src/services/prompt-processors/atFileProcessor.ts
|
|
14722
14732
|
init_esbuild_shims();
|
|
14723
|
-
var
|
|
14733
|
+
var debugLogger14 = createDebugLogger("AT_FILE_PROCESSOR");
|
|
14724
14734
|
var AtFileProcessor = class {
|
|
14725
14735
|
constructor(commandName) {
|
|
14726
14736
|
this.commandName = commandName;
|
|
@@ -14766,7 +14776,7 @@ var AtFileProcessor = class {
|
|
|
14766
14776
|
} catch (error) {
|
|
14767
14777
|
const message2 = error instanceof Error ? error.message : String(error);
|
|
14768
14778
|
const uiMessage = `Failed to inject content for '@{${pathStr}}': ${message2}`;
|
|
14769
|
-
|
|
14779
|
+
debugLogger14.error(
|
|
14770
14780
|
`[AtFileProcessor] ${uiMessage}. Leaving placeholder in prompt.`
|
|
14771
14781
|
);
|
|
14772
14782
|
context.ui.addItem(
|
|
@@ -14791,7 +14801,7 @@ var AtFileProcessor = class {
|
|
|
14791
14801
|
};
|
|
14792
14802
|
|
|
14793
14803
|
// packages/cli/src/services/command-factory.ts
|
|
14794
|
-
var
|
|
14804
|
+
var debugLogger15 = createDebugLogger("COMMAND_FACTORY");
|
|
14795
14805
|
function createSlashCommandFromDefinition(filePath, baseDir, definition, extensionName, fileExtension) {
|
|
14796
14806
|
const relativePathWithExt = path16.relative(baseDir, filePath);
|
|
14797
14807
|
const relativePath = relativePathWithExt.substring(
|
|
@@ -14835,7 +14845,7 @@ function createSlashCommandFromDefinition(filePath, baseDir, definition, extensi
|
|
|
14835
14845
|
whenToUse: definition.whenToUse,
|
|
14836
14846
|
action: /* @__PURE__ */ __name(async (context, _args) => {
|
|
14837
14847
|
if (!context.invocation) {
|
|
14838
|
-
|
|
14848
|
+
debugLogger15.error(
|
|
14839
14849
|
`[FileCommandLoader] Critical error: Command '${baseCommandName}' was executed without invocation context.`
|
|
14840
14850
|
);
|
|
14841
14851
|
return {
|
|
@@ -14873,7 +14883,7 @@ function createSlashCommandFromDefinition(filePath, baseDir, definition, extensi
|
|
|
14873
14883
|
__name(createSlashCommandFromDefinition, "createSlashCommandFromDefinition");
|
|
14874
14884
|
|
|
14875
14885
|
// packages/cli/src/services/FileCommandLoader.ts
|
|
14876
|
-
var
|
|
14886
|
+
var debugLogger16 = createDebugLogger("FILE_COMMAND_LOADER");
|
|
14877
14887
|
var TomlCommandDefSchema = external_exports.object({
|
|
14878
14888
|
prompt: external_exports.string({
|
|
14879
14889
|
required_error: "The 'prompt' field is required.",
|
|
@@ -14907,7 +14917,7 @@ var FileCommandLoader = class {
|
|
|
14907
14917
|
*/
|
|
14908
14918
|
async loadCommands(signal) {
|
|
14909
14919
|
if (this.config?.getBareMode?.()) {
|
|
14910
|
-
|
|
14920
|
+
debugLogger16.debug("Bare mode enabled, skipping auto-discovered commands");
|
|
14911
14921
|
return [];
|
|
14912
14922
|
}
|
|
14913
14923
|
const allCommands = [];
|
|
@@ -14951,7 +14961,7 @@ var FileCommandLoader = class {
|
|
|
14951
14961
|
const isEnoent = error.code === "ENOENT";
|
|
14952
14962
|
const isAbortError = error instanceof Error && error.name === "AbortError";
|
|
14953
14963
|
if (!isEnoent && !isAbortError) {
|
|
14954
|
-
|
|
14964
|
+
debugLogger16.error(
|
|
14955
14965
|
`[FileCommandLoader] Error loading commands from ${dirInfo.path}:`,
|
|
14956
14966
|
error
|
|
14957
14967
|
);
|
|
@@ -14971,7 +14981,9 @@ var FileCommandLoader = class {
|
|
|
14971
14981
|
dirs.push({ path: Storage.getUserCommandsDir() });
|
|
14972
14982
|
dirs.push({ path: storage.getProjectCommandsDir() });
|
|
14973
14983
|
if (this.config) {
|
|
14974
|
-
const activeExtensions = this.config.getExtensions().filter(
|
|
14984
|
+
const activeExtensions = this.config.getExtensions().filter(
|
|
14985
|
+
(ext) => ext.isActive && ext.format !== "agent-plugins-v1" && ext.installMetadata?.originSource !== "AgentPlugins"
|
|
14986
|
+
).sort((a, b) => a.name.localeCompare(b.name));
|
|
14975
14987
|
for (const ext of activeExtensions) {
|
|
14976
14988
|
const commandsPaths = this.getExtensionCommandsPaths(ext);
|
|
14977
14989
|
for (const cmdPath of commandsPaths) {
|
|
@@ -15008,7 +15020,7 @@ var FileCommandLoader = class {
|
|
|
15008
15020
|
}
|
|
15009
15021
|
}
|
|
15010
15022
|
} catch (error) {
|
|
15011
|
-
|
|
15023
|
+
debugLogger16.warn(
|
|
15012
15024
|
`Failed to read extension config for ${ext.name}:`,
|
|
15013
15025
|
error
|
|
15014
15026
|
);
|
|
@@ -15034,7 +15046,7 @@ var FileCommandLoader = class {
|
|
|
15034
15046
|
try {
|
|
15035
15047
|
fileContent = await fs13.readFile(filePath, "utf-8");
|
|
15036
15048
|
} catch (error) {
|
|
15037
|
-
|
|
15049
|
+
debugLogger16.error(
|
|
15038
15050
|
`[FileCommandLoader] Failed to read file ${filePath}:`,
|
|
15039
15051
|
error instanceof Error ? error.message : String(error)
|
|
15040
15052
|
);
|
|
@@ -15044,7 +15056,7 @@ var FileCommandLoader = class {
|
|
|
15044
15056
|
try {
|
|
15045
15057
|
parsed = import_toml.default.parse(fileContent);
|
|
15046
15058
|
} catch (error) {
|
|
15047
|
-
|
|
15059
|
+
debugLogger16.error(
|
|
15048
15060
|
`[FileCommandLoader] Failed to parse TOML file ${filePath}:`,
|
|
15049
15061
|
error instanceof Error ? error.message : String(error)
|
|
15050
15062
|
);
|
|
@@ -15052,7 +15064,7 @@ var FileCommandLoader = class {
|
|
|
15052
15064
|
}
|
|
15053
15065
|
const validationResult = TomlCommandDefSchema.safeParse(parsed);
|
|
15054
15066
|
if (!validationResult.success) {
|
|
15055
|
-
|
|
15067
|
+
debugLogger16.error(
|
|
15056
15068
|
`[FileCommandLoader] Skipping invalid command file: ${filePath}. Validation errors:`,
|
|
15057
15069
|
validationResult.error.flatten()
|
|
15058
15070
|
);
|
|
@@ -15079,7 +15091,7 @@ var FileCommandLoader = class {
|
|
|
15079
15091
|
try {
|
|
15080
15092
|
fileContent = await fs13.readFile(filePath, "utf-8");
|
|
15081
15093
|
} catch (error) {
|
|
15082
|
-
|
|
15094
|
+
debugLogger16.error(
|
|
15083
15095
|
`[FileCommandLoader] Failed to read file ${filePath}:`,
|
|
15084
15096
|
error instanceof Error ? error.message : String(error)
|
|
15085
15097
|
);
|
|
@@ -15089,7 +15101,7 @@ var FileCommandLoader = class {
|
|
|
15089
15101
|
try {
|
|
15090
15102
|
parsed = parseMarkdownCommand(fileContent);
|
|
15091
15103
|
} catch (error) {
|
|
15092
|
-
|
|
15104
|
+
debugLogger16.error(
|
|
15093
15105
|
`[FileCommandLoader] Failed to parse Markdown file ${filePath}:`,
|
|
15094
15106
|
error instanceof Error ? error.message : String(error)
|
|
15095
15107
|
);
|
|
@@ -15097,7 +15109,7 @@ var FileCommandLoader = class {
|
|
|
15097
15109
|
}
|
|
15098
15110
|
const validationResult = MarkdownCommandDefSchema.safeParse(parsed);
|
|
15099
15111
|
if (!validationResult.success) {
|
|
15100
|
-
|
|
15112
|
+
debugLogger16.error(
|
|
15101
15113
|
`[FileCommandLoader] Skipping invalid command file: ${filePath}. Validation errors:`,
|
|
15102
15114
|
validationResult.error.flatten()
|
|
15103
15115
|
);
|
|
@@ -15123,7 +15135,7 @@ var FileCommandLoader = class {
|
|
|
15123
15135
|
|
|
15124
15136
|
// packages/cli/src/services/saved-workflow-loader.ts
|
|
15125
15137
|
init_esbuild_shims();
|
|
15126
|
-
var
|
|
15138
|
+
var debugLogger17 = createDebugLogger("SavedWorkflowLoader");
|
|
15127
15139
|
var SavedWorkflowLoader = class {
|
|
15128
15140
|
constructor(config) {
|
|
15129
15141
|
this.config = config;
|
|
@@ -15142,7 +15154,7 @@ var SavedWorkflowLoader = class {
|
|
|
15142
15154
|
try {
|
|
15143
15155
|
entries = await listSavedWorkflows(this.config);
|
|
15144
15156
|
} catch (e) {
|
|
15145
|
-
|
|
15157
|
+
debugLogger17.debug(`listSavedWorkflows failed: ${e}`);
|
|
15146
15158
|
return [];
|
|
15147
15159
|
}
|
|
15148
15160
|
if (signal.aborted) return [];
|
|
@@ -15458,7 +15470,7 @@ var McpPromptLoader = class {
|
|
|
15458
15470
|
// packages/cli/src/services/SkillCommandLoader.ts
|
|
15459
15471
|
init_esbuild_shims();
|
|
15460
15472
|
import { dirname as dirname3 } from "node:path";
|
|
15461
|
-
var
|
|
15473
|
+
var debugLogger18 = createDebugLogger("SKILL_COMMAND_LOADER");
|
|
15462
15474
|
async function recordAutoSkillCommandUsage(config, command) {
|
|
15463
15475
|
const detail = command.skillDetail;
|
|
15464
15476
|
if (!config || detail?.level !== "project" || !detail.filePath) {
|
|
@@ -15471,7 +15483,7 @@ async function recordAutoSkillCommandUsage(config, command) {
|
|
|
15471
15483
|
filePath: detail.filePath
|
|
15472
15484
|
});
|
|
15473
15485
|
} catch (error) {
|
|
15474
|
-
|
|
15486
|
+
debugLogger18.warn(
|
|
15475
15487
|
`Failed to record auto-skill command usage: ${error instanceof Error ? error.message : String(error)}`
|
|
15476
15488
|
);
|
|
15477
15489
|
}
|
|
@@ -15486,12 +15498,12 @@ var SkillCommandLoader = class {
|
|
|
15486
15498
|
}
|
|
15487
15499
|
async loadCommands(_signal) {
|
|
15488
15500
|
if (this.config?.getBareMode?.()) {
|
|
15489
|
-
|
|
15501
|
+
debugLogger18.debug("Bare mode enabled, skipping skill commands");
|
|
15490
15502
|
return [];
|
|
15491
15503
|
}
|
|
15492
15504
|
const skillManager = this.config?.getSkillManager();
|
|
15493
15505
|
if (!skillManager) {
|
|
15494
|
-
|
|
15506
|
+
debugLogger18.debug("SkillManager not available, skipping skill commands");
|
|
15495
15507
|
return [];
|
|
15496
15508
|
}
|
|
15497
15509
|
try {
|
|
@@ -15508,7 +15520,7 @@ var SkillCommandLoader = class {
|
|
|
15508
15520
|
const nonUserInvocableCount = visibleSkills.filter(
|
|
15509
15521
|
(skill) => skill.userInvocable === false
|
|
15510
15522
|
).length;
|
|
15511
|
-
|
|
15523
|
+
debugLogger18.debug(
|
|
15512
15524
|
`Loaded ${userSkills.length} user + ${projectSkills.length} project + ${extensionSkills.length} extension skill(s) as slash commands; ${allSkills.length - visibleSkills.length} hidden by skills.disabled; ${nonUserInvocableCount} marked non-user-invocable`
|
|
15513
15525
|
);
|
|
15514
15526
|
return visibleSkills.map((skill) => {
|
|
@@ -15565,7 +15577,7 @@ var SkillCommandLoader = class {
|
|
|
15565
15577
|
};
|
|
15566
15578
|
});
|
|
15567
15579
|
} catch (error) {
|
|
15568
|
-
|
|
15580
|
+
debugLogger18.error("Failed to load skill commands:", error);
|
|
15569
15581
|
return [];
|
|
15570
15582
|
}
|
|
15571
15583
|
}
|
|
@@ -15640,7 +15652,7 @@ function formatUserPromptExpansionBlockedMessage(reason) {
|
|
|
15640
15652
|
__name(formatUserPromptExpansionBlockedMessage, "formatUserPromptExpansionBlockedMessage");
|
|
15641
15653
|
|
|
15642
15654
|
// packages/cli/src/nonInteractiveCliCommands.ts
|
|
15643
|
-
var
|
|
15655
|
+
var debugLogger19 = createDebugLogger("NON_INTERACTIVE_COMMANDS");
|
|
15644
15656
|
function getSkillCommandName(command) {
|
|
15645
15657
|
return command.skillDetail?.name ?? command.name;
|
|
15646
15658
|
}
|
|
@@ -15671,7 +15683,8 @@ function handleCommandResult(result, outputHistoryItems) {
|
|
|
15671
15683
|
return {
|
|
15672
15684
|
type: "goal_control",
|
|
15673
15685
|
operation: result.operation,
|
|
15674
|
-
response: result.response
|
|
15686
|
+
response: result.response,
|
|
15687
|
+
...result.cause ? { cause: result.cause } : {}
|
|
15675
15688
|
};
|
|
15676
15689
|
/**
|
|
15677
15690
|
* Currently return types below are never generated due to the
|
|
@@ -15814,7 +15827,7 @@ async function registerModelInvocableCommands(commandService, config, executionM
|
|
|
15814
15827
|
await skillManager?.notifyConfigChanged();
|
|
15815
15828
|
}
|
|
15816
15829
|
__name(registerModelInvocableCommands, "registerModelInvocableCommands");
|
|
15817
|
-
var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController, config, settings) => {
|
|
15830
|
+
var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController, config, settings, sessionHooks) => {
|
|
15818
15831
|
const trimmed = rawQuery.trim();
|
|
15819
15832
|
if (!trimmed.startsWith("/")) {
|
|
15820
15833
|
return { type: "no_command" };
|
|
@@ -15979,7 +15992,8 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
|
|
|
15979
15992
|
ui,
|
|
15980
15993
|
session: {
|
|
15981
15994
|
stats: sessionStats,
|
|
15982
|
-
sessionShellAllowlist: /* @__PURE__ */ new Set()
|
|
15995
|
+
sessionShellAllowlist: /* @__PURE__ */ new Set(),
|
|
15996
|
+
...sessionHooks?.startNewSession ? { startNewSession: sessionHooks.startNewSession } : {}
|
|
15983
15997
|
},
|
|
15984
15998
|
invocation: {
|
|
15985
15999
|
raw: trimmed,
|
|
@@ -16064,14 +16078,14 @@ var getAvailableCommands = /* @__PURE__ */ __name(async (config, abortSignal, mo
|
|
|
16064
16078
|
);
|
|
16065
16079
|
return commandService.getCommandsForMode(mode);
|
|
16066
16080
|
} catch (error) {
|
|
16067
|
-
|
|
16081
|
+
debugLogger19.error("Error loading available commands:", error);
|
|
16068
16082
|
return [];
|
|
16069
16083
|
}
|
|
16070
16084
|
}, "getAvailableCommands");
|
|
16071
16085
|
|
|
16072
16086
|
// packages/cli/src/utils/nonInteractiveHelpers.ts
|
|
16073
16087
|
init_esbuild_shims();
|
|
16074
|
-
var
|
|
16088
|
+
var debugLogger20 = createDebugLogger("NON_INTERACTIVE");
|
|
16075
16089
|
function normalizePartList(parts) {
|
|
16076
16090
|
if (!parts) {
|
|
16077
16091
|
return [];
|
|
@@ -16169,7 +16183,7 @@ async function loadSlashCommandNames(config) {
|
|
|
16169
16183
|
);
|
|
16170
16184
|
return commands.map((cmd) => cmd.name).sort();
|
|
16171
16185
|
} catch (error) {
|
|
16172
|
-
|
|
16186
|
+
debugLogger20.error(
|
|
16173
16187
|
"[buildSystemMessage] Failed to load slash commands:",
|
|
16174
16188
|
error
|
|
16175
16189
|
);
|
|
@@ -16194,7 +16208,7 @@ async function buildSystemMessage(config, sessionId, permissionMode) {
|
|
|
16194
16208
|
const subagents = await subagentManager.listSubagents();
|
|
16195
16209
|
agentNames = subagents.map((subagent) => subagent.name);
|
|
16196
16210
|
} catch (error) {
|
|
16197
|
-
|
|
16211
|
+
debugLogger20.error("[buildSystemMessage] Failed to load subagents:", error);
|
|
16198
16212
|
}
|
|
16199
16213
|
const systemMessage = {
|
|
16200
16214
|
type: "system",
|
|
@@ -16376,12 +16390,14 @@ export {
|
|
|
16376
16390
|
findMidInputSlashCommand,
|
|
16377
16391
|
getBestSlashCommandMatch,
|
|
16378
16392
|
findSlashCommandTokens,
|
|
16393
|
+
formatEffortChangeMessage,
|
|
16379
16394
|
getTranslatedSourceDisplayMap,
|
|
16380
16395
|
DISPLAY_HOOK_EVENTS,
|
|
16381
16396
|
supportsMatchers,
|
|
16382
16397
|
createEmptyHookEventInfo,
|
|
16383
16398
|
addConfigToMatcherGroup,
|
|
16384
16399
|
getAllConfigs,
|
|
16400
|
+
isPickerOnlyModelInvocation,
|
|
16385
16401
|
refreshExtensionContentRuntime,
|
|
16386
16402
|
dayKey,
|
|
16387
16403
|
parseDayKey,
|