nolo-cli 0.226.0-alpha.2 → 0.226.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 (259) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-IKZGZZXW.js → _executeModel-IZ2MCXHO.js} +89 -83
  3. package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
  4. package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
  5. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
  6. package/{agentDeleteCommand-IZY3VF5F.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
  7. package/{agentEmailCommands-YWL567CL.js → agentEmailCommands-OFS477PV.js} +144 -133
  8. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  9. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  10. package/agentListCommands-IQQHJSXP.js +644 -0
  11. package/{agentMachineCommands-AXJ4A772.js → agentMachineCommands-NS65BEW7.js} +75 -66
  12. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
  13. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
  14. package/agentRecordCommands-4VE7CNLC.js +188 -0
  15. package/agentRunCommand-2MUXHKNW.js +223 -0
  16. package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
  17. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
  18. package/{agentSlice-5F5U5X2U.js → agentSlice-5VTAFG43.js} +19 -18
  19. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
  20. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
  21. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
  22. package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
  23. package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
  24. package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
  25. package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
  26. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
  29. package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
  32. package/chunk-2SXN7LAY.js +15 -0
  33. package/{chunk-GBUDWITV.js → chunk-2T5BHLID.js} +2871 -1565
  34. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  35. package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
  36. package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
  37. package/{chunk-E5EIYI34.js → chunk-3UNAGTBW.js} +32 -95
  38. package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
  39. package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
  40. package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
  41. package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
  42. package/chunk-4ZCTKB27.js +31 -0
  43. package/chunk-53W5BXLN.js +340 -0
  44. package/{chunk-NEKH3XDV.js → chunk-5GRWWUB4.js} +4 -4
  45. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  46. package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
  47. package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
  48. package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
  49. package/chunk-6RSNVJGO.js +279 -0
  50. package/{chunk-L4NFXFFF.js → chunk-6S6CZUXK.js} +42 -33
  51. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  52. package/{chunk-JHRQXQ4A.js → chunk-6XLWUNZB.js} +25 -25
  53. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  54. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  55. package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
  56. package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
  57. package/{chunk-RRVQ446B.js → chunk-7HUHOCIY.js} +147 -162
  58. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  59. package/chunk-BEM6LPD2.js +734 -0
  60. package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
  61. package/chunk-BIDSIRTS.js +307 -0
  62. package/{chunk-4AMQZTE7.js → chunk-C4KX626C.js} +15 -15
  63. package/chunk-C5A54QS7.js +108 -0
  64. package/{chunk-BYH3HMUP.js → chunk-CHYYSFFM.js} +6 -6
  65. package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
  66. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  67. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  68. package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
  69. package/{chunk-T3T57NVP.js → chunk-DPAIQLAL.js} +105 -102
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
  72. package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
  73. package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
  74. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  75. package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
  76. package/chunk-FDZ2GBWO.js +166 -0
  77. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  78. package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
  79. package/{chunk-QTMIHVLE.js → chunk-HQVNO7FH.js} +66 -35
  80. package/chunk-HSWEFHFS.js +103 -0
  81. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  82. package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
  83. package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
  84. package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
  85. package/{chunk-2COEG5ZV.js → chunk-J2XZZXIH.js} +4 -4
  86. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  87. package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
  88. package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
  89. package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
  90. package/chunk-KK3FCYZM.js +647 -0
  91. package/{chunk-HHL7WG65.js → chunk-KLD7K5FD.js} +349 -16
  92. package/{chunk-WSJMT3FA.js → chunk-KMW5CRRM.js} +1564 -2955
  93. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  94. package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
  95. package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
  96. package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
  97. package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
  98. package/chunk-MFXJY44K.js +133 -0
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
  101. package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
  102. package/{chunk-W772FYAQ.js → chunk-ODGSLWLO.js} +593 -370
  103. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  104. package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
  105. package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
  106. package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
  107. package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
  108. package/chunk-P27E22MA.js +203 -0
  109. package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
  110. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  111. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  112. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  113. package/{chunk-EFX3Q5SM.js → chunk-QUJKDFZW.js} +17 -17
  114. package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
  115. package/{chunk-BLSNUIZD.js → chunk-QYNABNNQ.js} +13 -13
  116. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  117. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  118. package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
  119. package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
  120. package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
  121. package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
  122. package/{chunk-EJU6WCDH.js → chunk-SBRJOYND.js} +723 -355
  123. package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
  124. package/chunk-SR4FE5VD.js +9 -0
  125. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  126. package/chunk-T3WSFTBS.js +62 -0
  127. package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
  128. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  129. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  130. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  131. package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
  132. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  133. package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
  134. package/{chunk-6O5YP6FX.js → chunk-UR7555FE.js} +9 -9
  135. package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
  136. package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
  137. package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
  138. package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
  139. package/chunk-VNALJT32.js +33394 -0
  140. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  141. package/chunk-WBSJAIZP.js +170 -0
  142. package/chunk-WDWZPASX.js +29 -0
  143. package/chunk-WFGNWWJI.js +326 -0
  144. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  145. package/chunk-WVOZ35E4.js +1438 -0
  146. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  147. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  148. package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
  149. package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
  150. package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
  151. package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
  152. package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
  153. package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
  154. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  155. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  156. package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
  157. package/chunk-YUZ2DAIH.js +34 -0
  158. package/chunk-Z6YTCDU4.js +24 -0
  159. package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
  160. package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
  161. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  162. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
  167. package/{commandRegistry-6EQXVODF.js → commandRegistry-OKIWAJIS.js} +113 -101
  168. package/{contentThunks-ANUP57QV.js → contentThunks-VF2DCU46.js} +41 -38
  169. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
  170. package/{createAgentAutomationAction-XMUWUDKQ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
  171. package/{createDialogAction-43QJIQDH.js → createDialogAction-XYDQZETK.js} +42 -40
  172. package/{createPageAction-SJO7UC3J.js → createPageAction-74S5RO7U.js} +46 -43
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
  175. package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
  176. package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
  179. package/{dialogSlice-FQ6WOKWJ.js → dialogSlice-XAUKSWZ4.js} +41 -38
  180. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
  181. package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
  182. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
  183. package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
  184. package/{docStore-BZ2O7WLF.js → docStore-ZZT2BEBU.js} +16 -15
  185. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
  186. package/fetchMessages-TQEUZD7H.js +2 -2
  187. package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
  188. package/{handleSendMessageAction-I5J7QR7K.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
  189. package/{hostCredentialCreate-AVPMK7EQ.js → hostCredentialCreate-SNQT73H4.js} +131 -119
  190. package/index.js +56 -18
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
  194. package/{localRuntimeAdapter-S56R76HN.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-77NFB2AE.js → machineCommands-3O6Y27R4.js} +283 -348
  198. package/machineWsRunDispatch-5PFLR5XC.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
  201. package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
  202. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  203. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-GNOSYH6F.js → projectArchive-X2EVXU3N.js} +47 -44
  207. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
  208. package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
  209. package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
  210. package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
  211. package/{readlineWorkspace-2PONGBUP.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
  214. package/{runAgentClientLoop-WEXFFHVS.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
  215. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
  216. package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
  217. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
  218. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
  219. package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-D2WFS5MF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
  224. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
  225. package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
  227. package/{tools-YKE6PQHT.js → tools-MIOCXKMG.js} +72 -68
  228. package/tuiRestart-ET3QISZ5.js +41 -0
  229. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
  230. package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-D5NCA4FC.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
  232. package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
  233. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
  234. package/webapi-24RZDIIQ.js +2488 -0
  235. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  236. package/workContext-Y3ADAPZU.js +14 -0
  237. package/workContextAccess-UZHDLBUR.js +11 -0
  238. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  239. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
  240. package/agentListCommands-YBNOQ5T3.js +0 -991
  241. package/agentRecordCommands-WUUC2CX7.js +0 -177
  242. package/agentRunCommand-W6MDKVLJ.js +0 -208
  243. package/chunk-2THCNKE4.js +0 -147
  244. package/chunk-2WZXXAQD.js +0 -57
  245. package/chunk-5ZMIIR23.js +0 -265
  246. package/chunk-BJF2MHJ3.js +0 -118
  247. package/chunk-KEPOVMF4.js +0 -91
  248. package/chunk-OLMJR6UM.js +0 -357
  249. package/chunk-QVBXJNZ2.js +0 -81
  250. package/chunk-QZI44GWV.js +0 -776
  251. package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
  252. package/machineWsRunDispatch-5XWFUJ53.js +0 -192
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  254. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  257. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  258. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  259. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
@@ -5,27 +5,42 @@ import {
5
5
  applyTokenUsageToDayStats,
6
6
  require_format
7
7
  } from "./chunk-BUDVRYES.js";
8
- import {
9
- buildDialogAttachmentPlan,
10
- extractFileContentIds
11
- } from "./chunk-KEPOVMF4.js";
12
8
  import {
13
9
  BUILTIN_SUMMARY_LLM_CONFIG
14
10
  } from "./chunk-523DITKR.js";
15
11
  import {
16
12
  runLlm
17
- } from "./chunk-BLSNUIZD.js";
18
- import {
19
- isMediaToolConfirmation
20
- } from "./chunk-QYPE3TS3.js";
13
+ } from "./chunk-QYNABNNQ.js";
21
14
  import {
22
15
  cleanupCliSessionForDialog
23
- } from "./chunk-GVGOEMNV.js";
16
+ } from "./chunk-UQXOORR3.js";
24
17
  import {
25
18
  getActiveDialogAgentId,
26
19
  getDialogAgentIds,
27
20
  getPrimaryDialogAgentId
28
21
  } from "./chunk-5RGU3J7P.js";
22
+ import {
23
+ addContentAction
24
+ } from "./chunk-YTEY27GN.js";
25
+ import {
26
+ patch,
27
+ read,
28
+ remove,
29
+ selectById,
30
+ upload,
31
+ write
32
+ } from "./chunk-6MQWGA5F.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";
29
44
  import {
30
45
  abortActiveControllers,
31
46
  addPageReferenceToRuntime,
@@ -41,41 +56,29 @@ import {
41
56
  setActiveDialogKey,
42
57
  setDialogConfigError,
43
58
  setMediaJobRuntimeActor
44
- } from "./chunk-S2NTVGA2.js";
59
+ } from "./chunk-I2OYPD3Y.js";
45
60
  import {
46
61
  require_react
47
- } from "./chunk-5FUN7EG4.js";
48
- import {
49
- fetchMessages
50
- } from "./chunk-HXER7YJF.js";
51
- import {
52
- addContentAction
53
- } from "./chunk-PVZY6P3S.js";
54
- import {
55
- patch,
56
- read,
57
- remove,
58
- selectById,
59
- upload,
60
- write
61
- } from "./chunk-AVHRSJUH.js";
62
+ } from "./chunk-RD3QLZQV.js";
62
63
  import {
63
64
  getRuntimeServerContext,
64
65
  parseOwnerUserIdFromDbKey,
65
66
  resolveUserAuthorityServer,
66
67
  scheduleDeleteReplication,
67
68
  waitForWriteAck
68
- } from "./chunk-2VUZSVAS.js";
69
+ } from "./chunk-OKPC4QNX.js";
69
70
  import {
70
71
  asyncThunkCreator,
71
72
  buildCreateSlice,
72
73
  createAsyncThunk,
73
74
  createEntityAdapter,
74
75
  createSelector
75
- } from "./chunk-7Z6EW7AH.js";
76
+ } from "./chunk-247AAJRK.js";
76
77
  import {
78
+ googleSessionRequestToken,
79
+ isGoogleAuthoritySession,
77
80
  normalizeTimeFields
78
- } from "./chunk-AGP3YSEC.js";
81
+ } from "./chunk-BH7CEVOH.js";
79
82
  import {
80
83
  createClientLogger
81
84
  } from "./chunk-QQ56R7KS.js";
@@ -84,16 +87,10 @@ import {
84
87
  selectIdentityUser,
85
88
  selectIdentityUserId
86
89
  } from "./chunk-PXYBUFDB.js";
87
- import {
88
- getRecordTimestamp,
89
- getTombstoneTimestamp,
90
- isTombstoneRecord,
91
- shouldReplaceWithNextRecord
92
- } from "./chunk-BV3FLP2L.js";
93
90
  import {
94
91
  applyBuiltinAgentRuntimeOverride,
95
92
  resolveBuiltinPlatformAgentRecord
96
- } from "./chunk-JVRQ6YVK.js";
93
+ } from "./chunk-JBWXPACD.js";
97
94
  import {
98
95
  DEFAULT_AUTO_EXECUTION_PROFILE,
99
96
  EMPTY_ASSISTANT_FALLBACK_MESSAGE,
@@ -108,7 +105,7 @@ import {
108
105
  isCodexOAuthAgent,
109
106
  normalizeAttachmentPart,
110
107
  resolveAutoExecutionProfile
111
- } from "./chunk-LM2PS3YS.js";
108
+ } from "./chunk-4F7SWSWO.js";
112
109
  import {
113
110
  isDevinOAuthAgent
114
111
  } from "./chunk-5ZUL4CUO.js";
@@ -128,26 +125,28 @@ import {
128
125
  runSummaryWithContract,
129
126
  selectSummaryRoute,
130
127
  serializeMessageContent
131
- } from "./chunk-IZIN2UNJ.js";
128
+ } from "./chunk-RH44TIHX.js";
132
129
  import {
133
130
  isOAuthApiKeyRef
134
131
  } from "./chunk-UKZX3NHN.js";
135
132
  import {
136
133
  asRecordOrEmpty
137
134
  } from "./chunk-KX6YBIHG.js";
135
+ import {
136
+ estimateTokenCount
137
+ } from "./chunk-PSCNXBYA.js";
138
138
  import {
139
139
  isAbortError
140
140
  } from "./chunk-7DPNBQSV.js";
141
141
  import {
142
- nolotusId
143
- } from "./chunk-KN3HEZIQ.js";
144
- import {
145
- isBuiltinPlatformAgentKey
146
- } from "./chunk-UJKTI5PG.js";
142
+ getRecordTimestamp,
143
+ getTombstoneTimestamp,
144
+ isTombstoneRecord,
145
+ shouldReplaceWithNextRecord
146
+ } from "./chunk-BV3FLP2L.js";
147
147
  import {
148
- extractCustomId,
149
- extractUserId
150
- } from "./chunk-M2EJHDJP.js";
148
+ nolotusId
149
+ } from "./chunk-ZVOL2MAJ.js";
151
150
  import {
152
151
  buildDialogAgentListIndexDeleteOps,
153
152
  createKey,
@@ -158,25 +157,41 @@ import {
158
157
  createDialogMessageKeyAndId,
159
158
  dialogMessageKey
160
159
  } from "./chunk-OJKUU3LP.js";
160
+ import {
161
+ isBuiltinPlatformAgentKey
162
+ } from "./chunk-WRKMXMU7.js";
163
+ import {
164
+ extractCustomId,
165
+ extractUserId
166
+ } from "./chunk-M2EJHDJP.js";
161
167
  import {
162
168
  getApproxPricePerImage
163
169
  } from "./chunk-4JH2UMJR.js";
164
170
  import {
165
- estimateTokenCount
166
- } from "./chunk-PSCNXBYA.js";
171
+ API_ENDPOINTS
172
+ } from "./chunk-LCBAMY2M.js";
167
173
  import {
168
174
  toErrorMessage
169
175
  } from "./chunk-HNMXYYJR.js";
170
176
  import {
171
177
  asTrimmedString
172
178
  } from "./chunk-3EUW3WEO.js";
179
+ import {
180
+ asOptionalFiniteNumber
181
+ } from "./chunk-WWC7I6TA.js";
173
182
  import {
174
183
  findModelConfig,
175
184
  getModelConfig
176
- } from "./chunk-KYH7XW3K.js";
185
+ } from "./chunk-OJRTTERA.js";
177
186
  import {
178
187
  isRecord
179
188
  } from "./chunk-KUG52IAP.js";
189
+ import {
190
+ asOptionalTrimmedString
191
+ } from "./chunk-G3SUCT4W.js";
192
+ import {
193
+ normalizeServerOrigin
194
+ } from "./chunk-CF7PE763.js";
180
195
  import {
181
196
  PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
182
197
  PLATFORM_HOSTED_CLAUDE_FABLE_5_PRICE,
@@ -194,22 +209,10 @@ import {
194
209
  isPlatformManagedProvider,
195
210
  resolvePlatformEffectiveModel,
196
211
  resolvePlatformHostedRouting
197
- } from "./chunk-OBSEKCVK.js";
212
+ } from "./chunk-U4VSBDO5.js";
198
213
  import {
199
214
  asTrimmedLowercaseString
200
215
  } from "./chunk-QSJ3HFEF.js";
201
- import {
202
- asOptionalFiniteNumber
203
- } from "./chunk-WWC7I6TA.js";
204
- import {
205
- API_ENDPOINTS
206
- } from "./chunk-LCBAMY2M.js";
207
- import {
208
- asOptionalTrimmedString
209
- } from "./chunk-G3SUCT4W.js";
210
- import {
211
- normalizeServerOrigin
212
- } from "./chunk-CF7PE763.js";
213
216
  import {
214
217
  __toESM
215
218
  } from "./chunk-U67V476Y.js";
@@ -265,7 +268,7 @@ function assertUserBatchInput(expected, actual, ids) {
265
268
  function createUserBatchExecution(signal, owns) {
266
269
  let grant;
267
270
  let closed = false;
268
- let inFlight = false;
271
+ let inFlight2 = false;
269
272
  const dispose = () => {
270
273
  closed = true;
271
274
  grant = void 0;
@@ -290,16 +293,16 @@ function createUserBatchExecution(signal, owns) {
290
293
  return valid() && same(key, receipt);
291
294
  },
292
295
  authorize(key, receipt, input) {
293
- if (!valid() || inFlight) throw new Error("User batch execution ownership lost; blocked");
296
+ if (!valid() || inFlight2) throw new Error("User batch execution ownership lost; blocked");
294
297
  orderedUserBatchInput(input, receipt.messageIds);
295
298
  grant = { dialogKey: key, receipt: { ...receipt, messageIds: [...receipt.messageIds] }, input: structuredClone(input) };
296
299
  },
297
300
  async start(key, receipt, input, invoke) {
298
- if (!valid() || !same(key, receipt) || inFlight) {
301
+ if (!valid() || !same(key, receipt) || inFlight2) {
299
302
  dispose();
300
303
  throw new Error("User batch execution permission expired or mismatched; blocked");
301
304
  }
302
- inFlight = true;
305
+ inFlight2 = true;
303
306
  try {
304
307
  assertUserBatchInput(grant.input, input, receipt.messageIds);
305
308
  return await invoke();
@@ -307,7 +310,7 @@ function createUserBatchExecution(signal, owns) {
307
310
  dispose();
308
311
  throw error;
309
312
  } finally {
310
- inFlight = false;
313
+ inFlight2 = false;
311
314
  }
312
315
  }
313
316
  };
@@ -401,6 +404,7 @@ function normalizeRunCompletionShape(record) {
401
404
  ...typeof record.parentDialogId === "string" ? { parentDialogId: record.parentDialogId } : {},
402
405
  ...typeof record.dialogId === "string" ? { dialogId: record.dialogId } : {},
403
406
  ...typeof record.resultFile === "string" ? { resultFile: record.resultFile } : {},
407
+ ...typeof record.continuedFrom === "string" ? { continuedFrom: record.continuedFrom } : {},
404
408
  ...typeof record.ephemeral === "boolean" ? { ephemeral: record.ephemeral } : {},
405
409
  ...record.startedAt !== void 0 ? { startedAt: record.startedAt } : {},
406
410
  ...record.endedAt !== void 0 ? { endedAt: record.endedAt } : {},
@@ -982,6 +986,7 @@ var fetchConvMsgs = async (server, token, {
982
986
  limit,
983
987
  beforeKey
984
988
  }, options = {}) => {
989
+ googleSessionRequestToken(token, server);
985
990
  const { signal: externalSignal } = options;
986
991
  const controller = new AbortController();
987
992
  const startedAt = now();
@@ -1026,6 +1031,7 @@ var fetchConvMsgs = async (server, token, {
1026
1031
  try {
1027
1032
  const response = await fetch(`${server}/rpc/getConvMsgs`, {
1028
1033
  method: "POST",
1034
+ ...isGoogleAuthoritySession(token) ? { redirect: "error", credentials: "omit" } : {},
1029
1035
  headers: {
1030
1036
  Authorization: `Bearer ${token}`,
1031
1037
  "Content-Type": "application/json"
@@ -6204,6 +6210,64 @@ var ai_locale_default = {
6204
6210
  }
6205
6211
  };
6206
6212
 
6213
+ // packages/chat/dialog/childRunObserverLabels.ts
6214
+ var childRunObserverLabels = {
6215
+ "en": {
6216
+ "openChildPage": "Open child dialog",
6217
+ "savedActiveGroup": "Last saved active \xB7 not live",
6218
+ "historyGroup": "Other tasks",
6219
+ "viewDetails": "View details",
6220
+ "persistedRuns": "Persisted subagent runs",
6221
+ "persistedSnapshot": "Saved status \xB7 not live",
6222
+ "inProgressGroup": "In progress"
6223
+ },
6224
+ "zh-CN": {
6225
+ "openChildPage": "\u6253\u5F00\u5B50\u5BF9\u8BDD",
6226
+ "savedActiveGroup": "\u4E0A\u6B21\u4FDD\u5B58\u4E3A\u6D3B\u8DC3 \xB7 \u975E\u5B9E\u65F6",
6227
+ "historyGroup": "\u5176\u4ED6\u4EFB\u52A1",
6228
+ "viewDetails": "\u67E5\u770B\u8BE6\u60C5",
6229
+ "persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52A1",
6230
+ "persistedSnapshot": "\u5DF2\u4FDD\u5B58\u72B6\u6001 \xB7 \u975E\u5B9E\u65F6",
6231
+ "inProgressGroup": "\u8FDB\u884C\u4E2D"
6232
+ },
6233
+ "zh-Hant": {
6234
+ "openChildPage": "\u958B\u555F\u5B50\u5C0D\u8A71",
6235
+ "savedActiveGroup": "\u4E0A\u6B21\u5132\u5B58\u70BA\u6D3B\u8E8D \xB7 \u975E\u5373\u6642",
6236
+ "historyGroup": "\u5176\u4ED6\u4EFB\u52D9",
6237
+ "viewDetails": "\u67E5\u770B\u8A73\u60C5",
6238
+ "persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52D9",
6239
+ "persistedSnapshot": "\u5DF2\u5132\u5B58\u72C0\u614B \xB7 \u975E\u5373\u6642",
6240
+ "inProgressGroup": "\u9032\u884C\u4E2D"
6241
+ },
6242
+ "ja": {
6243
+ "openChildPage": "\u5B50\u4F1A\u8A71\u3092\u958B\u304F",
6244
+ "savedActiveGroup": "\u6700\u7D42\u4FDD\u5B58\u6642\u306F\u5B9F\u884C\u4E2D\u30FB\u975E\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0",
6245
+ "historyGroup": "\u305D\u306E\u4ED6\u306E\u30BF\u30B9\u30AF",
6246
+ "viewDetails": "\u8A73\u7D30\u3092\u898B\u308B",
6247
+ "persistedRuns": "\u4FDD\u5B58\u6E08\u307F\u30B5\u30D6\u30BF\u30B9\u30AF",
6248
+ "persistedSnapshot": "\u4FDD\u5B58\u6E08\u307F\u72B6\u614B\u30FB\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0\u3067\u306F\u3042\u308A\u307E\u305B\u3093",
6249
+ "inProgressGroup": "\u9032\u884C\u4E2D"
6250
+ },
6251
+ "de": {
6252
+ "openChildPage": "Unterdialog \xF6ffnen",
6253
+ "savedActiveGroup": "Zuletzt aktiv gespeichert \xB7 nicht live",
6254
+ "historyGroup": "Weitere Aufgaben",
6255
+ "viewDetails": "Details ansehen",
6256
+ "persistedRuns": "Gespeicherte Unteraufgaben",
6257
+ "persistedSnapshot": "Gespeicherter Status \xB7 nicht live",
6258
+ "inProgressGroup": "In Bearbeitung"
6259
+ },
6260
+ "es": {
6261
+ "openChildPage": "Abrir di\xE1logo secundario",
6262
+ "savedActiveGroup": "Activo al guardar \xB7 no en vivo",
6263
+ "historyGroup": "Otras tareas",
6264
+ "viewDetails": "Ver detalles",
6265
+ "persistedRuns": "Subtareas guardadas",
6266
+ "persistedSnapshot": "Estado guardado \xB7 no en vivo",
6267
+ "inProgressGroup": "En curso"
6268
+ }
6269
+ };
6270
+
6207
6271
  // packages/chat/chat.locale.ts
6208
6272
  var chat_locale_default = {
6209
6273
  en: {
@@ -6556,6 +6620,15 @@ var chat_locale_default = {
6556
6620
  ask_user: "Ask",
6557
6621
  runStreamingAgent: "Handoff"
6558
6622
  },
6623
+ toolActivity: {
6624
+ unknown: "Unknown",
6625
+ attention: {
6626
+ failure: "Failed",
6627
+ blocked: "Blocked",
6628
+ permission: "Requires authorization",
6629
+ "delete-confirmation": "Awaiting delete confirmation"
6630
+ }
6631
+ },
6559
6632
  controlActions: {
6560
6633
  status: "Status check",
6561
6634
  stop: "Stop task",
@@ -6604,6 +6677,13 @@ var chat_locale_default = {
6604
6677
  DialogSettings: "Dialog Settings",
6605
6678
  collaborativeConversation: "Collaborative conversation",
6606
6679
  childRunObserver: {
6680
+ ...childRunObserverLabels["en"],
6681
+ workingGroup: "Working",
6682
+ mainAgent: "Main agent",
6683
+ modelUnknown: "Model unknown",
6684
+ reasoningConfigured: "Reasoning effort (configured): {{effort}}",
6685
+ reasoningUnspecified: "Reasoning effort: not specified",
6686
+ reasoningUnsupported: "Configured reasoning effort is not supported by this model/provider",
6607
6687
  panelAriaLabel: "Child runs",
6608
6688
  title: "Child runs",
6609
6689
  subtitleLoading: "Loading child runs\u2026",
@@ -7100,6 +7180,15 @@ var chat_locale_default = {
7100
7180
  ask_user: "\u63D0\u95EE",
7101
7181
  runStreamingAgent: "\u8F6C\u4EA4"
7102
7182
  },
7183
+ toolActivity: {
7184
+ unknown: "\u72B6\u6001\u672A\u77E5",
7185
+ attention: {
7186
+ failure: "\u5931\u8D25",
7187
+ blocked: "\u5DF2\u963B\u585E",
7188
+ permission: "\u9700\u8981\u6388\u6743",
7189
+ "delete-confirmation": "\u7B49\u5F85\u5220\u9664\u786E\u8BA4"
7190
+ }
7191
+ },
7103
7192
  controlActions: {
7104
7193
  status: "\u72B6\u6001\u8BCA\u65AD",
7105
7194
  stop: "\u505C\u6B62\u4EFB\u52A1",
@@ -7148,6 +7237,13 @@ var chat_locale_default = {
7148
7237
  DialogSettings: "\u4F1A\u8BDD\u8BBE\u7F6E",
7149
7238
  collaborativeConversation: "\u534F\u4F5C\u4F1A\u8BDD",
7150
7239
  childRunObserver: {
7240
+ ...childRunObserverLabels["zh-CN"],
7241
+ workingGroup: "\u6B63\u5728\u6267\u884C",
7242
+ mainAgent: "\u4E3B Agent",
7243
+ modelUnknown: "\u6A21\u578B\u672A\u77E5",
7244
+ reasoningConfigured: "\u63A8\u7406\u5F3A\u5EA6\uFF08\u914D\u7F6E\uFF09\uFF1A{{effort}}",
7245
+ reasoningUnspecified: "\u63A8\u7406\u5F3A\u5EA6\uFF1A\u672A\u6307\u5B9A",
7246
+ reasoningUnsupported: "\u5DF2\u914D\u7F6E\u63A8\u7406\u5F3A\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u63D0\u4F9B\u65B9\u4E0D\u652F\u6301\u6B64\u53C2\u6570",
7151
7247
  panelAriaLabel: "\u5B50\u4EFB\u52A1\u8FD0\u884C",
7152
7248
  title: "\u5B50\u4EFB\u52A1",
7153
7249
  subtitleLoading: "\u52A0\u8F7D\u5B50\u8FD0\u884C\u2026",
@@ -7644,6 +7740,15 @@ var chat_locale_default = {
7644
7740
  ask_user: "\u63D0\u554F",
7645
7741
  runStreamingAgent: "\u8F49\u4EA4"
7646
7742
  },
7743
+ toolActivity: {
7744
+ unknown: "\u72C0\u614B\u672A\u77E5",
7745
+ attention: {
7746
+ failure: "\u5931\u6557",
7747
+ blocked: "\u5DF2\u963B\u585E",
7748
+ permission: "\u9700\u8981\u6388\u6B0A",
7749
+ "delete-confirmation": "\u7B49\u5F85\u522A\u9664\u78BA\u8A8D"
7750
+ }
7751
+ },
7647
7752
  controlActions: {
7648
7753
  status: "\u72C0\u614B\u8A3A\u65B7",
7649
7754
  stop: "\u505C\u6B62\u4EFB\u52D9",
@@ -7692,6 +7797,13 @@ var chat_locale_default = {
7692
7797
  DialogSettings: "\u6703\u8A71\u8A2D\u5B9A",
7693
7798
  collaborativeConversation: "\u5354\u4F5C\u6703\u8A71",
7694
7799
  childRunObserver: {
7800
+ ...childRunObserverLabels["zh-Hant"],
7801
+ workingGroup: "\u6B63\u5728\u57F7\u884C",
7802
+ mainAgent: "\u4E3B Agent",
7803
+ modelUnknown: "\u6A21\u578B\u672A\u77E5",
7804
+ reasoningConfigured: "\u63A8\u7406\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
7805
+ reasoningUnspecified: "\u63A8\u7406\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
7806
+ reasoningUnsupported: "\u5DF2\u8A2D\u5B9A\u63A8\u7406\u5F37\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u4F9B\u61C9\u5546\u4E0D\u652F\u63F4\u6B64\u53C3\u6578",
7695
7807
  panelAriaLabel: "\u5B50\u4EFB\u52D9\u904B\u884C",
7696
7808
  title: "\u5B50\u4EFB\u52D9",
7697
7809
  subtitleLoading: "\u8F09\u5165\u5B50\u904B\u884C\u2026",
@@ -8194,6 +8306,15 @@ var chat_locale_default = {
8194
8306
  ask_user: "\u8CEA\u554F",
8195
8307
  runStreamingAgent: "\u5F15\u304D\u7D99\u304E"
8196
8308
  },
8309
+ toolActivity: {
8310
+ unknown: "\u72B6\u614B\u4E0D\u660E",
8311
+ attention: {
8312
+ failure: "\u5931\u6557",
8313
+ blocked: "\u30D6\u30ED\u30C3\u30AF\u4E2D",
8314
+ permission: "\u6A29\u9650\u304C\u5FC5\u8981",
8315
+ "delete-confirmation": "\u524A\u9664\u78BA\u8A8D\u5F85\u3061"
8316
+ }
8317
+ },
8197
8318
  controlActions: {
8198
8319
  status: "\u30B9\u30C6\u30FC\u30BF\u30B9\u78BA\u8A8D",
8199
8320
  stop: "\u30BF\u30B9\u30AF\u505C\u6B62",
@@ -8242,6 +8363,13 @@ var chat_locale_default = {
8242
8363
  DialogSettings: "\u5BFE\u8A71\u8A2D\u5B9A",
8243
8364
  collaborativeConversation: "\u5354\u8ABF\u4F1A\u8A71",
8244
8365
  childRunObserver: {
8366
+ ...childRunObserverLabels["ja"],
8367
+ workingGroup: "\u5B9F\u884C\u4E2D",
8368
+ mainAgent: "\u30E1\u30A4\u30F3 Agent",
8369
+ modelUnknown: "\u30E2\u30C7\u30EB\u4E0D\u660E",
8370
+ reasoningConfigured: "\u63A8\u8AD6\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
8371
+ reasoningUnspecified: "\u63A8\u8AD6\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
8372
+ 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",
8245
8373
  panelAriaLabel: "\u5B50\u30BF\u30B9\u30AF\u5B9F\u884C",
8246
8374
  title: "\u5B50\u30BF\u30B9\u30AF",
8247
8375
  subtitleLoading: "\u5B50\u5B9F\u884C\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
@@ -8745,6 +8873,15 @@ var chat_locale_default = {
8745
8873
  ask_user: "Fragen",
8746
8874
  runStreamingAgent: "\xDCbergeben"
8747
8875
  },
8876
+ toolActivity: {
8877
+ unknown: "Unbekannt",
8878
+ attention: {
8879
+ failure: "Fehlgeschlagen",
8880
+ blocked: "Blockiert",
8881
+ permission: "Autorisierung erforderlich",
8882
+ "delete-confirmation": "Wartet auf L\xF6schbest\xE4tigung"
8883
+ }
8884
+ },
8748
8885
  controlActions: {
8749
8886
  status: "Statuspr\xFCfung",
8750
8887
  stop: "Aufgabe anhalten",
@@ -8793,6 +8930,13 @@ var chat_locale_default = {
8793
8930
  DialogSettings: "Dialog-Einstellungen",
8794
8931
  collaborativeConversation: "Kollaborative Unterhaltung",
8795
8932
  childRunObserver: {
8933
+ ...childRunObserverLabels["de"],
8934
+ workingGroup: "In Bearbeitung",
8935
+ mainAgent: "Haupt-Agent",
8936
+ modelUnknown: "Modell unbekannt",
8937
+ reasoningConfigured: "Denkaufwand (konfiguriert): {{effort}}",
8938
+ reasoningUnspecified: "Denkaufwand: nicht angegeben",
8939
+ reasoningUnsupported: "Der konfigurierte Denkaufwand wird von diesem Modell/Anbieter nicht unterst\xFCtzt",
8796
8940
  panelAriaLabel: "Hintergrund-Subtasks",
8797
8941
  title: "Hintergrund-Subtasks",
8798
8942
  subtitleLoading: "Subtasks werden geladen\u2026",
@@ -9296,6 +9440,15 @@ var chat_locale_default = {
9296
9440
  ask_user: "Preguntar",
9297
9441
  runStreamingAgent: "Transferir"
9298
9442
  },
9443
+ toolActivity: {
9444
+ unknown: "Desconocido",
9445
+ attention: {
9446
+ failure: "Fallido",
9447
+ blocked: "Bloqueado",
9448
+ permission: "Requiere autorizaci\xF3n",
9449
+ "delete-confirmation": "Esperando confirmaci\xF3n de eliminaci\xF3n"
9450
+ }
9451
+ },
9299
9452
  controlActions: {
9300
9453
  status: "Diagn\xF3stico de estado",
9301
9454
  stop: "Detener tarea",
@@ -9344,6 +9497,13 @@ var chat_locale_default = {
9344
9497
  DialogSettings: "Ajustes del di\xE1logo",
9345
9498
  collaborativeConversation: "Conversaci\xF3n colaborativa",
9346
9499
  childRunObserver: {
9500
+ ...childRunObserverLabels["es"],
9501
+ workingGroup: "En ejecuci\xF3n",
9502
+ mainAgent: "Agente principal",
9503
+ modelUnknown: "Modelo desconocido",
9504
+ reasoningConfigured: "Esfuerzo de razonamiento (configurado): {{effort}}",
9505
+ reasoningUnspecified: "Esfuerzo de razonamiento: sin especificar",
9506
+ reasoningUnsupported: "El esfuerzo configurado no es compatible con este modelo/proveedor",
9347
9507
  panelAriaLabel: "Subtareas en segundo plano",
9348
9508
  title: "Subtareas en segundo plano",
9349
9509
  subtitleLoading: "Cargando subtareas\u2026",
@@ -9521,6 +9681,10 @@ var space_locale_default = {
9521
9681
  workspace_other: "Other spaces",
9522
9682
  workspace_unassociated: "Unassociated space",
9523
9683
  workspace_unassociated_empty: "No content outside spaces yet",
9684
+ workspace_create_space: "New Space",
9685
+ workspace_start_chat: "Start chat in this space",
9686
+ workspace_more: "More space actions: {{name}}",
9687
+ workspace_more_menu: "Space actions",
9524
9688
  // === 基础操作 ===
9525
9689
  create: "Create Space",
9526
9690
  name: "Space Name",
@@ -9855,6 +10019,10 @@ var space_locale_default = {
9855
10019
  workspace_other: "\u5176\u4ED6\u7A7A\u95F4",
9856
10020
  workspace_unassociated: "\u7A7A\u95F4\u5916",
9857
10021
  workspace_unassociated_empty: "\u7A7A\u95F4\u5916\u8FD8\u6CA1\u6709\u5185\u5BB9",
10022
+ workspace_create_space: "\u65B0\u5EFA\u7A7A\u95F4",
10023
+ workspace_start_chat: "\u5728\u6B64\u7A7A\u95F4\u53D1\u8D77\u5BF9\u8BDD",
10024
+ workspace_more: "\u7A7A\u95F4\u66F4\u591A\u64CD\u4F5C\uFF1A{{name}}",
10025
+ workspace_more_menu: "\u7A7A\u95F4\u64CD\u4F5C",
9858
10026
  // === 基础操作 ===
9859
10027
  create: "\u521B\u5EFA\u7A7A\u95F4",
9860
10028
  name: "\u7A7A\u95F4\u540D\u79F0",
@@ -10189,6 +10357,10 @@ var space_locale_default = {
10189
10357
  workspace_other: "\u5176\u4ED6\u7A7A\u9593",
10190
10358
  workspace_unassociated: "\u7A7A\u9593\u5916",
10191
10359
  workspace_unassociated_empty: "\u7A7A\u9593\u5916\u9084\u6C92\u6709\u5167\u5BB9",
10360
+ workspace_create_space: "\u65B0\u589E\u7A7A\u9593",
10361
+ workspace_start_chat: "\u5728\u6B64\u7A7A\u9593\u767C\u8D77\u5C0D\u8A71",
10362
+ workspace_more: "\u7A7A\u9593\u66F4\u591A\u64CD\u4F5C\uFF1A{{name}}",
10363
+ workspace_more_menu: "\u7A7A\u9593\u64CD\u4F5C",
10192
10364
  // === 基础操作 ===
10193
10365
  create: "\u5275\u5EFA\u7A7A\u9593",
10194
10366
  name: "\u7A7A\u9593\u540D\u7A31",
@@ -10522,6 +10694,10 @@ var space_locale_default = {
10522
10694
  workspace_other: "\u305D\u306E\u4ED6\u306E\u30B9\u30DA\u30FC\u30B9",
10523
10695
  workspace_unassociated: "\u672A\u95A2\u9023\u306E\u30B9\u30DA\u30FC\u30B9",
10524
10696
  workspace_unassociated_empty: "\u30B9\u30DA\u30FC\u30B9\u5916\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",
10697
+ workspace_create_space: "\u65B0\u3057\u3044\u30B9\u30DA\u30FC\u30B9",
10698
+ workspace_start_chat: "\u3053\u306E\u30B9\u30DA\u30FC\u30B9\u3067\u5BFE\u8A71\u3092\u958B\u59CB",
10699
+ workspace_more: "\u30B9\u30DA\u30FC\u30B9\u306E\u305D\u306E\u4ED6\u306E\u64CD\u4F5C\uFF1A{{name}}",
10700
+ workspace_more_menu: "\u30B9\u30DA\u30FC\u30B9\u64CD\u4F5C",
10525
10701
  // === 基本操作 ===
10526
10702
  create: "\u30B9\u30DA\u30FC\u30B9\u3092\u4F5C\u6210",
10527
10703
  name: "\u30B9\u30DA\u30FC\u30B9\u540D",
@@ -10857,6 +11033,10 @@ var space_locale_default = {
10857
11033
  workspace_other: "Andere Spaces",
10858
11034
  workspace_unassociated: "Nicht zugeordneter Space",
10859
11035
  workspace_unassociated_empty: "Noch keine Inhalte au\xDFerhalb von Spaces",
11036
+ workspace_create_space: "Neuer Space",
11037
+ workspace_start_chat: "Dialog in diesem Space starten",
11038
+ workspace_more: "Weitere Space-Aktionen: {{name}}",
11039
+ workspace_more_menu: "Space-Aktionen",
10860
11040
  create: "Space erstellen",
10861
11041
  name: "Space-Name",
10862
11042
  description: "Beschreibung",
@@ -11173,6 +11353,10 @@ var space_locale_default = {
11173
11353
  workspace_other: "Otros espacios",
11174
11354
  workspace_unassociated: "Espacio no asociado",
11175
11355
  workspace_unassociated_empty: "A\xFAn no hay contenido fuera de los espacios",
11356
+ workspace_create_space: "Nuevo espacio",
11357
+ workspace_start_chat: "Iniciar di\xE1logo en este espacio",
11358
+ workspace_more: "M\xE1s acciones del espacio: {{name}}",
11359
+ workspace_more_menu: "Acciones del espacio",
11176
11360
  create: "Crear espacio",
11177
11361
  name: "Nombre del espacio",
11178
11362
  description: "Descripci\xF3n",
@@ -12037,256 +12221,6 @@ ${failureText}`;
12037
12221
  return failureText;
12038
12222
  }
12039
12223
 
12040
- // packages/create/space/contentKeyUtils.ts
12041
- var isAppContentKey = (contentKey) => typeof contentKey === "string" && contentKey.startsWith("app-");
12042
- var normalizeAppRouteId = (contentKey) => isAppContentKey(contentKey) ? contentKey : `app-${contentKey}`;
12043
-
12044
- // packages/ai/tools/uiAskChoiceTool.ts
12045
- var uiAskChoiceFunctionSchema = {
12046
- name: "ask_user",
12047
- 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",
12048
- parameters: {
12049
- type: "object",
12050
- properties: {
12051
- question: {
12052
- type: "string",
12053
- 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"
12054
- },
12055
- choices: {
12056
- type: "array",
12057
- description: "\u5907\u9009\u9879\u5217\u8868\uFF0C\u6E32\u67D3\u4E3A\u6309\u94AE\u4F9B\u7528\u6237\u70B9\u51FB\u3002",
12058
- items: {
12059
- type: "object",
12060
- properties: {
12061
- id: {
12062
- type: "string",
12063
- description: "\u9009\u9879\u6807\u8BC6\u3002"
12064
- },
12065
- label: {
12066
- type: "string",
12067
- description: "\u6309\u94AE\u6587\u5B57\uFF0C\u5982\u201C\u751F\u6210\u672C\u5468\u5468\u62A5\u201D\u3002"
12068
- },
12069
- detail: {
12070
- type: "string",
12071
- 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"
12072
- },
12073
- userMessage: {
12074
- type: "string",
12075
- 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"
12076
- }
12077
- },
12078
- required: ["id", "label"]
12079
- }
12080
- },
12081
- questions: {
12082
- type: "array",
12083
- description: "\u591A\u95EE\u9898\u6A21\u5F0F\uFF08\u591A tab \u6E32\u67D3\uFF0C\u4E0E question+choices \u4E8C\u9009\u4E00\uFF09\u3002",
12084
- items: {
12085
- type: "object",
12086
- properties: {
12087
- id: {
12088
- type: "string",
12089
- description: "\u95EE\u9898\u6807\u8BC6\u3002"
12090
- },
12091
- header: {
12092
- type: "string",
12093
- 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"
12094
- },
12095
- question: {
12096
- type: "string",
12097
- description: "\u95EE\u9898\u6587\u6848\u3002"
12098
- },
12099
- choices: {
12100
- type: "array",
12101
- description: "\u8BE5\u95EE\u9898\u7684\u5907\u9009\u9879\u3002",
12102
- items: {
12103
- type: "object",
12104
- properties: {
12105
- id: { type: "string" },
12106
- label: { type: "string" },
12107
- detail: {
12108
- type: "string",
12109
- 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"
12110
- },
12111
- userMessage: { type: "string" }
12112
- },
12113
- required: ["id", "label"]
12114
- }
12115
- },
12116
- multiSelect: {
12117
- type: "boolean",
12118
- description: "\u5141\u8BB8\u591A\u9009\uFF0C\u9ED8\u8BA4 false\u3002"
12119
- },
12120
- allowOther: {
12121
- type: "boolean",
12122
- description: "\u663E\u793A\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF0C\u9ED8\u8BA4 true\u3002"
12123
- },
12124
- required: {
12125
- type: "boolean",
12126
- description: "\u662F\u5426\u5FC5\u987B\u56DE\u7B54\u624D\u80FD\u63D0\u4EA4\uFF0C\u9ED8\u8BA4 true\u3002"
12127
- }
12128
- },
12129
- required: ["id", "question", "choices"]
12130
- }
12131
- },
12132
- blocking: {
12133
- type: "boolean",
12134
- description: "\u662F\u5426\u7B49\u5F85\u7528\u6237\u9009\u62E9\u540E\u518D\u7EE7\u7EED\u6D41\u7A0B\uFF0C\u9ED8\u8BA4 true\u3002"
12135
- }
12136
- },
12137
- required: []
12138
- }
12139
- };
12140
- function validateChoiceList(choices, scopeLabel) {
12141
- const seenChoiceIds = /* @__PURE__ */ new Set();
12142
- for (let index = 0; index < choices.length; index += 1) {
12143
- const entry = choices[index];
12144
- if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
12145
- return `${scopeLabel}.choices[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
12146
- }
12147
- const choice = entry;
12148
- if (typeof choice.label !== "string" || !choice.label.trim()) {
12149
- return `${scopeLabel}.choices[${index}].label \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
12150
- }
12151
- if (choice.id !== void 0 && typeof choice.id !== "string") {
12152
- return `${scopeLabel}.choices[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
12153
- }
12154
- const choiceId = typeof choice.id === "string" ? choice.id.trim() : "";
12155
- if (choiceId && seenChoiceIds.has(choiceId)) {
12156
- return `${scopeLabel} \u5185\u7684\u9009\u9879 id "${choiceId}" \u91CD\u590D\u3002`;
12157
- }
12158
- if (choiceId) seenChoiceIds.add(choiceId);
12159
- }
12160
- return null;
12161
- }
12162
- function validateAskChoiceInput(raw) {
12163
- if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
12164
- return "ask_user \u9700\u8981\u4E00\u4E2A\u5BF9\u8C61\u53C2\u6570\u3002";
12165
- }
12166
- const args = raw;
12167
- if (args.blocking !== void 0 && typeof args.blocking !== "boolean") {
12168
- return "ask_user \u7684 blocking \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002";
12169
- }
12170
- const rawQuestions = args.questions;
12171
- if (rawQuestions !== void 0 && !Array.isArray(rawQuestions)) {
12172
- return "ask_user \u7684 questions \u5FC5\u987B\u662F\u6570\u7EC4\u3002";
12173
- }
12174
- const questions = rawQuestions;
12175
- if (questions && questions.length > 0) {
12176
- const seenQuestionIds = /* @__PURE__ */ new Set();
12177
- for (let index = 0; index < questions.length; index += 1) {
12178
- const entry = questions[index];
12179
- if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
12180
- return `questions[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
12181
- }
12182
- const question = entry;
12183
- if (question.id !== void 0 && typeof question.id !== "string") {
12184
- return `questions[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
12185
- }
12186
- const questionId = typeof question.id === "string" ? question.id.trim() : "";
12187
- if (questionId && seenQuestionIds.has(questionId)) {
12188
- return `\u95EE\u9898 id "${questionId}" \u91CD\u590D\u3002`;
12189
- }
12190
- if (questionId) seenQuestionIds.add(questionId);
12191
- if (typeof question.question !== "string" || !question.question.trim()) {
12192
- return `questions[${index}].question \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
12193
- }
12194
- for (const flag of ["multiSelect", "allowOther", "required"]) {
12195
- if (question[flag] !== void 0 && typeof question[flag] !== "boolean") {
12196
- return `questions[${index}].${flag} \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`;
12197
- }
12198
- }
12199
- const choices = question.choices;
12200
- if (!Array.isArray(choices)) {
12201
- return `questions[${index}].choices \u5FC5\u987B\u662F\u6570\u7EC4\u3002`;
12202
- }
12203
- const choiceError = validateChoiceList(choices, `questions[${index}]`);
12204
- if (choiceError) return choiceError;
12205
- if (choices.length === 0 && question.allowOther === false) {
12206
- return `questions[${index}] \u6CA1\u6709\u4EFB\u4F55\u9009\u9879\u4E14 allowOther \u4E3A false\uFF0C\u7528\u6237\u65E0\u6CD5\u4F5C\u7B54\u3002`;
12207
- }
12208
- }
12209
- return null;
12210
- }
12211
- if (typeof args.question !== "string" || !args.question.trim()) {
12212
- return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
12213
- }
12214
- if (!Array.isArray(args.choices) || args.choices.length === 0) {
12215
- return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
12216
- }
12217
- return validateChoiceList(args.choices, "ask_user");
12218
- }
12219
- async function uiAskChoiceFunc(args, _thunkApi) {
12220
- const invalid = validateAskChoiceInput(args);
12221
- if (invalid) throw new Error(invalid);
12222
- const blocking = args?.blocking !== false;
12223
- if (Array.isArray(args?.questions) && args.questions.length > 0) {
12224
- const firstQ = args.questions[0];
12225
- return {
12226
- rawData: {
12227
- type: "ask_user",
12228
- question: firstQ?.question ?? "",
12229
- choices: firstQ?.choices ?? [],
12230
- blocking,
12231
- questions: args.questions
12232
- },
12233
- displayData: args.questions.map((q) => q.question).join(" / ")
12234
- };
12235
- }
12236
- const question = String(args?.question ?? "").trim();
12237
- const choices = Array.isArray(args?.choices) ? args.choices : [];
12238
- if (!question || choices.length === 0) {
12239
- throw new Error("ask_user \u9700\u8981 question+choices \u6216 questions\u3002");
12240
- }
12241
- return {
12242
- rawData: {
12243
- type: "ask_user",
12244
- question,
12245
- choices,
12246
- blocking
12247
- },
12248
- displayData: question
12249
- };
12250
- }
12251
- function parseUiAskChoiceContent(rawContent) {
12252
- const parsed = typeof rawContent === "string" ? (() => {
12253
- try {
12254
- return JSON.parse(rawContent);
12255
- } catch {
12256
- return null;
12257
- }
12258
- })() : rawContent;
12259
- if (!parsed || typeof parsed !== "object") return null;
12260
- if (parsed.type !== "ask_user") return null;
12261
- return parsed;
12262
- }
12263
-
12264
- // packages/ai/policy/personalizationDialog.ts
12265
- var PERSONALIZATION_DIALOG_CATEGORY = "user-overlay-profile";
12266
- var PERSONALIZATION_DIALOG_EXTRA_TOOLS = [
12267
- "ask_user",
12268
- "updateUserPreferenceProfile"
12269
- ];
12270
- var buildPersonalizationRuntimeOptions = (runtimeOptions) => ({
12271
- ...runtimeOptions,
12272
- extraTools: Array.from(
12273
- /* @__PURE__ */ new Set([
12274
- ...runtimeOptions?.extraTools ?? [],
12275
- ...PERSONALIZATION_DIALOG_EXTRA_TOOLS
12276
- ])
12277
- )
12278
- });
12279
- var buildPersonalizationDialogPolicyContext = () => [
12280
- "\u5F53\u524D\u5BF9\u8BDD\u662F\u201C\u7528\u6237\u4E2A\u6027\u5316\u8BBE\u7F6E\u201D\u6A21\u5F0F\uFF0C\u4E0D\u662F\u666E\u901A\u95F2\u804A\u3002",
12281
- "\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",
12282
- "\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",
12283
- "\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",
12284
- "\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",
12285
- "\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",
12286
- "\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",
12287
- "\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"
12288
- ].join("\n");
12289
-
12290
12224
  // packages/chat/dialog/dialogAgentPolicy.ts
12291
12225
  var resolveDialogAgentMode = (dialog) => {
12292
12226
  if (dialog?.agentMode === "auto") return "auto";
@@ -12322,7 +12256,7 @@ function resolveHandleSendMessageContext(input) {
12322
12256
  return {
12323
12257
  agentKeyToUse: resolveDialogRuntimeAgentKey(dialogConfig, targetAgentKey),
12324
12258
  agentConfigToUse: resolveDialogRuntimeAgentConfig(dialogConfig, targetAgentKey) ?? void 0,
12325
- effectiveRuntimeOptions: dialogConfig.category === PERSONALIZATION_DIALOG_CATEGORY ? buildPersonalizationRuntimeOptions(runtimeOptions ?? {}) : runtimeOptions
12259
+ effectiveRuntimeOptions: runtimeOptions
12326
12260
  };
12327
12261
  }
12328
12262
 
@@ -12501,6 +12435,60 @@ function resolveStreamEndBillingUsages(input) {
12501
12435
  }
12502
12436
 
12503
12437
  // packages/chat/messages/web/toolDisplayName.ts
12438
+ var TOOL_DISPLAY_NAME_DEFAULTS = {
12439
+ tool: "\u5DE5\u5177",
12440
+ globFiles: "\u67E5\u627E\u6587\u4EF6",
12441
+ glob_files: "\u67E5\u627E\u6587\u4EF6",
12442
+ codeSearch: "\u4EE3\u7801\u641C\u7D22",
12443
+ code_search: "\u4EE3\u7801\u641C\u7D22",
12444
+ readFile: "\u8BFB\u53D6\u6587\u4EF6",
12445
+ read_file: "\u8BFB\u53D6\u6587\u4EF6",
12446
+ writeFile: "\u5199\u5165\u6587\u4EF6",
12447
+ write_file: "\u5199\u5165\u6587\u4EF6",
12448
+ editFile: "\u4FEE\u6539\u6587\u4EF6",
12449
+ edit_file: "\u4FEE\u6539\u6587\u4EF6",
12450
+ execShell: "\u8FD0\u884C\u547D\u4EE4",
12451
+ exec_shell: "\u8FD0\u884C\u547D\u4EE4",
12452
+ shell: "\u8FD0\u884C\u547D\u4EE4",
12453
+ searchWorkspace: "\u641C\u7D22\u5DE5\u4F5C\u533A",
12454
+ readWorkspaceFile: "\u8BFB\u53D6\u6587\u4EF6",
12455
+ writeWorkspaceFile: "\u5199\u5165\u6587\u4EF6",
12456
+ replaceWorkspaceText: "\u66FF\u6362\u6587\u672C",
12457
+ listAgents: "\u5217\u51FA\u52A9\u624B",
12458
+ readAgent: "\u8BFB\u53D6\u52A9\u624B",
12459
+ startAgentRun: "\u542F\u52A8\u5B50\u4EFB\u52A1",
12460
+ controlAgentRun: "\u63A7\u5236\u5B50\u4EFB\u52A1",
12461
+ createAgent: "\u521B\u5EFA\u52A9\u624B",
12462
+ updateAgent: "\u66F4\u65B0\u52A9\u624B",
12463
+ prepareAgentDraft: "\u6574\u7406\u52A9\u624B\u8349\u7A3F",
12464
+ createSkillAgent: "\u521B\u5EFA\u6280\u80FD\u52A9\u624B",
12465
+ queryDialogsBySubjectRef: "\u68C0\u7D22\u5BF9\u8BDD\u8BB0\u5F55",
12466
+ deleteDialogs: "\u5220\u9664\u5BF9\u8BDD\u8BB0\u5F55",
12467
+ readDialog: "\u8BFB\u53D6\u5BF9\u8BDD",
12468
+ listDialogs: "\u5217\u51FA\u5BF9\u8BDD",
12469
+ exa_search: "\u641C\u7D22",
12470
+ firecrawl_scrape: "\u7F51\u9875\u6293\u53D6",
12471
+ firecrawl_search: "\u7F51\u9875\u641C\u7D22",
12472
+ startPreview: "\u542F\u52A8\u9884\u89C8",
12473
+ getPreviewStatus: "\u9884\u89C8\u72B6\u6001",
12474
+ stopPreview: "\u505C\u6B62\u9884\u89C8",
12475
+ releasePreview: "\u91CA\u653E\u9884\u89C8",
12476
+ captureVisualState: "\u622A\u56FE\u68C0\u67E5",
12477
+ fetchWebpage: "\u6293\u53D6\u7F51\u9875",
12478
+ fetch_webpage: "\u6293\u53D6\u7F51\u9875",
12479
+ loadSkill: "\u52A0\u8F7D\u6280\u80FD"
12480
+ };
12481
+ function normalizeToolNameKey(toolName) {
12482
+ let normalized = asTrimmedString(toolName);
12483
+ if (!normalized) return "";
12484
+ normalized = normalized.replace(/^functions\./, "").replace(/^tools\./, "");
12485
+ if (TOOL_DISPLAY_NAME_DEFAULTS[normalized]) return normalized;
12486
+ if (normalized.includes("_")) {
12487
+ const camel = normalized.replace(/_([a-z])/g, (_, c) => c.toUpperCase());
12488
+ if (TOOL_DISPLAY_NAME_DEFAULTS[camel]) return camel;
12489
+ }
12490
+ return normalized;
12491
+ }
12504
12492
  var LEGACY_VERSION_ACTIVITY_TITLES = {
12505
12493
  \u7528\u7248\u672C\u7BA1\u7406\u68C0\u67E5\u6539\u52A8: "\u68C0\u67E5\u6539\u52A8",
12506
12494
  \u7528\u7248\u672C\u7BA1\u7406\u67E5\u770B\u6539\u52A8: "\u67E5\u770B\u6539\u52A8",
@@ -12830,7 +12818,9 @@ function formatActivityAction(activity) {
12830
12818
  }
12831
12819
  function getMessageStatus(msg) {
12832
12820
  const rawData = typeof msg?.content === "string" ? asOptionalJsonRecord(msg.content) : msg?.content;
12833
- const isError = msg?.toolPayload?.status === "failed" || !!msg?.toolPayload?.error || !!rawData?.error;
12821
+ const name = normalizeToolNameKey(msg?.toolName);
12822
+ const isReadFile = ["readFile", "read_file", "readWorkspaceFile"].includes(name);
12823
+ const isError = msg?.toolPayload?.status === "failed" || !!msg?.toolPayload?.error || !!msg?.metadata?.error || !isReadFile && (!!rawData?.error || rawData?.ok === false);
12834
12824
  if (msg?.isStreaming || msg?.toolPayload?.status === "running") return "running";
12835
12825
  if (isError) return "failed";
12836
12826
  if (msg?.toolPayload?.status === "pending") return "pending";
@@ -13168,15 +13158,6 @@ function prepareStreamEndPersistInputs(input) {
13168
13158
  }
13169
13159
 
13170
13160
  // packages/chat/messages/messageUnderstandingCapture.ts
13171
- function getLatestUserInputFromMessages(messages) {
13172
- for (let index = messages.length - 1; index >= 0; index -= 1) {
13173
- const message = messages[index];
13174
- if (!message || message.role !== "user") continue;
13175
- const serialized = serializeMessageContent(message.content, "[\u56FE\u7247]")?.trim();
13176
- if (serialized) return serialized;
13177
- }
13178
- return null;
13179
- }
13180
13161
  function getDialogSpaceIdFromState(state, dialogKey) {
13181
13162
  if (!dialogKey) return void 0;
13182
13163
  const dialog = selectById(state, dialogKey);
@@ -13190,32 +13171,117 @@ function resolveMemoryCaptureBaseUrl(state) {
13190
13171
  return currentServer.replace(/\/+$/, "");
13191
13172
  }
13192
13173
  async function captureUnderstandingFromCompletedUiTurn(input) {
13193
- if (input.assistantText.trim() === "") return;
13194
- if (input.toolCalls && input.toolCalls.length > 0) return;
13195
- if (!input.agentKey) return;
13196
- const latestUserInput = getLatestUserInputFromMessages(input.messages);
13197
- if (!latestUserInput) return;
13174
+ if (!input.assistantText.trim() || input.toolCalls?.length || !input.agentKey) {
13175
+ return { status: "skipped", reason: "incomplete_turn" };
13176
+ }
13177
+ const source = input.messages.findLast((message) => message?.role === "user");
13178
+ if (!source || !/^[A-Za-z0-9_-]{1,128}$/.test(source.id ?? "") || source.dbKey !== dialogMessageKey(input.dialogId, source.id)) {
13179
+ return { status: "skipped", reason: "missing_persisted_user" };
13180
+ }
13198
13181
  const state = input.state;
13182
+ const persisted = state?.db ? selectById(state, source.dbKey) : void 0;
13183
+ if (!persisted || persisted.id !== source.id || persisted.dbKey !== source.dbKey || persisted.role !== "user" || persisted.metadata?.queueState === "pending" || persisted.deleted || persisted.isDeleted || typeof persisted.content !== "string" || !persisted.content.trim() || persisted.content !== source.content) {
13184
+ return { status: "skipped", reason: "missing_persisted_user" };
13185
+ }
13199
13186
  const token = selectIdentityToken(state) ?? null;
13200
13187
  const baseUrl = resolveMemoryCaptureBaseUrl(state);
13201
- if (!token || !baseUrl) return;
13202
- const dialog = input.dialogKey ? selectById(state, input.dialogKey) : void 0;
13188
+ if (!token || !baseUrl) return { status: "skipped", reason: "unavailable" };
13189
+ const body = JSON.stringify({
13190
+ agentKey: input.agentKey,
13191
+ dialogId: input.dialogId,
13192
+ userMessageId: persisted.id,
13193
+ userInput: persisted.content,
13194
+ assistantText: input.assistantText,
13195
+ spaceId: input.spaceId ?? getDialogSpaceIdFromState(state, input.dialogKey)
13196
+ });
13197
+ const key = JSON.stringify([baseUrl, token, body]);
13198
+ const existing = inFlight.get(key);
13199
+ if (existing && existing.signal === input.signal) return existing.promise;
13200
+ const promise = runCapture(input, persisted.dbKey, baseUrl, token, body);
13201
+ const entry = { signal: input.signal, promise };
13202
+ inFlight.set(key, entry);
13203
13203
  try {
13204
- await fetch(`${baseUrl}/api/memory/capture-turn`, {
13205
- method: "POST",
13206
- headers: {
13207
- "Content-Type": "application/json",
13208
- Authorization: `Bearer ${token}`
13204
+ return await promise;
13205
+ } finally {
13206
+ if (inFlight.get(key) === entry) inFlight.delete(key);
13207
+ }
13208
+ }
13209
+ var inFlight = /* @__PURE__ */ new Map();
13210
+ async function runCapture(input, sourceKey, baseUrl, token, body) {
13211
+ const controller = new AbortController();
13212
+ const cancel = () => controller.abort();
13213
+ input.signal?.addEventListener("abort", cancel, { once: true });
13214
+ if (input.signal?.aborted) cancel();
13215
+ const requestedTimeout = input.timeoutMs ?? 8e3;
13216
+ const timeoutMs = Number.isFinite(requestedTimeout) ? Math.max(1, Math.min(8e3, requestedTimeout)) : 8e3;
13217
+ const timer = setTimeout(cancel, timeoutMs);
13218
+ const signal = controller.signal;
13219
+ const bounded = (operation) => new Promise((resolve, reject) => {
13220
+ const abort = () => reject(new Error("capture aborted"));
13221
+ if (signal.aborted) {
13222
+ reject(new Error("capture aborted"));
13223
+ return;
13224
+ }
13225
+ signal.addEventListener("abort", abort, { once: true });
13226
+ operation.then(resolve, reject).finally(() => signal.removeEventListener("abort", abort));
13227
+ });
13228
+ try {
13229
+ if (signal.aborted) return { status: "failed", reason: "cancelled" };
13230
+ const ack = await bounded(waitForWriteAck(sourceKey, { targetServer: baseUrl, timeoutMs }));
13231
+ if (ack.timedOut) return { status: "failed", reason: "replication_timeout" };
13232
+ if (!["acked", "unknown"].includes(ack.outcome.status) || ack.waitTarget === "primary-fallback") {
13233
+ return { status: "failed", reason: "replication_failed" };
13234
+ }
13235
+ const response = await bounded(fetchWithTransientRetry(
13236
+ async (url, init2) => {
13237
+ if (signal.aborted) throw new Error("capture aborted");
13238
+ return bounded(fetch(url, init2));
13239
+ },
13240
+ `${baseUrl}/api/memory/capture-turn`,
13241
+ {
13242
+ method: "POST",
13243
+ headers: {
13244
+ "Content-Type": "application/json",
13245
+ Authorization: `Bearer ${token}`
13246
+ },
13247
+ body,
13248
+ signal
13209
13249
  },
13210
- body: JSON.stringify({
13211
- agentKey: input.agentKey,
13212
- dialogId: input.dialogId,
13213
- userInput: latestUserInput,
13214
- assistantText: input.assistantText,
13215
- spaceId: input.spaceId ?? getDialogSpaceIdFromState(state, input.dialogKey)
13216
- })
13217
- });
13250
+ {
13251
+ maxAttempts: 3,
13252
+ coreDrainingMaxAttempts: 3,
13253
+ // Never replay an ambiguous application-level 422 or permanent 401/403.
13254
+ retryableStatuses: /* @__PURE__ */ new Set([429, 502, 503, 504]),
13255
+ sleep: (ms) => bounded(new Promise((resolve) => {
13256
+ const timer2 = setTimeout(done, Math.min(ms, 2e3));
13257
+ function done() {
13258
+ clearTimeout(timer2);
13259
+ signal.removeEventListener("abort", done);
13260
+ resolve();
13261
+ }
13262
+ signal.addEventListener("abort", done, { once: true });
13263
+ }))
13264
+ }
13265
+ ));
13266
+ if (!response.ok) return { status: "failed", reason: "http", httpStatus: response.status };
13267
+ let responseBody;
13268
+ try {
13269
+ responseBody = await bounded(response.json());
13270
+ } catch {
13271
+ if (signal.aborted) throw new Error("capture aborted");
13272
+ return { status: "failed", reason: "invalid_response" };
13273
+ }
13274
+ const native = responseBody?.nativeCapture;
13275
+ if (native && ["captured", "skipped", "failed"].includes(native.capture) && ["applied", "no_op", "deferred", "failed"].includes(native.formation)) {
13276
+ return { status: "native", capture: native.capture, formation: native.formation };
13277
+ }
13278
+ if (!native && responseBody?.success === true) return { status: "legacy_acknowledged" };
13279
+ return { status: "failed", reason: "invalid_response" };
13218
13280
  } catch {
13281
+ return { status: "failed", reason: signal.aborted ? input.signal?.aborted ? "cancelled" : "timeout" : "network" };
13282
+ } finally {
13283
+ clearTimeout(timer);
13284
+ input.signal?.removeEventListener("abort", cancel);
13219
13285
  }
13220
13286
  }
13221
13287
 
@@ -13360,6 +13426,128 @@ function clearForegroundTurnSettledVisible(dialogId) {
13360
13426
  notify();
13361
13427
  }
13362
13428
 
13429
+ // packages/chat/messages/messageBucketLru.ts
13430
+ var MAX_CACHED_INACTIVE_DIALOG_BUCKETS = 10;
13431
+ var SAVE_FAILED_MARKER = "[Failed to save message]";
13432
+ function isSaveFailedMessageContent(content) {
13433
+ if (typeof content === "string") {
13434
+ return content.includes(SAVE_FAILED_MARKER);
13435
+ }
13436
+ if (Array.isArray(content)) {
13437
+ return content.some(
13438
+ (part) => Boolean(part) && part.type === "text" && typeof part.text === "string" && part.text.includes(SAVE_FAILED_MARKER)
13439
+ );
13440
+ }
13441
+ return false;
13442
+ }
13443
+ function hasProtectedMessageInBucket(messages) {
13444
+ const validMessages = [];
13445
+ for (const msg of messages) {
13446
+ if (!msg) continue;
13447
+ validMessages.push(msg);
13448
+ if (msg.isStreaming === true) return true;
13449
+ if (msg.imageGenerationState != null) return true;
13450
+ const metadata = msg.metadata;
13451
+ const queueState = metadata?.queueState;
13452
+ if (queueState === "pending" || queueState === "queued" || queueState === "accepted") {
13453
+ return true;
13454
+ }
13455
+ const userBatchPhase = metadata?.userBatchPhase;
13456
+ if (userBatchPhase === "admitted" || userBatchPhase === "requested") {
13457
+ return true;
13458
+ }
13459
+ const rawMsg = msg;
13460
+ 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) {
13461
+ return true;
13462
+ }
13463
+ if (isSaveFailedMessageContent(msg.content)) {
13464
+ return true;
13465
+ }
13466
+ }
13467
+ return selectPendingUserMessages(validMessages).length > 0;
13468
+ }
13469
+ function touchDialogBucketLru(lruOrder, dialogId, dialogStateById) {
13470
+ if (!dialogId || dialogId === GLOBAL_MESSAGE_DIALOG_ID) {
13471
+ return lruOrder ? [...lruOrder] : [];
13472
+ }
13473
+ if (lruOrder && lruOrder.length > 0 && lruOrder[lruOrder.length - 1] === dialogId) {
13474
+ return lruOrder;
13475
+ }
13476
+ const seen = /* @__PURE__ */ new Set();
13477
+ const next = [];
13478
+ if (!lruOrder && dialogStateById) {
13479
+ for (const existingId of Object.keys(dialogStateById)) {
13480
+ if (existingId !== GLOBAL_MESSAGE_DIALOG_ID && existingId !== dialogId && !seen.has(existingId)) {
13481
+ seen.add(existingId);
13482
+ next.push(existingId);
13483
+ }
13484
+ }
13485
+ }
13486
+ if (lruOrder) {
13487
+ for (const existingId of lruOrder) {
13488
+ if (existingId !== GLOBAL_MESSAGE_DIALOG_ID && existingId !== dialogId && !seen.has(existingId) && (!dialogStateById || existingId in dialogStateById)) {
13489
+ seen.add(existingId);
13490
+ next.push(existingId);
13491
+ }
13492
+ }
13493
+ }
13494
+ next.push(dialogId);
13495
+ return next;
13496
+ }
13497
+ function planColdMessageBucketEviction(input) {
13498
+ const {
13499
+ dialogStateById,
13500
+ lruOrder = [],
13501
+ activeDialogId: activeDialogId2,
13502
+ protectedDialogIds = [],
13503
+ maxCachedInactiveBuckets = MAX_CACHED_INACTIVE_DIALOG_BUCKETS,
13504
+ isDialogProtected
13505
+ } = input;
13506
+ const cap = Math.max(0, Math.floor(maxCachedInactiveBuckets));
13507
+ const protectedSet = /* @__PURE__ */ new Set([GLOBAL_MESSAGE_DIALOG_ID]);
13508
+ if (typeof activeDialogId2 === "string" && activeDialogId2.length > 0) {
13509
+ protectedSet.add(activeDialogId2);
13510
+ }
13511
+ for (const id of protectedDialogIds) {
13512
+ if (typeof id === "string" && id.length > 0) {
13513
+ protectedSet.add(id);
13514
+ }
13515
+ }
13516
+ const trackedSet = /* @__PURE__ */ new Set();
13517
+ const trackedOrdered = [];
13518
+ for (const id of lruOrder) {
13519
+ if (id !== GLOBAL_MESSAGE_DIALOG_ID && id in dialogStateById && !trackedSet.has(id)) {
13520
+ trackedSet.add(id);
13521
+ trackedOrdered.push(id);
13522
+ }
13523
+ }
13524
+ const orderedIds = [];
13525
+ for (const id of Object.keys(dialogStateById)) {
13526
+ if (id !== GLOBAL_MESSAGE_DIALOG_ID && !trackedSet.has(id)) {
13527
+ orderedIds.push(id);
13528
+ }
13529
+ }
13530
+ orderedIds.push(...trackedOrdered);
13531
+ const evictableIds = [];
13532
+ for (const dialogId of orderedIds) {
13533
+ if (protectedSet.has(dialogId)) continue;
13534
+ const bucket = dialogStateById[dialogId];
13535
+ if (!bucket) continue;
13536
+ const entities = bucket.msgs?.entities ?? {};
13537
+ const messages = Object.values(entities).filter(
13538
+ (msg) => Boolean(msg)
13539
+ );
13540
+ if (hasProtectedMessageInBucket(messages)) continue;
13541
+ if (isDialogProtected?.(dialogId, messages)) continue;
13542
+ evictableIds.push(dialogId);
13543
+ }
13544
+ const overflow = evictableIds.length - cap;
13545
+ if (overflow <= 0) {
13546
+ return [];
13547
+ }
13548
+ return evictableIds.slice(0, overflow);
13549
+ }
13550
+
13363
13551
  // packages/chat/messages/messageSlice.ts
13364
13552
  var OLDER_LOAD_LIMIT = 30;
13365
13553
  var createSliceWithThunks = buildCreateSlice({
@@ -13375,7 +13563,8 @@ var createEmptyMessageDialogState = () => ({
13375
13563
  var initialState = {
13376
13564
  dialogStateById: {
13377
13565
  [GLOBAL_MESSAGE_DIALOG_ID]: createEmptyMessageDialogState()
13378
- }
13566
+ },
13567
+ lruOrder: []
13379
13568
  };
13380
13569
  var captureUnderstandingFromCompletedUiTurn2 = async (input) => captureUnderstandingFromCompletedUiTurn({
13381
13570
  ...input,
@@ -13392,8 +13581,38 @@ var ensureMessageDialogState = (state, dialogId, dialogKey) => {
13392
13581
  if (!state.dialogStateById[resolvedDialogId]) {
13393
13582
  state.dialogStateById[resolvedDialogId] = createEmptyMessageDialogState();
13394
13583
  }
13584
+ state.lruOrder = touchDialogBucketLru(
13585
+ state.lruOrder,
13586
+ resolvedDialogId,
13587
+ state.dialogStateById
13588
+ );
13395
13589
  return state.dialogStateById[resolvedDialogId];
13396
13590
  };
13591
+ var evictColdBucketsIfNeeded = (state, protectedDialogId) => {
13592
+ if (!state.dialogStateById) return;
13593
+ const evictedIds = planColdMessageBucketEviction({
13594
+ dialogStateById: state.dialogStateById,
13595
+ lruOrder: state.lruOrder,
13596
+ activeDialogId: getActiveMessageDialogId(),
13597
+ protectedDialogIds: protectedDialogId ? [protectedDialogId] : void 0,
13598
+ maxCachedInactiveBuckets: MAX_CACHED_INACTIVE_DIALOG_BUCKETS,
13599
+ isDialogProtected: (dialogId) => {
13600
+ if (getHasStreamingMessage(dialogId)) return true;
13601
+ if (getCanonicalHandoffTransientId(dialogId) !== null) return true;
13602
+ const session = getMessageSession(dialogId);
13603
+ return session.isLoadingInitial || session.isLoadingOlder;
13604
+ }
13605
+ });
13606
+ if (evictedIds.length === 0) return;
13607
+ const evictedSet = new Set(evictedIds);
13608
+ for (const evictedId of evictedIds) {
13609
+ delete state.dialogStateById[evictedId];
13610
+ deleteMessageSession(evictedId);
13611
+ }
13612
+ if (state.lruOrder) {
13613
+ state.lruOrder = state.lruOrder.filter((id) => !evictedSet.has(id));
13614
+ }
13615
+ };
13397
13616
  var getMessageDialogState = (state, dialogId, dialogKey) => {
13398
13617
  const dialogStateById = state.dialogStateById ?? {};
13399
13618
  const resolvedDialogId = resolveMessageDialogId(state, dialogId, dialogKey);
@@ -13500,6 +13719,7 @@ var messageSlice = createSliceWithThunks({
13500
13719
  state.dialogStateById = {
13501
13720
  [GLOBAL_MESSAGE_DIALOG_ID]: createEmptyMessageDialogState()
13502
13721
  };
13722
+ state.lruOrder = [];
13503
13723
  resetAllMessageSessions();
13504
13724
  return;
13505
13725
  }
@@ -13509,6 +13729,9 @@ var messageSlice = createSliceWithThunks({
13509
13729
  action2.payload?.dialogKey
13510
13730
  );
13511
13731
  delete state.dialogStateById[dialogId];
13732
+ if (state.lruOrder) {
13733
+ state.lruOrder = state.lruOrder.filter((id) => id !== dialogId);
13734
+ }
13512
13735
  deleteMessageSession(dialogId);
13513
13736
  if (dialogId === getActiveMessageDialogId()) {
13514
13737
  setActiveMessageDialogId(null);
@@ -14017,6 +14240,7 @@ var messageSlice = createSliceWithThunks({
14017
14240
  } else {
14018
14241
  setAllMessages(dialogState, action2.payload);
14019
14242
  }
14243
+ evictColdBucketsIfNeeded(state, dialogId);
14020
14244
  },
14021
14245
  rejected: (state, action2) => {
14022
14246
  const dialogId = action2.meta.arg.dialogId;
@@ -14267,12 +14491,17 @@ var messageSlice = createSliceWithThunks({
14267
14491
  }
14268
14492
  captureUnderstandingFromCompletedUiTurn2({
14269
14493
  state: getState(),
14494
+ signal,
14270
14495
  agentKey: agentConfig?.dbKey,
14271
14496
  dialogId,
14272
14497
  dialogKey,
14273
14498
  spaceId: payload.spaceId,
14274
14499
  assistantText: textContent,
14275
14500
  toolCalls
14501
+ }).then((result) => {
14502
+ if (result.status === "failed" || result.status === "native" && (result.capture === "failed" || result.formation === "failed" || result.formation === "deferred")) {
14503
+ console.warn("Understanding memory capture incomplete:", result);
14504
+ }
14276
14505
  }).catch(
14277
14506
  (err) => console.error("Understanding memory capture failed:", err)
14278
14507
  );
@@ -14304,6 +14533,7 @@ var messageSlice = createSliceWithThunks({
14304
14533
  imageGenerationState: void 0
14305
14534
  });
14306
14535
  setStreamingMessageId(payload.dialogId, null);
14536
+ evictColdBucketsIfNeeded(state, payload.dialogId);
14307
14537
  },
14308
14538
  rejected: (state, action2) => {
14309
14539
  const arg = action2.meta?.arg;
@@ -14426,7 +14656,7 @@ var messageSlice = createSliceWithThunks({
14426
14656
  runtimeOptions: args.runtimeOptions
14427
14657
  });
14428
14658
  if (agentKeyToUse) {
14429
- const { streamAgentChatTurn } = await import("./agentSlice-5F5U5X2U.js");
14659
+ const { streamAgentChatTurn } = await import("./agentSlice-5VTAFG43.js");
14430
14660
  await dispatch(
14431
14661
  streamAgentChatTurn({
14432
14662
  agentKey: agentKeyToUse,
@@ -15497,7 +15727,7 @@ var deleteOwnedDialogAttachments = async (args) => {
15497
15727
  metadataReadFailures
15498
15728
  });
15499
15729
  if (!plan.deleteCandidates.length) return plan;
15500
- const { deleteFileAction } = await import("./deleteFile-Q3YDB4ML.js");
15730
+ const { deleteFileAction } = await import("./deleteFile-GD62MPZW.js");
15501
15731
  for (const candidate of plan.deleteCandidates) {
15502
15732
  if (candidate.fileDbKey) {
15503
15733
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -15559,7 +15789,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15559
15789
  }
15560
15790
  if (isCurrentDialog) {
15561
15791
  await thunkApi.dispatch(resetMsgs());
15562
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-FQ6WOKWJ.js");
15792
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-XAUKSWZ4.js");
15563
15793
  dispatch(clearPendingAttachments2());
15564
15794
  }
15565
15795
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -15567,39 +15797,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15567
15797
 
15568
15798
  // packages/chat/dialog/dialogSlice.ts
15569
15799
  var runCreateDialogAction = async (args, thunkApi) => {
15570
- const { createDialogAction } = await import("./createDialogAction-43QJIQDH.js");
15800
+ const { createDialogAction } = await import("./createDialogAction-XYDQZETK.js");
15571
15801
  return createDialogAction(args, thunkApi);
15572
15802
  };
15573
15803
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15574
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-XMUWUDKQ.js");
15804
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-BGET7Q6K.js");
15575
15805
  return createAgentAutomationAction(args, thunkApi);
15576
15806
  };
15577
15807
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15578
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-D5NCA4FC.js");
15808
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-2L4CC4YO.js");
15579
15809
  return updateDialogTitleAction(args, thunkApi);
15580
15810
  };
15581
15811
  var runAddDialogAgentAction = async (args, thunkApi) => {
15582
- const { addDialogAgentAction } = await import("./addDialogAgentAction-RSDZDASD.js");
15812
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-BX7B47HF.js");
15583
15813
  return addDialogAgentAction(args, thunkApi);
15584
15814
  };
15585
15815
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15586
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-U3F2MNAY.js");
15816
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-QZCCVK2G.js");
15587
15817
  return removeDialogAgentAction(args, thunkApi);
15588
15818
  };
15589
15819
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15590
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-6FHAHZBB.js");
15820
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-DOUIPR66.js");
15591
15821
  return setPrimaryDialogAgentAction(args, thunkApi);
15592
15822
  };
15593
15823
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
15594
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-UOFIAGPL.js");
15824
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-7USK3DAP.js");
15595
15825
  return switchDialogAgentAction(args, thunkApi);
15596
15826
  };
15597
15827
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15598
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-G3WSJ7EM.js");
15828
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-PDPTYSEW.js");
15599
15829
  return setDialogExtraReferencesAction(args, thunkApi);
15600
15830
  };
15601
15831
  var runHandleSendMessageAction = async (args, thunkApi) => {
15602
- const { handleSendMessageAction } = await import("./handleSendMessageAction-I5J7QR7K.js");
15832
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-ARUU6CNF.js");
15603
15833
  return handleSendMessageAction(args, thunkApi);
15604
15834
  };
15605
15835
  function clearDialogState() {
@@ -15612,7 +15842,7 @@ var createPageAndAddReference = createAsyncThunk(
15612
15842
  async (payload, { dispatch, getState, rejectWithValue }) => {
15613
15843
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15614
15844
  try {
15615
- const { createDocState } = await import("./docStore-BZ2O7WLF.js");
15845
+ const { createDocState } = await import("./docStore-ZZT2BEBU.js");
15616
15846
  const pageKey = await createDocState(
15617
15847
  { slateData, title },
15618
15848
  { dispatch, getState }
@@ -15777,18 +16007,14 @@ var selectCurrentDialogTokens = createSelector(
15777
16007
  var selectTotalDialogTokens = selectCurrentDialogTokens;
15778
16008
 
15779
16009
  export {
15780
- isAgentRunStatusNormal,
15781
- isAgentRunStartFailureStatus,
15782
- uiAskChoiceFunctionSchema,
15783
- validateAskChoiceInput,
15784
- uiAskChoiceFunc,
15785
- parseUiAskChoiceContent,
15786
16010
  API_REPORTED_COST_MULTIPLIER,
15787
16011
  estimateMessagesTokens,
15788
16012
  historyTokensBeforeLatestAssistant,
15789
16013
  resolveOccupancy,
15790
16014
  resolveOccupancyWindow,
15791
16015
  resolveAgentContextWindow,
16016
+ isAgentRunStatusNormal,
16017
+ isAgentRunStartFailureStatus,
15792
16018
  normalizeRunCompletionShape,
15793
16019
  createTurnRequest,
15794
16020
  runtime_default,
@@ -15804,9 +16030,6 @@ export {
15804
16030
  toast,
15805
16031
  updateDialogSummaryAction,
15806
16032
  buildDatabaseFileContentUrl,
15807
- normalizeAppRouteId,
15808
- PERSONALIZATION_DIALOG_CATEGORY,
15809
- buildPersonalizationDialogPolicyContext,
15810
16033
  resolveDialogRuntimeAgentKey,
15811
16034
  resolveHandleSendMessageContext,
15812
16035
  estimateMissingUsage,