nolo-cli 0.213.0 → 0.222.0-alpha.2

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 (262) hide show
  1. package/README.md +3 -2
  2. package/{_executeModel-CUJLCFWR.js → _executeModel-4GGQQHOB.js} +111 -82
  3. package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
  4. package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
  5. package/{addContentAction-WERAONNY.js → addContentAction-GDHDOF4U.js} +18 -17
  6. package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-CAKRU3ZT.js} +21 -20
  7. package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-BPV2XZL7.js} +128 -119
  8. package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-EJOS75YL.js} +132 -124
  9. package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
  10. package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
  11. package/{agentListCommands-OBLRBLHS.js → agentListCommands-HIZODBF3.js} +155 -92
  12. package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-ZMQ2CY7Y.js} +62 -54
  13. package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-WKJOAWBP.js} +5 -5
  14. package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
  15. package/agentRecordCommands-OMXVDLDX.js +176 -0
  16. package/agentRunCommand-CB34YWMV.js +206 -0
  17. package/{agentRunControl-TAMHJQSR.js → agentRunControl-JNONH3RP.js} +30 -15
  18. package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-QZPFWMLG.js} +52 -45
  19. package/{agentSlice-CHR6KOZN.js → agentSlice-RD2CDU7T.js} +20 -19
  20. package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-QCCFDIEQ.js} +61 -53
  21. package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-V2T7TNMQ.js} +61 -53
  22. package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-6PGH7ZCG.js} +61 -53
  23. package/{appGetCommands-YWDEX6Z4.js → appGetCommands-3L7WWJA6.js} +61 -53
  24. package/{appListCommands-ZQVMLPAY.js → appListCommands-ENJCK4PO.js} +61 -53
  25. package/{authCommand-PWX2ZNUP.js → authCommand-6V47SYGK.js} +29 -28
  26. package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
  27. package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-2ECA42FC.js} +11 -13
  28. package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
  29. package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
  30. package/{chunk-CRHOO2ZR.js → chunk-27PCUMJI.js} +2 -2
  31. package/chunk-2CI3ZFWD.js +97 -0
  32. package/{chunk-NSAPDIN2.js → chunk-2GJKRKI6.js} +541 -31
  33. package/{chunk-SM3NSZJV.js → chunk-2UCBGYO4.js} +20 -1
  34. package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
  35. package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
  36. package/chunk-2YGBI2XB.js +30 -0
  37. package/chunk-2ZKFCIJJ.js +13 -0
  38. package/{chunk-QG4AOSON.js → chunk-34J5K2YA.js} +13 -32
  39. package/{chunk-LOEO7LRC.js → chunk-3IK6ILVW.js} +4 -1
  40. package/{chunk-CTPXME7U.js → chunk-3LMUPOHG.js} +29 -6
  41. package/chunk-44X52WOJ.js +1621 -0
  42. package/{chunk-6VLJ6YA7.js → chunk-4DESLZTK.js} +9 -9
  43. package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
  44. package/chunk-5CHGAKRT.js +364 -0
  45. package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
  46. package/{chunk-INUFILG6.js → chunk-5RKUPJYL.js} +1 -1
  47. package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
  48. package/{chunk-MOIJOHA5.js → chunk-6WU5572L.js} +36 -25
  49. package/{chunk-IXNGOHV5.js → chunk-7EEZJ6BS.js} +11 -152
  50. package/{chunk-Y6ORVLSS.js → chunk-7ET2U67U.js} +1 -1
  51. package/{chunk-G7MLNNEX.js → chunk-7JLY4WYF.js} +5 -5
  52. package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
  53. package/{chunk-NJLL224W.js → chunk-AD5EWDFD.js} +2 -2
  54. package/{chunk-J2NHJ7WX.js → chunk-AIHYNKGV.js} +4 -4
  55. package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
  56. package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
  57. package/{chunk-ALQ3657A.js → chunk-AMEOV5VZ.js} +32 -12
  58. package/chunk-AN74ON4G.js +675 -0
  59. package/{chunk-HRMJUN5J.js → chunk-AQZ6BMRK.js} +1 -1
  60. package/{chunk-XHQC4PXX.js → chunk-B4GOW4MT.js} +424 -194
  61. package/{chunk-4KB6WQUL.js → chunk-BGP2EDFG.js} +1 -1
  62. package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
  63. package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
  64. package/{chunk-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
  65. package/{chunk-RZOV7OMV.js → chunk-C4VAR65S.js} +83 -141
  66. package/{chunk-COFEN36Z.js → chunk-C4WTX5TU.js} +2 -2
  67. package/{chunk-ZL5RAEEB.js → chunk-CIRB724Q.js} +1 -1
  68. package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
  69. package/{chunk-X7SDOJUM.js → chunk-CMZ3Z5PT.js} +14 -14
  70. package/{secretCommands-LXDWOLZ6.js → chunk-D726I5AZ.js} +191 -16
  71. package/{chunk-TAKB25RM.js → chunk-DNKTQ3IN.js} +4 -4
  72. package/chunk-DVQH4BTR.js +1137 -0
  73. package/{chunk-WYDI6TGM.js → chunk-DWX2HEVC.js} +91 -132
  74. package/{chunk-5MQRBSMW.js → chunk-EIAI3PPH.js} +111 -113
  75. package/chunk-EUCFKKDM.js +247 -0
  76. package/chunk-EWQ3HGNZ.js +90 -0
  77. package/{chunk-RPQXPZZF.js → chunk-F3GRJO4Z.js} +908 -13
  78. package/{chunk-YTF4WH7J.js → chunk-FIYSMXHY.js} +1 -1
  79. package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
  80. package/{chunk-INN4LTAJ.js → chunk-FJK526XH.js} +2 -2
  81. package/chunk-FS2XP5D7.js +142 -0
  82. package/{chunk-FUGMREBO.js → chunk-FYF2TONJ.js} +5 -5
  83. package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
  84. package/{chunk-TX5EYMGT.js → chunk-GYVCJABP.js} +30 -254
  85. package/{chunk-3UKL3HPD.js → chunk-HOCHUZQ7.js} +8 -78
  86. package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
  87. package/chunk-HYIETXA6.js +99 -0
  88. package/{chunk-H2TJUNCH.js → chunk-I4EADJ4P.js} +6 -6
  89. package/{chunk-TCZHTTUU.js → chunk-I7WBYGBP.js} +8 -8
  90. package/{chunk-6DWMYIUY.js → chunk-IILMY4W4.js} +14 -9
  91. package/chunk-JA3ICVJY.js +271 -0
  92. package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
  93. package/{chunk-H4UOTUOX.js → chunk-KEN3N2TN.js} +148 -18
  94. package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
  95. package/{chunk-UHJGXRJ4.js → chunk-KQSYAIZR.js} +3 -3
  96. package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
  97. package/chunk-LKA64WH4.js +227 -0
  98. package/{chunk-QHPRUL4O.js → chunk-LVL6GFCM.js} +4 -4
  99. package/{chunk-H5HF7TJA.js → chunk-MAIITKBT.js} +2 -2
  100. package/chunk-MBG66ZBH.js +226 -0
  101. package/{chunk-YUA6OAH5.js → chunk-MDLS23JK.js} +2 -2
  102. package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
  103. package/{chunk-MDB67IWP.js → chunk-MS4NZNKI.js} +10 -10
  104. package/{chunk-VO4WSAVP.js → chunk-MYHNBEXD.js} +3 -3
  105. package/{chunk-ZXOUUDCG.js → chunk-MZLE5HQ3.js} +3654 -231
  106. package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
  107. package/{chunk-V5Y3R6BT.js → chunk-NIZ2BXFD.js} +213 -210
  108. package/{chunk-KFLT5KAD.js → chunk-NWP2OYOX.js} +20 -20
  109. package/{chunk-G2BQWAVT.js → chunk-O6J3OTOP.js} +4 -4
  110. package/{chunk-VNYYOX3V.js → chunk-OB6DVWPF.js} +141 -48
  111. package/{chunk-YWSEPJ7C.js → chunk-OBWT45ZU.js} +3 -3
  112. package/{chunk-ZNWI6OVT.js → chunk-ODJ7BVSI.js} +80 -11
  113. package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
  114. package/{chunk-HUBHAQK2.js → chunk-ON37YXGX.js} +29 -29
  115. package/{chunk-UYD5HQ6T.js → chunk-P5ZJRTCH.js} +5429 -1752
  116. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  117. package/{chunk-WRYQ35LQ.js → chunk-PJCIP64Z.js} +859 -57
  118. package/{chunk-7QTZCMKL.js → chunk-PJVKMGPZ.js} +1089 -1639
  119. package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
  120. package/chunk-QHEN7NZ7.js +46 -0
  121. package/{chunk-OQPKUBPB.js → chunk-QNWG52I4.js} +19 -7
  122. package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
  123. package/{chunk-7BT37FK3.js → chunk-RDH5CQ4T.js} +648 -131
  124. package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
  125. package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
  126. package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
  127. package/{chunk-RLBNLZVC.js → chunk-SQYIK6HO.js} +1 -1
  128. package/{chunk-YJAFKXMU.js → chunk-SVT62ULE.js} +50 -48
  129. package/{chunk-KIM6CLW5.js → chunk-SY3C4SQ7.js} +42 -15
  130. package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
  131. package/{chunk-WMTBPBMP.js → chunk-T6DXNI6Z.js} +52 -50
  132. package/chunk-TLE77UJ5.js +230 -0
  133. package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
  134. package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
  135. package/{chunk-R5O4QAWG.js → chunk-UB3D4TRQ.js} +11 -77
  136. package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
  137. package/{chunk-NOKUNJON.js → chunk-UYOICCYG.js} +29 -19
  138. package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
  139. package/{chunk-O2TZF4AI.js → chunk-WAE3GFCJ.js} +3 -3
  140. package/{chunk-H7PPIYWP.js → chunk-WI67URFP.js} +20 -20
  141. package/{chunk-7OCO4TDT.js → chunk-WJVYAO6P.js} +1 -1
  142. package/{chunk-T43B7LB2.js → chunk-WKGQSYTB.js} +1 -1
  143. package/{chunk-BBJ22CLB.js → chunk-WUUH4LWZ.js} +60 -30
  144. package/{chunk-4T2WNOY7.js → chunk-X7UF53VA.js} +33 -22
  145. package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
  146. package/{chunk-LLRPJECG.js → chunk-XWVCYUUU.js} +16 -159
  147. package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
  148. package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
  149. package/chunk-YL3EFYL3.js +199 -0
  150. package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
  151. package/{chunk-W4S457LU.js → chunk-YU4ZPWVF.js} +41 -5
  152. package/{chunk-7Y4YTDQF.js → chunk-YWWDC3O7.js} +281 -159
  153. package/chunk-YZMNK53S.js +68 -0
  154. package/{chunk-RSHTSUEG.js → chunk-Z2PITYZN.js} +2060 -602
  155. package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
  156. package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-TKYL43MT.js} +15 -16
  157. package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
  158. package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
  159. package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
  160. package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
  161. package/cliLocalAgentRecordReader-MHHD4T7R.js +90 -0
  162. package/{commandRegistry-W63CYRZJ.js → commandRegistry-5DA5UP7S.js} +105 -97
  163. package/{contentThunks-U7PL5MQD.js → contentThunks-5GUQ7FWJ.js} +47 -43
  164. package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-X7P5M2V5.js} +5 -4
  165. package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-UCLTHQRI.js} +51 -49
  166. package/{createDialogAction-SVH6B3SB.js → createDialogAction-UPN774AF.js} +46 -48
  167. package/{createPageAction-F4DIWZ2Z.js → createPageAction-JRQ2TA4O.js} +50 -48
  168. package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
  169. package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
  170. package/{dbSlice-BVH2YZPQ.js → dbSlice-WNON7TOL.js} +17 -16
  171. package/{deleteFile-5YOEKV4U.js → deleteFile-Q3YDB4ML.js} +9 -9
  172. package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
  173. package/{dialogCommands-KHIEPY3M.js → dialogCommands-VRI7VCXH.js} +64 -57
  174. package/dialogNotifyCommand-6TMCX4D2.js +36 -0
  175. package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-LFNVUSAN.js} +42 -40
  176. package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
  177. package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-AMPXMOX3.js} +61 -55
  178. package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-I5WFAEHP.js} +63 -57
  179. package/{docReadCommands-LK37XH6L.js → docReadCommands-X53ELNIE.js} +61 -55
  180. package/{docStore-V2KECILA.js → docStore-2VAWVLWH.js} +21 -20
  181. package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-6QPNDC7M.js} +64 -58
  182. package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
  183. package/{getPricing-2MNMXEVG.js → getPricing-MB2GBXOK.js} +6 -6
  184. package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-AAJOHXOB.js} +194 -302
  185. package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-GLMJ22M6.js} +123 -114
  186. package/index.js +29 -29
  187. package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
  188. package/legacyMigration-TF4SYJCZ.js +19 -0
  189. package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
  190. package/{localDialogRead-7NNDVVF7.js → localDialogRead-SVTPA5GY.js} +3 -3
  191. package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
  192. package/localRecall-2J6QPOK2.js +15 -0
  193. package/{localRuntimeAdapter-KY6WXNBR.js → localRuntimeAdapter-BMP57P42.js} +119 -110
  194. package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
  195. package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
  196. package/{machineCommands-Q6HA3IXF.js → machineCommands-3MLIAK5Q.js} +128 -119
  197. package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
  198. package/machineWsRunDispatch-FKIGROQF.js +191 -0
  199. package/{memberThunks-7EDJADWU.js → memberThunks-ZGLZ36PK.js} +29 -28
  200. package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
  201. package/models-ULVWLSQ6.js +9 -0
  202. package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
  203. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
  204. package/overlay-THLKYIWY.js +11 -0
  205. package/package.json +2 -2
  206. package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
  207. package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
  208. package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
  209. package/{projectArchive-DRTDIMEV.js → projectArchive-HK63GMF4.js} +52 -50
  210. package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-OIFQ73LH.js} +19 -12
  211. package/{providerRegistry-S6UL6UNA.js → providerRegistry-KZ3SDZ3D.js} +10 -10
  212. package/{read-4V2RMG7N.js → read-MRQHJMJ2.js} +10 -10
  213. package/{readDocTool-BH6ATGQO.js → readDocTool-4BGTXTXA.js} +2 -2
  214. package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-AKAHSCNY.js} +7982 -6274
  215. package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-B6H7DXFM.js} +23 -22
  216. package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-UVAWGEON.js} +81 -79
  217. package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-FW6XKDUG.js} +12 -12
  218. package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
  219. package/secretCommands-LJXOOYA7.js +24 -0
  220. package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-EVCY3TRW.js} +22 -21
  221. package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-KPFVPHCJ.js} +23 -22
  222. package/{settingThunks-RAMHMTGM.js → settingThunks-ENOAK2WV.js} +97 -88
  223. package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
  224. package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
  225. package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
  226. package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
  227. package/{spaceCommands-KVJZVKVO.js → spaceCommands-DTTNAS2L.js} +61 -53
  228. package/store-JRVN62NM.js +46 -0
  229. package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-R5UY25VB.js} +875 -618
  230. package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-SZ44XDRY.js} +21 -20
  231. package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
  232. package/tombstones-FQQMEDOW.js +32 -0
  233. package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
  234. package/{tools-EWKCPKMS.js → tools-HWFG6GMJ.js} +75 -74
  235. package/tuiSummaryLlmCaller-HQQZAMYF.js +44 -0
  236. package/{updateCommands-ZQYU6SCI.js → updateCommands-RJVCRSBP.js} +10 -8
  237. package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-KNPOAMVS.js} +48 -46
  238. package/{usageCommand-F4IPVMIZ.js → usageCommand-FWZCB7AM.js} +11 -10
  239. package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-SP2BLNJU.js} +12 -11
  240. package/userDataMerge-HT2ZVHBJ.js +13 -0
  241. package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
  242. package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-DYNEYHV5.js} +6 -6
  243. package/agentRecordCommands-ZQ7SVYGG.js +0 -167
  244. package/agentRunCommand-WS7IGO2W.js +0 -196
  245. package/chunk-3CGG2PAL.js +0 -594
  246. package/chunk-5XBUWM6I.js +0 -89
  247. package/chunk-CJEIOP3E.js +0 -0
  248. package/chunk-EHGEOAHI.js +0 -636
  249. package/chunk-FW6YHHLI.js +0 -842
  250. package/chunk-GPVRUGGY.js +0 -115
  251. package/chunk-HSVBJRF4.js +0 -339
  252. package/chunk-WJZOQR2J.js +0 -151
  253. package/chunk-ZCWRMUWT.js +0 -89
  254. package/dist-M676ULYG.js +0 -7314
  255. package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
  256. package/models-PJBE6JDV.js +0 -9
  257. package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
  258. package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
  259. package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
  260. package/{chunk-GOO6G4PY.js → chunk-CKG3PRZ7.js} +0 -0
  261. package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
  262. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
@@ -10,43 +10,37 @@ import {
10
10
  consumeAgentRunStream,
11
11
  mergeAgentToolsWithRuntime,
12
12
  projectDesktopToolUiContent,
13
+ pushGate,
13
14
  resolveTurnToolContext
14
- } from "./chunk-WYDI6TGM.js";
15
+ } from "./chunk-DWX2HEVC.js";
15
16
  import {
16
17
  resolveUserSkillRuntime
17
- } from "./chunk-ZNWI6OVT.js";
18
+ } from "./chunk-ODJ7BVSI.js";
18
19
  import {
19
- CONTEXT_OVERFLOW_ACTIONS,
20
- CONTEXT_TOO_LARGE_ACTIONS,
21
- extractErrorDiagnostics,
22
- isContextOverflowText,
23
20
  performServerProxyFetchWithRetry
24
- } from "./chunk-TX5EYMGT.js";
21
+ } from "./chunk-GYVCJABP.js";
25
22
  import {
26
23
  createSSEParser,
27
24
  loadSkillFunc,
28
25
  waitForAbortableDelay
29
- } from "./chunk-HUBHAQK2.js";
26
+ } from "./chunk-ON37YXGX.js";
30
27
  import "./chunk-NF64D32W.js";
31
28
  import "./chunk-3L2WKC3W.js";
32
- import {
33
- resolveAgentRequiredPackIds
34
- } from "./chunk-R5O4QAWG.js";
35
- import "./chunk-6DWMYIUY.js";
36
- import "./chunk-MYOH447Z.js";
29
+ import "./chunk-UB3D4TRQ.js";
30
+ import "./chunk-AGIM7IMJ.js";
37
31
  import "./chunk-VF4K2QE6.js";
32
+ import "./chunk-IILMY4W4.js";
33
+ import "./chunk-4JVNURX4.js";
38
34
  import {
39
35
  DESKTOP_FOLDER_PROJECTS_KEY,
40
36
  readDesktopFolderProjects,
41
37
  readDialogProjectId
42
- } from "./chunk-C6KNNXWU.js";
43
- import "./chunk-TAKB25RM.js";
44
- import "./chunk-RLBNLZVC.js";
45
- import "./chunk-AGIM7IMJ.js";
46
- import "./chunk-INN4LTAJ.js";
47
- import "./chunk-VIDPVFP3.js";
48
- import "./chunk-7Y4YTDQF.js";
38
+ } from "./chunk-RGQ4UUWZ.js";
39
+ import "./chunk-DNKTQ3IN.js";
40
+ import "./chunk-SQYIK6HO.js";
41
+ import "./chunk-YWWDC3O7.js";
49
42
  import {
43
+ admitPendingUserMessages,
50
44
  clearForegroundTurnSettledVisible,
51
45
  initMsgs,
52
46
  markForegroundTurnSettledVisible,
@@ -58,119 +52,135 @@ import {
58
52
  removeTransientMessage,
59
53
  resolveHandleSendMessageContext,
60
54
  selectAllMsgs,
55
+ selectPendingUserMessages,
61
56
  setMessages,
62
57
  setStreamingMessageId,
63
58
  toolResultNeedsUserConfirmation,
64
59
  updateToolMessage
65
- } from "./chunk-ZXOUUDCG.js";
60
+ } from "./chunk-MZLE5HQ3.js";
66
61
  import "./chunk-TZXPT53C.js";
67
- import "./chunk-7RFNTILS.js";
68
- import "./chunk-LEC5ALIN.js";
62
+ import "./chunk-BUDVRYES.js";
63
+ import "./chunk-KEPOVMF4.js";
69
64
  import "./chunk-523DITKR.js";
70
65
  import {
71
66
  streamAgentChatTurn
72
- } from "./chunk-KFLT5KAD.js";
73
- import "./chunk-5XBUWM6I.js";
67
+ } from "./chunk-NWP2OYOX.js";
68
+ import "./chunk-MBG66ZBH.js";
74
69
  import "./chunk-BYXBJQAS.js";
75
70
  import "./chunk-QYPE3TS3.js";
76
- import "./chunk-NJLL224W.js";
77
- import "./chunk-4JH2UMJR.js";
78
- import "./chunk-GPVRUGGY.js";
79
- import "./chunk-UAD2WT54.js";
71
+ import "./chunk-AD5EWDFD.js";
80
72
  import "./chunk-5RGU3J7P.js";
81
- import "./chunk-WPORQFYN.js";
82
- import "./chunk-MMA3LZ3W.js";
73
+ import "./chunk-UVLYNWIE.js";
74
+ import "./chunk-YNIYE47Z.js";
83
75
  import {
84
76
  addActiveController,
85
77
  getActiveDialogKey,
86
78
  removeActiveController
87
- } from "./chunk-OWYYDMGJ.js";
88
- import "./chunk-YDH3FDFQ.js";
79
+ } from "./chunk-S2NTVGA2.js";
80
+ import "./chunk-5FUN7EG4.js";
89
81
  import {
90
82
  selectCurrentServer
91
- } from "./chunk-4I7ERB7F.js";
83
+ } from "./chunk-VREDDN25.js";
84
+ import "./chunk-HXER7YJF.js";
85
+ import "./chunk-JA3ICVJY.js";
86
+ import "./chunk-UAD2WT54.js";
92
87
  import {
93
88
  readAndWait,
94
89
  selectById
95
- } from "./chunk-FW6YHHLI.js";
90
+ } from "./chunk-44X52WOJ.js";
96
91
  import "./chunk-3PVYUPXK.js";
97
- import "./chunk-COFEN36Z.js";
98
- import "./chunk-O2TZF4AI.js";
99
- import "./chunk-PYRUW7XN.js";
92
+ import "./chunk-C4WTX5TU.js";
93
+ import "./chunk-WAE3GFCJ.js";
94
+ import "./chunk-2VUZSVAS.js";
100
95
  import "./chunk-UEILX4EV.js";
101
- import "./chunk-P5L7CXOC.js";
96
+ import "./chunk-7Z6EW7AH.js";
102
97
  import {
103
98
  getIsDesktopApp
104
99
  } from "./chunk-AGP3YSEC.js";
105
100
  import "./chunk-QQ56R7KS.js";
106
- import "./chunk-OW765XBU.js";
107
101
  import {
108
102
  selectIdentityToken,
109
103
  selectIdentityUserId
110
104
  } from "./chunk-PXYBUFDB.js";
111
- import "./chunk-EHSZD5OI.js";
112
- import "./chunk-SVYO6AO7.js";
113
- import "./chunk-WRYQ35LQ.js";
105
+ import "./chunk-BV3FLP2L.js";
106
+ import "./chunk-HYIETXA6.js";
114
107
  import {
115
- expandEnabledPacks
116
- } from "./chunk-EHGEOAHI.js";
117
- import "./chunk-AETZ7AD6.js";
118
- import "./chunk-Y6ORVLSS.js";
119
- import "./chunk-KHCLMKZZ.js";
120
- import "./chunk-YB3YZK56.js";
121
- import "./chunk-YWSEPJ7C.js";
122
- import "./chunk-WJZOQR2J.js";
123
- import "./chunk-UHJGXRJ4.js";
124
- import "./chunk-V5Y3R6BT.js";
125
- import "./chunk-7BT37FK3.js";
126
- import "./chunk-H57T64RA.js";
108
+ DURABLE_WEB_FOREGROUND_TOOL_NAMES,
109
+ hasProvenDurableWebForegroundSemantics
110
+ } from "./chunk-LKA64WH4.js";
111
+ import "./chunk-2WZXXAQD.js";
112
+ import "./chunk-OBWT45ZU.js";
113
+ import {
114
+ CONTEXT_OVERFLOW_ACTIONS,
115
+ CONTEXT_TOO_LARGE_ACTIONS,
116
+ extractErrorDiagnostics,
117
+ isContextOverflowText
118
+ } from "./chunk-TLE77UJ5.js";
119
+ import {
120
+ resolveAgentRequiredPackIds
121
+ } from "./chunk-FS2XP5D7.js";
122
+ import "./chunk-KQSYAIZR.js";
123
+ import "./chunk-NIZ2BXFD.js";
127
124
  import "./chunk-5ZUL4CUO.js";
125
+ import "./chunk-RDH5CQ4T.js";
126
+ import "./chunk-H57T64RA.js";
128
127
  import "./chunk-UKZX3NHN.js";
129
128
  import "./chunk-5MMAK75Q.js";
130
- import "./chunk-2QHFH3DR.js";
131
- import "./chunk-OQHIVPG4.js";
129
+ import "./chunk-47ITIXO7.js";
132
130
  import "./chunk-KX6YBIHG.js";
131
+ import "./chunk-SNBZZPYH.js";
133
132
  import "./chunk-DWLEOOGR.js";
134
- import "./chunk-7DPNBQSV.js";
135
- import "./chunk-T43B7LB2.js";
136
- import "./chunk-ZRSNONOB.js";
137
- import "./chunk-4VJAC32I.js";
138
- import "./chunk-CJEIOP3E.js";
133
+ import "./chunk-OW765XBU.js";
134
+ import {
135
+ isAbortError
136
+ } from "./chunk-7DPNBQSV.js";
137
+ import "./chunk-WKGQSYTB.js";
138
+ import "./chunk-SY3C4SQ7.js";
139
+ import {
140
+ expandEnabledPacks
141
+ } from "./chunk-PJCIP64Z.js";
139
142
  import {
140
143
  canonicalizeToolName
141
- } from "./chunk-ZCWRMUWT.js";
142
- import "./chunk-ZC3CMUKU.js";
143
- import "./chunk-LOEO7LRC.js";
144
+ } from "./chunk-6OVNSQHN.js";
145
+ import "./chunk-W6RFEDN4.js";
146
+ import "./chunk-7ET2U67U.js";
147
+ import "./chunk-3IK6ILVW.js";
144
148
  import {
145
149
  extractCustomId
146
150
  } from "./chunk-M2EJHDJP.js";
147
- import "./chunk-KIM6CLW5.js";
151
+ import "./chunk-SYTHYBMI.js";
152
+ import {
153
+ createDialogMessageKeyAndId
154
+ } from "./chunk-OJKUU3LP.js";
155
+ import "./chunk-YZMNK53S.js";
156
+ import "./chunk-I42VC5KR.js";
157
+ import "./chunk-FJK526XH.js";
158
+ import "./chunk-VIDPVFP3.js";
159
+ import "./chunk-4JH2UMJR.js";
160
+ import "./chunk-JWXITTQB.js";
161
+ import "./chunk-L5I543VB.js";
162
+ import "./chunk-KHCLMKZZ.js";
148
163
  import "./chunk-PSCNXBYA.js";
149
- import "./chunk-TCZHTTUU.js";
150
- import "./chunk-YUA6OAH5.js";
151
- import "./chunk-SM3NSZJV.js";
152
- import "./chunk-JRTNUU5Z.js";
164
+ import "./chunk-I7WBYGBP.js";
165
+ import "./chunk-MDLS23JK.js";
153
166
  import "./chunk-HNMXYYJR.js";
167
+ import "./chunk-3EUW3WEO.js";
168
+ import "./chunk-2UCBGYO4.js";
169
+ import "./chunk-JRTNUU5Z.js";
154
170
  import "./chunk-KUG52IAP.js";
155
171
  import {
156
172
  PLATFORM_LLM_BUSY_USER_MESSAGE
157
- } from "./chunk-GOO6G4PY.js";
173
+ } from "./chunk-CKG3PRZ7.js";
158
174
  import "./chunk-QSJ3HFEF.js";
175
+ import "./chunk-U6VC4MU4.js";
176
+ import "./chunk-WWC7I6TA.js";
159
177
  import "./chunk-LCBAMY2M.js";
178
+ import "./chunk-G3SUCT4W.js";
160
179
  import "./chunk-4SN6J65J.js";
161
180
  import "./chunk-CF7PE763.js";
162
181
  import "./chunk-G7Y4GXTY.js";
163
182
  import "./chunk-6UBGXX2W.js";
164
- import "./chunk-JY5NGFFH.js";
165
- import {
166
- createDialogMessageKeyAndId
167
- } from "./chunk-XJWWBO34.js";
168
- import "./chunk-I42VC5KR.js";
169
- import "./chunk-U6VC4MU4.js";
170
- import "./chunk-WWC7I6TA.js";
171
- import "./chunk-3EUW3WEO.js";
172
- import "./chunk-G3SUCT4W.js";
173
- import "./chunk-4VNS5WPM.js";
183
+ import "./chunk-U67V476Y.js";
174
184
 
175
185
  // packages/ai/agent/foregroundTurnStageLog.ts
176
186
  var FOREGROUND_TURN_STAGE_LOG_PREFIX = "[foregroundTurn][latency]";
@@ -297,224 +307,6 @@ function resolveEffectiveToolSurface(input) {
297
307
  };
298
308
  }
299
309
 
300
- // packages/ai/tools/toolExecutionSemantics.ts
301
- var UNKNOWN_TOOL_EXECUTION_CONTRACT = {
302
- replay: "unknown",
303
- sideEffects: "unknown",
304
- locality: "unknown",
305
- interaction: "unknown",
306
- concurrency: "exclusive",
307
- durableWebForeground: false
308
- };
309
- var serverPureRead = (durableWebForeground) => ({
310
- replay: "pure",
311
- sideEffects: "none",
312
- locality: "server",
313
- interaction: "none",
314
- concurrency: "safe",
315
- durableWebForeground
316
- });
317
- var serverExternalRead = (durableWebForeground) => ({
318
- // Repeating the request should not mutate the target resource, but may spend
319
- // provider quota/money and may observe newer remote state; it is not pure.
320
- replay: "idempotent",
321
- sideEffects: "observable",
322
- locality: "server",
323
- interaction: "none",
324
- concurrency: "safe",
325
- durableWebForeground
326
- });
327
- var serverConfirmedHandoffStep = () => ({
328
- replay: "unsafe",
329
- sideEffects: "observable",
330
- locality: "server",
331
- interaction: "handoff",
332
- concurrency: "exclusive",
333
- durableWebForeground: false
334
- });
335
- var TOOL_EXECUTION_CONTRACT = Object.freeze({
336
- // Proven durable network reads. They execute on the server but touch external
337
- // systems, so replay/cost semantics are intentionally not called "pure".
338
- exa_search: serverExternalRead("read-only"),
339
- fetchWebpage: serverExternalRead("read-only"),
340
- // Proven durable server-hosted workspace reads/queries.
341
- searchDialogMessages: serverPureRead("read-only"),
342
- listDialogs: serverPureRead("read-only"),
343
- readDialog: serverPureRead("read-only"),
344
- queryDialogsBySubjectRef: serverPureRead("read-only"),
345
- listAgents: serverPureRead("read-only"),
346
- readAgent: serverPureRead("read-only"),
347
- listSpaces: serverPureRead("read-only"),
348
- readSpace: serverPureRead("read-only"),
349
- readDoc: serverPureRead("read-only"),
350
- readSkillDoc: serverPureRead("read-only"),
351
- listTables: serverPureRead("read-only"),
352
- queryTableRows: serverPureRead("read-only"),
353
- list_cloud_resources: serverPureRead("read-only"),
354
- cloud_probe: serverPureRead("read-only"),
355
- // Audited execution against an owned cloud resource. Same class as execShell
356
- // (arbitrary command, not replayable), except the executor itself runs on the
357
- // server through the authorization/capability/audit gate. Never read-only.
358
- cloud_exec: {
359
- replay: "unsafe",
360
- sideEffects: "mutation",
361
- locality: "server",
362
- interaction: "none",
363
- concurrency: "exclusive",
364
- durableWebForeground: false
365
- },
366
- // Read-only presentation payload. Actions remain inert; this adds no submit or
367
- // open-app authority to server-owned projection.
368
- show_interaction: {
369
- replay: "pure",
370
- sideEffects: "none",
371
- locality: "server",
372
- interaction: "none",
373
- concurrency: "safe",
374
- durableWebForeground: "read-only"
375
- },
376
- // Durable interactive boundary: the current execution ends and a later user
377
- // choice starts a new execution. It is intentionally not modeled as a read.
378
- ask_user: {
379
- replay: "unsafe",
380
- sideEffects: "observable",
381
- locality: "server",
382
- interaction: "blocking",
383
- concurrency: "exclusive",
384
- durableWebForeground: "interactive"
385
- },
386
- // Confirmed human hand-off boundary for the media step family. These tools
387
- // do not start work needing authorization: they return
388
- // `{ status: "requires_confirmation", ... }` and the run must stop and wait
389
- // for the user. Registered explicitly (rather than inferred from any status)
390
- // so a random tool echoing the same status never pauses the run, and kept out
391
- // of the durable Web foreground plane on purpose (media ServerTool admission
392
- // is owned elsewhere).
393
- transcribe: serverConfirmedHandoffStep(),
394
- translate: serverConfirmedHandoffStep(),
395
- exportDocument: serverConfirmedHandoffStep(),
396
- readArtifact: serverConfirmedHandoffStep(),
397
- // Representative explicitly non-durable execution classes. These entries
398
- // make the reason machine-readable; unlisted tools remain UNKNOWN.
399
- execShell: {
400
- replay: "unsafe",
401
- sideEffects: "mutation",
402
- locality: "workspace",
403
- interaction: "none",
404
- concurrency: "exclusive",
405
- durableWebForeground: false
406
- },
407
- readFile: {
408
- replay: "idempotent",
409
- sideEffects: "none",
410
- locality: "device",
411
- interaction: "none",
412
- concurrency: "safe",
413
- durableWebForeground: false
414
- },
415
- globFiles: {
416
- replay: "idempotent",
417
- sideEffects: "none",
418
- locality: "device",
419
- interaction: "none",
420
- concurrency: "safe",
421
- durableWebForeground: false
422
- },
423
- createDoc: {
424
- replay: "unsafe",
425
- sideEffects: "mutation",
426
- locality: "server",
427
- interaction: "none",
428
- concurrency: "exclusive",
429
- durableWebForeground: false
430
- },
431
- updateDoc: {
432
- replay: "unsafe",
433
- sideEffects: "mutation",
434
- locality: "server",
435
- interaction: "none",
436
- concurrency: "exclusive",
437
- durableWebForeground: false
438
- },
439
- createHtmlArtifact: {
440
- replay: "unsafe",
441
- sideEffects: "mutation",
442
- locality: "server",
443
- interaction: "none",
444
- concurrency: "exclusive",
445
- durableWebForeground: "mutating"
446
- },
447
- readHtmlArtifact: serverPureRead("read-only"),
448
- updateHtmlArtifact: {
449
- replay: "unsafe",
450
- sideEffects: "mutation",
451
- locality: "server",
452
- interaction: "none",
453
- concurrency: "exclusive",
454
- durableWebForeground: "mutating"
455
- },
456
- deleteDialogs: {
457
- replay: "unsafe",
458
- sideEffects: "mutation",
459
- locality: "server",
460
- interaction: "confirm",
461
- concurrency: "exclusive",
462
- durableWebForeground: false
463
- },
464
- loadSkill: {
465
- replay: "unsafe",
466
- sideEffects: "observable",
467
- locality: "server",
468
- interaction: "none",
469
- concurrency: "exclusive",
470
- durableWebForeground: false
471
- }
472
- });
473
- function resolveToolExecutionContract(toolName) {
474
- if (typeof toolName !== "string" || !toolName.trim()) {
475
- return UNKNOWN_TOOL_EXECUTION_CONTRACT;
476
- }
477
- const canonicalName = canonicalizeToolName(toolName);
478
- return TOOL_EXECUTION_CONTRACT[canonicalName] ?? UNKNOWN_TOOL_EXECUTION_CONTRACT;
479
- }
480
- function collectDurableWebToolNames(durableClass) {
481
- return new Set(
482
- Object.entries(TOOL_EXECUTION_CONTRACT).filter(([, contract]) => contract.durableWebForeground === durableClass).map(([name]) => name)
483
- );
484
- }
485
- var DURABLE_WEB_FOREGROUND_READ_ONLY_TOOL_NAMES = collectDurableWebToolNames("read-only");
486
- var DURABLE_WEB_FOREGROUND_INTERACTIVE_TOOL_NAMES = collectDurableWebToolNames("interactive");
487
- var DURABLE_WEB_FOREGROUND_MUTATING_TOOL_NAMES = collectDurableWebToolNames("mutating");
488
- var DURABLE_WEB_FOREGROUND_TOOL_NAMES = /* @__PURE__ */ new Set([
489
- ...DURABLE_WEB_FOREGROUND_READ_ONLY_TOOL_NAMES,
490
- ...DURABLE_WEB_FOREGROUND_INTERACTIVE_TOOL_NAMES,
491
- ...DURABLE_WEB_FOREGROUND_MUTATING_TOOL_NAMES
492
- ]);
493
- var CONFIRMED_HANDOFF_TOOL_NAMES = new Set(
494
- Object.entries(TOOL_EXECUTION_CONTRACT).filter(([, contract]) => contract.interaction === "handoff").map(([name]) => name)
495
- );
496
- function hasProvenServerReadOnlySemantics(toolName) {
497
- const contract = resolveToolExecutionContract(toolName);
498
- return contract.durableWebForeground === "read-only" && (contract.replay === "pure" || contract.replay === "idempotent") && (contract.sideEffects === "none" || contract.sideEffects === "observable") && contract.locality === "server" && contract.interaction === "none";
499
- }
500
- function hasProvenServerMutatingSemantics(toolName) {
501
- const contract = resolveToolExecutionContract(toolName);
502
- return contract.durableWebForeground === "mutating" && (contract.replay === "unsafe" || contract.replay === "deduplicated") && contract.sideEffects === "mutation" && contract.locality === "server" && contract.interaction === "none";
503
- }
504
- function hasProvenDurableWebForegroundSemantics(toolName) {
505
- const contract = resolveToolExecutionContract(toolName);
506
- if (contract.durableWebForeground === "read-only") {
507
- return hasProvenServerReadOnlySemantics(toolName);
508
- }
509
- if (contract.durableWebForeground === "interactive") {
510
- return contract.locality === "server" && contract.interaction === "blocking" && contract.sideEffects === "observable";
511
- }
512
- if (contract.durableWebForeground === "mutating") {
513
- return hasProvenServerMutatingSemantics(toolName);
514
- }
515
- return false;
516
- }
517
-
518
310
  // packages/ai/agent/serverOwnedWebForegroundEligibility.ts
519
311
  var AUDITED_WEB_FOREGROUND_HOST_BASELINE_TOOL_NAMES = /* @__PURE__ */ new Set([
520
312
  // TOOL_PACKS.CORE
@@ -926,7 +718,7 @@ async function canRunServerOwnedWebForegroundTurn(args, thunk) {
926
718
  let agentConfig = args.agentConfig ?? void 0;
927
719
  if (!agentConfig) {
928
720
  try {
929
- const { readAndWait: readAndWait2 } = await import("./dbSlice-BVH2YZPQ.js");
721
+ const { readAndWait: readAndWait2 } = await import("./dbSlice-WNON7TOL.js");
930
722
  agentConfig = await thunk.dispatch(readAndWait2(args.agentKey)).unwrap();
931
723
  } catch {
932
724
  return { eligible: false };
@@ -1113,11 +905,13 @@ async function runServerOwnedWebForegroundTurn(args, thunk) {
1113
905
  host: "browser",
1114
906
  runtime: "react",
1115
907
  entrypoint: "chat-dialog-server-owned",
908
+ userMessageId: selectAllMsgs(thunk.getState(), dialogId).filter((message) => message.role === "user" && message.metadata?.queueState !== "pending").at(-1)?.id,
1116
909
  capabilities: [
1117
910
  "streaming",
1118
911
  "dialog-ui",
1119
912
  "durable-foreground",
1120
913
  "client-user-prepersisted",
914
+ "durable-user-batch",
1121
915
  "durable-tool-cards"
1122
916
  ],
1123
917
  // This is the exact post-filter surface produced during admission, not a
@@ -1614,6 +1408,91 @@ function buildSendErrorMessageMarkdown(parsed) {
1614
1408
  return lines.join("\n");
1615
1409
  }
1616
1410
 
1411
+ // packages/app/utils/desktopCredentialRefillGate.ts
1412
+ var promptedCredentialRefs = /* @__PURE__ */ new Set();
1413
+ function resetPromptedCredentialRefsOnUserSend() {
1414
+ promptedCredentialRefs.clear();
1415
+ }
1416
+ function deriveSecretNameFromCredentialRef(credentialRef) {
1417
+ if (!credentialRef || typeof credentialRef !== "string") return "API Key";
1418
+ const trimmed = credentialRef.trim();
1419
+ const colonIndex = trimmed.indexOf(":");
1420
+ if (colonIndex >= 0 && colonIndex < trimmed.length - 1) {
1421
+ return trimmed.slice(colonIndex + 1);
1422
+ }
1423
+ return trimmed || "API Key";
1424
+ }
1425
+ function isCredentialMissingError(error) {
1426
+ if (!error || typeof error !== "object") return false;
1427
+ return error.kind === "credential_missing";
1428
+ }
1429
+ async function promptDesktopCredentialRefill(errorOrRef, options = {}) {
1430
+ const isDesktop = typeof options.isDesktopOverride === "boolean" ? options.isDesktopOverride : getIsDesktopApp();
1431
+ if (!isDesktop) {
1432
+ return false;
1433
+ }
1434
+ const credentialRef = typeof errorOrRef === "string" ? errorOrRef : typeof errorOrRef?.credentialRef === "string" ? errorOrRef.credentialRef : options.credentialRef;
1435
+ if (!credentialRef) {
1436
+ return false;
1437
+ }
1438
+ if (promptedCredentialRefs.has(credentialRef)) {
1439
+ return false;
1440
+ }
1441
+ promptedCredentialRefs.add(credentialRef);
1442
+ const fetchImpl = options.fetchImpl ?? globalThis.fetch;
1443
+ const gateId = `credential-refill-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
1444
+ const secretName = deriveSecretNameFromCredentialRef(credentialRef);
1445
+ const gate = {
1446
+ id: gateId,
1447
+ kind: "input",
1448
+ title: "\u91CD\u65B0\u63D0\u4F9B\u5BC6\u94A5",
1449
+ body: "\u8FD9\u4E00\u6B65\u9700\u8981\u91CD\u65B0\u63D0\u4F9B\u5BC6\u94A5",
1450
+ payload: {
1451
+ action: "secret_request",
1452
+ name: secretName
1453
+ }
1454
+ };
1455
+ return new Promise((resolve) => {
1456
+ let settled = false;
1457
+ const handleLocalResolve = async (resolveOpts) => {
1458
+ if (resolveOpts.decision === "cancel") {
1459
+ if (!settled) {
1460
+ settled = true;
1461
+ resolve(false);
1462
+ }
1463
+ return true;
1464
+ }
1465
+ const secret = resolveOpts.value ?? "";
1466
+ if (!secret.trim()) {
1467
+ throw new Error("\u5BC6\u94A5\u4E0D\u80FD\u4E3A\u7A7A");
1468
+ }
1469
+ const response = await fetchImpl("/api/desktop/credentials", {
1470
+ method: "POST",
1471
+ headers: { "Content-Type": "application/json" },
1472
+ credentials: "same-origin",
1473
+ body: JSON.stringify({
1474
+ op: "put",
1475
+ ref: credentialRef,
1476
+ secret
1477
+ })
1478
+ });
1479
+ if (!response.ok) {
1480
+ const data = await response.json().catch(() => null);
1481
+ throw new Error(data?.error || `\u5199\u5165\u51ED\u636E\u5931\u8D25 (HTTP ${response.status})`);
1482
+ }
1483
+ if (!settled) {
1484
+ settled = true;
1485
+ resolve(true);
1486
+ }
1487
+ return true;
1488
+ };
1489
+ pushGate(gate, {
1490
+ kind: "local",
1491
+ resolve: handleLocalResolve
1492
+ });
1493
+ });
1494
+ }
1495
+
1617
1496
  // packages/chat/dialog/actions/handleSendMessageAction.ts
1618
1497
  var getDialogConfig = (state, dialogKey) => {
1619
1498
  const resolvedDialogKey = dialogKey ?? getActiveDialogKey();
@@ -1744,6 +1623,7 @@ var finalizeSendFailureInDialog = async (dispatch, dialogConfig, agentKey, error
1744
1623
  };
1745
1624
  var handleSendMessageAction = async (args, thunkApi) => {
1746
1625
  const { dispatch, getState, rejectWithValue } = thunkApi;
1626
+ resetPromptedCredentialRefsOnUserSend();
1747
1627
  let dialogConfig = null;
1748
1628
  let agentKeyToUse;
1749
1629
  try {
@@ -1791,6 +1671,10 @@ var handleSendMessageAction = async (args, thunkApi) => {
1791
1671
  return rejectWithValue("\u672A\u627E\u5230\u53EF\u91CD\u8BD5\u7684\u7528\u6237\u8F93\u5165");
1792
1672
  }
1793
1673
  } else {
1674
+ const pendingHistory = selectAllMsgs(getState(), dialogConfig.id ?? extractCustomId(dialogConfig.dbKey ?? ""));
1675
+ if (selectPendingUserMessages(pendingHistory ?? []).length || pendingHistory?.some((message) => message.metadata?.userBatchPhase === "admitted")) {
1676
+ await dispatch(admitPendingUserMessages({ dialogKey: dialogConfig.dbKey, resumeUnrequested: true })).unwrap();
1677
+ }
1794
1678
  await dispatch(
1795
1679
  prepareAndPersistUserMessage({
1796
1680
  userInput: args.userInput ?? "",
@@ -1822,8 +1706,8 @@ var handleSendMessageAction = async (args, thunkApi) => {
1822
1706
  const dialogKey = dialogConfig.dbKey;
1823
1707
  const projectId = isDesktopContext && dialogKey ? readDialogProjectId(window.localStorage, dialogKey) : null;
1824
1708
  if (projectId) {
1825
- const { ensureProjectArchive } = await import("./projectArchive-DRTDIMEV.js");
1826
- const { DESKTOP_FOLDER_PROJECTS_KEY: DESKTOP_FOLDER_PROJECTS_KEY2, readDesktopFolderProjects: readDesktopFolderProjects2 } = await import("./desktopFolderProjects-SFY5EZS3.js");
1709
+ const { ensureProjectArchive } = await import("./projectArchive-HK63GMF4.js");
1710
+ const { DESKTOP_FOLDER_PROJECTS_KEY: DESKTOP_FOLDER_PROJECTS_KEY2, readDesktopFolderProjects: readDesktopFolderProjects2 } = await import("./desktopFolderProjects-4POAMVJN.js");
1827
1711
  const project = readDesktopFolderProjects2(window.localStorage.getItem(DESKTOP_FOLDER_PROJECTS_KEY2)).find((entry) => entry.id === projectId);
1828
1712
  if (!project) throw new Error("\u9879\u76EE\u5DF2\u4E0D\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u9879\u76EE");
1829
1713
  await ensureProjectArchive(project, userInputText || "\u9996\u6B21\u5BF9\u8BDD\u5305\u542B\u9644\u4EF6\uFF0C\u8BF7\u7ED3\u5408\u5BF9\u8BDD\u660E\u786E\u76EE\u6807\u3002", { dispatch, getState });
@@ -1915,6 +1799,13 @@ var handleSendMessageAction = async (args, thunkApi) => {
1915
1799
  }
1916
1800
  break;
1917
1801
  } catch (turnErr) {
1802
+ if (isAbortError(turnErr)) return;
1803
+ if (attempt < maxStartupAttempts && isCredentialMissingError(turnErr)) {
1804
+ const refilled = await promptDesktopCredentialRefill(turnErr);
1805
+ if (refilled) {
1806
+ continue;
1807
+ }
1808
+ }
1918
1809
  const parsed = parseSendError(turnErr);
1919
1810
  if (attempt < maxStartupAttempts && (parsed.kind === "network" || parsed.kind === "timeout")) {
1920
1811
  const delayMs = attempt * 800;
@@ -1965,6 +1856,7 @@ var handleSendMessageAction = async (args, thunkApi) => {
1965
1856
  });
1966
1857
  return;
1967
1858
  } catch (error) {
1859
+ if (isAbortError(error)) return;
1968
1860
  console.error("handleSendMessage failed:", error);
1969
1861
  const errorMessage = error instanceof Error ? error.message : typeof error === "string" ? error : error?.message || error?.error || String(error);
1970
1862
  try {