nolo-cli 0.259.0-alpha.1 → 0.261.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-MTM4BJK3.js → _executeModel-PODMRXJJ.js} +97 -83
  3. package/accountResolver-NGICIMEE.js +1 -1
  4. package/{action-C6IQAKN4.js → action-NJTYNXXR.js} +12 -10
  5. package/{addContentAction-53364YDW.js → addContentAction-RUPXLROG.js} +14 -13
  6. package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-57EJ2UBC.js} +20 -24
  7. package/{agentDeleteCommand-53NN3VSK.js → agentDeleteCommand-DRFCOTYP.js} +185 -147
  8. package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-FHENHUBF.js} +143 -127
  9. package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-BMVKNYIY.js} +9 -6
  10. package/{agentListCommands-62UYUQDI.js → agentListCommands-W66W5K3V.js} +88 -69
  11. package/{agentMachineCommands-W6TNJXEA.js → agentMachineCommands-C3BUBCXU.js} +69 -60
  12. package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-VIWKP7DM.js} +11 -8
  13. package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-5SNSXOY7.js} +10 -7
  14. package/agentRecordCommands-DYMHWTID.js +210 -0
  15. package/agentRun-QVFG3CI4.js +250 -0
  16. package/agentRunCommand-YV4V5HSL.js +248 -0
  17. package/{agentRunControl-LXMADX3N.js → agentRunControl-RGBHKPKJ.js} +19 -12
  18. package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-LVEMOYS2.js} +62 -49
  19. package/{agentSlice-3HHYUQLM.js → agentSlice-OJCM7OUX.js} +15 -18
  20. package/appConfigCommands-ZUXQLE7L.js +417 -0
  21. package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-L5UKUMXY.js} +68 -58
  22. package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-KX2BRQUW.js} +74 -59
  23. package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-7LHRSWW7.js} +68 -58
  24. package/{appGetCommands-73DXOAQW.js → appGetCommands-F7SDFCUK.js} +74 -58
  25. package/{appListCommands-HD5LOQ3G.js → appListCommands-U4NJKSMZ.js} +74 -58
  26. package/appMigrateCommands-JAPOLYSW.js +230 -0
  27. package/appSourceCommands-TLXPWXUH.js +279 -0
  28. package/authCommand-AU3GZBZ2.js +65 -0
  29. package/{authCommands-T5FODCEG.js → authCommands-JKBWMUQ4.js} +20 -17
  30. package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
  31. package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-F47WYQWF.js} +68 -18
  32. package/{chunk-5YS6QHGT.js → chunk-2FGFY72B.js} +9 -9
  33. package/{chunk-MJBLXJMP.js → chunk-2I4R6ZRV.js} +12 -9
  34. package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
  35. package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
  36. package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
  37. package/chunk-35JIFLIG.js +30 -0
  38. package/{chunk-7OVOZRZF.js → chunk-3B7OTHDW.js} +23 -379
  39. package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
  40. package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
  41. package/{chunk-XNNBXUEM.js → chunk-3TII7WCF.js} +5 -5
  42. package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
  43. package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
  44. package/chunk-4IVMDQBA.js +261 -0
  45. package/chunk-4Y6CZ2N4.js +82 -0
  46. package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
  47. package/{chunk-KQHEGELM.js → chunk-63G7JWEA.js} +16 -6
  48. package/{chunk-4EACJPZI.js → chunk-6BBXJGIQ.js} +51 -42
  49. package/chunk-72VWN4VK.js +51 -0
  50. package/chunk-7LR2IFUH.js +100 -0
  51. package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
  52. package/{chunk-XPETQ4MR.js → chunk-7X4BFUJV.js} +24 -10
  53. package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
  54. package/chunk-A4O76A6V.js +432 -0
  55. package/chunk-AMNZPQCY.js +635 -0
  56. package/{chunk-4MXYCQBS.js → chunk-AQNWWJLH.js} +2 -56
  57. package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
  58. package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
  59. package/{chunk-U6QNVOR5.js → chunk-BUGLH2A7.js} +130 -6
  60. package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
  61. package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
  62. package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
  63. package/{chunk-Y2TCTNUD.js → chunk-CK2LMTYO.js} +4 -4
  64. package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
  65. package/{chunk-57V4PADY.js → chunk-CNYPQYXT.js} +781 -449
  66. package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
  67. package/chunk-D3ONA3FP.js +762 -0
  68. package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
  69. package/chunk-DLXL4NSL.js +1179 -0
  70. package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
  71. package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
  72. package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
  73. package/{chunk-DBJODIZ6.js → chunk-EQOWWSNQ.js} +19 -27
  74. package/chunk-ER6NTALN.js +34 -0
  75. package/{chunk-L4XST72F.js → chunk-ERCSHBUD.js} +16027 -17392
  76. package/chunk-EUHMI5KG.js +101 -0
  77. package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
  78. package/{chunk-Q2EERN52.js → chunk-FF5ZRKW7.js} +12 -7
  79. package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
  80. package/chunk-FI4DPLR7.js +902 -0
  81. package/{chunk-HDKMVYNJ.js → chunk-FNLT7NKG.js} +7 -11
  82. package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
  83. package/chunk-FP46RAJQ.js +58 -0
  84. package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
  85. package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
  86. package/{chunk-FZENZCIA.js → chunk-GEC4CHS2.js} +19 -12
  87. package/chunk-GF4LYNNZ.js +25 -0
  88. package/{chunk-IYLUK67R.js → chunk-GH6SS2DZ.js} +25 -8
  89. package/chunk-HAZ6UVH4.js +368 -0
  90. package/{chunk-OKAXQFON.js → chunk-HB4J5HA6.js} +4 -4
  91. package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
  92. package/chunk-HJTI7RZV.js +94 -0
  93. package/{chunk-HQUGB2HM.js → chunk-HMFKYZKP.js} +62 -50
  94. package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
  95. package/{chunk-46FETNLF.js → chunk-IN4B6Z2D.js} +7 -6
  96. package/chunk-IV6VUVLJ.js +88 -0
  97. package/{chunk-LLUBUHNT.js → chunk-IWWJSSST.js} +5 -9
  98. package/{chunk-7BIJFGKS.js → chunk-J22PFCQN.js} +106 -52
  99. package/chunk-J42X32PV.js +472 -0
  100. package/{chunk-LCBAMY2M.js → chunk-JKVOKKMQ.js} +0 -7
  101. package/{chunk-KT7S7ANZ.js → chunk-JPYOHIHX.js} +9 -9
  102. package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
  103. package/{chunk-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
  104. package/{chunk-KLMBM6P6.js → chunk-KALCFXQO.js} +2454 -1115
  105. package/chunk-KDDXC2IH.js +148 -0
  106. package/chunk-KGKTN2NX.js +25 -0
  107. package/chunk-KGWE224L.js +246 -0
  108. package/{chunk-OYUMJMC5.js → chunk-KSV6T4AH.js} +6 -1
  109. package/{chunk-P27E22MA.js → chunk-L43DGEPZ.js} +1 -1
  110. package/{chunk-5BIDJVNX.js → chunk-L45P4JTE.js} +180 -31
  111. package/chunk-LHCIIUCX.js +222 -0
  112. package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
  113. package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
  114. package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
  115. package/{chunk-BIDSIRTS.js → chunk-LTCZOOAM.js} +11 -17
  116. package/chunk-LUTSMSIL.js +425 -0
  117. package/chunk-LXP53WGF.js +168 -0
  118. package/{chunk-2CT2J3O6.js → chunk-M7VNNPVX.js} +2493 -4055
  119. package/chunk-MDAYRIP7.js +1889 -0
  120. package/{chunk-6B2OBX5B.js → chunk-MMXHIHJZ.js} +15 -47
  121. package/{chunk-HPDLPEUG.js → chunk-MPWQI36J.js} +267 -234
  122. package/chunk-MRACVEPZ.js +7 -0
  123. package/{chunk-ZYPXOQS2.js → chunk-MSFKHPA6.js} +1 -1
  124. package/chunk-NHLLXINQ.js +8 -0
  125. package/{chunk-QXTEEEIN.js → chunk-NJCTPWJU.js} +8 -8
  126. package/chunk-NLS7F5DW.js +1697 -0
  127. package/{chunk-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
  128. package/{chunk-JLZJL3WC.js → chunk-O77F26YB.js} +370 -39
  129. package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
  130. package/{chunk-YN23INFZ.js → chunk-OIOMBPCA.js} +23 -2
  131. package/{chunk-CJOOF4L5.js → chunk-OSZNERNW.js} +17 -14
  132. package/{chunk-JZO7KUF3.js → chunk-P4I55ASV.js} +313 -275
  133. package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
  134. package/chunk-PL5RKESU.js +40 -0
  135. package/chunk-Q5FJJ6XI.js +103 -0
  136. package/{chunk-WS36XPJD.js → chunk-Q5IXZF3S.js} +82 -6
  137. package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
  138. package/{chunk-WSLL7VV4.js → chunk-QXWXRBOL.js} +9 -9
  139. package/{chunk-MXA54TQM.js → chunk-QZYQ3Y3G.js} +1 -1
  140. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  141. package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
  142. package/chunk-RF576RYE.js +117 -0
  143. package/chunk-RI7SXDJW.js +1317 -0
  144. package/{chunk-FEIVARWR.js → chunk-RIOAPUGV.js} +238 -25
  145. package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
  146. package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
  147. package/{chunk-J55F3IEZ.js → chunk-SARJZIGR.js} +1 -1
  148. package/chunk-SJFL32RD.js +356 -0
  149. package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
  150. package/{chunk-MPGR4ZNR.js → chunk-SRVLHMES.js} +46 -42
  151. package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
  152. package/{chunk-RD3QLZQV.js → chunk-SWJRX4M5.js} +324 -2
  153. package/{chunk-R3TUHCSJ.js → chunk-T3Y2NA4H.js} +8 -3
  154. package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
  155. package/{chunk-KWNVPY6M.js → chunk-TJXO66M2.js} +8 -5
  156. package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
  157. package/{chunk-ADYWV732.js → chunk-U5PSCTMR.js} +264 -177
  158. package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
  159. package/{chunk-QGFLVQ6E.js → chunk-UBOTXA3Z.js} +4 -14
  160. package/{chunk-6YX2RAQN.js → chunk-UEZL3RBG.js} +89 -164
  161. package/{chunk-NCFKHYDM.js → chunk-UJL23HBL.js} +774 -119
  162. package/chunk-ULPU4C43.js +1710 -0
  163. package/{chunk-UA3QTA2S.js → chunk-VC3MAT33.js} +4442 -2570
  164. package/{chunk-VNHZJEQN.js → chunk-VCESLFF4.js} +3 -3
  165. package/chunk-VOO3YQQP.js +17157 -0
  166. package/{chunk-Y2GWUBNS.js → chunk-VZDSNDUD.js} +279 -149
  167. package/{chunk-6BMTKYAO.js → chunk-W2Z5E2R7.js} +126 -698
  168. package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
  169. package/chunk-WEEB2JKA.js +443 -0
  170. package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
  171. package/chunk-WMBJDXMY.js +408 -0
  172. package/chunk-WSQLCWLQ.js +201 -0
  173. package/{chunk-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
  174. package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
  175. package/{chunk-MNFUKRRU.js → chunk-XKNDVHF5.js} +7 -7
  176. package/{chunk-MHKPUGPD.js → chunk-XREMPMNK.js} +20 -4
  177. package/chunk-XT6C2QZW.js +46 -0
  178. package/chunk-XUDXQT7R.js +790 -0
  179. package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
  180. package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
  181. package/{chunk-U35UUM5K.js → chunk-YVOUSIIA.js} +1 -1
  182. package/{chunk-6VEO7Z3Y.js → chunk-Z27AH6A5.js} +6 -6
  183. package/chunk-Z3KTXWWB.js +76 -0
  184. package/{chunk-UWWOWTW2.js → chunk-Z7EP5HDL.js} +1 -1
  185. package/{chunk-YFEK7ACQ.js → chunk-ZB2E724W.js} +4 -4
  186. package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
  187. package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
  188. package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-BJJEXHSZ.js} +20 -14
  189. package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
  190. package/cliAuthorityBrokerProcess-VIJEKQSX.js +34 -0
  191. package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-NDMKN4X2.js} +6 -3
  192. package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
  193. package/cliLocalAgentRecordReader-KCZS2MZU.js +113 -0
  194. package/cloudAutomationCommands-2WQUGQSW.js +310 -0
  195. package/{commandRegistry-IFYQLPGM.js → commandRegistry-C64JBZJ3.js} +288 -121
  196. package/{contentThunks-QCFCD2X3.js → contentThunks-G3HEIRXC.js} +45 -43
  197. package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
  198. package/createAgentAutomationAction-DSBL3X3A.js +172 -0
  199. package/createDialogAction-OHFUHC53.js +86 -0
  200. package/{createPageAction-QCVBMP4C.js → createPageAction-E6JZSZLU.js} +49 -45
  201. package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
  202. package/{dbSlice-RWPSVHBC.js → dbSlice-U3GPLEL3.js} +21 -16
  203. package/deleteDbKey-DRXKWJX5.js +86 -0
  204. package/{dialogCommands-4IEQUALS.js → dialogCommands-4EX2OTIC.js} +80 -66
  205. package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
  206. package/dialogNotifyCommand-4SCE2Z2R.js +44 -0
  207. package/dialogPortabilityCommands-ZSFFHRX4.js +3036 -0
  208. package/{dialogSlice-XFYID6KE.js → dialogSlice-PRZCIJCH.js} +43 -42
  209. package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-RKB76OVX.js} +84 -70
  210. package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-BP7HMRYP.js} +7 -4
  211. package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-JGPNGIZ7.js} +68 -59
  212. package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-XRJTNRDH.js} +68 -59
  213. package/{docReadCommands-EXQI7ETH.js → docReadCommands-6GFO4ARS.js} +67 -58
  214. package/{docStore-MWFUKZL2.js → docStore-QRLIWFTU.js} +16 -17
  215. package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-W2GXMUXW.js} +68 -59
  216. package/{ebookDownloaderAgentCommand-DYSKF5ZY.js → ebookDownloaderAgentCommand-2DHPGEOQ.js} +14 -17
  217. package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
  218. package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
  219. package/{handleSendMessageAction-GG3TR62X.js → handleSendMessageAction-DHGWURJZ.js} +265 -119
  220. package/{hostCredentialCreate-26S6DDJ5.js → hostCredentialCreate-FPUZ7RMI.js} +138 -122
  221. package/index.js +36 -22
  222. package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
  223. package/localAutomationCommands-ZMU22RQJ.js +198 -0
  224. package/localAutomationRuntime-MU5FGJ3V.js +60 -0
  225. package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
  226. package/{localRuntimeAdapter-VREWZWPC.js → localRuntimeAdapter-YBXQBV4G.js} +136 -119
  227. package/localRuntimeAuthority-LDXMEDO5.js +44 -0
  228. package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-6TQZDLNU.js} +1 -1
  229. package/{machineCommands-CL5XK5UC.js → machineCommands-57RTUYRV.js} +251 -357
  230. package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
  231. package/machineWsRunDispatch-VBKV3FFE.js +227 -0
  232. package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-J76SOJVZ.js} +40 -22
  233. package/mcpLocalManageCommands-USETIMHB.js +212 -0
  234. package/{memberThunks-43B7UYC5.js → memberThunks-7UERUEMI.js} +102 -22
  235. package/{memoryCommands-BC6REPQB.js → memoryCommands-N7NHEE55.js} +25 -34
  236. package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
  237. package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
  238. package/package.json +3 -3
  239. package/parityCommands-LYDLWSLK.js +613 -0
  240. package/{projectArchive-OC63TWTD.js → projectArchive-KCNQDVWJ.js} +49 -45
  241. package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
  242. package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
  243. package/{read-KG6INYUT.js → read-SPSQ6NLR.js} +11 -10
  244. package/{readDocTool-N3GA52JR.js → readDocTool-ENUL2GNL.js} +5 -1
  245. package/{readlineWorkspace-2NO6D6IZ.js → readlineWorkspace-MKS7TAEF.js} +927 -573
  246. package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
  247. package/remove-TNNDO635.js +32 -0
  248. package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-POPUZ3WU.js} +22 -26
  249. package/{runAgentClientLoop-U7V32UTD.js → runAgentClientLoop-KVILXQNI.js} +117 -82
  250. package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-4J2DP4LZ.js} +23 -16
  251. package/{secretCommands-KVVZS7A6.js → secretCommands-CSTQYB6T.js} +2 -2
  252. package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-35THMVBP.js} +16 -17
  253. package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-WLXBNIG7.js} +23 -27
  254. package/{settingThunks-DVKG4X4S.js → settingThunks-6Y5U5M5N.js} +170 -497
  255. package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
  256. package/{spaceCommands-7QKXKBDQ.js → spaceCommands-LXNJBO2U.js} +293 -58
  257. package/spacePruneCommand-2ITUFYBM.js +233 -0
  258. package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
  259. package/{streamAgentChatTurn-UAGFOXNJ.js → streamAgentChatTurn-EY6MFKCA.js} +225 -137
  260. package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-TG6BQRDA.js} +19 -23
  261. package/{tableCommands-EFA754RE.js → tableCommands-35G34R4B.js} +28 -49
  262. package/{toolApiClient-N5PYW2R3.js → toolApiClient-MPQIFYXP.js} +15 -4
  263. package/{tools-2Q2LBDUC.js → tools-CSLTRRUR.js} +73 -63
  264. package/{tuiRestart-4QDWLHYZ.js → tuiRestart-ALR4Q3JM.js} +20 -13
  265. package/tuiSummaryLlmCaller-3Y3JEXJK.js +52 -0
  266. package/{updateCommands-GJGRS6JK.js → updateCommands-GHQVP6Z5.js} +13 -8
  267. package/{updateDialogTitleAction-GGNTTI5L.js → updateDialogTitleAction-LFAWF5EW.js} +57 -58
  268. package/{usageCommand-WI6SQOPB.js → usageCommand-5VKW6T4C.js} +6 -8
  269. package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-VUQETFMW.js} +11 -15
  270. package/{windowsSelfUpdate-C7LGVWYX.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
  271. package/workContext-ZAW6VXT7.js +18 -0
  272. package/workContextQueryProjection-CACY5VFE.js +23 -0
  273. package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
  274. package/agentFavoriteCommands-7LOP3HUD.js +0 -186
  275. package/agentRecordCommands-TPE7NSZ6.js +0 -194
  276. package/agentRunCommand-DMVGBPLI.js +0 -232
  277. package/authCommand-V6EOMZX6.js +0 -79
  278. package/chunk-2MBTWINN.js +0 -89
  279. package/chunk-523DITKR.js +0 -32
  280. package/chunk-BUDVRYES.js +0 -2213
  281. package/chunk-BZMDWGQQ.js +0 -47
  282. package/chunk-GAHJLSDO.js +0 -107
  283. package/chunk-GYX6XTAI.js +0 -84
  284. package/chunk-HNUWUO75.js +0 -93
  285. package/chunk-HSBHS6KT.js +0 -33401
  286. package/chunk-KG27JIG4.js +0 -136
  287. package/chunk-OB4FBZXJ.js +0 -364
  288. package/chunk-OKH74FML.js +0 -3746
  289. package/chunk-OLZBQWZU.js +0 -6
  290. package/chunk-OOV5JN25.js +0 -1317
  291. package/chunk-OQFOE4SJ.js +0 -405
  292. package/chunk-PXYBUFDB.js +0 -53
  293. package/chunk-R3FZHW4Q.js +0 -103
  294. package/chunk-R3MV2GII.js +0 -106
  295. package/chunk-SCAC3NM5.js +0 -11751
  296. package/chunk-SR4FE5VD.js +0 -9
  297. package/chunk-SYTHYBMI.js +0 -3558
  298. package/chunk-UKZX3NHN.js +0 -48
  299. package/chunk-UVLYNWIE.js +0 -74
  300. package/chunk-VQX5JJNI.js +0 -861
  301. package/chunk-X4O7FJF5.js +0 -160
  302. package/chunk-YJPK35HB.js +0 -175
  303. package/chunk-YNIYE47Z.js +0 -105
  304. package/chunk-Z4PCXPUE.js +0 -127
  305. package/chunk-ZR5IVL4N.js +0 -862
  306. package/chunk-ZTHAJU3O.js +0 -2537
  307. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
  308. package/cliLocalAgentRecordReader-34UKRBLY.js +0 -104
  309. package/createDialogAction-ZAJERW62.js +0 -82
  310. package/deleteFile-ECU6FU5C.js +0 -55
  311. package/dialogNotifyCommand-IASQGEMW.js +0 -36
  312. package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
  313. package/machineWsRunDispatch-TBVOYOAH.js +0 -209
  314. package/markdownToSlate-PXYAIBVL.js +0 -8
  315. package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
  316. package/webapi-QVV65DQF.js +0 -2487
  317. package/workContext-Y3ADAPZU.js +0 -14
  318. package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
  319. package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
  320. package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
@@ -3,96 +3,101 @@ import {
3
3
  mergeReferences,
4
4
  resolveReferenceAssets,
5
5
  resolveToolsFromKeys
6
- } from "./chunk-KT7S7ANZ.js";
6
+ } from "./chunk-JPYOHIHX.js";
7
7
  import {
8
8
  UI_CARD_ENVELOPE_MAX_BYTES,
9
9
  getAllToolRuns,
10
10
  parseUiCard,
11
11
  uiCardFallback
12
- } from "./chunk-VQX5JJNI.js";
12
+ } from "./chunk-ULPU4C43.js";
13
13
  import {
14
14
  getDocState
15
- } from "./chunk-FZENZCIA.js";
15
+ } from "./chunk-GEC4CHS2.js";
16
16
  import {
17
17
  getTableState
18
- } from "./chunk-Y2GWUBNS.js";
18
+ } from "./chunk-VZDSNDUD.js";
19
19
  import {
20
+ getMessageStore,
20
21
  selectAllMsgs
21
- } from "./chunk-2CT2J3O6.js";
22
+ } from "./chunk-M7VNNPVX.js";
22
23
  import {
23
24
  getCurrentSpaceIdRaw,
24
25
  getViewMode
25
- } from "./chunk-YN23INFZ.js";
26
+ } from "./chunk-OIOMBPCA.js";
26
27
  import {
27
- selectById
28
- } from "./chunk-ADYWV732.js";
28
+ selectById,
29
+ selectOptionalEntities
30
+ } from "./chunk-U5PSCTMR.js";
29
31
  import {
30
32
  resolveToolBaseUrl
31
- } from "./chunk-KQHEGELM.js";
33
+ } from "./chunk-63G7JWEA.js";
32
34
  import {
33
35
  selectPendingFiles
34
- } from "./chunk-U35UUM5K.js";
36
+ } from "./chunk-YVOUSIIA.js";
35
37
  import {
38
+ getRuntimeServerSnapshot,
36
39
  getSessionSnapshotForState,
37
40
  selectIdentityUserBalance,
38
41
  selectIdentityUserId
39
- } from "./chunk-PXYBUFDB.js";
42
+ } from "./chunk-SWJRX4M5.js";
40
43
  import {
41
44
  projectToolMessageContent,
42
45
  resolveAgentRecommendedSkillNames,
43
46
  resolveAgentRequiredPackIds
44
- } from "./chunk-QIGQFON2.js";
47
+ } from "./chunk-TXMFSGRY.js";
45
48
  import {
46
49
  attachmentKind,
47
50
  extractReferenceKeysFromMessage,
48
51
  normalizeAttachmentPart
49
- } from "./chunk-7WHCIA5V.js";
52
+ } from "./chunk-G5IAIGGD.js";
50
53
  import {
51
54
  asRecordOrEmpty
52
55
  } from "./chunk-KX6YBIHG.js";
53
56
  import {
54
57
  isAbortError
55
58
  } from "./chunk-7DPNBQSV.js";
59
+ import {
60
+ dedupeSkillPromptPatches
61
+ } from "./chunk-KAHYBAEN.js";
56
62
  import {
57
63
  TOOL_PACKS,
58
64
  addDefaultSystemCapabilityTools,
59
65
  applyDefaultWebToolPacks,
60
66
  applyDisabledTools,
61
67
  applySystemBuiltinSkillFilter,
62
- dedupeSkillPromptPatches,
63
68
  expandEnabledPackPromptPatches,
64
69
  expandEnabledPacks,
65
70
  resolveEffectiveEnabledPacks
66
- } from "./chunk-KVMLM5VD.js";
71
+ } from "./chunk-J42X32PV.js";
67
72
  import {
68
73
  metaKey
69
- } from "./chunk-SYTHYBMI.js";
74
+ } from "./chunk-DLXL4NSL.js";
70
75
  import {
71
76
  canonicalizeToolNames,
72
77
  prioritizeToolNames
73
- } from "./chunk-YLAHYLDQ.js";
78
+ } from "./chunk-HJTI7RZV.js";
74
79
  import {
75
80
  extractCustomId
76
81
  } from "./chunk-M2EJHDJP.js";
77
82
  import {
78
83
  asNonEmptyStringArray
79
84
  } from "./chunk-I42VC5KR.js";
85
+ import {
86
+ asTrimmedString
87
+ } from "./chunk-3EUW3WEO.js";
80
88
  import {
81
89
  getFinalPrice,
82
90
  getModelPricing,
83
91
  getPrices,
84
92
  hasExplicitAgentPricing
85
- } from "./chunk-P4R5KXU7.js";
86
- import {
87
- asTrimmedString
88
- } from "./chunk-3EUW3WEO.js";
93
+ } from "./chunk-CW6LRDSF.js";
89
94
  import {
90
95
  asOptionalFiniteNumber
91
96
  } from "./chunk-WWC7I6TA.js";
92
97
  import {
93
98
  getModelConfig,
94
99
  getProviderByModelName
95
- } from "./chunk-OKH74FML.js";
100
+ } from "./chunk-RI7SXDJW.js";
96
101
  import {
97
102
  isRecord
98
103
  } from "./chunk-KUG52IAP.js";
@@ -100,84 +105,6 @@ import {
100
105
  asOptionalTrimmedString
101
106
  } from "./chunk-G3SUCT4W.js";
102
107
 
103
- // packages/app/utils/desktopActionGateChannel.ts
104
- function targetForRunKind(kind, ctx = {}) {
105
- if (kind === "server-run") {
106
- return {
107
- kind: "web",
108
- server: ctx.server?.trim() ?? "",
109
- token: ctx.token ?? null
110
- };
111
- }
112
- return { kind: "desktop" };
113
- }
114
- var NEEDS_LOGIN_MESSAGE = "\u9700\u8981\u767B\u5F55\u540E\u624D\u80FD\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
115
- var MISSING_SERVER_MESSAGE = "\u672A\u914D\u7F6E\u670D\u52A1\u5668\u5730\u5740\uFF0C\u65E0\u6CD5\u5904\u7406\u8BE5\u6388\u6743\u8BF7\u6C42";
116
- var gates = /* @__PURE__ */ new Map();
117
- var targets = /* @__PURE__ */ new Map();
118
- var failures = /* @__PURE__ */ new Map();
119
- var metadata = /* @__PURE__ */ new Map();
120
- var errors = /* @__PURE__ */ new Map();
121
- var listeners = /* @__PURE__ */ new Set();
122
- var cachedSnapshot = null;
123
- function invalidateSnapshot() {
124
- cachedSnapshot = null;
125
- }
126
- function notify() {
127
- for (const listener of listeners) {
128
- try {
129
- listener();
130
- } catch {
131
- }
132
- }
133
- }
134
- function pushGate(gate, target = { kind: "desktop" }, meta) {
135
- if (!gate || typeof gate.id !== "string" || gate.id.length === 0) return;
136
- failures.delete(gate.id);
137
- if (target.kind === "web" && (!target.token || !target.server.trim())) {
138
- const message = !target.token ? NEEDS_LOGIN_MESSAGE : MISSING_SERVER_MESSAGE;
139
- if (meta) failures.set(gate.id, { gateId: gate.id, meta: { ...meta, storage: "web" }, message });
140
- gates.delete(gate.id);
141
- targets.delete(gate.id);
142
- metadata.delete(gate.id);
143
- errors.set(gate.id, message);
144
- invalidateSnapshot();
145
- notify();
146
- return;
147
- }
148
- metadata.delete(gate.id);
149
- if (meta && target.kind !== "local") metadata.set(gate.id, { ...meta, storage: target.kind });
150
- errors.delete(gate.id);
151
- targets.set(gate.id, target);
152
- gates.set(gate.id, gate);
153
- invalidateSnapshot();
154
- notify();
155
- }
156
- function clearGateTurn(turnId) {
157
- for (const [id, failure] of failures) {
158
- if (failure.meta.turnId === turnId) failures.delete(id);
159
- }
160
- for (const [id, meta] of metadata) {
161
- if (meta.turnId !== turnId) continue;
162
- gates.delete(id);
163
- targets.delete(id);
164
- metadata.delete(id);
165
- errors.delete(id);
166
- }
167
- invalidateSnapshot();
168
- notify();
169
- }
170
- function getSnapshot() {
171
- if (!cachedSnapshot) {
172
- cachedSnapshot = {
173
- gates: [...gates.values()],
174
- failures: [...failures.values()],
175
- errors: Object.fromEntries(errors)
176
- };
177
- }
178
- return cachedSnapshot;
179
- }
180
-
181
108
  // packages/ai/agent/foregroundTurnAdmissionFetch.ts
182
109
  var FOREGROUND_TURN_KEEPALIVE_MAX_BODY_BYTES = 60 * 1024;
183
110
  function getUtf8ByteLength(value) {
@@ -209,6 +136,8 @@ function trimCache() {
209
136
  stateByDialogId.delete(oldest);
210
137
  }
211
138
  }
139
+ var executionListeners = /* @__PURE__ */ new Set();
140
+ var notifyExecutionListeners = () => executionListeners.forEach((listener) => listener());
212
141
  function setForegroundExecutionClientState(args) {
213
142
  const dialogId = trimmed(args.dialogId);
214
143
  const executionId = trimmed(args.executionId);
@@ -216,6 +145,7 @@ function setForegroundExecutionClientState(args) {
216
145
  stateByDialogId.delete(dialogId);
217
146
  stateByDialogId.set(dialogId, { dialogId, executionId, status: "running" });
218
147
  trimCache();
148
+ notifyExecutionListeners();
219
149
  }
220
150
  function clearForegroundExecutionClientState(dialogId, expectedExecutionId) {
221
151
  const normalizedDialogId = trimmed(dialogId);
@@ -224,7 +154,7 @@ function clearForegroundExecutionClientState(dialogId, expectedExecutionId) {
224
154
  const current = stateByDialogId.get(normalizedDialogId);
225
155
  if (current && current.executionId !== expectedExecutionId) return;
226
156
  }
227
- stateByDialogId.delete(normalizedDialogId);
157
+ if (stateByDialogId.delete(normalizedDialogId)) notifyExecutionListeners();
228
158
  }
229
159
  function observeForegroundExecutionPayload(payload) {
230
160
  if (!payload || typeof payload !== "object") return;
@@ -320,7 +250,7 @@ async function consumeAgentRunStream(handlers) {
320
250
  return { outcome: "aborted" };
321
251
  }
322
252
  if (done) {
323
- clearObservedExecution();
253
+ if (sawDone || !handlers.retainExecutionOnDisconnect) clearObservedExecution();
324
254
  return { outcome: "streamEnded", sawDone };
325
255
  }
326
256
  const payloads = parseChunk(
@@ -355,7 +285,7 @@ async function consumeAgentRunStream(handlers) {
355
285
  }
356
286
  }
357
287
  } catch (error) {
358
- clearObservedExecution();
288
+ if (sawDone || !handlers.retainExecutionOnDisconnect || isAborted() || signal?.aborted) clearObservedExecution();
359
289
  if (isAbortError(error) || isAborted() || signal?.aborted) {
360
290
  await onAbort();
361
291
  return { outcome: "aborted" };
@@ -414,12 +344,12 @@ function parseShellToolTextContent(content) {
414
344
  ...typeof exitCode === "number" && Number.isFinite(exitCode) ? { exitCode } : {}
415
345
  };
416
346
  }
417
- function resolveShellCommand(metadata2, argumentsPreview) {
418
- return asOptionalTrimmedString(metadata2.command) || asOptionalTrimmedString(metadata2.cmd) || asOptionalTrimmedString(argumentsPreview) || "";
347
+ function resolveShellCommand(metadata, argumentsPreview) {
348
+ return asOptionalTrimmedString(metadata.command) || asOptionalTrimmedString(metadata.cmd) || asOptionalTrimmedString(argumentsPreview) || "";
419
349
  }
420
350
  function projectDesktopToolUiContent(args) {
421
351
  const toolName = asOptionalTrimmedString(args.toolName) || "tool";
422
- const metadata2 = isRecord(args.metadata) ? args.metadata : {};
352
+ const metadata = isRecord(args.metadata) ? args.metadata : {};
423
353
  const rawContent = typeof args.content === "string" ? args.content : typeof args.summary === "string" ? args.summary : typeof args.message === "string" ? args.message : "";
424
354
  if (toolName === "show_interaction") {
425
355
  try {
@@ -446,36 +376,36 @@ function projectDesktopToolUiContent(args) {
446
376
  if (toolName === "execShell") {
447
377
  const existing = tryParseJsonRecord(rawContent);
448
378
  if (existing && (typeof existing.stdout === "string" || typeof existing.command === "string" || typeof existing.stderr === "string")) {
449
- const command2 = asOptionalTrimmedString(existing.command) || resolveShellCommand(metadata2, args.argumentsPreview);
379
+ const command2 = asOptionalTrimmedString(existing.command) || resolveShellCommand(metadata, args.argumentsPreview);
450
380
  return JSON.stringify({
451
381
  ...existing,
452
382
  command: command2,
453
- cwd: asOptionalTrimmedString(existing.cwd) || asOptionalTrimmedString(metadata2.cwd) || null,
454
- exitCode: asOptionalFiniteNumber(existing.exitCode) ?? asOptionalFiniteNumber(metadata2.exitCode)
383
+ cwd: asOptionalTrimmedString(existing.cwd) || asOptionalTrimmedString(metadata.cwd) || null,
384
+ exitCode: asOptionalFiniteNumber(existing.exitCode) ?? asOptionalFiniteNumber(metadata.exitCode)
455
385
  });
456
386
  }
457
387
  const parsed = parseShellToolTextContent(rawContent);
458
- const command = resolveShellCommand(metadata2, args.argumentsPreview);
388
+ const command = resolveShellCommand(metadata, args.argumentsPreview);
459
389
  return JSON.stringify({
460
390
  command,
461
- cwd: asOptionalTrimmedString(metadata2.cwd) || null,
391
+ cwd: asOptionalTrimmedString(metadata.cwd) || null,
462
392
  stdout: clipUiText(parsed.stdout),
463
393
  stderr: clipUiText(parsed.stderr),
464
- exitCode: asOptionalFiniteNumber(metadata2.exitCode) ?? parsed.exitCode,
465
- timedOut: metadata2.timedOut === true,
466
- blocked: metadata2.blocked === true
394
+ exitCode: asOptionalFiniteNumber(metadata.exitCode) ?? parsed.exitCode,
395
+ timedOut: metadata.timedOut === true,
396
+ blocked: metadata.blocked === true
467
397
  });
468
398
  }
469
399
  if (toolName === "readFile" || toolName === "read_file") {
470
- const filePath = asOptionalTrimmedString(metadata2.path) || asOptionalTrimmedString(metadata2.filePath) || asOptionalTrimmedString(metadata2.file_path) || asOptionalTrimmedString(args.argumentsPreview) || "";
400
+ const filePath = asOptionalTrimmedString(metadata.path) || asOptionalTrimmedString(metadata.filePath) || asOptionalTrimmedString(metadata.file_path) || asOptionalTrimmedString(args.argumentsPreview) || "";
471
401
  const body = typeof args.content === "string" && args.content || typeof args.summary === "string" && args.summary || typeof args.message === "string" && args.message || "";
472
402
  return JSON.stringify({
473
403
  filePath,
474
404
  content: clipUiText(body),
475
- ...asOptionalFiniteNumber(metadata2.startLine) != null ? { startLine: asOptionalFiniteNumber(metadata2.startLine) } : {},
476
- ...asOptionalFiniteNumber(metadata2.endLine) != null ? { endLine: asOptionalFiniteNumber(metadata2.endLine) } : {},
477
- ...asOptionalFiniteNumber(metadata2.totalLines) != null ? { totalLines: asOptionalFiniteNumber(metadata2.totalLines) } : {},
478
- ...metadata2.truncated === true ? { truncated: true } : {}
405
+ ...asOptionalFiniteNumber(metadata.startLine) != null ? { startLine: asOptionalFiniteNumber(metadata.startLine) } : {},
406
+ ...asOptionalFiniteNumber(metadata.endLine) != null ? { endLine: asOptionalFiniteNumber(metadata.endLine) } : {},
407
+ ...asOptionalFiniteNumber(metadata.totalLines) != null ? { totalLines: asOptionalFiniteNumber(metadata.totalLines) } : {},
408
+ ...metadata.truncated === true ? { truncated: true } : {}
479
409
  });
480
410
  }
481
411
  const preferred = typeof args.content === "string" && args.content || typeof args.summary === "string" && args.summary || typeof args.message === "string" && args.message || "";
@@ -704,13 +634,13 @@ var buildStaticUserPolicyContext = (params) => {
704
634
  function buildCanvasNodeEditingContextSummary(runtimeOptions) {
705
635
  if (runtimeOptions?.editingTarget?.kind !== "canvas_node") return null;
706
636
  const editingTarget = runtimeOptions.editingTarget;
707
- const metadata2 = editingTarget.metadata ?? {};
708
- const selectedNodeId = typeof metadata2.selectedNodeId === "string" ? metadata2.selectedNodeId : editingTarget.key ?? "(\u672A\u77E5\u8282\u70B9)";
709
- const part = typeof metadata2.part === "string" ? metadata2.part : editingTarget.title ?? selectedNodeId;
710
- const nodeType = typeof metadata2.type === "string" ? metadata2.type : "(\u672A\u77E5\u7C7B\u578B)";
711
- const path = Array.isArray(metadata2.path) ? metadata2.path.filter((item) => typeof item === "string") : [];
712
- const props = asRecordOrEmpty(metadata2.props);
713
- const style = asRecordOrEmpty(metadata2.style);
637
+ const metadata = editingTarget.metadata ?? {};
638
+ const selectedNodeId = typeof metadata.selectedNodeId === "string" ? metadata.selectedNodeId : editingTarget.key ?? "(\u672A\u77E5\u8282\u70B9)";
639
+ const part = typeof metadata.part === "string" ? metadata.part : editingTarget.title ?? selectedNodeId;
640
+ const nodeType = typeof metadata.type === "string" ? metadata.type : "(\u672A\u77E5\u7C7B\u578B)";
641
+ const path = Array.isArray(metadata.path) ? metadata.path.filter((item) => typeof item === "string") : [];
642
+ const props = asRecordOrEmpty(metadata.props);
643
+ const style = asRecordOrEmpty(metadata.style);
714
644
  return [
715
645
  "\u5F53\u524D\u7F16\u8F91\u76EE\u6807\uFF1ACanvas Tree \u4E2D\u7684\u4E00\u4E2A\u9009\u4E2D\u8282\u70B9\u3002",
716
646
  `- \u8282\u70B9 ID: ${selectedNodeId}`,
@@ -835,9 +765,9 @@ var formatAppConstraintPacks = (packs) => {
835
765
  };
836
766
  function resolveEditingTargetTableIdentity(editingTarget) {
837
767
  if (!editingTarget || editingTarget.kind !== "table") return null;
838
- const metadata2 = editingTarget.metadata;
839
- const tenantId = typeof editingTarget.tenantId === "string" && editingTarget.tenantId || typeof metadata2?.tenantId === "string" && metadata2.tenantId || void 0;
840
- const tableId = typeof editingTarget.tableId === "string" && editingTarget.tableId || typeof metadata2?.tableId === "string" && metadata2.tableId || void 0;
768
+ const metadata = editingTarget.metadata;
769
+ const tenantId = typeof editingTarget.tenantId === "string" && editingTarget.tenantId || typeof metadata?.tenantId === "string" && metadata.tenantId || void 0;
770
+ const tableId = typeof editingTarget.tableId === "string" && editingTarget.tableId || typeof metadata?.tableId === "string" && metadata.tableId || void 0;
841
771
  if (!tenantId || !tableId) return null;
842
772
  return { tenantId, tableId };
843
773
  }
@@ -928,7 +858,7 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
928
858
  if (!targetIdentity) return null;
929
859
  const { tenantId, tableId } = targetIdentity;
930
860
  const targetDbKey = metaKey(tenantId, tableId);
931
- const dbEntities = state?.db?.entities;
861
+ const dbEntities = selectOptionalEntities(state);
932
862
  const metaFromDb = dbEntities?.[targetDbKey];
933
863
  const stateTable = state?.table;
934
864
  const metaFromStateTable = stateTable?.currentTable?.tableId === tableId || stateTable?.currentTable?.dbKey === targetDbKey ? stateTable.currentTable : null;
@@ -951,8 +881,8 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
951
881
  (entity) => entity?.type === "table_row" /* TABLE_ROW */ && entity?.tenantId === tenantId && entity?.tableId === tableId && !entity?.deletedAt
952
882
  );
953
883
  }
954
- const metadata2 = editingTarget?.metadata;
955
- const focusContext = metadata2 && typeof metadata2 === "object" ? metadata2.focusContext : null;
884
+ const metadata = editingTarget?.metadata;
885
+ const focusContext = metadata && typeof metadata === "object" ? metadata.focusContext : null;
956
886
  if (!table) return null;
957
887
  const columns = Array.isArray(table.columns) ? table.columns : [];
958
888
  const columnSummaries = columns.length ? columns.map((c) => {
@@ -1003,8 +933,8 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
1003
933
  }
1004
934
  if (targetKind === "page" || targetKind === "article") {
1005
935
  const page = getDocState();
1006
- const metadata2 = runtimeOptions?.editingTarget?.metadata;
1007
- const focusContext = metadata2 && typeof metadata2 === "object" ? metadata2.focusContext : null;
936
+ const metadata = runtimeOptions?.editingTarget?.metadata;
937
+ const focusContext = metadata && typeof metadata === "object" ? metadata.focusContext : null;
1008
938
  if (!page) return null;
1009
939
  const title = page.title ?? "(\u672A\u547D\u540D\u9875\u9762)";
1010
940
  return [
@@ -1025,17 +955,17 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
1025
955
  }
1026
956
  if (targetKind === "app") {
1027
957
  const editingTarget = runtimeOptions?.editingTarget;
1028
- const metadata2 = editingTarget?.metadata;
958
+ const metadata = editingTarget?.metadata;
1029
959
  const appId = editingTarget?.key ?? "(\u672A\u77E5 appId)";
1030
960
  const title = editingTarget?.title ?? "(\u672A\u547D\u540D\u5E94\u7528)";
1031
- const framework = typeof metadata2?.framework === "string" ? metadata2.framework : "worker";
1032
- const appUrl = typeof metadata2?.appUrl === "string" ? metadata2.appUrl : null;
1033
- const fileNames = Array.isArray(metadata2?.fileNames) ? metadata2.fileNames.filter((name) => typeof name === "string") : [];
1034
- const externalImports = Array.isArray(metadata2?.externalImports) ? metadata2.externalImports.filter(
961
+ const framework = typeof metadata?.framework === "string" ? metadata.framework : "worker";
962
+ const appUrl = typeof metadata?.appUrl === "string" ? metadata.appUrl : null;
963
+ const fileNames = Array.isArray(metadata?.fileNames) ? metadata.fileNames.filter((name) => typeof name === "string") : [];
964
+ const externalImports = Array.isArray(metadata?.externalImports) ? metadata.externalImports.filter(
1035
965
  (name) => typeof name === "string"
1036
966
  ) : [];
1037
967
  const sourceSummary = asOptionalTrimmedString(editingTarget?.summary) ?? null;
1038
- const selectedNode = metadata2 && typeof metadata2 === "object" && metadata2.selectedNode && typeof metadata2.selectedNode === "object" ? metadata2.selectedNode : null;
968
+ const selectedNode = metadata && typeof metadata === "object" && metadata.selectedNode && typeof metadata.selectedNode === "object" ? metadata.selectedNode : null;
1039
969
  const constraintPacks = buildAppConstraintPacks({
1040
970
  framework,
1041
971
  fileNames,
@@ -1088,8 +1018,8 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
1088
1018
  ].join("\n");
1089
1019
  }
1090
1020
  if (targetKind === "local_preview") {
1091
- const metadata2 = runtimeOptions?.editingTarget?.metadata;
1092
- const selectedNode = metadata2 && typeof metadata2 === "object" && metadata2.selectedNode && typeof metadata2.selectedNode === "object" ? metadata2.selectedNode : null;
1021
+ const metadata = runtimeOptions?.editingTarget?.metadata;
1022
+ const selectedNode = metadata && typeof metadata === "object" && metadata.selectedNode && typeof metadata.selectedNode === "object" ? metadata.selectedNode : null;
1093
1023
  if (!selectedNode) return null;
1094
1024
  const readString = (key) => typeof selectedNode[key] === "string" ? selectedNode[key] : "";
1095
1025
  const tagName = readString("tagName") || "\u5143\u7D20";
@@ -1112,13 +1042,13 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
1112
1042
  }
1113
1043
  if (targetKind === "image" || targetKind === "file") {
1114
1044
  const editingTarget = runtimeOptions?.editingTarget;
1115
- const metadata2 = editingTarget?.metadata;
1045
+ const metadata = editingTarget?.metadata;
1116
1046
  const title = editingTarget?.title ?? "(\u672A\u547D\u540D\u5BF9\u8C61)";
1117
1047
  const objectKey = editingTarget?.key ?? "(\u672A\u77E5 key)";
1118
- const fileId = typeof metadata2?.fileId === "string" ? metadata2.fileId : null;
1119
- const url = typeof metadata2?.url === "string" ? metadata2.url : null;
1120
- const size = typeof metadata2?.size === "number" ? metadata2.size : null;
1121
- const epubLines = targetKind === "file" ? buildEpubContextLines(metadata2?.epub) : [];
1048
+ const fileId = typeof metadata?.fileId === "string" ? metadata.fileId : null;
1049
+ const url = typeof metadata?.url === "string" ? metadata.url : null;
1050
+ const size = typeof metadata?.size === "number" ? metadata.size : null;
1051
+ const epubLines = targetKind === "file" ? buildEpubContextLines(metadata?.epub) : [];
1122
1052
  return [
1123
1053
  `\u5F53\u524D\u7F16\u8F91\u76EE\u6807\uFF1A\u4E00\u4E2A${targetKind === "image" ? "\u56FE\u7247" : "\u6587\u4EF6"}\u5BF9\u8C61\uFF08Editing ${targetKind === "image" ? "Image" : "File"}\uFF09\u3002`,
1124
1054
  `- \u5BF9\u8C61 key: ${objectKey}`,
@@ -1137,10 +1067,10 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
1137
1067
  }
1138
1068
  if (targetKind === "artifact" || targetKind === "html_artifact") {
1139
1069
  const editingTarget = runtimeOptions?.editingTarget;
1140
- const metadata2 = editingTarget?.metadata;
1141
- const artifactId = typeof editingTarget?.key === "string" && editingTarget.key ? editingTarget.key : typeof metadata2?.artifactId === "string" ? metadata2.artifactId : typeof editingTarget?.artifactId === "string" ? editingTarget.artifactId : null;
1142
- const title = editingTarget?.title ?? (typeof metadata2?.title === "string" ? metadata2.title : "HTML \u7F51\u9875\u6210\u54C1");
1143
- const dialogKey = typeof metadata2?.dialogKey === "string" ? metadata2.dialogKey : typeof editingTarget?.dialogKey === "string" ? editingTarget.dialogKey : null;
1070
+ const metadata = editingTarget?.metadata;
1071
+ const artifactId = typeof editingTarget?.key === "string" && editingTarget.key ? editingTarget.key : typeof metadata?.artifactId === "string" ? metadata.artifactId : typeof editingTarget?.artifactId === "string" ? editingTarget.artifactId : null;
1072
+ const title = editingTarget?.title ?? (typeof metadata?.title === "string" ? metadata.title : "HTML \u7F51\u9875\u6210\u54C1");
1073
+ const dialogKey = typeof metadata?.dialogKey === "string" ? metadata.dialogKey : typeof editingTarget?.dialogKey === "string" ? editingTarget.dialogKey : null;
1144
1074
  return [
1145
1075
  "\u5F53\u524D\u7F16\u8F91\u76EE\u6807\uFF1A\u5355\u6587\u4EF6 HTML \u7F51\u9875\u6210\u54C1\uFF08Editing HTML Artifact\uFF09\u3002",
1146
1076
  ...artifactId ? [`- \u6210\u54C1 ID (artifactId): ${artifactId}`] : ["- \u6210\u54C1 ID: (\u65B0\u5EFA\u4E2D\u6216\u672A\u6307\u5B9A)"],
@@ -1358,8 +1288,7 @@ var validateAccessAndBalance = (agentConfig, state) => {
1358
1288
  "cursor",
1359
1289
  "chatgpt",
1360
1290
  "xai",
1361
- "antigravity",
1362
- "claude"
1291
+ "devin"
1363
1292
  ]);
1364
1293
  if (SUBSCRIPTION_OAUTH_REFS.has((agentConfig.apiKeyRef ?? "").trim().toLowerCase())) {
1365
1294
  return null;
@@ -1388,9 +1317,9 @@ var validateAccessAndBalance = (agentConfig, state) => {
1388
1317
  }
1389
1318
  return null;
1390
1319
  };
1391
- var fetchMemoryOverlayContext = async (state, agentConfig, userInput, dialogConfig) => {
1320
+ var fetchMemoryOverlayContext = async (state, agentConfig, userInput, dialogConfig, serverBase = getRuntimeServerSnapshot(state).currentServer) => {
1392
1321
  const token = getSessionSnapshotForState(state)?.activeToken ?? null;
1393
- const currentServer = typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
1322
+ const currentServer = serverBase;
1394
1323
  const agentKey = asOptionalTrimmedString(agentConfig.dbKey) ?? "";
1395
1324
  if (!token || !currentServer || !agentKey) return null;
1396
1325
  const baseUrl = resolveToolBaseUrl(currentServer);
@@ -1447,7 +1376,7 @@ var buildStaticContexts = async (state, dispatch, agentConfig, dialogConfig, ref
1447
1376
  userPolicyContext: buildStaticUserPolicyContext({ agentConfig })
1448
1377
  };
1449
1378
  };
1450
- var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runtimeOptions, referenceContentCache, dialogKey) => {
1379
+ var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runtimeOptions, referenceContentCache, dialogKey, serverBase) => {
1451
1380
  let dialogSummary = null;
1452
1381
  let dialogConfig;
1453
1382
  if (dialogKey) {
@@ -1493,7 +1422,8 @@ var buildDynamicContexts = async (state, dispatch, agentConfig, userInput, runti
1493
1422
  state,
1494
1423
  agentConfig,
1495
1424
  userInput,
1496
- dialogConfig
1425
+ dialogConfig,
1426
+ serverBase
1497
1427
  );
1498
1428
  return {
1499
1429
  currentInputContext: formattedCurrentInputContext.trim() || null,
@@ -1537,7 +1467,7 @@ var canProxyToExplicitServerBase = (args) => {
1537
1467
  return false;
1538
1468
  return true;
1539
1469
  };
1540
- var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools, runtimeOptions, state, accountSkillRuntime) => {
1470
+ var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools, runtimeOptions, state, accountSkillRuntime, systemBuiltinSkills) => {
1541
1471
  const userSkills = agentConfig.runtimePromptAlreadyInMessages ? null : accountSkillRuntime;
1542
1472
  const userSkillPromptPatches = userSkills?.skillPromptPatches ?? [];
1543
1473
  const rawBaseTools = Array.isArray(agentConfig.tools) ? agentConfig.tools : [];
@@ -1607,7 +1537,6 @@ var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools,
1607
1537
  enhancedTools.add("search_workspace");
1608
1538
  }
1609
1539
  }
1610
- const systemBuiltinSkills = state?.settings?.systemBuiltinSkills;
1611
1540
  const mountedTools = isInlineVisualArtifactAgent(agentConfig) ? Array.from(enhancedTools) : addDefaultSystemCapabilityTools(Array.from(enhancedTools));
1612
1541
  const filteredTools = applySystemBuiltinSkillFilter(
1613
1542
  mountedTools,
@@ -1828,7 +1757,7 @@ async function resolveTurnToolContext(input) {
1828
1757
  contentByKey: /* @__PURE__ */ new Map()
1829
1758
  };
1830
1759
  const hasContextEngine = Boolean(
1831
- input.state && input.dispatch && input.state.message
1760
+ input.state && input.dispatch && getMessageStore(input.state)
1832
1761
  );
1833
1762
  if (hasContextEngine) {
1834
1763
  try {
@@ -1923,10 +1852,6 @@ async function resolveTurnToolContext(input) {
1923
1852
  }
1924
1853
 
1925
1854
  export {
1926
- targetForRunKind,
1927
- pushGate,
1928
- clearGateTurn,
1929
- getSnapshot,
1930
1855
  buildForegroundTurnAdmissionFetchInit,
1931
1856
  consumeAgentRunStream,
1932
1857
  projectDesktopToolUiContent,