nolo-cli 0.227.0-alpha.1 → 0.227.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 (258) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-JKQGZ3HU.js → _executeModel-CXOFYVHC.js} +93 -87
  3. package/{action-CK64LS6S.js → action-R2EIXR7I.js} +11 -8
  4. package/{addContentAction-CARFID6E.js → addContentAction-W6JVLQ6H.js} +17 -16
  5. package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-LVNKMXKZ.js} +20 -19
  6. package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-VFSZPEQ5.js} +145 -137
  7. package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-KRUIF4EH.js} +149 -137
  8. package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
  9. package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
  10. package/agentListCommands-TDFOLWN3.js +644 -0
  11. package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-PSH7Q5PF.js} +76 -67
  12. package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-C5T7C5KZ.js} +7 -7
  13. package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-QQQZSC6S.js} +7 -7
  14. package/agentRecordCommands-KCKCW2QU.js +188 -0
  15. package/agentRunCommand-EF2T2QWD.js +223 -0
  16. package/{agentRunControl-SNZZ5XP4.js → agentRunControl-CSMSJFFB.js} +25 -17
  17. package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-6QXQS3TS.js} +64 -50
  18. package/{agentSlice-N7H2FRJA.js → agentSlice-IZ5ANAF7.js} +19 -18
  19. package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-4M7ETEEG.js} +68 -59
  20. package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-2VJ2NDW5.js} +68 -59
  21. package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-LDFSWOPQ.js} +68 -59
  22. package/{appGetCommands-NAKVDVD4.js → appGetCommands-RHVNOPT4.js} +68 -59
  23. package/{appListCommands-KL56RN73.js → appListCommands-U3XEVTL4.js} +68 -59
  24. package/{authCommand-AUN5MXV2.js → authCommand-PVZ45QRO.js} +36 -31
  25. package/{authCommands-D2IPS6ES.js → authCommands-6AUYO65N.js} +18 -13
  26. package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-LRVAQCPW.js} +6 -6
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-TBPM6MR4.js} +8 -8
  29. package/{chunk-ABGULE7H.js → chunk-22YUCKMK.js} +16 -16
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-GOLPOTG5.js → chunk-2COM7SAH.js} +4 -4
  32. package/{chunk-ULAQPRHX.js → chunk-2FK2KZSL.js} +1 -1
  33. package/{chunk-PLPLH2XZ.js → chunk-2IPR4PBB.js} +2 -2
  34. package/chunk-2SXN7LAY.js +15 -0
  35. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  36. package/{chunk-7Z3WUZ4Q.js → chunk-3YYFU6H7.js} +74 -46
  37. package/{chunk-C2B7M567.js → chunk-4OXPN3WC.js} +17 -6
  38. package/chunk-4TVOZGOS.js +62 -0
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53AEDFBL.js +33394 -0
  41. package/chunk-53W5BXLN.js +340 -0
  42. package/{chunk-OXA5GWHU.js → chunk-56O2J2Y4.js} +3 -3
  43. package/{chunk-IAJJYHIB.js → chunk-56PB7FEN.js} +8 -8
  44. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  45. package/{chunk-AGP3YSEC.js → chunk-5PASH2MB.js} +46 -1
  46. package/{chunk-PHOSZT3E.js → chunk-5UAKGCQG.js} +1 -1
  47. package/{chunk-5RKRXQ2H.js → chunk-5VVP7DW3.js} +20 -13
  48. package/chunk-6ASGEP5D.js +21 -0
  49. package/chunk-6PXFEPHL.js +103 -0
  50. package/chunk-6RSNVJGO.js +279 -0
  51. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  52. package/{chunk-KMRKZNGT.js → chunk-6YYTTLJV.js} +14 -13
  53. package/{chunk-VREDDN25.js → chunk-76HAJUOJ.js} +14 -9
  54. package/{chunk-FKEZOMIF.js → chunk-7DXFOL5B.js} +1410 -768
  55. package/{chunk-LA7JYAKF.js → chunk-AKPKOI5Z.js} +6 -6
  56. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  57. package/{chunk-F5AY2UZL.js → chunk-AO6T7U62.js} +592 -68
  58. package/{chunk-LJSNEV7M.js → chunk-AS6L5KSD.js} +8 -8
  59. package/{chunk-GOQ6ZVTN.js → chunk-AVSZ6PBM.js} +5 -5
  60. package/chunk-BIDSIRTS.js +307 -0
  61. package/chunk-C5A54QS7.js +108 -0
  62. package/{chunk-KYH7XW3K.js → chunk-CD2DK5JA.js} +135 -14
  63. package/{chunk-G6HJUMST.js → chunk-CJQBWHNM.js} +2 -2
  64. package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
  65. package/{chunk-ZYA2YDB6.js → chunk-CT5JXREL.js} +17 -17
  66. package/{chunk-VPAZ6BEN.js → chunk-CTWCZKNS.js} +42 -17
  67. package/{chunk-4OKTPFNX.js → chunk-CX2LYFZQ.js} +107 -66
  68. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  69. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  72. package/{chunk-IX2BXN2K.js → chunk-EDT65EUE.js} +6 -6
  73. package/{chunk-VP3BINY7.js → chunk-EQZZASCD.js} +31 -1
  74. package/{chunk-45LZIYXB.js → chunk-ESN4WNWU.js} +3 -2
  75. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  76. package/{chunk-CVERLOJM.js → chunk-F4XIS5DL.js} +1215 -1431
  77. package/chunk-FDZ2GBWO.js +166 -0
  78. package/chunk-FGHEF6WI.js +34 -0
  79. package/{chunk-CSW7IPVD.js → chunk-FMYNIAI6.js} +61 -24
  80. package/{chunk-VIHDJ3FK.js → chunk-FNT5VENS.js} +15 -15
  81. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  82. package/{chunk-GRXSJR2Z.js → chunk-GVTFSLNI.js} +112 -109
  83. package/{chunk-UN7HIYMH.js → chunk-GX6DITLQ.js} +1 -1
  84. package/{chunk-3VFYQH3I.js → chunk-HIDVLMZC.js} +203 -156
  85. package/{chunk-5LQDHFBN.js → chunk-IDFGIROZ.js} +20 -17
  86. package/{chunk-UCFPVYP7.js → chunk-IFWXH7LH.js} +1 -1
  87. package/{chunk-LXTC53TN.js → chunk-J45ACAOQ.js} +815 -361
  88. package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
  89. package/{chunk-X2KRQP7V.js → chunk-JV5FHHF7.js} +1 -1
  90. package/{chunk-6EDAMVG6.js → chunk-K26XPZRB.js} +11 -11
  91. package/{chunk-RU6DULV4.js → chunk-KB5RQRSJ.js} +1 -1
  92. package/{chunk-T43K75CK.js → chunk-KC2QVCI7.js} +24 -178
  93. package/chunk-KK3FCYZM.js +647 -0
  94. package/{chunk-XZODOEKU.js → chunk-KMDHRVS7.js} +29 -5
  95. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  96. package/{chunk-UAPNPNSG.js → chunk-KW72WVHO.js} +2085 -1046
  97. package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
  98. package/{chunk-L42CBKBZ.js → chunk-KZKMH374.js} +3 -3
  99. package/{chunk-ZI5SZ3MV.js → chunk-L6BLA6BT.js} +40 -31
  100. package/{chunk-AK5O76CC.js → chunk-LC5CVWP2.js} +3 -3
  101. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  102. package/chunk-LHCGKAFO.js +739 -0
  103. package/{chunk-YOT437BH.js → chunk-LOF2EFUE.js} +203 -123
  104. package/{chunk-YQETUZ5V.js → chunk-LTVEOOZL.js} +29 -16
  105. package/{chunk-T2BEPTAG.js → chunk-MAA42MMV.js} +272 -26
  106. package/{chunk-NAOO4PVX.js → chunk-MECW2HJG.js} +16 -16
  107. package/{chunk-5HL4KC4A.js → chunk-MEDPR36J.js} +62 -87
  108. package/chunk-MVOZ22RZ.js +26 -0
  109. package/{chunk-YPPKC6FL.js → chunk-MYYNZG2M.js} +140 -40
  110. package/{chunk-UVUVQVZ6.js → chunk-MZVCFV3T.js} +19 -15
  111. package/{chunk-CQVGR3MX.js → chunk-N7MXFYLU.js} +7 -7
  112. package/{chunk-IC2I373Q.js → chunk-NEG5LYK5.js} +4 -4
  113. package/chunk-NJJK3PDA.js +133 -0
  114. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  115. package/{chunk-M3Y4IBIR.js → chunk-OHUYN3YU.js} +6 -6
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SFTTXGPM.js → chunk-PDAXMBLW.js} +35 -28
  118. package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
  119. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  120. package/{chunk-SRG5CNLC.js → chunk-QIVE5WJE.js} +8 -8
  121. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  122. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  123. package/{chunk-7Z6EW7AH.js → chunk-QOURTDZL.js} +97 -11
  124. package/{chunk-VZW34YUL.js → chunk-QWSH3UAQ.js} +8 -5
  125. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  126. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  127. package/{chunk-SW6OD4KE.js → chunk-RDPAIR67.js} +351 -18
  128. package/{chunk-NO3VBWTL.js → chunk-RXTZB2DH.js} +4 -4
  129. package/{chunk-AXYH4734.js → chunk-S25VJYXV.js} +21 -15
  130. package/{chunk-MWHOH4RJ.js → chunk-SESKIWB4.js} +6 -6
  131. package/{chunk-GUVXQSFZ.js → chunk-SF4GMDZO.js} +18 -108
  132. package/{chunk-TINJKQSO.js → chunk-SQRKAYQW.js} +25 -25
  133. package/chunk-SR4FE5VD.js +9 -0
  134. package/{chunk-3HTP4WZQ.js → chunk-SX6AWTNK.js} +46 -8
  135. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  136. package/{chunk-CLCXHIBS.js → chunk-T4QY3HZ5.js} +1 -1
  137. package/{chunk-HVUDBOQG.js → chunk-TB5KTLNB.js} +9 -6
  138. package/{chunk-KRRE4A7D.js → chunk-TKE4OJ4B.js} +280 -56
  139. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  140. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  141. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  142. package/{chunk-T5N6NHAT.js → chunk-UPOW5HTG.js} +6 -6
  143. package/{chunk-WJP4TH6U.js → chunk-VEVLLBFK.js} +2 -2
  144. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  145. package/{chunk-KJAAPGBE.js → chunk-VUHKG4KS.js} +6 -6
  146. package/{chunk-TOKPHZ55.js → chunk-W3HSD32M.js} +17 -10
  147. package/{chunk-2SKTCNWO.js → chunk-W5OJBZLZ.js} +4 -4
  148. package/chunk-WBSJAIZP.js +170 -0
  149. package/chunk-WDWZPASX.js +29 -0
  150. package/chunk-WFGNWWJI.js +326 -0
  151. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  152. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  153. package/{chunk-HYKGIXNO.js → chunk-XGWRH3OF.js} +114 -29
  154. package/{chunk-XIEYGCN6.js → chunk-XKV53E4E.js} +460 -117
  155. package/{chunk-JHF6VLVL.js → chunk-XYRTC2Y3.js} +155 -170
  156. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  157. package/{chunk-ZADGPNTV.js → chunk-YHWMKGOX.js} +77 -103
  158. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  159. package/chunk-Z6YTCDU4.js +24 -0
  160. package/{chunk-PVAWNHP5.js → chunk-ZP26NIZE.js} +647 -387
  161. package/{chunk-2G3YSVO6.js → chunk-ZQ6K57FJ.js} +3 -3
  162. package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-37ZNEY5Y.js} +16 -16
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-53773JID.js +102 -0
  167. package/{commandRegistry-TKR6OWXP.js → commandRegistry-RJUO2VOD.js} +113 -101
  168. package/{contentThunks-BQWRPCTM.js → contentThunks-4EFHLUTB.js} +44 -41
  169. package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-QL6DWGVU.js} +3 -3
  170. package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-ZFFGJ7CZ.js} +44 -41
  171. package/{createDialogAction-MMBIHFFU.js → createDialogAction-SDUGVTPS.js} +45 -43
  172. package/{createPageAction-EEYUE5FB.js → createPageAction-NNM3OFLY.js} +49 -46
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-X4Z4E4QU.js → dbSlice-5MQ3ELID.js} +16 -15
  175. package/{deleteFile-QOOP2UK7.js → deleteFile-VCCHS72Y.js} +12 -9
  176. package/{dialogCommands-OXBQ73DD.js → dialogCommands-SJK5KWXU.js} +73 -66
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-PST75COP.js} +19 -19
  179. package/{dialogSlice-KGYIABDY.js → dialogSlice-2KLMHECR.js} +44 -41
  180. package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-BZPKR3DW.js} +8 -8
  181. package/{docCreateCommands-LS32VKY3.js → docCreateCommands-K7CDL2HY.js} +66 -57
  182. package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-ZEY5YCSP.js} +69 -60
  183. package/{docReadCommands-E5LTVKWN.js → docReadCommands-A4ROLIQG.js} +66 -57
  184. package/{docStore-TVS2FNER.js → docStore-A4O6YJAM.js} +19 -18
  185. package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-6HTFQY4O.js} +66 -57
  186. package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
  187. package/{getPricing-VNGFM4PN.js → getPricing-FCHYVRJU.js} +6 -6
  188. package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-6WEFYBUC.js} +87 -82
  189. package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-WOWCNOYM.js} +136 -123
  190. package/index.js +54 -16
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-V36DX2Q2.js → localDialogRead-3T2KMCRC.js} +2 -2
  194. package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-7EDBDRYW.js} +147 -133
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-3LROJZDK.js → machineCommands-XRPC67LL.js} +290 -354
  198. package/machineWsRunDispatch-SOGFW472.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-VOJARP3M.js +106 -0
  201. package/{memberThunks-CFEPHAND.js → memberThunks-KC3WJGL3.js} +26 -21
  202. package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
  203. package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-3X54XFVN.js → projectArchive-GDVPIZX2.js} +50 -47
  207. package/{providerPresetApply-FO36N5TX.js → providerPresetApply-4H7YP5D7.js} +9 -9
  208. package/{providerRegistry-U2BSFE6K.js → providerRegistry-F3UPOTIY.js} +9 -9
  209. package/{read-KA3L2V7O.js → read-T7VU2IMO.js} +11 -10
  210. package/{readDocTool-AMAZAPAW.js → readDocTool-BPQ3QJSD.js} +1 -1
  211. package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-OWQIIUGH.js} +9406 -6791
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-FEUUVMYC.js} +23 -22
  214. package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-SJREK2B7.js} +107 -86
  215. package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-XQD4MN4I.js} +19 -19
  216. package/{secretCommands-GGUAWAE7.js → secretCommands-LH7QTJO2.js} +3 -3
  217. package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-JSTQJPXL.js} +19 -18
  218. package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +23 -22
  219. package/{settingThunks-E6N7RSSS.js → settingThunks-C2YWCNYI.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-DB5DKC2J.js → spaceCommands-YRBQ52PG.js} +71 -62
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-NCA4BKDZ.js} +244 -185
  224. package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-G7XVAOGH.js} +20 -19
  225. package/{tableCommands-VNSXHAMG.js → tableCommands-UHEA5QNL.js} +14 -11
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  227. package/{tools-6JD36D6K.js → tools-6WQVUGKV.js} +74 -70
  228. package/tuiRestart-3J7LRMPR.js +41 -0
  229. package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-2J6NG53N.js} +24 -23
  230. package/{updateCommands-KZ54HCU5.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-QCSN3RYO.js} +46 -43
  232. package/{usageCommand-KFVV6UL3.js → usageCommand-SK7JTEPC.js} +3 -3
  233. package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-DF3HUP6F.js} +4 -4
  234. package/webapi-QVV65DQF.js +2487 -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-C65UESYM.js +0 -1004
  241. package/agentRecordCommands-6RCJS2EY.js +0 -176
  242. package/agentRunCommand-P3GRKXKS.js +0 -208
  243. package/chunk-2WZXXAQD.js +0 -57
  244. package/chunk-5ZMIIR23.js +0 -265
  245. package/chunk-62HXNQVV.js +0 -134
  246. package/chunk-BJF2MHJ3.js +0 -118
  247. package/chunk-KEPOVMF4.js +0 -91
  248. package/chunk-PXKF5CV4.js +0 -357
  249. package/chunk-WACI5I6V.js +0 -147
  250. package/chunk-YGILMZ7N.js +0 -81
  251. package/cliLocalAgentRecordReader-SPKAJYME.js +0 -90
  252. package/machineWsRunDispatch-BUUJRUUB.js +0 -191
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
  254. package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
  257. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  258. package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
@@ -1,26 +1,6 @@
1
1
  import {
2
2
  buildCliPrompt
3
3
  } from "./chunk-ATNTHIZI.js";
4
- import {
5
- applyImageConfigRuntimeOverride,
6
- buildDynamicContexts,
7
- buildForegroundTurnAdmissionFetchInit,
8
- buildStaticContexts,
9
- compressOldToolResults,
10
- consumeAgentRunStream,
11
- mergeAgentToolsWithRuntime,
12
- mergeContexts,
13
- projectDesktopToolUiContent,
14
- pushGate,
15
- resolveImageGenerationStreamingState,
16
- resolveTurnToolContext,
17
- targetForRunKind,
18
- validateAccessAndBalance,
19
- withRequestContextBlocks
20
- } from "./chunk-JHF6VLVL.js";
21
- import {
22
- resolveUserSkillRuntime
23
- } from "./chunk-PXKF5CV4.js";
24
4
  import {
25
5
  buildEmptyCompletionRepairBody,
26
6
  buildFinalCompletionsRequestBody,
@@ -30,14 +10,15 @@ import {
30
10
  persistToolMessages,
31
11
  readStreamChunk,
32
12
  sendOpenAICompletionsRequest,
13
+ serializeAgentRunMessages,
33
14
  updateTotalUsage
34
- } from "./chunk-7Z3WUZ4Q.js";
15
+ } from "./chunk-3YYFU6H7.js";
35
16
  import "./chunk-JEXVIMYZ.js";
36
17
  import {
37
18
  inlineImageUrlsForCustomProvider,
38
19
  prepareTools,
39
20
  shouldInlineImageUrlsForAgent
40
- } from "./chunk-2SKTCNWO.js";
21
+ } from "./chunk-W5OJBZLZ.js";
41
22
  import {
42
23
  DirectApiKeyResolutionError,
43
24
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -49,39 +30,58 @@ import {
49
30
  sanitizeOutboundResponsesInput,
50
31
  selectResponsesConversationState,
51
32
  updateResponsesConversationState
52
- } from "./chunk-ZADGPNTV.js";
33
+ } from "./chunk-YHWMKGOX.js";
53
34
  import "./chunk-HS7MLR74.js";
54
- import "./chunk-LXTC53TN.js";
55
- import "./chunk-KFHREHUQ.js";
35
+ import {
36
+ selectMaxExecutionTime
37
+ } from "./chunk-J45ACAOQ.js";
56
38
  import {
57
39
  isGptProModel,
58
40
  isPlatformPaidAgentCall,
59
41
  shouldBlockForGptPro
60
- } from "./chunk-F5AY2UZL.js";
42
+ } from "./chunk-AO6T7U62.js";
43
+ import "./chunk-AMWMV56B.js";
44
+ import "./chunk-MVOZ22RZ.js";
45
+ import "./chunk-WDWZPASX.js";
46
+ import "./chunk-SF4GMDZO.js";
47
+ import "./chunk-KMDHRVS7.js";
48
+ import {
49
+ applyImageConfigRuntimeOverride,
50
+ buildDynamicContexts,
51
+ buildForegroundTurnAdmissionFetchInit,
52
+ buildStaticContexts,
53
+ clearGateTurn,
54
+ compressOldToolResults,
55
+ consumeAgentRunStream,
56
+ mergeAgentToolsWithRuntime,
57
+ mergeContexts,
58
+ projectDesktopToolUiContent,
59
+ pushGate,
60
+ resolveImageGenerationStreamingState,
61
+ resolveTurnToolContext,
62
+ targetForRunKind,
63
+ validateAccessAndBalance,
64
+ withRequestContextBlocks
65
+ } from "./chunk-XYRTC2Y3.js";
66
+ import {
67
+ resolveUserSkillRuntime
68
+ } from "./chunk-NJJK3PDA.js";
61
69
  import {
62
70
  performServerProxyFetchWithRetry
63
- } from "./chunk-ZI5SZ3MV.js";
71
+ } from "./chunk-L6BLA6BT.js";
64
72
  import {
65
73
  createSSEParser,
66
- selectMaxExecutionTime,
67
74
  waitForAbortableDelay
68
- } from "./chunk-GRXSJR2Z.js";
75
+ } from "./chunk-GVTFSLNI.js";
69
76
  import "./chunk-NF64D32W.js";
70
- import "./chunk-3L2WKC3W.js";
71
- import "./chunk-GUVXQSFZ.js";
72
- import "./chunk-FJ23FZXF.js";
73
- import "./chunk-AGIM7IMJ.js";
74
- import "./chunk-63W5N6P3.js";
77
+ import "./chunk-6PXFEPHL.js";
78
+ import "./chunk-AKPKOI5Z.js";
75
79
  import "./chunk-VF4K2QE6.js";
76
- import "./chunk-LA7JYAKF.js";
77
- import "./chunk-XZODOEKU.js";
78
- import "./chunk-4JVNURX4.js";
79
- import "./chunk-MWHOH4RJ.js";
80
- import "./chunk-UCFPVYP7.js";
81
- import "./chunk-AK5O76CC.js";
82
- import "./chunk-SW6OD4KE.js";
83
- import "./chunk-BJF2MHJ3.js";
84
- import "./chunk-TINJKQSO.js";
80
+ import "./chunk-SESKIWB4.js";
81
+ import "./chunk-IFWXH7LH.js";
82
+ import "./chunk-AGIM7IMJ.js";
83
+ import "./chunk-RDPAIR67.js";
84
+ import "./chunk-SQRKAYQW.js";
85
85
  import {
86
86
  addToolMessage,
87
87
  addUserMessage,
@@ -103,25 +103,40 @@ import {
103
103
  updateDialogSummaryAction,
104
104
  updateTokens,
105
105
  updateToolMessage
106
- } from "./chunk-PVAWNHP5.js";
106
+ } from "./chunk-ZP26NIZE.js";
107
107
  import "./chunk-TZXPT53C.js";
108
108
  import "./chunk-BUDVRYES.js";
109
- import "./chunk-KEPOVMF4.js";
110
109
  import "./chunk-523DITKR.js";
111
- import "./chunk-ABGULE7H.js";
110
+ import "./chunk-22YUCKMK.js";
112
111
  import {
113
112
  getCurrentSpaceId
114
- } from "./chunk-NO3VBWTL.js";
113
+ } from "./chunk-RXTZB2DH.js";
115
114
  import "./chunk-BYXBJQAS.js";
116
- import "./chunk-QYPE3TS3.js";
117
115
  import {
118
116
  createCliChatTurnStream,
119
117
  getCliChatSession,
120
118
  startCliChatSession
121
- } from "./chunk-GOQ6ZVTN.js";
119
+ } from "./chunk-AVSZ6PBM.js";
122
120
  import "./chunk-5RGU3J7P.js";
123
121
  import "./chunk-UVLYNWIE.js";
124
122
  import "./chunk-YNIYE47Z.js";
123
+ import "./chunk-CJQBWHNM.js";
124
+ import "./chunk-UAD2WT54.js";
125
+ import {
126
+ patch,
127
+ read,
128
+ selectById,
129
+ write
130
+ } from "./chunk-PDAXMBLW.js";
131
+ import "./chunk-3PVYUPXK.js";
132
+ import "./chunk-2IPR4PBB.js";
133
+ import "./chunk-HXER7YJF.js";
134
+ import "./chunk-FGHEF6WI.js";
135
+ import "./chunk-DXWGFL2Z.js";
136
+ import "./chunk-3L2WKC3W.js";
137
+ import "./chunk-S25VJYXV.js";
138
+ import "./chunk-KQHEGELM.js";
139
+ import "./chunk-QYPE3TS3.js";
125
140
  import {
126
141
  addActiveController,
127
142
  claimDialogTurnPhase,
@@ -135,53 +150,36 @@ import {
135
150
  setDialogTurnPhase,
136
151
  subscribe,
137
152
  tokenUsageLiveUpdate
138
- } from "./chunk-S2NTVGA2.js";
139
- import "./chunk-5FUN7EG4.js";
140
- import {
141
- selectCurrentServer
142
- } from "./chunk-VREDDN25.js";
143
- import "./chunk-VXL2FZTP.js";
144
- import "./chunk-G6HJUMST.js";
145
- import "./chunk-UAD2WT54.js";
146
- import {
147
- patch,
148
- read,
149
- selectById,
150
- write
151
- } from "./chunk-SFTTXGPM.js";
152
- import "./chunk-3PVYUPXK.js";
153
- import "./chunk-PLPLH2XZ.js";
154
- import "./chunk-AXYH4734.js";
155
- import "./chunk-GBWGPTA7.js";
156
- import "./chunk-5RKRXQ2H.js";
153
+ } from "./chunk-U35UUM5K.js";
154
+ import "./chunk-RD3QLZQV.js";
155
+ import "./chunk-5VVP7DW3.js";
157
156
  import {
158
157
  selectRuntimeCurrentServer
159
- } from "./chunk-CSW7IPVD.js";
158
+ } from "./chunk-FMYNIAI6.js";
160
159
  import "./chunk-UEILX4EV.js";
161
- import "./chunk-7Z6EW7AH.js";
160
+ import "./chunk-LC5CVWP2.js";
161
+ import {
162
+ selectCurrentServer
163
+ } from "./chunk-76HAJUOJ.js";
164
+ import "./chunk-QOURTDZL.js";
162
165
  import {
163
166
  getIsDesktopApp
164
- } from "./chunk-AGP3YSEC.js";
167
+ } from "./chunk-5PASH2MB.js";
168
+ import "./chunk-WBSJAIZP.js";
165
169
  import "./chunk-QQ56R7KS.js";
166
170
  import {
167
171
  selectIdentityToken,
168
172
  selectIdentityUser,
169
173
  selectIdentityUserId
170
174
  } from "./chunk-PXYBUFDB.js";
171
- import "./chunk-BV3FLP2L.js";
175
+ import "./chunk-GBWGPTA7.js";
172
176
  import {
173
177
  applyPublicAgentCatalogOverride
174
- } from "./chunk-UVUVQVZ6.js";
178
+ } from "./chunk-MZVCFV3T.js";
175
179
  import {
176
180
  applyBuiltinAgentRuntimeOverride,
177
181
  resolveBuiltinPlatformAgentRecord
178
- } from "./chunk-S6K5F3KP.js";
179
- import "./chunk-LJSNEV7M.js";
180
- import {
181
- getPublicImageAgentDefaultProfile,
182
- getPublicImageAgentMode
183
- } from "./chunk-VIDPVFP3.js";
184
- import "./chunk-4JH2UMJR.js";
182
+ } from "./chunk-JP2BH4NC.js";
185
183
  import {
186
184
  assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
187
185
  buildDesktopAgentRuntimeAgentConfigSnapshot,
@@ -189,109 +187,119 @@ import {
189
187
  evaluateRequestBudget,
190
188
  extractImageUrlsFromMessages,
191
189
  stripImagePartsForTextOnlyAgent
192
- } from "./chunk-C2B7M567.js";
193
- import "./chunk-2WZXXAQD.js";
194
- import "./chunk-3HTP4WZQ.js";
190
+ } from "./chunk-4OXPN3WC.js";
195
191
  import {
196
192
  projectUserPartForModel
197
- } from "./chunk-ULAQPRHX.js";
193
+ } from "./chunk-2FK2KZSL.js";
198
194
  import "./chunk-56GBUMO5.js";
199
- import "./chunk-3VFYQH3I.js";
200
- import "./chunk-YOT437BH.js";
201
- import "./chunk-HOCHUZQ7.js";
202
- import {
203
- resolveRuntimeToolSurfaceForAgent
204
- } from "./chunk-IC2I373Q.js";
195
+ import "./chunk-HIDVLMZC.js";
196
+ import "./chunk-LOF2EFUE.js";
197
+ import "./chunk-FDZ2GBWO.js";
198
+ import "./chunk-QJTZ76CP.js";
205
199
  import {
206
200
  extractImagePartsFromResponseOutput,
207
201
  extractTextFromResponseOutput,
208
202
  toResponsesTools
209
- } from "./chunk-TOKPHZ55.js";
210
- import "./chunk-E2BESSAW.js";
203
+ } from "./chunk-W3HSD32M.js";
204
+ import "./chunk-X4O7FJF5.js";
205
+ import "./chunk-BYXBJQAS.js";
206
+ import "./chunk-SX6AWTNK.js";
211
207
  import {
212
208
  isContextOverflowText,
213
209
  parseApiError
214
210
  } from "./chunk-TLE77UJ5.js";
215
- import "./chunk-X2KRQP7V.js";
211
+ import "./chunk-WFGNWWJI.js";
216
212
  import {
217
213
  resolveAgentCallPlan,
218
214
  resolveClientWire
219
- } from "./chunk-KJAAPGBE.js";
215
+ } from "./chunk-VUHKG4KS.js";
216
+ import "./chunk-JV5FHHF7.js";
220
217
  import {
221
218
  resolveAgentContextWindow
222
- } from "./chunk-YQETUZ5V.js";
219
+ } from "./chunk-LTVEOOZL.js";
223
220
  import "./chunk-5ZUL4CUO.js";
224
221
  import {
225
222
  getModelInfo
226
- } from "./chunk-T2BEPTAG.js";
223
+ } from "./chunk-MAA42MMV.js";
227
224
  import "./chunk-H57T64RA.js";
228
225
  import "./chunk-UKZX3NHN.js";
226
+ import "./chunk-SR4FE5VD.js";
229
227
  import "./chunk-5MMAK75Q.js";
230
- import "./chunk-SSGTV4FC.js";
228
+ import "./chunk-USGHJSGO.js";
229
+ import "./chunk-E6A5NHDH.js";
231
230
  import {
232
231
  asRecordOrEmpty
233
232
  } from "./chunk-KX6YBIHG.js";
234
- import "./chunk-OQHIVPG4.js";
235
- import "./chunk-DWLEOOGR.js";
236
233
  import "./chunk-EWQ3HGNZ.js";
237
234
  import {
238
235
  estimateTokenCount
239
236
  } from "./chunk-PSCNXBYA.js";
237
+ import "./chunk-DWLEOOGR.js";
240
238
  import "./chunk-OW765XBU.js";
241
239
  import {
242
240
  isAbortError
243
241
  } from "./chunk-7DPNBQSV.js";
244
- import "./chunk-62HXNQVV.js";
245
- import "./chunk-VPAZ6BEN.js";
246
- import "./chunk-6EDAMVG6.js";
242
+ import "./chunk-YGDYYFRX.js";
243
+ import "./chunk-2SXN7LAY.js";
244
+ import "./chunk-G7Y4GXTY.js";
245
+ import "./chunk-6UBGXX2W.js";
246
+ import "./chunk-BV3FLP2L.js";
247
+ import "./chunk-TKE4OJ4B.js";
248
+ import "./chunk-AETZ7AD6.js";
249
+ import "./chunk-CO6E7YK6.js";
250
+ import "./chunk-KHCLMKZZ.js";
251
+ import "./chunk-SYTHYBMI.js";
247
252
  import {
248
- isOpenAiResponsesModel
249
- } from "./chunk-45LZIYXB.js";
253
+ createDialogMessageKeyAndId,
254
+ dialogMessageKey
255
+ } from "./chunk-OJKUU3LP.js";
256
+ import "./chunk-YZMNK53S.js";
250
257
  import {
251
- toErrorMessage
252
- } from "./chunk-HNMXYYJR.js";
253
- import "./chunk-KRRE4A7D.js";
254
- import "./chunk-6OVNSQHN.js";
255
- import "./chunk-AETZ7AD6.js";
256
- import "./chunk-EVGU5P4U.js";
258
+ resolveRuntimeToolSurfaceForAgent
259
+ } from "./chunk-NEG5LYK5.js";
260
+ import "./chunk-YLAHYLDQ.js";
257
261
  import {
258
262
  isSystemBuiltinTrustedAgentKey
259
- } from "./chunk-ILHQ2AXT.js";
263
+ } from "./chunk-KZAT2M2V.js";
260
264
  import {
261
265
  extractCustomId
262
266
  } from "./chunk-M2EJHDJP.js";
267
+ import "./chunk-I42VC5KR.js";
268
+ import "./chunk-AS6L5KSD.js";
263
269
  import {
264
- getApiEndpoint
265
- } from "./chunk-KYH7XW3K.js";
266
- import "./chunk-JRTNUU5Z.js";
267
- import {
268
- isRecord
269
- } from "./chunk-KUG52IAP.js";
270
- import "./chunk-OBSEKCVK.js";
271
- import "./chunk-QSJ3HFEF.js";
272
- import "./chunk-JWXITTQB.js";
273
- import "./chunk-L5I543VB.js";
274
- import "./chunk-KHCLMKZZ.js";
270
+ getPublicImageAgentDefaultProfile,
271
+ getPublicImageAgentMode
272
+ } from "./chunk-VIDPVFP3.js";
273
+ import "./chunk-4JH2UMJR.js";
274
+ import "./chunk-U6VC4MU4.js";
275
275
  import "./chunk-LCBAMY2M.js";
276
- import "./chunk-4SN6J65J.js";
277
- import "./chunk-CF7PE763.js";
278
- import "./chunk-G7Y4GXTY.js";
279
- import "./chunk-6UBGXX2W.js";
280
- import "./chunk-SYTHYBMI.js";
276
+ import "./chunk-6ASGEP5D.js";
277
+ import "./chunk-CTWCZKNS.js";
281
278
  import {
282
- createDialogMessageKeyAndId,
283
- dialogMessageKey
284
- } from "./chunk-OJKUU3LP.js";
285
- import "./chunk-YZMNK53S.js";
286
- import "./chunk-I42VC5KR.js";
279
+ toErrorMessage
280
+ } from "./chunk-HNMXYYJR.js";
281
+ import "./chunk-K26XPZRB.js";
282
+ import {
283
+ isOpenAiResponsesModel
284
+ } from "./chunk-ESN4WNWU.js";
287
285
  import {
288
286
  asTrimmedString
289
287
  } from "./chunk-3EUW3WEO.js";
290
- import "./chunk-U6VC4MU4.js";
291
288
  import "./chunk-WWC7I6TA.js";
289
+ import {
290
+ getApiEndpoint
291
+ } from "./chunk-CD2DK5JA.js";
292
+ import "./chunk-JRTNUU5Z.js";
293
+ import {
294
+ isRecord
295
+ } from "./chunk-KUG52IAP.js";
292
296
  import {
293
297
  asOptionalTrimmedString
294
298
  } from "./chunk-G3SUCT4W.js";
299
+ import "./chunk-4SN6J65J.js";
300
+ import "./chunk-CF7PE763.js";
301
+ import "./chunk-PQ63BDV3.js";
302
+ import "./chunk-QSJ3HFEF.js";
295
303
  import "./chunk-U67V476Y.js";
296
304
 
297
305
  // packages/ai/agent/isVoiceModel.ts
@@ -531,7 +539,8 @@ var sendOpenAIResponseRequest = async ({
531
539
  parentMessageId,
532
540
  messageMetadata,
533
541
  quickChatPerfStartedAt,
534
- fallbackBodyData
542
+ fallbackBodyData,
543
+ userMessageId
535
544
  }) => {
536
545
  const { dispatch, getState, signal: thunkSignal } = thunkApi;
537
546
  const dialogId = extractCustomId(dialogKey);
@@ -764,7 +773,8 @@ var sendOpenAIResponseRequest = async ({
764
773
  agentConfig,
765
774
  messageId,
766
775
  dialogId,
767
- dialogKey
776
+ dialogKey,
777
+ userMessageId
768
778
  })
769
779
  ).unwrap();
770
780
  state.content = Array.isArray(result.finalContentBuffer) ? result.finalContentBuffer.filter((part) => part?.type === "text").map((part) => part.text ?? "").join("") : state.content;
@@ -1321,6 +1331,7 @@ async function* runDesktopAgentRuntimeTurnStream({
1321
1331
  fetchImpl = fetch,
1322
1332
  signal,
1323
1333
  noEventWatchdogMs,
1334
+ authToken,
1324
1335
  ...args
1325
1336
  }) {
1326
1337
  try {
@@ -1328,9 +1339,13 @@ async function* runDesktopAgentRuntimeTurnStream({
1328
1339
  yield { type: "error", error: "The operation was aborted." };
1329
1340
  return;
1330
1341
  }
1342
+ const trimmedAuthToken = asTrimmedString(authToken) ?? "";
1331
1343
  const response = await fetchImpl("/api/desktop/agent-runtime/turn", {
1332
1344
  method: "POST",
1333
- headers: { "Content-Type": "application/json" },
1345
+ headers: {
1346
+ "Content-Type": "application/json",
1347
+ ...trimmedAuthToken ? { Authorization: `Bearer ${trimmedAuthToken}` } : {}
1348
+ },
1334
1349
  body: JSON.stringify(buildDesktopAgentRuntimeTurnBody(args)),
1335
1350
  signal
1336
1351
  });
@@ -2046,7 +2061,45 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2046
2061
  let loopKey = null;
2047
2062
  let runtimeDialogKey = explicitDialogKey ?? null;
2048
2063
  let turnPhaseTurnId = null;
2064
+ const secretGateTurnId = createDialogMessageKeyAndId("secret-gate").messageId;
2065
+ const secretGateAnchors = /* @__PURE__ */ new Set();
2066
+ const receiveActionGate = (gate, target, dialogId) => {
2067
+ const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
2068
+ if (!secret || target?.kind === "local") {
2069
+ pushGate(gate, target);
2070
+ return;
2071
+ }
2072
+ const { messageId, key } = createDialogMessageKeyAndId(dialogId);
2073
+ secretGateAnchors.add(messageId);
2074
+ pushGate(gate, target, { dialogId, turnId: secretGateTurnId, messageId });
2075
+ dispatch(messageStreaming({
2076
+ id: messageId,
2077
+ dbKey: key,
2078
+ dialogId,
2079
+ role: "tool",
2080
+ toolName: "secret-request",
2081
+ content: "",
2082
+ isStreaming: true
2083
+ }));
2084
+ };
2049
2085
  const batchExecution = createUserBatchExecution(loopController.signal, () => !thunkApi.signal.aborted && (!turnPhaseTurnId || !runtimeDialogKey || getDialogRuntimeState(runtimeDialogKey).turnPhaseTurnId === turnPhaseTurnId));
2086
+ const workMemoryUserMessageId = (dialogId, activeId) => {
2087
+ if (!activeId) return void 0;
2088
+ const users = selectAllMsgs(getState(), dialogId).filter((message) => message.role === "user");
2089
+ const bound = users.find((message) => message.id === activeId);
2090
+ if (!bound || bound.metadata?.queueState === "pending") return void 0;
2091
+ const receipt = bound.metadata?.userBatchReceipt;
2092
+ if (receipt) {
2093
+ const ids = receipt.messageIds;
2094
+ return Array.isArray(ids) && ids.length === 1 && ids[0] === activeId ? activeId : void 0;
2095
+ }
2096
+ const batchId = bound.metadata?.acceptedUserBatchId;
2097
+ if (batchId) {
2098
+ const batch = users.filter((message) => message.metadata?.acceptedUserBatchId === batchId);
2099
+ return batch.length === 1 && batch[0]?.id === activeId ? activeId : void 0;
2100
+ }
2101
+ return activeId;
2102
+ };
2050
2103
  let remoteTransientMessageId = null;
2051
2104
  let remoteTransientMessageFinalized = false;
2052
2105
  let modelRequestStarted = false;
@@ -2241,7 +2294,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2241
2294
  agentKey,
2242
2295
  userInput: agentRunUserInput,
2243
2296
  ...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
2244
- messages: cleanedMessages,
2297
+ messages: serializeAgentRunMessages(cleanedMessages),
2245
2298
  stream: true,
2246
2299
  persistDialog: true,
2247
2300
  continueDialogId: dialogId2,
@@ -2252,7 +2305,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2252
2305
  runtime: "react",
2253
2306
  entrypoint: "chat-dialog",
2254
2307
  capabilities: ["streaming", "dialog-ui", "machine-bound-cli", "durable-user-batch", "client-user-prepersisted"],
2255
- userMessageId: selectAdmittedMessages(selectAllMsgs(getState(), dialogId2)).filter((message) => message.role === "user").at(-1)?.id
2308
+ ...args.userMessageId ? { userMessageId: args.userMessageId } : {}
2256
2309
  },
2257
2310
  ...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
2258
2311
  }),
@@ -2300,12 +2353,13 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2300
2353
  return { reject: payload.message || "\u7535\u8111\u7AEF Agent \u6267\u884C\u5931\u8D25" };
2301
2354
  }
2302
2355
  if (payload.type === "action_gate" && payload.gate) {
2303
- pushGate(
2356
+ receiveActionGate(
2304
2357
  payload.gate,
2305
2358
  targetForRunKind("server-run", {
2306
2359
  server: currentServer2,
2307
2360
  token
2308
- })
2361
+ }),
2362
+ dialogId2
2309
2363
  );
2310
2364
  }
2311
2365
  remoteToolHandlers.handleToolPayload(payload);
@@ -2715,6 +2769,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2715
2769
  };
2716
2770
  try {
2717
2771
  const desktopAgentRef = agentConfig.dbKey || agentKey;
2772
+ const desktopTurnAuthToken = selectIdentityToken(getState());
2718
2773
  const eventStream = await dispatch(runPendingUserBatchRequest({
2719
2774
  dialogKey,
2720
2775
  signal: loopController.signal,
@@ -2752,7 +2807,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2752
2807
  // 未分类的 "stream stalled" 而不是 runtime 的
2753
2808
  // LLM_REQUEST_TIMEOUT 可操作文案。取 2× = 20 分钟:
2754
2809
  // 只兜「runtime 完全没 deadline」的真悬挂。
2755
- noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS
2810
+ noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS,
2811
+ ...desktopTurnAuthToken ? { authToken: desktopTurnAuthToken } : {}
2756
2812
  });
2757
2813
  const first = iterator.next();
2758
2814
  return async function* () {
@@ -2857,9 +2913,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2857
2913
  } else if (event.type === "execution_location") {
2858
2914
  desktopToolExecutionLocation = event.location;
2859
2915
  } else if (event.type === "action_gate") {
2860
- pushGate(
2916
+ receiveActionGate(
2861
2917
  event.gate,
2862
- targetForRunKind("desktop-local")
2918
+ targetForRunKind("desktop-local"),
2919
+ dialogId
2863
2920
  );
2864
2921
  } else if (event.type === "done") {
2865
2922
  streamResult = event.result;
@@ -3177,7 +3234,7 @@ ${info.actionHint}` : streamError;
3177
3234
  agentKey,
3178
3235
  userInput: agentRunUserInput,
3179
3236
  ...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
3180
- messages: cleanedMessages,
3237
+ messages: serializeAgentRunMessages(cleanedMessages),
3181
3238
  stream: true,
3182
3239
  persistDialog: false,
3183
3240
  clientDialogId: dialogId,
@@ -3257,12 +3314,13 @@ ${info.actionHint}` : streamError;
3257
3314
  return { reject: payload.message || "\u8FDC\u7AEF Agent \u6267\u884C\u5931\u8D25" };
3258
3315
  }
3259
3316
  if (payload.type === "action_gate" && payload.gate) {
3260
- pushGate(
3317
+ receiveActionGate(
3261
3318
  payload.gate,
3262
3319
  targetForRunKind("server-run", {
3263
3320
  server: explicitServerBase,
3264
3321
  token
3265
- })
3322
+ }),
3323
+ dialogId
3266
3324
  );
3267
3325
  }
3268
3326
  if (payload.type === "agent_handoff") {
@@ -3368,7 +3426,8 @@ ${info.actionHint}` : streamError;
3368
3426
  referencedTools: referenceTools,
3369
3427
  recommendedSkillTools: turnToolContext.recommendedSkillTools,
3370
3428
  recommendedSkillHints: turnToolContext.recommendedSkillHints,
3371
- skillPromptPatches: turnToolContext.skillPromptPatches
3429
+ skillPromptPatches: turnToolContext.skillPromptPatches,
3430
+ skillPromptContributions: turnToolContext.skillPromptContributions
3372
3431
  };
3373
3432
  const initialRawMsgs = selectAdmittedMessages(selectAllMsgs(state, dialogId));
3374
3433
  const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
@@ -3418,7 +3477,7 @@ ${info.actionHint}` : streamError;
3418
3477
  responseApi: true
3419
3478
  });
3420
3479
  let appendTempUserInput2 = true;
3421
- let activeTurnUserMessageId2;
3480
+ let activeTurnUserMessageId2 = args.userMessageId;
3422
3481
  let currentParentMessageId2 = parentMessageId ?? void 0;
3423
3482
  const storedResponsesState = currentDialog?.responsesState;
3424
3483
  let responsesState = selectResponsesConversationState(
@@ -3552,12 +3611,6 @@ ${info.actionHint}` : streamError;
3552
3611
  isStreaming: false
3553
3612
  }
3554
3613
  ];
3555
- activeTurnUserMessageId2 = tempId;
3556
- } else {
3557
- const lastMsg = visibleMessages[visibleMessages.length - 1];
3558
- if (lastMsg && typeof lastMsg.id === "string") {
3559
- activeTurnUserMessageId2 = lastMsg.id;
3560
- }
3561
3614
  }
3562
3615
  }
3563
3616
  const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
@@ -3618,24 +3671,28 @@ ${info.actionHint}` : streamError;
3618
3671
  dynamicMessageCount: dynamicMessages.length,
3619
3672
  stableMessageCount: stableMessages.length
3620
3673
  });
3621
- modelRequestStarted = true;
3622
3674
  const meta = await dispatch(runPendingUserBatchRequest({
3623
3675
  dialogKey,
3624
3676
  signal: loopController.signal,
3625
3677
  execution: batchExecution,
3626
3678
  requestUserInput,
3627
- start: () => sendOpenAIResponseRequest({
3628
- bodyData,
3629
- agentConfig: agentConfigForCall,
3630
- thunkApi,
3631
- dialogKey,
3632
- parentMessageId: currentParentMessageId2,
3633
- messageMetadata: streamingMessageMetadata,
3634
- quickChatPerfStartedAt,
3635
- fallbackBodyData
3636
- })
3679
+ start: () => {
3680
+ modelRequestStarted = true;
3681
+ return sendOpenAIResponseRequest({
3682
+ bodyData,
3683
+ agentConfig: agentConfigForCall,
3684
+ thunkApi,
3685
+ dialogKey,
3686
+ parentMessageId: currentParentMessageId2,
3687
+ messageMetadata: streamingMessageMetadata,
3688
+ quickChatPerfStartedAt,
3689
+ fallbackBodyData,
3690
+ userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId2)
3691
+ });
3692
+ }
3637
3693
  })).unwrap();
3638
- if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
3694
+ if (isTurnAborted()) return { aborted: true };
3695
+ if (!meta) throw new Error("Model request returned no result; reply did not complete");
3639
3696
  logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
3640
3697
  responseApi: true,
3641
3698
  hasToolCalls: meta.hasToolCalls,
@@ -3742,7 +3799,7 @@ ${info.actionHint}` : streamError;
3742
3799
  responseApi: false
3743
3800
  });
3744
3801
  let appendTempUserInput = true;
3745
- let activeTurnUserMessageId;
3802
+ let activeTurnUserMessageId = args.userMessageId;
3746
3803
  let currentParentMessageId = parentMessageId ?? void 0;
3747
3804
  const w = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
3748
3805
  if (w) w.__LOOP_STOP_REASON__ = null;
@@ -3865,12 +3922,6 @@ ${info.actionHint}` : streamError;
3865
3922
  isStreaming: false
3866
3923
  }
3867
3924
  ];
3868
- activeTurnUserMessageId = tempId;
3869
- } else {
3870
- const lastMsg = visibleMessages[visibleMessages.length - 1];
3871
- if (lastMsg && typeof lastMsg.id === "string") {
3872
- activeTurnUserMessageId = lastMsg.id;
3873
- }
3874
3925
  }
3875
3926
  }
3876
3927
  const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
@@ -3930,7 +3981,6 @@ ${info.actionHint}` : streamError;
3930
3981
  dynamicMessageCount: dynamicMessages.length,
3931
3982
  stableMessageCount: stableMessages.length
3932
3983
  });
3933
- modelRequestStarted = true;
3934
3984
  const disableToolsForThisRequest = shouldDisableQuickChatToolsForDirectAnswer(
3935
3985
  quickChatPerfStartedAt,
3936
3986
  userInput,
@@ -3952,18 +4002,23 @@ ${info.actionHint}` : streamError;
3952
4002
  signal: loopController.signal,
3953
4003
  execution: batchExecution,
3954
4004
  requestUserInput,
3955
- start: () => sendOpenAICompletionsRequest({
3956
- bodyData,
3957
- agentConfig: agentConfigForCall,
3958
- thunkApi,
3959
- dialogKey,
3960
- parentMessageId: currentParentMessageId,
3961
- messageMetadata: streamingMessageMetadata,
3962
- disableToolsForThisRequest,
3963
- quickChatPerfStartedAt
3964
- })
4005
+ start: () => {
4006
+ modelRequestStarted = true;
4007
+ return sendOpenAICompletionsRequest({
4008
+ bodyData,
4009
+ agentConfig: agentConfigForCall,
4010
+ thunkApi,
4011
+ dialogKey,
4012
+ parentMessageId: currentParentMessageId,
4013
+ messageMetadata: streamingMessageMetadata,
4014
+ disableToolsForThisRequest,
4015
+ quickChatPerfStartedAt,
4016
+ userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId)
4017
+ });
4018
+ }
3965
4019
  })).unwrap();
3966
- if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
4020
+ if (isTurnAborted()) return { aborted: true };
4021
+ if (!meta) throw new Error("Model request returned no result; reply did not complete");
3967
4022
  logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
3968
4023
  responseApi: false,
3969
4024
  hasToolCalls: meta.hasToolCalls,
@@ -4019,6 +4074,8 @@ ${info.actionHint}` : streamError;
4019
4074
  break;
4020
4075
  }
4021
4076
  }
4077
+ if (isTurnAborted()) return { aborted: true };
4078
+ if (!modelRequestStarted) throw new Error("Model request did not start; reply did not complete");
4022
4079
  return {
4023
4080
  usage: totalTurnUsage ?? void 0
4024
4081
  };
@@ -4067,6 +4124,8 @@ ${info.actionHint}` : streamError;
4067
4124
  );
4068
4125
  } finally {
4069
4126
  batchExecution.dispose();
4127
+ clearGateTurn(secretGateTurnId);
4128
+ for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
4070
4129
  clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
4071
4130
  if (loopKey && runtimeDialogKey) {
4072
4131
  dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));