nolo-cli 0.228.0-alpha.2 → 0.228.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-GIFVXKDT.js} +88 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-WZTKEF5H.js} +9 -6
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-MLI6GOBV.js} +14 -13
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-ARGQM22H.js} +17 -16
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-UF7XVELS.js} +118 -111
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-SFHRPQYC.js} +118 -107
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-IXKBP3W5.js} +208 -177
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-7NX6PWQ6.js} +55 -48
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-4EQZYHU4.js} +1 -1
  13. package/agentRecordCommands-IUNX6XD6.js +188 -0
  14. package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-LCR4XADM.js} +125 -111
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-RN2P6AOD.js} +11 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-LVXPQ7QA.js} +56 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-ZGMOH6TE.js} +15 -14
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-BESCJOQM.js} +55 -48
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-LPTR6IOX.js} +55 -48
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-BZ7KZ5RD.js} +55 -48
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-EDWGJV4S.js} +55 -48
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-OPRWYPM6.js} +55 -48
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-3C3RN4OU.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-ZMVEDCQD.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-VRCMQ77Q.js} +7 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-NZITLHWO.js} +3 -3
  28. package/{chunk-VQ5N5GSV.js → chunk-2BKNICGK.js} +4 -4
  29. package/{chunk-QYB23WUH.js → chunk-2FK2KZSL.js} +1 -1
  30. package/chunk-2SXN7LAY.js +15 -0
  31. package/{chunk-3VZLEKV2.js → chunk-3DJJ4CFG.js} +11 -11
  32. package/{chunk-TSPMLCWI.js → chunk-4IQN6FWY.js} +5 -5
  33. package/{chunk-XAG3FWBE.js → chunk-4OXPN3WC.js} +6 -6
  34. package/chunk-4ZCTKB27.js +31 -0
  35. package/chunk-53W5BXLN.js +340 -0
  36. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  37. package/chunk-6ASGEP5D.js +21 -0
  38. package/{chunk-MJI3UAXN.js → chunk-6CXQ3YNJ.js} +40 -36
  39. package/{chunk-G7IUT2V3.js → chunk-6MTVACLN.js} +365 -64
  40. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  41. package/{chunk-XSW4EXQV.js → chunk-6TVYUQRM.js} +55 -18
  42. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  43. package/{chunk-7Z6EW7AH.js → chunk-6XVPMGXK.js} +97 -11
  44. package/{chunk-ALAES342.js → chunk-73PZD7JZ.js} +9 -5
  45. package/{chunk-TCZ2VJZQ.js → chunk-7UVVLYKC.js} +9 -9
  46. package/{chunk-S6FDXXZV.js → chunk-ADOOL3PG.js} +2 -2
  47. package/{chunk-OWKNSIXL.js → chunk-AEZBAFC6.js} +334 -77
  48. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  49. package/{chunk-RG2DGNL6.js → chunk-ARFCL53U.js} +5 -5
  50. package/{chunk-SRCCSTIM.js → chunk-AS6L5KSD.js} +4 -4
  51. package/{chunk-WFDNADFX.js → chunk-BAH3BAUZ.js} +8 -8
  52. package/{chunk-N5Z2V73W.js → chunk-BFKJ2RS3.js} +1 -1
  53. package/{chunk-F6Z6ZCUV.js → chunk-BVEDT6DM.js} +3 -3
  54. package/chunk-C5A54QS7.js +108 -0
  55. package/{chunk-CD3RU7XL.js → chunk-CD2DK5JA.js} +120 -14
  56. package/{chunk-BP5ZJ6B4.js → chunk-CD64YXRB.js} +1 -1
  57. package/{chunk-VP3BINY7.js → chunk-CIGCTSBF.js} +31 -1
  58. package/{chunk-TQEKUOTI.js → chunk-CIUZXD5D.js} +12 -12
  59. package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
  60. package/{chunk-VMJVAJ6W.js → chunk-CTIEJRTP.js} +28 -4
  61. package/{chunk-7JGMNKKG.js → chunk-CTWCZKNS.js} +29 -8
  62. package/{chunk-YFLVRVYK.js → chunk-D25ONVOH.js} +1 -1
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-262R3XNN.js → chunk-E5RYFR7E.js} +334 -103
  65. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  66. package/{chunk-HSSBDZLD.js → chunk-EDT65EUE.js} +6 -6
  67. package/{chunk-YVFH2MFB.js → chunk-EQZQUQ33.js} +7 -7
  68. package/{chunk-HBRDSQ3M.js → chunk-ESN4WNWU.js} +3 -2
  69. package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
  70. package/{chunk-547ENH5T.js → chunk-FFFKAOJN.js} +4 -4
  71. package/{chunk-5ZUOVCKT.js → chunk-FGHEF6WI.js} +3 -1
  72. package/{chunk-GAYNXB6T.js → chunk-FTWAOKFU.js} +756 -333
  73. package/chunk-GAHJLSDO.js +107 -0
  74. package/{chunk-2X7WFDT6.js → chunk-GX6DITLQ.js} +1 -1
  75. package/{chunk-HXB4VDGK.js → chunk-HCCQEMTK.js} +28 -28
  76. package/{chunk-CMMI3DAT.js → chunk-HZDK56EK.js} +33 -26
  77. package/{chunk-OTKSESZR.js → chunk-IIOSZAJX.js} +4 -4
  78. package/chunk-IIRJ4P4I.js +24 -0
  79. package/{chunk-OJ45MEEI.js → chunk-IJZC2KIJ.js} +1 -1
  80. package/{chunk-MNEZUL5S.js → chunk-ITBX27W6.js} +92 -31
  81. package/{chunk-LYD6C7OU.js → chunk-J2VIGDJN.js} +6 -6
  82. package/{chunk-M3OZRQNH.js → chunk-JEWMQR6J.js} +1 -1
  83. package/{chunk-6QHKRARD.js → chunk-JFRJEPFI.js} +29 -5
  84. package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
  85. package/{chunk-EGHP7KOY.js → chunk-JU7VN4LF.js} +38 -29
  86. package/{chunk-RTHFJZ6M.js → chunk-K26XPZRB.js} +2 -2
  87. package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
  88. package/chunk-KK3FCYZM.js +647 -0
  89. package/chunk-KLAMJNKQ.js +33394 -0
  90. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  91. package/chunk-KXOPLLFP.js +190 -0
  92. package/{chunk-MZG5CETE.js → chunk-KZ5OD2MO.js} +4 -4
  93. package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
  94. package/chunk-LHCGKAFO.js +739 -0
  95. package/{chunk-HF7BLF3F.js → chunk-LMGFVH65.js} +107 -104
  96. package/{chunk-QRGDJA4B.js → chunk-LTVEOOZL.js} +19 -6
  97. package/{chunk-L32W3PRP.js → chunk-MAA42MMV.js} +233 -17
  98. package/{chunk-ATEKLSLR.js → chunk-MTM4LRVG.js} +14 -9
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-U2HBB7RS.js → chunk-MYYNZG2M.js} +132 -32
  101. package/{chunk-DBUR22G5.js → chunk-MZVCFV3T.js} +19 -15
  102. package/{chunk-WCFFRBL5.js → chunk-N74XL3NI.js} +9 -9
  103. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  104. package/{chunk-RBPUNSG5.js → chunk-OAZP4TSA.js} +18 -108
  105. package/{chunk-4QYJPWHH.js → chunk-ODBYGVO2.js} +232 -10
  106. package/{chunk-M4SFKP5L.js → chunk-OHUYN3YU.js} +3 -3
  107. package/{chunk-HYLRQDEE.js → chunk-OLGFIQN2.js} +6 -6
  108. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  109. package/chunk-P27E22MA.js +203 -0
  110. package/{chunk-BIWI5M4E.js → chunk-PBPXXMWZ.js} +1 -1
  111. package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
  112. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  113. package/{chunk-XFXFPUO7.js → chunk-QMNVV3YM.js} +10 -37
  114. package/{chunk-CNMY2XM6.js → chunk-R5NRFXGD.js} +5 -5
  115. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  116. package/{chunk-4WVJLODK.js → chunk-RHBD22LV.js} +9 -4
  117. package/{chunk-45CAVC35.js → chunk-RMWDKLBE.js} +1489 -286
  118. package/{chunk-ZEVQHCLM.js → chunk-RR3MB26M.js} +2 -2
  119. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  120. package/{chunk-DLXMMTGM.js → chunk-SCMYAGQE.js} +1067 -705
  121. package/{chunk-YKY4OVOX.js → chunk-SPU3L3OR.js} +17 -170
  122. package/chunk-SR4FE5VD.js +9 -0
  123. package/{chunk-DUUDXSLX.js → chunk-SX6AWTNK.js} +28 -4
  124. package/{chunk-ZH3KXFHS.js → chunk-TMRJGSK2.js} +1 -1
  125. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  126. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  127. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  128. package/{chunk-3U44JB3O.js → chunk-UF6J7NXV.js} +1 -1
  129. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  130. package/chunk-UOUMPHS5.js +103 -0
  131. package/{chunk-HHFGE2WF.js → chunk-UPOW5HTG.js} +5 -5
  132. package/{chunk-DEA37IUY.js → chunk-V4IYI3SB.js} +2 -2
  133. package/{chunk-XTJKU3Z4.js → chunk-VKCPKCSS.js} +66 -92
  134. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  135. package/{chunk-OBIC6EG7.js → chunk-VUHKG4KS.js} +3 -3
  136. package/{chunk-EEOOBRA7.js → chunk-W3HSD32M.js} +13 -6
  137. package/{chunk-P2ZLUIW2.js → chunk-W6T4FNZP.js} +351 -26
  138. package/chunk-WDWZPASX.js +29 -0
  139. package/{chunk-R6Z5S5GA.js → chunk-WQDTSK5U.js} +51 -14
  140. package/{chunk-X3E6EHJW.js → chunk-X22AUZKL.js} +149 -165
  141. package/{chunk-4ZGPHFLE.js → chunk-X3OZ655T.js} +2 -2
  142. package/{chunk-RRDRQOEC.js → chunk-XCA4WHX5.js} +95 -77
  143. package/{chunk-TI2EPRHE.js → chunk-XJSEST7D.js} +3 -3
  144. package/{chunk-3QIYD3VM.js → chunk-XNTZD4AE.js} +870 -1068
  145. package/chunk-XSRSAU3O.js +133 -0
  146. package/{chunk-7FEP5USX.js → chunk-Y4NPF2UN.js} +3 -3
  147. package/{chunk-FJSNBZXR.js → chunk-YDRRGVT5.js} +1 -1
  148. package/{chunk-7BCG67EI.js → chunk-YFW4H6DL.js} +405 -338
  149. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  150. package/{chunk-4N6G2CKP.js → chunk-YHNUDTU4.js} +49 -3
  151. package/chunk-YJPK35HB.js +175 -0
  152. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  153. package/{chunk-FPBJM2BW.js → chunk-Z7KE4K3H.js} +195 -126
  154. package/{chunk-DGYCDA6W.js → chunk-ZM5AZTQG.js} +20 -13
  155. package/{chunk-CBUZ6DKA.js → chunk-ZQ6K57FJ.js} +1 -1
  156. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-37ZNEY5Y.js} +9 -9
  157. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  158. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-MCQVRWBR.js} +58 -47
  159. package/{commandRegistry-FVYPE2IN.js → commandRegistry-NTH5IAN5.js} +104 -92
  160. package/{contentThunks-GNFPG32S.js → contentThunks-SPXTX5U2.js} +38 -36
  161. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-TIFCHCUN.js} +1 -1
  162. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-KUQKCOXB.js} +38 -36
  163. package/{createDialogAction-EVTOPY7A.js → createDialogAction-HJN5U3XS.js} +39 -37
  164. package/{createPageAction-2UYF2IDZ.js → createPageAction-ZAHRDOAU.js} +43 -41
  165. package/{db-M7FU2GNK.js → db-CMUTP3W5.js} +2 -2
  166. package/{dbSlice-XRUZOGSU.js → dbSlice-656PMWR2.js} +13 -12
  167. package/{deleteFile-6URDHYRB.js → deleteFile-ZCQESEEQ.js} +10 -7
  168. package/{dialogCommands-6SZD4TYP.js → dialogCommands-KZTZLWPZ.js} +60 -54
  169. package/dialogMessageRecord-OAV77LT7.js +7 -0
  170. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-PST75COP.js} +11 -11
  171. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-BXIERQHO.js} +39 -37
  172. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-6RW2FY6K.js} +5 -5
  173. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-26HJ5NAY.js} +54 -47
  174. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-UAOHH5XK.js} +56 -49
  175. package/{docReadCommands-JY2E5XEN.js → docReadCommands-4ADG7YE6.js} +54 -47
  176. package/{docStore-OKKIKLT3.js → docStore-FZ75HWP2.js} +15 -14
  177. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-OGFJZENF.js} +54 -47
  178. package/fetchMessages-TQEUZD7H.js +1 -1
  179. package/{getPricing-LF5C4XSI.js → getPricing-FCHYVRJU.js} +4 -4
  180. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-KP6GGBFY.js} +82 -78
  181. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-23TX56G7.js} +117 -105
  182. package/index.js +8 -8
  183. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  184. package/{localDialogRead-CCOCVGAP.js → localDialogRead-CIOTQM5T.js} +1 -1
  185. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-MTUWOYPN.js} +124 -111
  186. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-TYHQCTZN.js} +5 -3
  187. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
  188. package/{machineCommands-HSQHDHOT.js → machineCommands-4WJUJQHW.js} +241 -321
  189. package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-V3U4JM67.js} +113 -102
  190. package/markdownToSlate-KIYM7B3P.js +8 -0
  191. package/mcpLocalAuthorizeCommand-TI656UWC.js +106 -0
  192. package/{memberThunks-7Y3OYSJQ.js → memberThunks-JFYC4Z5L.js} +20 -15
  193. package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
  194. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  195. package/package.json +1 -1
  196. package/{projectArchive-FQO654Z3.js → projectArchive-NU2Z5HOR.js} +45 -43
  197. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-4H7YP5D7.js} +6 -6
  198. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-F3UPOTIY.js} +6 -6
  199. package/{read-TYMBGEXO.js → read-BRZHXUJ6.js} +9 -8
  200. package/{readDocTool-SKQVHBLO.js → readDocTool-N7RVFQEE.js} +1 -1
  201. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-T56MRMS5.js} +6423 -3669
  202. package/rememberExplicit-CPAPONSI.js +15 -0
  203. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-J7XU7OUX.js} +19 -18
  204. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-O2GRCGRZ.js} +96 -76
  205. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-RDRJXMXC.js} +8 -8
  206. package/{secretCommands-KZWBZIYS.js → secretCommands-2FEMRUFM.js} +3 -3
  207. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +16 -15
  208. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-742H5S6T.js} +19 -18
  209. package/{settingThunks-ZRGWVGZD.js → settingThunks-T4FXSV6M.js} +185 -66
  210. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  211. package/{spaceCommands-5VNWMDBE.js → spaceCommands-W5TAVFDT.js} +58 -51
  212. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-OWDJMU5E.js} +234 -177
  213. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-HLDLHRRA.js} +17 -16
  214. package/{tableCommands-FTAOCBTX.js → tableCommands-44GC4N6J.js} +8 -5
  215. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  216. package/{tools-M35PTIFB.js → tools-O7SGGVA3.js} +65 -62
  217. package/{tuiRestart-2IL37YIB.js → tuiRestart-EOGC2BYY.js} +10 -10
  218. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-TM5BU73J.js} +16 -15
  219. package/{updateCommands-CPATDG6J.js → updateCommands-FBYA5WVG.js} +3 -3
  220. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-EXSZGTLL.js} +40 -38
  221. package/{usageCommand-2BF74MKF.js → usageCommand-L4OFWXEU.js} +2 -2
  222. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-7JR33UHS.js} +3 -3
  223. package/webapi-QVV65DQF.js +2487 -0
  224. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
  225. package/workContext-Y3ADAPZU.js +14 -0
  226. package/workContextAccess-VU5I4LKZ.js +11 -0
  227. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  228. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
  229. package/agentRecordCommands-IZYUVHME.js +0 -177
  230. package/chunk-5ZMIIR23.js +0 -265
  231. package/chunk-62HXNQVV.js +0 -134
  232. package/chunk-TUSTONB3.js +0 -81
  233. package/chunk-ZXF6D3I6.js +0 -359
  234. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  235. /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
@@ -10,18 +10,37 @@ import {
10
10
  } from "./chunk-523DITKR.js";
11
11
  import {
12
12
  runLlm
13
- } from "./chunk-WCFFRBL5.js";
14
- import {
15
- isMediaToolConfirmation
16
- } from "./chunk-QYPE3TS3.js";
13
+ } from "./chunk-N74XL3NI.js";
17
14
  import {
18
15
  cleanupCliSessionForDialog
19
- } from "./chunk-RG2DGNL6.js";
16
+ } from "./chunk-ARFCL53U.js";
20
17
  import {
21
18
  getActiveDialogAgentId,
22
19
  getDialogAgentIds,
23
20
  getPrimaryDialogAgentId
24
21
  } from "./chunk-5RGU3J7P.js";
22
+ import {
23
+ addContentAction
24
+ } from "./chunk-V4IYI3SB.js";
25
+ import {
26
+ patch,
27
+ read,
28
+ remove,
29
+ selectById,
30
+ upload,
31
+ write
32
+ } from "./chunk-HZDK56EK.js";
33
+ import {
34
+ fetchMessages
35
+ } from "./chunk-HXER7YJF.js";
36
+ import {
37
+ buildDialogAttachmentPlan,
38
+ extractFileContentIds,
39
+ fetchWithTransientRetry
40
+ } from "./chunk-DXWGFL2Z.js";
41
+ import {
42
+ isMediaToolConfirmation
43
+ } from "./chunk-QYPE3TS3.js";
25
44
  import {
26
45
  abortActiveControllers,
27
46
  addPageReferenceToRuntime,
@@ -37,67 +56,41 @@ import {
37
56
  setActiveDialogKey,
38
57
  setDialogConfigError,
39
58
  setMediaJobRuntimeActor
40
- } from "./chunk-S2NTVGA2.js";
59
+ } from "./chunk-U35UUM5K.js";
41
60
  import {
42
61
  require_react
43
- } from "./chunk-5FUN7EG4.js";
44
- import {
45
- buildDialogAttachmentPlan,
46
- extractFileContentIds,
47
- fetchWithTransientRetry
48
- } from "./chunk-DXWGFL2Z.js";
49
- import {
50
- addContentAction
51
- } from "./chunk-DEA37IUY.js";
52
- import {
53
- patch,
54
- read,
55
- remove,
56
- selectById,
57
- upload,
58
- write
59
- } from "./chunk-CMMI3DAT.js";
62
+ } from "./chunk-RD3QLZQV.js";
60
63
  import {
61
64
  getRuntimeServerContext,
62
65
  parseOwnerUserIdFromDbKey,
63
66
  resolveUserAuthorityServer,
64
67
  scheduleDeleteReplication,
65
68
  waitForWriteAck
66
- } from "./chunk-R6Z5S5GA.js";
69
+ } from "./chunk-WQDTSK5U.js";
67
70
  import {
68
71
  asyncThunkCreator,
69
72
  buildCreateSlice,
70
73
  createAsyncThunk,
71
74
  createEntityAdapter,
72
75
  createSelector
73
- } from "./chunk-7Z6EW7AH.js";
76
+ } from "./chunk-6XVPMGXK.js";
74
77
  import {
78
+ googleSessionRequestToken,
79
+ isGoogleAuthoritySession,
75
80
  normalizeTimeFields
76
- } from "./chunk-4N6G2CKP.js";
81
+ } from "./chunk-YHNUDTU4.js";
82
+ import {
83
+ createClientLogger
84
+ } from "./chunk-QQ56R7KS.js";
77
85
  import {
78
86
  selectIdentityToken,
79
87
  selectIdentityUser,
80
88
  selectIdentityUserId
81
89
  } from "./chunk-PXYBUFDB.js";
82
- import {
83
- createClientLogger
84
- } from "./chunk-QQ56R7KS.js";
85
- import {
86
- fetchMessages
87
- } from "./chunk-HXER7YJF.js";
88
- import {
89
- getRecordTimestamp,
90
- getTombstoneTimestamp,
91
- isTombstoneRecord,
92
- shouldReplaceWithNextRecord
93
- } from "./chunk-BV3FLP2L.js";
94
90
  import {
95
91
  applyBuiltinAgentRuntimeOverride,
96
92
  resolveBuiltinPlatformAgentRecord
97
- } from "./chunk-S6K5F3KP.js";
98
- import {
99
- getApproxPricePerImage
100
- } from "./chunk-4JH2UMJR.js";
93
+ } from "./chunk-JP2BH4NC.js";
101
94
  import {
102
95
  DEFAULT_AUTO_EXECUTION_PROFILE,
103
96
  EMPTY_ASSISTANT_FALLBACK_MESSAGE,
@@ -112,15 +105,15 @@ import {
112
105
  isCodexOAuthAgent,
113
106
  normalizeAttachmentPart,
114
107
  resolveAutoExecutionProfile
115
- } from "./chunk-QRGDJA4B.js";
108
+ } from "./chunk-LTVEOOZL.js";
116
109
  import {
117
110
  isDevinOAuthAgent
118
111
  } from "./chunk-5ZUL4CUO.js";
119
112
  import {
120
113
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
121
114
  DEFAULT_CONTEXT_WINDOW,
122
- buildBoundedCompactionRequest,
123
115
  buildCompactionMetricsFromPlan,
116
+ buildHistoricalCompactionRequest,
124
117
  classifySummaryError,
125
118
  computeSummarySourceMetadata,
126
119
  createSummaryBudget,
@@ -132,29 +125,28 @@ import {
132
125
  runSummaryWithContract,
133
126
  selectSummaryRoute,
134
127
  serializeMessageContent
135
- } from "./chunk-L32W3PRP.js";
128
+ } from "./chunk-MAA42MMV.js";
136
129
  import {
137
130
  isOAuthApiKeyRef
138
131
  } from "./chunk-UKZX3NHN.js";
139
132
  import {
140
133
  asRecordOrEmpty
141
134
  } from "./chunk-KX6YBIHG.js";
142
- import {
143
- isAbortError
144
- } from "./chunk-7DPNBQSV.js";
145
135
  import {
146
136
  estimateTokenCount
147
137
  } from "./chunk-PSCNXBYA.js";
148
138
  import {
149
- nolotusId
150
- } from "./chunk-EVGU5P4U.js";
139
+ isAbortError
140
+ } from "./chunk-7DPNBQSV.js";
151
141
  import {
152
- isBuiltinPlatformAgentKey
153
- } from "./chunk-ILHQ2AXT.js";
142
+ getRecordTimestamp,
143
+ getTombstoneTimestamp,
144
+ isTombstoneRecord,
145
+ shouldReplaceWithNextRecord
146
+ } from "./chunk-BV3FLP2L.js";
154
147
  import {
155
- extractCustomId,
156
- extractUserId
157
- } from "./chunk-M2EJHDJP.js";
148
+ nolotusId
149
+ } from "./chunk-CO6E7YK6.js";
158
150
  import {
159
151
  buildDialogAgentListIndexDeleteOps,
160
152
  createKey,
@@ -165,6 +157,16 @@ import {
165
157
  createDialogMessageKeyAndId,
166
158
  dialogMessageKey
167
159
  } from "./chunk-OJKUU3LP.js";
160
+ import {
161
+ isBuiltinPlatformAgentKey
162
+ } from "./chunk-KZAT2M2V.js";
163
+ import {
164
+ extractCustomId,
165
+ extractUserId
166
+ } from "./chunk-M2EJHDJP.js";
167
+ import {
168
+ getApproxPricePerImage
169
+ } from "./chunk-4JH2UMJR.js";
168
170
  import {
169
171
  API_ENDPOINTS
170
172
  } from "./chunk-LCBAMY2M.js";
@@ -174,16 +176,16 @@ import {
174
176
  import {
175
177
  asTrimmedString
176
178
  } from "./chunk-3EUW3WEO.js";
179
+ import {
180
+ asOptionalFiniteNumber
181
+ } from "./chunk-WWC7I6TA.js";
177
182
  import {
178
183
  findModelConfig,
179
184
  getModelConfig
180
- } from "./chunk-CD3RU7XL.js";
185
+ } from "./chunk-CD2DK5JA.js";
181
186
  import {
182
187
  isRecord
183
188
  } from "./chunk-KUG52IAP.js";
184
- import {
185
- asOptionalFiniteNumber
186
- } from "./chunk-WWC7I6TA.js";
187
189
  import {
188
190
  asOptionalTrimmedString
189
191
  } from "./chunk-G3SUCT4W.js";
@@ -201,13 +203,14 @@ import {
201
203
  PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
202
204
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
203
205
  getPlatformHostedDeepSeekV4Price,
206
+ isGeminiNeonModel,
204
207
  isPlatformHostedDeepSeekV4Model,
205
208
  isPlatformHostedImageModel,
206
209
  isPlatformHostedOpenAIImageModel,
207
210
  isPlatformManagedProvider,
208
211
  resolvePlatformEffectiveModel,
209
212
  resolvePlatformHostedRouting
210
- } from "./chunk-OBSEKCVK.js";
213
+ } from "./chunk-PQ63BDV3.js";
211
214
  import {
212
215
  asTrimmedLowercaseString
213
216
  } from "./chunk-QSJ3HFEF.js";
@@ -984,6 +987,7 @@ var fetchConvMsgs = async (server, token, {
984
987
  limit,
985
988
  beforeKey
986
989
  }, options = {}) => {
990
+ googleSessionRequestToken(token, server);
987
991
  const { signal: externalSignal } = options;
988
992
  const controller = new AbortController();
989
993
  const startedAt = now();
@@ -1028,6 +1032,7 @@ var fetchConvMsgs = async (server, token, {
1028
1032
  try {
1029
1033
  const response = await fetch(`${server}/rpc/getConvMsgs`, {
1030
1034
  method: "POST",
1035
+ ...isGoogleAuthoritySession(token) ? { redirect: "error", credentials: "omit" } : {},
1031
1036
  headers: {
1032
1037
  Authorization: `Bearer ${token}`,
1033
1038
  "Content-Type": "application/json"
@@ -6206,6 +6211,64 @@ var ai_locale_default = {
6206
6211
  }
6207
6212
  };
6208
6213
 
6214
+ // packages/chat/dialog/childRunObserverLabels.ts
6215
+ var childRunObserverLabels = {
6216
+ "en": {
6217
+ "openChildPage": "Open child dialog",
6218
+ "savedActiveGroup": "Last saved active \xB7 not live",
6219
+ "historyGroup": "Other tasks",
6220
+ "viewDetails": "View details",
6221
+ "persistedRuns": "Persisted subagent runs",
6222
+ "persistedSnapshot": "Saved status \xB7 not live",
6223
+ "inProgressGroup": "In progress"
6224
+ },
6225
+ "zh-CN": {
6226
+ "openChildPage": "\u6253\u5F00\u5B50\u5BF9\u8BDD",
6227
+ "savedActiveGroup": "\u4E0A\u6B21\u4FDD\u5B58\u4E3A\u6D3B\u8DC3 \xB7 \u975E\u5B9E\u65F6",
6228
+ "historyGroup": "\u5176\u4ED6\u4EFB\u52A1",
6229
+ "viewDetails": "\u67E5\u770B\u8BE6\u60C5",
6230
+ "persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52A1",
6231
+ "persistedSnapshot": "\u5DF2\u4FDD\u5B58\u72B6\u6001 \xB7 \u975E\u5B9E\u65F6",
6232
+ "inProgressGroup": "\u8FDB\u884C\u4E2D"
6233
+ },
6234
+ "zh-Hant": {
6235
+ "openChildPage": "\u958B\u555F\u5B50\u5C0D\u8A71",
6236
+ "savedActiveGroup": "\u4E0A\u6B21\u5132\u5B58\u70BA\u6D3B\u8E8D \xB7 \u975E\u5373\u6642",
6237
+ "historyGroup": "\u5176\u4ED6\u4EFB\u52D9",
6238
+ "viewDetails": "\u67E5\u770B\u8A73\u60C5",
6239
+ "persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52D9",
6240
+ "persistedSnapshot": "\u5DF2\u5132\u5B58\u72C0\u614B \xB7 \u975E\u5373\u6642",
6241
+ "inProgressGroup": "\u9032\u884C\u4E2D"
6242
+ },
6243
+ "ja": {
6244
+ "openChildPage": "\u5B50\u4F1A\u8A71\u3092\u958B\u304F",
6245
+ "savedActiveGroup": "\u6700\u7D42\u4FDD\u5B58\u6642\u306F\u5B9F\u884C\u4E2D\u30FB\u975E\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0",
6246
+ "historyGroup": "\u305D\u306E\u4ED6\u306E\u30BF\u30B9\u30AF",
6247
+ "viewDetails": "\u8A73\u7D30\u3092\u898B\u308B",
6248
+ "persistedRuns": "\u4FDD\u5B58\u6E08\u307F\u30B5\u30D6\u30BF\u30B9\u30AF",
6249
+ "persistedSnapshot": "\u4FDD\u5B58\u6E08\u307F\u72B6\u614B\u30FB\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0\u3067\u306F\u3042\u308A\u307E\u305B\u3093",
6250
+ "inProgressGroup": "\u9032\u884C\u4E2D"
6251
+ },
6252
+ "de": {
6253
+ "openChildPage": "Unterdialog \xF6ffnen",
6254
+ "savedActiveGroup": "Zuletzt aktiv gespeichert \xB7 nicht live",
6255
+ "historyGroup": "Weitere Aufgaben",
6256
+ "viewDetails": "Details ansehen",
6257
+ "persistedRuns": "Gespeicherte Unteraufgaben",
6258
+ "persistedSnapshot": "Gespeicherter Status \xB7 nicht live",
6259
+ "inProgressGroup": "In Bearbeitung"
6260
+ },
6261
+ "es": {
6262
+ "openChildPage": "Abrir di\xE1logo secundario",
6263
+ "savedActiveGroup": "Activo al guardar \xB7 no en vivo",
6264
+ "historyGroup": "Otras tareas",
6265
+ "viewDetails": "Ver detalles",
6266
+ "persistedRuns": "Subtareas guardadas",
6267
+ "persistedSnapshot": "Estado guardado \xB7 no en vivo",
6268
+ "inProgressGroup": "En curso"
6269
+ }
6270
+ };
6271
+
6209
6272
  // packages/chat/chat.locale.ts
6210
6273
  var chat_locale_default = {
6211
6274
  en: {
@@ -6615,6 +6678,13 @@ var chat_locale_default = {
6615
6678
  DialogSettings: "Dialog Settings",
6616
6679
  collaborativeConversation: "Collaborative conversation",
6617
6680
  childRunObserver: {
6681
+ ...childRunObserverLabels["en"],
6682
+ workingGroup: "Working",
6683
+ mainAgent: "Main agent",
6684
+ modelUnknown: "Model unknown",
6685
+ reasoningConfigured: "Reasoning effort (configured): {{effort}}",
6686
+ reasoningUnspecified: "Reasoning effort: not specified",
6687
+ reasoningUnsupported: "Configured reasoning effort is not supported by this model/provider",
6618
6688
  panelAriaLabel: "Child runs",
6619
6689
  title: "Child runs",
6620
6690
  subtitleLoading: "Loading child runs\u2026",
@@ -7168,6 +7238,13 @@ var chat_locale_default = {
7168
7238
  DialogSettings: "\u4F1A\u8BDD\u8BBE\u7F6E",
7169
7239
  collaborativeConversation: "\u534F\u4F5C\u4F1A\u8BDD",
7170
7240
  childRunObserver: {
7241
+ ...childRunObserverLabels["zh-CN"],
7242
+ workingGroup: "\u6B63\u5728\u6267\u884C",
7243
+ mainAgent: "\u4E3B Agent",
7244
+ modelUnknown: "\u6A21\u578B\u672A\u77E5",
7245
+ reasoningConfigured: "\u63A8\u7406\u5F3A\u5EA6\uFF08\u914D\u7F6E\uFF09\uFF1A{{effort}}",
7246
+ reasoningUnspecified: "\u63A8\u7406\u5F3A\u5EA6\uFF1A\u672A\u6307\u5B9A",
7247
+ reasoningUnsupported: "\u5DF2\u914D\u7F6E\u63A8\u7406\u5F3A\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u63D0\u4F9B\u65B9\u4E0D\u652F\u6301\u6B64\u53C2\u6570",
7171
7248
  panelAriaLabel: "\u5B50\u4EFB\u52A1\u8FD0\u884C",
7172
7249
  title: "\u5B50\u4EFB\u52A1",
7173
7250
  subtitleLoading: "\u52A0\u8F7D\u5B50\u8FD0\u884C\u2026",
@@ -7721,6 +7798,13 @@ var chat_locale_default = {
7721
7798
  DialogSettings: "\u6703\u8A71\u8A2D\u5B9A",
7722
7799
  collaborativeConversation: "\u5354\u4F5C\u6703\u8A71",
7723
7800
  childRunObserver: {
7801
+ ...childRunObserverLabels["zh-Hant"],
7802
+ workingGroup: "\u6B63\u5728\u57F7\u884C",
7803
+ mainAgent: "\u4E3B Agent",
7804
+ modelUnknown: "\u6A21\u578B\u672A\u77E5",
7805
+ reasoningConfigured: "\u63A8\u7406\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
7806
+ reasoningUnspecified: "\u63A8\u7406\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
7807
+ reasoningUnsupported: "\u5DF2\u8A2D\u5B9A\u63A8\u7406\u5F37\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u4F9B\u61C9\u5546\u4E0D\u652F\u63F4\u6B64\u53C3\u6578",
7724
7808
  panelAriaLabel: "\u5B50\u4EFB\u52D9\u904B\u884C",
7725
7809
  title: "\u5B50\u4EFB\u52D9",
7726
7810
  subtitleLoading: "\u8F09\u5165\u5B50\u904B\u884C\u2026",
@@ -8280,6 +8364,13 @@ var chat_locale_default = {
8280
8364
  DialogSettings: "\u5BFE\u8A71\u8A2D\u5B9A",
8281
8365
  collaborativeConversation: "\u5354\u8ABF\u4F1A\u8A71",
8282
8366
  childRunObserver: {
8367
+ ...childRunObserverLabels["ja"],
8368
+ workingGroup: "\u5B9F\u884C\u4E2D",
8369
+ mainAgent: "\u30E1\u30A4\u30F3 Agent",
8370
+ modelUnknown: "\u30E2\u30C7\u30EB\u4E0D\u660E",
8371
+ reasoningConfigured: "\u63A8\u8AD6\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
8372
+ reasoningUnspecified: "\u63A8\u8AD6\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
8373
+ reasoningUnsupported: "\u8A2D\u5B9A\u3055\u308C\u305F\u63A8\u8AD6\u5F37\u5EA6\u306F\u3053\u306E\u30E2\u30C7\u30EB\u307E\u305F\u306F\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3067\u306F\u975E\u5BFE\u5FDC\u3067\u3059",
8283
8374
  panelAriaLabel: "\u5B50\u30BF\u30B9\u30AF\u5B9F\u884C",
8284
8375
  title: "\u5B50\u30BF\u30B9\u30AF",
8285
8376
  subtitleLoading: "\u5B50\u5B9F\u884C\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
@@ -8840,6 +8931,13 @@ var chat_locale_default = {
8840
8931
  DialogSettings: "Dialog-Einstellungen",
8841
8932
  collaborativeConversation: "Kollaborative Unterhaltung",
8842
8933
  childRunObserver: {
8934
+ ...childRunObserverLabels["de"],
8935
+ workingGroup: "In Bearbeitung",
8936
+ mainAgent: "Haupt-Agent",
8937
+ modelUnknown: "Modell unbekannt",
8938
+ reasoningConfigured: "Denkaufwand (konfiguriert): {{effort}}",
8939
+ reasoningUnspecified: "Denkaufwand: nicht angegeben",
8940
+ reasoningUnsupported: "Der konfigurierte Denkaufwand wird von diesem Modell/Anbieter nicht unterst\xFCtzt",
8843
8941
  panelAriaLabel: "Hintergrund-Subtasks",
8844
8942
  title: "Hintergrund-Subtasks",
8845
8943
  subtitleLoading: "Subtasks werden geladen\u2026",
@@ -9400,6 +9498,13 @@ var chat_locale_default = {
9400
9498
  DialogSettings: "Ajustes del di\xE1logo",
9401
9499
  collaborativeConversation: "Conversaci\xF3n colaborativa",
9402
9500
  childRunObserver: {
9501
+ ...childRunObserverLabels["es"],
9502
+ workingGroup: "En ejecuci\xF3n",
9503
+ mainAgent: "Agente principal",
9504
+ modelUnknown: "Modelo desconocido",
9505
+ reasoningConfigured: "Esfuerzo de razonamiento (configurado): {{effort}}",
9506
+ reasoningUnspecified: "Esfuerzo de razonamiento: sin especificar",
9507
+ reasoningUnsupported: "El esfuerzo configurado no es compatible con este modelo/proveedor",
9403
9508
  panelAriaLabel: "Subtareas en segundo plano",
9404
9509
  title: "Subtareas en segundo plano",
9405
9510
  subtitleLoading: "Cargando subtareas\u2026",
@@ -9577,6 +9682,10 @@ var space_locale_default = {
9577
9682
  workspace_other: "Other spaces",
9578
9683
  workspace_unassociated: "Unassociated space",
9579
9684
  workspace_unassociated_empty: "No content outside spaces yet",
9685
+ workspace_create_space: "New Space",
9686
+ workspace_start_chat: "Start chat in this space",
9687
+ workspace_more: "More space actions: {{name}}",
9688
+ workspace_more_menu: "Space actions",
9580
9689
  // === 基础操作 ===
9581
9690
  create: "Create Space",
9582
9691
  name: "Space Name",
@@ -9911,6 +10020,10 @@ var space_locale_default = {
9911
10020
  workspace_other: "\u5176\u4ED6\u7A7A\u95F4",
9912
10021
  workspace_unassociated: "\u7A7A\u95F4\u5916",
9913
10022
  workspace_unassociated_empty: "\u7A7A\u95F4\u5916\u8FD8\u6CA1\u6709\u5185\u5BB9",
10023
+ workspace_create_space: "\u65B0\u5EFA\u7A7A\u95F4",
10024
+ workspace_start_chat: "\u5728\u6B64\u7A7A\u95F4\u53D1\u8D77\u5BF9\u8BDD",
10025
+ workspace_more: "\u7A7A\u95F4\u66F4\u591A\u64CD\u4F5C\uFF1A{{name}}",
10026
+ workspace_more_menu: "\u7A7A\u95F4\u64CD\u4F5C",
9914
10027
  // === 基础操作 ===
9915
10028
  create: "\u521B\u5EFA\u7A7A\u95F4",
9916
10029
  name: "\u7A7A\u95F4\u540D\u79F0",
@@ -10245,6 +10358,10 @@ var space_locale_default = {
10245
10358
  workspace_other: "\u5176\u4ED6\u7A7A\u9593",
10246
10359
  workspace_unassociated: "\u7A7A\u9593\u5916",
10247
10360
  workspace_unassociated_empty: "\u7A7A\u9593\u5916\u9084\u6C92\u6709\u5167\u5BB9",
10361
+ workspace_create_space: "\u65B0\u589E\u7A7A\u9593",
10362
+ workspace_start_chat: "\u5728\u6B64\u7A7A\u9593\u767C\u8D77\u5C0D\u8A71",
10363
+ workspace_more: "\u7A7A\u9593\u66F4\u591A\u64CD\u4F5C\uFF1A{{name}}",
10364
+ workspace_more_menu: "\u7A7A\u9593\u64CD\u4F5C",
10248
10365
  // === 基础操作 ===
10249
10366
  create: "\u5275\u5EFA\u7A7A\u9593",
10250
10367
  name: "\u7A7A\u9593\u540D\u7A31",
@@ -10578,6 +10695,10 @@ var space_locale_default = {
10578
10695
  workspace_other: "\u305D\u306E\u4ED6\u306E\u30B9\u30DA\u30FC\u30B9",
10579
10696
  workspace_unassociated: "\u672A\u95A2\u9023\u306E\u30B9\u30DA\u30FC\u30B9",
10580
10697
  workspace_unassociated_empty: "\u30B9\u30DA\u30FC\u30B9\u5916\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",
10698
+ workspace_create_space: "\u65B0\u3057\u3044\u30B9\u30DA\u30FC\u30B9",
10699
+ workspace_start_chat: "\u3053\u306E\u30B9\u30DA\u30FC\u30B9\u3067\u5BFE\u8A71\u3092\u958B\u59CB",
10700
+ workspace_more: "\u30B9\u30DA\u30FC\u30B9\u306E\u305D\u306E\u4ED6\u306E\u64CD\u4F5C\uFF1A{{name}}",
10701
+ workspace_more_menu: "\u30B9\u30DA\u30FC\u30B9\u64CD\u4F5C",
10581
10702
  // === 基本操作 ===
10582
10703
  create: "\u30B9\u30DA\u30FC\u30B9\u3092\u4F5C\u6210",
10583
10704
  name: "\u30B9\u30DA\u30FC\u30B9\u540D",
@@ -10913,6 +11034,10 @@ var space_locale_default = {
10913
11034
  workspace_other: "Andere Spaces",
10914
11035
  workspace_unassociated: "Nicht zugeordneter Space",
10915
11036
  workspace_unassociated_empty: "Noch keine Inhalte au\xDFerhalb von Spaces",
11037
+ workspace_create_space: "Neuer Space",
11038
+ workspace_start_chat: "Dialog in diesem Space starten",
11039
+ workspace_more: "Weitere Space-Aktionen: {{name}}",
11040
+ workspace_more_menu: "Space-Aktionen",
10916
11041
  create: "Space erstellen",
10917
11042
  name: "Space-Name",
10918
11043
  description: "Beschreibung",
@@ -11229,6 +11354,10 @@ var space_locale_default = {
11229
11354
  workspace_other: "Otros espacios",
11230
11355
  workspace_unassociated: "Espacio no asociado",
11231
11356
  workspace_unassociated_empty: "A\xFAn no hay contenido fuera de los espacios",
11357
+ workspace_create_space: "Nuevo espacio",
11358
+ workspace_start_chat: "Iniciar di\xE1logo en este espacio",
11359
+ workspace_more: "M\xE1s acciones del espacio: {{name}}",
11360
+ workspace_more_menu: "Acciones del espacio",
11232
11361
  create: "Crear espacio",
11233
11362
  name: "Nombre del espacio",
11234
11363
  description: "Descripci\xF3n",
@@ -11588,6 +11717,13 @@ var getMessagesForDialogFromState = (state, dialogId) => {
11588
11717
  });
11589
11718
  };
11590
11719
  var identityCanonicalName = (name) => name;
11720
+ var toCompactionRequestMessage = (msg) => {
11721
+ if (msg.role !== "tool" || typeof msg.toolCallId !== "string" || !msg.toolCallId) {
11722
+ return msg;
11723
+ }
11724
+ const { toolCallId, ...rest } = msg;
11725
+ return { ...rest, tool_call_id: toolCallId };
11726
+ };
11591
11727
  var summarizingDialogs = /* @__PURE__ */ new Set();
11592
11728
  var BudgetRescueError = class extends Error {
11593
11729
  constructor(code, detail) {
@@ -11667,8 +11803,10 @@ var updateDialogSummaryAction = async (args, thunkApi) => {
11667
11803
  route.kind === "platform" ? resolveAgentContextWindow({ model: route.model, provider: "nolo" }) ?? 32768 : Infinity,
11668
11804
  currentAvailable ? resolveAgentContextWindow(currentAgent) ?? 32768 : route.kind === "platform" ? Infinity : 32768
11669
11805
  );
11670
- const request = buildBoundedCompactionRequest({
11671
- msgsToCompress: plan.msgsToCompress,
11806
+ const request = buildHistoricalCompactionRequest({
11807
+ // 存储形态(toolCallId)先归一到运行时契约(tool_call_id),否则历史里
11808
+ // 半批工具调用的声明与结果无法配对,整段摘要请求会被严格阻塞。
11809
+ msgsToCompress: plan.msgsToCompress.map(toCompactionRequestMessage),
11672
11810
  previousSummary,
11673
11811
  contextWindow: summaryWindow,
11674
11812
  canonicalizeToolName: identityCanonicalName
@@ -11678,7 +11816,8 @@ var updateDialogSummaryAction = async (args, thunkApi) => {
11678
11816
  if (args.reason === "budget_rescue") throw new BudgetRescueError("no-summary-input", `bounded summary request blocked: ${request.reason}`);
11679
11817
  return;
11680
11818
  }
11681
- const { coveredMessages, summarizedBeforeId: newSummarizedBeforeId, promptContent, outputTokenBudget } = request;
11819
+ const coveredMessages = plan.msgsToCompress.slice(0, request.coveredMessages.length);
11820
+ const { summarizedBeforeId: newSummarizedBeforeId, promptContent, outputTokenBudget } = request;
11682
11821
  const extractedKeys = new Set(dialogConfig.referenceKeys || []);
11683
11822
  for (const msg of coveredMessages) {
11684
11823
  for (const key of extractReferenceKeysFromMessage(msg)) extractedKeys.add(key);
@@ -12093,256 +12232,6 @@ ${failureText}`;
12093
12232
  return failureText;
12094
12233
  }
12095
12234
 
12096
- // packages/create/space/contentKeyUtils.ts
12097
- var isAppContentKey = (contentKey) => typeof contentKey === "string" && contentKey.startsWith("app-");
12098
- var normalizeAppRouteId = (contentKey) => isAppContentKey(contentKey) ? contentKey : `app-${contentKey}`;
12099
-
12100
- // packages/ai/tools/uiAskChoiceTool.ts
12101
- var uiAskChoiceFunctionSchema = {
12102
- name: "ask_user",
12103
- description: "\u8BA9\u7528\u6237\u5728\u4E00\u7EC4\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\uFF08\u5355\u9009\u6216\u591A\u9009\uFF09\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\uFF08\u9700\u6C42\u6A21\u7CCA\u3001\u5206\u652F\u51B3\u7B56\u3001\u95EE\u5377\u7B49\uFF09\u3002\u672C\u5DE5\u5177\u7528\u4E8E\u7EAF\u63D0\u95EE\u3001\u7B49\u5F85\u7528\u6237\u56DE\u7B54\u7684\u573A\u666F\uFF08blocking:false \u65F6\u4E0D\u6682\u505C\u7B49\u5F85\uFF09\uFF1B\u82E5\u9700\u8981\u540C\u65F6\u5C55\u793A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u5E76\u8BA9\u7528\u6237\u5728\u540C\u4E00\u5757\u91CC\u9009\u62E9\uFF0C\u8D70 show_interaction\u3002\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002\u591A\u95EE\u9898\u4F20 questions\uFF0C\u5355\u95EE\u9898\u4F20 question+choices\u3002\u754C\u9762\u9ED8\u8BA4\u63D0\u4F9B\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF08\u53EF\u7528 allowOther:false \u5173\u95ED\uFF09\uFF0C\u7528\u6237\u8F93\u5165\u7684\u6587\u5B57\u4F1A\u968F\u7B54\u6848\u56DE\u4F20\uFF1B\u4E0D\u8981\u81EA\u5EFA\u201C\u5176\u4ED6/\u81EA\u5DF1\u5199\u201D\u4E4B\u7C7B\u7684\u9009\u9879\u2014\u2014\u70B9\u51FB\u666E\u901A\u9009\u9879\u53EA\u56DE\u4F20\u8BE5\u9009\u9879\u6587\u6848\uFF0C\u7528\u6237\u65E0\u5904\u586B\u5199\u3002",
12104
- parameters: {
12105
- type: "object",
12106
- properties: {
12107
- question: {
12108
- type: "string",
12109
- description: "\u5C55\u793A\u7ED9\u7528\u6237\u7684\u95EE\u9898\u6587\u6848\uFF08\u5355\u95EE\u9898\u6A21\u5F0F\uFF09\u3002\u4E0E questions \u4E8C\u9009\u4E00\u3002"
12110
- },
12111
- choices: {
12112
- type: "array",
12113
- description: "\u5907\u9009\u9879\u5217\u8868\uFF0C\u6E32\u67D3\u4E3A\u6309\u94AE\u4F9B\u7528\u6237\u70B9\u51FB\u3002",
12114
- items: {
12115
- type: "object",
12116
- properties: {
12117
- id: {
12118
- type: "string",
12119
- description: "\u9009\u9879\u6807\u8BC6\u3002"
12120
- },
12121
- label: {
12122
- type: "string",
12123
- description: "\u6309\u94AE\u6587\u5B57\uFF0C\u5982\u201C\u751F\u6210\u672C\u5468\u5468\u62A5\u201D\u3002"
12124
- },
12125
- detail: {
12126
- type: "string",
12127
- description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
12128
- },
12129
- userMessage: {
12130
- type: "string",
12131
- description: "\u70B9\u51FB\u540E\u4F5C\u4E3A\u4E0B\u4E00\u6761 user \u6D88\u606F\u53D1\u9001\u7684\u6587\u6848\uFF08\u7559\u7A7A\u9ED8\u8BA4\u7528 label\uFF09\u3002"
12132
- }
12133
- },
12134
- required: ["id", "label"]
12135
- }
12136
- },
12137
- questions: {
12138
- type: "array",
12139
- description: "\u591A\u95EE\u9898\u6A21\u5F0F\uFF08\u591A tab \u6E32\u67D3\uFF0C\u4E0E question+choices \u4E8C\u9009\u4E00\uFF09\u3002",
12140
- items: {
12141
- type: "object",
12142
- properties: {
12143
- id: {
12144
- type: "string",
12145
- description: "\u95EE\u9898\u6807\u8BC6\u3002"
12146
- },
12147
- header: {
12148
- type: "string",
12149
- description: "\u591A\u95EE\u9898 tab \u680F\u663E\u793A\u7684\u77ED\u6807\u7B7E\uFF08\u226412 \u5B57\u7B26\uFF0C\u5982\u201C\u683C\u5F0F/\u8BED\u8A00/\u8303\u56F4\u201D\uFF09\uFF0C\u7F3A\u7701\u7528 Qn\u3002"
12150
- },
12151
- question: {
12152
- type: "string",
12153
- description: "\u95EE\u9898\u6587\u6848\u3002"
12154
- },
12155
- choices: {
12156
- type: "array",
12157
- description: "\u8BE5\u95EE\u9898\u7684\u5907\u9009\u9879\u3002",
12158
- items: {
12159
- type: "object",
12160
- properties: {
12161
- id: { type: "string" },
12162
- label: { type: "string" },
12163
- detail: {
12164
- type: "string",
12165
- description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
12166
- },
12167
- userMessage: { type: "string" }
12168
- },
12169
- required: ["id", "label"]
12170
- }
12171
- },
12172
- multiSelect: {
12173
- type: "boolean",
12174
- description: "\u5141\u8BB8\u591A\u9009\uFF0C\u9ED8\u8BA4 false\u3002"
12175
- },
12176
- allowOther: {
12177
- type: "boolean",
12178
- description: "\u663E\u793A\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF0C\u9ED8\u8BA4 true\u3002"
12179
- },
12180
- required: {
12181
- type: "boolean",
12182
- description: "\u662F\u5426\u5FC5\u987B\u56DE\u7B54\u624D\u80FD\u63D0\u4EA4\uFF0C\u9ED8\u8BA4 true\u3002"
12183
- }
12184
- },
12185
- required: ["id", "question", "choices"]
12186
- }
12187
- },
12188
- blocking: {
12189
- type: "boolean",
12190
- description: "\u662F\u5426\u7B49\u5F85\u7528\u6237\u9009\u62E9\u540E\u518D\u7EE7\u7EED\u6D41\u7A0B\uFF0C\u9ED8\u8BA4 true\u3002"
12191
- }
12192
- },
12193
- required: []
12194
- }
12195
- };
12196
- function validateChoiceList(choices, scopeLabel) {
12197
- const seenChoiceIds = /* @__PURE__ */ new Set();
12198
- for (let index = 0; index < choices.length; index += 1) {
12199
- const entry = choices[index];
12200
- if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
12201
- return `${scopeLabel}.choices[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
12202
- }
12203
- const choice = entry;
12204
- if (typeof choice.label !== "string" || !choice.label.trim()) {
12205
- return `${scopeLabel}.choices[${index}].label \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
12206
- }
12207
- if (choice.id !== void 0 && typeof choice.id !== "string") {
12208
- return `${scopeLabel}.choices[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
12209
- }
12210
- const choiceId = typeof choice.id === "string" ? choice.id.trim() : "";
12211
- if (choiceId && seenChoiceIds.has(choiceId)) {
12212
- return `${scopeLabel} \u5185\u7684\u9009\u9879 id "${choiceId}" \u91CD\u590D\u3002`;
12213
- }
12214
- if (choiceId) seenChoiceIds.add(choiceId);
12215
- }
12216
- return null;
12217
- }
12218
- function validateAskChoiceInput(raw) {
12219
- if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
12220
- return "ask_user \u9700\u8981\u4E00\u4E2A\u5BF9\u8C61\u53C2\u6570\u3002";
12221
- }
12222
- const args = raw;
12223
- if (args.blocking !== void 0 && typeof args.blocking !== "boolean") {
12224
- return "ask_user \u7684 blocking \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002";
12225
- }
12226
- const rawQuestions = args.questions;
12227
- if (rawQuestions !== void 0 && !Array.isArray(rawQuestions)) {
12228
- return "ask_user \u7684 questions \u5FC5\u987B\u662F\u6570\u7EC4\u3002";
12229
- }
12230
- const questions = rawQuestions;
12231
- if (questions && questions.length > 0) {
12232
- const seenQuestionIds = /* @__PURE__ */ new Set();
12233
- for (let index = 0; index < questions.length; index += 1) {
12234
- const entry = questions[index];
12235
- if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
12236
- return `questions[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
12237
- }
12238
- const question = entry;
12239
- if (question.id !== void 0 && typeof question.id !== "string") {
12240
- return `questions[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
12241
- }
12242
- const questionId = typeof question.id === "string" ? question.id.trim() : "";
12243
- if (questionId && seenQuestionIds.has(questionId)) {
12244
- return `\u95EE\u9898 id "${questionId}" \u91CD\u590D\u3002`;
12245
- }
12246
- if (questionId) seenQuestionIds.add(questionId);
12247
- if (typeof question.question !== "string" || !question.question.trim()) {
12248
- return `questions[${index}].question \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
12249
- }
12250
- for (const flag of ["multiSelect", "allowOther", "required"]) {
12251
- if (question[flag] !== void 0 && typeof question[flag] !== "boolean") {
12252
- return `questions[${index}].${flag} \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`;
12253
- }
12254
- }
12255
- const choices = question.choices;
12256
- if (!Array.isArray(choices)) {
12257
- return `questions[${index}].choices \u5FC5\u987B\u662F\u6570\u7EC4\u3002`;
12258
- }
12259
- const choiceError = validateChoiceList(choices, `questions[${index}]`);
12260
- if (choiceError) return choiceError;
12261
- if (choices.length === 0 && question.allowOther === false) {
12262
- return `questions[${index}] \u6CA1\u6709\u4EFB\u4F55\u9009\u9879\u4E14 allowOther \u4E3A false\uFF0C\u7528\u6237\u65E0\u6CD5\u4F5C\u7B54\u3002`;
12263
- }
12264
- }
12265
- return null;
12266
- }
12267
- if (typeof args.question !== "string" || !args.question.trim()) {
12268
- return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
12269
- }
12270
- if (!Array.isArray(args.choices) || args.choices.length === 0) {
12271
- return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
12272
- }
12273
- return validateChoiceList(args.choices, "ask_user");
12274
- }
12275
- async function uiAskChoiceFunc(args, _thunkApi) {
12276
- const invalid = validateAskChoiceInput(args);
12277
- if (invalid) throw new Error(invalid);
12278
- const blocking = args?.blocking !== false;
12279
- if (Array.isArray(args?.questions) && args.questions.length > 0) {
12280
- const firstQ = args.questions[0];
12281
- return {
12282
- rawData: {
12283
- type: "ask_user",
12284
- question: firstQ?.question ?? "",
12285
- choices: firstQ?.choices ?? [],
12286
- blocking,
12287
- questions: args.questions
12288
- },
12289
- displayData: args.questions.map((q) => q.question).join(" / ")
12290
- };
12291
- }
12292
- const question = String(args?.question ?? "").trim();
12293
- const choices = Array.isArray(args?.choices) ? args.choices : [];
12294
- if (!question || choices.length === 0) {
12295
- throw new Error("ask_user \u9700\u8981 question+choices \u6216 questions\u3002");
12296
- }
12297
- return {
12298
- rawData: {
12299
- type: "ask_user",
12300
- question,
12301
- choices,
12302
- blocking
12303
- },
12304
- displayData: question
12305
- };
12306
- }
12307
- function parseUiAskChoiceContent(rawContent) {
12308
- const parsed = typeof rawContent === "string" ? (() => {
12309
- try {
12310
- return JSON.parse(rawContent);
12311
- } catch {
12312
- return null;
12313
- }
12314
- })() : rawContent;
12315
- if (!parsed || typeof parsed !== "object") return null;
12316
- if (parsed.type !== "ask_user") return null;
12317
- return parsed;
12318
- }
12319
-
12320
- // packages/ai/policy/personalizationDialog.ts
12321
- var PERSONALIZATION_DIALOG_CATEGORY = "user-overlay-profile";
12322
- var PERSONALIZATION_DIALOG_EXTRA_TOOLS = [
12323
- "ask_user",
12324
- "updateUserPreferenceProfile"
12325
- ];
12326
- var buildPersonalizationRuntimeOptions = (runtimeOptions) => ({
12327
- ...runtimeOptions,
12328
- extraTools: Array.from(
12329
- /* @__PURE__ */ new Set([
12330
- ...runtimeOptions?.extraTools ?? [],
12331
- ...PERSONALIZATION_DIALOG_EXTRA_TOOLS
12332
- ])
12333
- )
12334
- });
12335
- var buildPersonalizationDialogPolicyContext = () => [
12336
- "\u5F53\u524D\u5BF9\u8BDD\u662F\u201C\u7528\u6237\u4E2A\u6027\u5316\u8BBE\u7F6E\u201D\u6A21\u5F0F\uFF0C\u4E0D\u662F\u666E\u901A\u95F2\u804A\u3002",
12337
- "\u4F60\u7684\u76EE\u6807\u662F\u7528\u7B80\u77ED\u5BF9\u8BDD\u5E2E\u52A9\u7528\u6237\u786E\u8BA4 tone\u3001knowledge_capture\u3001space_context \u8FD9\u4E09\u9879\u504F\u597D\u3002",
12338
- "\u5982\u679C\u7528\u6237\u5148\u4ECB\u7ECD\u81EA\u5DF1\u3001\u5DE5\u4F5C\u65B9\u5F0F\u6216\u957F\u671F\u6C9F\u901A\u504F\u597D\uFF0C\u8BF7\u628A\u8FD9\u4E9B\u53EF\u590D\u7528\u4FE1\u606F\u6574\u7406\u6210\u7B80\u6D01\u7684 globalPrompt \u8349\u6848\uFF0C\u5E76\u5728\u7528\u6237\u786E\u8BA4\u540E\u901A\u8FC7 updateUserPreferenceProfile \u4FDD\u5B58\u3002",
12339
- "\u4F18\u5148\u4E00\u6B21\u53EA\u95EE\u4E00\u4E2A\u95EE\u9898\uFF1B\u5F53\u5B58\u5728\u6E05\u6670\u4E92\u65A5\u9009\u9879\u65F6\uFF0C\u4F18\u5148\u8C03\u7528 ask_user\u3002",
12340
- "\u6536\u96C6\u5230\u8DB3\u591F\u4FE1\u606F\u540E\uFF0C\u8C03\u7528 updateUserPreferenceProfile \u4FDD\u5B58\u7ED3\u679C\uFF0C\u7136\u540E\u7528\u81EA\u7136\u8BED\u8A00\u603B\u7ED3\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\u3002",
12341
- "\u4FDD\u5B58\u5B8C\u6210\u540E\uFF0C\u8981\u63D0\u9192\u7528\u6237\uFF1A\u4EE5\u540E\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u4FEE\u6539 globalPrompt \u548C\u8FD9\u4E9B\u504F\u597D\uFF0C\u6216\u8005\u518D\u6B21\u6253\u5F00\u8FD9\u4E2A\u5165\u53E3\u7EE7\u7EED\u8C03\u6574\u3002",
12342
- "\u4E2A\u6027\u5316\u8BBE\u7F6E\u5B8C\u6210\u540E\uFF0C\u53EF\u987A\u624B\u5F15\u5BFC\u7528\u6237\u5C1D\u8BD5 1 \u5230 2 \u4E2A\u76F8\u5173\u529F\u80FD\uFF0C\u4F8B\u5982\u9996\u9875\u5FEB\u6377\u5BF9\u8BDD\u3001\u521B\u5EFA\u7B14\u8BB0\u3001\u521B\u5EFA AI\uFF0C\u4F46\u4E0D\u8981\u4E00\u6B21\u63A8\u8350\u592A\u591A\u3002",
12343
- "\u9664\u975E\u7528\u6237\u660E\u786E\u8981\u6C42\uFF0C\u5426\u5219\u4E0D\u8981\u521B\u5EFA\u6587\u6863\uFF0C\u4E0D\u8981\u521B\u5EFA\u6216\u4FEE\u6539\u4EFB\u4F55 agent\u3002"
12344
- ].join("\n");
12345
-
12346
12235
  // packages/chat/dialog/dialogAgentPolicy.ts
12347
12236
  var resolveDialogAgentMode = (dialog) => {
12348
12237
  if (dialog?.agentMode === "auto") return "auto";
@@ -12378,7 +12267,7 @@ function resolveHandleSendMessageContext(input) {
12378
12267
  return {
12379
12268
  agentKeyToUse: resolveDialogRuntimeAgentKey(dialogConfig, targetAgentKey),
12380
12269
  agentConfigToUse: resolveDialogRuntimeAgentConfig(dialogConfig, targetAgentKey) ?? void 0,
12381
- effectiveRuntimeOptions: dialogConfig.category === PERSONALIZATION_DIALOG_CATEGORY ? buildPersonalizationRuntimeOptions(runtimeOptions ?? {}) : runtimeOptions
12270
+ effectiveRuntimeOptions: runtimeOptions
12382
12271
  };
12383
12272
  }
12384
12273
 
@@ -13548,6 +13437,128 @@ function clearForegroundTurnSettledVisible(dialogId) {
13548
13437
  notify();
13549
13438
  }
13550
13439
 
13440
+ // packages/chat/messages/messageBucketLru.ts
13441
+ var MAX_CACHED_INACTIVE_DIALOG_BUCKETS = 10;
13442
+ var SAVE_FAILED_MARKER = "[Failed to save message]";
13443
+ function isSaveFailedMessageContent(content) {
13444
+ if (typeof content === "string") {
13445
+ return content.includes(SAVE_FAILED_MARKER);
13446
+ }
13447
+ if (Array.isArray(content)) {
13448
+ return content.some(
13449
+ (part) => Boolean(part) && part.type === "text" && typeof part.text === "string" && part.text.includes(SAVE_FAILED_MARKER)
13450
+ );
13451
+ }
13452
+ return false;
13453
+ }
13454
+ function hasProtectedMessageInBucket(messages) {
13455
+ const validMessages = [];
13456
+ for (const msg of messages) {
13457
+ if (!msg) continue;
13458
+ validMessages.push(msg);
13459
+ if (msg.isStreaming === true) return true;
13460
+ if (msg.imageGenerationState != null) return true;
13461
+ const metadata = msg.metadata;
13462
+ const queueState = metadata?.queueState;
13463
+ if (queueState === "pending" || queueState === "queued" || queueState === "accepted") {
13464
+ return true;
13465
+ }
13466
+ const userBatchPhase = metadata?.userBatchPhase;
13467
+ if (userBatchPhase === "admitted" || userBatchPhase === "requested") {
13468
+ return true;
13469
+ }
13470
+ const rawMsg = msg;
13471
+ if (metadata?.saveFailed === true || metadata?.draft === true || metadata?.isDraft === true || metadata?.persisted === false || metadata?.unsaved === true || rawMsg.saveFailed === true || rawMsg.isDraft === true || rawMsg.persisted === false) {
13472
+ return true;
13473
+ }
13474
+ if (isSaveFailedMessageContent(msg.content)) {
13475
+ return true;
13476
+ }
13477
+ }
13478
+ return selectPendingUserMessages(validMessages).length > 0;
13479
+ }
13480
+ function touchDialogBucketLru(lruOrder, dialogId, dialogStateById) {
13481
+ if (!dialogId || dialogId === GLOBAL_MESSAGE_DIALOG_ID) {
13482
+ return lruOrder ? [...lruOrder] : [];
13483
+ }
13484
+ if (lruOrder && lruOrder.length > 0 && lruOrder[lruOrder.length - 1] === dialogId) {
13485
+ return lruOrder;
13486
+ }
13487
+ const seen = /* @__PURE__ */ new Set();
13488
+ const next = [];
13489
+ if (!lruOrder && dialogStateById) {
13490
+ for (const existingId of Object.keys(dialogStateById)) {
13491
+ if (existingId !== GLOBAL_MESSAGE_DIALOG_ID && existingId !== dialogId && !seen.has(existingId)) {
13492
+ seen.add(existingId);
13493
+ next.push(existingId);
13494
+ }
13495
+ }
13496
+ }
13497
+ if (lruOrder) {
13498
+ for (const existingId of lruOrder) {
13499
+ if (existingId !== GLOBAL_MESSAGE_DIALOG_ID && existingId !== dialogId && !seen.has(existingId) && (!dialogStateById || existingId in dialogStateById)) {
13500
+ seen.add(existingId);
13501
+ next.push(existingId);
13502
+ }
13503
+ }
13504
+ }
13505
+ next.push(dialogId);
13506
+ return next;
13507
+ }
13508
+ function planColdMessageBucketEviction(input) {
13509
+ const {
13510
+ dialogStateById,
13511
+ lruOrder = [],
13512
+ activeDialogId: activeDialogId2,
13513
+ protectedDialogIds = [],
13514
+ maxCachedInactiveBuckets = MAX_CACHED_INACTIVE_DIALOG_BUCKETS,
13515
+ isDialogProtected
13516
+ } = input;
13517
+ const cap = Math.max(0, Math.floor(maxCachedInactiveBuckets));
13518
+ const protectedSet = /* @__PURE__ */ new Set([GLOBAL_MESSAGE_DIALOG_ID]);
13519
+ if (typeof activeDialogId2 === "string" && activeDialogId2.length > 0) {
13520
+ protectedSet.add(activeDialogId2);
13521
+ }
13522
+ for (const id of protectedDialogIds) {
13523
+ if (typeof id === "string" && id.length > 0) {
13524
+ protectedSet.add(id);
13525
+ }
13526
+ }
13527
+ const trackedSet = /* @__PURE__ */ new Set();
13528
+ const trackedOrdered = [];
13529
+ for (const id of lruOrder) {
13530
+ if (id !== GLOBAL_MESSAGE_DIALOG_ID && id in dialogStateById && !trackedSet.has(id)) {
13531
+ trackedSet.add(id);
13532
+ trackedOrdered.push(id);
13533
+ }
13534
+ }
13535
+ const orderedIds = [];
13536
+ for (const id of Object.keys(dialogStateById)) {
13537
+ if (id !== GLOBAL_MESSAGE_DIALOG_ID && !trackedSet.has(id)) {
13538
+ orderedIds.push(id);
13539
+ }
13540
+ }
13541
+ orderedIds.push(...trackedOrdered);
13542
+ const evictableIds = [];
13543
+ for (const dialogId of orderedIds) {
13544
+ if (protectedSet.has(dialogId)) continue;
13545
+ const bucket = dialogStateById[dialogId];
13546
+ if (!bucket) continue;
13547
+ const entities = bucket.msgs?.entities ?? {};
13548
+ const messages = Object.values(entities).filter(
13549
+ (msg) => Boolean(msg)
13550
+ );
13551
+ if (hasProtectedMessageInBucket(messages)) continue;
13552
+ if (isDialogProtected?.(dialogId, messages)) continue;
13553
+ evictableIds.push(dialogId);
13554
+ }
13555
+ const overflow = evictableIds.length - cap;
13556
+ if (overflow <= 0) {
13557
+ return [];
13558
+ }
13559
+ return evictableIds.slice(0, overflow);
13560
+ }
13561
+
13551
13562
  // packages/chat/messages/messageSlice.ts
13552
13563
  var OLDER_LOAD_LIMIT = 30;
13553
13564
  var createSliceWithThunks = buildCreateSlice({
@@ -13563,7 +13574,8 @@ var createEmptyMessageDialogState = () => ({
13563
13574
  var initialState = {
13564
13575
  dialogStateById: {
13565
13576
  [GLOBAL_MESSAGE_DIALOG_ID]: createEmptyMessageDialogState()
13566
- }
13577
+ },
13578
+ lruOrder: []
13567
13579
  };
13568
13580
  var captureUnderstandingFromCompletedUiTurn2 = async (input) => captureUnderstandingFromCompletedUiTurn({
13569
13581
  ...input,
@@ -13580,8 +13592,38 @@ var ensureMessageDialogState = (state, dialogId, dialogKey) => {
13580
13592
  if (!state.dialogStateById[resolvedDialogId]) {
13581
13593
  state.dialogStateById[resolvedDialogId] = createEmptyMessageDialogState();
13582
13594
  }
13595
+ state.lruOrder = touchDialogBucketLru(
13596
+ state.lruOrder,
13597
+ resolvedDialogId,
13598
+ state.dialogStateById
13599
+ );
13583
13600
  return state.dialogStateById[resolvedDialogId];
13584
13601
  };
13602
+ var evictColdBucketsIfNeeded = (state, protectedDialogId) => {
13603
+ if (!state.dialogStateById) return;
13604
+ const evictedIds = planColdMessageBucketEviction({
13605
+ dialogStateById: state.dialogStateById,
13606
+ lruOrder: state.lruOrder,
13607
+ activeDialogId: getActiveMessageDialogId(),
13608
+ protectedDialogIds: protectedDialogId ? [protectedDialogId] : void 0,
13609
+ maxCachedInactiveBuckets: MAX_CACHED_INACTIVE_DIALOG_BUCKETS,
13610
+ isDialogProtected: (dialogId) => {
13611
+ if (getHasStreamingMessage(dialogId)) return true;
13612
+ if (getCanonicalHandoffTransientId(dialogId) !== null) return true;
13613
+ const session = getMessageSession(dialogId);
13614
+ return session.isLoadingInitial || session.isLoadingOlder;
13615
+ }
13616
+ });
13617
+ if (evictedIds.length === 0) return;
13618
+ const evictedSet = new Set(evictedIds);
13619
+ for (const evictedId of evictedIds) {
13620
+ delete state.dialogStateById[evictedId];
13621
+ deleteMessageSession(evictedId);
13622
+ }
13623
+ if (state.lruOrder) {
13624
+ state.lruOrder = state.lruOrder.filter((id) => !evictedSet.has(id));
13625
+ }
13626
+ };
13585
13627
  var getMessageDialogState = (state, dialogId, dialogKey) => {
13586
13628
  const dialogStateById = state.dialogStateById ?? {};
13587
13629
  const resolvedDialogId = resolveMessageDialogId(state, dialogId, dialogKey);
@@ -13688,6 +13730,7 @@ var messageSlice = createSliceWithThunks({
13688
13730
  state.dialogStateById = {
13689
13731
  [GLOBAL_MESSAGE_DIALOG_ID]: createEmptyMessageDialogState()
13690
13732
  };
13733
+ state.lruOrder = [];
13691
13734
  resetAllMessageSessions();
13692
13735
  return;
13693
13736
  }
@@ -13697,6 +13740,9 @@ var messageSlice = createSliceWithThunks({
13697
13740
  action2.payload?.dialogKey
13698
13741
  );
13699
13742
  delete state.dialogStateById[dialogId];
13743
+ if (state.lruOrder) {
13744
+ state.lruOrder = state.lruOrder.filter((id) => id !== dialogId);
13745
+ }
13700
13746
  deleteMessageSession(dialogId);
13701
13747
  if (dialogId === getActiveMessageDialogId()) {
13702
13748
  setActiveMessageDialogId(null);
@@ -13914,7 +13960,14 @@ var messageSlice = createSliceWithThunks({
13914
13960
  async (args, { dispatch, getState, extra }) => {
13915
13961
  const dialogId = extractCustomId(args.dialogKey);
13916
13962
  const db = extra.db;
13917
- const valid = () => !args.signal?.aborted && (args.owns?.() ?? true) && (args.execution?.valid() ?? true);
13963
+ const valid = () => {
13964
+ if (args.signal?.aborted) return false;
13965
+ if (!(args.owns?.() ?? true) || !(args.execution?.valid() ?? true)) {
13966
+ args.execution?.dispose();
13967
+ throw new Error("User batch execution ownership lost; blocked");
13968
+ }
13969
+ return true;
13970
+ };
13918
13971
  const assertInput = (expected, actual, ids) => {
13919
13972
  try {
13920
13973
  assertUserBatchInput(expected, actual, ids);
@@ -13925,7 +13978,6 @@ var messageSlice = createSliceWithThunks({
13925
13978
  };
13926
13979
  if (!isLocalUserBatch(args.dialogKey)) {
13927
13980
  if (!Array.isArray(args.requestUserInput)) throw new Error("Missing controlled user batch request input; blocked");
13928
- if (args.execution && !args.execution.valid()) throw new Error("User batch execution expired; blocked");
13929
13981
  if (!valid()) return void 0;
13930
13982
  const control = userBatchControl(getState(), args.dialogKey);
13931
13983
  const history = selectAllMsgs(getState(), dialogId).filter((message) => message.role === "user");
@@ -14026,7 +14078,14 @@ var messageSlice = createSliceWithThunks({
14026
14078
  };
14027
14079
  if (!valid()) return void 0;
14028
14080
  if (rows.length) await persist("requested");
14029
- if (!valid()) {
14081
+ let canStart;
14082
+ try {
14083
+ canStart = valid();
14084
+ } catch (error) {
14085
+ if (rows.length) await persist("admitted");
14086
+ throw error;
14087
+ }
14088
+ if (!canStart) {
14030
14089
  if (rows.length) await persist("admitted");
14031
14090
  return void 0;
14032
14091
  }
@@ -14205,6 +14264,7 @@ var messageSlice = createSliceWithThunks({
14205
14264
  } else {
14206
14265
  setAllMessages(dialogState, action2.payload);
14207
14266
  }
14267
+ evictColdBucketsIfNeeded(state, dialogId);
14208
14268
  },
14209
14269
  rejected: (state, action2) => {
14210
14270
  const dialogId = action2.meta.arg.dialogId;
@@ -14497,6 +14557,7 @@ var messageSlice = createSliceWithThunks({
14497
14557
  imageGenerationState: void 0
14498
14558
  });
14499
14559
  setStreamingMessageId(payload.dialogId, null);
14560
+ evictColdBucketsIfNeeded(state, payload.dialogId);
14500
14561
  },
14501
14562
  rejected: (state, action2) => {
14502
14563
  const arg = action2.meta?.arg;
@@ -14619,7 +14680,7 @@ var messageSlice = createSliceWithThunks({
14619
14680
  runtimeOptions: args.runtimeOptions
14620
14681
  });
14621
14682
  if (agentKeyToUse) {
14622
- const { streamAgentChatTurn } = await import("./agentSlice-UG76KEBH.js");
14683
+ const { streamAgentChatTurn } = await import("./agentSlice-ZGMOH6TE.js");
14623
14684
  await dispatch(
14624
14685
  streamAgentChatTurn({
14625
14686
  agentKey: agentKeyToUse,
@@ -14751,6 +14812,10 @@ var scaleModelServiceTierPrice = (price, inputOutputMultiplier, cacheMultiplier)
14751
14812
  ...price,
14752
14813
  input: price.input * inputOutputMultiplier,
14753
14814
  output: price.output * inputOutputMultiplier,
14815
+ // 缓存命中单价有两个历史字段(见 resolveModelPrice 的归一说明):只缩放
14816
+ // cachingWrite/cachingRead 会漏掉已归一出来的 inputCacheHit,使缓存命中仍按
14817
+ // Standard 价收(Gemini 4 Neon Flex 1M 命中应为 0.6,漏缩放则变回 1.2)。
14818
+ ...typeof cacheMultiplier === "number" && typeof price.inputCacheHit === "number" ? { inputCacheHit: price.inputCacheHit * cacheMultiplier } : {},
14754
14819
  ...typeof cacheMultiplier === "number" && typeof price.cachingWrite === "number" ? { cachingWrite: price.cachingWrite * cacheMultiplier } : {},
14755
14820
  ...typeof cacheMultiplier === "number" && typeof price.cachingRead === "number" ? { cachingRead: price.cachingRead * cacheMultiplier } : {}
14756
14821
  });
@@ -14766,6 +14831,9 @@ var resolveGoogleServiceTierPrice = (model, price, billingServiceTier) => {
14766
14831
  serviceTierMultiplier.cache
14767
14832
  );
14768
14833
  }
14834
+ if (model.serviceTierPriceMultipliers) {
14835
+ return priceWithImageOutput;
14836
+ }
14769
14837
  if (normalizedTier === "flex" || normalizedTier === "batch") {
14770
14838
  return scaleModelInputOutputPrice(priceWithImageOutput, 0.5);
14771
14839
  }
@@ -14788,6 +14856,9 @@ var resolveEffectiveModelPrice = ({
14788
14856
  if (provider === "google") {
14789
14857
  return resolveGoogleServiceTierPrice(model, resolvedPrice, billingServiceTier);
14790
14858
  }
14859
+ if (provider === "nolo" && model.serviceTierPriceMultipliers && resolvePlatformHostedRouting(model.name)?.usageProvider === "google") {
14860
+ return resolveGoogleServiceTierPrice(model, resolvedPrice, billingServiceTier);
14861
+ }
14791
14862
  if (provider === "runinfra" || provider === "baseten") {
14792
14863
  return resolvedPrice;
14793
14864
  }
@@ -14995,6 +15066,9 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
14995
15066
  if (model.name.includes("gemini-3")) {
14996
15067
  return calculateAnthropicCost(resolvedPrice, usage, externalPrice);
14997
15068
  }
15069
+ if (typeof resolvedPrice.inputCacheHit === "number" && isGeminiNeonModel(model.name)) {
15070
+ return calculateCacheBasedCost(resolvedPrice, usage, externalPrice);
15071
+ }
14998
15072
  return calculateSimpleCost(resolvedPrice, usage, externalPrice);
14999
15073
  case "openrouter": {
15000
15074
  const reported = calculateApiReportedCost(usage);
@@ -15690,7 +15764,7 @@ var deleteOwnedDialogAttachments = async (args) => {
15690
15764
  metadataReadFailures
15691
15765
  });
15692
15766
  if (!plan.deleteCandidates.length) return plan;
15693
- const { deleteFileAction } = await import("./deleteFile-6URDHYRB.js");
15767
+ const { deleteFileAction } = await import("./deleteFile-ZCQESEEQ.js");
15694
15768
  for (const candidate of plan.deleteCandidates) {
15695
15769
  if (candidate.fileDbKey) {
15696
15770
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -15752,7 +15826,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15752
15826
  }
15753
15827
  if (isCurrentDialog) {
15754
15828
  await thunkApi.dispatch(resetMsgs());
15755
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-5EQ2A6LY.js");
15829
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-BXIERQHO.js");
15756
15830
  dispatch(clearPendingAttachments2());
15757
15831
  }
15758
15832
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -15760,39 +15834,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15760
15834
 
15761
15835
  // packages/chat/dialog/dialogSlice.ts
15762
15836
  var runCreateDialogAction = async (args, thunkApi) => {
15763
- const { createDialogAction } = await import("./createDialogAction-EVTOPY7A.js");
15837
+ const { createDialogAction } = await import("./createDialogAction-HJN5U3XS.js");
15764
15838
  return createDialogAction(args, thunkApi);
15765
15839
  };
15766
15840
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15767
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-PB4QIFQ4.js");
15841
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-KUQKCOXB.js");
15768
15842
  return createAgentAutomationAction(args, thunkApi);
15769
15843
  };
15770
15844
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15771
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-IMIRJRQQ.js");
15845
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-EXSZGTLL.js");
15772
15846
  return updateDialogTitleAction(args, thunkApi);
15773
15847
  };
15774
15848
  var runAddDialogAgentAction = async (args, thunkApi) => {
15775
- const { addDialogAgentAction } = await import("./addDialogAgentAction-EVYBGTXB.js");
15849
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-ARGQM22H.js");
15776
15850
  return addDialogAgentAction(args, thunkApi);
15777
15851
  };
15778
15852
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15779
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-F5QE2O2B.js");
15853
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-J7XU7OUX.js");
15780
15854
  return removeDialogAgentAction(args, thunkApi);
15781
15855
  };
15782
15856
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15783
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-GJJDUSGJ.js");
15857
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-742H5S6T.js");
15784
15858
  return setPrimaryDialogAgentAction(args, thunkApi);
15785
15859
  };
15786
15860
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
15787
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-IIJBPND3.js");
15861
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-HLDLHRRA.js");
15788
15862
  return switchDialogAgentAction(args, thunkApi);
15789
15863
  };
15790
15864
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15791
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-72L27ERM.js");
15865
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-Q4V2ZZW2.js");
15792
15866
  return setDialogExtraReferencesAction(args, thunkApi);
15793
15867
  };
15794
15868
  var runHandleSendMessageAction = async (args, thunkApi) => {
15795
- const { handleSendMessageAction } = await import("./handleSendMessageAction-LNT7SZND.js");
15869
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-KP6GGBFY.js");
15796
15870
  return handleSendMessageAction(args, thunkApi);
15797
15871
  };
15798
15872
  function clearDialogState() {
@@ -15805,7 +15879,7 @@ var createPageAndAddReference = createAsyncThunk(
15805
15879
  async (payload, { dispatch, getState, rejectWithValue }) => {
15806
15880
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15807
15881
  try {
15808
- const { createDocState } = await import("./docStore-OKKIKLT3.js");
15882
+ const { createDocState } = await import("./docStore-FZ75HWP2.js");
15809
15883
  const pageKey = await createDocState(
15810
15884
  { slateData, title },
15811
15885
  { dispatch, getState }
@@ -15978,10 +16052,6 @@ export {
15978
16052
  resolveAgentContextWindow,
15979
16053
  isAgentRunStatusNormal,
15980
16054
  isAgentRunStartFailureStatus,
15981
- uiAskChoiceFunctionSchema,
15982
- validateAskChoiceInput,
15983
- uiAskChoiceFunc,
15984
- parseUiAskChoiceContent,
15985
16055
  normalizeRunCompletionShape,
15986
16056
  createTurnRequest,
15987
16057
  runtime_default,
@@ -15997,9 +16067,6 @@ export {
15997
16067
  toast,
15998
16068
  updateDialogSummaryAction,
15999
16069
  buildDatabaseFileContentUrl,
16000
- normalizeAppRouteId,
16001
- PERSONALIZATION_DIALOG_CATEGORY,
16002
- buildPersonalizationDialogPolicyContext,
16003
16070
  resolveDialogRuntimeAgentKey,
16004
16071
  resolveHandleSendMessageContext,
16005
16072
  estimateMissingUsage,