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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-E2LL7FPO.js → _executeModel-EO6JFCOF.js} +97 -83
  3. package/accountResolver-NGICIMEE.js +1 -1
  4. package/{action-C6IQAKN4.js → action-WIA56QT4.js} +12 -10
  5. package/{addContentAction-53364YDW.js → addContentAction-OCMWZLYG.js} +14 -13
  6. package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-ER2NZ7BC.js} +20 -24
  7. package/{agentDeleteCommand-ORNRRKJO.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
  8. package/{agentEmailCommands-2ALVFOD5.js → agentEmailCommands-NXRWS7NS.js} +142 -126
  9. package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
  10. package/{agentListCommands-6I4NQPR4.js → agentListCommands-PFXGZZ3Y.js} +87 -68
  11. package/{agentMachineCommands-PNHTIJ6A.js → agentMachineCommands-2Q55CSL4.js} +68 -59
  12. package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-EUNS7Y2Z.js} +10 -7
  13. package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-S2VMPSWL.js} +9 -6
  14. package/agentRecordCommands-FUFI526H.js +210 -0
  15. package/agentRun-ZNMUPDHF.js +250 -0
  16. package/agentRunCommand-ISVQ2UYC.js +248 -0
  17. package/{agentRunControl-3TIVJ3SR.js → agentRunControl-NEK44LDM.js} +19 -12
  18. package/{agentRuntimeLocal-3MAEFYSB.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
  19. package/{agentSlice-KOQXUPKT.js → agentSlice-4ZJJJN4M.js} +15 -18
  20. package/appConfigCommands-MPHS6FHD.js +417 -0
  21. package/{appDeleteCommands-FEPN62UR.js → appDeleteCommands-W26WGENW.js} +68 -58
  22. package/{appDeployCommands-DPFEWFYZ.js → appDeployCommands-ER7IOF5E.js} +74 -59
  23. package/{appDeployStatusCommands-LQ5X5KVX.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
  24. package/{appGetCommands-W3JBBIF7.js → appGetCommands-P6GXJNUD.js} +74 -58
  25. package/{appListCommands-LUHZS7JU.js → appListCommands-ACA2IZZM.js} +74 -58
  26. package/appMigrateCommands-OGF4E2W6.js +230 -0
  27. package/appSourceCommands-GAHVBRUM.js +279 -0
  28. package/{authCommand-HKSXJT3J.js → authCommand-PXE7NZTQ.js} +26 -40
  29. package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
  30. package/{builtinSkillRegistry-FVEEO4U2.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
  31. package/{chromeOpsCommands-4UIKH26F.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
  32. package/{chunk-KO5PFS74.js → chunk-2CKFROQS.js} +2454 -1115
  33. package/{chunk-6N4IKMTH.js → chunk-2I4R6ZRV.js} +40 -26
  34. package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
  35. package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
  36. package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
  37. package/chunk-35JIFLIG.js +30 -0
  38. package/{chunk-ZYPXOQS2.js → chunk-3EPED3UO.js} +1 -1
  39. package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
  40. package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
  41. package/{chunk-HPDLPEUG.js → chunk-42JZNSAY.js} +267 -234
  42. package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
  43. package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
  44. package/chunk-4IVMDQBA.js +261 -0
  45. package/chunk-4Y6CZ2N4.js +82 -0
  46. package/{chunk-OKAXQFON.js → chunk-52BNL6GP.js} +4 -4
  47. package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
  48. package/{chunk-QGFLVQ6E.js → chunk-6KUTNAPU.js} +4 -14
  49. package/{chunk-MNFUKRRU.js → chunk-6XAAKRJB.js} +7 -7
  50. package/{chunk-P27E22MA.js → chunk-6Z6DGDPI.js} +1 -1
  51. package/chunk-72VWN4VK.js +51 -0
  52. package/{chunk-2RZBFJEG.js → chunk-75FZ2Z7C.js} +16027 -17392
  53. package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
  54. package/{chunk-AKBNCTPY.js → chunk-76K4GTY5.js} +1 -1
  55. package/{chunk-ZMJMHXYX.js → chunk-7HUCUD2I.js} +3 -3
  56. package/chunk-7LR2IFUH.js +100 -0
  57. package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
  58. package/{chunk-Y2TCTNUD.js → chunk-7QO6YSA4.js} +4 -4
  59. package/{chunk-TF427WGH.js → chunk-7RYH7YIY.js} +19 -27
  60. package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
  61. package/chunk-AMNZPQCY.js +635 -0
  62. package/chunk-AMTF6FJD.js +356 -0
  63. package/{chunk-MUDMYJCM.js → chunk-AQNWWJLH.js} +2 -56
  64. package/{chunk-WSLL7VV4.js → chunk-B4NA5UJR.js} +9 -9
  65. package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
  66. package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
  67. package/{chunk-46FETNLF.js → chunk-BTIFQBYW.js} +7 -6
  68. package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
  69. package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
  70. package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
  71. package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
  72. package/{chunk-JAGD4PSH.js → chunk-CRGPRAJ4.js} +46 -42
  73. package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
  74. package/{chunk-BD22OFDQ.js → chunk-CZHIOBBK.js} +8 -3
  75. package/chunk-D3ONA3FP.js +762 -0
  76. package/chunk-D3SAQ6T7.js +1697 -0
  77. package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
  78. package/{chunk-KQHEGELM.js → chunk-DEAII55O.js} +16 -6
  79. package/{chunk-J55F3IEZ.js → chunk-DKJQEFNG.js} +1 -1
  80. package/chunk-DLXL4NSL.js +1179 -0
  81. package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
  82. package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
  83. package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
  84. package/chunk-EJHLDJWZ.js +58 -0
  85. package/{chunk-E4HBZDV6.js → chunk-EMFZXJTN.js} +15 -47
  86. package/chunk-ER6NTALN.js +34 -0
  87. package/chunk-EUHMI5KG.js +101 -0
  88. package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
  89. package/{chunk-EXD7S7QW.js → chunk-FF5ZRKW7.js} +12 -7
  90. package/{chunk-7PTWFSZZ.js → chunk-FGD4NMTP.js} +4 -4
  91. package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
  92. package/chunk-FI4DPLR7.js +902 -0
  93. package/chunk-FKVLQNGJ.js +25 -0
  94. package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
  95. package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
  96. package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
  97. package/{chunk-IZHENZQ5.js → chunk-G5JGA5YM.js} +180 -31
  98. package/{chunk-7EUJ65PF.js → chunk-GMBWWBSJ.js} +782 -449
  99. package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
  100. package/{chunk-APXC3SQO.js → chunk-GZ4I5EMM.js} +9 -9
  101. package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
  102. package/chunk-HJTI7RZV.js +94 -0
  103. package/{chunk-JGVWHUYK.js → chunk-HPIY372N.js} +7 -7
  104. package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
  105. package/{chunk-HDKMVYNJ.js → chunk-I3NWAILT.js} +6 -4
  106. package/{chunk-MD7O2NN2.js → chunk-IM7HCFB4.js} +313 -275
  107. package/{chunk-DWES4SXY.js → chunk-INN2PBW7.js} +1 -1
  108. package/chunk-IV6VUVLJ.js +88 -0
  109. package/chunk-J42X32PV.js +472 -0
  110. package/{chunk-V6S5OZSP.js → chunk-JHQNWV2C.js} +4441 -2569
  111. package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
  112. package/{chunk-BIDSIRTS.js → chunk-JUNYPVL6.js} +10 -16
  113. package/chunk-JVEKCQAP.js +222 -0
  114. package/{chunk-JW6OURKM.js → chunk-KAHYBAEN.js} +215 -473
  115. package/chunk-KDDXC2IH.js +148 -0
  116. package/chunk-KGKTN2NX.js +25 -0
  117. package/chunk-KGWE224L.js +246 -0
  118. package/chunk-L3UFGEDU.js +17157 -0
  119. package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
  120. package/{chunk-DCTQJDDQ.js → chunk-LIH7WSX5.js} +23 -379
  121. package/chunk-LJOPY4TL.js +443 -0
  122. package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
  123. package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
  124. package/chunk-LXP53WGF.js +168 -0
  125. package/chunk-MDAYRIP7.js +1889 -0
  126. package/chunk-MRACVEPZ.js +7 -0
  127. package/chunk-NHLLXINQ.js +8 -0
  128. package/{chunk-VQR2ACSC.js → chunk-NTBTVKKB.js} +17 -25
  129. package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
  130. package/{chunk-APQBEIOQ.js → chunk-P4XAHM4B.js} +1 -1
  131. package/chunk-PL5RKESU.js +40 -0
  132. package/{chunk-U2H426FE.js → chunk-PQ3QZMJK.js} +20 -4
  133. package/chunk-Q5FJJ6XI.js +103 -0
  134. package/{createAgentAutomationAction-HEZ3G5L4.js → chunk-QKM55LP2.js} +3 -160
  135. package/{chunk-SIHOY5YI.js → chunk-QZCLCAYC.js} +170 -164
  136. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  137. package/{chunk-JLZJL3WC.js → chunk-RDZ5OIAT.js} +370 -39
  138. package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
  139. package/chunk-RF576RYE.js +117 -0
  140. package/chunk-RI7SXDJW.js +1317 -0
  141. package/{chunk-JOJH3KWV.js → chunk-RIOAPUGV.js} +242 -25
  142. package/{chunk-7B55IVLF.js → chunk-RL6H2A2Z.js} +2561 -4059
  143. package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
  144. package/{chunk-BB76X6O4.js → chunk-RWXHGPWJ.js} +1 -1
  145. package/chunk-S7BF2OGX.js +432 -0
  146. package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
  147. package/{chunk-PNBQ5JTA.js → chunk-SGEBRBF3.js} +7 -4
  148. package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
  149. package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
  150. package/{chunk-LJ6WIQZO.js → chunk-SX6PDLBZ.js} +279 -149
  151. package/{chunk-6VNBJ7GI.js → chunk-T4WU747C.js} +5 -5
  152. package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
  153. package/{chunk-KO5GO2BC.js → chunk-TXMFSGRY.js} +1 -1
  154. package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
  155. package/{chunk-CVDJUPBN.js → chunk-UOLGGEEC.js} +774 -119
  156. package/{chunk-ADUCBH4M.js → chunk-USFG4EWQ.js} +51 -42
  157. package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
  158. package/{chunk-ONTHDYFU.js → chunk-VDC3BW24.js} +24 -10
  159. package/chunk-VH356OQ3.js +425 -0
  160. package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
  161. package/{chunk-3GGVFHWI.js → chunk-VPAO5WQX.js} +17 -14
  162. package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
  163. package/{chunk-C63KMRJE.js → chunk-W2Z5E2R7.js} +126 -698
  164. package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
  165. package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
  166. package/chunk-WLJNHFEB.js +1710 -0
  167. package/chunk-WMBJDXMY.js +408 -0
  168. package/chunk-WSQLCWLQ.js +201 -0
  169. package/{chunk-YN23INFZ.js → chunk-WXD6Y7DW.js} +23 -2
  170. package/{chunk-RQKTCHQM.js → chunk-WY6DMHMG.js} +1 -1
  171. package/{chunk-MLK3FEXG.js → chunk-XJW6SLBZ.js} +3 -3
  172. package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
  173. package/chunk-XT6C2QZW.js +46 -0
  174. package/{chunk-NRUYSNSZ.js → chunk-Y7THFNVJ.js} +9 -9
  175. package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
  176. package/{chunk-RD3QLZQV.js → chunk-YM5XULB2.js} +324 -2
  177. package/{chunk-BD5YJJLJ.js → chunk-YNP3ITPU.js} +19 -12
  178. package/{chunk-U35UUM5K.js → chunk-YOUSQIIK.js} +1 -1
  179. package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
  180. package/{chunk-Z3JZ2R5F.js → chunk-YU235GGN.js} +25 -8
  181. package/chunk-YWEZSBLL.js +790 -0
  182. package/chunk-Z3KTXWWB.js +76 -0
  183. package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
  184. package/chunk-ZD7OULYZ.js +368 -0
  185. package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
  186. package/{chunk-HQUGB2HM.js → chunk-ZTCMXPIS.js} +62 -50
  187. package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-KMXS7JP5.js} +20 -14
  188. package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
  189. package/cliAuthorityBrokerProcess-DCCUT4YQ.js +34 -0
  190. package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-YDGDHIEE.js} +5 -2
  191. package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
  192. package/cliLocalAgentRecordReader-X2YHEBWI.js +113 -0
  193. package/cloudAutomationCommands-C6Q3BFRB.js +310 -0
  194. package/{commandRegistry-QKOJ5FIC.js → commandRegistry-TYYYTW5E.js} +263 -120
  195. package/{contentThunks-ZDBDDZP3.js → contentThunks-E6BJ5YSX.js} +45 -43
  196. package/{cooldownCommands-Y4ZQQ35D.js → cooldownCommands-FPAFS7XG.js} +1 -1
  197. package/createAgentAutomationAction-L3NLCIIW.js +172 -0
  198. package/{createDialogAction-DK62W5VA.js → createDialogAction-QSWKRPWQ.js} +46 -42
  199. package/{createPageAction-W6NXHVKO.js → createPageAction-ZVVUT4CZ.js} +49 -45
  200. package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
  201. package/{dbSlice-RWPSVHBC.js → dbSlice-SEVKNA7A.js} +21 -16
  202. package/deleteDbKey-43MTK2DI.js +86 -0
  203. package/{dialogCommands-Z24IDINY.js → dialogCommands-UVMTIFSA.js} +80 -66
  204. package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
  205. package/{dialogNotifyCommand-IASQGEMW.js → dialogNotifyCommand-LMWF7EQI.js} +22 -14
  206. package/dialogPortabilityCommands-PAMLEBST.js +3036 -0
  207. package/{dialogSlice-62GISS77.js → dialogSlice-VHPXENDZ.js} +43 -42
  208. package/{dialogTraceCommand-FDINAIZ6.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
  209. package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
  210. package/{docCreateCommands-SXA4TMGJ.js → docCreateCommands-H4RLIUNX.js} +68 -59
  211. package/{docDeleteCommands-ELXSZK3F.js → docDeleteCommands-OVAKCBMT.js} +68 -59
  212. package/{docReadCommands-DFLAQPI4.js → docReadCommands-KFISIUVA.js} +67 -58
  213. package/{docStore-UWF2PMCB.js → docStore-X7BEA735.js} +16 -17
  214. package/{docUpdateCommands-KB6M5HUH.js → docUpdateCommands-VOEER36L.js} +68 -59
  215. package/ebookDownloaderAgentCommand-2DHPGEOQ.js +674 -0
  216. package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
  217. package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
  218. package/{handleSendMessageAction-ZV6OQPQG.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
  219. package/{hostCredentialCreate-3IA5IJFG.js → hostCredentialCreate-PJAIKZQP.js} +138 -122
  220. package/index.js +35 -21
  221. package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
  222. package/localAutomationCommands-UU66LOWB.js +198 -0
  223. package/localAutomationRuntime-SW4R42SZ.js +60 -0
  224. package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
  225. package/{localRuntimeAdapter-SSG5ORLZ.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
  226. package/localRuntimeAuthority-3YDFZD3L.js +44 -0
  227. package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
  228. package/{machineCommands-4WKJ3TLO.js → machineCommands-JFYED66N.js} +251 -357
  229. package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
  230. package/machineWsRunDispatch-CZUV2FXE.js +227 -0
  231. package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-HLU72QME.js} +40 -22
  232. package/mcpLocalManageCommands-OHHU6F5C.js +212 -0
  233. package/{memberThunks-43B7UYC5.js → memberThunks-FJW4GPM5.js} +102 -22
  234. package/{memoryCommands-BC6REPQB.js → memoryCommands-2RLHDMU2.js} +25 -34
  235. package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
  236. package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
  237. package/package.json +3 -3
  238. package/parityCommands-7EWR34P3.js +613 -0
  239. package/{projectArchive-JN43WW4E.js → projectArchive-JIVRMXVV.js} +49 -45
  240. package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
  241. package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
  242. package/{read-KG6INYUT.js → read-6YR57D6V.js} +11 -10
  243. package/{readDocTool-N3GA52JR.js → readDocTool-NKOGL2MW.js} +5 -1
  244. package/{readlineWorkspace-D6EUSB2Q.js → readlineWorkspace-V26AN2FL.js} +926 -572
  245. package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
  246. package/remove-BF33RCTH.js +32 -0
  247. package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-GWHBWF4W.js} +22 -26
  248. package/{runAgentClientLoop-FEZTSUSJ.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
  249. package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
  250. package/{secretCommands-53NZFD4T.js → secretCommands-CSTQYB6T.js} +2 -2
  251. package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-RL6FGO7T.js} +16 -17
  252. package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-XJASBB3K.js} +23 -27
  253. package/{settingThunks-DVKG4X4S.js → settingThunks-ZT7ZYXXL.js} +170 -497
  254. package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
  255. package/{spaceCommands-4ACQQNZL.js → spaceCommands-65WQHVOI.js} +194 -90
  256. package/spacePruneCommand-PTMRUWYJ.js +233 -0
  257. package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
  258. package/{streamAgentChatTurn-I425SVYJ.js → streamAgentChatTurn-B5NICHZW.js} +225 -137
  259. package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-X6DFOIAX.js} +19 -23
  260. package/{tableCommands-EFA754RE.js → tableCommands-6E77VD73.js} +28 -49
  261. package/{toolApiClient-N5PYW2R3.js → toolApiClient-GTTWEV6P.js} +15 -4
  262. package/{tools-WBPFTSMK.js → tools-UMCPIQX6.js} +73 -63
  263. package/{tuiRestart-VN5F4GYU.js → tuiRestart-O7UDLNQU.js} +20 -13
  264. package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
  265. package/{updateCommands-VQEBBIGO.js → updateCommands-DXDIAQFS.js} +12 -7
  266. package/{updateDialogTitleAction-VB5DTVXV.js → updateDialogTitleAction-HZLKWVKM.js} +57 -58
  267. package/{usageCommand-WI6SQOPB.js → usageCommand-WYLNBDHB.js} +6 -8
  268. package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-AEUPY2PE.js} +11 -15
  269. package/{windowsSelfUpdate-ZEZKGX4M.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
  270. package/workContext-ZAW6VXT7.js +18 -0
  271. package/workContextQueryProjection-CACY5VFE.js +23 -0
  272. package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
  273. package/agentFavoriteCommands-7LOP3HUD.js +0 -186
  274. package/agentRecordCommands-BEZPBYBM.js +0 -194
  275. package/agentRunCommand-2T72V5KY.js +0 -232
  276. package/chunk-2MBTWINN.js +0 -89
  277. package/chunk-523DITKR.js +0 -32
  278. package/chunk-BUDVRYES.js +0 -2213
  279. package/chunk-BXGU6274.js +0 -862
  280. package/chunk-BZMDWGQQ.js +0 -47
  281. package/chunk-GAHJLSDO.js +0 -107
  282. package/chunk-GYX6XTAI.js +0 -84
  283. package/chunk-HNUWUO75.js +0 -93
  284. package/chunk-HSBHS6KT.js +0 -33401
  285. package/chunk-KG27JIG4.js +0 -136
  286. package/chunk-OB4FBZXJ.js +0 -364
  287. package/chunk-OKH74FML.js +0 -3746
  288. package/chunk-OLZBQWZU.js +0 -6
  289. package/chunk-OOV5JN25.js +0 -1317
  290. package/chunk-OQFOE4SJ.js +0 -405
  291. package/chunk-PXYBUFDB.js +0 -53
  292. package/chunk-R3FZHW4Q.js +0 -103
  293. package/chunk-R3MV2GII.js +0 -106
  294. package/chunk-SCAC3NM5.js +0 -11751
  295. package/chunk-SR4FE5VD.js +0 -9
  296. package/chunk-SYTHYBMI.js +0 -3558
  297. package/chunk-UKZX3NHN.js +0 -48
  298. package/chunk-UVLYNWIE.js +0 -74
  299. package/chunk-WFEWP352.js +0 -861
  300. package/chunk-X4O7FJF5.js +0 -160
  301. package/chunk-YJPK35HB.js +0 -175
  302. package/chunk-YNIYE47Z.js +0 -105
  303. package/chunk-Z4PCXPUE.js +0 -127
  304. package/chunk-ZTHAJU3O.js +0 -2537
  305. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
  306. package/cliLocalAgentRecordReader-Q6677YID.js +0 -104
  307. package/deleteFile-ECU6FU5C.js +0 -55
  308. package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
  309. package/machineWsRunDispatch-7PROH7E7.js +0 -209
  310. package/markdownToSlate-PXYAIBVL.js +0 -8
  311. package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
  312. package/webapi-QVV65DQF.js +0 -2487
  313. package/workContext-Y3ADAPZU.js +0 -14
  314. package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
  315. package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
  316. package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
@@ -2,9 +2,11 @@ import {
2
2
  cloudflareModels,
3
3
  gmiModels,
4
4
  openrouterModels,
5
- platformHostedModels,
6
5
  zaiModels
7
- } from "./chunk-JPXACKSW.js";
6
+ } from "./chunk-35JIFLIG.js";
7
+ import {
8
+ platformHostedModels
9
+ } from "./chunk-G22P2J7O.js";
8
10
 
9
11
  // packages/ai/llm/models.ts
10
12
  var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
@@ -22,7 +22,7 @@ function classifyDialogSyncFailure(error) {
22
22
  const code = candidate && KNOWN_SYNC_FAILURE_CODES.has(candidate) ? candidate : void 0;
23
23
  return code ? `http_${match[1]}(${code})` : `http_${match[1]}`;
24
24
  }
25
- function startOwnedDialogSync(fetchImpl, start) {
25
+ function startOwnedDialogSync(fetchImpl, start, failureClassForResult) {
26
26
  const scope = scopes.getStore();
27
27
  if (!scope) return start(fetchImpl);
28
28
  if (scope.closed) return Promise.reject(new Error("dialog_sync_scope_closed"));
@@ -36,8 +36,11 @@ function startOwnedDialogSync(fetchImpl, start) {
36
36
  if (response.ok && String(url).includes("/api/v1/db/write/")) entry.httpOkRecords++;
37
37
  return response;
38
38
  };
39
- entry.done = Promise.resolve().then(() => start(trackedFetch)).then((result) => {
40
- if (entry.state === "pending") entry.state = "completed";
39
+ const done = Promise.resolve().then(() => start(trackedFetch)).then((result) => {
40
+ if (entry.state === "pending") {
41
+ entry.failureClass = failureClassForResult?.(result);
42
+ entry.state = entry.failureClass ? "failed" : "completed";
43
+ }
41
44
  return result;
42
45
  }, (error) => {
43
46
  if (entry.state === "pending") {
@@ -46,9 +49,10 @@ function startOwnedDialogSync(fetchImpl, start) {
46
49
  }
47
50
  throw error;
48
51
  });
49
- void entry.done.catch(() => {
52
+ entry.done = done;
53
+ void done.catch(() => {
50
54
  });
51
- return entry.done;
55
+ return done;
52
56
  }
53
57
  function drain(scope, unsafeRunner = false) {
54
58
  if (scope.drain) return scope.drain;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-G7Y4GXTY.js";
4
4
  import {
5
5
  resolvePlatformAuthToken
6
- } from "./chunk-LVZVSLKO.js";
6
+ } from "./chunk-O7ZY6SUK.js";
7
7
 
8
8
  // packages/cli/client/authGuidance.ts
9
9
  import { readdirSync } from "node:fs";
@@ -0,0 +1,58 @@
1
+ import {
2
+ fetchReferenceContents,
3
+ resolveReferenceAssets
4
+ } from "./chunk-GZ4I5EMM.js";
5
+ import {
6
+ updateTokensAction
7
+ } from "./chunk-RL6H2A2Z.js";
8
+ import {
9
+ applyUpdateTokensFulfilled
10
+ } from "./chunk-YOUSQIIK.js";
11
+
12
+ // packages/ai/agent/fetchAgentContexts.ts
13
+ async function fetchAgentContexts(references, dispatch) {
14
+ if (!Array.isArray(references)) {
15
+ return { botInstructionsContext: "", botKnowledgeContext: "" };
16
+ }
17
+ const { references: normalizedRefs, contentByKey } = await resolveReferenceAssets(references, dispatch);
18
+ const instructionKeys = /* @__PURE__ */ new Set();
19
+ const knowledgeKeys = /* @__PURE__ */ new Set();
20
+ normalizedRefs.forEach((ref) => {
21
+ if (!ref.dbKey) return;
22
+ ref.type === "instruction" ? instructionKeys.add(ref.dbKey) : knowledgeKeys.add(ref.dbKey);
23
+ });
24
+ const [instructionsMap, knowledgeMap] = await Promise.all([
25
+ fetchReferenceContents(Array.from(instructionKeys), dispatch, {
26
+ preloaded: contentByKey
27
+ }),
28
+ fetchReferenceContents(Array.from(knowledgeKeys), dispatch, {
29
+ preloaded: contentByKey
30
+ })
31
+ ]);
32
+ return {
33
+ botInstructionsContext: Array.from(instructionsMap.values()).join(""),
34
+ botKnowledgeContext: Array.from(knowledgeMap.values()).join("")
35
+ };
36
+ }
37
+
38
+ // packages/ai/agent/updateAgentTokens.ts
39
+ async function updateAgentTokens(args, thunkApi) {
40
+ const observedAt = Date.now();
41
+ const payload = await updateTokensAction(args, thunkApi);
42
+ if (args?.dialogKey && payload) {
43
+ applyUpdateTokensFulfilled({
44
+ observedAt,
45
+ authoritative: args?.contextUsageAuthoritative !== false && (args?.usageRecord?.usage ?? args?.usage)?.billing_estimated !== true,
46
+ dialogKey: args.dialogKey,
47
+ input_tokens: payload.input_tokens,
48
+ output_tokens: payload.output_tokens,
49
+ cost: payload.cost
50
+ });
51
+ }
52
+ return payload;
53
+ }
54
+
55
+ export {
56
+ fetchAgentContexts,
57
+ updateAgentTokens
58
+ };
@@ -1,34 +1,41 @@
1
1
  import {
2
2
  resolveDefaultReasoningEffort
3
- } from "./chunk-VQR2ACSC.js";
3
+ } from "./chunk-NTBTVKKB.js";
4
4
  import {
5
5
  buildLocalAgentLookupKeys,
6
6
  shouldReadAgentKeyRemotely
7
- } from "./chunk-CBIGMWMI.js";
7
+ } from "./chunk-LHJB4BXJ.js";
8
8
  import {
9
9
  createHostCredentialBrokerChain,
10
10
  createStrictHostCredentialBroker
11
- } from "./chunk-LHCGKAFO.js";
11
+ } from "./chunk-BKP325XS.js";
12
12
  import {
13
13
  collectInvalidAgentSkillModes,
14
14
  formatInvalidAgentSkillModeMessage,
15
15
  formatInvalidAgentSkillModesFieldMessage,
16
16
  isAgentSkillModesFieldShapeValid
17
- } from "./chunk-KO5GO2BC.js";
17
+ } from "./chunk-TXMFSGRY.js";
18
+ import {
19
+ classifyAgentApiKeyRef,
20
+ formatUnsupportedAgentApiKeyRefMessage
21
+ } from "./chunk-3QMN3T6L.js";
18
22
  import {
19
23
  buildAgentApiKeyCredentialRef,
20
24
  migrateAgentSecrets
21
- } from "./chunk-USGHJSGO.js";
25
+ } from "./chunk-GX2MFKF3.js";
22
26
  import {
23
27
  assertCredentialRef,
24
28
  createFileCredentialBroker
25
29
  } from "./chunk-E6A5NHDH.js";
30
+ import {
31
+ toErrorMessage
32
+ } from "./chunk-HNMXYYJR.js";
26
33
  import {
27
34
  buildRestorePatch
28
35
  } from "./chunk-BV3FLP2L.js";
29
36
  import {
30
37
  createAgentKey
31
- } from "./chunk-SYTHYBMI.js";
38
+ } from "./chunk-DLXL4NSL.js";
32
39
  import {
33
40
  resolveCliAgentKeyInput
34
41
  } from "./chunk-BR3GT6MR.js";
@@ -38,14 +45,11 @@ import {
38
45
  resolveAuthToken,
39
46
  resolveServerCandidates,
40
47
  resolveServerUrl
41
- } from "./chunk-BIDSIRTS.js";
48
+ } from "./chunk-JUNYPVL6.js";
42
49
  import {
43
50
  readPipeText,
44
51
  spawnProcess
45
52
  } from "./chunk-4O22PGNQ.js";
46
- import {
47
- toErrorMessage
48
- } from "./chunk-HNMXYYJR.js";
49
53
 
50
54
  // packages/agent-runtime/sessionCredentialBroker.ts
51
55
  function createSessionMemoryCredentialBroker() {
@@ -80,41 +84,6 @@ function getSharedSessionCredentialBroker() {
80
84
  // packages/cli/agentRecordHelpers.ts
81
85
  import { readFileSync } from "node:fs";
82
86
 
83
- // packages/agent-runtime/oauthProviderRefs.ts
84
- var OAUTH_PROVIDER_REFS = [
85
- "chatgpt",
86
- "xai",
87
- "antigravity",
88
- "claude",
89
- "cursor",
90
- "devin"
91
- ];
92
- var METERED_API_KEY_REF_PREFIX = "api-key:";
93
- var normalizeRef = (ref) => typeof ref === "string" ? ref.trim().toLowerCase() : "";
94
- var isKnownOAuthProviderRef = (ref) => OAUTH_PROVIDER_REFS.includes(normalizeRef(ref));
95
- var isMeteredApiKeyRef = (ref) => {
96
- const trimmed = typeof ref === "string" ? ref.trim() : "";
97
- return trimmed.length > METERED_API_KEY_REF_PREFIX.length && trimmed.slice(0, METERED_API_KEY_REF_PREFIX.length).toLowerCase() === METERED_API_KEY_REF_PREFIX;
98
- };
99
- var OAUTH_PROVIDER_REF_LIST_COPY = OAUTH_PROVIDER_REFS.join(" / ");
100
- function classifyAgentApiKeyRef(raw) {
101
- const trimmed = typeof raw === "string" ? raw.trim() : "";
102
- if (!trimmed) return { ok: true, kind: "empty" };
103
- if (isKnownOAuthProviderRef(trimmed)) {
104
- return {
105
- ok: true,
106
- kind: "oauth-provider",
107
- provider: normalizeRef(trimmed)
108
- };
109
- }
110
- if (isMeteredApiKeyRef(trimmed)) return { ok: true, kind: "metered-api-key" };
111
- return { ok: false, kind: "unsupported-oauth-provider", ref: trimmed };
112
- }
113
- function formatUnsupportedAgentApiKeyRefMessage(raw) {
114
- const shown = typeof raw === "string" ? raw.trim() : "";
115
- return `apiKeyRef "${shown}" \u4E0D\u662F\u53D7\u652F\u6301\u7684\u53D6\u503C\uFF0C\u8BB0\u5F55\u672A\u5199\u5165\u3002\u5408\u6CD5\u53D6\u503C\uFF1AOAuth provider ref\uFF08${OAUTH_PROVIDER_REF_LIST_COPY}\uFF09\uFF0C\u6216\u8BA1\u91CF/\u8BBE\u5907 broker ref\uFF08\u4EE5 "${METERED_API_KEY_REF_PREFIX}" \u5F00\u5934\uFF0C\u5982 ${METERED_API_KEY_REF_PREFIX}agent-...\uFF09\u3002\u6539\u6CD5\uFF1A\u628A apiKeyRef \u6539\u6210\u4E0A\u9762\u67D0\u4E2A\u53D7\u652F\u6301\u7684\u53D6\u503C\uFF0C\u6216\u6539\u7528 ${METERED_API_KEY_REF_PREFIX}<id>\uFF1B\u82E5\u8981\u7528\u81EA\u5E26 API key\uFF0C\u8BF7\u6E05\u7A7A apiKeyRef \u5E76\u586B\u5199 apiKey\u3002`;
116
- }
117
-
118
87
  // packages/core/agentHandle.ts
119
88
  function normalizeAgentHandle(value) {
120
89
  return typeof value === "string" && value.trim() ? value.trim().toLowerCase().replace(/\s+/g, " ") : void 0;
@@ -766,7 +735,7 @@ async function buildCreatedAgentRecord(args) {
766
735
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
767
736
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
768
737
  if (args.parsed.presetId) {
769
- const { resolveProviderPresetFields } = await import("./providerPresetApply-NTJUINI6.js");
738
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-IRJ56XIZ.js");
770
739
  const fields = resolveProviderPresetFields(args.parsed.presetId);
771
740
  if (fields.kind === "manual") {
772
741
  throw new Error(
@@ -928,7 +897,6 @@ async function buildUpdatedAgentRecord(args) {
928
897
 
929
898
  export {
930
899
  getSharedSessionCredentialBroker,
931
- OAUTH_PROVIDER_REFS,
932
900
  fetchWithTransportFallback,
933
901
  readAgentRecord,
934
902
  readDbRecord,
@@ -0,0 +1,34 @@
1
+ import {
2
+ COMPACTION_SUMMARY_SYSTEM_PROMPT
3
+ } from "./chunk-CEIWXKHP.js";
4
+
5
+ // packages/chat/dialog/actions/builtinDialogLlm.ts
6
+ var BASE_BUILTIN_DIALOG_LLM_CONFIG = {
7
+ apiSource: "platform",
8
+ useServerProxy: true
9
+ };
10
+ var BUILTIN_DIALOG_LLM_FALLBACK_MODEL = "deepseek-flash";
11
+ var BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL = "glm-5-3-flash";
12
+ var BUILTIN_TITLE_LLM_CONFIG = {
13
+ ...BASE_BUILTIN_DIALOG_LLM_CONFIG,
14
+ provider: "nolo",
15
+ id: "builtin-dialog-title-llm",
16
+ name: "Builtin Dialog Title LLM",
17
+ model: "mimo-v2.6-flash",
18
+ prompt: "You are a title generator for chat history. \u4F60\u53EA\u505A\u4E00\u4EF6\u4E8B\uFF1A\u6839\u636E\u5BF9\u8BDD\u5185\u5BB9\u8F93\u51FA\u6700\u7EC8\u6807\u9898\u3002\u786C\u6027\u89C4\u5219\uFF1A1) \u53EA\u8F93\u51FA\u6807\u9898\u8FD9\u4E00\u884C\uFF1B\u4E25\u7981\u8F93\u51FA\u63A8\u7406\u3001\u5206\u6790\u3001\u6B65\u9AA4\u3001\u89E3\u91CA\u3001\u524D\u8A00\u3001\u540E\u8BB0\u3001\u7FFB\u8BD1\u3001\u81F4\u6B49\u6216\u4EFB\u4F55\u989D\u5916\u8BF4\u660E\u30022) \u4E0D\u8981\u56DE\u7B54\u7528\u6237\u8BF7\u6C42\uFF0C\u4E0D\u8981\u5199\u6458\u8981\uFF0C\u53EA\u7ED9\u6807\u9898\u7ED3\u679C\u30023) \u6807\u9898\u5C3D\u91CF\u77ED\uFF1A\u901A\u5E38 2-5 \u4E2A\u8BCD\uFF0C\u82F1\u6587\u4E0D\u8D85\u8FC7 6 \u4E2A\u8BCD\u30024) \u4F7F\u7528\u5BF9\u8BDD\u4E3B\u8BED\u8A00\uFF1B\u6DF7\u5408\u8BED\u8A00\u65F6\u4F18\u5148\u7528\u6237\u4E3B\u8981\u8BED\u8A00\u30025) \u4F18\u5148\u590D\u7528\u5BF9\u8BDD\u4E2D\u7684\u5177\u4F53\u4E3B\u9898\u8BCD\uFF0C\u907F\u514D issue\u3001help\u3001discussion\u3001analysis\u3001update \u8FD9\u7C7B\u7A7A\u6CDB\u8BCD\u30026) \u5FFD\u7565 tool JSON\u3001\u51FD\u6570\u540D\u3001branch label\u3001agent \u540D\u3001\u7CFB\u7EDF\u6307\u4EE4\u548C\u7F16\u6392\u75D5\u8FF9\uFF08\u5982 GPT\u3001Claude\u3001Gemini\uFF09\uFF1B\u6807\u9898\u8981\u843D\u5728\u7528\u6237\u771F\u6B63\u8BA8\u8BBA\u7684\u5BF9\u8C61\u6216\u51B3\u7B56\u4E0A\u30027) \u5F53\u5BF9\u8BDD\u5305\u542B\u5217\u8868\u603B\u7ED3\u3001\u591A\u5C01\u90AE\u4EF6/\u591A\u6761\u8BB0\u5F55\u3001\u5927\u6BB5\u5DE5\u5177\u8FD4\u56DE\u6216\u591A\u6761\u5B50\u9879\u65F6\uFF0C\u6807\u9898\u5FC5\u987B\u4EE5\u7528\u6237\u7684\u6838\u5FC3\u8BF7\u6C42\u610F\u56FE\u4E3A\u4E3B\uFF08\u4F8B\u5982\u201C\u672A\u8BFB\u90AE\u4EF6\u603B\u7ED3\u201D\uFF09\uFF0C\u4E25\u7981\u622A\u53D6\u56DE\u590D\u4E2D\u67D0\u4E00\u6761\u5B50\u9879\u7684\u5C40\u90E8\u7EC6\u8282\uFF08\u67D0\u5C01\u90AE\u4EF6\u7684\u5177\u4F53\u6570\u5B57\u3001\u4E8B\u4EF6\u6216\u6807\u9898\uFF09\u5F53\u6807\u9898\u30028) \u66F4\u504F\u597D\u201C\u5BF9\u8C61 + \u52A8\u4F5C/\u5224\u65AD\u201D\u7684\u77ED\u6807\u9898\uFF0C\u4F8B\u5982\u201CAI \u90AE\u4EF6\u52A9\u624B\u53D6\u820D\u201D\u201C\u4E1C\u4EAC\u56DB\u65E5\u6162\u65C5\u884C\u201D\u201C\u91CD\u590D\u6263\u8D39\u9000\u6B3E\u201D\u30029) \u7EAF\u6587\u672C\uFF0C\u4E0D\u8981\u9879\u76EE\u7B26\u53F7\u3001\u7F16\u53F7\u3001markdown\u3001emoji\u3002\u6700\u7EC8\u53EA\u8FD4\u56DE\u6807\u9898\u6587\u672C\u3002 Output only the title text."
19
+ };
20
+ var BUILTIN_SUMMARY_LLM_CONFIG = {
21
+ ...BASE_BUILTIN_DIALOG_LLM_CONFIG,
22
+ provider: "nolo",
23
+ id: "builtin-dialog-summary-llm",
24
+ name: "Builtin Dialog Summary LLM",
25
+ model: "mimo-v2.6-flash",
26
+ prompt: COMPACTION_SUMMARY_SYSTEM_PROMPT
27
+ };
28
+
29
+ export {
30
+ BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
31
+ BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
32
+ BUILTIN_TITLE_LLM_CONFIG,
33
+ BUILTIN_SUMMARY_LLM_CONFIG
34
+ };
@@ -0,0 +1,101 @@
1
+ import {
2
+ isSupportedDialogId
3
+ } from "./chunk-YZMNK53S.js";
4
+
5
+ // packages/shared/contracts/dialogTurnAuthority.ts
6
+ var DIALOG_TURN_HOLDER_KINDS = ["tui", "desktop", "server", "connector", "rn", "cli"];
7
+ var DIALOG_TURN_COMMIT_MAX_OPS = 500;
8
+ var DIALOG_TURN_MAX_PAYLOAD_BYTES = 4 * 1024 * 1024;
9
+ var DIALOG_TURN_DEFAULT_TTL_MS = 6e4;
10
+ var DIALOG_TURN_MAX_TTL_MS = 24 * 60 * 60 * 1e3;
11
+ function isDialogTurnRecord(value) {
12
+ return value !== null && typeof value === "object" && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null);
13
+ }
14
+ var identifier = (value) => typeof value === "string" && value.length > 0 && value.length <= 256 && !/[\p{White_Space}\p{C}\uFEFF:/\\?#]/u.test(value);
15
+ function isDialogTurnRef(value) {
16
+ if (!isDialogTurnRecord(value) || !identifier(value.userId) || !identifier(value.dialogId) || value.userId.startsWith("-") || `-${value.userId}-${value.dialogId}-`.includes("-msg-")) return false;
17
+ if (isSupportedDialogId(value.dialogId)) return true;
18
+ const suffix = `${value.userId}-${value.dialogId}`;
19
+ return !value.dialogId.includes("-") && !isSupportedDialogId(suffix) && ![26, 36].some((length) => suffix.at(-length - 1) === "-" && isSupportedDialogId(suffix.slice(-length)));
20
+ }
21
+ var nonempty = (value) => typeof value === "string" && value.length <= 256 && value.trim().length > 0 && !/[\p{Cc}\p{Cs}]/u.test(value);
22
+ var ttl = (value) => value === void 0 || typeof value === "number" && Number.isSafeInteger(value) && value > 0 && value <= DIALOG_TURN_MAX_TTL_MS;
23
+ var optionalBoolean = (value) => value === void 0 || typeof value === "boolean";
24
+ var optionalText = (value) => value === void 0 || value === null || typeof value === "string";
25
+ var metadataFields = /* @__PURE__ */ new Set(["title", "titleSource", "titleUpdatedAt", "lastNotifyAt", "lastNotifySummary"]);
26
+ function isMemoryCaptureResult(value) {
27
+ return isDialogTurnRecord(value) && Object.keys(value).every((key) => ["capture", "formation", "evidenceId", "reason"].includes(key)) && ["captured", "skipped", "failed"].some((item) => item === value.capture) && ["applied", "no_op", "deferred", "failed"].some((item) => item === value.formation) && (value.evidenceId === void 0 || typeof value.evidenceId === "string") && (value.reason === void 0 || typeof value.reason === "string");
28
+ }
29
+ function isMemoryEvent(value) {
30
+ return isDialogTurnRecord(value) && Object.keys(value).every((key) => ["type", "sourceKind", "content", "visibility", "kind"].includes(key)) && value.type === "memory.saved" && typeof value.sourceKind === "string" && typeof value.content === "string" && (value.visibility === void 0 || typeof value.visibility === "string") && (value.kind === void 0 || typeof value.kind === "string");
31
+ }
32
+ function validateDialogTurnRequest(method, input) {
33
+ const fail = (field, status = "invalid_request") => ({ ok: false, error: { status, field } });
34
+ if (!isDialogTurnRecord(input) || !isDialogTurnRef(input.dialogRef)) return fail("dialogRef");
35
+ switch (method) {
36
+ case "beginDialogTurn":
37
+ if (!identifier(input.runId)) return fail("runId");
38
+ if (!nonempty(input.holder)) return fail("holder");
39
+ if (!DIALOG_TURN_HOLDER_KINDS.some((kind) => kind === input.holderKind)) return fail("holderKind");
40
+ if (!ttl(input.ttlMs)) return fail("ttlMs");
41
+ break;
42
+ case "heartbeatDialogTurn":
43
+ if (!identifier(input.runToken)) return fail("runToken");
44
+ if (!ttl(input.ttlMs)) return fail("ttlMs");
45
+ break;
46
+ case "endDialogTurn":
47
+ if (input.runToken !== void 0 && !identifier(input.runToken)) return fail("runToken");
48
+ if (input.expectedRunId !== void 0 && !identifier(input.expectedRunId)) return fail("expectedRunId");
49
+ if (!nonempty(input.reason)) return fail("reason");
50
+ if (!optionalBoolean(input.force)) return fail("force");
51
+ break;
52
+ case "commitDialogTurn": {
53
+ const { mode } = input;
54
+ if (mode !== void 0 && mode !== "active_turn" && mode !== "idle_sync") return fail("mode");
55
+ if (mode === "idle_sync" ? input.runToken !== void 0 && input.runToken !== "" : !identifier(input.runToken)) {
56
+ return fail("runToken");
57
+ }
58
+ if (typeof input.baseRevision !== "number" || !Number.isSafeInteger(input.baseRevision) || input.baseRevision < 0 || input.baseRevision >= Number.MAX_SAFE_INTEGER) return fail("baseRevision");
59
+ if (!identifier(input.commandId)) return fail("commandId");
60
+ if (!isDialogTurnRecord(input.dialogRecord)) return fail("dialogRecord");
61
+ if (!optionalBoolean(input.keepTurnActive) || mode === "idle_sync" && input.keepTurnActive === true) return fail("keepTurnActive");
62
+ if (!Array.isArray(input.messageRecords)) return fail("messageRecords");
63
+ if (input.messageRecords.length + (input.keepTurnActive === true ? 2 : 3) > DIALOG_TURN_COMMIT_MAX_OPS) {
64
+ return fail("messageRecords", "payload_too_large");
65
+ }
66
+ for (const item of input.messageRecords) {
67
+ if (!isDialogTurnRecord(item) || typeof item.key !== "string" || !isDialogTurnRecord(item.value)) return fail("messageRecords");
68
+ }
69
+ break;
70
+ }
71
+ case "patchDialogMetadata":
72
+ if (input.commandId !== void 0 && !identifier(input.commandId)) return fail("commandId");
73
+ if (!optionalText(input.expectedTitleUpdatedAt)) return fail("expectedTitleUpdatedAt");
74
+ if (!isDialogTurnRecord(input.patch)) return fail("patch");
75
+ for (const [field, value] of Object.entries(input.patch)) {
76
+ if (field === "memoryCaptureResult") {
77
+ if (!isMemoryCaptureResult(value)) return fail(field);
78
+ continue;
79
+ }
80
+ if (field === "memoryEvents") {
81
+ if (!Array.isArray(value) || !value.every(isMemoryEvent)) return fail(field);
82
+ continue;
83
+ }
84
+ if (!metadataFields.has(field)) return fail(field, "invalid_metadata_field");
85
+ if (typeof value !== "string" && value !== null) return fail(field);
86
+ }
87
+ break;
88
+ }
89
+ return { ok: true, input };
90
+ }
91
+ var isDialogTurnMessageId = (value) => identifier(value) && !`-${value}-`.includes("-msg-") && !value.startsWith("-");
92
+
93
+ export {
94
+ DIALOG_TURN_HOLDER_KINDS,
95
+ DIALOG_TURN_MAX_PAYLOAD_BYTES,
96
+ DIALOG_TURN_DEFAULT_TTL_MS,
97
+ isDialogTurnRecord,
98
+ isDialogTurnRef,
99
+ validateDialogTurnRequest,
100
+ isDialogTurnMessageId
101
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MEMORY_USE_GUIDANCE
3
- } from "./chunk-GYX6XTAI.js";
3
+ } from "./chunk-Z3KTXWWB.js";
4
4
  import {
5
5
  wrapHistoricalSummaryWithReplayGuard
6
6
  } from "./chunk-2SXN7LAY.js";
@@ -6,10 +6,12 @@ import {
6
6
  toCompactAgentSummary,
7
7
  toSafeAgentSummary,
8
8
  toUltraCompactAgentSummary
9
- } from "./chunk-VQR2ACSC.js";
9
+ } from "./chunk-NTBTVKKB.js";
10
10
  import {
11
+ createListAgentsKeyMatcher,
12
+ normalizeListAgentsKeys,
11
13
  resolveAgentSelectionPriority
12
- } from "./chunk-Q2MPKE4B.js";
14
+ } from "./chunk-HVRG27HI.js";
13
15
  import {
14
16
  DEFAULT_PROVIDER_RETRY_MS,
15
17
  isAgentUnavailableNow,
@@ -247,6 +249,8 @@ function buildAgentDiscoveryResult(options) {
247
249
  });
248
250
  const now = options.now ?? Date.now();
249
251
  let scopedAgents = filterAgentsByScope(options.agents, scope);
252
+ const keys = normalizeListAgentsKeys(options.agentKeys);
253
+ if (keys.length) scopedAgents = scopedAgents.filter(createListAgentsKeyMatcher(keys));
250
254
  if (options.query && typeof options.query === "string" && options.query.trim()) {
251
255
  scopedAgents = scopedAgents.filter((a) => matchesAgentQuery(a, options.query));
252
256
  }
@@ -270,7 +274,6 @@ function buildAgentDiscoveryResult(options) {
270
274
  };
271
275
  });
272
276
  const unavailableCount = scopedAgents.filter((a) => isAgentUnavailableNow(a, now)).length;
273
- const credentialGroups = summarizeCredentialGroups(scopedAgents, now);
274
277
  const pagination = resolvePaginationArgs({
275
278
  limit: options.limit,
276
279
  offset: options.offset
@@ -279,9 +282,10 @@ function buildAgentDiscoveryResult(options) {
279
282
  const limit = pagination.limit;
280
283
  const sortedAgents = sortSafeAgentSummaries(scopedAgents);
281
284
  const hasQuery = Boolean(options.query && typeof options.query === "string" && options.query.trim());
285
+ const hasExplicitFilter = hasQuery || keys.length > 0;
282
286
  const hasFilteredCandidates = sortedAgents.length < options.agents.length;
283
287
  let total;
284
- if (hasQuery) {
288
+ if (hasExplicitFilter) {
285
289
  total = sortedAgents.length;
286
290
  } else if (hasFilteredCandidates) {
287
291
  total = sortedAgents.length;
@@ -295,11 +299,12 @@ function buildAgentDiscoveryResult(options) {
295
299
  } else {
296
300
  total = typeof options.upstreamTotal === "number" && options.upstreamTotal > sortedAgents.length ? options.upstreamTotal : sortedAgents.length;
297
301
  }
298
- const isTruncated = options.upstreamTruncated === true || !hasQuery && !hasFilteredCandidates && typeof options.upstreamTotal === "number" && options.upstreamTotal > sortedAgents.length;
302
+ const isTruncated = options.upstreamTruncated === true || !hasExplicitFilter && !hasFilteredCandidates && typeof options.upstreamTotal === "number" && options.upstreamTotal > sortedAgents.length;
299
303
  const pagedAgents = typeof limit === "number" || typeof offset === "number" ? sortedAgents.slice(
300
304
  offset ?? 0,
301
305
  (offset ?? 0) + (limit ?? sortedAgents.length)
302
306
  ) : sortedAgents;
307
+ const credentialGroups = summarizeCredentialGroups(keys.length ? pagedAgents : scopedAgents, now);
303
308
  const projectedAgents = options.verbose === true ? pagedAgents.map(omitNullishAgentSummaryFields) : options.compact === true ? pagedAgents.map(toUltraCompactAgentSummary) : pagedAgents.map(toCompactAgentSummary);
304
309
  const compacted = options.compact === true && options.verbose !== true ? promoteSharedCredentialGroupQuota(
305
310
  projectedAgents,
@@ -308,7 +313,7 @@ function buildAgentDiscoveryResult(options) {
308
313
  const tierHints = {};
309
314
  const tierHintPreferences = /* @__PURE__ */ new Map();
310
315
  const callerCredentialGroup = resolveCallerCredentialGroup(sortedAgents, options.caller);
311
- for (const agent of sortedAgents) {
316
+ for (const agent of keys.length ? [] : sortedAgents) {
312
317
  const { agentKey, name, model, modelTier, requiresPaidApproval, availabilityStatus } = agent;
313
318
  if (!agentKey || requiresPaidApproval !== false || modelTier === "unknown" || availabilityStatus === "quota_exhausted" || availabilityStatus === "rate_limited") continue;
314
319
  const priority = resolveAgentSelectionPriority(agent);
@@ -336,7 +341,7 @@ function buildAgentDiscoveryResult(options) {
336
341
  planningRecommendation: recommendPlanning(
337
342
  sortedAgents,
338
343
  options.caller,
339
- !isTruncated && scope === "all" && !hasQuery && !options.poolRestricted
344
+ !isTruncated && scope === "all" && !hasExplicitFilter && !options.poolRestricted
340
345
  ),
341
346
  ...Object.keys(tierHints).length > 0 ? { tierHints } : {},
342
347
  credentialGroups: compacted.groups
@@ -2,16 +2,16 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-E4HBZDV6.js";
5
+ } from "./chunk-EMFZXJTN.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";
9
- import {
10
- isTombstoneRecord
11
- } from "./chunk-BV3FLP2L.js";
12
9
  import {
13
10
  toErrorMessage
14
11
  } from "./chunk-HNMXYYJR.js";
12
+ import {
13
+ isTombstoneRecord
14
+ } from "./chunk-BV3FLP2L.js";
15
15
 
16
16
  // packages/cli/globalRecordOperations.ts
17
17
  async function listUserRecordsFromServers(args) {
@@ -1,20 +1,19 @@
1
1
  import {
2
2
  buildSkillDocMarkdown
3
3
  } from "./chunk-AETZ7AD6.js";
4
+ import {
5
+ readCliOptionOptional
6
+ } from "./chunk-RF576RYE.js";
4
7
 
5
8
  // packages/cli/docPageHelpers.ts
6
9
  import { readFileSync } from "node:fs";
7
10
  import { ulid } from "ulid";
8
- function getCliArg(args, flag) {
9
- const idx = args.indexOf(flag);
10
- return idx !== -1 ? args[idx + 1] : void 0;
11
- }
12
11
  function readBodyArg(args, fallback = "") {
13
- const bodyFile = getCliArg(args, "--body-file");
12
+ const bodyFile = readCliOptionOptional(args, "--body-file");
14
13
  if (bodyFile !== void 0) {
15
14
  return readFileSync(bodyFile, "utf8");
16
15
  }
17
- return getCliArg(args, "--body") ?? fallback;
16
+ return readCliOptionOptional(args, "--body", { allowLeadingDash: true }) ?? fallback;
18
17
  }
19
18
  function textToSlate(text) {
20
19
  return text.split("\n").map((line) => ({