nolo-cli 0.228.0-alpha.2 → 0.228.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 (260) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  13. package/agentRecordCommands-4NTVR6MZ.js +194 -0
  14. package/agentRunCommand-VHF34PYC.js +232 -0
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
  28. package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
  29. package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
  30. package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
  31. package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
  32. package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
  33. package/chunk-2SXN7LAY.js +15 -0
  34. package/chunk-3A5NNQCN.js +64 -0
  35. package/chunk-3F2FRLIO.js +372 -0
  36. package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
  37. package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
  38. package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53W5BXLN.js +340 -0
  41. package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
  42. package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
  43. package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
  44. package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
  45. package/chunk-6PAHSSD2.js +33401 -0
  46. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  47. package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
  48. package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
  49. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  50. package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
  51. package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
  52. package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
  53. package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
  54. package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
  55. package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
  56. package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
  57. package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
  58. package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
  59. package/chunk-C5A54QS7.js +108 -0
  60. package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
  61. package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
  62. package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
  65. package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
  66. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  67. package/chunk-EHFBP6IK.js +791 -0
  68. package/chunk-EJQE5HB7.js +21 -0
  69. package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
  70. package/chunk-EUGTFFO6.js +42 -0
  71. package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
  72. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  73. package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
  74. package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
  75. package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
  76. package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
  77. package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
  78. package/chunk-GAHJLSDO.js +107 -0
  79. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  80. package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
  81. package/chunk-HEVRQGGH.js +106 -0
  82. package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
  83. package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
  84. package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
  85. package/chunk-IIRJ4P4I.js +24 -0
  86. package/chunk-IVK2KT3H.js +209 -0
  87. package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
  88. package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
  89. package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
  90. package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
  91. package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
  92. package/chunk-JLZJL3WC.js +988 -0
  93. package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
  94. package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
  95. package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
  96. package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
  97. package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
  98. package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
  99. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  100. package/chunk-KXOPLLFP.js +190 -0
  101. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  102. package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
  103. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  104. package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
  105. package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
  106. package/chunk-MVOZ22RZ.js +26 -0
  107. package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
  108. package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
  109. package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
  110. package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
  111. package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
  112. package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
  113. package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
  114. package/chunk-OQFOE4SJ.js +405 -0
  115. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
  118. package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
  119. package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
  120. package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
  121. package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
  122. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  123. package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
  124. package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
  125. package/chunk-R3FZHW4Q.js +103 -0
  126. package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
  127. package/chunk-R72QWIFO.js +50 -0
  128. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  129. package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
  130. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  131. package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
  132. package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
  133. package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
  134. package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
  135. package/chunk-SQL7YNED.js +650 -0
  136. package/chunk-SR4FE5VD.js +9 -0
  137. package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
  138. package/chunk-TRRXYFTR.js +46 -0
  139. package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
  140. package/chunk-TYJCIA2O.js +835 -0
  141. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  142. package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
  143. package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
  144. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  145. package/chunk-UAF5VQCE.js +77 -0
  146. package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
  147. package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
  148. package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
  149. package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
  150. package/chunk-V5TI7HJH.js +133 -0
  151. package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
  152. package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
  153. package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
  154. package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
  155. package/chunk-WDWZPASX.js +29 -0
  156. package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
  157. package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
  158. package/chunk-XRGBJHZX.js +136 -0
  159. package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
  160. package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
  161. package/chunk-YJPK35HB.js +175 -0
  162. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  163. package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
  164. package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
  165. package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
  166. package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
  167. package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
  168. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
  169. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  170. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
  171. package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
  172. package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
  173. package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
  174. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
  175. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
  176. package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
  177. package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
  178. package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
  179. package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
  180. package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
  181. package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
  182. package/dialogMessageRecord-OAV77LT7.js +7 -0
  183. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
  184. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
  185. package/dialogTraceCommand-EW2KK6A4.js +961 -0
  186. package/dialogUsageCommand-WJ3U6KZU.js +27 -0
  187. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
  188. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
  189. package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
  190. package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
  191. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
  192. package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
  193. package/fetchMessages-TQEUZD7H.js +1 -1
  194. package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
  195. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
  196. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
  197. package/index.js +23 -11
  198. package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
  199. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
  200. package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
  201. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  202. package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
  203. package/machineWsRunDispatch-PDWYB33B.js +209 -0
  204. package/markdownToSlate-PXYAIBVL.js +8 -0
  205. package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
  206. package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
  207. package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
  208. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  209. package/package.json +2 -1
  210. package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
  211. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
  212. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
  213. package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
  214. package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
  215. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
  216. package/rememberExplicit-CPAPONSI.js +15 -0
  217. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
  218. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
  219. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
  220. package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
  221. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
  222. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
  223. package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
  224. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
  225. package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
  226. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
  227. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
  228. package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
  229. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  230. package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
  231. package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
  232. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
  233. package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
  234. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
  235. package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
  236. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
  237. package/webapi-QVV65DQF.js +2487 -0
  238. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
  239. package/workContext-Y3ADAPZU.js +14 -0
  240. package/workContextAccess-VU5I4LKZ.js +11 -0
  241. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  242. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-P2SJVV3S.js} +2 -2
  243. package/agentRecordCommands-IZYUVHME.js +0 -177
  244. package/agentRunCommand-QM7ETUTX.js +0 -209
  245. package/chunk-2YGBI2XB.js +0 -30
  246. package/chunk-5ZMIIR23.js +0 -265
  247. package/chunk-5ZUOVCKT.js +0 -32
  248. package/chunk-62HXNQVV.js +0 -134
  249. package/chunk-FJSNBZXR.js +0 -142
  250. package/chunk-FPBJM2BW.js +0 -689
  251. package/chunk-JQZRSXS5.js +0 -90
  252. package/chunk-P2ZLUIW2.js +0 -795
  253. package/chunk-PPJYZRSQ.js +0 -160
  254. package/chunk-TUSTONB3.js +0 -81
  255. package/chunk-ZXF6D3I6.js +0 -359
  256. package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
  257. package/lib-OT5OTXRU.js +0 -21046
  258. package/localRuntimeAuthority-IBJAT62G.js +0 -16
  259. package/machineWsRunDispatch-L6H7J66T.js +0 -192
  260. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
@@ -6,6 +6,8 @@ import {
6
6
  buildDynamicContexts,
7
7
  buildForegroundTurnAdmissionFetchInit,
8
8
  buildStaticContexts,
9
+ canProxyToExplicitServerBase,
10
+ clearGateTurn,
9
11
  compressOldToolResults,
10
12
  consumeAgentRunStream,
11
13
  mergeAgentToolsWithRuntime,
@@ -17,10 +19,10 @@ import {
17
19
  targetForRunKind,
18
20
  validateAccessAndBalance,
19
21
  withRequestContextBlocks
20
- } from "./chunk-X3E6EHJW.js";
22
+ } from "./chunk-E3LSO6EI.js";
21
23
  import {
22
24
  resolveUserSkillRuntime
23
- } from "./chunk-ZXF6D3I6.js";
25
+ } from "./chunk-V5TI7HJH.js";
24
26
  import {
25
27
  buildEmptyCompletionRepairBody,
26
28
  buildFinalCompletionsRequestBody,
@@ -32,13 +34,13 @@ import {
32
34
  sendOpenAICompletionsRequest,
33
35
  serializeAgentRunMessages,
34
36
  updateTotalUsage
35
- } from "./chunk-MJI3UAXN.js";
37
+ } from "./chunk-Z2OWAYMI.js";
36
38
  import "./chunk-JEXVIMYZ.js";
37
39
  import {
38
40
  inlineImageUrlsForCustomProvider,
39
41
  prepareTools,
40
42
  shouldInlineImageUrlsForAgent
41
- } from "./chunk-OTKSESZR.js";
43
+ } from "./chunk-KDBDOXOM.js";
42
44
  import {
43
45
  DirectApiKeyResolutionError,
44
46
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -50,39 +52,33 @@ import {
50
52
  sanitizeOutboundResponsesInput,
51
53
  selectResponsesConversationState,
52
54
  updateResponsesConversationState
53
- } from "./chunk-XTJKU3Z4.js";
54
- import "./chunk-HS7MLR74.js";
55
- import "./chunk-GAYNXB6T.js";
55
+ } from "./chunk-FYAMUU55.js";
56
+ import "./chunk-KZ4A7EIV.js";
56
57
  import {
57
- isGptProModel,
58
- isPlatformPaidAgentCall,
59
- shouldBlockForGptPro
60
- } from "./chunk-RRDRQOEC.js";
61
- import "./chunk-AMWMV56B.js";
62
- import "./chunk-6QHKRARD.js";
58
+ selectMaxExecutionTime
59
+ } from "./chunk-U3BUWDUP.js";
60
+ import "./chunk-3F2FRLIO.js";
61
+ import "./chunk-MVOZ22RZ.js";
62
+ import "./chunk-KG27JIG4.js";
63
63
  import {
64
64
  performServerProxyFetchWithRetry
65
- } from "./chunk-EGHP7KOY.js";
65
+ } from "./chunk-QONAOHVW.js";
66
66
  import {
67
67
  createSSEParser,
68
- selectMaxExecutionTime,
69
68
  waitForAbortableDelay
70
- } from "./chunk-HF7BLF3F.js";
69
+ } from "./chunk-SSOR2EDT.js";
71
70
  import "./chunk-NF64D32W.js";
72
- import "./chunk-RBPUNSG5.js";
73
- import "./chunk-4JVNURX4.js";
74
- import "./chunk-HYLRQDEE.js";
75
- import "./chunk-BP5ZJ6B4.js";
76
- import "./chunk-FJ23FZXF.js";
77
- import "./chunk-AGIM7IMJ.js";
78
- import "./chunk-63W5N6P3.js";
71
+ import "./chunk-R3FZHW4Q.js";
72
+ import "./chunk-WDWZPASX.js";
73
+ import "./chunk-OJSJJKHF.js";
74
+ import "./chunk-WSLL7VV4.js";
79
75
  import "./chunk-VF4K2QE6.js";
80
- import "./chunk-LYD6C7OU.js";
81
- import "./chunk-4QYJPWHH.js";
82
- import "./chunk-HXB4VDGK.js";
83
- import {
84
- getCurrentSpaceId
85
- } from "./chunk-547ENH5T.js";
76
+ import "./chunk-LLUBUHNT.js";
77
+ import "./chunk-U6QNVOR5.js";
78
+ import "./chunk-AGIM7IMJ.js";
79
+ import "./chunk-MNFUKRRU.js";
80
+ import "./chunk-YXK3GJF5.js";
81
+ import "./chunk-WD5547ZF.js";
86
82
  import {
87
83
  addToolMessage,
88
84
  addUserMessage,
@@ -104,19 +100,48 @@ import {
104
100
  updateDialogSummaryAction,
105
101
  updateTokens,
106
102
  updateToolMessage
107
- } from "./chunk-7BCG67EI.js";
108
- import "./chunk-TZXPT53C.js";
103
+ } from "./chunk-EVHTYVD2.js";
109
104
  import "./chunk-BUDVRYES.js";
105
+ import "./chunk-TZXPT53C.js";
110
106
  import "./chunk-523DITKR.js";
111
- import "./chunk-WCFFRBL5.js";
107
+ import "./chunk-7PON4LBY.js";
108
+ import {
109
+ getCurrentSpaceId
110
+ } from "./chunk-YN23INFZ.js";
112
111
  import "./chunk-BYXBJQAS.js";
113
- import "./chunk-QYPE3TS3.js";
114
112
  import {
115
113
  createCliChatTurnStream,
116
114
  getCliChatSession,
117
115
  startCliChatSession
118
- } from "./chunk-RG2DGNL6.js";
116
+ } from "./chunk-6VEO7Z3Y.js";
119
117
  import "./chunk-5RGU3J7P.js";
118
+ import "./chunk-UVLYNWIE.js";
119
+ import "./chunk-YNIYE47Z.js";
120
+ import {
121
+ selectCurrentServer
122
+ } from "./chunk-BZMDWGQQ.js";
123
+ import "./chunk-46FETNLF.js";
124
+ import "./chunk-UAD2WT54.js";
125
+ import {
126
+ patch,
127
+ read,
128
+ selectById,
129
+ write
130
+ } from "./chunk-ADYWV732.js";
131
+ import "./chunk-3PVYUPXK.js";
132
+ import "./chunk-WS36XPJD.js";
133
+ import "./chunk-HXER7YJF.js";
134
+ import {
135
+ isGptProModel,
136
+ isPlatformPaidAgentCall,
137
+ shouldBlockForGptPro
138
+ } from "./chunk-PNLDLUMO.js";
139
+ import "./chunk-AMWMV56B.js";
140
+ import "./chunk-DXWGFL2Z.js";
141
+ import "./chunk-3L2WKC3W.js";
142
+ import "./chunk-S25VJYXV.js";
143
+ import "./chunk-KQHEGELM.js";
144
+ import "./chunk-QYPE3TS3.js";
120
145
  import {
121
146
  addActiveController,
122
147
  claimDialogTurnPhase,
@@ -130,59 +155,32 @@ import {
130
155
  setDialogTurnPhase,
131
156
  subscribe,
132
157
  tokenUsageLiveUpdate
133
- } from "./chunk-S2NTVGA2.js";
134
- import "./chunk-UVLYNWIE.js";
135
- import "./chunk-YNIYE47Z.js";
136
- import "./chunk-5FUN7EG4.js";
137
- import "./chunk-5ZUOVCKT.js";
138
- import "./chunk-DXWGFL2Z.js";
139
- import "./chunk-3L2WKC3W.js";
140
- import "./chunk-TI2EPRHE.js";
141
- import {
142
- selectCurrentServer
143
- } from "./chunk-ATEKLSLR.js";
144
- import "./chunk-DEA37IUY.js";
145
- import "./chunk-UAD2WT54.js";
146
- import {
147
- patch,
148
- read,
149
- selectById,
150
- write
151
- } from "./chunk-CMMI3DAT.js";
152
- import "./chunk-3PVYUPXK.js";
153
- import "./chunk-DGYCDA6W.js";
154
- import "./chunk-4ZGPHFLE.js";
158
+ } from "./chunk-U35UUM5K.js";
159
+ import "./chunk-RD3QLZQV.js";
160
+ import "./chunk-7BIJFGKS.js";
155
161
  import {
156
162
  selectRuntimeCurrentServer
157
- } from "./chunk-R6Z5S5GA.js";
158
- import "./chunk-UEILX4EV.js";
159
- import "./chunk-7Z6EW7AH.js";
163
+ } from "./chunk-HPDLPEUG.js";
164
+ import "./chunk-ZTHAJU3O.js";
160
165
  import {
161
166
  getIsDesktopApp
162
- } from "./chunk-4N6G2CKP.js";
167
+ } from "./chunk-HDKMVYNJ.js";
168
+ import "./chunk-YJPK35HB.js";
169
+ import "./chunk-UEILX4EV.js";
170
+ import "./chunk-QQ56R7KS.js";
163
171
  import {
164
172
  selectIdentityToken,
165
173
  selectIdentityUser,
166
174
  selectIdentityUserId
167
175
  } from "./chunk-PXYBUFDB.js";
168
- import "./chunk-QQ56R7KS.js";
169
176
  import "./chunk-GBWGPTA7.js";
170
- import "./chunk-OOJNQK6V.js";
171
- import "./chunk-HXER7YJF.js";
172
- import "./chunk-BV3FLP2L.js";
173
177
  import {
174
178
  applyPublicAgentCatalogOverride
175
- } from "./chunk-DBUR22G5.js";
179
+ } from "./chunk-223KZUJ6.js";
176
180
  import {
177
181
  applyBuiltinAgentRuntimeOverride,
178
182
  resolveBuiltinPlatformAgentRecord
179
- } from "./chunk-S6K5F3KP.js";
180
- import "./chunk-SRCCSTIM.js";
181
- import {
182
- getPublicImageAgentDefaultProfile,
183
- getPublicImageAgentMode
184
- } from "./chunk-VIDPVFP3.js";
185
- import "./chunk-4JH2UMJR.js";
183
+ } from "./chunk-CEKRIR22.js";
186
184
  import {
187
185
  assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
188
186
  buildDesktopAgentRuntimeAgentConfigSnapshot,
@@ -190,109 +188,121 @@ import {
190
188
  evaluateRequestBudget,
191
189
  extractImageUrlsFromMessages,
192
190
  stripImagePartsForTextOnlyAgent
193
- } from "./chunk-XAG3FWBE.js";
191
+ } from "./chunk-5ISNPTQH.js";
194
192
  import "./chunk-BYXBJQAS.js";
195
- import "./chunk-DUUDXSLX.js";
193
+ import "./chunk-BZLGPM5B.js";
196
194
  import {
197
195
  projectUserPartForModel
198
- } from "./chunk-QYB23WUH.js";
196
+ } from "./chunk-AIFQKNPP.js";
199
197
  import "./chunk-56GBUMO5.js";
200
- import "./chunk-FPBJM2BW.js";
198
+ import "./chunk-TYJCIA2O.js";
199
+ import "./chunk-VJFDG3ZG.js";
200
+ import "./chunk-LS5KAVFQ.js";
201
201
  import {
202
202
  extractImagePartsFromResponseOutput,
203
203
  extractTextFromResponseOutput,
204
204
  toResponsesTools
205
- } from "./chunk-EEOOBRA7.js";
205
+ } from "./chunk-FXEPZKNJ.js";
206
206
  import "./chunk-X4O7FJF5.js";
207
- import "./chunk-MNEZUL5S.js";
208
- import "./chunk-QJTZ76CP.js";
209
- import {
210
- resolveRuntimeToolSurfaceForAgent
211
- } from "./chunk-VS276URX.js";
212
207
  import {
213
208
  isContextOverflowText,
214
209
  parseApiError
215
210
  } from "./chunk-TLE77UJ5.js";
211
+ import "./chunk-VH7UO6E5.js";
212
+ import "./chunk-KXOPLLFP.js";
216
213
  import {
217
214
  resolveAgentCallPlan,
218
215
  resolveClientWire
219
- } from "./chunk-OBIC6EG7.js";
220
- import "./chunk-WFGNWWJI.js";
221
- import "./chunk-FJSNBZXR.js";
216
+ } from "./chunk-DNNPARJK.js";
222
217
  import {
223
218
  resolveAgentContextWindow
224
- } from "./chunk-QRGDJA4B.js";
219
+ } from "./chunk-7WHCIA5V.js";
225
220
  import "./chunk-5ZUL4CUO.js";
226
221
  import {
227
222
  getModelInfo
228
- } from "./chunk-L32W3PRP.js";
223
+ } from "./chunk-2FZVXOFX.js";
229
224
  import "./chunk-H57T64RA.js";
230
225
  import "./chunk-UKZX3NHN.js";
226
+ import "./chunk-SR4FE5VD.js";
231
227
  import "./chunk-5MMAK75Q.js";
232
228
  import "./chunk-USGHJSGO.js";
229
+ import "./chunk-E6A5NHDH.js";
233
230
  import {
234
231
  asRecordOrEmpty
235
232
  } from "./chunk-KX6YBIHG.js";
236
- import "./chunk-OQHIVPG4.js";
233
+ import "./chunk-HEVRQGGH.js";
234
+ import "./chunk-EWQ3HGNZ.js";
235
+ import {
236
+ estimateTokenCount
237
+ } from "./chunk-PSCNXBYA.js";
237
238
  import "./chunk-DWLEOOGR.js";
238
239
  import {
239
240
  isAbortError
240
241
  } from "./chunk-7DPNBQSV.js";
241
242
  import "./chunk-OW765XBU.js";
242
- import "./chunk-EWQ3HGNZ.js";
243
- import {
244
- estimateTokenCount
245
- } from "./chunk-PSCNXBYA.js";
243
+ import "./chunk-UAF5VQCE.js";
244
+ import "./chunk-2SXN7LAY.js";
246
245
  import "./chunk-G7Y4GXTY.js";
247
246
  import "./chunk-6UBGXX2W.js";
248
- import "./chunk-G7IUT2V3.js";
249
- import "./chunk-6OVNSQHN.js";
250
- import "./chunk-W6RFEDN4.js";
251
- import "./chunk-EVGU5P4U.js";
252
- import {
253
- isSystemBuiltinTrustedAgentKey
254
- } from "./chunk-ILHQ2AXT.js";
255
- import {
256
- extractCustomId
257
- } from "./chunk-M2EJHDJP.js";
247
+ import "./chunk-BV3FLP2L.js";
248
+ import "./chunk-WC3J5SL2.js";
249
+ import "./chunk-EUGTFFO6.js";
250
+ import "./chunk-AETZ7AD6.js";
251
+ import "./chunk-5P3PPQVP.js";
252
+ import "./chunk-KHCLMKZZ.js";
258
253
  import "./chunk-SYTHYBMI.js";
259
254
  import {
260
255
  createDialogMessageKeyAndId,
261
256
  dialogMessageKey
262
257
  } from "./chunk-OJKUU3LP.js";
263
- import "./chunk-YZMNK53S.js";
258
+ import {
259
+ splitDialogKeyIdentity
260
+ } from "./chunk-YZMNK53S.js";
261
+ import {
262
+ resolveRuntimeToolSurfaceForAgent
263
+ } from "./chunk-JCQ3WCQ3.js";
264
+ import "./chunk-YLAHYLDQ.js";
265
+ import {
266
+ isSystemBuiltinTrustedAgentKey
267
+ } from "./chunk-RIWKZT7E.js";
268
+ import {
269
+ extractCustomId
270
+ } from "./chunk-M2EJHDJP.js";
264
271
  import "./chunk-I42VC5KR.js";
272
+ import "./chunk-P4R5KXU7.js";
273
+ import {
274
+ getPublicImageAgentDefaultProfile,
275
+ getPublicImageAgentMode
276
+ } from "./chunk-VIDPVFP3.js";
277
+ import "./chunk-4JH2UMJR.js";
265
278
  import "./chunk-U6VC4MU4.js";
266
- import "./chunk-42OKN2LI.js";
267
- import "./chunk-JQZRSXS5.js";
268
- import "./chunk-KHCLMKZZ.js";
269
279
  import "./chunk-LCBAMY2M.js";
270
- import "./chunk-62HXNQVV.js";
271
- import "./chunk-7JGMNKKG.js";
272
- import "./chunk-RTHFJZ6M.js";
273
- import {
274
- isOpenAiResponsesModel
275
- } from "./chunk-HBRDSQ3M.js";
280
+ import "./chunk-EJQE5HB7.js";
281
+ import "./chunk-6SOWMEAY.js";
276
282
  import {
277
283
  toErrorMessage
278
284
  } from "./chunk-HNMXYYJR.js";
285
+ import "./chunk-LVZVSLKO.js";
286
+ import {
287
+ isOpenAiResponsesModel
288
+ } from "./chunk-2JHGUL5K.js";
279
289
  import {
280
290
  asTrimmedString
281
291
  } from "./chunk-3EUW3WEO.js";
292
+ import "./chunk-WWC7I6TA.js";
282
293
  import {
283
294
  getApiEndpoint
284
- } from "./chunk-CD3RU7XL.js";
295
+ } from "./chunk-OKH74FML.js";
285
296
  import "./chunk-JRTNUU5Z.js";
286
297
  import {
287
298
  isRecord
288
299
  } from "./chunk-KUG52IAP.js";
289
- import "./chunk-WWC7I6TA.js";
290
300
  import {
291
301
  asOptionalTrimmedString
292
302
  } from "./chunk-G3SUCT4W.js";
293
303
  import "./chunk-4SN6J65J.js";
294
304
  import "./chunk-CF7PE763.js";
295
- import "./chunk-OBSEKCVK.js";
305
+ import "./chunk-JPXACKSW.js";
296
306
  import "./chunk-QSJ3HFEF.js";
297
307
  import "./chunk-U67V476Y.js";
298
308
 
@@ -533,10 +543,11 @@ var sendOpenAIResponseRequest = async ({
533
543
  parentMessageId,
534
544
  messageMetadata,
535
545
  quickChatPerfStartedAt,
536
- fallbackBodyData
546
+ fallbackBodyData,
547
+ userMessageId
537
548
  }) => {
538
549
  const { dispatch, getState, signal: thunkSignal } = thunkApi;
539
- const dialogId = extractCustomId(dialogKey);
550
+ const dialogId = splitDialogKeyIdentity(dialogKey)?.dialogId ?? extractCustomId(dialogKey);
540
551
  const controller = new AbortController();
541
552
  thunkSignal.addEventListener("abort", () => controller.abort());
542
553
  const signal = controller.signal;
@@ -766,7 +777,8 @@ var sendOpenAIResponseRequest = async ({
766
777
  agentConfig,
767
778
  messageId,
768
779
  dialogId,
769
- dialogKey
780
+ dialogKey,
781
+ userMessageId
770
782
  })
771
783
  ).unwrap();
772
784
  state.content = Array.isArray(result.finalContentBuffer) ? result.finalContentBuffer.filter((part) => part?.type === "text").map((part) => part.text ?? "").join("") : state.content;
@@ -1323,6 +1335,7 @@ async function* runDesktopAgentRuntimeTurnStream({
1323
1335
  fetchImpl = fetch,
1324
1336
  signal,
1325
1337
  noEventWatchdogMs,
1338
+ authToken,
1326
1339
  ...args
1327
1340
  }) {
1328
1341
  try {
@@ -1330,9 +1343,13 @@ async function* runDesktopAgentRuntimeTurnStream({
1330
1343
  yield { type: "error", error: "The operation was aborted." };
1331
1344
  return;
1332
1345
  }
1346
+ const trimmedAuthToken = asTrimmedString(authToken) ?? "";
1333
1347
  const response = await fetchImpl("/api/desktop/agent-runtime/turn", {
1334
1348
  method: "POST",
1335
- headers: { "Content-Type": "application/json" },
1349
+ headers: {
1350
+ "Content-Type": "application/json",
1351
+ ...trimmedAuthToken ? { Authorization: `Bearer ${trimmedAuthToken}` } : {}
1352
+ },
1336
1353
  body: JSON.stringify(buildDesktopAgentRuntimeTurnBody(args)),
1337
1354
  signal
1338
1355
  });
@@ -2048,7 +2065,45 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2048
2065
  let loopKey = null;
2049
2066
  let runtimeDialogKey = explicitDialogKey ?? null;
2050
2067
  let turnPhaseTurnId = null;
2068
+ const secretGateTurnId = createDialogMessageKeyAndId("secret-gate").messageId;
2069
+ const secretGateAnchors = /* @__PURE__ */ new Set();
2070
+ const receiveActionGate = (gate, target, dialogId) => {
2071
+ const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
2072
+ if (!secret || target?.kind === "local") {
2073
+ pushGate(gate, target);
2074
+ return;
2075
+ }
2076
+ const { messageId, key } = createDialogMessageKeyAndId(dialogId);
2077
+ secretGateAnchors.add(messageId);
2078
+ pushGate(gate, target, { dialogId, turnId: secretGateTurnId, messageId });
2079
+ dispatch(messageStreaming({
2080
+ id: messageId,
2081
+ dbKey: key,
2082
+ dialogId,
2083
+ role: "tool",
2084
+ toolName: "secret-request",
2085
+ content: "",
2086
+ isStreaming: true
2087
+ }));
2088
+ };
2051
2089
  const batchExecution = createUserBatchExecution(loopController.signal, () => !thunkApi.signal.aborted && (!turnPhaseTurnId || !runtimeDialogKey || getDialogRuntimeState(runtimeDialogKey).turnPhaseTurnId === turnPhaseTurnId));
2090
+ const workMemoryUserMessageId = (dialogId, activeId) => {
2091
+ if (!activeId) return void 0;
2092
+ const users = selectAllMsgs(getState(), dialogId).filter((message) => message.role === "user");
2093
+ const bound = users.find((message) => message.id === activeId);
2094
+ if (!bound || bound.metadata?.queueState === "pending") return void 0;
2095
+ const receipt = bound.metadata?.userBatchReceipt;
2096
+ if (receipt) {
2097
+ const ids = receipt.messageIds;
2098
+ return Array.isArray(ids) && ids.length === 1 && ids[0] === activeId ? activeId : void 0;
2099
+ }
2100
+ const batchId = bound.metadata?.acceptedUserBatchId;
2101
+ if (batchId) {
2102
+ const batch = users.filter((message) => message.metadata?.acceptedUserBatchId === batchId);
2103
+ return batch.length === 1 && batch[0]?.id === activeId ? activeId : void 0;
2104
+ }
2105
+ return activeId;
2106
+ };
2052
2107
  let remoteTransientMessageId = null;
2053
2108
  let remoteTransientMessageFinalized = false;
2054
2109
  let modelRequestStarted = false;
@@ -2254,7 +2309,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2254
2309
  runtime: "react",
2255
2310
  entrypoint: "chat-dialog",
2256
2311
  capabilities: ["streaming", "dialog-ui", "machine-bound-cli", "durable-user-batch", "client-user-prepersisted"],
2257
- userMessageId: selectAdmittedMessages(selectAllMsgs(getState(), dialogId2)).filter((message) => message.role === "user").at(-1)?.id
2312
+ ...args.userMessageId ? { userMessageId: args.userMessageId } : {}
2258
2313
  },
2259
2314
  ...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
2260
2315
  }),
@@ -2302,12 +2357,13 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2302
2357
  return { reject: payload.message || "\u7535\u8111\u7AEF Agent \u6267\u884C\u5931\u8D25" };
2303
2358
  }
2304
2359
  if (payload.type === "action_gate" && payload.gate) {
2305
- pushGate(
2360
+ receiveActionGate(
2306
2361
  payload.gate,
2307
2362
  targetForRunKind("server-run", {
2308
2363
  server: currentServer2,
2309
2364
  token
2310
- })
2365
+ }),
2366
+ dialogId2
2311
2367
  );
2312
2368
  }
2313
2369
  remoteToolHandlers.handleToolPayload(payload);
@@ -2717,6 +2773,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2717
2773
  };
2718
2774
  try {
2719
2775
  const desktopAgentRef = agentConfig.dbKey || agentKey;
2776
+ const desktopTurnAuthToken = selectIdentityToken(getState());
2720
2777
  const eventStream = await dispatch(runPendingUserBatchRequest({
2721
2778
  dialogKey,
2722
2779
  signal: loopController.signal,
@@ -2754,7 +2811,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2754
2811
  // 未分类的 "stream stalled" 而不是 runtime 的
2755
2812
  // LLM_REQUEST_TIMEOUT 可操作文案。取 2× = 20 分钟:
2756
2813
  // 只兜「runtime 完全没 deadline」的真悬挂。
2757
- noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS
2814
+ noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS,
2815
+ ...desktopTurnAuthToken ? { authToken: desktopTurnAuthToken } : {}
2758
2816
  });
2759
2817
  const first = iterator.next();
2760
2818
  return async function* () {
@@ -2859,9 +2917,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
2859
2917
  } else if (event.type === "execution_location") {
2860
2918
  desktopToolExecutionLocation = event.location;
2861
2919
  } else if (event.type === "action_gate") {
2862
- pushGate(
2920
+ receiveActionGate(
2863
2921
  event.gate,
2864
- targetForRunKind("desktop-local")
2922
+ targetForRunKind("desktop-local"),
2923
+ dialogId
2865
2924
  );
2866
2925
  } else if (event.type === "done") {
2867
2926
  streamResult = event.result;
@@ -3118,8 +3177,16 @@ ${info.actionHint}` : streamError;
3118
3177
  const normalizedCurrentServer = normalizeServerOrigin(
3119
3178
  currentServer
3120
3179
  );
3121
- const canProxyToExplicitServerBase = !Array.isArray(userInput) && !runtimeOptions?.extraTools?.length && !runtimeOptions?.editingTarget && !runtimeOptions?.imageConfigOverride;
3122
- if (explicitServerBase && canProxyToExplicitServerBase) {
3180
+ const turnDialogConfig = selectDialogConfigByKey(state, explicitDialogKey) ?? selectCurrentDialogConfig(state);
3181
+ const turnDialogExtraReferences = Array.isArray(
3182
+ turnDialogConfig?.extraReferences
3183
+ ) ? turnDialogConfig.extraReferences : [];
3184
+ const canProxyToExplicitServerBase2 = canProxyToExplicitServerBase({
3185
+ userInput,
3186
+ runtimeOptions,
3187
+ dialogExtraReferences: turnDialogExtraReferences
3188
+ });
3189
+ if (explicitServerBase && canProxyToExplicitServerBase2) {
3123
3190
  if (normalizedRequestedServerBase && normalizedCurrentServer && normalizedRequestedServerBase === normalizedCurrentServer) {
3124
3191
  } else {
3125
3192
  const token = selectIdentityToken(state);
@@ -3259,12 +3326,13 @@ ${info.actionHint}` : streamError;
3259
3326
  return { reject: payload.message || "\u8FDC\u7AEF Agent \u6267\u884C\u5931\u8D25" };
3260
3327
  }
3261
3328
  if (payload.type === "action_gate" && payload.gate) {
3262
- pushGate(
3329
+ receiveActionGate(
3263
3330
  payload.gate,
3264
3331
  targetForRunKind("server-run", {
3265
3332
  server: explicitServerBase,
3266
3333
  token
3267
- })
3334
+ }),
3335
+ dialogId
3268
3336
  );
3269
3337
  }
3270
3338
  if (payload.type === "agent_handoff") {
@@ -3370,7 +3438,8 @@ ${info.actionHint}` : streamError;
3370
3438
  referencedTools: referenceTools,
3371
3439
  recommendedSkillTools: turnToolContext.recommendedSkillTools,
3372
3440
  recommendedSkillHints: turnToolContext.recommendedSkillHints,
3373
- skillPromptPatches: turnToolContext.skillPromptPatches
3441
+ skillPromptPatches: turnToolContext.skillPromptPatches,
3442
+ skillPromptContributions: turnToolContext.skillPromptContributions
3374
3443
  };
3375
3444
  const initialRawMsgs = selectAdmittedMessages(selectAllMsgs(state, dialogId));
3376
3445
  const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
@@ -3420,7 +3489,7 @@ ${info.actionHint}` : streamError;
3420
3489
  responseApi: true
3421
3490
  });
3422
3491
  let appendTempUserInput2 = true;
3423
- let activeTurnUserMessageId2;
3492
+ let activeTurnUserMessageId2 = args.userMessageId;
3424
3493
  let currentParentMessageId2 = parentMessageId ?? void 0;
3425
3494
  const storedResponsesState = currentDialog?.responsesState;
3426
3495
  let responsesState = selectResponsesConversationState(
@@ -3554,12 +3623,6 @@ ${info.actionHint}` : streamError;
3554
3623
  isStreaming: false
3555
3624
  }
3556
3625
  ];
3557
- activeTurnUserMessageId2 = tempId;
3558
- } else {
3559
- const lastMsg = visibleMessages[visibleMessages.length - 1];
3560
- if (lastMsg && typeof lastMsg.id === "string") {
3561
- activeTurnUserMessageId2 = lastMsg.id;
3562
- }
3563
3626
  }
3564
3627
  }
3565
3628
  const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
@@ -3620,24 +3683,28 @@ ${info.actionHint}` : streamError;
3620
3683
  dynamicMessageCount: dynamicMessages.length,
3621
3684
  stableMessageCount: stableMessages.length
3622
3685
  });
3623
- modelRequestStarted = true;
3624
3686
  const meta = await dispatch(runPendingUserBatchRequest({
3625
3687
  dialogKey,
3626
3688
  signal: loopController.signal,
3627
3689
  execution: batchExecution,
3628
3690
  requestUserInput,
3629
- start: () => sendOpenAIResponseRequest({
3630
- bodyData,
3631
- agentConfig: agentConfigForCall,
3632
- thunkApi,
3633
- dialogKey,
3634
- parentMessageId: currentParentMessageId2,
3635
- messageMetadata: streamingMessageMetadata,
3636
- quickChatPerfStartedAt,
3637
- fallbackBodyData
3638
- })
3691
+ start: () => {
3692
+ modelRequestStarted = true;
3693
+ return sendOpenAIResponseRequest({
3694
+ bodyData,
3695
+ agentConfig: agentConfigForCall,
3696
+ thunkApi,
3697
+ dialogKey,
3698
+ parentMessageId: currentParentMessageId2,
3699
+ messageMetadata: streamingMessageMetadata,
3700
+ quickChatPerfStartedAt,
3701
+ fallbackBodyData,
3702
+ userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId2)
3703
+ });
3704
+ }
3639
3705
  })).unwrap();
3640
- if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
3706
+ if (isTurnAborted()) return { aborted: true };
3707
+ if (!meta) throw new Error("Model request returned no result; reply did not complete");
3641
3708
  logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
3642
3709
  responseApi: true,
3643
3710
  hasToolCalls: meta.hasToolCalls,
@@ -3744,7 +3811,7 @@ ${info.actionHint}` : streamError;
3744
3811
  responseApi: false
3745
3812
  });
3746
3813
  let appendTempUserInput = true;
3747
- let activeTurnUserMessageId;
3814
+ let activeTurnUserMessageId = args.userMessageId;
3748
3815
  let currentParentMessageId = parentMessageId ?? void 0;
3749
3816
  const w = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
3750
3817
  if (w) w.__LOOP_STOP_REASON__ = null;
@@ -3867,12 +3934,6 @@ ${info.actionHint}` : streamError;
3867
3934
  isStreaming: false
3868
3935
  }
3869
3936
  ];
3870
- activeTurnUserMessageId = tempId;
3871
- } else {
3872
- const lastMsg = visibleMessages[visibleMessages.length - 1];
3873
- if (lastMsg && typeof lastMsg.id === "string") {
3874
- activeTurnUserMessageId = lastMsg.id;
3875
- }
3876
3937
  }
3877
3938
  }
3878
3939
  const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
@@ -3922,7 +3983,11 @@ ${info.actionHint}` : streamError;
3922
3983
  agentConfigForCall,
3923
3984
  shouldDisableQuickChatToolsForDirectAnswer(quickChatPerfStartedAt, userInput, runtimeOptions, currentDialog)
3924
3985
  ),
3925
- { shouldInline: shouldInlineImageUrlsForAgent(agentConfigForCall), signal: loopController.signal }
3986
+ {
3987
+ shouldInline: shouldInlineImageUrlsForAgent(agentConfigForCall),
3988
+ serverUrl: selectCurrentServer(getState()),
3989
+ signal: loopController.signal
3990
+ }
3926
3991
  );
3927
3992
  return { value: { bodyData: finalBody, dynamicMessages: dynamicMessages2, stableMessages: stableMessages2 }, wireBodies: [buildEmptyCompletionRepairBody(finalBody)] };
3928
3993
  }
@@ -3932,7 +3997,6 @@ ${info.actionHint}` : streamError;
3932
3997
  dynamicMessageCount: dynamicMessages.length,
3933
3998
  stableMessageCount: stableMessages.length
3934
3999
  });
3935
- modelRequestStarted = true;
3936
4000
  const disableToolsForThisRequest = shouldDisableQuickChatToolsForDirectAnswer(
3937
4001
  quickChatPerfStartedAt,
3938
4002
  userInput,
@@ -3954,18 +4018,23 @@ ${info.actionHint}` : streamError;
3954
4018
  signal: loopController.signal,
3955
4019
  execution: batchExecution,
3956
4020
  requestUserInput,
3957
- start: () => sendOpenAICompletionsRequest({
3958
- bodyData,
3959
- agentConfig: agentConfigForCall,
3960
- thunkApi,
3961
- dialogKey,
3962
- parentMessageId: currentParentMessageId,
3963
- messageMetadata: streamingMessageMetadata,
3964
- disableToolsForThisRequest,
3965
- quickChatPerfStartedAt
3966
- })
4021
+ start: () => {
4022
+ modelRequestStarted = true;
4023
+ return sendOpenAICompletionsRequest({
4024
+ bodyData,
4025
+ agentConfig: agentConfigForCall,
4026
+ thunkApi,
4027
+ dialogKey,
4028
+ parentMessageId: currentParentMessageId,
4029
+ messageMetadata: streamingMessageMetadata,
4030
+ disableToolsForThisRequest,
4031
+ quickChatPerfStartedAt,
4032
+ userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId)
4033
+ });
4034
+ }
3967
4035
  })).unwrap();
3968
- if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
4036
+ if (isTurnAborted()) return { aborted: true };
4037
+ if (!meta) throw new Error("Model request returned no result; reply did not complete");
3969
4038
  logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
3970
4039
  responseApi: false,
3971
4040
  hasToolCalls: meta.hasToolCalls,
@@ -4021,6 +4090,8 @@ ${info.actionHint}` : streamError;
4021
4090
  break;
4022
4091
  }
4023
4092
  }
4093
+ if (isTurnAborted()) return { aborted: true };
4094
+ if (!modelRequestStarted) throw new Error("Model request did not start; reply did not complete");
4024
4095
  return {
4025
4096
  usage: totalTurnUsage ?? void 0
4026
4097
  };
@@ -4069,6 +4140,8 @@ ${info.actionHint}` : streamError;
4069
4140
  );
4070
4141
  } finally {
4071
4142
  batchExecution.dispose();
4143
+ clearGateTurn(secretGateTurnId);
4144
+ for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
4072
4145
  clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
4073
4146
  if (loopKey && runtimeDialogKey) {
4074
4147
  dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));