nolo-cli 0.227.0-alpha.1 → 0.227.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-JKQGZ3HU.js → _executeModel-CXOFYVHC.js} +93 -87
  3. package/{action-CK64LS6S.js → action-R2EIXR7I.js} +11 -8
  4. package/{addContentAction-CARFID6E.js → addContentAction-W6JVLQ6H.js} +17 -16
  5. package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-LVNKMXKZ.js} +20 -19
  6. package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-VFSZPEQ5.js} +145 -137
  7. package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-KRUIF4EH.js} +149 -137
  8. package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
  9. package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
  10. package/agentListCommands-TDFOLWN3.js +644 -0
  11. package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-PSH7Q5PF.js} +76 -67
  12. package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-C5T7C5KZ.js} +7 -7
  13. package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-QQQZSC6S.js} +7 -7
  14. package/agentRecordCommands-KCKCW2QU.js +188 -0
  15. package/agentRunCommand-EF2T2QWD.js +223 -0
  16. package/{agentRunControl-SNZZ5XP4.js → agentRunControl-CSMSJFFB.js} +25 -17
  17. package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-6QXQS3TS.js} +64 -50
  18. package/{agentSlice-N7H2FRJA.js → agentSlice-IZ5ANAF7.js} +19 -18
  19. package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-4M7ETEEG.js} +68 -59
  20. package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-2VJ2NDW5.js} +68 -59
  21. package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-LDFSWOPQ.js} +68 -59
  22. package/{appGetCommands-NAKVDVD4.js → appGetCommands-RHVNOPT4.js} +68 -59
  23. package/{appListCommands-KL56RN73.js → appListCommands-U3XEVTL4.js} +68 -59
  24. package/{authCommand-AUN5MXV2.js → authCommand-PVZ45QRO.js} +36 -31
  25. package/{authCommands-D2IPS6ES.js → authCommands-6AUYO65N.js} +18 -13
  26. package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-LRVAQCPW.js} +6 -6
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-TBPM6MR4.js} +8 -8
  29. package/{chunk-ABGULE7H.js → chunk-22YUCKMK.js} +16 -16
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-GOLPOTG5.js → chunk-2COM7SAH.js} +4 -4
  32. package/{chunk-ULAQPRHX.js → chunk-2FK2KZSL.js} +1 -1
  33. package/{chunk-PLPLH2XZ.js → chunk-2IPR4PBB.js} +2 -2
  34. package/chunk-2SXN7LAY.js +15 -0
  35. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  36. package/{chunk-7Z3WUZ4Q.js → chunk-3YYFU6H7.js} +74 -46
  37. package/{chunk-C2B7M567.js → chunk-4OXPN3WC.js} +17 -6
  38. package/chunk-4TVOZGOS.js +62 -0
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53AEDFBL.js +33394 -0
  41. package/chunk-53W5BXLN.js +340 -0
  42. package/{chunk-OXA5GWHU.js → chunk-56O2J2Y4.js} +3 -3
  43. package/{chunk-IAJJYHIB.js → chunk-56PB7FEN.js} +8 -8
  44. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  45. package/{chunk-AGP3YSEC.js → chunk-5PASH2MB.js} +46 -1
  46. package/{chunk-PHOSZT3E.js → chunk-5UAKGCQG.js} +1 -1
  47. package/{chunk-5RKRXQ2H.js → chunk-5VVP7DW3.js} +20 -13
  48. package/chunk-6ASGEP5D.js +21 -0
  49. package/chunk-6PXFEPHL.js +103 -0
  50. package/chunk-6RSNVJGO.js +279 -0
  51. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  52. package/{chunk-KMRKZNGT.js → chunk-6YYTTLJV.js} +14 -13
  53. package/{chunk-VREDDN25.js → chunk-76HAJUOJ.js} +14 -9
  54. package/{chunk-FKEZOMIF.js → chunk-7DXFOL5B.js} +1410 -768
  55. package/{chunk-LA7JYAKF.js → chunk-AKPKOI5Z.js} +6 -6
  56. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  57. package/{chunk-F5AY2UZL.js → chunk-AO6T7U62.js} +592 -68
  58. package/{chunk-LJSNEV7M.js → chunk-AS6L5KSD.js} +8 -8
  59. package/{chunk-GOQ6ZVTN.js → chunk-AVSZ6PBM.js} +5 -5
  60. package/chunk-BIDSIRTS.js +307 -0
  61. package/chunk-C5A54QS7.js +108 -0
  62. package/{chunk-KYH7XW3K.js → chunk-CD2DK5JA.js} +135 -14
  63. package/{chunk-G6HJUMST.js → chunk-CJQBWHNM.js} +2 -2
  64. package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
  65. package/{chunk-ZYA2YDB6.js → chunk-CT5JXREL.js} +17 -17
  66. package/{chunk-VPAZ6BEN.js → chunk-CTWCZKNS.js} +42 -17
  67. package/{chunk-4OKTPFNX.js → chunk-CX2LYFZQ.js} +107 -66
  68. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  69. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  72. package/{chunk-IX2BXN2K.js → chunk-EDT65EUE.js} +6 -6
  73. package/{chunk-VP3BINY7.js → chunk-EQZZASCD.js} +31 -1
  74. package/{chunk-45LZIYXB.js → chunk-ESN4WNWU.js} +3 -2
  75. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  76. package/{chunk-CVERLOJM.js → chunk-F4XIS5DL.js} +1215 -1431
  77. package/chunk-FDZ2GBWO.js +166 -0
  78. package/chunk-FGHEF6WI.js +34 -0
  79. package/{chunk-CSW7IPVD.js → chunk-FMYNIAI6.js} +61 -24
  80. package/{chunk-VIHDJ3FK.js → chunk-FNT5VENS.js} +15 -15
  81. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  82. package/{chunk-GRXSJR2Z.js → chunk-GVTFSLNI.js} +112 -109
  83. package/{chunk-UN7HIYMH.js → chunk-GX6DITLQ.js} +1 -1
  84. package/{chunk-3VFYQH3I.js → chunk-HIDVLMZC.js} +203 -156
  85. package/{chunk-5LQDHFBN.js → chunk-IDFGIROZ.js} +20 -17
  86. package/{chunk-UCFPVYP7.js → chunk-IFWXH7LH.js} +1 -1
  87. package/{chunk-LXTC53TN.js → chunk-J45ACAOQ.js} +815 -361
  88. package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
  89. package/{chunk-X2KRQP7V.js → chunk-JV5FHHF7.js} +1 -1
  90. package/{chunk-6EDAMVG6.js → chunk-K26XPZRB.js} +11 -11
  91. package/{chunk-RU6DULV4.js → chunk-KB5RQRSJ.js} +1 -1
  92. package/{chunk-T43K75CK.js → chunk-KC2QVCI7.js} +24 -178
  93. package/chunk-KK3FCYZM.js +647 -0
  94. package/{chunk-XZODOEKU.js → chunk-KMDHRVS7.js} +29 -5
  95. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  96. package/{chunk-UAPNPNSG.js → chunk-KW72WVHO.js} +2085 -1046
  97. package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
  98. package/{chunk-L42CBKBZ.js → chunk-KZKMH374.js} +3 -3
  99. package/{chunk-ZI5SZ3MV.js → chunk-L6BLA6BT.js} +40 -31
  100. package/{chunk-AK5O76CC.js → chunk-LC5CVWP2.js} +3 -3
  101. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  102. package/chunk-LHCGKAFO.js +739 -0
  103. package/{chunk-YOT437BH.js → chunk-LOF2EFUE.js} +203 -123
  104. package/{chunk-YQETUZ5V.js → chunk-LTVEOOZL.js} +29 -16
  105. package/{chunk-T2BEPTAG.js → chunk-MAA42MMV.js} +272 -26
  106. package/{chunk-NAOO4PVX.js → chunk-MECW2HJG.js} +16 -16
  107. package/{chunk-5HL4KC4A.js → chunk-MEDPR36J.js} +62 -87
  108. package/chunk-MVOZ22RZ.js +26 -0
  109. package/{chunk-YPPKC6FL.js → chunk-MYYNZG2M.js} +140 -40
  110. package/{chunk-UVUVQVZ6.js → chunk-MZVCFV3T.js} +19 -15
  111. package/{chunk-CQVGR3MX.js → chunk-N7MXFYLU.js} +7 -7
  112. package/{chunk-IC2I373Q.js → chunk-NEG5LYK5.js} +4 -4
  113. package/chunk-NJJK3PDA.js +133 -0
  114. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  115. package/{chunk-M3Y4IBIR.js → chunk-OHUYN3YU.js} +6 -6
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SFTTXGPM.js → chunk-PDAXMBLW.js} +35 -28
  118. package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
  119. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  120. package/{chunk-SRG5CNLC.js → chunk-QIVE5WJE.js} +8 -8
  121. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  122. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  123. package/{chunk-7Z6EW7AH.js → chunk-QOURTDZL.js} +97 -11
  124. package/{chunk-VZW34YUL.js → chunk-QWSH3UAQ.js} +8 -5
  125. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  126. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  127. package/{chunk-SW6OD4KE.js → chunk-RDPAIR67.js} +351 -18
  128. package/{chunk-NO3VBWTL.js → chunk-RXTZB2DH.js} +4 -4
  129. package/{chunk-AXYH4734.js → chunk-S25VJYXV.js} +21 -15
  130. package/{chunk-MWHOH4RJ.js → chunk-SESKIWB4.js} +6 -6
  131. package/{chunk-GUVXQSFZ.js → chunk-SF4GMDZO.js} +18 -108
  132. package/{chunk-TINJKQSO.js → chunk-SQRKAYQW.js} +25 -25
  133. package/chunk-SR4FE5VD.js +9 -0
  134. package/{chunk-3HTP4WZQ.js → chunk-SX6AWTNK.js} +46 -8
  135. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  136. package/{chunk-CLCXHIBS.js → chunk-T4QY3HZ5.js} +1 -1
  137. package/{chunk-HVUDBOQG.js → chunk-TB5KTLNB.js} +9 -6
  138. package/{chunk-KRRE4A7D.js → chunk-TKE4OJ4B.js} +280 -56
  139. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  140. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  141. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  142. package/{chunk-T5N6NHAT.js → chunk-UPOW5HTG.js} +6 -6
  143. package/{chunk-WJP4TH6U.js → chunk-VEVLLBFK.js} +2 -2
  144. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  145. package/{chunk-KJAAPGBE.js → chunk-VUHKG4KS.js} +6 -6
  146. package/{chunk-TOKPHZ55.js → chunk-W3HSD32M.js} +17 -10
  147. package/{chunk-2SKTCNWO.js → chunk-W5OJBZLZ.js} +4 -4
  148. package/chunk-WBSJAIZP.js +170 -0
  149. package/chunk-WDWZPASX.js +29 -0
  150. package/chunk-WFGNWWJI.js +326 -0
  151. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  152. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  153. package/{chunk-HYKGIXNO.js → chunk-XGWRH3OF.js} +114 -29
  154. package/{chunk-XIEYGCN6.js → chunk-XKV53E4E.js} +460 -117
  155. package/{chunk-JHF6VLVL.js → chunk-XYRTC2Y3.js} +155 -170
  156. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  157. package/{chunk-ZADGPNTV.js → chunk-YHWMKGOX.js} +77 -103
  158. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  159. package/chunk-Z6YTCDU4.js +24 -0
  160. package/{chunk-PVAWNHP5.js → chunk-ZP26NIZE.js} +647 -387
  161. package/{chunk-2G3YSVO6.js → chunk-ZQ6K57FJ.js} +3 -3
  162. package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-37ZNEY5Y.js} +16 -16
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-53773JID.js +102 -0
  167. package/{commandRegistry-TKR6OWXP.js → commandRegistry-RJUO2VOD.js} +113 -101
  168. package/{contentThunks-BQWRPCTM.js → contentThunks-4EFHLUTB.js} +44 -41
  169. package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-QL6DWGVU.js} +3 -3
  170. package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-ZFFGJ7CZ.js} +44 -41
  171. package/{createDialogAction-MMBIHFFU.js → createDialogAction-SDUGVTPS.js} +45 -43
  172. package/{createPageAction-EEYUE5FB.js → createPageAction-NNM3OFLY.js} +49 -46
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-X4Z4E4QU.js → dbSlice-5MQ3ELID.js} +16 -15
  175. package/{deleteFile-QOOP2UK7.js → deleteFile-VCCHS72Y.js} +12 -9
  176. package/{dialogCommands-OXBQ73DD.js → dialogCommands-SJK5KWXU.js} +73 -66
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-PST75COP.js} +19 -19
  179. package/{dialogSlice-KGYIABDY.js → dialogSlice-2KLMHECR.js} +44 -41
  180. package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-BZPKR3DW.js} +8 -8
  181. package/{docCreateCommands-LS32VKY3.js → docCreateCommands-K7CDL2HY.js} +66 -57
  182. package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-ZEY5YCSP.js} +69 -60
  183. package/{docReadCommands-E5LTVKWN.js → docReadCommands-A4ROLIQG.js} +66 -57
  184. package/{docStore-TVS2FNER.js → docStore-A4O6YJAM.js} +19 -18
  185. package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-6HTFQY4O.js} +66 -57
  186. package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
  187. package/{getPricing-VNGFM4PN.js → getPricing-FCHYVRJU.js} +6 -6
  188. package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-6WEFYBUC.js} +87 -82
  189. package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-WOWCNOYM.js} +136 -123
  190. package/index.js +54 -16
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-V36DX2Q2.js → localDialogRead-3T2KMCRC.js} +2 -2
  194. package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-7EDBDRYW.js} +147 -133
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-3LROJZDK.js → machineCommands-XRPC67LL.js} +290 -354
  198. package/machineWsRunDispatch-SOGFW472.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-VOJARP3M.js +106 -0
  201. package/{memberThunks-CFEPHAND.js → memberThunks-KC3WJGL3.js} +26 -21
  202. package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
  203. package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-3X54XFVN.js → projectArchive-GDVPIZX2.js} +50 -47
  207. package/{providerPresetApply-FO36N5TX.js → providerPresetApply-4H7YP5D7.js} +9 -9
  208. package/{providerRegistry-U2BSFE6K.js → providerRegistry-F3UPOTIY.js} +9 -9
  209. package/{read-KA3L2V7O.js → read-T7VU2IMO.js} +11 -10
  210. package/{readDocTool-AMAZAPAW.js → readDocTool-BPQ3QJSD.js} +1 -1
  211. package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-OWQIIUGH.js} +9406 -6791
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-FEUUVMYC.js} +23 -22
  214. package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-SJREK2B7.js} +107 -86
  215. package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-XQD4MN4I.js} +19 -19
  216. package/{secretCommands-GGUAWAE7.js → secretCommands-LH7QTJO2.js} +3 -3
  217. package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-JSTQJPXL.js} +19 -18
  218. package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +23 -22
  219. package/{settingThunks-E6N7RSSS.js → settingThunks-C2YWCNYI.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-DB5DKC2J.js → spaceCommands-YRBQ52PG.js} +71 -62
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-NCA4BKDZ.js} +244 -185
  224. package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-G7XVAOGH.js} +20 -19
  225. package/{tableCommands-VNSXHAMG.js → tableCommands-UHEA5QNL.js} +14 -11
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  227. package/{tools-6JD36D6K.js → tools-6WQVUGKV.js} +74 -70
  228. package/tuiRestart-3J7LRMPR.js +41 -0
  229. package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-2J6NG53N.js} +24 -23
  230. package/{updateCommands-KZ54HCU5.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-QCSN3RYO.js} +46 -43
  232. package/{usageCommand-KFVV6UL3.js → usageCommand-SK7JTEPC.js} +3 -3
  233. package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-DF3HUP6F.js} +4 -4
  234. package/webapi-QVV65DQF.js +2487 -0
  235. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  236. package/workContext-Y3ADAPZU.js +14 -0
  237. package/workContextAccess-UZHDLBUR.js +11 -0
  238. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  239. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
  240. package/agentListCommands-C65UESYM.js +0 -1004
  241. package/agentRecordCommands-6RCJS2EY.js +0 -176
  242. package/agentRunCommand-P3GRKXKS.js +0 -208
  243. package/chunk-2WZXXAQD.js +0 -57
  244. package/chunk-5ZMIIR23.js +0 -265
  245. package/chunk-62HXNQVV.js +0 -134
  246. package/chunk-BJF2MHJ3.js +0 -118
  247. package/chunk-KEPOVMF4.js +0 -91
  248. package/chunk-PXKF5CV4.js +0 -357
  249. package/chunk-WACI5I6V.js +0 -147
  250. package/chunk-YGILMZ7N.js +0 -81
  251. package/cliLocalAgentRecordReader-SPKAJYME.js +0 -90
  252. package/machineWsRunDispatch-BUUJRUUB.js +0 -191
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
  254. package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
  257. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  258. package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
@@ -1,15 +1,9 @@
1
- import {
2
- chooseMemoryOwners,
3
- loadMemoryCandidatesFromDb
4
- } from "./chunk-BJF2MHJ3.js";
5
1
  import {
6
2
  addContentToSpace
7
- } from "./chunk-TINJKQSO.js";
3
+ } from "./chunk-SQRKAYQW.js";
8
4
  import {
9
- prepareAndPersistMessage,
10
- uiAskChoiceFunc,
11
- uiAskChoiceFunctionSchema
12
- } from "./chunk-PVAWNHP5.js";
5
+ prepareAndPersistMessage
6
+ } from "./chunk-ZP26NIZE.js";
13
7
  import {
14
8
  require_format
15
9
  } from "./chunk-BUDVRYES.js";
@@ -22,29 +16,34 @@ import {
22
16
  removeCachedEntity,
23
17
  upsertSSREntity,
24
18
  write
25
- } from "./chunk-SFTTXGPM.js";
19
+ } from "./chunk-PDAXMBLW.js";
26
20
  import {
27
21
  isDevelopment
28
- } from "./chunk-AGP3YSEC.js";
22
+ } from "./chunk-5PASH2MB.js";
29
23
  import {
30
24
  selectIdentityUserId
31
25
  } from "./chunk-PXYBUFDB.js";
32
26
  import {
33
- extractCustomId
34
- } from "./chunk-M2EJHDJP.js";
35
- import {
36
- isRecord
37
- } from "./chunk-KUG52IAP.js";
27
+ createMemoryKey,
28
+ memoryOwnerRange,
29
+ memorySubjectKindRange
30
+ } from "./chunk-SYTHYBMI.js";
38
31
  import {
39
32
  createDialogKey,
40
33
  dialogMessageRange
41
34
  } from "./chunk-OJKUU3LP.js";
42
35
  import {
43
- asTrimmedString
44
- } from "./chunk-3EUW3WEO.js";
36
+ extractCustomId
37
+ } from "./chunk-M2EJHDJP.js";
45
38
  import {
46
39
  asOptionalPositiveFiniteNumber
47
40
  } from "./chunk-U6VC4MU4.js";
41
+ import {
42
+ asTrimmedString
43
+ } from "./chunk-3EUW3WEO.js";
44
+ import {
45
+ isRecord
46
+ } from "./chunk-KUG52IAP.js";
48
47
  import {
49
48
  asOptionalTrimmedString
50
49
  } from "./chunk-G3SUCT4W.js";
@@ -56,6 +55,226 @@ import {
56
55
  var import_format = __toESM(require_format());
57
56
  var import_formatISO = __toESM(require_formatISO());
58
57
 
58
+ // packages/ai/tools/uiAskChoiceTool.ts
59
+ var uiAskChoiceFunctionSchema = {
60
+ name: "ask_user",
61
+ description: "\u8BA9\u7528\u6237\u5728\u4E00\u7EC4\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\uFF08\u5355\u9009\u6216\u591A\u9009\uFF09\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\uFF08\u9700\u6C42\u6A21\u7CCA\u3001\u5206\u652F\u51B3\u7B56\u3001\u95EE\u5377\u7B49\uFF09\u3002\u672C\u5DE5\u5177\u7528\u4E8E\u7EAF\u63D0\u95EE\u3001\u7B49\u5F85\u7528\u6237\u56DE\u7B54\u7684\u573A\u666F\uFF08blocking:false \u65F6\u4E0D\u6682\u505C\u7B49\u5F85\uFF09\uFF1B\u82E5\u9700\u8981\u540C\u65F6\u5C55\u793A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u5E76\u8BA9\u7528\u6237\u5728\u540C\u4E00\u5757\u91CC\u9009\u62E9\uFF0C\u8D70 show_interaction\u3002\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002\u591A\u95EE\u9898\u4F20 questions\uFF0C\u5355\u95EE\u9898\u4F20 question+choices\u3002\u754C\u9762\u9ED8\u8BA4\u63D0\u4F9B\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF08\u53EF\u7528 allowOther:false \u5173\u95ED\uFF09\uFF0C\u7528\u6237\u8F93\u5165\u7684\u6587\u5B57\u4F1A\u968F\u7B54\u6848\u56DE\u4F20\uFF1B\u4E0D\u8981\u81EA\u5EFA\u201C\u5176\u4ED6/\u81EA\u5DF1\u5199\u201D\u4E4B\u7C7B\u7684\u9009\u9879\u2014\u2014\u70B9\u51FB\u666E\u901A\u9009\u9879\u53EA\u56DE\u4F20\u8BE5\u9009\u9879\u6587\u6848\uFF0C\u7528\u6237\u65E0\u5904\u586B\u5199\u3002",
62
+ parameters: {
63
+ type: "object",
64
+ properties: {
65
+ question: {
66
+ type: "string",
67
+ description: "\u5C55\u793A\u7ED9\u7528\u6237\u7684\u95EE\u9898\u6587\u6848\uFF08\u5355\u95EE\u9898\u6A21\u5F0F\uFF09\u3002\u4E0E questions \u4E8C\u9009\u4E00\u3002"
68
+ },
69
+ choices: {
70
+ type: "array",
71
+ description: "\u5907\u9009\u9879\u5217\u8868\uFF0C\u6E32\u67D3\u4E3A\u6309\u94AE\u4F9B\u7528\u6237\u70B9\u51FB\u3002",
72
+ items: {
73
+ type: "object",
74
+ properties: {
75
+ id: {
76
+ type: "string",
77
+ description: "\u9009\u9879\u6807\u8BC6\u3002"
78
+ },
79
+ label: {
80
+ type: "string",
81
+ description: "\u6309\u94AE\u6587\u5B57\uFF0C\u5982\u201C\u751F\u6210\u672C\u5468\u5468\u62A5\u201D\u3002"
82
+ },
83
+ detail: {
84
+ type: "string",
85
+ description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
86
+ },
87
+ userMessage: {
88
+ type: "string",
89
+ description: "\u70B9\u51FB\u540E\u4F5C\u4E3A\u4E0B\u4E00\u6761 user \u6D88\u606F\u53D1\u9001\u7684\u6587\u6848\uFF08\u7559\u7A7A\u9ED8\u8BA4\u7528 label\uFF09\u3002"
90
+ }
91
+ },
92
+ required: ["id", "label"]
93
+ }
94
+ },
95
+ questions: {
96
+ type: "array",
97
+ description: "\u591A\u95EE\u9898\u6A21\u5F0F\uFF08\u591A tab \u6E32\u67D3\uFF0C\u4E0E question+choices \u4E8C\u9009\u4E00\uFF09\u3002",
98
+ items: {
99
+ type: "object",
100
+ properties: {
101
+ id: {
102
+ type: "string",
103
+ description: "\u95EE\u9898\u6807\u8BC6\u3002"
104
+ },
105
+ header: {
106
+ type: "string",
107
+ description: "\u591A\u95EE\u9898 tab \u680F\u663E\u793A\u7684\u77ED\u6807\u7B7E\uFF08\u226412 \u5B57\u7B26\uFF0C\u5982\u201C\u683C\u5F0F/\u8BED\u8A00/\u8303\u56F4\u201D\uFF09\uFF0C\u7F3A\u7701\u7528 Qn\u3002"
108
+ },
109
+ question: {
110
+ type: "string",
111
+ description: "\u95EE\u9898\u6587\u6848\u3002"
112
+ },
113
+ choices: {
114
+ type: "array",
115
+ description: "\u8BE5\u95EE\u9898\u7684\u5907\u9009\u9879\u3002",
116
+ items: {
117
+ type: "object",
118
+ properties: {
119
+ id: { type: "string" },
120
+ label: { type: "string" },
121
+ detail: {
122
+ type: "string",
123
+ description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
124
+ },
125
+ userMessage: { type: "string" }
126
+ },
127
+ required: ["id", "label"]
128
+ }
129
+ },
130
+ multiSelect: {
131
+ type: "boolean",
132
+ description: "\u5141\u8BB8\u591A\u9009\uFF0C\u9ED8\u8BA4 false\u3002"
133
+ },
134
+ allowOther: {
135
+ type: "boolean",
136
+ description: "\u663E\u793A\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF0C\u9ED8\u8BA4 true\u3002"
137
+ },
138
+ required: {
139
+ type: "boolean",
140
+ description: "\u662F\u5426\u5FC5\u987B\u56DE\u7B54\u624D\u80FD\u63D0\u4EA4\uFF0C\u9ED8\u8BA4 true\u3002"
141
+ }
142
+ },
143
+ required: ["id", "question", "choices"]
144
+ }
145
+ },
146
+ blocking: {
147
+ type: "boolean",
148
+ description: "\u662F\u5426\u7B49\u5F85\u7528\u6237\u9009\u62E9\u540E\u518D\u7EE7\u7EED\u6D41\u7A0B\uFF0C\u9ED8\u8BA4 true\u3002"
149
+ }
150
+ },
151
+ required: []
152
+ }
153
+ };
154
+ function validateChoiceList(choices, scopeLabel) {
155
+ const seenChoiceIds = /* @__PURE__ */ new Set();
156
+ for (let index = 0; index < choices.length; index += 1) {
157
+ const entry = choices[index];
158
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
159
+ return `${scopeLabel}.choices[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
160
+ }
161
+ const choice = entry;
162
+ if (typeof choice.label !== "string" || !choice.label.trim()) {
163
+ return `${scopeLabel}.choices[${index}].label \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
164
+ }
165
+ if (choice.id !== void 0 && typeof choice.id !== "string") {
166
+ return `${scopeLabel}.choices[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
167
+ }
168
+ const choiceId = typeof choice.id === "string" ? choice.id.trim() : "";
169
+ if (choiceId && seenChoiceIds.has(choiceId)) {
170
+ return `${scopeLabel} \u5185\u7684\u9009\u9879 id "${choiceId}" \u91CD\u590D\u3002`;
171
+ }
172
+ if (choiceId) seenChoiceIds.add(choiceId);
173
+ }
174
+ return null;
175
+ }
176
+ function validateAskChoiceInput(raw) {
177
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
178
+ return "ask_user \u9700\u8981\u4E00\u4E2A\u5BF9\u8C61\u53C2\u6570\u3002";
179
+ }
180
+ const args = raw;
181
+ if (args.blocking !== void 0 && typeof args.blocking !== "boolean") {
182
+ return "ask_user \u7684 blocking \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002";
183
+ }
184
+ const rawQuestions = args.questions;
185
+ if (rawQuestions !== void 0 && !Array.isArray(rawQuestions)) {
186
+ return "ask_user \u7684 questions \u5FC5\u987B\u662F\u6570\u7EC4\u3002";
187
+ }
188
+ const questions = rawQuestions;
189
+ if (questions && questions.length > 0) {
190
+ const seenQuestionIds = /* @__PURE__ */ new Set();
191
+ for (let index = 0; index < questions.length; index += 1) {
192
+ const entry = questions[index];
193
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
194
+ return `questions[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
195
+ }
196
+ const question = entry;
197
+ if (question.id !== void 0 && typeof question.id !== "string") {
198
+ return `questions[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
199
+ }
200
+ const questionId = typeof question.id === "string" ? question.id.trim() : "";
201
+ if (questionId && seenQuestionIds.has(questionId)) {
202
+ return `\u95EE\u9898 id "${questionId}" \u91CD\u590D\u3002`;
203
+ }
204
+ if (questionId) seenQuestionIds.add(questionId);
205
+ if (typeof question.question !== "string" || !question.question.trim()) {
206
+ return `questions[${index}].question \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
207
+ }
208
+ for (const flag of ["multiSelect", "allowOther", "required"]) {
209
+ if (question[flag] !== void 0 && typeof question[flag] !== "boolean") {
210
+ return `questions[${index}].${flag} \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`;
211
+ }
212
+ }
213
+ const choices = question.choices;
214
+ if (!Array.isArray(choices)) {
215
+ return `questions[${index}].choices \u5FC5\u987B\u662F\u6570\u7EC4\u3002`;
216
+ }
217
+ const choiceError = validateChoiceList(choices, `questions[${index}]`);
218
+ if (choiceError) return choiceError;
219
+ if (choices.length === 0 && question.allowOther === false) {
220
+ return `questions[${index}] \u6CA1\u6709\u4EFB\u4F55\u9009\u9879\u4E14 allowOther \u4E3A false\uFF0C\u7528\u6237\u65E0\u6CD5\u4F5C\u7B54\u3002`;
221
+ }
222
+ }
223
+ return null;
224
+ }
225
+ if (typeof args.question !== "string" || !args.question.trim()) {
226
+ return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
227
+ }
228
+ if (!Array.isArray(args.choices) || args.choices.length === 0) {
229
+ return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
230
+ }
231
+ return validateChoiceList(args.choices, "ask_user");
232
+ }
233
+ async function uiAskChoiceFunc(args, _thunkApi) {
234
+ const invalid = validateAskChoiceInput(args);
235
+ if (invalid) throw new Error(invalid);
236
+ const blocking = args?.blocking !== false;
237
+ if (Array.isArray(args?.questions) && args.questions.length > 0) {
238
+ const firstQ = args.questions[0];
239
+ return {
240
+ rawData: {
241
+ type: "ask_user",
242
+ question: firstQ?.question ?? "",
243
+ choices: firstQ?.choices ?? [],
244
+ blocking,
245
+ questions: args.questions
246
+ },
247
+ displayData: args.questions.map((q) => q.question).join(" / ")
248
+ };
249
+ }
250
+ const question = String(args?.question ?? "").trim();
251
+ const choices = Array.isArray(args?.choices) ? args.choices : [];
252
+ if (!question || choices.length === 0) {
253
+ throw new Error("ask_user \u9700\u8981 question+choices \u6216 questions\u3002");
254
+ }
255
+ return {
256
+ rawData: {
257
+ type: "ask_user",
258
+ question,
259
+ choices,
260
+ blocking
261
+ },
262
+ displayData: question
263
+ };
264
+ }
265
+ function parseUiAskChoiceContent(rawContent) {
266
+ const parsed = typeof rawContent === "string" ? (() => {
267
+ try {
268
+ return JSON.parse(rawContent);
269
+ } catch {
270
+ return null;
271
+ }
272
+ })() : rawContent;
273
+ if (!parsed || typeof parsed !== "object") return null;
274
+ if (parsed.type !== "ask_user") return null;
275
+ return parsed;
276
+ }
277
+
59
278
  // packages/ai/memory/policy.ts
60
279
  function isPublicAgentKey(agentKey) {
61
280
  return typeof agentKey === "string" && /^agent-pub-/i.test(agentKey.trim());
@@ -261,6 +480,113 @@ var mergeGreetingWithRelationshipRecap = (input) => {
261
480
  \u5982\u679C\u4F60\u8FD8\u60F3\u63A5\u7740\u90A3\u4E2A\u70B9\u7EE7\u7EED\uFF0C\u6211\u4EEC\u53EF\u4EE5\u4ECE\u90A3\u91CC\u5F80\u4E0B\u8D70\uFF1B\u5982\u679C\u60F3\u6362\u4E2A\u65B9\u5411\u4E5F\u53EF\u4EE5\u3002`;
262
481
  };
263
482
 
483
+ // packages/ai/memory/queryShared.ts
484
+ var chooseMemoryOwners = (input) => {
485
+ const owners = [];
486
+ if (input.userId) {
487
+ owners.push({ ownerType: "user", ownerId: input.userId });
488
+ }
489
+ if (input.spaceId) {
490
+ owners.push({ ownerType: "space", ownerId: input.spaceId });
491
+ }
492
+ return owners;
493
+ };
494
+ var loadOwnerItemsFromDb = async (db, owner, limit) => {
495
+ const range = memoryOwnerRange(owner.ownerType, owner.ownerId);
496
+ const refs = [];
497
+ for await (const [, value] of db.iterator({
498
+ gte: range.start,
499
+ lte: range.end,
500
+ reverse: true
501
+ })) {
502
+ refs.push(value ?? {});
503
+ if (refs.length >= limit) break;
504
+ }
505
+ const items = await Promise.all(
506
+ refs.map(
507
+ (ref) => typeof ref?.memoryId === "string" ? db.get(createMemoryKey(owner.ownerType, owner.ownerId, ref.memoryId)).catch(() => null) : Promise.resolve(null)
508
+ )
509
+ );
510
+ return items.filter((item) => !!item);
511
+ };
512
+ var loadSubjectKindItemsFromDb = async (db, subject, kind, limit) => {
513
+ const range = memorySubjectKindRange(subject.subjectType, subject.subjectId, kind);
514
+ const refs = [];
515
+ for await (const [, value] of db.iterator({
516
+ gte: range.start,
517
+ lte: range.end,
518
+ reverse: true
519
+ })) {
520
+ refs.push(value ?? {});
521
+ if (refs.length >= limit) break;
522
+ }
523
+ const items = await Promise.all(
524
+ refs.map(
525
+ (ref) => typeof ref?.memoryKey === "string" ? db.get(ref.memoryKey).catch(() => null) : Promise.resolve(null)
526
+ )
527
+ );
528
+ return items.filter((item) => !!item);
529
+ };
530
+ var loadMemoryCandidatesFromDb = async (db, input) => {
531
+ const kinds = input.kinds ?? ["episodic", "semantic", "procedural"];
532
+ const ownerLimit = input.ownerLimit ?? 12;
533
+ const ownerFallback = input.ownerFallback ?? "onSubjectMiss";
534
+ const reserve = Math.max(0, input.corroboratedProceduralReserve ?? 0);
535
+ const ownerKeySet = new Set(
536
+ input.owners.filter((owner) => owner.ownerId).map((owner) => `${owner.ownerType}:${owner.ownerId}`)
537
+ );
538
+ const subjects = input.subjects.filter(
539
+ (subject) => !!subject.subjectId
540
+ );
541
+ const subjectResults = subjects.length > 0 ? await Promise.all(
542
+ subjects.flatMap(
543
+ (subject) => kinds.map(
544
+ (kind) => loadSubjectKindItemsFromDb(db, subject, kind, ownerLimit)
545
+ )
546
+ )
547
+ ) : [];
548
+ const subjectHitCount = subjectResults.reduce((sum, items) => sum + items.length, 0);
549
+ const shouldLoadOwnerFallback = ownerFallback !== "never" && (subjects.length === 0 || subjectHitCount === 0 || ownerFallback === "always");
550
+ const results = shouldLoadOwnerFallback ? await Promise.all(
551
+ [
552
+ ...subjectResults,
553
+ ...input.owners.map((owner) => loadOwnerItemsFromDb(db, owner, ownerLimit))
554
+ ]
555
+ ) : subjectResults;
556
+ if (reserve > 0 && kinds.includes("procedural")) {
557
+ const probeLimit = ownerLimit * 2;
558
+ const reserveResults = await Promise.all(
559
+ subjects.map(
560
+ (subject) => loadSubjectKindItemsFromDb(db, subject, "procedural", probeLimit)
561
+ )
562
+ );
563
+ const corroborated = reserveResults.flat().filter((item) => item && item.recurrenceEvidence).sort((a, b) => b.createdAt.localeCompare(a.createdAt)).slice(0, reserve);
564
+ for (const item of corroborated) {
565
+ results.push([item]);
566
+ }
567
+ }
568
+ const kindSet = new Set(kinds);
569
+ const seen = /* @__PURE__ */ new Set();
570
+ const merged = [];
571
+ for (const items of results) {
572
+ for (const item of items) {
573
+ if (seen.has(item.id)) continue;
574
+ if (!kindSet.has(item.kind)) continue;
575
+ if (ownerKeySet.size > 0 && !ownerKeySet.has(`${item.ownerType}:${item.ownerId}`)) {
576
+ continue;
577
+ }
578
+ if (!shouldLoadOwnerFallback && subjects.length > 0 && !subjects.some(
579
+ (subject) => subject.subjectType === item.subjectType && subject.subjectId === item.subjectId
580
+ )) {
581
+ continue;
582
+ }
583
+ seen.add(item.id);
584
+ merged.push(item);
585
+ }
586
+ }
587
+ return merged;
588
+ };
589
+
264
590
  // packages/ai/memory/understandingGreeting.ts
265
591
  var UNDERSTANDING_TAG = "understanding-memory";
266
592
  var facetPriority = {
@@ -744,8 +1070,15 @@ var createDialogAction = async (args, thunkApi) => {
744
1070
  };
745
1071
 
746
1072
  export {
1073
+ uiAskChoiceFunctionSchema,
1074
+ validateAskChoiceInput,
1075
+ uiAskChoiceFunc,
1076
+ parseUiAskChoiceContent,
747
1077
  resolveAgentMemoryPolicy,
748
1078
  buildMemorySubjectsForAgent,
1079
+ chooseMemoryOwners,
1080
+ loadOwnerItemsFromDb,
1081
+ loadMemoryCandidatesFromDb,
749
1082
  isLocalOwnerDialogAgents,
750
1083
  createDialogAction
751
1084
  };
@@ -1,12 +1,12 @@
1
- import {
2
- require_react
3
- } from "./chunk-5FUN7EG4.js";
4
1
  import {
5
2
  normalizeSpaceId
6
3
  } from "./chunk-UAD2WT54.js";
7
4
  import {
8
5
  toTimestampMs
9
- } from "./chunk-SFTTXGPM.js";
6
+ } from "./chunk-PDAXMBLW.js";
7
+ import {
8
+ require_react
9
+ } from "./chunk-RD3QLZQV.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-U67V476Y.js";
@@ -287,12 +287,18 @@ function formatFinishedRunCard(agentName, status, opts) {
287
287
  const L = resolveLabels(opts?.labels);
288
288
  const icon = getAgentRunStatusIcon(status);
289
289
  const age = formatRunAge(opts?.timing, opts?.now);
290
- const summary = [L.statusWord(status), age, formatProgressRow(opts?.toolCallCount, opts?.lastToolNames, L)].filter(Boolean).join(" \xB7 ");
291
- const lines = [L.runFinished, ` ${icon} ${summary}`];
290
+ const progress = formatProgressRow(opts?.toolCallCount, opts?.lastToolNames, L);
292
291
  const identity = formatIdentityRow(agentName, opts?.runId, {
293
292
  title: opts?.title,
294
293
  unnamedAgent: L.unnamedAgent
295
294
  });
295
+ if (status === "done" && !opts?.errorMessage?.trim()) {
296
+ const head = identity || L.statusWord(status);
297
+ const parts = [head, age, progress].filter(Boolean);
298
+ return `${icon} ${parts.join(" \xB7 ")}`;
299
+ }
300
+ const summary = [L.statusWord(status), age, progress].filter(Boolean).join(" \xB7 ");
301
+ const lines = [L.runFinished, ` ${icon} ${summary}`];
296
302
  if (identity) {
297
303
  lines.push(` ${L.rows.agent}${identity}`);
298
304
  }
@@ -354,7 +360,7 @@ function formatAgentListCard(agents, maxDisplay = 8, now = /* @__PURE__ */ new D
354
360
  const model = agent.model || "\u2014";
355
361
  const source = agent.apiSource || agent.provider || agent.cliProvider || "\u2014";
356
362
  const key = agent.agentKey || "(agentKey unavailable)";
357
- lines.push(`${star}${own} ${name} ${model} ${source}${includeKeys ? ` ${key}` : ""}`);
363
+ lines.push(`${star} ${own} ${name} ${model} ${source}${includeKeys ? ` ${key}` : ""}`);
358
364
  if (agent.availabilityStatus === "rate_limited" || agent.availabilityStatus === "quota_exhausted") {
359
365
  const until = typeof agent.nextAvailableAt === "number" ? formatLocalClockUntil(agent.nextAvailableAt, now) : void 0;
360
366
  lines.push(
@@ -376,15 +382,6 @@ function formatLocalClockUntil(atMs, now) {
376
382
  return sameDay ? time : `${pad(at.getMonth() + 1)}-${pad(at.getDate())} ${time}`;
377
383
  }
378
384
 
379
- // packages/ai/tools/agent/runTitle.ts
380
- var RUN_TITLE_MAX = 60;
381
- function normalizeRunTitle(value) {
382
- if (typeof value !== "string") return void 0;
383
- const cleaned = value.replace(/[\u0000-\u001f\u007f-\u009f]+/g, " ").replace(/\s+/g, " ").trim();
384
- if (!cleaned) return void 0;
385
- return cleaned.length > RUN_TITLE_MAX ? `${cleaned.slice(0, RUN_TITLE_MAX - 1)}\u2026` : cleaned;
386
- }
387
-
388
385
  // packages/ai/tools/agent/agentRunName.ts
389
386
  async function resolveAgentRunName(agentKey, candidates, readAgent) {
390
387
  for (const candidate of candidates) {
@@ -403,6 +400,15 @@ function shortAgentKey(agentKey) {
403
400
  return agentKey.trim().slice(-24) || "unknown-agent";
404
401
  }
405
402
 
403
+ // packages/ai/tools/agent/runTitle.ts
404
+ var RUN_TITLE_MAX = 60;
405
+ function normalizeRunTitle(value) {
406
+ if (typeof value !== "string") return void 0;
407
+ const cleaned = value.replace(/[\u0000-\u001f\u007f-\u009f]+/g, " ").replace(/\s+/g, " ").trim();
408
+ if (!cleaned) return void 0;
409
+ return cleaned.length > RUN_TITLE_MAX ? `${cleaned.slice(0, RUN_TITLE_MAX - 1)}\u2026` : cleaned;
410
+ }
411
+
406
412
  export {
407
413
  buildDelegatedTaskContent,
408
414
  calculateDelegatedPayloadMetrics,
@@ -424,8 +430,8 @@ export {
424
430
  formatNotFoundRunCard,
425
431
  isAgentRunTerminalStatus,
426
432
  formatAgentListCard,
427
- RUN_TITLE_MAX,
428
- normalizeRunTitle,
429
433
  resolveAgentRunName,
430
- shortAgentKey
434
+ shortAgentKey,
435
+ RUN_TITLE_MAX,
436
+ normalizeRunTitle
431
437
  };
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  require_formatISO
3
3
  } from "./chunk-UVLYNWIE.js";
4
- import {
5
- getActiveDialogKey
6
- } from "./chunk-S2NTVGA2.js";
7
4
  import {
8
5
  patch,
9
6
  selectById
10
- } from "./chunk-SFTTXGPM.js";
7
+ } from "./chunk-PDAXMBLW.js";
8
+ import {
9
+ getActiveDialogKey
10
+ } from "./chunk-U35UUM5K.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-U67V476Y.js";
14
14
 
15
15
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
16
16
  var import_formatISO = __toESM(require_formatISO());
17
- var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
17
+ var setDialogExtraReferencesAction = async (extraReferences, thunkApi, dialogKey) => {
18
18
  const { dispatch, getState } = thunkApi;
19
19
  const state = getState();
20
- const currentDialogKey = getActiveDialogKey();
20
+ const currentDialogKey = dialogKey === void 0 ? getActiveDialogKey() : dialogKey;
21
21
  if (!currentDialogKey) {
22
22
  throw new Error("No current dialog selected");
23
23
  }