@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.2-nightly.20260801.bc382c3ff

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.
Files changed (437) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
  2. package/bundled/qc-helper/docs/configuration/settings.md +42 -30
  3. package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
  4. package/bundled/qc-helper/docs/features/channels/github.md +146 -0
  5. package/bundled/qc-helper/docs/features/channels/gitlab.md +177 -0
  6. package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
  7. package/bundled/qc-helper/docs/features/code-review.md +21 -1
  8. package/bundled/qc-helper/docs/features/commands.md +1 -0
  9. package/bundled/qc-helper/docs/features/hooks.md +186 -32
  10. package/bundled/qc-helper/docs/features/mcp.md +9 -1
  11. package/bundled/qc-helper/docs/features/memory.md +27 -0
  12. package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
  13. package/bundled/qc-helper/docs/features/skills.md +14 -0
  14. package/bundled/qc-helper/docs/features/sub-agents.md +75 -8
  15. package/bundled/qc-helper/docs/features/tool-use-summaries.md +7 -7
  16. package/bundled/qc-helper/docs/qwen-serve.md +32 -8
  17. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +4 -4
  18. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  19. package/bundled/review/DESIGN.md +19 -0
  20. package/bundled/review/SKILL.md +120 -61
  21. package/chunks/MaxSizedBox-CDHTDITS.js +89 -0
  22. package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-L63HUAHP.js} +76 -73
  23. package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-3RICG2YW.js} +2 -2
  24. package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-6WVVT2P3.js} +2147 -1009
  25. package/chunks/agent-KDM4CBOU.js +85 -0
  26. package/chunks/agent-headless-AS7K2K57.js +79 -0
  27. package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-WCBYB6JG.js} +388 -37
  28. package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-ANV4CFCR.js} +4 -4
  29. package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-MALEB47H.js} +4 -4
  30. package/chunks/bridge-JNEW6FES.js +95 -0
  31. package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
  32. package/chunks/{ca-25EDXPFZ.js → ca-4OJN75WT.js} +52 -6
  33. package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-QOO7TD3T.js} +21 -6
  34. package/chunks/channel-settings-store-4CSMTR4L.js +92 -0
  35. package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-ERSUOPIR.js} +10 -6
  36. package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-X247YDQ7.js} +10 -6
  37. package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-ORJIEEPP.js} +6 -5
  38. package/chunks/{chunk-LNARWLZQ.js → chunk-25QQVOCG.js} +5 -5
  39. package/chunks/{chunk-2OM7GEXO.js → chunk-2A6MHYIA.js} +3 -3
  40. package/chunks/{chunk-ER5LWJR6.js → chunk-2CTKGIFR.js} +3 -3
  41. package/chunks/{chunk-SQBYH7PX.js → chunk-2DNKEBXY.js} +1 -1
  42. package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
  43. package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
  44. package/chunks/chunk-2M5N3DHY.js +378 -0
  45. package/chunks/{chunk-CC4N4M36.js → chunk-2PNQQ4UR.js} +2 -2
  46. package/chunks/{chunk-E5TUC6CA.js → chunk-2UISUFHQ.js} +3 -3
  47. package/chunks/{chunk-PWTZEM3C.js → chunk-33FNCQSY.js} +3 -37
  48. package/chunks/{chunk-J56UI34H.js → chunk-3LGZEYOF.js} +4 -2
  49. package/chunks/{chunk-66RMLJHC.js → chunk-3MHPWQ2M.js} +590 -212
  50. package/chunks/{chunk-NL7LTRLR.js → chunk-3RXUYQJI.js} +54 -74
  51. package/chunks/{chunk-E5Z2AVNV.js → chunk-3SH53ANB.js} +0 -11
  52. package/chunks/{chunk-XHRTVPG2.js → chunk-3WXMXT7C.js} +22 -11
  53. package/chunks/{chunk-C3NS4F2Q.js → chunk-42IKVPST.js} +1 -1
  54. package/chunks/{chunk-M5JM7OSF.js → chunk-432XCUHF.js} +2 -3
  55. package/chunks/{chunk-5U4IPFBR.js → chunk-433VD3HX.js} +4 -4
  56. package/chunks/chunk-434YCHSV.js +2196 -0
  57. package/chunks/{chunk-DHHOYAPR.js → chunk-4LKVQFHM.js} +7 -7
  58. package/chunks/{chunk-IPUUTYMV.js → chunk-4NFY2S7N.js} +0 -33
  59. package/chunks/{chunk-J6D3VXCC.js → chunk-5UJ6A3CH.js} +158 -12
  60. package/chunks/{chunk-N3FAY5CM.js → chunk-5UZITEHA.js} +158 -5
  61. package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
  62. package/chunks/chunk-6FMJLI5M.js +1591 -0
  63. package/chunks/{chunk-6FGBXPWM.js → chunk-6O5DVH27.js} +38 -44
  64. package/chunks/{chunk-2RFKHEXL.js → chunk-6PLDPT2C.js} +1 -1
  65. package/chunks/{chunk-52O2CIUL.js → chunk-7IYLHTTM.js} +130 -5
  66. package/chunks/{chunk-5THCYPLO.js → chunk-7K2WTPQO.js} +15 -8
  67. package/chunks/{chunk-2Q3OT4OV.js → chunk-7MY2AR5A.js} +204 -81
  68. package/chunks/{chunk-YH6G52F2.js → chunk-A2A34TSB.js} +4 -4
  69. package/chunks/{chunk-3QMGYBFN.js → chunk-A5YZ3FA2.js} +2 -80
  70. package/chunks/{chunk-K4XWPEWB.js → chunk-A6SX5TAH.js} +4 -33
  71. package/chunks/{chunk-VYPFXUCB.js → chunk-AKA24BGO.js} +1 -1
  72. package/chunks/chunk-AQ37AY7B.js +93 -0
  73. package/chunks/{chunk-PANH4R3B.js → chunk-AQEWCKX4.js} +18 -12
  74. package/chunks/{chunk-LG4GZIVV.js → chunk-AYB4HSBI.js} +4 -4
  75. package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
  76. package/chunks/{chunk-2JZBVYTU.js → chunk-BFHXDAR7.js} +1 -8
  77. package/chunks/{chunk-2W3OOD4W.js → chunk-BGXZBI5B.js} +7 -4
  78. package/chunks/{chunk-2YZJCM5T.js → chunk-BKUN5QHP.js} +7 -7
  79. package/chunks/{chunk-UUUTRMI2.js → chunk-BV4QX43X.js} +1 -1
  80. package/chunks/{chunk-4M377AZG.js → chunk-C4L2MEIT.js} +6 -6
  81. package/chunks/{chunk-VV6XU5L7.js → chunk-CHCLO3M7.js} +19 -14
  82. package/chunks/{chunk-TOFQCPDC.js → chunk-CWEIMFFW.js} +14 -8
  83. package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
  84. package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
  85. package/chunks/{chunk-WDSWXQU3.js → chunk-DUIJ2IXG.js} +5 -13
  86. package/chunks/{chunk-3MSHSCSN.js → chunk-DVGTU5TC.js} +94 -4
  87. package/chunks/{chunk-RHLZR4E5.js → chunk-DYA25Y7U.js} +1 -1
  88. package/chunks/{chunk-MUP3T3AD.js → chunk-E4WHKETF.js} +32 -38
  89. package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
  90. package/chunks/{chunk-V6VRAM7B.js → chunk-FJHA23GM.js} +12 -12
  91. package/chunks/chunk-FYJ7W2PI.js +194 -0
  92. package/chunks/{chunk-INADJJGW.js → chunk-G7XXKQYS.js} +2 -2
  93. package/chunks/{chunk-LZEMEFKY.js → chunk-GALUTA2C.js} +1 -1
  94. package/chunks/{chunk-ML52PL6O.js → chunk-GB3AB7TR.js} +4374 -3779
  95. package/chunks/{chunk-SASBXAQL.js → chunk-GHJM2C2T.js} +6 -8
  96. package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
  97. package/chunks/chunk-GOFAQQZA.js +132 -0
  98. package/chunks/{chunk-BJX6ZSUK.js → chunk-GTM6IHBB.js} +2 -2
  99. package/chunks/{chunk-TF2X2WCT.js → chunk-GVISB2OH.js} +2 -2
  100. package/chunks/{chunk-OKY7HXPG.js → chunk-H36SETQS.js} +2 -2
  101. package/chunks/{chunk-7FZEBPKS.js → chunk-H4346YW5.js} +39 -22
  102. package/chunks/{chunk-LNURQEMZ.js → chunk-H4DSRWAS.js} +24 -13
  103. package/chunks/{chunk-3JAQDSXN.js → chunk-H6MC6VQX.js} +290 -179
  104. package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
  105. package/chunks/{chunk-PR75REBZ.js → chunk-I5GNT6ZS.js} +18 -82
  106. package/chunks/{chunk-MVS3NS2N.js → chunk-I6FAHB4N.js} +28 -5
  107. package/chunks/{chunk-ZOIFNCKL.js → chunk-I7JDGNG6.js} +3 -23
  108. package/chunks/{chunk-OJGCZBB7.js → chunk-II6WPWHY.js} +41 -36
  109. package/chunks/{chunk-UH3WSE5L.js → chunk-J26HHFI5.js} +2 -7
  110. package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
  111. package/chunks/{chunk-ZD6UTE4A.js → chunk-JELIWHXD.js} +1 -1
  112. package/chunks/{chunk-6PSLCFQ2.js → chunk-JRIDA5HF.js} +18 -9
  113. package/chunks/{chunk-W4CQXHT6.js → chunk-K4CGQN4Q.js} +1 -1
  114. package/chunks/{chunk-G4WFQUYQ.js → chunk-K5Q62CGR.js} +1 -1
  115. package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
  116. package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
  117. package/chunks/{chunk-DN6ZX5AY.js → chunk-KG22G46Y.js} +62 -15
  118. package/chunks/{chunk-L5UHQJTJ.js → chunk-KKN2IE7Q.js} +1 -1
  119. package/chunks/{chunk-63P4EL5V.js → chunk-KVUBYJDM.js} +2 -2
  120. package/chunks/{chunk-E5WH5O3C.js → chunk-KXSYDCP2.js} +4 -4
  121. package/chunks/{chunk-JALU3ZDU.js → chunk-LAPK3GLC.js} +212 -16
  122. package/chunks/chunk-LBOVL47Y.js +29 -0
  123. package/chunks/{chunk-FQK6JAFG.js → chunk-LBWNSLJK.js} +4 -4
  124. package/chunks/{chunk-3IXOIAKE.js → chunk-LL4U3BSH.js} +30 -10
  125. package/chunks/{chunk-B7QDM6Z7.js → chunk-LRJWFR6L.js} +4 -4
  126. package/chunks/{chunk-RWS5VYWC.js → chunk-M2F5PLOW.js} +1018 -484
  127. package/chunks/{chunk-HIJQF5B5.js → chunk-M744OFVE.js} +1 -1
  128. package/chunks/{chunk-I7XZ3RY5.js → chunk-MBKPUM5Y.js} +1 -1
  129. package/chunks/chunk-MISUEWB4.js +8749 -0
  130. package/chunks/{chunk-FNQ6T3CV.js → chunk-MOHAWIAW.js} +10 -7
  131. package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
  132. package/chunks/{chunk-QY5MMZ6O.js → chunk-MSIVKDRC.js} +4 -4
  133. package/chunks/{record-artifact-RQKFYO5B.js → chunk-MYT7N6QH.js} +22 -7
  134. package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
  135. package/chunks/{chunk-DM4Q4JJH.js → chunk-NGWYUZZO.js} +68794 -83526
  136. package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
  137. package/chunks/{chunk-PQNHRFJC.js → chunk-NYX53SV4.js} +0 -2
  138. package/chunks/{chunk-Z5BLYMZM.js → chunk-NZB4NDJL.js} +10 -10
  139. package/chunks/{chunk-SRZ6DXVG.js → chunk-O2ZYHG33.js} +47 -138
  140. package/chunks/chunk-O6GEWCJA.js +21 -0
  141. package/chunks/{chunk-PHVR5UUY.js → chunk-OBAIHYFT.js} +1 -1
  142. package/chunks/chunk-OCPBI7J5.js +18 -0
  143. package/chunks/{chunk-P5V4T7NK.js → chunk-OCRM53TT.js} +11 -3
  144. package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
  145. package/chunks/{chunk-KU5XMLDK.js → chunk-PDDYAXL2.js} +7 -1
  146. package/chunks/{chunk-L26JL52R.js → chunk-PGEGUNH5.js} +108 -68
  147. package/chunks/{chunk-2JM6GZ5D.js → chunk-PGP7Y3RQ.js} +8 -13
  148. package/chunks/{chunk-VFSJ5VRH.js → chunk-PHODQP2V.js} +6 -6
  149. package/chunks/{chunk-PSWQZHEA.js → chunk-PXA5AWHY.js} +1 -1
  150. package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
  151. package/chunks/chunk-QL4TN4HS.js +59 -0
  152. package/chunks/{chunk-USTWD7QV.js → chunk-QMBEW7EW.js} +26 -16
  153. package/chunks/{chunk-U4VTUMMK.js → chunk-QONSRAEV.js} +1 -1
  154. package/chunks/{chunk-NH6KE4JX.js → chunk-QYPT3QUD.js} +3 -3
  155. package/chunks/{chunk-GDIPH4JY.js → chunk-RGJ4JWSU.js} +133 -50
  156. package/chunks/{chunk-BO4XCS7P.js → chunk-RPYYTL7E.js} +77 -94
  157. package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
  158. package/chunks/{chunk-B4UMZKMU.js → chunk-SK2UKB45.js} +1 -1
  159. package/chunks/{chunk-QPDRAXDJ.js → chunk-SWEBEXPI.js} +1 -1
  160. package/chunks/chunk-T26EAKDL.js +13 -0
  161. package/chunks/chunk-T3CHYWJZ.js +758 -0
  162. package/chunks/{chunk-U7TXFVUN.js → chunk-TFFMATHX.js} +120 -95
  163. package/chunks/{chunk-M4UKFCZ2.js → chunk-TNVKFQXQ.js} +616 -217
  164. package/chunks/{chunk-5I2IWRSH.js → chunk-TYERNYH4.js} +2 -2
  165. package/chunks/{chunk-VAK25FTU.js → chunk-U25CMJYY.js} +1 -1
  166. package/chunks/{chunk-A5L3JMUA.js → chunk-UH7Z7Y45.js} +18 -4
  167. package/chunks/{chunk-BRRAJXPA.js → chunk-UHQ3L6GC.js} +1 -1
  168. package/chunks/{chunk-HV3G62R6.js → chunk-UHTJC7O3.js} +1 -1
  169. package/chunks/{chunk-3SJ43L4W.js → chunk-UKZEXS6K.js} +8 -0
  170. package/chunks/{chunk-DM22XS4K.js → chunk-UOFFZNXV.js} +361 -17
  171. package/chunks/{chunk-FY3M44RD.js → chunk-URN76TKR.js} +3 -3
  172. package/chunks/{chunk-MSLKI6C2.js → chunk-UWLG4UCE.js} +139 -31
  173. package/chunks/{chunk-A6UO2C7C.js → chunk-UWSXFI6E.js} +167 -81
  174. package/chunks/{chunk-BYFNTGKI.js → chunk-VS3GXRNZ.js} +3703 -1399
  175. package/chunks/{chunk-TQCBGUHN.js → chunk-VWF42XC6.js} +5 -5
  176. package/chunks/{chunk-32MVHM4T.js → chunk-W7XZ3KP5.js} +1 -1
  177. package/chunks/{chunk-B6ZJ7SI6.js → chunk-WISQLM4Q.js} +1526 -1420
  178. package/chunks/{chunk-H5FFA6TH.js → chunk-WK4TJUEA.js} +16 -3
  179. package/chunks/{chunk-3HBZKBMQ.js → chunk-WP4HGHFG.js} +5 -5
  180. package/chunks/{chunk-BIQWWWJN.js → chunk-XC2VAFVZ.js} +1 -1
  181. package/chunks/{chunk-EPDRMGT4.js → chunk-XC656O42.js} +4 -28
  182. package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
  183. package/chunks/{chunk-YAF5VNU7.js → chunk-XCLLRKY5.js} +4 -5
  184. package/chunks/chunk-XFDPIC4P.js +319 -0
  185. package/chunks/{chunk-KIUFNBHR.js → chunk-XSA5EKTJ.js} +1 -1
  186. package/chunks/{chunk-OHNBB4XR.js → chunk-YAVY33G4.js} +1 -1
  187. package/chunks/{chunk-DLWL3Z7A.js → chunk-YXEVDA66.js} +3 -3
  188. package/chunks/chunk-Z4X5MTRT.js +133 -0
  189. package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
  190. package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
  191. package/chunks/{chunk-ZE5WPL4I.js → chunk-ZRFJ75D7.js} +3 -3
  192. package/chunks/{chunk-MK7VQDN3.js → chunk-ZTN6OA5J.js} +8 -6
  193. package/chunks/{computer-use-DOFAHZAB.js → computer-use-Z4NCIIJN.js} +54 -51
  194. package/chunks/{config-utils-VFQXVGNR.js → config-utils-64LM6OEQ.js} +4 -4
  195. package/chunks/contextCommand-HVM7XFCB.js +84 -0
  196. package/chunks/core-runtime-NL3ZBHBU.js +138 -0
  197. package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-AM32K2HD.js} +3 -3
  198. package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-XHSCDYFU.js} +54 -51
  199. package/chunks/{cron-create-YIID5XAW.js → cron-create-HPXYE6C5.js} +6 -6
  200. package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FPVNTKPK.js} +5 -5
  201. package/chunks/{cron-list-XEGS463Q.js → cron-list-ZEI6PAAV.js} +6 -6
  202. package/chunks/{daemon-VOMQW7KZ.js → daemon-PCNCI5YU.js} +239 -18
  203. package/chunks/daemon-status-provider-XD23SNAM.js +94 -0
  204. package/chunks/daemon-trust-policy-NOHK7IW5.js +89 -0
  205. package/chunks/daemon-trust-policy-monitor-ZBTSR333.js +176 -0
  206. package/chunks/{de-HGRCYDEJ.js → de-A6TI4LBB.js} +52 -6
  207. package/chunks/deferred-core-runtime-JJBHKM2C.js +93 -0
  208. package/chunks/{dist-RTJFMNEZ.js → dist-4LAMY2SK.js} +1449 -14
  209. package/chunks/{dist-NNVBBOGU.js → dist-4T4NCJFL.js} +2 -2
  210. package/chunks/dist-7KOL6OMD.js +13467 -0
  211. package/chunks/{dist-BRB6EXK4.js → dist-BH76AT7N.js} +3 -3
  212. package/chunks/dist-BXA3JXVQ.js +4749 -0
  213. package/chunks/{dist-KTYYJ2C5.js → dist-OEEFI6UU.js} +12 -9
  214. package/chunks/{dist-K6Y4E7FX.js → dist-SMLVOWKV.js} +5 -4
  215. package/chunks/{dist-ANLAT3GS.js → dist-V2RK6S6Q.js} +2 -1
  216. package/chunks/earlyInputCapture-KLAZDAIP.js +86 -0
  217. package/chunks/{edit-RIEOJWKB.js → edit-YQZWCISX.js} +53 -50
  218. package/chunks/{en-MTWBNGDO.js → en-RESOFG55.js} +55 -6
  219. package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-WLVWI3FP.js} +53 -50
  220. package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-6RYXFQUD.js} +53 -50
  221. package/chunks/environment-DXJTXSVT.js +106 -0
  222. package/chunks/errors-XGAGG2S2.js +92 -0
  223. package/chunks/esm-K5FARBNI.js +5548 -0
  224. package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-C4276VPP.js} +53 -50
  225. package/chunks/exitPlanMode-MM5HIRUF.js +77 -0
  226. package/chunks/{fast-path-HYE7IFEV.js → fast-path-PIXYOHCH.js} +17 -3
  227. package/chunks/{fr-45RLL55O.js → fr-QF7RI5ZE.js} +52 -6
  228. package/chunks/{gemini-NGRQX3YJ.js → gemini-43RLVUNP.js} +171 -109
  229. package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-PNQ4TSID.js} +7 -7
  230. package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
  231. package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
  232. package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
  233. package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
  234. package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
  235. package/chunks/{glob-FRTM3X2E.js → glob-ZMBQKAU5.js} +53 -50
  236. package/chunks/goal-tools-Y767F7LZ.js +335 -0
  237. package/chunks/{grep-RKWVROCW.js → grep-HSV37W2Q.js} +55 -51
  238. package/chunks/handleAutoUpdate-QDHZPBAY.js +85 -0
  239. package/chunks/i18n-ME22A6RN.js +101 -0
  240. package/chunks/{image-gen-WIEM7KZA.js → image-gen-IFC7ZWSB.js} +12 -12
  241. package/chunks/initializer-J7H2CHVB.js +90 -0
  242. package/chunks/installationInfo-R7FXPQN5.js +84 -0
  243. package/chunks/{ja-B7DF7DFG.js → ja-URQESVGW.js} +52 -6
  244. package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-7BT4TQ2A.js} +3 -3
  245. package/chunks/{kittyProtocolDetector-MBRTDRBK.js → kittyProtocolDetector-BFLAKYXH.js} +1 -1
  246. package/chunks/lib-RUF3WZA6.js +9 -0
  247. package/chunks/list-OYDIBA4N.js +93 -0
  248. package/chunks/{list-agents-5KJJHR6I.js → list-agents-GATIBBQQ.js} +3 -3
  249. package/chunks/loadedSettingsAdapter-OK6GK2GE.js +87 -0
  250. package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-U4ZEG4GL.js} +66 -50
  251. package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3DZMQQQQ.js} +15 -8
  252. package/chunks/{ls-NTK6VOQJ.js → ls-7F4GHXIH.js} +5 -5
  253. package/chunks/{lsp-2JI24STP.js → lsp-6FEHVBWI.js} +3 -3
  254. package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-PGKAJLLO.js} +52 -49
  255. package/chunks/mcp-S4DXJD2G.js +87 -0
  256. package/chunks/{monitor-7FEWXX5F.js → monitor-E5ZFMT74.js} +53 -50
  257. package/chunks/nonInteractiveCli-HNOHKEPE.js +149 -0
  258. package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-6QDN6VZJ.js} +53 -50
  259. package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-3NLB2C5O.js} +25 -27
  260. package/chunks/pidfile-ZMOIUGG6.js +90 -0
  261. package/chunks/process-registry-2CHQBXH5.js +157 -0
  262. package/chunks/{processUtils-V2LCK6T6.js → processUtils-E4QGQVWW.js} +2 -2
  263. package/chunks/{pt-22Q3FP73.js → pt-EEEQXRUI.js} +52 -6
  264. package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-2LFRWJTM.js} +57 -54
  265. package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-N32BUQDC.js} +10 -10
  266. package/chunks/read-file-GLDCWZBG.js +29 -0
  267. package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-AFS3UKZO.js} +4 -4
  268. package/chunks/record-artifact-ECZSCEG5.js +21 -0
  269. package/chunks/resumeHistoryUtils-F5BE5QDW.js +95 -0
  270. package/chunks/ripGrep-T23Y4AGY.js +77 -0
  271. package/chunks/{ru-FZCNZHDC.js → ru-WGZDYQAB.js} +52 -6
  272. package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-TI2HGLLU.js} +1155 -272
  273. package/chunks/runtime-WCWM3DO7.js +125 -0
  274. package/chunks/{scheduler-RS2I6RU5.js → scheduler-2QZO5AV5.js} +51 -48
  275. package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
  276. package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-IKNWQJNV.js} +7 -7
  277. package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-7CUUMQDB.js} +10 -10
  278. package/chunks/{send-message-Q6OOR6BR.js → send-message-X7G2JSII.js} +8 -13
  279. package/chunks/serve-DZOMYUFU.js +93 -0
  280. package/chunks/{server-HRZ23U7M.js → server-N4AJRKIQ.js} +5299 -1584
  281. package/chunks/{session-7XHZKTVV.js → session-GS6AKMN7.js} +167 -102
  282. package/chunks/{settings-7ZGZDXAS.js → settings-CUN3SELH.js} +56 -53
  283. package/chunks/shell-NGBFVXC5.js +87 -0
  284. package/chunks/{skill-LIWXNLDW.js → skill-SC2BSO75.js} +35 -23
  285. package/chunks/skill-settings-XVPCPW5K.js +95 -0
  286. package/chunks/spawnChannel-RILO4YY3.js +86 -0
  287. package/chunks/standalone-update-TMLT6LVJ.js +96 -0
  288. package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-J45WOEOU.js} +1343 -1230
  289. package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-FHRY3BPQ.js} +4 -4
  290. package/chunks/task-create-LAQXBIHC.js +26 -0
  291. package/chunks/{task-list-FOPULZEP.js → task-list-V6K5DRDH.js} +8 -8
  292. package/chunks/{task-stop-H6RHXFVQ.js → task-stop-LQXE52L6.js} +3 -3
  293. package/chunks/{task-update-M57TFZJT.js → task-update-NXRCXSPB.js} +13 -12
  294. package/chunks/{team-create-O2FROQ4R.js → team-create-W3EVWCTA.js} +55 -52
  295. package/chunks/{team-delete-QE2UXJL7.js → team-delete-Z4KGO7RC.js} +8 -8
  296. package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-URYVKJF4.js} +53 -50
  297. package/chunks/theme-manager-CUAMS2NI.js +81 -0
  298. package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-OFIZDI7P.js} +34 -6
  299. package/chunks/{tool-search-APECNQ3Z.js → tool-search-DCICFL32.js} +21 -22
  300. package/chunks/total-session-admission-3ZTAXVUK.js +89 -0
  301. package/chunks/{tree-sitter-FS4VPMZA.js → tree-sitter-4D7QS7F6.js} +1 -1
  302. package/chunks/{tree-sitter-bash-6B46JJCV.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
  303. package/chunks/trustedFolders-EVCN36O5.js +99 -0
  304. package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-XLW46RHQ.js} +5 -5
  305. package/chunks/updateCheck-ZHVXDAIH.js +96 -0
  306. package/chunks/useAutoAcceptIndicator-ZGD6BJSP.js +97 -0
  307. package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-R3BAQFDY.js} +102 -97
  308. package/chunks/{version-LTNUBQJY.js → version-PMWREGCG.js} +1 -1
  309. package/chunks/{web-fetch-L5UTI53V.js → web-fetch-PGN27SGF.js} +19 -21
  310. package/chunks/{web-search-KM33JOS3.js → web-search-KW4UNMRE.js} +13 -13
  311. package/chunks/{workflow-K7FAWV77.js → workflow-SN3TJBTJ.js} +374 -323
  312. package/chunks/workspace-providers-status-O3HUZGGR.js +90 -0
  313. package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-M3FJ74RS.js} +2 -2
  314. package/chunks/workspace-registry-U7ISW23N.js +97 -0
  315. package/chunks/workspace-service-VH6IWADT.js +104 -0
  316. package/chunks/workspace-skills-status-XANARSZS.js +90 -0
  317. package/chunks/workspace-trust-reconciler-35EFR4GC.js +350 -0
  318. package/chunks/write-file-NCRSGUDT.js +79 -0
  319. package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
  320. package/chunks/{zh-LUIGBD55.js → zh-OHX23Q44.js} +52 -6
  321. package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-4G7YKDAQ.js} +52 -6
  322. package/chunks/zoom-image-X7CIADYC.js +224 -0
  323. package/cli.js +55 -48
  324. package/locales/ca.js +67 -6
  325. package/locales/de.js +69 -6
  326. package/locales/en.js +69 -6
  327. package/locales/fr.js +71 -6
  328. package/locales/ja.js +68 -6
  329. package/locales/pt.js +67 -6
  330. package/locales/ru.js +70 -6
  331. package/locales/zh-TW.js +62 -6
  332. package/locales/zh.js +62 -6
  333. package/package.json +5 -4
  334. package/web-shell/assets/{arc-BbHijhiN.js → arc-CaMTqKio.js} +1 -1
  335. package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-Bjxztij2.js} +1 -1
  336. package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-BYJzeHi9.js} +1 -1
  337. package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-fYAa-Eil.js} +1 -1
  338. package/web-shell/assets/channel-LEZei0-5.js +1 -0
  339. package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-B1OTlTml.js} +1 -1
  340. package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-DNj4uy6k.js} +1 -1
  341. package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-DAqNmg3c.js} +1 -1
  342. package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-BwB4ddxE.js} +1 -1
  343. package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-DmHR_UZs.js} +1 -1
  344. package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-BlfOXumo.js} +1 -1
  345. package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-BKogiSy7.js} +1 -1
  346. package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-DEclVrOF.js} +1 -1
  347. package/web-shell/assets/classDiagram-4FO5ZUOK-BiaRhfvf.js +1 -0
  348. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BiaRhfvf.js +1 -0
  349. package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A-CwtS21WT.js} +1 -1
  350. package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-BAAIlB4p.js} +1 -1
  351. package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-ChljtF_V.js} +1 -1
  352. package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-BIXVd31-.js} +1 -1
  353. package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-BEiBaS15.js} +1 -1
  354. package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-C-g4tWKM.js} +1 -1
  355. package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-CNCCbNQG.js} +1 -1
  356. package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-v8ysnsdI.js} +1 -1
  357. package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-LKVlLjwA.js} +1 -1
  358. package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-DA5MrKYG.js} +1 -1
  359. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-Cyg5fe6d.js} +1 -1
  360. package/web-shell/assets/index-BgOcEaVt.js +1756 -0
  361. package/web-shell/assets/index-C2GE3DAF.js +74 -0
  362. package/web-shell/assets/{index-BYo99NBH.js → index-CKdUkVVS.js} +1 -1
  363. package/web-shell/assets/index-DA5Lvscv.css +5 -0
  364. package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-SLsfu3Qd.js} +1 -1
  365. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-CmHOmTNx.js} +1 -1
  366. package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-C3gM_HFQ.js} +1 -1
  367. package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-BbHD7duM.js} +1 -1
  368. package/web-shell/assets/{linear-DCKODZe2.js → linear-CSBvm435.js} +1 -1
  369. package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-CPMw15lU.js} +5 -5
  370. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-C_tNqXQW.js} +1 -1
  371. package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-DH_N-8yY.js} +1 -1
  372. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-CRbS8UkN.js} +1 -1
  373. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-DJgdZPZn.js} +1 -1
  374. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-vhL1y5zx.js} +1 -1
  375. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-UQthhFwd.js} +1 -1
  376. package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-CAywEm20.js} +1 -1
  377. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-lfJQHw-7.js +1 -0
  378. package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-CLO8b3FD.js} +1 -1
  379. package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-BNAAh0Mu.js} +1 -1
  380. package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-CUY7bLpN.js} +1 -1
  381. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-CSg_ORdW.js} +1 -1
  382. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-BjffV208.js} +1 -1
  383. package/web-shell/index.html +2 -2
  384. package/chunks/MaxSizedBox-INHRH72H.js +0 -86
  385. package/chunks/agent-VXDAN5JK.js +0 -82
  386. package/chunks/agent-headless-K4ZMMNBD.js +0 -76
  387. package/chunks/bridge-LGPZCFHO.js +0 -91
  388. package/chunks/channel-settings-store-CHCDRTPY.js +0 -89
  389. package/chunks/chunk-HGT6JR3U.js +0 -177
  390. package/chunks/chunk-JZA3JUDJ.js +0 -82
  391. package/chunks/chunk-SZRN75WQ.js +0 -29
  392. package/chunks/chunk-UGYMA4EI.js +0 -219
  393. package/chunks/chunk-VCBZUOSI.js +0 -8575
  394. package/chunks/contextCommand-QIZYHDR5.js +0 -81
  395. package/chunks/daemon-status-provider-OS5UWBHV.js +0 -90
  396. package/chunks/earlyInputCapture-WQT24RWD.js +0 -83
  397. package/chunks/environment-VZ7BRI4Q.js +0 -103
  398. package/chunks/errors-PCX25DVP.js +0 -89
  399. package/chunks/exitPlanMode-GHPUHBZJ.js +0 -423
  400. package/chunks/handleAutoUpdate-2CZQRJ66.js +0 -82
  401. package/chunks/i18n-XEQVMRKN.js +0 -98
  402. package/chunks/initializer-OVGZ4FLY.js +0 -87
  403. package/chunks/installationInfo-5UUQJI6Y.js +0 -81
  404. package/chunks/list-HODU6RXD.js +0 -90
  405. package/chunks/loadedSettingsAdapter-TYNLBALY.js +0 -84
  406. package/chunks/mcp-J3DFWX4A.js +0 -84
  407. package/chunks/nonInteractiveCli-F4GYSMHT.js +0 -144
  408. package/chunks/pidfile-4VNAR3EP.js +0 -87
  409. package/chunks/read-file-LZXUR4TO.js +0 -31
  410. package/chunks/resumeHistoryUtils-65OX3SGJ.js +0 -92
  411. package/chunks/ripGrep-2U2FRGMV.js +0 -74
  412. package/chunks/runtime-AXJWIEDU.js +0 -120
  413. package/chunks/serve-W2GC47CM.js +0 -90
  414. package/chunks/shell-45IPBDP5.js +0 -84
  415. package/chunks/spawnChannel-PVXQ5AGV.js +0 -83
  416. package/chunks/src-AY65BYR7.js +0 -3166
  417. package/chunks/standalone-update-ZMFNKAEY.js +0 -93
  418. package/chunks/task-create-N7WQSGYA.js +0 -25
  419. package/chunks/theme-manager-YYPZFBAH.js +0 -78
  420. package/chunks/total-session-admission-JXES723M.js +0 -85
  421. package/chunks/trustedFolders-HVI7IXUH.js +0 -94
  422. package/chunks/updateCheck-WUJGHWZZ.js +0 -93
  423. package/chunks/useAutoAcceptIndicator-CHSTZLZD.js +0 -94
  424. package/chunks/workspace-providers-status-GAKSF4LL.js +0 -87
  425. package/chunks/workspace-registry-A7NQUONG.js +0 -89
  426. package/chunks/workspace-service-STGVSO4N.js +0 -99
  427. package/chunks/workspace-skills-status-66AK3DUA.js +0 -86
  428. package/chunks/write-file-HUUCEG4P.js +0 -74
  429. package/web-shell/assets/channel-Bzdx6E8P.js +0 -1
  430. package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +0 -1
  431. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +0 -1
  432. package/web-shell/assets/index-B2bXx96W.js +0 -1249
  433. package/web-shell/assets/index-_8mKjx8q.css +0 -5
  434. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +0 -1
  435. package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
  436. package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
  437. /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
@@ -3,14 +3,14 @@
3
3
  import {
4
4
  require_abort_controller,
5
5
  require_lib
6
- } from "./chunk-BPZALHVR.js";
6
+ } from "./chunk-DI35ZN7T.js";
7
7
  import {
8
8
  clampReasoningEffort
9
- } from "./chunk-XVNQMZ2I.js";
9
+ } from "./chunk-DGEIYUC3.js";
10
10
  import {
11
11
  RequestTokenizer
12
- } from "./chunk-OKY7HXPG.js";
13
- import "./chunk-FODK6UMO.js";
12
+ } from "./chunk-H36SETQS.js";
13
+ import "./chunk-MPHPFVKK.js";
14
14
  import {
15
15
  resolveRequestTimeout
16
16
  } from "./chunk-GLNBDYUX.js";
@@ -27,37 +27,37 @@ import {
27
27
  convertSchema,
28
28
  safeJsonParse,
29
29
  setGenAiUsageProvenance
30
- } from "./chunk-H5FFA6TH.js";
30
+ } from "./chunk-WK4TJUEA.js";
31
31
  import {
32
32
  runtimeDiagnostics,
33
33
  setToolCallPreparations
34
- } from "./chunk-LS77BEZP.js";
34
+ } from "./chunk-GLCZKT5V.js";
35
35
  import {
36
36
  reportAnthropicEvent,
37
37
  reportAnthropicFollowingRequest,
38
38
  reportAnthropicRequest,
39
39
  reportAnthropicResponse
40
- } from "./chunk-FY3M44RD.js";
41
- import "./chunk-SQBYH7PX.js";
40
+ } from "./chunk-URN76TKR.js";
41
+ import "./chunk-2DNKEBXY.js";
42
+ import "./chunk-5WV5S2GT.js";
43
+ import "./chunk-XWRJCPHC.js";
42
44
  import {
43
45
  normalizeMcpToolName
44
46
  } from "./chunk-46UV252V.js";
45
- import "./chunk-A4UCTEB5.js";
46
- import "./chunk-XWRJCPHC.js";
47
47
  import {
48
48
  defaultOutputCeiling,
49
49
  hasExplicitOutputLimit,
50
50
  parsePositiveIntegerEnvValue,
51
51
  reconcileMaxTokens,
52
52
  tokenLimit
53
- } from "./chunk-UW5EOVUN.js";
53
+ } from "./chunk-ZBVS26BY.js";
54
54
  import {
55
55
  buildRuntimeFetchOptions,
56
56
  redactProxyError
57
- } from "./chunk-2JZBVYTU.js";
57
+ } from "./chunk-BFHXDAR7.js";
58
58
  import {
59
59
  createDebugLogger
60
- } from "./chunk-NL7LTRLR.js";
60
+ } from "./chunk-3RXUYQJI.js";
61
61
  import {
62
62
  require_ms
63
63
  } from "./chunk-YQ3U5MUC.js";
@@ -68,7 +68,7 @@ import {
68
68
  import "./chunk-TYAMGABM.js";
69
69
  import "./chunk-FCMNKVXT.js";
70
70
  import "./chunk-AMDSOFFV.js";
71
- import "./chunk-TARRHLLG.js";
71
+ import "./chunk-QUGAUQGJ.js";
72
72
  import {
73
73
  init_esbuild_shims
74
74
  } from "./chunk-5O2XNYP6.js";
@@ -4250,11 +4250,21 @@ var AnthropicContentConverter = class {
4250
4250
  }
4251
4251
  schemaCompliance;
4252
4252
  enableCacheControl;
4253
+ /**
4254
+ * Per-request tool ID sanitization state (see {@link resolveToolUseId}).
4255
+ * The converter instance is long-lived across requests (constructed once
4256
+ * per generator), so this state is reset at the top of every
4257
+ * `convertGeminiRequestToAnthropic` call rather than at construction.
4258
+ */
4259
+ toolIdMap = /* @__PURE__ */ new Map();
4260
+ usedToolIds = /* @__PURE__ */ new Set();
4261
+ generatedToolIdCounter = 0;
4253
4262
  constructor(_model, schemaCompliance = "auto", enableCacheControl = true) {
4254
4263
  this.schemaCompliance = schemaCompliance;
4255
4264
  this.enableCacheControl = enableCacheControl;
4256
4265
  }
4257
4266
  convertGeminiRequestToAnthropic(request, options = {}) {
4267
+ this.resetToolIdState();
4258
4268
  let messages = [];
4259
4269
  const systemText = this.extractTextFromContentUnion(
4260
4270
  request.config?.systemInstruction
@@ -4275,15 +4285,39 @@ var AnthropicContentConverter = class {
4275
4285
  if (options.dropUnsignedAssistantThinking) {
4276
4286
  messages = this.dropUnsignedThinkingFromAssistantMessages(messages);
4277
4287
  }
4288
+ if (!options.injectThinkingOnToolUseTurns) {
4289
+ messages = dropEmptyTextThinkingBlocks(messages);
4290
+ }
4278
4291
  if (options.stripAssistantThinking) {
4279
4292
  this.stripThinkingFromAssistantMessages(messages);
4280
4293
  }
4281
4294
  messages = mergeConsecutiveUserMessages(messages);
4295
+ if (options.stripTrailingAssistantPrefill) {
4296
+ this.stripTrailingAssistantPrefill(messages);
4297
+ }
4282
4298
  const enableCacheControl = options.enableCacheControl ?? this.enableCacheControl;
4283
4299
  const useGlobalCacheScope = options.useGlobalCacheScope ?? false;
4284
- const system = enableCacheControl ? this.buildSystemWithCacheControl(systemText, useGlobalCacheScope) : systemText;
4300
+ const cacheRetention = options.cacheRetention ?? "ephemeral";
4301
+ const cacheRetentionByBlock = options.cacheRetentionByBlock ?? {};
4302
+ const system = enableCacheControl ? this.buildSystemWithCacheControl(
4303
+ systemText,
4304
+ useGlobalCacheScope,
4305
+ options.staticSystemPrefix,
4306
+ this.resolveCacheRetention(
4307
+ "system",
4308
+ cacheRetention,
4309
+ cacheRetentionByBlock
4310
+ )
4311
+ ) : systemText;
4285
4312
  if (enableCacheControl) {
4286
- this.addCacheControlToMessages(messages);
4313
+ this.addCacheControlToMessages(
4314
+ messages,
4315
+ this.resolveCacheRetention(
4316
+ "user.last",
4317
+ cacheRetention,
4318
+ cacheRetentionByBlock
4319
+ )
4320
+ );
4287
4321
  }
4288
4322
  return {
4289
4323
  system,
@@ -4330,9 +4364,18 @@ var AnthropicContentConverter = class {
4330
4364
  const useGlobalCacheScope = options.useGlobalCacheScope ?? false;
4331
4365
  if (enableCacheControl && tools.length > 0) {
4332
4366
  const lastToolIndex = tools.length - 1;
4367
+ const resolvedRetention = this.resolveCacheRetention(
4368
+ "tool",
4369
+ options.cacheRetention ?? "ephemeral",
4370
+ options.cacheRetentionByBlock ?? {}
4371
+ );
4333
4372
  tools[lastToolIndex] = {
4334
4373
  ...tools[lastToolIndex],
4335
- cache_control: useGlobalCacheScope ? { type: "ephemeral", scope: "global" } : { type: "ephemeral" }
4374
+ cache_control: {
4375
+ type: "ephemeral",
4376
+ ...useGlobalCacheScope ? { scope: "global" } : {},
4377
+ ...resolvedRetention === "1h" ? { ttl: "1h" } : {}
4378
+ }
4336
4379
  };
4337
4380
  }
4338
4381
  return tools;
@@ -4423,7 +4466,6 @@ var AnthropicContentConverter = class {
4423
4466
  const parts = content.parts || [];
4424
4467
  const role = content.role === "model" ? "assistant" : "user";
4425
4468
  const contentBlocks = [];
4426
- let toolCallIndex = 0;
4427
4469
  for (const part of parts) {
4428
4470
  if (typeof part === "string") {
4429
4471
  contentBlocks.push({ type: "text", text: part });
@@ -4452,11 +4494,10 @@ var AnthropicContentConverter = class {
4452
4494
  if (role === "assistant") {
4453
4495
  contentBlocks.push({
4454
4496
  type: "tool_use",
4455
- id: part.functionCall.id || `tool_${toolCallIndex}`,
4497
+ id: this.resolveToolUseId(part.functionCall.id),
4456
4498
  name: normalizeMcpToolName(part.functionCall.name || ""),
4457
4499
  input: part.functionCall.args || {}
4458
4500
  });
4459
- toolCallIndex += 1;
4460
4501
  }
4461
4502
  }
4462
4503
  if (part.functionResponse) {
@@ -4469,6 +4510,13 @@ var AnthropicContentConverter = class {
4469
4510
  }
4470
4511
  }
4471
4512
  if (contentBlocks.length > 0) {
4513
+ if (role === "user" && contentBlocks.some((b) => b.type === "tool_result")) {
4514
+ contentBlocks.sort((a, b) => {
4515
+ if (a.type === "tool_result" && b.type !== "tool_result") return -1;
4516
+ if (a.type !== "tool_result" && b.type === "tool_result") return 1;
4517
+ return 0;
4518
+ });
4519
+ }
4472
4520
  messages.push({ role, content: contentBlocks });
4473
4521
  }
4474
4522
  }
@@ -4494,11 +4542,68 @@ var AnthropicContentConverter = class {
4494
4542
  }
4495
4543
  return {
4496
4544
  type: "tool_result",
4497
- tool_use_id: response.id || "",
4545
+ tool_use_id: this.resolveToolUseId(response.id),
4498
4546
  content,
4499
4547
  ...response.response && Object.prototype.hasOwnProperty.call(response.response, "error") ? { is_error: true } : {}
4500
4548
  };
4501
4549
  }
4550
+ resetToolIdState() {
4551
+ this.toolIdMap.clear();
4552
+ this.usedToolIds.clear();
4553
+ this.generatedToolIdCounter = 0;
4554
+ }
4555
+ /**
4556
+ * Resolve a `functionCall.id` / `functionResponse.id` into a wire-safe
4557
+ * `tool_use.id` / `tool_result.tool_use_id`. Anthropic validates both
4558
+ * fields against `^[a-zA-Z0-9_-]+$` server-side (HTTP 400 otherwise) and
4559
+ * rejects the empty string the same way, since `+` requires at least one
4560
+ * character. The Gemini lingua-franca's `id` field has no such
4561
+ * constraint -- it can carry another provider's ID scheme, a
4562
+ * composite/namespaced ID, or be entirely absent.
4563
+ *
4564
+ * The same source ID always resolves to the same wire ID within a
4565
+ * request (memoized in `toolIdMap`), so a `tool_use`/`tool_result` pair
4566
+ * that shares a source ID still links up correctly after sanitization.
4567
+ * State is scoped to a single `convertGeminiRequestToAnthropic` call
4568
+ * (reset via {@link resetToolIdState}), since the converter instance
4569
+ * itself is long-lived across requests.
4570
+ */
4571
+ resolveToolUseId(rawId) {
4572
+ const sourceId = typeof rawId === "string" ? rawId.trim() : "";
4573
+ const existingId = sourceId ? this.toolIdMap.get(sourceId) : void 0;
4574
+ if (existingId) {
4575
+ return existingId;
4576
+ }
4577
+ const baseId = sourceId ? this.sanitizeToolUseId(sourceId) : this.nextGeneratedToolId();
4578
+ const uniqueId = this.makeUniqueToolUseId(baseId);
4579
+ if (sourceId) {
4580
+ this.toolIdMap.set(sourceId, uniqueId);
4581
+ }
4582
+ return uniqueId;
4583
+ }
4584
+ sanitizeToolUseId(id) {
4585
+ const cleaned = id.replace(/[^a-zA-Z0-9_-]/g, "_");
4586
+ return cleaned || this.nextGeneratedToolId();
4587
+ }
4588
+ nextGeneratedToolId() {
4589
+ const id = `tool_${this.generatedToolIdCounter}`;
4590
+ this.generatedToolIdCounter += 1;
4591
+ return id;
4592
+ }
4593
+ makeUniqueToolUseId(baseId) {
4594
+ if (!this.usedToolIds.has(baseId)) {
4595
+ this.usedToolIds.add(baseId);
4596
+ return baseId;
4597
+ }
4598
+ let suffix = 1;
4599
+ let candidate = `${baseId}_${suffix}`;
4600
+ while (this.usedToolIds.has(candidate)) {
4601
+ suffix += 1;
4602
+ candidate = `${baseId}_${suffix}`;
4603
+ }
4604
+ this.usedToolIds.add(candidate);
4605
+ return candidate;
4606
+ }
4502
4607
  createMediaBlockFromPart(part) {
4503
4608
  if (part.inlineData?.mimeType && part.inlineData?.data) {
4504
4609
  if (this.isSupportedAnthropicImageMimeType(part.inlineData.mimeType)) {
@@ -4625,6 +4730,44 @@ var AnthropicContentConverter = class {
4625
4730
  isContentObject(content) {
4626
4731
  return typeof content === "object" && content !== null && "role" in content && "parts" in content && Array.isArray(content["parts"]);
4627
4732
  }
4733
+ /**
4734
+ * Resolve the effective {@link CacheRetention} for one cache anchor,
4735
+ * normalized so retention is monotonically non-increasing in wire order.
4736
+ *
4737
+ * Render order is `tools` -> `system` -> `messages`, so this converter's
4738
+ * three anchors sit on the wire in exactly that order: `tool` -> `system`
4739
+ * -> `user.last`. Anthropic requires "cache entries with longer TTL must
4740
+ * appear before shorter TTLs" — an anchor at the spec's 5-minute default
4741
+ * (no `ttl`) is a short-TTL entry for this rule's purposes, so a raw
4742
+ * per-anchor override like `cacheRetentionByBlock: { system: '1h' }`
4743
+ * would otherwise leave the (still 5m-default) `tool` anchor ahead of a
4744
+ * 1h `system` anchor on the wire — an ordering violation Anthropic 400s
4745
+ * on.
4746
+ *
4747
+ * Resolving with a scan instead of a straight per-anchor lookup avoids
4748
+ * that: `anchor` resolves to `'1h'` if `anchor` itself OR any anchor
4749
+ * later on the wire resolves to `'1h'`. That makes every
4750
+ * `cacheRetentionByBlock` configuration legal — anchors before a `'1h'`
4751
+ * anchor are promoted to `'1h'` too — without adding a new error surface
4752
+ * or rejecting any input. `{ tool: '1h' }` alone is unaffected (nothing
4753
+ * follows it that needs promoting); `{ system: '1h' }` alone now also
4754
+ * promotes `tool` to `'1h'`, which is exactly the "cache my big system
4755
+ * prompt for an hour" usage the per-anchor override exists for.
4756
+ */
4757
+ resolveCacheRetention(anchor, cacheRetention, cacheRetentionByBlock) {
4758
+ const wireOrder = [
4759
+ "tool",
4760
+ "system",
4761
+ "user.last"
4762
+ ];
4763
+ const anchorIndex = wireOrder.indexOf(anchor);
4764
+ for (let i = wireOrder.length - 1; i >= anchorIndex; i--) {
4765
+ if ((cacheRetentionByBlock[wireOrder[i]] ?? cacheRetention) === "1h") {
4766
+ return "1h";
4767
+ }
4768
+ }
4769
+ return "ephemeral";
4770
+ }
4628
4771
  /**
4629
4772
  * Build system content blocks with cache_control.
4630
4773
  * Anthropic prompt caching requires cache_control on system content.
@@ -4633,16 +4776,60 @@ var AnthropicContentConverter = class {
4633
4776
  * `prompt-caching-scope-2026-01-05` beta. Otherwise emit the standard
4634
4777
  * per-session shape so non-Anthropic baseURLs aren't sent a scope
4635
4778
  * extension they may not recognize.
4779
+ *
4780
+ * When `staticSystemPrefix` matches the beginning of the system text and
4781
+ * a suffix follows (git status, session-start context — the volatile
4782
+ * tails the client appends after the stable prompt), the text is split
4783
+ * into two blocks carrying one breakpoint each:
4784
+ * 1. the stable prefix — scoped per `useGlobalCacheScope`, so new
4785
+ * sessions reuse it even though their suffix differs;
4786
+ * 2. the end of the full system prompt — always the per-session
4787
+ * `{ type: 'ephemeral' }` shape. The suffix varies across sessions,
4788
+ * so a global-scope entry here would churn cache for zero hits
4789
+ * (same reasoning as `addCacheControlToMessages`). Within a session
4790
+ * it still caches the suffix, and when the suffix changes mid-session
4791
+ * (/cd refreshes git status, session-start context lands) the prefix
4792
+ * breakpoint keeps the big block from re-billing.
4793
+ * The split only shapes the outgoing request; stored history and
4794
+ * non-Anthropic transports keep seeing a single system string.
4636
4795
  */
4637
- buildSystemWithCacheControl(systemText, useGlobalCacheScope) {
4796
+ buildSystemWithCacheControl(systemText, useGlobalCacheScope, staticSystemPrefix, cacheRetention = "ephemeral") {
4638
4797
  if (!systemText) {
4639
4798
  return systemText;
4640
4799
  }
4800
+ const scopedCacheControl = {
4801
+ type: "ephemeral",
4802
+ ...useGlobalCacheScope ? { scope: "global" } : {},
4803
+ ...cacheRetention === "1h" ? { ttl: "1h" } : {}
4804
+ };
4805
+ if (staticSystemPrefix && systemText.length > staticSystemPrefix.length && systemText.startsWith(staticSystemPrefix)) {
4806
+ return [
4807
+ {
4808
+ type: "text",
4809
+ text: staticSystemPrefix,
4810
+ cache_control: scopedCacheControl
4811
+ },
4812
+ {
4813
+ type: "text",
4814
+ text: systemText.slice(staticSystemPrefix.length),
4815
+ // Deliberately never carries `scope: 'global'` (see class doc
4816
+ // above — the suffix varies per session, cross-session reuse
4817
+ // has ~zero hit rate). `cacheRetention` still applies: the
4818
+ // suffix is cached within a session, and a caller that asked
4819
+ // for the 1h tier benefits from it surviving longer gaps
4820
+ // between turns even on this volatile block.
4821
+ cache_control: {
4822
+ type: "ephemeral",
4823
+ ...cacheRetention === "1h" ? { ttl: "1h" } : {}
4824
+ }
4825
+ }
4826
+ ];
4827
+ }
4641
4828
  return [
4642
4829
  {
4643
4830
  type: "text",
4644
4831
  text: systemText,
4645
- cache_control: useGlobalCacheScope ? { type: "ephemeral", scope: "global" } : { type: "ephemeral" }
4832
+ cache_control: scopedCacheControl
4646
4833
  }
4647
4834
  ];
4648
4835
  }
@@ -4796,6 +4983,43 @@ var AnthropicContentConverter = class {
4796
4983
  message.content = [emptyThinking, ...blocks];
4797
4984
  }
4798
4985
  }
4986
+ /**
4987
+ * Strip a trailing empty-content assistant message, or append a
4988
+ * synthetic user turn to satisfy Anthropic's "must end with a user
4989
+ * message" requirement (Opus/Sonnet 4.6+, every 5.x family) when the
4990
+ * conversation would otherwise end on a non-empty assistant message.
4991
+ * See {@link ConvertGeminiRequestToAnthropicOptions.stripTrailingAssistantPrefill}.
4992
+ */
4993
+ stripTrailingAssistantPrefill(messages) {
4994
+ while (messages.length > 0) {
4995
+ const last = messages[messages.length - 1];
4996
+ if (last.role !== "assistant") return;
4997
+ if (!this.isEmptyAssistantMessage(last)) break;
4998
+ messages.pop();
4999
+ }
5000
+ if (messages.length > 0 && messages[messages.length - 1].role === "assistant") {
5001
+ messages.push({
5002
+ role: "user",
5003
+ content: [{ type: "text", text: "Continue." }]
5004
+ });
5005
+ }
5006
+ }
5007
+ isEmptyAssistantMessage(message) {
5008
+ const content = message.content;
5009
+ if (!content) return true;
5010
+ if (typeof content === "string") return content.trim().length === 0;
5011
+ if (!Array.isArray(content) || content.length === 0) return true;
5012
+ for (const block of content) {
5013
+ const type = block.type;
5014
+ if (type === "text") {
5015
+ const text = block.text;
5016
+ if (typeof text === "string" && text.trim().length > 0) return false;
5017
+ } else {
5018
+ return false;
5019
+ }
5020
+ }
5021
+ return true;
5022
+ }
4799
5023
  /**
4800
5024
  * Add cache_control to the last user message's content.
4801
5025
  * This enables prompt caching for the conversation context.
@@ -4804,11 +5028,11 @@ var AnthropicContentConverter = class {
4804
5028
  * no `scope: 'global'`. The last user message changes every turn (it's
4805
5029
  * the live prompt and any tool_result blocks from the immediately prior
4806
5030
  * round), so cross-session reuse here has effectively zero hit rate and
4807
- * paying the global-scope overhead would just churn cache. System text
4808
- * and tool prefixes (which DO repeat across sessions) carry
5031
+ * paying the global-scope overhead would just churn cache. The static
5032
+ * system prefix and tool prefixes (which DO repeat across sessions) carry
4809
5033
  * `scope: 'global'` instead.
4810
5034
  */
4811
- addCacheControlToMessages(messages) {
5035
+ addCacheControlToMessages(messages, cacheRetention = "ephemeral") {
4812
5036
  for (let i = messages.length - 1; i >= 0; i--) {
4813
5037
  const msg = messages[i];
4814
5038
  if (msg.role === "user") {
@@ -4820,7 +5044,8 @@ var AnthropicContentConverter = class {
4820
5044
  const isEmptyText = type === "text" && (!("text" in lastContent) || !lastContent.text);
4821
5045
  if ((type === "text" || type === "tool_result") && !isEmptyText) {
4822
5046
  lastContent.cache_control = {
4823
- type: "ephemeral"
5047
+ type: "ephemeral",
5048
+ ...cacheRetention === "1h" ? { ttl: "1h" } : {}
4824
5049
  };
4825
5050
  }
4826
5051
  }
@@ -4869,6 +5094,16 @@ function mergeConsecutiveAssistantMessages(messages) {
4869
5094
  return merged;
4870
5095
  }
4871
5096
  __name(mergeConsecutiveAssistantMessages, "mergeConsecutiveAssistantMessages");
5097
+ function makeToolResultDeduper() {
5098
+ const seen = /* @__PURE__ */ new Set();
5099
+ return (id) => {
5100
+ if (!id) return true;
5101
+ if (seen.has(id)) return false;
5102
+ seen.add(id);
5103
+ return true;
5104
+ };
5105
+ }
5106
+ __name(makeToolResultDeduper, "makeToolResultDeduper");
4872
5107
  function cleanOrphanedToolCalls(messages) {
4873
5108
  const validToolUseBlocks = /* @__PURE__ */ new WeakSet();
4874
5109
  const validToolResultBlocks = /* @__PURE__ */ new WeakSet();
@@ -4886,6 +5121,12 @@ function cleanOrphanedToolCalls(messages) {
4886
5121
  }
4887
5122
  }
4888
5123
  if (toolUseBlocks.size === 0) continue;
5124
+ if (i === messages.length - 1) {
5125
+ for (const block of toolUseBlocks.values()) {
5126
+ validToolUseBlocks.add(block);
5127
+ }
5128
+ continue;
5129
+ }
4889
5130
  for (let j = i + 1; j < messages.length; j++) {
4890
5131
  const nextMessage = messages[j];
4891
5132
  if (!nextMessage || nextMessage.role !== "user" || !Array.isArray(nextMessage.content)) {
@@ -4923,20 +5164,33 @@ function cleanOrphanedToolCalls(messages) {
4923
5164
  cleaned.push(message);
4924
5165
  continue;
4925
5166
  }
5167
+ let toolUseRemoved = false;
5168
+ const keepToolResult = makeToolResultDeduper();
4926
5169
  const filtered = blocks.filter((b) => {
4927
5170
  const t = b.type;
4928
5171
  if (t === "tool_use") {
4929
5172
  const id = b.id;
4930
- return !id || validToolUseBlocks.has(b);
5173
+ const keep = !id || validToolUseBlocks.has(b);
5174
+ if (!keep) toolUseRemoved = true;
5175
+ return keep;
4931
5176
  }
4932
5177
  if (t === "tool_result") {
4933
5178
  const id = b.tool_use_id;
4934
- return !id || validToolResultBlocks.has(b);
5179
+ if (!id) return true;
5180
+ if (!validToolResultBlocks.has(b)) return false;
5181
+ return keepToolResult(id);
4935
5182
  }
4936
5183
  return true;
4937
5184
  });
4938
- if (filtered.length > 0) {
4939
- cleaned.push({ ...message, content: filtered });
5185
+ const survivingToolUse = filtered.some(
5186
+ (b) => b.type === "tool_use"
5187
+ );
5188
+ const finalBlocks = toolUseRemoved && !survivingToolUse && message.role === "assistant" ? filtered.filter((b) => {
5189
+ const t = b.type;
5190
+ return t !== "thinking" && t !== "redacted_thinking";
5191
+ }) : filtered;
5192
+ if (finalBlocks.length > 0) {
5193
+ cleaned.push({ ...message, content: finalBlocks });
4940
5194
  } else {
4941
5195
  debugLogger.debug(
4942
5196
  "cleanOrphanedToolCalls: dropping message with only orphaned tool blocks"
@@ -4946,6 +5200,38 @@ function cleanOrphanedToolCalls(messages) {
4946
5200
  return cleaned;
4947
5201
  }
4948
5202
  __name(cleanOrphanedToolCalls, "cleanOrphanedToolCalls");
5203
+ function dropEmptyTextThinkingBlocks(messages) {
5204
+ let latestAssistantIdx = -1;
5205
+ for (let i = messages.length - 1; i >= 0; i--) {
5206
+ if (messages[i].role === "assistant") {
5207
+ latestAssistantIdx = i;
5208
+ break;
5209
+ }
5210
+ }
5211
+ const out = [];
5212
+ for (let i = 0; i < messages.length; i++) {
5213
+ const msg = messages[i];
5214
+ if (msg.role !== "assistant" || !Array.isArray(msg.content)) {
5215
+ out.push(msg);
5216
+ continue;
5217
+ }
5218
+ if (i === latestAssistantIdx) {
5219
+ out.push(msg);
5220
+ continue;
5221
+ }
5222
+ const blocks = msg.content;
5223
+ const filtered = blocks.filter((raw) => {
5224
+ const bType = raw.type;
5225
+ const bThinkingRaw = raw.thinking;
5226
+ const bThinking = typeof bThinkingRaw === "string" ? bThinkingRaw : void 0;
5227
+ return !(bType === "thinking" && (bThinking === void 0 || bThinking.length === 0));
5228
+ });
5229
+ if (filtered.length === 0) continue;
5230
+ out.push({ role: msg.role, content: filtered });
5231
+ }
5232
+ return out;
5233
+ }
5234
+ __name(dropEmptyTextThinkingBlocks, "dropEmptyTextThinkingBlocks");
4949
5235
  function mergeConsecutiveUserMessages(messages) {
4950
5236
  const merged = [];
4951
5237
  for (const message of messages) {
@@ -4955,10 +5241,14 @@ function mergeConsecutiveUserMessages(messages) {
4955
5241
  ...lastMessage.content,
4956
5242
  ...message.content
4957
5243
  ];
5244
+ const keepToolResult = makeToolResultDeduper();
5245
+ const toolResults = combined.filter((b) => {
5246
+ if (b.type !== "tool_result") return false;
5247
+ const id = b.tool_use_id;
5248
+ return keepToolResult(id);
5249
+ });
4958
5250
  lastMessage.content = [
4959
- ...combined.filter(
4960
- (b) => b.type === "tool_result"
4961
- ),
5251
+ ...toolResults,
4962
5252
  ...combined.filter(
4963
5253
  (b) => b.type !== "tool_result"
4964
5254
  )
@@ -5218,6 +5508,9 @@ var AnthropicContentGenerator = class {
5218
5508
  if (this.hasGlobalCacheScopeOnWire(anthropicRequest)) {
5219
5509
  betas.push("prompt-caching-scope-2026-01-05");
5220
5510
  }
5511
+ if (this.hasExtendedCacheTtlOnWire(anthropicRequest)) {
5512
+ betas.push("extended-cache-ttl-2025-04-11");
5513
+ }
5221
5514
  if (betas.length === 0) return void 0;
5222
5515
  const unique = Array.from(new Set(betas));
5223
5516
  return { "anthropic-beta": unique.join(",") };
@@ -5277,6 +5570,47 @@ var AnthropicContentGenerator = class {
5277
5570
  }
5278
5571
  return false;
5279
5572
  }
5573
+ /**
5574
+ * Whether the assembled request body carries any
5575
+ * `cache_control: { ..., ttl: '1h' }` entry. Scans the system block,
5576
+ * tools array, and message content blocks — every place the converter
5577
+ * attaches `cache_control` (system text, last tool, trailing user
5578
+ * message). Used to gate the `extended-cache-ttl-2025-04-11` beta
5579
+ * header defensively: live verification found the header has no
5580
+ * observable effect on this proxy/Vertex backend (identical
5581
+ * `ephemeral_1h_input_tokens` with and without it), but a hard
5582
+ * requirement can't be ruled out for every Anthropic-compatible
5583
+ * backend, so it is sent whenever the body actually requests the 1h
5584
+ * tier -- same single-source-of-truth pattern as
5585
+ * {@link hasGlobalCacheScopeOnWire}.
5586
+ */
5587
+ hasExtendedCacheTtlOnWire(req) {
5588
+ const hasTtl1h = /* @__PURE__ */ __name((block) => {
5589
+ if (!block || typeof block !== "object") return false;
5590
+ const cc = block.cache_control;
5591
+ if (!cc || typeof cc !== "object") return false;
5592
+ return cc.ttl === "1h";
5593
+ }, "hasTtl1h");
5594
+ if (Array.isArray(req.system)) {
5595
+ for (const block of req.system) {
5596
+ if (hasTtl1h(block)) return true;
5597
+ }
5598
+ }
5599
+ if (Array.isArray(req.tools)) {
5600
+ for (const tool of req.tools) {
5601
+ if (hasTtl1h(tool)) return true;
5602
+ }
5603
+ }
5604
+ if (Array.isArray(req.messages)) {
5605
+ for (const message of req.messages) {
5606
+ if (!Array.isArray(message.content)) continue;
5607
+ for (const block of message.content) {
5608
+ if (hasTtl1h(block)) return true;
5609
+ }
5610
+ }
5611
+ }
5612
+ return false;
5613
+ }
5280
5614
  /**
5281
5615
  * Read every customHeaders entry whose key (case-insensitively) is
5282
5616
  * `anthropic-beta` and yield the comma-separated flags from each. Multiple
@@ -5306,8 +5640,11 @@ var AnthropicContentGenerator = class {
5306
5640
  const deepseekThinkingOn = isDeepSeek && !!thinking;
5307
5641
  const stripAssistantThinking = isDeepSeek && !thinking;
5308
5642
  const dropUnsignedAssistantThinking = !isDeepSeek && !!thinking && this.modelSupportsAdaptiveThinking() && !isAnthropicNativeBaseUrl(this.contentGeneratorConfig);
5643
+ const stripTrailingAssistantPrefill = this.modelSupportsAdaptiveThinking();
5309
5644
  const enableCacheControl = this.contentGeneratorConfig.enableCacheControl !== false;
5310
5645
  const useGlobalCacheScope = this.useGlobalCacheScope();
5646
+ const cacheRetention = this.contentGeneratorConfig.cacheRetention;
5647
+ const cacheRetentionByBlock = this.contentGeneratorConfig.cacheRetentionByBlock;
5311
5648
  const { system, messages } = this.converter.convertGeminiRequestToAnthropic(
5312
5649
  request,
5313
5650
  {
@@ -5318,13 +5655,27 @@ var AnthropicContentGenerator = class {
5318
5655
  injectThinkingOnToolUseTurns: deepseekThinkingOn,
5319
5656
  dropUnsignedAssistantThinking,
5320
5657
  stripAssistantThinking,
5658
+ stripTrailingAssistantPrefill,
5321
5659
  enableCacheControl,
5322
- useGlobalCacheScope
5660
+ useGlobalCacheScope,
5661
+ cacheRetention,
5662
+ cacheRetentionByBlock,
5663
+ // Read per request (not latched at construction): the client
5664
+ // re-records the prefix whenever it rebuilds the system prompt
5665
+ // (memory refresh, model change), and the converter fails open to
5666
+ // the single-block layout when the request's system text doesn't
5667
+ // start with it (subagent prompts, stale prefix).
5668
+ staticSystemPrefix: this.cliConfig.getStaticSystemPrefix()
5323
5669
  }
5324
5670
  );
5325
5671
  const tools = request.config?.tools ? await this.converter.convertGeminiToolsToAnthropic(
5326
5672
  request.config.tools,
5327
- { enableCacheControl, useGlobalCacheScope }
5673
+ {
5674
+ enableCacheControl,
5675
+ useGlobalCacheScope,
5676
+ cacheRetention,
5677
+ cacheRetentionByBlock
5678
+ }
5328
5679
  ) : void 0;
5329
5680
  const toolChoice = this.resolveToolChoice(request, tools);
5330
5681
  return {
@@ -5505,7 +5856,7 @@ var AnthropicContentGenerator = class {
5505
5856
  this.budgetDropWarned = true;
5506
5857
  }
5507
5858
  if (this.modelSupportsAdaptiveThinking()) {
5508
- return { type: "adaptive" };
5859
+ return { type: "adaptive", display: "summarized" };
5509
5860
  }
5510
5861
  const budgetTokens = effectiveEffort === "low" ? 16e3 : effectiveEffort === "max" ? 128e3 : effectiveEffort === "xhigh" ? 96e3 : effectiveEffort === "high" ? 64e3 : 32e3;
5511
5862
  return {
@@ -2,13 +2,13 @@
2
2
  "use strict";
3
3
  import {
4
4
  openBrowserSecurely
5
- } from "./chunk-JESCGQM3.js";
5
+ } from "./chunk-NAVJD2PQ.js";
6
6
  import {
7
7
  BaseDeclarativeTool,
8
8
  BaseToolInvocation,
9
9
  ToolDisplayNames,
10
10
  ToolNames
11
- } from "./chunk-PR75REBZ.js";
11
+ } from "./chunk-I5GNT6ZS.js";
12
12
  import {
13
13
  Storage,
14
14
  createDebugLogger,
@@ -18,8 +18,8 @@ import {
18
18
  makeRelative,
19
19
  shortenPath,
20
20
  unescapePath
21
- } from "./chunk-NL7LTRLR.js";
22
- import "./chunk-TARRHLLG.js";
21
+ } from "./chunk-3RXUYQJI.js";
22
+ import "./chunk-QUGAUQGJ.js";
23
23
  import {
24
24
  init_esbuild_shims
25
25
  } from "./chunk-5O2XNYP6.js";