nolo-cli 0.228.0-alpha.2 → 0.228.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 (235) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-GIFVXKDT.js} +88 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-WZTKEF5H.js} +9 -6
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-MLI6GOBV.js} +14 -13
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-ARGQM22H.js} +17 -16
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-UF7XVELS.js} +118 -111
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-SFHRPQYC.js} +118 -107
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-IXKBP3W5.js} +208 -177
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-7NX6PWQ6.js} +55 -48
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-4EQZYHU4.js} +1 -1
  13. package/agentRecordCommands-IUNX6XD6.js +188 -0
  14. package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-LCR4XADM.js} +125 -111
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-RN2P6AOD.js} +11 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-LVXPQ7QA.js} +56 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-ZGMOH6TE.js} +15 -14
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-BESCJOQM.js} +55 -48
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-LPTR6IOX.js} +55 -48
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-BZ7KZ5RD.js} +55 -48
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-EDWGJV4S.js} +55 -48
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-OPRWYPM6.js} +55 -48
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-3C3RN4OU.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-ZMVEDCQD.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-VRCMQ77Q.js} +7 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-NZITLHWO.js} +3 -3
  28. package/{chunk-VQ5N5GSV.js → chunk-2BKNICGK.js} +4 -4
  29. package/{chunk-QYB23WUH.js → chunk-2FK2KZSL.js} +1 -1
  30. package/chunk-2SXN7LAY.js +15 -0
  31. package/{chunk-3VZLEKV2.js → chunk-3DJJ4CFG.js} +11 -11
  32. package/{chunk-TSPMLCWI.js → chunk-4IQN6FWY.js} +5 -5
  33. package/{chunk-XAG3FWBE.js → chunk-4OXPN3WC.js} +6 -6
  34. package/chunk-4ZCTKB27.js +31 -0
  35. package/chunk-53W5BXLN.js +340 -0
  36. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  37. package/chunk-6ASGEP5D.js +21 -0
  38. package/{chunk-MJI3UAXN.js → chunk-6CXQ3YNJ.js} +40 -36
  39. package/{chunk-G7IUT2V3.js → chunk-6MTVACLN.js} +365 -64
  40. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  41. package/{chunk-XSW4EXQV.js → chunk-6TVYUQRM.js} +55 -18
  42. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  43. package/{chunk-7Z6EW7AH.js → chunk-6XVPMGXK.js} +97 -11
  44. package/{chunk-ALAES342.js → chunk-73PZD7JZ.js} +9 -5
  45. package/{chunk-TCZ2VJZQ.js → chunk-7UVVLYKC.js} +9 -9
  46. package/{chunk-S6FDXXZV.js → chunk-ADOOL3PG.js} +2 -2
  47. package/{chunk-OWKNSIXL.js → chunk-AEZBAFC6.js} +334 -77
  48. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  49. package/{chunk-RG2DGNL6.js → chunk-ARFCL53U.js} +5 -5
  50. package/{chunk-SRCCSTIM.js → chunk-AS6L5KSD.js} +4 -4
  51. package/{chunk-WFDNADFX.js → chunk-BAH3BAUZ.js} +8 -8
  52. package/{chunk-N5Z2V73W.js → chunk-BFKJ2RS3.js} +1 -1
  53. package/{chunk-F6Z6ZCUV.js → chunk-BVEDT6DM.js} +3 -3
  54. package/chunk-C5A54QS7.js +108 -0
  55. package/{chunk-CD3RU7XL.js → chunk-CD2DK5JA.js} +120 -14
  56. package/{chunk-BP5ZJ6B4.js → chunk-CD64YXRB.js} +1 -1
  57. package/{chunk-VP3BINY7.js → chunk-CIGCTSBF.js} +31 -1
  58. package/{chunk-TQEKUOTI.js → chunk-CIUZXD5D.js} +12 -12
  59. package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
  60. package/{chunk-VMJVAJ6W.js → chunk-CTIEJRTP.js} +28 -4
  61. package/{chunk-7JGMNKKG.js → chunk-CTWCZKNS.js} +29 -8
  62. package/{chunk-YFLVRVYK.js → chunk-D25ONVOH.js} +1 -1
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-262R3XNN.js → chunk-E5RYFR7E.js} +334 -103
  65. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  66. package/{chunk-HSSBDZLD.js → chunk-EDT65EUE.js} +6 -6
  67. package/{chunk-YVFH2MFB.js → chunk-EQZQUQ33.js} +7 -7
  68. package/{chunk-HBRDSQ3M.js → chunk-ESN4WNWU.js} +3 -2
  69. package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
  70. package/{chunk-547ENH5T.js → chunk-FFFKAOJN.js} +4 -4
  71. package/{chunk-5ZUOVCKT.js → chunk-FGHEF6WI.js} +3 -1
  72. package/{chunk-GAYNXB6T.js → chunk-FTWAOKFU.js} +756 -333
  73. package/chunk-GAHJLSDO.js +107 -0
  74. package/{chunk-2X7WFDT6.js → chunk-GX6DITLQ.js} +1 -1
  75. package/{chunk-HXB4VDGK.js → chunk-HCCQEMTK.js} +28 -28
  76. package/{chunk-CMMI3DAT.js → chunk-HZDK56EK.js} +33 -26
  77. package/{chunk-OTKSESZR.js → chunk-IIOSZAJX.js} +4 -4
  78. package/chunk-IIRJ4P4I.js +24 -0
  79. package/{chunk-OJ45MEEI.js → chunk-IJZC2KIJ.js} +1 -1
  80. package/{chunk-MNEZUL5S.js → chunk-ITBX27W6.js} +92 -31
  81. package/{chunk-LYD6C7OU.js → chunk-J2VIGDJN.js} +6 -6
  82. package/{chunk-M3OZRQNH.js → chunk-JEWMQR6J.js} +1 -1
  83. package/{chunk-6QHKRARD.js → chunk-JFRJEPFI.js} +29 -5
  84. package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
  85. package/{chunk-EGHP7KOY.js → chunk-JU7VN4LF.js} +38 -29
  86. package/{chunk-RTHFJZ6M.js → chunk-K26XPZRB.js} +2 -2
  87. package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
  88. package/chunk-KK3FCYZM.js +647 -0
  89. package/chunk-KLAMJNKQ.js +33394 -0
  90. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  91. package/chunk-KXOPLLFP.js +190 -0
  92. package/{chunk-MZG5CETE.js → chunk-KZ5OD2MO.js} +4 -4
  93. package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
  94. package/chunk-LHCGKAFO.js +739 -0
  95. package/{chunk-HF7BLF3F.js → chunk-LMGFVH65.js} +107 -104
  96. package/{chunk-QRGDJA4B.js → chunk-LTVEOOZL.js} +19 -6
  97. package/{chunk-L32W3PRP.js → chunk-MAA42MMV.js} +233 -17
  98. package/{chunk-ATEKLSLR.js → chunk-MTM4LRVG.js} +14 -9
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-U2HBB7RS.js → chunk-MYYNZG2M.js} +132 -32
  101. package/{chunk-DBUR22G5.js → chunk-MZVCFV3T.js} +19 -15
  102. package/{chunk-WCFFRBL5.js → chunk-N74XL3NI.js} +9 -9
  103. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  104. package/{chunk-RBPUNSG5.js → chunk-OAZP4TSA.js} +18 -108
  105. package/{chunk-4QYJPWHH.js → chunk-ODBYGVO2.js} +232 -10
  106. package/{chunk-M4SFKP5L.js → chunk-OHUYN3YU.js} +3 -3
  107. package/{chunk-HYLRQDEE.js → chunk-OLGFIQN2.js} +6 -6
  108. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  109. package/chunk-P27E22MA.js +203 -0
  110. package/{chunk-BIWI5M4E.js → chunk-PBPXXMWZ.js} +1 -1
  111. package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
  112. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  113. package/{chunk-XFXFPUO7.js → chunk-QMNVV3YM.js} +10 -37
  114. package/{chunk-CNMY2XM6.js → chunk-R5NRFXGD.js} +5 -5
  115. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  116. package/{chunk-4WVJLODK.js → chunk-RHBD22LV.js} +9 -4
  117. package/{chunk-45CAVC35.js → chunk-RMWDKLBE.js} +1489 -286
  118. package/{chunk-ZEVQHCLM.js → chunk-RR3MB26M.js} +2 -2
  119. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  120. package/{chunk-DLXMMTGM.js → chunk-SCMYAGQE.js} +1067 -705
  121. package/{chunk-YKY4OVOX.js → chunk-SPU3L3OR.js} +17 -170
  122. package/chunk-SR4FE5VD.js +9 -0
  123. package/{chunk-DUUDXSLX.js → chunk-SX6AWTNK.js} +28 -4
  124. package/{chunk-ZH3KXFHS.js → chunk-TMRJGSK2.js} +1 -1
  125. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  126. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  127. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  128. package/{chunk-3U44JB3O.js → chunk-UF6J7NXV.js} +1 -1
  129. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  130. package/chunk-UOUMPHS5.js +103 -0
  131. package/{chunk-HHFGE2WF.js → chunk-UPOW5HTG.js} +5 -5
  132. package/{chunk-DEA37IUY.js → chunk-V4IYI3SB.js} +2 -2
  133. package/{chunk-XTJKU3Z4.js → chunk-VKCPKCSS.js} +66 -92
  134. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  135. package/{chunk-OBIC6EG7.js → chunk-VUHKG4KS.js} +3 -3
  136. package/{chunk-EEOOBRA7.js → chunk-W3HSD32M.js} +13 -6
  137. package/{chunk-P2ZLUIW2.js → chunk-W6T4FNZP.js} +351 -26
  138. package/chunk-WDWZPASX.js +29 -0
  139. package/{chunk-R6Z5S5GA.js → chunk-WQDTSK5U.js} +51 -14
  140. package/{chunk-X3E6EHJW.js → chunk-X22AUZKL.js} +149 -165
  141. package/{chunk-4ZGPHFLE.js → chunk-X3OZ655T.js} +2 -2
  142. package/{chunk-RRDRQOEC.js → chunk-XCA4WHX5.js} +95 -77
  143. package/{chunk-TI2EPRHE.js → chunk-XJSEST7D.js} +3 -3
  144. package/{chunk-3QIYD3VM.js → chunk-XNTZD4AE.js} +870 -1068
  145. package/chunk-XSRSAU3O.js +133 -0
  146. package/{chunk-7FEP5USX.js → chunk-Y4NPF2UN.js} +3 -3
  147. package/{chunk-FJSNBZXR.js → chunk-YDRRGVT5.js} +1 -1
  148. package/{chunk-7BCG67EI.js → chunk-YFW4H6DL.js} +405 -338
  149. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  150. package/{chunk-4N6G2CKP.js → chunk-YHNUDTU4.js} +49 -3
  151. package/chunk-YJPK35HB.js +175 -0
  152. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  153. package/{chunk-FPBJM2BW.js → chunk-Z7KE4K3H.js} +195 -126
  154. package/{chunk-DGYCDA6W.js → chunk-ZM5AZTQG.js} +20 -13
  155. package/{chunk-CBUZ6DKA.js → chunk-ZQ6K57FJ.js} +1 -1
  156. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-37ZNEY5Y.js} +9 -9
  157. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  158. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-MCQVRWBR.js} +58 -47
  159. package/{commandRegistry-FVYPE2IN.js → commandRegistry-NTH5IAN5.js} +104 -92
  160. package/{contentThunks-GNFPG32S.js → contentThunks-SPXTX5U2.js} +38 -36
  161. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-TIFCHCUN.js} +1 -1
  162. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-KUQKCOXB.js} +38 -36
  163. package/{createDialogAction-EVTOPY7A.js → createDialogAction-HJN5U3XS.js} +39 -37
  164. package/{createPageAction-2UYF2IDZ.js → createPageAction-ZAHRDOAU.js} +43 -41
  165. package/{db-M7FU2GNK.js → db-CMUTP3W5.js} +2 -2
  166. package/{dbSlice-XRUZOGSU.js → dbSlice-656PMWR2.js} +13 -12
  167. package/{deleteFile-6URDHYRB.js → deleteFile-ZCQESEEQ.js} +10 -7
  168. package/{dialogCommands-6SZD4TYP.js → dialogCommands-KZTZLWPZ.js} +60 -54
  169. package/dialogMessageRecord-OAV77LT7.js +7 -0
  170. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-PST75COP.js} +11 -11
  171. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-BXIERQHO.js} +39 -37
  172. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-6RW2FY6K.js} +5 -5
  173. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-26HJ5NAY.js} +54 -47
  174. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-UAOHH5XK.js} +56 -49
  175. package/{docReadCommands-JY2E5XEN.js → docReadCommands-4ADG7YE6.js} +54 -47
  176. package/{docStore-OKKIKLT3.js → docStore-FZ75HWP2.js} +15 -14
  177. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-OGFJZENF.js} +54 -47
  178. package/fetchMessages-TQEUZD7H.js +1 -1
  179. package/{getPricing-LF5C4XSI.js → getPricing-FCHYVRJU.js} +4 -4
  180. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-KP6GGBFY.js} +82 -78
  181. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-23TX56G7.js} +117 -105
  182. package/index.js +8 -8
  183. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  184. package/{localDialogRead-CCOCVGAP.js → localDialogRead-CIOTQM5T.js} +1 -1
  185. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-MTUWOYPN.js} +124 -111
  186. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-TYHQCTZN.js} +5 -3
  187. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
  188. package/{machineCommands-HSQHDHOT.js → machineCommands-4WJUJQHW.js} +241 -321
  189. package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-V3U4JM67.js} +113 -102
  190. package/markdownToSlate-KIYM7B3P.js +8 -0
  191. package/mcpLocalAuthorizeCommand-TI656UWC.js +106 -0
  192. package/{memberThunks-7Y3OYSJQ.js → memberThunks-JFYC4Z5L.js} +20 -15
  193. package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
  194. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  195. package/package.json +1 -1
  196. package/{projectArchive-FQO654Z3.js → projectArchive-NU2Z5HOR.js} +45 -43
  197. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-4H7YP5D7.js} +6 -6
  198. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-F3UPOTIY.js} +6 -6
  199. package/{read-TYMBGEXO.js → read-BRZHXUJ6.js} +9 -8
  200. package/{readDocTool-SKQVHBLO.js → readDocTool-N7RVFQEE.js} +1 -1
  201. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-T56MRMS5.js} +6423 -3669
  202. package/rememberExplicit-CPAPONSI.js +15 -0
  203. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-J7XU7OUX.js} +19 -18
  204. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-O2GRCGRZ.js} +96 -76
  205. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-RDRJXMXC.js} +8 -8
  206. package/{secretCommands-KZWBZIYS.js → secretCommands-2FEMRUFM.js} +3 -3
  207. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +16 -15
  208. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-742H5S6T.js} +19 -18
  209. package/{settingThunks-ZRGWVGZD.js → settingThunks-T4FXSV6M.js} +185 -66
  210. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  211. package/{spaceCommands-5VNWMDBE.js → spaceCommands-W5TAVFDT.js} +58 -51
  212. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-OWDJMU5E.js} +234 -177
  213. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-HLDLHRRA.js} +17 -16
  214. package/{tableCommands-FTAOCBTX.js → tableCommands-44GC4N6J.js} +8 -5
  215. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  216. package/{tools-M35PTIFB.js → tools-O7SGGVA3.js} +65 -62
  217. package/{tuiRestart-2IL37YIB.js → tuiRestart-EOGC2BYY.js} +10 -10
  218. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-TM5BU73J.js} +16 -15
  219. package/{updateCommands-CPATDG6J.js → updateCommands-FBYA5WVG.js} +3 -3
  220. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-EXSZGTLL.js} +40 -38
  221. package/{usageCommand-2BF74MKF.js → usageCommand-L4OFWXEU.js} +2 -2
  222. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-7JR33UHS.js} +3 -3
  223. package/webapi-QVV65DQF.js +2487 -0
  224. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
  225. package/workContext-Y3ADAPZU.js +14 -0
  226. package/workContextAccess-VU5I4LKZ.js +11 -0
  227. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  228. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
  229. package/agentRecordCommands-IZYUVHME.js +0 -177
  230. package/chunk-5ZMIIR23.js +0 -265
  231. package/chunk-62HXNQVV.js +0 -134
  232. package/chunk-TUSTONB3.js +0 -81
  233. package/chunk-ZXF6D3I6.js +0 -359
  234. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  235. /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
@@ -0,0 +1,340 @@
1
+ import {
2
+ applyMemoryInterpreterMutation
3
+ } from "./chunk-6RSNVJGO.js";
4
+ import {
5
+ getMemoryEntityVNext,
6
+ getMemoryEvidenceVNextStrict,
7
+ getMemoryStateVNext,
8
+ listMemoryStatesForEntityVNext
9
+ } from "./chunk-324FWHUA.js";
10
+ import {
11
+ normalizeTopicKey
12
+ } from "./chunk-MVOZ22RZ.js";
13
+ import {
14
+ sha256Hex
15
+ } from "./chunk-SR4FE5VD.js";
16
+
17
+ // packages/ai/memory/vnext/rememberExplicit.ts
18
+ async function rememberExplicitVNext(db, item) {
19
+ const ownerId = `${item.ownerType}:${encodeURIComponent(item.ownerId)}`;
20
+ const topicKey = normalizeTopicKey(item.topicKey);
21
+ if (!topicKey) {
22
+ const digest = sha256Hex(
23
+ JSON.stringify([
24
+ ownerId,
25
+ item.subjectType,
26
+ item.subjectId,
27
+ item.kind,
28
+ item.content
29
+ ])
30
+ );
31
+ const entityId2 = `explicit-${digest}`;
32
+ const stateId = `explicit-${digest}`;
33
+ let saved2;
34
+ await applyMemoryInterpreterMutation(db, ownerId, async () => {
35
+ const existing = await getMemoryStateVNext(db, ownerId, stateId);
36
+ if (existing?.retiredAt)
37
+ throw new Error("Explicit memory conflicts with a retired state");
38
+ const entity = await getMemoryEntityVNext(db, ownerId, entityId2);
39
+ const createdAt = existing?.createdAt ?? item.createdAt;
40
+ const oldValue = existing?.value && typeof existing.value === "object" ? existing.value : {};
41
+ const confidence = Math.max(
42
+ Number(oldValue.confidence) || 0,
43
+ item.confidence ?? 0
44
+ );
45
+ const resident = oldValue.resident === true || item.resident === true;
46
+ const evidenceId = `explicit-${digest}-${sha256Hex(
47
+ JSON.stringify([
48
+ item.confidence,
49
+ item.sourceDialogId ?? null,
50
+ item.provenance ?? null
51
+ ])
52
+ ).slice(0, 24)}`;
53
+ const evidence = await getMemoryEvidenceVNextStrict(
54
+ db,
55
+ ownerId,
56
+ evidenceId
57
+ );
58
+ saved2 = {
59
+ ...item,
60
+ id: `vnext-state-${stateId}`,
61
+ createdAt,
62
+ confidence,
63
+ ...resident ? { resident: true } : {}
64
+ };
65
+ return {
66
+ action: existing ? "update" : "create",
67
+ reason: "Explicit memory save",
68
+ entities: entity ? [] : [
69
+ {
70
+ id: entityId2,
71
+ ownerId,
72
+ type: "concept",
73
+ name: item.content,
74
+ createdAt,
75
+ updatedAt: createdAt
76
+ }
77
+ ],
78
+ evidence: evidence ? [] : [
79
+ {
80
+ id: evidenceId,
81
+ ownerId,
82
+ text: item.content,
83
+ confidence: item.confidence,
84
+ ...item.provenance ? { provenance: item.provenance } : {},
85
+ sourceRef: item.sourceDialogId ? `dialog:${item.sourceDialogId}` : `explicit:${digest}`,
86
+ createdAt
87
+ }
88
+ ],
89
+ states: [
90
+ {
91
+ id: stateId,
92
+ ownerId,
93
+ entityId: entityId2,
94
+ facet: "explicit-memory",
95
+ text: item.content,
96
+ value: {
97
+ ...oldValue,
98
+ kind: item.kind,
99
+ subjectType: item.subjectType,
100
+ subjectId: item.subjectId,
101
+ confidence,
102
+ resident,
103
+ visibility: item.visibility,
104
+ tags: item.tags,
105
+ importance: item.importance,
106
+ patternKey: item.patternKey,
107
+ recurrenceEvidence: item.recurrenceEvidence,
108
+ provenance: item.provenance,
109
+ sourceKind: item.sourceKind,
110
+ sourceDialogId: item.sourceDialogId
111
+ },
112
+ evidenceIds: [
113
+ .../* @__PURE__ */ new Set([...existing?.evidenceIds ?? [], evidenceId])
114
+ ],
115
+ createdAt,
116
+ updatedAt: item.createdAt
117
+ }
118
+ ]
119
+ };
120
+ });
121
+ return saved2;
122
+ }
123
+ const topicDigest = sha256Hex(
124
+ JSON.stringify([
125
+ ownerId,
126
+ item.subjectType,
127
+ item.subjectId,
128
+ item.kind,
129
+ topicKey
130
+ ])
131
+ );
132
+ const entityId = `explicit-topic-${topicDigest}`;
133
+ const contentDigest = sha256Hex(
134
+ JSON.stringify([
135
+ ownerId,
136
+ item.subjectType,
137
+ item.subjectId,
138
+ item.kind,
139
+ item.content
140
+ ])
141
+ );
142
+ let saved;
143
+ await applyMemoryInterpreterMutation(db, ownerId, async () => {
144
+ const entity = await getMemoryEntityVNext(db, ownerId, entityId);
145
+ const entityStates = (await listMemoryStatesForEntityVNext(db, ownerId, entityId)).filter((state) => state.facet === "explicit-memory");
146
+ const activeStates = entityStates.filter((state) => !state.retiredAt);
147
+ const matchingCurrent = activeStates.find(
148
+ (state) => state.text === item.content
149
+ );
150
+ if (matchingCurrent) {
151
+ const stateId2 = matchingCurrent.id;
152
+ const createdAt2 = matchingCurrent.createdAt;
153
+ const oldValue = matchingCurrent.value && typeof matchingCurrent.value === "object" ? matchingCurrent.value : {};
154
+ const confidence2 = Math.max(
155
+ Number(oldValue.confidence) || 0,
156
+ item.confidence ?? 0
157
+ );
158
+ const resident2 = oldValue.resident === true || item.resident === true;
159
+ const existingSupersedes = Array.isArray(oldValue.supersedesStateIds) ? oldValue.supersedesStateIds.map(String) : void 0;
160
+ const evidenceId2 = `${stateId2}-${sha256Hex(
161
+ JSON.stringify([
162
+ item.confidence,
163
+ item.sourceDialogId ?? null,
164
+ item.provenance ?? null
165
+ ])
166
+ ).slice(0, 24)}`;
167
+ const evidence2 = await getMemoryEvidenceVNextStrict(
168
+ db,
169
+ ownerId,
170
+ evidenceId2
171
+ );
172
+ saved = {
173
+ ...item,
174
+ topicKey,
175
+ ...existingSupersedes?.length ? { supersedesStateIds: existingSupersedes } : {},
176
+ id: `vnext-state-${stateId2}`,
177
+ createdAt: createdAt2,
178
+ confidence: confidence2,
179
+ ...resident2 ? { resident: true } : {}
180
+ };
181
+ return {
182
+ action: "update",
183
+ reason: "Explicit memory save (topicKey idempotent update)",
184
+ entities: entity ? [] : [
185
+ {
186
+ id: entityId,
187
+ ownerId,
188
+ type: "concept",
189
+ subtype: "explicit-topic",
190
+ name: topicKey,
191
+ createdAt: createdAt2,
192
+ updatedAt: createdAt2
193
+ }
194
+ ],
195
+ evidence: evidence2 ? [] : [
196
+ {
197
+ id: evidenceId2,
198
+ ownerId,
199
+ text: item.content,
200
+ confidence: item.confidence,
201
+ ...item.provenance ? { provenance: item.provenance } : {},
202
+ sourceRef: item.sourceDialogId ? `dialog:${item.sourceDialogId}` : `explicit:${topicDigest}`,
203
+ createdAt: item.createdAt
204
+ }
205
+ ],
206
+ states: [
207
+ {
208
+ id: stateId2,
209
+ ownerId,
210
+ entityId,
211
+ facet: "explicit-memory",
212
+ text: item.content,
213
+ value: {
214
+ ...oldValue,
215
+ kind: item.kind,
216
+ subjectType: item.subjectType,
217
+ subjectId: item.subjectId,
218
+ confidence: confidence2,
219
+ resident: resident2,
220
+ visibility: item.visibility,
221
+ tags: item.tags,
222
+ importance: item.importance,
223
+ patternKey: item.patternKey,
224
+ recurrenceEvidence: item.recurrenceEvidence,
225
+ provenance: item.provenance,
226
+ sourceKind: item.sourceKind,
227
+ sourceDialogId: item.sourceDialogId,
228
+ topicKey,
229
+ ...existingSupersedes?.length ? { supersedesStateIds: existingSupersedes } : {}
230
+ },
231
+ evidenceIds: [
232
+ .../* @__PURE__ */ new Set([...matchingCurrent.evidenceIds, evidenceId2])
233
+ ],
234
+ createdAt: createdAt2,
235
+ updatedAt: item.createdAt
236
+ }
237
+ ]
238
+ };
239
+ }
240
+ const supersededIds = activeStates.map((state) => state.id);
241
+ const isSupersede = supersededIds.length > 0;
242
+ const version = entityStates.length + 1;
243
+ const stateId = `explicit-topic-${topicDigest.slice(0, 24)}-v${version}-${contentDigest.slice(0, 16)}`;
244
+ const createdAt = item.createdAt;
245
+ const confidence = item.confidence ?? 0;
246
+ const resident = item.resident === true;
247
+ const evidenceId = `${stateId}-${sha256Hex(
248
+ JSON.stringify([
249
+ item.confidence,
250
+ item.sourceDialogId ?? null,
251
+ item.provenance ?? null
252
+ ])
253
+ ).slice(0, 24)}`;
254
+ const evidence = await getMemoryEvidenceVNextStrict(
255
+ db,
256
+ ownerId,
257
+ evidenceId
258
+ );
259
+ const relations = supersededIds.map(
260
+ (oldId, idx) => ({
261
+ id: `rel-supersedes-${stateId}-${idx}`,
262
+ ownerId,
263
+ from: stateId,
264
+ type: "supersedes",
265
+ to: oldId,
266
+ createdAt
267
+ })
268
+ );
269
+ saved = {
270
+ ...item,
271
+ topicKey,
272
+ ...isSupersede ? { supersedesStateIds: supersededIds } : {},
273
+ id: `vnext-state-${stateId}`,
274
+ createdAt,
275
+ confidence,
276
+ ...resident ? { resident: true } : {}
277
+ };
278
+ return {
279
+ action: isSupersede ? "supersede" : "create",
280
+ reason: isSupersede ? "Explicit memory topicKey supersede" : "Explicit memory save (topicKey)",
281
+ entities: entity ? [] : [
282
+ {
283
+ id: entityId,
284
+ ownerId,
285
+ type: "concept",
286
+ subtype: "explicit-topic",
287
+ name: topicKey,
288
+ createdAt,
289
+ updatedAt: createdAt
290
+ }
291
+ ],
292
+ evidence: evidence ? [] : [
293
+ {
294
+ id: evidenceId,
295
+ ownerId,
296
+ text: item.content,
297
+ confidence: item.confidence,
298
+ ...item.provenance ? { provenance: item.provenance } : {},
299
+ sourceRef: item.sourceDialogId ? `dialog:${item.sourceDialogId}` : `explicit:${topicDigest}`,
300
+ createdAt
301
+ }
302
+ ],
303
+ states: [
304
+ {
305
+ id: stateId,
306
+ ownerId,
307
+ entityId,
308
+ facet: "explicit-memory",
309
+ text: item.content,
310
+ value: {
311
+ kind: item.kind,
312
+ subjectType: item.subjectType,
313
+ subjectId: item.subjectId,
314
+ confidence,
315
+ resident,
316
+ visibility: item.visibility,
317
+ tags: item.tags,
318
+ importance: item.importance,
319
+ patternKey: item.patternKey,
320
+ recurrenceEvidence: item.recurrenceEvidence,
321
+ provenance: item.provenance,
322
+ sourceKind: item.sourceKind,
323
+ sourceDialogId: item.sourceDialogId,
324
+ topicKey,
325
+ ...isSupersede ? { supersedesStateIds: supersededIds } : {}
326
+ },
327
+ evidenceIds: [evidenceId],
328
+ createdAt,
329
+ updatedAt: item.createdAt
330
+ }
331
+ ],
332
+ ...isSupersede ? { supersededStateIds: supersededIds, relations } : {}
333
+ };
334
+ });
335
+ return saved;
336
+ }
337
+
338
+ export {
339
+ rememberExplicitVNext
340
+ };
@@ -1,7 +1,9 @@
1
1
  import {
2
- MEMORY_USE_GUIDANCE,
2
+ MEMORY_USE_GUIDANCE
3
+ } from "./chunk-YGDYYFRX.js";
4
+ import {
3
5
  wrapHistoricalSummaryWithReplayGuard
4
- } from "./chunk-JQZRSXS5.js";
6
+ } from "./chunk-2SXN7LAY.js";
5
7
 
6
8
  // packages/agent-runtime/skillCatalog.ts
7
9
  var SKILL_CATALOG_PRIORITY = Object.freeze([
@@ -190,79 +192,8 @@ function resolveSkillCatalogSync(sources, query = {}, budget = DEFAULT_SKILL_CAT
190
192
  }
191
193
 
192
194
  // packages/agent-runtime/turnContext.ts
193
- var DEFAULT_RECENT_CONTENT_LIMIT = 10;
194
195
  var asTrimmed = (value) => typeof value === "string" ? value.trim() : "";
195
- var asFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value) ? value : 0;
196
- var spaceRecordKey = (spaceId) => spaceId.startsWith("space-") ? spaceId : `space-${spaceId}`;
197
196
  var makeLayer = (id, content, cacheScope = "turn") => ({ id, owner: "runtime", cacheScope, content });
198
- var renderSpaceStructure = (spaceRecord, recentLimit) => {
199
- const categories = spaceRecord.categories ?? {};
200
- const validCategories = Object.entries(categories).filter((entry) => entry[1] !== null).sort(
201
- (a, b) => asFiniteNumber(a[1].order) - asFiniteNumber(b[1].order)
202
- );
203
- const categoryNameById = /* @__PURE__ */ new Map();
204
- let struct = "Directory Structure (Categories):\n";
205
- if (validCategories.length === 0) struct += "(No categories defined)\n";
206
- validCategories.forEach(([id, category]) => {
207
- const name = asTrimmed(category.name) || id;
208
- categoryNameById.set(id, name);
209
- struct += `- ${name} (ID: ${id})
210
- `;
211
- });
212
- const contents = spaceRecord.contents ?? {};
213
- const recentContents = recentLimit > 0 ? Object.values(contents).filter((content) => content !== null).sort(
214
- (a, b) => asFiniteNumber(b.updatedAt) - asFiniteNumber(a.updatedAt)
215
- ).slice(0, recentLimit) : [];
216
- if (recentContents.length > 0) {
217
- struct += `
218
- Recent Contents (Top ${recentLimit}):
219
- `;
220
- recentContents.forEach((content) => {
221
- const categoryId = asTrimmed(content.categoryId);
222
- const categoryName = categoryId ? categoryNameById.get(categoryId) || "Unknown" : "Uncategorized";
223
- struct += `- [${asTrimmed(content.type) || "content"}] ${asTrimmed(content.title)} (Category: ${categoryName}, dbKey: ${asTrimmed(content.contentKey)})
224
- `;
225
- });
226
- }
227
- return struct;
228
- };
229
- var buildSpaceContextLayer = async (args) => {
230
- const spaceId = asTrimmed(args.spaceId);
231
- if (!spaceId) return null;
232
- const recentLimit = args.recentContentLimit ?? DEFAULT_RECENT_CONTENT_LIMIT;
233
- let spaceRecord = null;
234
- let readError = null;
235
- try {
236
- spaceRecord = await args.source.readRecord(spaceRecordKey(spaceId));
237
- } catch (error) {
238
- readError = error instanceof Error ? error.message : String(error);
239
- }
240
- if (!spaceRecord) {
241
- return makeLayer(
242
- "space-context",
243
- [
244
- "--- \u5F53\u524D\u7A7A\u95F4\uFF08Space\uFF09---",
245
- `\u672C\u5BF9\u8BDD\u8BB0\u5F55\u58F0\u660E\u5C5E\u4E8E Space ${spaceId}\uFF0C\u4F46\u5F53\u524D\u65E0\u6CD5\u8BFB\u53D6\u8BE5 Space \u7684\u6570\u636E${readError ? `\uFF08${readError}\uFF09` : "\uFF08\u8BB0\u5F55\u4E0D\u5B58\u5728\u6216\u4E0D\u53EF\u8FBE\uFF09"}\u3002`,
246
- "\u5982\u88AB\u95EE\u53CA\uFF0C\u8BF7\u5982\u5B9E\u8BF4\u660E\u300C\u5BF9\u8BDD\u5C5E\u4E8E\u8BE5 Space \u4F46\u6682\u65F6\u8BFB\u4E0D\u5230\u7A7A\u95F4\u8BE6\u60C5\u300D\uFF0C\u4E0D\u8981\u58F0\u79F0\u5BF9\u8BDD\u4E0D\u5C5E\u4E8E\u4EFB\u4F55\u7A7A\u95F4\u3002"
247
- ].join("\n")
248
- );
249
- }
250
- const name = asTrimmed(spaceRecord.name);
251
- const description = asTrimmed(spaceRecord.description);
252
- const structure = renderSpaceStructure(spaceRecord, recentLimit);
253
- return makeLayer(
254
- "space-context",
255
- [
256
- "--- \u5F53\u524D\u7A7A\u95F4\uFF08Space\uFF09---",
257
- "\u672C\u5BF9\u8BDD\u5C5E\u4E8E\u4EE5\u4E0B Space\uFF1A",
258
- `Space Title: ${name || spaceId}`,
259
- `Space ID: ${spaceId}`,
260
- `Description: ${description || "N/A"}`,
261
- "",
262
- structure.trimEnd()
263
- ].join("\n")
264
- );
265
- };
266
197
  var buildSkillDiscoveryCatalogLayer = (catalog) => {
267
198
  if (catalog.entries.length === 0) return null;
268
199
  const sources = catalog.entries.map((entry) => entry.source).filter((source, index, all) => all.indexOf(source) === index);
@@ -311,37 +242,6 @@ var buildAgentsMdLayer = (content, fileName = "AGENTS.md") => {
311
242
  "session"
312
243
  );
313
244
  };
314
- var buildLinkedSpacesSection = async (args) => {
315
- const ids = (args.linkedSpaceIds ?? []).filter(
316
- (id) => typeof id === "string" && id.trim() !== ""
317
- );
318
- if (ids.length === 0) return null;
319
- const lines = [];
320
- for (const rawId of ids) {
321
- const spaceId = asTrimmed(rawId);
322
- let spaceData = null;
323
- try {
324
- spaceData = await args.source.readRecord(spaceRecordKey(spaceId));
325
- } catch {
326
- spaceData = null;
327
- }
328
- if (spaceData) {
329
- const name = asTrimmed(spaceData.name) || spaceId;
330
- const desc = asTrimmed(spaceData.description);
331
- lines.push(`- ${name} (ID: ${spaceId})${desc ? `: ${desc}` : ""}`);
332
- } else {
333
- lines.push(`- [\u65E0\u6CD5\u8BBF\u95EE] ${spaceId}`);
334
- }
335
- }
336
- if (lines.length === 0) return null;
337
- return [
338
- "--- \u5173\u8054\u7A7A\u95F4 (Linked Spaces) ---",
339
- "\u4EE5\u4E0B\u662F Agent \u53EF\u8BBF\u95EE\u7684\u5176\u4ED6\u5DE5\u4F5C\u7A7A\u95F4\uFF08\u7C97\u7565\u4E0A\u4E0B\u6587\uFF09\uFF1A",
340
- lines.join("\n"),
341
- "",
342
- "\u63D0\u793A\uFF1A\u5982\u9700\u67E5\u8BE2\u8FD9\u4E9B\u7A7A\u95F4\u7684\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u53EF\u4F7F\u7528 read \u5DE5\u5177\u914D\u5408\u5BF9\u5E94\u7684 dbKey\u3002"
343
- ].join("\n");
344
- };
345
245
  var renderTurnContextBlocksWithScope = (layers) => layers.filter((layer) => Boolean(layer?.content?.trim())).map((layer) => ({
346
246
  content: layer.content.trim(),
347
247
  cacheScope: layer.cacheScope
@@ -358,6 +258,9 @@ var buildDialogSummaryLayer = (args) => {
358
258
  return makeLayer("dialog-summary", `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
359
259
  ${historical}`);
360
260
  };
261
+ var hasMemoryTools = (toolNames) => Array.isArray(toolNames) ? toolNames.some(
262
+ (name) => typeof name === "string" && /memory/i.test(name)
263
+ ) : false;
361
264
  var buildMemoryOverlayLayer = (args) => {
362
265
  const promptBlock = asTrimmed(args.promptBlock);
363
266
  if (!promptBlock) return null;
@@ -365,7 +268,7 @@ var buildMemoryOverlayLayer = (args) => {
365
268
  };
366
269
  var buildMemoryUseGuidanceLayer = (args) => {
367
270
  const promptBlock = asTrimmed(args.promptBlock);
368
- if (!promptBlock) return null;
271
+ if (!promptBlock && args.hasMemoryTools !== true) return null;
369
272
  return makeLayer(
370
273
  "memory-use-guidance",
371
274
  MEMORY_USE_GUIDANCE,
@@ -379,14 +282,13 @@ export {
379
282
  mapDiscoveredSkillsToCatalogEntries,
380
283
  resolveSkillCatalog,
381
284
  resolveSkillCatalogSync,
382
- buildSpaceContextLayer,
383
285
  buildSkillDiscoveryCatalogLayer,
384
286
  buildAgentsMdLayerHeader,
385
287
  buildAgentsMdLayer,
386
- buildLinkedSpacesSection,
387
288
  renderTurnContextBlocksWithScope,
388
289
  partitionScopedBlocks,
389
290
  buildDialogSummaryLayer,
291
+ hasMemoryTools,
390
292
  buildMemoryOverlayLayer,
391
293
  buildMemoryUseGuidanceLayer
392
294
  };
@@ -0,0 +1,21 @@
1
+ import {
2
+ cloudflareModels,
3
+ gmiModels,
4
+ openrouterModels,
5
+ platformHostedModels,
6
+ zaiModels
7
+ } from "./chunk-PQ63BDV3.js";
8
+
9
+ // packages/ai/llm/models.ts
10
+ var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
11
+ var ALL_MODELS = [
12
+ ...withProvider("nolo")(platformHostedModels),
13
+ ...withProvider("openrouter")(openrouterModels),
14
+ ...withProvider("cloudflare")(cloudflareModels),
15
+ ...withProvider("gmi")(gmiModels),
16
+ ...withProvider("zai")(zaiModels)
17
+ ];
18
+
19
+ export {
20
+ ALL_MODELS
21
+ };