nolo-cli 0.258.0-alpha.1 → 0.260.0-alpha.1

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 (316) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-E2LL7FPO.js → _executeModel-EO6JFCOF.js} +97 -83
  3. package/accountResolver-NGICIMEE.js +1 -1
  4. package/{action-C6IQAKN4.js → action-WIA56QT4.js} +12 -10
  5. package/{addContentAction-53364YDW.js → addContentAction-OCMWZLYG.js} +14 -13
  6. package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-ER2NZ7BC.js} +20 -24
  7. package/{agentDeleteCommand-ORNRRKJO.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
  8. package/{agentEmailCommands-2ALVFOD5.js → agentEmailCommands-NXRWS7NS.js} +142 -126
  9. package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
  10. package/{agentListCommands-6I4NQPR4.js → agentListCommands-PFXGZZ3Y.js} +87 -68
  11. package/{agentMachineCommands-PNHTIJ6A.js → agentMachineCommands-2Q55CSL4.js} +68 -59
  12. package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-EUNS7Y2Z.js} +10 -7
  13. package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-S2VMPSWL.js} +9 -6
  14. package/agentRecordCommands-FUFI526H.js +210 -0
  15. package/agentRun-ZNMUPDHF.js +250 -0
  16. package/agentRunCommand-ISVQ2UYC.js +248 -0
  17. package/{agentRunControl-3TIVJ3SR.js → agentRunControl-NEK44LDM.js} +19 -12
  18. package/{agentRuntimeLocal-3MAEFYSB.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
  19. package/{agentSlice-KOQXUPKT.js → agentSlice-4ZJJJN4M.js} +15 -18
  20. package/appConfigCommands-MPHS6FHD.js +417 -0
  21. package/{appDeleteCommands-FEPN62UR.js → appDeleteCommands-W26WGENW.js} +68 -58
  22. package/{appDeployCommands-DPFEWFYZ.js → appDeployCommands-ER7IOF5E.js} +74 -59
  23. package/{appDeployStatusCommands-LQ5X5KVX.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
  24. package/{appGetCommands-W3JBBIF7.js → appGetCommands-P6GXJNUD.js} +74 -58
  25. package/{appListCommands-LUHZS7JU.js → appListCommands-ACA2IZZM.js} +74 -58
  26. package/appMigrateCommands-OGF4E2W6.js +230 -0
  27. package/appSourceCommands-GAHVBRUM.js +279 -0
  28. package/{authCommand-HKSXJT3J.js → authCommand-PXE7NZTQ.js} +26 -40
  29. package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
  30. package/{builtinSkillRegistry-FVEEO4U2.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
  31. package/{chromeOpsCommands-4UIKH26F.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
  32. package/{chunk-KO5PFS74.js → chunk-2CKFROQS.js} +2454 -1115
  33. package/{chunk-6N4IKMTH.js → chunk-2I4R6ZRV.js} +40 -26
  34. package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
  35. package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
  36. package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
  37. package/chunk-35JIFLIG.js +30 -0
  38. package/{chunk-ZYPXOQS2.js → chunk-3EPED3UO.js} +1 -1
  39. package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
  40. package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
  41. package/{chunk-HPDLPEUG.js → chunk-42JZNSAY.js} +267 -234
  42. package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
  43. package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
  44. package/chunk-4IVMDQBA.js +261 -0
  45. package/chunk-4Y6CZ2N4.js +82 -0
  46. package/{chunk-OKAXQFON.js → chunk-52BNL6GP.js} +4 -4
  47. package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
  48. package/{chunk-QGFLVQ6E.js → chunk-6KUTNAPU.js} +4 -14
  49. package/{chunk-MNFUKRRU.js → chunk-6XAAKRJB.js} +7 -7
  50. package/{chunk-P27E22MA.js → chunk-6Z6DGDPI.js} +1 -1
  51. package/chunk-72VWN4VK.js +51 -0
  52. package/{chunk-2RZBFJEG.js → chunk-75FZ2Z7C.js} +16027 -17392
  53. package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
  54. package/{chunk-AKBNCTPY.js → chunk-76K4GTY5.js} +1 -1
  55. package/{chunk-ZMJMHXYX.js → chunk-7HUCUD2I.js} +3 -3
  56. package/chunk-7LR2IFUH.js +100 -0
  57. package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
  58. package/{chunk-Y2TCTNUD.js → chunk-7QO6YSA4.js} +4 -4
  59. package/{chunk-TF427WGH.js → chunk-7RYH7YIY.js} +19 -27
  60. package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
  61. package/chunk-AMNZPQCY.js +635 -0
  62. package/chunk-AMTF6FJD.js +356 -0
  63. package/{chunk-MUDMYJCM.js → chunk-AQNWWJLH.js} +2 -56
  64. package/{chunk-WSLL7VV4.js → chunk-B4NA5UJR.js} +9 -9
  65. package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
  66. package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
  67. package/{chunk-46FETNLF.js → chunk-BTIFQBYW.js} +7 -6
  68. package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
  69. package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
  70. package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
  71. package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
  72. package/{chunk-JAGD4PSH.js → chunk-CRGPRAJ4.js} +46 -42
  73. package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
  74. package/{chunk-BD22OFDQ.js → chunk-CZHIOBBK.js} +8 -3
  75. package/chunk-D3ONA3FP.js +762 -0
  76. package/chunk-D3SAQ6T7.js +1697 -0
  77. package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
  78. package/{chunk-KQHEGELM.js → chunk-DEAII55O.js} +16 -6
  79. package/{chunk-J55F3IEZ.js → chunk-DKJQEFNG.js} +1 -1
  80. package/chunk-DLXL4NSL.js +1179 -0
  81. package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
  82. package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
  83. package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
  84. package/chunk-EJHLDJWZ.js +58 -0
  85. package/{chunk-E4HBZDV6.js → chunk-EMFZXJTN.js} +15 -47
  86. package/chunk-ER6NTALN.js +34 -0
  87. package/chunk-EUHMI5KG.js +101 -0
  88. package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
  89. package/{chunk-EXD7S7QW.js → chunk-FF5ZRKW7.js} +12 -7
  90. package/{chunk-7PTWFSZZ.js → chunk-FGD4NMTP.js} +4 -4
  91. package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
  92. package/chunk-FI4DPLR7.js +902 -0
  93. package/chunk-FKVLQNGJ.js +25 -0
  94. package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
  95. package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
  96. package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
  97. package/{chunk-IZHENZQ5.js → chunk-G5JGA5YM.js} +180 -31
  98. package/{chunk-7EUJ65PF.js → chunk-GMBWWBSJ.js} +782 -449
  99. package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
  100. package/{chunk-APXC3SQO.js → chunk-GZ4I5EMM.js} +9 -9
  101. package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
  102. package/chunk-HJTI7RZV.js +94 -0
  103. package/{chunk-JGVWHUYK.js → chunk-HPIY372N.js} +7 -7
  104. package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
  105. package/{chunk-HDKMVYNJ.js → chunk-I3NWAILT.js} +6 -4
  106. package/{chunk-MD7O2NN2.js → chunk-IM7HCFB4.js} +313 -275
  107. package/{chunk-DWES4SXY.js → chunk-INN2PBW7.js} +1 -1
  108. package/chunk-IV6VUVLJ.js +88 -0
  109. package/chunk-J42X32PV.js +472 -0
  110. package/{chunk-V6S5OZSP.js → chunk-JHQNWV2C.js} +4441 -2569
  111. package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
  112. package/{chunk-BIDSIRTS.js → chunk-JUNYPVL6.js} +10 -16
  113. package/chunk-JVEKCQAP.js +222 -0
  114. package/{chunk-JW6OURKM.js → chunk-KAHYBAEN.js} +215 -473
  115. package/chunk-KDDXC2IH.js +148 -0
  116. package/chunk-KGKTN2NX.js +25 -0
  117. package/chunk-KGWE224L.js +246 -0
  118. package/chunk-L3UFGEDU.js +17157 -0
  119. package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
  120. package/{chunk-DCTQJDDQ.js → chunk-LIH7WSX5.js} +23 -379
  121. package/chunk-LJOPY4TL.js +443 -0
  122. package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
  123. package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
  124. package/chunk-LXP53WGF.js +168 -0
  125. package/chunk-MDAYRIP7.js +1889 -0
  126. package/chunk-MRACVEPZ.js +7 -0
  127. package/chunk-NHLLXINQ.js +8 -0
  128. package/{chunk-VQR2ACSC.js → chunk-NTBTVKKB.js} +17 -25
  129. package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
  130. package/{chunk-APQBEIOQ.js → chunk-P4XAHM4B.js} +1 -1
  131. package/chunk-PL5RKESU.js +40 -0
  132. package/{chunk-U2H426FE.js → chunk-PQ3QZMJK.js} +20 -4
  133. package/chunk-Q5FJJ6XI.js +103 -0
  134. package/{createAgentAutomationAction-HEZ3G5L4.js → chunk-QKM55LP2.js} +3 -160
  135. package/{chunk-SIHOY5YI.js → chunk-QZCLCAYC.js} +170 -164
  136. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  137. package/{chunk-JLZJL3WC.js → chunk-RDZ5OIAT.js} +370 -39
  138. package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
  139. package/chunk-RF576RYE.js +117 -0
  140. package/chunk-RI7SXDJW.js +1317 -0
  141. package/{chunk-JOJH3KWV.js → chunk-RIOAPUGV.js} +242 -25
  142. package/{chunk-7B55IVLF.js → chunk-RL6H2A2Z.js} +2561 -4059
  143. package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
  144. package/{chunk-BB76X6O4.js → chunk-RWXHGPWJ.js} +1 -1
  145. package/chunk-S7BF2OGX.js +432 -0
  146. package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
  147. package/{chunk-PNBQ5JTA.js → chunk-SGEBRBF3.js} +7 -4
  148. package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
  149. package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
  150. package/{chunk-LJ6WIQZO.js → chunk-SX6PDLBZ.js} +279 -149
  151. package/{chunk-6VNBJ7GI.js → chunk-T4WU747C.js} +5 -5
  152. package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
  153. package/{chunk-KO5GO2BC.js → chunk-TXMFSGRY.js} +1 -1
  154. package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
  155. package/{chunk-CVDJUPBN.js → chunk-UOLGGEEC.js} +774 -119
  156. package/{chunk-ADUCBH4M.js → chunk-USFG4EWQ.js} +51 -42
  157. package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
  158. package/{chunk-ONTHDYFU.js → chunk-VDC3BW24.js} +24 -10
  159. package/chunk-VH356OQ3.js +425 -0
  160. package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
  161. package/{chunk-3GGVFHWI.js → chunk-VPAO5WQX.js} +17 -14
  162. package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
  163. package/{chunk-C63KMRJE.js → chunk-W2Z5E2R7.js} +126 -698
  164. package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
  165. package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
  166. package/chunk-WLJNHFEB.js +1710 -0
  167. package/chunk-WMBJDXMY.js +408 -0
  168. package/chunk-WSQLCWLQ.js +201 -0
  169. package/{chunk-YN23INFZ.js → chunk-WXD6Y7DW.js} +23 -2
  170. package/{chunk-RQKTCHQM.js → chunk-WY6DMHMG.js} +1 -1
  171. package/{chunk-MLK3FEXG.js → chunk-XJW6SLBZ.js} +3 -3
  172. package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
  173. package/chunk-XT6C2QZW.js +46 -0
  174. package/{chunk-NRUYSNSZ.js → chunk-Y7THFNVJ.js} +9 -9
  175. package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
  176. package/{chunk-RD3QLZQV.js → chunk-YM5XULB2.js} +324 -2
  177. package/{chunk-BD5YJJLJ.js → chunk-YNP3ITPU.js} +19 -12
  178. package/{chunk-U35UUM5K.js → chunk-YOUSQIIK.js} +1 -1
  179. package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
  180. package/{chunk-Z3JZ2R5F.js → chunk-YU235GGN.js} +25 -8
  181. package/chunk-YWEZSBLL.js +790 -0
  182. package/chunk-Z3KTXWWB.js +76 -0
  183. package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
  184. package/chunk-ZD7OULYZ.js +368 -0
  185. package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
  186. package/{chunk-HQUGB2HM.js → chunk-ZTCMXPIS.js} +62 -50
  187. package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-KMXS7JP5.js} +20 -14
  188. package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
  189. package/cliAuthorityBrokerProcess-DCCUT4YQ.js +34 -0
  190. package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-YDGDHIEE.js} +5 -2
  191. package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
  192. package/cliLocalAgentRecordReader-X2YHEBWI.js +113 -0
  193. package/cloudAutomationCommands-C6Q3BFRB.js +310 -0
  194. package/{commandRegistry-QKOJ5FIC.js → commandRegistry-TYYYTW5E.js} +263 -120
  195. package/{contentThunks-ZDBDDZP3.js → contentThunks-E6BJ5YSX.js} +45 -43
  196. package/{cooldownCommands-Y4ZQQ35D.js → cooldownCommands-FPAFS7XG.js} +1 -1
  197. package/createAgentAutomationAction-L3NLCIIW.js +172 -0
  198. package/{createDialogAction-DK62W5VA.js → createDialogAction-QSWKRPWQ.js} +46 -42
  199. package/{createPageAction-W6NXHVKO.js → createPageAction-ZVVUT4CZ.js} +49 -45
  200. package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
  201. package/{dbSlice-RWPSVHBC.js → dbSlice-SEVKNA7A.js} +21 -16
  202. package/deleteDbKey-43MTK2DI.js +86 -0
  203. package/{dialogCommands-Z24IDINY.js → dialogCommands-UVMTIFSA.js} +80 -66
  204. package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
  205. package/{dialogNotifyCommand-IASQGEMW.js → dialogNotifyCommand-LMWF7EQI.js} +22 -14
  206. package/dialogPortabilityCommands-PAMLEBST.js +3036 -0
  207. package/{dialogSlice-62GISS77.js → dialogSlice-VHPXENDZ.js} +43 -42
  208. package/{dialogTraceCommand-FDINAIZ6.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
  209. package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
  210. package/{docCreateCommands-SXA4TMGJ.js → docCreateCommands-H4RLIUNX.js} +68 -59
  211. package/{docDeleteCommands-ELXSZK3F.js → docDeleteCommands-OVAKCBMT.js} +68 -59
  212. package/{docReadCommands-DFLAQPI4.js → docReadCommands-KFISIUVA.js} +67 -58
  213. package/{docStore-UWF2PMCB.js → docStore-X7BEA735.js} +16 -17
  214. package/{docUpdateCommands-KB6M5HUH.js → docUpdateCommands-VOEER36L.js} +68 -59
  215. package/ebookDownloaderAgentCommand-2DHPGEOQ.js +674 -0
  216. package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
  217. package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
  218. package/{handleSendMessageAction-ZV6OQPQG.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
  219. package/{hostCredentialCreate-3IA5IJFG.js → hostCredentialCreate-PJAIKZQP.js} +138 -122
  220. package/index.js +35 -21
  221. package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
  222. package/localAutomationCommands-UU66LOWB.js +198 -0
  223. package/localAutomationRuntime-SW4R42SZ.js +60 -0
  224. package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
  225. package/{localRuntimeAdapter-SSG5ORLZ.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
  226. package/localRuntimeAuthority-3YDFZD3L.js +44 -0
  227. package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
  228. package/{machineCommands-4WKJ3TLO.js → machineCommands-JFYED66N.js} +251 -357
  229. package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
  230. package/machineWsRunDispatch-CZUV2FXE.js +227 -0
  231. package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-HLU72QME.js} +40 -22
  232. package/mcpLocalManageCommands-OHHU6F5C.js +212 -0
  233. package/{memberThunks-43B7UYC5.js → memberThunks-FJW4GPM5.js} +102 -22
  234. package/{memoryCommands-BC6REPQB.js → memoryCommands-2RLHDMU2.js} +25 -34
  235. package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
  236. package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
  237. package/package.json +3 -3
  238. package/parityCommands-7EWR34P3.js +613 -0
  239. package/{projectArchive-JN43WW4E.js → projectArchive-JIVRMXVV.js} +49 -45
  240. package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
  241. package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
  242. package/{read-KG6INYUT.js → read-6YR57D6V.js} +11 -10
  243. package/{readDocTool-N3GA52JR.js → readDocTool-NKOGL2MW.js} +5 -1
  244. package/{readlineWorkspace-D6EUSB2Q.js → readlineWorkspace-V26AN2FL.js} +926 -572
  245. package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
  246. package/remove-BF33RCTH.js +32 -0
  247. package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-GWHBWF4W.js} +22 -26
  248. package/{runAgentClientLoop-FEZTSUSJ.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
  249. package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
  250. package/{secretCommands-53NZFD4T.js → secretCommands-CSTQYB6T.js} +2 -2
  251. package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-RL6FGO7T.js} +16 -17
  252. package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-XJASBB3K.js} +23 -27
  253. package/{settingThunks-DVKG4X4S.js → settingThunks-ZT7ZYXXL.js} +170 -497
  254. package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
  255. package/{spaceCommands-4ACQQNZL.js → spaceCommands-65WQHVOI.js} +194 -90
  256. package/spacePruneCommand-PTMRUWYJ.js +233 -0
  257. package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
  258. package/{streamAgentChatTurn-I425SVYJ.js → streamAgentChatTurn-B5NICHZW.js} +225 -137
  259. package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-X6DFOIAX.js} +19 -23
  260. package/{tableCommands-EFA754RE.js → tableCommands-6E77VD73.js} +28 -49
  261. package/{toolApiClient-N5PYW2R3.js → toolApiClient-GTTWEV6P.js} +15 -4
  262. package/{tools-WBPFTSMK.js → tools-UMCPIQX6.js} +73 -63
  263. package/{tuiRestart-VN5F4GYU.js → tuiRestart-O7UDLNQU.js} +20 -13
  264. package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
  265. package/{updateCommands-VQEBBIGO.js → updateCommands-DXDIAQFS.js} +12 -7
  266. package/{updateDialogTitleAction-VB5DTVXV.js → updateDialogTitleAction-HZLKWVKM.js} +57 -58
  267. package/{usageCommand-WI6SQOPB.js → usageCommand-WYLNBDHB.js} +6 -8
  268. package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-AEUPY2PE.js} +11 -15
  269. package/{windowsSelfUpdate-ZEZKGX4M.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
  270. package/workContext-ZAW6VXT7.js +18 -0
  271. package/workContextQueryProjection-CACY5VFE.js +23 -0
  272. package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
  273. package/agentFavoriteCommands-7LOP3HUD.js +0 -186
  274. package/agentRecordCommands-BEZPBYBM.js +0 -194
  275. package/agentRunCommand-2T72V5KY.js +0 -232
  276. package/chunk-2MBTWINN.js +0 -89
  277. package/chunk-523DITKR.js +0 -32
  278. package/chunk-BUDVRYES.js +0 -2213
  279. package/chunk-BXGU6274.js +0 -862
  280. package/chunk-BZMDWGQQ.js +0 -47
  281. package/chunk-GAHJLSDO.js +0 -107
  282. package/chunk-GYX6XTAI.js +0 -84
  283. package/chunk-HNUWUO75.js +0 -93
  284. package/chunk-HSBHS6KT.js +0 -33401
  285. package/chunk-KG27JIG4.js +0 -136
  286. package/chunk-OB4FBZXJ.js +0 -364
  287. package/chunk-OKH74FML.js +0 -3746
  288. package/chunk-OLZBQWZU.js +0 -6
  289. package/chunk-OOV5JN25.js +0 -1317
  290. package/chunk-OQFOE4SJ.js +0 -405
  291. package/chunk-PXYBUFDB.js +0 -53
  292. package/chunk-R3FZHW4Q.js +0 -103
  293. package/chunk-R3MV2GII.js +0 -106
  294. package/chunk-SCAC3NM5.js +0 -11751
  295. package/chunk-SR4FE5VD.js +0 -9
  296. package/chunk-SYTHYBMI.js +0 -3558
  297. package/chunk-UKZX3NHN.js +0 -48
  298. package/chunk-UVLYNWIE.js +0 -74
  299. package/chunk-WFEWP352.js +0 -861
  300. package/chunk-X4O7FJF5.js +0 -160
  301. package/chunk-YJPK35HB.js +0 -175
  302. package/chunk-YNIYE47Z.js +0 -105
  303. package/chunk-Z4PCXPUE.js +0 -127
  304. package/chunk-ZTHAJU3O.js +0 -2537
  305. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
  306. package/cliLocalAgentRecordReader-Q6677YID.js +0 -104
  307. package/deleteFile-ECU6FU5C.js +0 -55
  308. package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
  309. package/machineWsRunDispatch-7PROH7E7.js +0 -209
  310. package/markdownToSlate-PXYAIBVL.js +0 -8
  311. package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
  312. package/webapi-QVV65DQF.js +0 -2487
  313. package/workContext-Y3ADAPZU.js +0 -14
  314. package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
  315. package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
  316. package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
@@ -7,133 +7,143 @@ import {
7
7
  } from "./chunk-BMQ2MJUK.js";
8
8
  import {
9
9
  buildForegroundTurnAdmissionFetchInit,
10
- clearGateTurn,
11
10
  consumeAgentRunStream,
12
- getSnapshot,
13
11
  mergeAgentToolsWithRuntime,
14
12
  projectDesktopToolUiContent,
15
- pushGate,
16
- resolveTurnToolContext,
17
- targetForRunKind
18
- } from "./chunk-SIHOY5YI.js";
13
+ resolveTurnToolContext
14
+ } from "./chunk-QZCLCAYC.js";
19
15
  import {
20
16
  resolveUserSkillRuntime
21
- } from "./chunk-ZMJMHXYX.js";
17
+ } from "./chunk-7HUCUD2I.js";
22
18
  import {
23
19
  performServerProxyFetchWithRetry
24
- } from "./chunk-APXC3SQO.js";
20
+ } from "./chunk-GZ4I5EMM.js";
25
21
  import {
22
+ ZOHO_MAIL_TOOL_NAMES,
23
+ clearGateTurn,
26
24
  createSSEParser,
25
+ getSnapshot,
27
26
  loadSkillFunc,
27
+ pushGate,
28
+ targetForRunKind,
28
29
  waitForAbortableDelay
29
- } from "./chunk-WFEWP352.js";
30
+ } from "./chunk-WLJNHFEB.js";
30
31
  import "./chunk-NF64D32W.js";
31
- import "./chunk-R3FZHW4Q.js";
32
- import "./chunk-BD5YJJLJ.js";
32
+ import {
33
+ getUserPreferencesStore
34
+ } from "./chunk-LJOPY4TL.js";
35
+ import "./chunk-VKM7DOYB.js";
36
+ import "./chunk-YNP3ITPU.js";
37
+ import "./chunk-WX266G2C.js";
38
+ import "./chunk-AGIM7IMJ.js";
33
39
  import "./chunk-VF4K2QE6.js";
34
40
  import {
35
41
  DESKTOP_FOLDER_PROJECTS_KEY,
36
42
  readDesktopFolderProjects,
37
43
  readDialogProjectId
38
44
  } from "./chunk-RGQ4UUWZ.js";
39
- import "./chunk-LLUBUHNT.js";
40
- import "./chunk-U6QNVOR5.js";
41
- import "./chunk-AGIM7IMJ.js";
42
- import "./chunk-LJ6WIQZO.js";
45
+ import "./chunk-UYZOBSSO.js";
46
+ import "./chunk-63W5N6P3.js";
47
+ import "./chunk-SX6PDLBZ.js";
43
48
  import {
44
49
  admitPendingUserMessages,
45
- clearForegroundTurnSettledVisible,
50
+ clearHistoryErrorAfterSuccessfulSend,
46
51
  initMsgs,
47
- markForegroundTurnSettledVisible,
48
52
  messageStreamEnd,
49
53
  messageStreaming,
50
54
  prepareAndPersistUserMessage,
51
- protectTransientForCanonicalHandoff,
52
- releaseTransientCanonicalHandoff,
53
55
  removeTransientMessage,
56
+ resolveDialogAgentMode,
54
57
  resolveHandleSendMessageContext,
55
58
  selectAllMsgs,
56
59
  selectPendingUserMessages,
60
+ sessionForState,
57
61
  setMessages,
58
- setStreamingMessageId,
59
62
  toolResultNeedsUserConfirmation,
60
63
  updateToolMessage
61
- } from "./chunk-7B55IVLF.js";
62
- import "./chunk-BUDVRYES.js";
64
+ } from "./chunk-RL6H2A2Z.js";
65
+ import "./chunk-KDDXC2IH.js";
63
66
  import "./chunk-TZXPT53C.js";
64
- import "./chunk-523DITKR.js";
67
+ import "./chunk-6QDYSCPW.js";
68
+ import "./chunk-ER6NTALN.js";
65
69
  import {
66
70
  streamAgentChatTurn
67
- } from "./chunk-MD7O2NN2.js";
68
- import "./chunk-YN23INFZ.js";
71
+ } from "./chunk-IM7HCFB4.js";
72
+ import "./chunk-WXD6Y7DW.js";
69
73
  import "./chunk-BYXBJQAS.js";
70
- import "./chunk-6VEO7Z3Y.js";
71
- import "./chunk-5RGU3J7P.js";
72
- import "./chunk-UVLYNWIE.js";
73
- import "./chunk-YNIYE47Z.js";
74
+ import "./chunk-AMNZPQCY.js";
75
+ import "./chunk-SD4MBKZ7.js";
76
+ import "./chunk-REAE2SZK.js";
77
+ import "./chunk-PL5RKESU.js";
74
78
  import {
75
79
  selectCurrentServer
76
- } from "./chunk-BZMDWGQQ.js";
77
- import "./chunk-46FETNLF.js";
80
+ } from "./chunk-FKVLQNGJ.js";
81
+ import "./chunk-BTIFQBYW.js";
78
82
  import "./chunk-UAD2WT54.js";
79
83
  import {
80
84
  readAndWait,
81
85
  selectById
82
- } from "./chunk-ADYWV732.js";
86
+ } from "./chunk-76B6YUQS.js";
83
87
  import "./chunk-3PVYUPXK.js";
84
- import "./chunk-WS36XPJD.js";
88
+ import "./chunk-XQFDCRG3.js";
89
+ import "./chunk-GYFKKTDI.js";
90
+ import {
91
+ isDeviceLocalDbKey
92
+ } from "./chunk-42JZNSAY.js";
93
+ import "./chunk-AMTF6FJD.js";
85
94
  import "./chunk-HXER7YJF.js";
86
- import "./chunk-DXWGFL2Z.js";
95
+ import "./chunk-YY7IGJMN.js";
87
96
  import "./chunk-3L2WKC3W.js";
88
- import "./chunk-KQHEGELM.js";
97
+ import "./chunk-UEILX4EV.js";
98
+ import {
99
+ resolveToolBaseUrl
100
+ } from "./chunk-DEAII55O.js";
89
101
  import "./chunk-QYPE3TS3.js";
90
102
  import {
91
103
  addActiveController,
92
104
  getActiveDialogKey,
93
105
  removeActiveController
94
- } from "./chunk-U35UUM5K.js";
95
- import "./chunk-RD3QLZQV.js";
96
- import "./chunk-7BIJFGKS.js";
97
- import "./chunk-HPDLPEUG.js";
98
- import "./chunk-ZTHAJU3O.js";
106
+ } from "./chunk-YOUSQIIK.js";
107
+ import {
108
+ selectIdentityToken,
109
+ selectIdentityUserId
110
+ } from "./chunk-YM5XULB2.js";
99
111
  import {
100
112
  getIsDesktopApp
101
- } from "./chunk-HDKMVYNJ.js";
102
- import "./chunk-YJPK35HB.js";
103
- import "./chunk-UEILX4EV.js";
113
+ } from "./chunk-I3NWAILT.js";
114
+ import "./chunk-MRACVEPZ.js";
104
115
  import "./chunk-QQ56R7KS.js";
105
116
  import {
106
- selectIdentityToken,
107
- selectIdentityUserId
108
- } from "./chunk-PXYBUFDB.js";
109
- import "./chunk-CEKRIR22.js";
117
+ DIALOG_TURN_HOLDER_KINDS,
118
+ isDialogTurnRecord
119
+ } from "./chunk-EUHMI5KG.js";
120
+ import "./chunk-SU4NCTW4.js";
110
121
  import {
111
122
  DURABLE_WEB_FOREGROUND_TOOL_NAMES,
112
123
  hasProvenDurableWebForegroundSemantics
113
- } from "./chunk-DMPZMYH4.js";
124
+ } from "./chunk-3R4AYHJR.js";
114
125
  import "./chunk-BYXBJQAS.js";
115
- import "./chunk-BZLGPM5B.js";
126
+ import "./chunk-RNLKWUVY.js";
116
127
  import {
117
128
  CONTEXT_OVERFLOW_ACTIONS,
118
129
  CONTEXT_TOO_LARGE_ACTIONS,
119
130
  extractErrorDiagnostics,
120
131
  isContextOverflowText
121
- } from "./chunk-TLE77UJ5.js";
132
+ } from "./chunk-2OROOEOQ.js";
122
133
  import {
123
134
  resolveAgentRequiredPackIds
124
- } from "./chunk-KO5GO2BC.js";
135
+ } from "./chunk-TXMFSGRY.js";
125
136
  import {
126
137
  MCP_TOOL_NAMES
127
- } from "./chunk-KXOPLLFP.js";
128
- import "./chunk-DNNPARJK.js";
129
- import "./chunk-7WHCIA5V.js";
138
+ } from "./chunk-CA7LGAHV.js";
139
+ import "./chunk-3QMN3T6L.js";
140
+ import "./chunk-G5IAIGGD.js";
130
141
  import "./chunk-5ZUL4CUO.js";
131
- import "./chunk-2FZVXOFX.js";
142
+ import "./chunk-CEIWXKHP.js";
132
143
  import "./chunk-H57T64RA.js";
133
- import "./chunk-UKZX3NHN.js";
134
- import "./chunk-SR4FE5VD.js";
144
+ import "./chunk-WMBJDXMY.js";
135
145
  import "./chunk-5MMAK75Q.js";
136
- import "./chunk-USGHJSGO.js";
146
+ import "./chunk-GX2MFKF3.js";
137
147
  import "./chunk-E6A5NHDH.js";
138
148
  import "./chunk-KX6YBIHG.js";
139
149
  import "./chunk-PSCNXBYA.js";
@@ -141,57 +151,80 @@ import "./chunk-DWLEOOGR.js";
141
151
  import {
142
152
  isAbortError
143
153
  } from "./chunk-7DPNBQSV.js";
144
- import "./chunk-OW765XBU.js";
145
154
  import "./chunk-2SXN7LAY.js";
155
+ import "./chunk-HNMXYYJR.js";
156
+ import {
157
+ isLevelNotFoundError
158
+ } from "./chunk-OW765XBU.js";
146
159
  import "./chunk-G7Y4GXTY.js";
147
160
  import "./chunk-6UBGXX2W.js";
148
161
  import "./chunk-BV3FLP2L.js";
162
+ import "./chunk-KAHYBAEN.js";
149
163
  import {
150
164
  expandEnabledPacks
151
- } from "./chunk-JW6OURKM.js";
165
+ } from "./chunk-J42X32PV.js";
152
166
  import "./chunk-EUGTFFO6.js";
153
167
  import "./chunk-AETZ7AD6.js";
154
- import "./chunk-5P3PPQVP.js";
168
+ import "./chunk-ZQAADXSF.js";
155
169
  import "./chunk-KHCLMKZZ.js";
156
- import "./chunk-SYTHYBMI.js";
170
+ import "./chunk-DLXL4NSL.js";
157
171
  import {
158
- createDialogMessageKeyAndId
172
+ createDialogMessageKeyAndId,
173
+ dialogMessageKey
159
174
  } from "./chunk-OJKUU3LP.js";
160
175
  import "./chunk-YZMNK53S.js";
176
+ import "./chunk-KGKTN2NX.js";
177
+ import "./chunk-BVYHE6QD.js";
161
178
  import {
162
179
  canonicalizeToolName
163
- } from "./chunk-YLAHYLDQ.js";
180
+ } from "./chunk-HJTI7RZV.js";
181
+ import "./chunk-ZC3CMUKU.js";
164
182
  import {
165
183
  BUILTIN_NOLO_AGENT_KEY
166
- } from "./chunk-RIWKZT7E.js";
184
+ } from "./chunk-YRPIUIEQ.js";
167
185
  import {
168
186
  extractCustomId
169
187
  } from "./chunk-M2EJHDJP.js";
170
188
  import "./chunk-I42VC5KR.js";
171
- import "./chunk-P4R5KXU7.js";
189
+ import "./chunk-3EUW3WEO.js";
190
+ import "./chunk-CW6LRDSF.js";
172
191
  import "./chunk-VIDPVFP3.js";
173
192
  import "./chunk-4JH2UMJR.js";
174
- import "./chunk-U6VC4MU4.js";
175
- import "./chunk-LCBAMY2M.js";
176
- import "./chunk-EJQE5HB7.js";
177
- import "./chunk-6SOWMEAY.js";
178
- import "./chunk-HNMXYYJR.js";
179
- import "./chunk-LVZVSLKO.js";
180
- import "./chunk-2JHGUL5K.js";
181
- import "./chunk-3EUW3WEO.js";
182
193
  import "./chunk-WWC7I6TA.js";
183
- import "./chunk-OKH74FML.js";
194
+ import "./chunk-U6VC4MU4.js";
195
+ import "./chunk-RI7SXDJW.js";
196
+ import "./chunk-7LR2IFUH.js";
184
197
  import "./chunk-JRTNUU5Z.js";
185
198
  import "./chunk-KUG52IAP.js";
199
+ import "./chunk-LCBAMY2M.js";
200
+ import "./chunk-IV6VUVLJ.js";
186
201
  import "./chunk-G3SUCT4W.js";
202
+ import "./chunk-FI4DPLR7.js";
187
203
  import "./chunk-4SN6J65J.js";
188
204
  import "./chunk-CF7PE763.js";
205
+ import "./chunk-DSBRIUX5.js";
206
+ import "./chunk-35JIFLIG.js";
207
+ import "./chunk-SR57FDTX.js";
208
+ import "./chunk-MDAYRIP7.js";
189
209
  import {
190
210
  PLATFORM_LLM_BUSY_USER_MESSAGE
191
- } from "./chunk-JPXACKSW.js";
211
+ } from "./chunk-G22P2J7O.js";
192
212
  import "./chunk-QSJ3HFEF.js";
193
213
  import "./chunk-U67V476Y.js";
194
214
 
215
+ // packages/ai/chat/foregroundSseResponse.ts
216
+ function readForegroundSseResponse(response) {
217
+ return {
218
+ ok: response.ok,
219
+ status: response.status,
220
+ text: () => response.text(),
221
+ reader: response.ok ? response.body?.getReader?.() : void 0
222
+ };
223
+ }
224
+
225
+ // packages/ai/chat/foregroundSseTransport.ts
226
+ var openForegroundSse = async (url, init) => readForegroundSseResponse(await fetch(url, init));
227
+
195
228
  // packages/ai/agent/foregroundTurnStageLog.ts
196
229
  var FOREGROUND_TURN_STAGE_LOG_PREFIX = "[foregroundTurn][latency]";
197
230
  var isStageLogEnabled = () => {
@@ -366,9 +399,15 @@ function hasSupportedDurableToolSurface(agent, suppliedSurface) {
366
399
  );
367
400
  }
368
401
  function shouldUseServerOwnedWebForegroundTurn(input) {
369
- if (input.surface !== "web") return false;
402
+ if (input.surface !== "web" && input.surface !== "rn") return false;
370
403
  if (input.isDesktopApp) return false;
371
404
  if (!input.currentServer?.trim() || !input.token?.trim()) return false;
405
+ const agent = input.agentConfig;
406
+ if (!agent || agent.useServerProxy === false) return false;
407
+ const target = input.runtimeOptions?.runtimeTarget;
408
+ if (target?.kind === "machine") {
409
+ return input.surface === "rn" && Boolean(target.machineId?.trim()) && (typeof input.userInput === "string" ? Boolean(input.userInput.trim()) : Array.isArray(input.userInput) && input.userInput.length > 0);
410
+ }
372
411
  if (typeof input.userInput !== "string" || !input.userInput.trim()) return false;
373
412
  if (input.turnToolContext) {
374
413
  if (!input.turnToolContext.complete) return false;
@@ -383,9 +422,6 @@ function shouldUseServerOwnedWebForegroundTurn(input) {
383
422
  }
384
423
  }
385
424
  }
386
- const agent = input.agentConfig;
387
- if (!agent) return false;
388
- if (agent.useServerProxy === false) return false;
389
425
  if (agent.apiSource === "cli") return false;
390
426
  if (agent.runtimeBinding?.machineId) return false;
391
427
  if (!hasSupportedDurableToolSurface(agent, input.effectiveToolSurface)) return false;
@@ -635,7 +671,8 @@ function resolveServerOwnedWebEffectiveToolSurface(args) {
635
671
  mentionedToolNames,
636
672
  args.runtimeOptions ?? void 0,
637
673
  args.state,
638
- args.accountSkillRuntime
674
+ args.accountSkillRuntime,
675
+ args.systemBuiltinSkills
639
676
  );
640
677
  const rawNames = (Array.isArray(mergedAgent.tools) ? mergedAgent.tools : []).map(readEffectiveToolName).filter((name) => typeof name === "string" && !!name);
641
678
  const finalNames = Array.from(new Set(rawNames));
@@ -681,6 +718,9 @@ function applyServerOwnedAssistantStreamPayload(state, payload) {
681
718
  segmentThinking: state.segmentThinking + payload.content
682
719
  };
683
720
  }
721
+ if (payload?.type === "text_replace" && typeof payload.content === "string") {
722
+ return { ...state, text: payload.content, segmentText: payload.content };
723
+ }
684
724
  if (payload?.type === "text" && typeof payload.content === "string") {
685
725
  return {
686
726
  ...state,
@@ -700,6 +740,22 @@ function applyServerOwnedAssistantStreamPayload(state, payload) {
700
740
  }
701
741
 
702
742
  // packages/ai/agent/serverOwnedWebForegroundTurn.ts
743
+ var exactId = (value) => typeof value === "string" && value.trim() === value && value.length > 0;
744
+ function readActiveTurnSummary(value) {
745
+ if (!isDialogTurnRecord(value)) return;
746
+ const { runId, holder, holderKind, startedAt, heartbeatAt, expiresAt } = value;
747
+ if (!exactId(runId) || typeof holder !== "string" || !DIALOG_TURN_HOLDER_KINDS.some((kind) => kind === holderKind) || typeof startedAt !== "number" || !Number.isFinite(startedAt) || typeof heartbeatAt !== "number" || !Number.isFinite(heartbeatAt) || typeof expiresAt !== "number" || !Number.isFinite(expiresAt)) return;
748
+ return { runId, holder, holderKind, startedAt, heartbeatAt, expiresAt };
749
+ }
750
+ function readDialogBusyTurn(status, value) {
751
+ if (status !== 409 || !isDialogTurnRecord(value) || value.error !== "dialog_busy" && value.code !== "dialog_busy") return;
752
+ const activeTurn = readActiveTurnSummary(value.activeTurn);
753
+ if (value.activeTurn !== void 0 && !activeTurn) return;
754
+ const activeRunId = value.activeRunId ?? activeTurn?.runId;
755
+ if (!exactId(activeRunId) || activeTurn && activeTurn.runId !== activeRunId) return;
756
+ const dialogRevision = typeof value.dialogRevision === "number" && Number.isSafeInteger(value.dialogRevision) && value.dialogRevision >= 0 ? value.dialogRevision : void 0;
757
+ return { code: "dialog_busy", activeRunId, activeTurn, dialogRevision };
758
+ }
703
759
  var SERVER_OWNED_CANONICAL_HANDOFF_PROTECT_MS = 65e3;
704
760
  function resolveServerOwnedWebAllowedToolNames(toolNames) {
705
761
  return Array.from(
@@ -709,6 +765,7 @@ function resolveServerOwnedWebAllowedToolNames(toolNames) {
709
765
  );
710
766
  }
711
767
  function detectServerOwnedCandidateSurface() {
768
+ if (globalThis.navigator?.product === "ReactNative") return "rn";
712
769
  return typeof window !== "undefined" && typeof document !== "undefined" ? "web" : "non-web";
713
770
  }
714
771
  async function canRunServerOwnedWebForegroundTurn(args, thunk) {
@@ -718,23 +775,38 @@ async function canRunServerOwnedWebForegroundTurn(args, thunk) {
718
775
  let token;
719
776
  try {
720
777
  state = thunk.getState();
721
- currentServer = selectCurrentServer(state);
778
+ currentServer = resolveToolBaseUrl(selectCurrentServer(state));
722
779
  const rawToken = selectIdentityToken(state);
723
780
  token = typeof rawToken === "string" ? rawToken : void 0;
724
781
  } catch {
725
782
  return { eligible: false };
726
783
  }
727
784
  if (!currentServer?.trim() || !token?.trim()) return { eligible: false };
785
+ const accountPolicy = getUserPreferencesStore(thunk.getState).getSnapshot();
728
786
  let agentConfig = args.agentConfig ?? void 0;
729
787
  if (!agentConfig) {
730
788
  try {
731
- const { readAndWait: readAndWait2 } = await import("./dbSlice-RWPSVHBC.js");
789
+ const { readAndWait: readAndWait2 } = await import("./dbSlice-SEVKNA7A.js");
732
790
  agentConfig = await thunk.dispatch(readAndWait2(args.agentKey)).unwrap();
733
791
  } catch {
734
792
  return { eligible: false };
735
793
  }
736
794
  }
737
795
  if (!agentConfig) return { eligible: false };
796
+ const surface = args.rnAdmission ? "rn" : detectServerOwnedCandidateSurface();
797
+ if (surface === "rn" && isDeviceLocalDbKey(args.dialogConfig.dbKey)) return { eligible: false };
798
+ if (surface === "rn" && args.runtimeOptions?.runtimeTarget?.kind === "machine") {
799
+ const eligible2 = shouldUseServerOwnedWebForegroundTurn({
800
+ surface,
801
+ agentConfig,
802
+ userInput: args.userInput,
803
+ runtimeOptions: args.runtimeOptions,
804
+ currentServer,
805
+ token,
806
+ isDesktopApp: getIsDesktopApp()
807
+ });
808
+ return { eligible: eligible2, agentConfig };
809
+ }
738
810
  const turnToolContext = await resolveTurnToolContext({
739
811
  agentConfig,
740
812
  dialogConfig: args.dialogConfig,
@@ -743,16 +815,17 @@ async function canRunServerOwnedWebForegroundTurn(args, thunk) {
743
815
  dispatch: thunk.dispatch,
744
816
  runtimeOptions: args.runtimeOptions
745
817
  });
746
- const accountSkillRuntime = agentConfig.runtimePromptAlreadyInMessages ? null : await resolveUserSkillRuntime(agentConfig, state.settings);
818
+ const accountSkillRuntime = agentConfig.runtimePromptAlreadyInMessages ? null : await resolveUserSkillRuntime(agentConfig, accountPolicy);
747
819
  const effectiveToolSurface = resolveServerOwnedWebEffectiveToolSurface({
748
820
  agentConfig,
749
821
  runtimeOptions: args.runtimeOptions,
750
822
  state,
751
823
  turnToolContext,
752
- accountSkillRuntime
824
+ accountSkillRuntime,
825
+ systemBuiltinSkills: accountPolicy.systemBuiltinSkills
753
826
  });
754
827
  const eligible = shouldUseServerOwnedWebForegroundTurn({
755
- surface: detectServerOwnedCandidateSurface(),
828
+ surface,
756
829
  agentConfig,
757
830
  effectiveToolSurface,
758
831
  turnToolContext,
@@ -778,7 +851,7 @@ async function canRunServerOwnedWebForegroundTurn(args, thunk) {
778
851
  }
779
852
  async function runServerOwnedWebForegroundTurn(args, thunk) {
780
853
  const state = thunk.getState();
781
- const currentServer = String(selectCurrentServer(state) ?? "").replace(/\/+$/, "");
854
+ const currentServer = resolveToolBaseUrl(selectCurrentServer(state));
782
855
  const token = selectIdentityToken(state);
783
856
  if (!currentServer || !token) {
784
857
  throw new Error("Server-owned foreground turn requires an authenticated server");
@@ -788,8 +861,11 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
788
861
  if (!dialogId || !dialogKey) {
789
862
  throw new Error("Server-owned foreground turn requires an existing dialog");
790
863
  }
791
- const userInput = typeof args.userInput === "string" ? args.userInput : "";
792
- if (!userInput.trim()) {
864
+ const isNative = args.rnAdmission !== void 0 || detectServerOwnedCandidateSurface() === "rn";
865
+ const runtimeTarget = isNative ? args.runtimeOptions?.runtimeTarget : void 0;
866
+ const machineTarget = runtimeTarget?.kind === "machine";
867
+ const userInput = machineTarget && Array.isArray(args.userInput) ? args.userInput : typeof args.userInput === "string" ? args.userInput : "";
868
+ if (typeof userInput === "string" ? !userInput.trim() : !userInput.length) {
793
869
  throw new Error("Server-owned foreground turn requires text input");
794
870
  }
795
871
  const initialMessageIds = new Set(
@@ -849,23 +925,24 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
849
925
  })
850
926
  );
851
927
  };
928
+ const messageSession = sessionForState(thunk.getState());
852
929
  const releaseClientController = () => {
853
930
  if (clientControllerReleased) return;
854
931
  clientControllerReleased = true;
855
932
  thunk.dispatch(removeActiveController({ messageId: loopKey, dialogKey }));
856
- clearForegroundTurnSettledVisible(dialogId);
933
+ messageSession.clearForegroundTurnSettledVisible(dialogId);
857
934
  stageLog.stage("controller-release");
858
935
  };
859
936
  const finalizeVisibleProjectionOnDone = () => {
860
937
  if (visibleFinalized) return;
861
938
  visibleFinalized = true;
862
- protectTransientForCanonicalHandoff(
939
+ messageSession.protectTransientForCanonicalHandoff(
863
940
  dialogId,
864
941
  transientId,
865
942
  SERVER_OWNED_CANONICAL_HANDOFF_PROTECT_MS
866
943
  );
867
944
  finishTransientImmediately();
868
- markForegroundTurnSettledVisible(dialogId);
945
+ messageSession.markForegroundTurnSettledVisible(dialogId);
869
946
  };
870
947
  const finishTransientImmediately = () => {
871
948
  const transient = selectAllMsgs(thunk.getState(), dialogId).find((message) => message?.id === transientId);
@@ -882,7 +959,7 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
882
959
  })
883
960
  );
884
961
  }
885
- setStreamingMessageId(dialogId, null);
962
+ messageSession.setStreamingMessageId(dialogId, null);
886
963
  };
887
964
  const removeTransientWhenCanonicalArrives = () => {
888
965
  void waitForNewCanonicalAssistant({
@@ -904,32 +981,37 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
904
981
  thunk.dispatch(removeTransientMessage({ id: transientId, dialogId }));
905
982
  }).catch(() => {
906
983
  }).finally(() => {
907
- releaseTransientCanonicalHandoff(dialogId, transientId);
984
+ messageSession.releaseTransientCanonicalHandoff(dialogId, transientId);
908
985
  });
909
986
  };
910
987
  thunk.dispatch(addActiveController({ messageId: loopKey, controller, dialogKey }));
911
- projectAssistant();
988
+ if (!args.rnAdmission) projectAssistant();
912
989
  const allowedToolNames = resolveServerOwnedWebAllowedToolNames(
913
990
  Array.isArray(args.agentConfig.tools) ? args.agentConfig.tools : []
914
991
  );
915
- const supportsMcpConfirmation = args.dialogConfig.agentMode === "auto" && args.agentKey === BUILTIN_NOLO_AGENT_KEY;
992
+ const dialogAgentMode = resolveDialogAgentMode(args.dialogConfig);
993
+ const supportsMcpConfirmation = !isNative && dialogAgentMode === "auto" && args.agentKey === BUILTIN_NOLO_AGENT_KEY;
916
994
  const body = JSON.stringify({
917
995
  agentKey: args.agentKey,
918
996
  userInput,
919
997
  stream: true,
920
998
  persistDialog: true,
921
999
  continueDialogId: dialogId,
1000
+ // The RN pin is per send. runtimeOptions is an explicit dispatch target
1001
+ // without the top-level target's persisted re-selection side effect.
1002
+ ...runtimeTarget && !args.rnAdmission ? { runtimeTarget } : {},
1003
+ ...runtimeTarget?.kind === "machine" && args.rnAdmission?.requestedWorkspacePath !== void 0 ? { requestedWorkspacePath: args.rnAdmission.requestedWorkspacePath } : {},
922
1004
  runtimeContext: {
923
- surface: "web",
924
- host: "browser",
925
- runtime: "react",
1005
+ surface: isNative ? "react-native" : "web",
1006
+ host: isNative ? "mobile" : "browser",
1007
+ runtime: isNative ? "react-native" : "react",
926
1008
  entrypoint: "chat-dialog-server-owned",
927
- userMessageId: selectAllMsgs(thunk.getState(), dialogId).filter((message) => message.role === "user" && message.metadata?.queueState !== "pending").at(-1)?.id,
1009
+ ...!args.rnAdmission ? { userMessageId: args.userMessageId ?? selectAllMsgs(thunk.getState(), dialogId).filter((message) => message.role === "user" && message.metadata?.queueState !== "pending").at(-1)?.id } : {},
928
1010
  capabilities: [
929
1011
  "streaming",
930
1012
  "dialog-ui",
931
1013
  "durable-foreground",
932
- "client-user-prepersisted",
1014
+ ...!args.rnAdmission ? ["client-user-prepersisted"] : [],
933
1015
  "durable-user-batch",
934
1016
  "durable-tool-cards",
935
1017
  ...supportsMcpConfirmation ? ["mcp-confirmation"] : []
@@ -938,8 +1020,14 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
938
1020
  // global durable superset. Server-private defaults and machine tools are
939
1021
  // injected before this constraint, then intersected back to this turn's
940
1022
  // admitted names. Direct run() callers are sanitized again above.
941
- allowedToolNames: supportsMcpConfirmation ? [.../* @__PURE__ */ new Set([...allowedToolNames, ...MCP_TOOL_NAMES])] : allowedToolNames,
942
- ...args.dialogConfig.agentMode === "auto" ? { dialogAgentMode: "auto" } : { dialogAgentMode: "fixed" }
1023
+ ...!machineTarget ? { allowedToolNames: [
1024
+ .../* @__PURE__ */ new Set([
1025
+ ...allowedToolNames,
1026
+ ...ZOHO_MAIL_TOOL_NAMES,
1027
+ ...supportsMcpConfirmation ? MCP_TOOL_NAMES : []
1028
+ ])
1029
+ ] } : {},
1030
+ ...dialogAgentMode === "auto" ? { dialogAgentMode: "auto" } : { dialogAgentMode: "fixed" }
943
1031
  },
944
1032
  ...args.runtimeOptions ? { runtimeOptions: args.runtimeOptions } : {},
945
1033
  ...args.contextBlocks?.length ? { contextBlocks: args.contextBlocks } : {},
@@ -962,12 +1050,12 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
962
1050
  try {
963
1051
  let response;
964
1052
  try {
965
- response = await performServerProxyFetchWithRetry({
1053
+ response = isNative ? await openForegroundSse(`${currentServer}/api/agent/run`, init) : readForegroundSseResponse(await performServerProxyFetchWithRetry({
966
1054
  execute: () => fetch(`${currentServer}/api/agent/run`, init),
967
1055
  signal: controller.signal,
968
1056
  retryNetworkErrors: false,
969
1057
  logPrefix: "[serverOwnedWebForegroundTurn]"
970
- });
1058
+ }));
971
1059
  } catch (error) {
972
1060
  if (controller.signal.aborted) return { serverOwned: true, aborted: true };
973
1061
  console.warn("[chat] server-owned foreground detached before response", {
@@ -979,9 +1067,23 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
979
1067
  stageLog.stage("headers", `status=${response.status} ok=${response.ok}`);
980
1068
  if (!response.ok) {
981
1069
  const text = await response.text().catch(() => "");
1070
+ if (args.rnAdmission) {
1071
+ let payload;
1072
+ try {
1073
+ payload = JSON.parse(text);
1074
+ } catch {
1075
+ }
1076
+ const busy = readDialogBusyTurn(response.status, payload);
1077
+ if (busy) return { serverOwned: true, busy };
1078
+ if (isDialogTurnRecord(payload) && (payload.reason === "connector_offline" || payload.code === "connector_offline")) {
1079
+ return { serverOwned: true, offline: true };
1080
+ }
1081
+ }
982
1082
  throw new Error(text || `Agent run failed (${response.status})`);
983
1083
  }
984
- const reader = response.body?.getReader();
1084
+ args.rnAdmission?.onAccepted?.();
1085
+ if (args.rnAdmission && response.reader) projectAssistant();
1086
+ const reader = response.reader;
985
1087
  if (!reader) {
986
1088
  stageLog.stage("no-stream-body");
987
1089
  return { serverOwned: true, detached: true };
@@ -990,6 +1092,7 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
990
1092
  const decoder = new TextDecoder();
991
1093
  const outcome = await consumeAgentRunStream({
992
1094
  reader,
1095
+ retainExecutionOnDisconnect: isNative,
993
1096
  decoder,
994
1097
  parseChunk: (raw) => parseSSE(raw),
995
1098
  isAborted: () => controller.signal.aborted,
@@ -1006,7 +1109,8 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
1006
1109
  }
1007
1110
  if (payload?.type === "action_gate") {
1008
1111
  const gate = payload.gate;
1009
- if (actionGatesClosed || controller.signal.aborted || gate?.kind !== "confirm" || gate.payload?.action !== "mcp_confirmation" || typeof gate.id !== "string" || !gate.id.trim() || typeof gate.title !== "string" || gate.body !== void 0 && typeof gate.body !== "string") return;
1112
+ const action = gate?.payload?.action;
1113
+ if (actionGatesClosed || controller.signal.aborted || gate?.kind !== "confirm" || action !== "mcp_confirmation" && action !== "zoho_mail_read_confirmation" || typeof gate.id !== "string" || !gate.id.trim() || typeof gate.title !== "string" || gate.body !== void 0 && typeof gate.body !== "string") return;
1010
1114
  if (receivedGateIds.has(gate.id) || getSnapshot().gates.some(
1011
1115
  (pending) => pending.id === gate.id
1012
1116
  )) return;
@@ -1017,7 +1121,7 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
1017
1121
  kind: "confirm",
1018
1122
  title: gate.title,
1019
1123
  body: gate.body,
1020
- payload: { action: "mcp_confirmation" }
1124
+ payload: { action }
1021
1125
  },
1022
1126
  actionGateTarget,
1023
1127
  { dialogId, turnId: loopKey, messageId: transientId }
@@ -1046,7 +1150,11 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
1046
1150
  finalizeVisibleProjectionOnDone();
1047
1151
  }
1048
1152
  }
1049
- });
1153
+ }).catch((error) => {
1154
+ if (!isNative) throw error;
1155
+ console.warn("[chat] RN server-owned foreground transport disconnected", { dialogId, error });
1156
+ return { outcome: "streamEnded", sawDone: false };
1157
+ }).finally(() => reader.releaseLock());
1050
1158
  stageLog.stage(
1051
1159
  "eof",
1052
1160
  outcome.outcome === "streamEnded" ? `outcome=streamEnded sawDone=${outcome.sawDone} executionId=${observedExecutionId}` : `outcome=${outcome.outcome}`
@@ -1084,7 +1192,7 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
1084
1192
  });
1085
1193
  }
1086
1194
  if (canonicalVisible) {
1087
- releaseTransientCanonicalHandoff(dialogId, transientId);
1195
+ messageSession.releaseTransientCanonicalHandoff(dialogId, transientId);
1088
1196
  toolProjection.cleanup();
1089
1197
  thunk.dispatch(removeTransientMessage({ id: transientId, dialogId }));
1090
1198
  } else {
@@ -1101,7 +1209,7 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
1101
1209
  closeActionGates();
1102
1210
  releaseClientController();
1103
1211
  if (!sawDone && !visibleFinalized) {
1104
- releaseTransientCanonicalHandoff(dialogId, transientId);
1212
+ messageSession.releaseTransientCanonicalHandoff(dialogId, transientId);
1105
1213
  toolProjection.cleanup();
1106
1214
  thunk.dispatch(removeTransientMessage({ id: transientId, dialogId }));
1107
1215
  }
@@ -1684,6 +1792,20 @@ var handleSendMessageAction = async (args, thunkApi) => {
1684
1792
  dialogKey: dialogConfig.dbKey,
1685
1793
  cybotCount: dialogConfig.cybots?.length ?? 0
1686
1794
  });
1795
+ if (args.userMessageId) {
1796
+ const db = thunkApi.extra?.db;
1797
+ if (!db) throw new Error("Cannot check the user message dedupe key without the local database");
1798
+ const dialogId = dialogConfig.id ?? extractCustomId(dialogConfig.dbKey ?? "");
1799
+ const existing = await db.get(dialogMessageKey(dialogId, args.userMessageId)).catch((error) => {
1800
+ if (!isLevelNotFoundError(error)) throw error;
1801
+ return void 0;
1802
+ });
1803
+ if (existing) return;
1804
+ }
1805
+ const clearHistoryBannerAfterSend = () => {
1806
+ const dialogId = dialogConfig?.id ?? (dialogConfig?.dbKey ? extractCustomId(dialogConfig.dbKey) : void 0);
1807
+ if (dialogId) clearHistoryErrorAfterSuccessfulSend(getState(), dialogId);
1808
+ };
1687
1809
  let effectiveRawUserInput = args.userInput;
1688
1810
  let turnUserMessageId;
1689
1811
  if (args.isRetry) {
@@ -1715,23 +1837,26 @@ var handleSendMessageAction = async (args, thunkApi) => {
1715
1837
  console.warn("[handleSendMessage] isRetry: No preceding user message found to retry.");
1716
1838
  return rejectWithValue("\u672A\u627E\u5230\u53EF\u91CD\u8BD5\u7684\u7528\u6237\u8F93\u5165");
1717
1839
  }
1718
- } else {
1719
- const pendingHistory = selectAllMsgs(getState(), dialogConfig.id ?? extractCustomId(dialogConfig.dbKey ?? ""));
1840
+ }
1841
+ const persistUserMessage = async (dialogConfig2) => {
1842
+ const pendingHistory = selectAllMsgs(getState(), dialogConfig2.id ?? extractCustomId(dialogConfig2.dbKey ?? ""));
1720
1843
  if (selectPendingUserMessages(pendingHistory ?? []).length || pendingHistory?.some((message) => message.metadata?.userBatchPhase === "admitted")) {
1721
- await dispatch(admitPendingUserMessages({ dialogKey: dialogConfig.dbKey, resumeUnrequested: true })).unwrap();
1844
+ await dispatch(admitPendingUserMessages({ dialogKey: dialogConfig2.dbKey ?? args.dialogKey ?? dialogConfig2.id, resumeUnrequested: true })).unwrap();
1722
1845
  }
1723
1846
  const persistedUserMessage = await dispatch(
1724
1847
  prepareAndPersistUserMessage({
1725
1848
  userInput: args.userInput ?? "",
1726
- dialogConfig
1849
+ userMessageId: args.userMessageId,
1850
+ dialogConfig: dialogConfig2
1727
1851
  })
1728
1852
  ).unwrap();
1729
1853
  turnUserMessageId = persistedUserMessage?.id;
1730
1854
  logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-user-persisted", {
1731
- dialogKey: dialogConfig.dbKey
1855
+ dialogKey: dialogConfig2.dbKey
1732
1856
  });
1733
- }
1734
- const selectedRuntimeTarget = dialogConfig.runtimeBinding?.target;
1857
+ };
1858
+ if (!args.isRetry && !args.rnAdmission) await persistUserMessage(dialogConfig);
1859
+ const selectedRuntimeTarget = args.rnAdmission?.target ?? dialogConfig.runtimeBinding?.target;
1735
1860
  const resolvedContext = resolveHandleSendMessageContext({
1736
1861
  dialogConfig,
1737
1862
  targetAgentKey: args.targetAgentKey,
@@ -1744,6 +1869,11 @@ var handleSendMessageAction = async (args, thunkApi) => {
1744
1869
  const agentConfigToUse = resolvedContext.agentConfigToUse;
1745
1870
  const effectiveRuntimeOptions = resolvedContext.effectiveRuntimeOptions;
1746
1871
  if (!agentKeyToUse) {
1872
+ if (args.rnAdmission?.target?.kind === "machine") return rejectWithValue("\u65E0\u6CD5\u786E\u8BA4\u539F\u673A\u7684\u6267\u884C\u52A9\u624B");
1873
+ if (args.rnAdmission && !args.isRetry) {
1874
+ await persistUserMessage(dialogConfig);
1875
+ args.rnAdmission.onAccepted?.();
1876
+ }
1747
1877
  return;
1748
1878
  }
1749
1879
  const userInputText = typeof effectiveRawUserInput === "string" ? effectiveRawUserInput : "";
@@ -1752,7 +1882,7 @@ var handleSendMessageAction = async (args, thunkApi) => {
1752
1882
  const dialogKey = dialogConfig.dbKey;
1753
1883
  const projectId = isDesktopContext && dialogKey ? readDialogProjectId(window.localStorage, dialogKey) : null;
1754
1884
  if (projectId) {
1755
- const { ensureProjectArchive } = await import("./projectArchive-JN43WW4E.js");
1885
+ const { ensureProjectArchive } = await import("./projectArchive-JIVRMXVV.js");
1756
1886
  const { DESKTOP_FOLDER_PROJECTS_KEY: DESKTOP_FOLDER_PROJECTS_KEY2, readDesktopFolderProjects: readDesktopFolderProjects2 } = await import("./desktopFolderProjects-4POAMVJN.js");
1757
1887
  const project = readDesktopFolderProjects2(window.localStorage.getItem(DESKTOP_FOLDER_PROJECTS_KEY2)).find((entry) => entry.id === projectId);
1758
1888
  if (!project) throw new Error("\u9879\u76EE\u5DF2\u4E0D\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u9879\u76EE");
@@ -1767,6 +1897,7 @@ var handleSendMessageAction = async (args, thunkApi) => {
1767
1897
  userInput: effectiveRawUserInput,
1768
1898
  dialogConfig,
1769
1899
  runtimeOptions: effectiveRuntimeOptions,
1900
+ rnAdmission: args.rnAdmission,
1770
1901
  contextBlocks: browseContextPrefix ? [browseContextPrefix] : void 0
1771
1902
  },
1772
1903
  { dispatch, getState }
@@ -1774,22 +1905,34 @@ var handleSendMessageAction = async (args, thunkApi) => {
1774
1905
  if (serverOwnedCandidate.eligible && serverOwnedCandidate.agentConfig) {
1775
1906
  const serverOwnedResult = await runServerOwnedWebForegroundTurn(
1776
1907
  {
1908
+ userMessageId: turnUserMessageId,
1777
1909
  agentKey: agentKeyToUse,
1778
1910
  agentConfig: serverOwnedCandidate.agentConfig,
1779
1911
  userInput: effectiveRawUserInput,
1780
1912
  dialogConfig,
1781
1913
  runtimeOptions: effectiveRuntimeOptions,
1914
+ rnAdmission: args.rnAdmission,
1782
1915
  contextBlocks: browseContextPrefix ? [browseContextPrefix] : void 0
1783
1916
  },
1784
1917
  { dispatch, getState }
1785
1918
  );
1919
+ if (serverOwnedResult.busy) return rejectWithValue(serverOwnedResult.busy);
1920
+ if (serverOwnedResult.offline) return rejectWithValue({ code: "connector_offline" });
1786
1921
  if (serverOwnedResult.aborted || serverOwnedResult.detached) return;
1922
+ clearHistoryBannerAfterSend();
1787
1923
  logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-server-owned-finished", {
1788
1924
  dialogKey: dialogConfig.dbKey,
1789
1925
  agentKey: agentKeyToUse
1790
1926
  });
1791
1927
  return;
1792
1928
  }
1929
+ if (args.rnAdmission && effectiveRuntimeOptions?.runtimeTarget?.kind === "machine") {
1930
+ return rejectWithValue("\u6240\u9009\u7535\u8111\u5F53\u524D\u65E0\u6CD5\u6267\u884C\uFF0C\u672A\u53D1\u9001\u6D88\u606F");
1931
+ }
1932
+ if (args.rnAdmission && !args.isRetry) {
1933
+ await persistUserMessage(dialogConfig);
1934
+ args.rnAdmission.onAccepted?.();
1935
+ }
1793
1936
  let strippedUserInput = effectiveRawUserInput;
1794
1937
  let ephemeralReferences;
1795
1938
  const parsedSlashSkill = typeof effectiveRawUserInput === "string" ? parseSkillSlashReference(effectiveRawUserInput) : null;
@@ -1897,6 +2040,9 @@ var handleSendMessageAction = async (args, thunkApi) => {
1897
2040
  );
1898
2041
  return;
1899
2042
  }
2043
+ if (streamResult) {
2044
+ clearHistoryBannerAfterSend();
2045
+ }
1900
2046
  logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-stream-finished", {
1901
2047
  dialogKey: dialogConfig.dbKey,
1902
2048
  agentKey: agentKeyToUse