nolo-cli 0.213.0 → 0.220.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.
- package/README.md +3 -2
- package/{_executeModel-CUJLCFWR.js → _executeModel-BNEMFCAO.js} +125 -96
- package/{accountResolver-4LKIHEKL.js → accountResolver-QETKNC7T.js} +4 -4
- package/{action-DF5UYSJF.js → action-GDZDXPMB.js} +14 -13
- package/{addContentAction-WERAONNY.js → addContentAction-7RO4AMRI.js} +21 -20
- package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-EVYBGTXB.js} +26 -25
- package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-7QTQNFCO.js} +145 -137
- package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-I7SHOSD6.js} +146 -139
- package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-7LOP3HUD.js} +11 -12
- package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-L6O2HVJI.js} +9 -9
- package/{agentListCommands-OBLRBLHS.js → agentListCommands-GUGMORTK.js} +180 -103
- package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-UMDKILU3.js} +75 -66
- package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-STI3DQ6A.js} +8 -8
- package/{agentPullCommand-6EM3URVK.js → agentPullCommand-KHV4EELF.js} +11 -11
- package/agentRecordCommands-YTAMTHOY.js +175 -0
- package/agentRunCommand-DBM6YNO6.js +207 -0
- package/{agentRunControl-TAMHJQSR.js → agentRunControl-MBG4U6SL.js} +40 -19
- package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-TU4LA353.js} +55 -48
- package/{agentSlice-CHR6KOZN.js → agentSlice-DPG7Q7IA.js} +24 -23
- package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-JWP3XPUA.js} +67 -58
- package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-6E4TQCWI.js} +67 -58
- package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-ALU4SADG.js} +67 -58
- package/{appGetCommands-YWDEX6Z4.js → appGetCommands-JEY4L6L4.js} +67 -58
- package/{appListCommands-ZQVMLPAY.js → appListCommands-PCAVHU7M.js} +67 -58
- package/{authCommand-PWX2ZNUP.js → authCommand-CGRIIOOV.js} +37 -33
- package/{authCommands-HV3EAU3V.js → authCommands-55OGQGCR.js} +16 -12
- package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-BAE2LDXF.js} +11 -13
- package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
- package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-WAA45NCS.js} +23 -13
- package/{chunk-VNYYOX3V.js → chunk-262R3XNN.js} +157 -50
- package/chunk-2MCB7CD7.js +98 -0
- package/{chunk-CTPXME7U.js → chunk-2NPD3FTX.js} +30 -7
- package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
- package/{chunk-HRMJUN5J.js → chunk-2X7WFDT6.js} +1 -1
- package/chunk-2YGBI2XB.js +30 -0
- package/{chunk-TY3TIUJK.js → chunk-324FWHUA.js} +85 -3
- package/{chunk-KFLT5KAD.js → chunk-3NNXR7EH.js} +20 -20
- package/{chunk-ZRSNONOB.js → chunk-3P54D2E4.js} +8 -3
- package/{chunk-7OCO4TDT.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-TX5EYMGT.js → chunk-44J7Z5AQ.js} +34 -258
- package/chunk-4D4QD7FT.js +201 -0
- package/chunk-4I2MXV5Q.js +275 -0
- package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
- package/{chunk-COFEN36Z.js → chunk-4ZGPHFLE.js} +3 -3
- package/{chunk-ZXOUUDCG.js → chunk-53MFERZ3.js} +3869 -362
- package/chunk-547ENH5T.js +226 -0
- package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
- package/{chunk-6DWMYIUY.js → chunk-5WKDR7HS.js} +14 -9
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-T43B7LB2.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
- package/{chunk-IXNGOHV5.js → chunk-6QHKRARD.js} +12 -153
- package/{chunk-4T2WNOY7.js → chunk-6RDBLXVQ.js} +28 -17
- package/{chunk-EYLGAEB4.js → chunk-6XRPBZRS.js} +134 -0
- package/{chunk-KIM6CLW5.js → chunk-7JGMNKKG.js} +57 -26
- package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
- package/chunk-AGYPUBFW.js +686 -0
- package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
- package/{chunk-NOKUNJON.js → chunk-ALAES342.js} +75 -94
- package/{chunk-4I7ERB7F.js → chunk-ATEKLSLR.js} +2 -2
- package/{chunk-CRHOO2ZR.js → chunk-AUAJTAFM.js} +8 -8
- package/{chunk-LLRPJECG.js → chunk-AWIL6EHN.js} +15 -157
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-4VJAC32I.js → chunk-BNMPUQW6.js} +3 -2
- package/{chunk-RLBNLZVC.js → chunk-BP5ZJ6B4.js} +1 -1
- package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
- package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
- package/{chunk-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
- package/{chunk-ZL5RAEEB.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-SM3NSZJV.js → chunk-CD3RU7XL.js} +36 -2
- package/chunk-CMMI3DAT.js +1621 -0
- package/{chunk-J2NHJ7WX.js → chunk-CYWNWA77.js} +6 -6
- package/{chunk-MOIJOHA5.js → chunk-D6YNCNM6.js} +35 -21
- package/{chunk-H2TJUNCH.js → chunk-DBUR22G5.js} +16 -16
- package/chunk-DEA37IUY.js +271 -0
- package/{chunk-O2TZF4AI.js → chunk-DGYCDA6W.js} +4 -4
- package/{chunk-YWSEPJ7C.js → chunk-DUUDXSLX.js} +21 -7
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-H5HF7TJA.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-Y6ORVLSS.js → chunk-EVGU5P4U.js} +1 -1
- package/chunk-EWQ3HGNZ.js +90 -0
- package/{chunk-6VLJ6YA7.js → chunk-F6Z6ZCUV.js} +9 -9
- package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
- package/chunk-FJSNBZXR.js +142 -0
- package/{chunk-WRYQ35LQ.js → chunk-G7IUT2V3.js} +860 -57
- package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
- package/{chunk-H7PPIYWP.js → chunk-GPOV42YM.js} +19 -19
- package/{chunk-W4S457LU.js → chunk-GUXZK7SE.js} +42 -6
- package/{chunk-QHPRUL4O.js → chunk-GV6PRJBU.js} +4 -4
- package/{chunk-YUA6OAH5.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-G7MLNNEX.js → chunk-HHFGE2WF.js} +7 -7
- package/{chunk-OQPKUBPB.js → chunk-HSSBDZLD.js} +19 -7
- package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
- package/{chunk-TAKB25RM.js → chunk-HYLRQDEE.js} +6 -6
- package/{chunk-LOEO7LRC.js → chunk-ILHQ2AXT.js} +10 -8
- package/{chunk-BBJ22CLB.js → chunk-JJMR2EA3.js} +64 -34
- package/{chunk-G2BQWAVT.js → chunk-JLAMNSBC.js} +4 -4
- package/{chunk-RSHTSUEG.js → chunk-JUSHVFNF.js} +2133 -622
- package/{chunk-YJAFKXMU.js → chunk-KHVFJSVE.js} +54 -49
- package/{chunk-X7SDOJUM.js → chunk-KRI6N5QZ.js} +16 -16
- package/{chunk-7BT37FK3.js → chunk-L32W3PRP.js} +675 -128
- package/chunk-LKA64WH4.js +227 -0
- package/{chunk-HUBHAQK2.js → chunk-LMRRCEDE.js} +31 -31
- package/chunk-M4SFKP5L.js +675 -0
- package/{chunk-MDB67IWP.js → chunk-MSMHU36U.js} +12 -12
- package/{chunk-7Y4YTDQF.js → chunk-MXKWTPUM.js} +288 -166
- package/{chunk-WYDI6TGM.js → chunk-MXRUXMZ3.js} +94 -135
- package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
- package/{chunk-QG4AOSON.js → chunk-NHY322ZU.js} +154 -32
- package/{chunk-UHJGXRJ4.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-GOO6G4PY.js → chunk-OBSEKCVK.js} +123 -70
- package/{chunk-WMTBPBMP.js → chunk-OG6MQOQG.js} +130 -60
- package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
- package/{chunk-ALQ3657A.js → chunk-OOJNQK6V.js} +21 -1
- package/{chunk-NSAPDIN2.js → chunk-OWKNSIXL.js} +679 -74
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
- package/{chunk-F6UUQOG6.js → chunk-Q3IVPFVO.js} +4 -4
- package/{chunk-VO4WSAVP.js → chunk-QBZCGP34.js} +3 -3
- package/chunk-QCB42576.js +13 -0
- package/chunk-QHEN7NZ7.js +46 -0
- package/{chunk-3UKL3HPD.js → chunk-QJTZ76CP.js} +32 -84
- package/{chunk-V5Y3R6BT.js → chunk-QRGDJA4B.js} +215 -212
- package/{chunk-4KB6WQUL.js → chunk-QYB23WUH.js} +1 -1
- package/{chunk-ZNWI6OVT.js → chunk-R44TU3MZ.js} +85 -11
- package/{chunk-PYRUW7XN.js → chunk-R6Z5S5GA.js} +139 -57
- package/{chunk-VL5KOY2C.js → chunk-R7XWZDOH.js} +125 -29
- package/{chunk-R5O4QAWG.js → chunk-RBPUNSG5.js} +11 -77
- package/{chunk-NJLL224W.js → chunk-RG2DGNL6.js} +3 -3
- package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
- package/{chunk-TCZHTTUU.js → chunk-RTHFJZ6M.js} +11 -11
- package/{chunk-RZOV7OMV.js → chunk-RYOLWYBK.js} +146 -200
- package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
- package/{chunk-XHQC4PXX.js → chunk-S5NA3C52.js} +488 -226
- package/{secretCommands-LXDWOLZ6.js → chunk-S6FDXXZV.js} +190 -15
- package/chunk-S6K5F3KP.js +99 -0
- package/{chunk-INN4LTAJ.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
- package/{chunk-UYD5HQ6T.js → chunk-SZVMASJ2.js} +3300 -1396
- package/{chunk-FUGMREBO.js → chunk-TGNIKIHR.js} +3 -3
- package/{chunk-HPFCI4SK.js → chunk-TI2EPRHE.js} +4 -4
- package/chunk-TLE77UJ5.js +230 -0
- package/chunk-TSPMLCWI.js +364 -0
- package/{chunk-YGILMZ7N.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
- package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
- package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
- package/{chunk-H4UOTUOX.js → chunk-VMJVAJ6W.js} +152 -19
- package/{chunk-KC4XDTT3.js → chunk-VS276URX.js} +4 -4
- package/{chunk-YTF4WH7J.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-RPQXPZZF.js → chunk-XSW4EXQV.js} +976 -17
- package/{chunk-7QTZCMKL.js → chunk-XTETTSKN.js} +3036 -2468
- package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
- package/chunk-YKY4OVOX.js +1141 -0
- package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
- package/chunk-YZMNK53S.js +68 -0
- package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
- package/{chunk-INUFILG6.js → chunk-ZH3KXFHS.js} +11 -3
- package/chunk-ZOHO6MOF.js +376 -0
- package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-BTRHMPW2.js} +18 -19
- package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
- package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
- package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-CNMP3RDX.js} +3 -3
- package/{cliExecutor-BWBF2MTI.js → cliExecutor-K6FDZTQ2.js} +4 -2
- package/cliLocalAgentRecordReader-M3F76NIP.js +90 -0
- package/{commandRegistry-W63CYRZJ.js → commandRegistry-T3UBK6OA.js} +105 -97
- package/{contentThunks-U7PL5MQD.js → contentThunks-YEPZAHXU.js} +53 -48
- package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-YB5H5BBK.js} +5 -4
- package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-TBIIO5WT.js} +51 -48
- package/{createDialogAction-SVH6B3SB.js → createDialogAction-KBKMYFTQ.js} +52 -53
- package/{createPageAction-F4DIWZ2Z.js → createPageAction-3FGAPLJO.js} +56 -53
- package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
- package/{db-HUCI5R4G.js → db-M7FU2GNK.js} +10 -7
- package/{dbSlice-BVH2YZPQ.js → dbSlice-XRUZOGSU.js} +20 -19
- package/{deleteFile-5YOEKV4U.js → deleteFile-6URDHYRB.js} +12 -12
- package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
- package/{dialogCommands-KHIEPY3M.js → dialogCommands-NRLCOPJR.js} +71 -64
- package/dialogNotifyCommand-SHGPCU22.js +36 -0
- package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-DP2WTMNO.js} +48 -45
- package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-W2WCSGKF.js} +11 -10
- package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-YJRDA3RX.js} +66 -59
- package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-A5QIHZNF.js} +69 -62
- package/{docReadCommands-LK37XH6L.js → docReadCommands-CF2LTMYH.js} +66 -59
- package/{docStore-V2KECILA.js → docStore-NDY3K3PK.js} +25 -24
- package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-QRKV4ZXE.js} +69 -62
- package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
- package/{getPricing-2MNMXEVG.js → getPricing-LF5C4XSI.js} +7 -7
- package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-IUGVVJ43.js} +206 -314
- package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-X2ZFRXDR.js} +132 -124
- package/index.js +65 -27
- package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
- package/legacyMigration-TF4SYJCZ.js +19 -0
- package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
- package/{localDialogRead-7NNDVVF7.js → localDialogRead-CCOCVGAP.js} +3 -3
- package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
- package/localRecall-BDYKXB46.js +17 -0
- package/{localRuntimeAdapter-KY6WXNBR.js → localRuntimeAdapter-KAG3T4LF.js} +138 -130
- package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
- package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
- package/{machineCommands-Q6HA3IXF.js → machineCommands-6NIQJE2A.js} +143 -135
- package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
- package/machineWsRunDispatch-RA5NOSGG.js +190 -0
- package/{memberThunks-7EDJADWU.js → memberThunks-7Y3OYSJQ.js} +30 -29
- package/{memoryCommands-ASCE5STX.js → memoryCommands-BC6REPQB.js} +7 -7
- package/models-H5NNZRLH.js +9 -0
- package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +6 -6
- package/overlay-BBQZXGYI.js +13 -0
- package/package.json +2 -2
- package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
- package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
- package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
- package/{projectArchive-DRTDIMEV.js → projectArchive-OIUP63MV.js} +59 -56
- package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-WHAMP2D5.js} +20 -13
- package/{providerRegistry-S6UL6UNA.js → providerRegistry-ZI2KORJ7.js} +11 -11
- package/{read-4V2RMG7N.js → read-TYMBGEXO.js} +13 -13
- package/{readDocTool-BH6ATGQO.js → readDocTool-SKQVHBLO.js} +2 -2
- package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-ZGC4KSXG.js} +7760 -6499
- package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-F5QE2O2B.js} +29 -28
- package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-NKUW2DSJ.js} +94 -88
- package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-RRKPBGVO.js} +19 -19
- package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
- package/secretCommands-KZWBZIYS.js +24 -0
- package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-72L27ERM.js} +25 -24
- package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +29 -28
- package/{settingThunks-RAMHMTGM.js → settingThunks-ZRGWVGZD.js} +99 -90
- package/{skillDiscovery-XKHROSH2.js → skillDiscovery-I37M5KJC.js} +4 -4
- package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
- package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
- package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
- package/{spaceCommands-KVJZVKVO.js → spaceCommands-MEH3HJBC.js} +66 -57
- package/store-Z53ICFL3.js +48 -0
- package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-FJTUUXHJ.js} +886 -668
- package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-IIJBPND3.js} +26 -25
- package/{tableCommands-MP6VFSVT.js → tableCommands-FTAOCBTX.js} +13 -13
- package/tombstones-FQQMEDOW.js +32 -0
- package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
- package/{tools-EWKCPKMS.js → tools-ZXHIAOSP.js} +82 -81
- package/tuiRestart-2IL37YIB.js +41 -0
- package/tuiSummaryLlmCaller-W2QN4VAC.js +44 -0
- package/{updateCommands-ZQYU6SCI.js → updateCommands-CPATDG6J.js} +11 -7
- package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-JMKLKL4P.js} +54 -51
- package/{usageCommand-F4IPVMIZ.js → usageCommand-2BF74MKF.js} +11 -10
- package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-UHB55BQM.js} +12 -11
- package/userDataMerge-HT2ZVHBJ.js +13 -0
- package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-ZFD6J5HF.js} +3 -3
- package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-HFJIN5IZ.js} +4 -4
- package/agentRecordCommands-ZQ7SVYGG.js +0 -167
- package/agentRunCommand-WS7IGO2W.js +0 -196
- package/chunk-3CGG2PAL.js +0 -594
- package/chunk-5MQRBSMW.js +0 -862
- package/chunk-5XBUWM6I.js +0 -89
- package/chunk-CJEIOP3E.js +0 -0
- package/chunk-EHGEOAHI.js +0 -636
- package/chunk-FW6YHHLI.js +0 -842
- package/chunk-GPVRUGGY.js +0 -115
- package/chunk-HSVBJRF4.js +0 -339
- package/chunk-LEC5ALIN.js +0 -91
- package/chunk-WACI5I6V.js +0 -147
- package/chunk-WJZOQR2J.js +0 -151
- package/chunk-ZCWRMUWT.js +0 -89
- package/dist-M676ULYG.js +0 -7314
- package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
- package/models-PJBE6JDV.js +0 -9
- package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
- package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-2QHFH3DR.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// packages/core/dialogKeyIdentity.ts
|
|
2
|
+
var DIALOG_KEY_PREFIX = "dialog-";
|
|
3
|
+
var DIALOG_ID_ULID_SOURCE = "[0-9A-HJKMNP-TV-Z]{26}";
|
|
4
|
+
var DIALOG_ID_UUID_SOURCE = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
5
|
+
var ULID_ID_RE = new RegExp(`^${DIALOG_ID_ULID_SOURCE}$`, "i");
|
|
6
|
+
var UUID_ID_RE = new RegExp(`^${DIALOG_ID_UUID_SOURCE}$`, "i");
|
|
7
|
+
var KNOWN_SUFFIX_LENGTHS = [
|
|
8
|
+
{ re: UUID_ID_RE, length: 36 },
|
|
9
|
+
{ re: ULID_ID_RE, length: 26 }
|
|
10
|
+
];
|
|
11
|
+
var DIALOG_PATH_RE = new RegExp(
|
|
12
|
+
`^/(?:space/([^/]+)/)?${DIALOG_KEY_PREFIX}(.+)-(${DIALOG_ID_ULID_SOURCE}|${DIALOG_ID_UUID_SOURCE})/?$`,
|
|
13
|
+
"i"
|
|
14
|
+
);
|
|
15
|
+
function isSupportedDialogId(value) {
|
|
16
|
+
if (typeof value !== "string") return false;
|
|
17
|
+
const id = value.trim();
|
|
18
|
+
return ULID_ID_RE.test(id) || UUID_ID_RE.test(id);
|
|
19
|
+
}
|
|
20
|
+
function splitKnownDialogIdSuffix(rest) {
|
|
21
|
+
for (const { re, length } of KNOWN_SUFFIX_LENGTHS) {
|
|
22
|
+
if (rest.length < length + 2) continue;
|
|
23
|
+
if (rest[rest.length - length - 1] !== "-") continue;
|
|
24
|
+
const dialogId = rest.slice(rest.length - length);
|
|
25
|
+
if (!re.test(dialogId)) continue;
|
|
26
|
+
return { userId: rest.slice(0, rest.length - length - 1), dialogId };
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
function splitDialogKeyIdentity(key) {
|
|
31
|
+
if (typeof key !== "string") return null;
|
|
32
|
+
const trimmed = key.trim();
|
|
33
|
+
if (!trimmed.startsWith(DIALOG_KEY_PREFIX)) return null;
|
|
34
|
+
const rest = trimmed.slice(DIALOG_KEY_PREFIX.length);
|
|
35
|
+
if (!rest || rest.startsWith("-")) return null;
|
|
36
|
+
if (ULID_ID_RE.test(rest) || UUID_ID_RE.test(rest)) return null;
|
|
37
|
+
const known = splitKnownDialogIdSuffix(rest);
|
|
38
|
+
if (known) return known;
|
|
39
|
+
const lastDash = rest.lastIndexOf("-");
|
|
40
|
+
if (lastDash <= 0 || lastDash === rest.length - 1) return null;
|
|
41
|
+
return { userId: rest.slice(0, lastDash), dialogId: rest.slice(lastDash + 1) };
|
|
42
|
+
}
|
|
43
|
+
function dialogIdFromKey(key) {
|
|
44
|
+
if (typeof key !== "string") return "";
|
|
45
|
+
const identity = splitDialogKeyIdentity(key);
|
|
46
|
+
if (identity) return identity.dialogId;
|
|
47
|
+
const index = key.lastIndexOf("-");
|
|
48
|
+
return index >= 0 ? key.slice(index + 1) : key;
|
|
49
|
+
}
|
|
50
|
+
function parseDialogPathIdentity(pathname) {
|
|
51
|
+
if (typeof pathname !== "string") return null;
|
|
52
|
+
const match = DIALOG_PATH_RE.exec(pathname);
|
|
53
|
+
if (!match) return null;
|
|
54
|
+
const [, spaceId, ownerId, dialogId] = match;
|
|
55
|
+
if (!ownerId.trim() || !dialogId) return null;
|
|
56
|
+
return {
|
|
57
|
+
spaceId: spaceId ? decodeURIComponent(spaceId) : null,
|
|
58
|
+
ownerId,
|
|
59
|
+
dialogId
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
isSupportedDialogId,
|
|
65
|
+
splitDialogKeyIdentity,
|
|
66
|
+
dialogIdFromKey,
|
|
67
|
+
parseDialogPathIdentity
|
|
68
|
+
};
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
require_interopRequireDefault,
|
|
3
3
|
require_requiredArgs,
|
|
4
4
|
require_toDate
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YNIYE47Z.js";
|
|
6
6
|
import {
|
|
7
7
|
__commonJS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U67V476Y.js";
|
|
9
9
|
|
|
10
10
|
// node_modules/date-fns/constants/index.js
|
|
11
11
|
var require_constants = __commonJS({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
t
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-262R3XNN.js";
|
|
4
4
|
|
|
5
5
|
// packages/cli/windowsSelfUpdate.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -304,11 +304,12 @@ const switchWindowsShims = (shimDir, entrypoint) => {
|
|
|
304
304
|
throw new Error("Refusing to downgrade " + payload.currentVersion + " to " + targetVersion);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
if (compare(targetVersion, payload.currentVersion)
|
|
307
|
+
if (compare(targetVersion, payload.currentVersion) >= 0) {
|
|
308
308
|
log("phase: install-target");
|
|
309
309
|
const versionPrefix = join(payload.managedRoot, targetVersion + "-" + payload.updateId);
|
|
310
310
|
uncommittedVersionPrefix = versionPrefix;
|
|
311
|
-
mkdirSync(
|
|
311
|
+
mkdirSync(payload.managedRoot, { recursive: true });
|
|
312
|
+
mkdirSync(versionPrefix);
|
|
312
313
|
// Install the exact version resolved from the dist-tag above — never the
|
|
313
314
|
// floating channel tag — so the staged package is the verified one.
|
|
314
315
|
const install = runNpm(["install", "-g", "--prefix", versionPrefix, "nolo-cli@" + targetVersion, "--force", "--progress"]);
|
|
@@ -320,6 +321,13 @@ const switchWindowsShims = (shimDir, entrypoint) => {
|
|
|
320
321
|
}
|
|
321
322
|
const stagedEntrypoint = join(versionPrefix, "node_modules", "nolo-cli", "index.js");
|
|
322
323
|
if (!existsSync(stagedEntrypoint)) throw new Error("Staged nolo entrypoint is missing");
|
|
324
|
+
const preflight = spawnSync(payload.nodePath, [stagedEntrypoint, "-v"], {
|
|
325
|
+
encoding: "utf8", windowsHide: true, env: process.env,
|
|
326
|
+
cwd: payload.updateDir, timeout: 30 * 1000,
|
|
327
|
+
});
|
|
328
|
+
if (preflight.error || preflight.status !== 0 || String(preflight.stdout || "").trim() !== "nolo-cli " + targetVersion) {
|
|
329
|
+
throw new Error("The staged CLI failed its pre-switch version check");
|
|
330
|
+
}
|
|
323
331
|
assertLockOwnership();
|
|
324
332
|
log("phase: switch-shims");
|
|
325
333
|
const switchedShims = switchWindowsShims(prefix, stagedEntrypoint);
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_appendEntityBatch,
|
|
3
|
+
_appendEvidenceBatch,
|
|
4
|
+
_appendRelationBatch,
|
|
5
|
+
_appendRetiredStateBatch,
|
|
6
|
+
_appendStateBatch,
|
|
7
|
+
getMemoryEntityVNext,
|
|
8
|
+
getMemoryEvidenceVNext,
|
|
9
|
+
getMemoryEvidenceVNextStrict,
|
|
10
|
+
getMemoryStateVNext,
|
|
11
|
+
listMemoryStatesForEntityVNext,
|
|
12
|
+
loadMemoryVNextCatalog
|
|
13
|
+
} from "./chunk-324FWHUA.js";
|
|
14
|
+
import {
|
|
15
|
+
recallMemoryVNextLocal
|
|
16
|
+
} from "./chunk-4D4QD7FT.js";
|
|
17
|
+
import {
|
|
18
|
+
DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
19
|
+
buildMemoryOverlay
|
|
20
|
+
} from "./chunk-4I2MXV5Q.js";
|
|
21
|
+
import {
|
|
22
|
+
createMemoryKey
|
|
23
|
+
} from "./chunk-SYTHYBMI.js";
|
|
24
|
+
|
|
25
|
+
// packages/ai/memory/storeShared.ts
|
|
26
|
+
var retrievalCountOf = (item) => item.activationCount ?? 0;
|
|
27
|
+
var touchMemoryItemsInDb = async (db, items, now = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
28
|
+
if (items.length === 0) return;
|
|
29
|
+
const batch = db.batch();
|
|
30
|
+
for (const item of items) {
|
|
31
|
+
batch.put(createMemoryKey(item.ownerType, item.ownerId, item.id), {
|
|
32
|
+
...item,
|
|
33
|
+
// retrieval bookkeeping on legacy storage names — see doc comment above
|
|
34
|
+
lastActivatedAt: now,
|
|
35
|
+
activationCount: retrievalCountOf(item) + 1
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
await batch.write();
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// packages/ai/memory/vnext/applyMutation.ts
|
|
42
|
+
async function validateMutation(db, ownerId, mutation) {
|
|
43
|
+
const pending = {
|
|
44
|
+
evidenceIds: /* @__PURE__ */ new Set(),
|
|
45
|
+
entityIds: /* @__PURE__ */ new Set(),
|
|
46
|
+
stateIds: /* @__PURE__ */ new Set(),
|
|
47
|
+
relationIds: /* @__PURE__ */ new Set()
|
|
48
|
+
};
|
|
49
|
+
for (const ev of mutation.evidence ?? []) {
|
|
50
|
+
if (!ev.id || typeof ev.id !== "string") {
|
|
51
|
+
throw new Error("evidence id must be a non-empty string");
|
|
52
|
+
}
|
|
53
|
+
if (pending.evidenceIds.has(ev.id)) {
|
|
54
|
+
throw new Error(`duplicate evidence id in mutation: ${ev.id}`);
|
|
55
|
+
}
|
|
56
|
+
pending.evidenceIds.add(ev.id);
|
|
57
|
+
}
|
|
58
|
+
for (const ent of mutation.entities ?? []) {
|
|
59
|
+
if (!ent.id || typeof ent.id !== "string") {
|
|
60
|
+
throw new Error("entity id must be a non-empty string");
|
|
61
|
+
}
|
|
62
|
+
if (pending.entityIds.has(ent.id)) {
|
|
63
|
+
throw new Error(`duplicate entity id in mutation: ${ent.id}`);
|
|
64
|
+
}
|
|
65
|
+
pending.entityIds.add(ent.id);
|
|
66
|
+
}
|
|
67
|
+
for (const st of mutation.states ?? []) {
|
|
68
|
+
if (!st.id || typeof st.id !== "string") {
|
|
69
|
+
throw new Error("state id must be a non-empty string");
|
|
70
|
+
}
|
|
71
|
+
if (pending.stateIds.has(st.id)) {
|
|
72
|
+
throw new Error(`duplicate state id in mutation: ${st.id}`);
|
|
73
|
+
}
|
|
74
|
+
pending.stateIds.add(st.id);
|
|
75
|
+
}
|
|
76
|
+
for (const rel of mutation.relations ?? []) {
|
|
77
|
+
if (!rel.id || typeof rel.id !== "string") {
|
|
78
|
+
throw new Error("relation id must be a non-empty string");
|
|
79
|
+
}
|
|
80
|
+
if (pending.relationIds.has(rel.id)) {
|
|
81
|
+
throw new Error(`duplicate relation id in mutation: ${rel.id}`);
|
|
82
|
+
}
|
|
83
|
+
pending.relationIds.add(rel.id);
|
|
84
|
+
}
|
|
85
|
+
const supersededIds = /* @__PURE__ */ new Set();
|
|
86
|
+
for (const sid of mutation.supersededStateIds ?? []) {
|
|
87
|
+
if (supersededIds.has(sid)) {
|
|
88
|
+
throw new Error(`duplicate supersededStateId in mutation: ${sid}`);
|
|
89
|
+
}
|
|
90
|
+
supersededIds.add(sid);
|
|
91
|
+
}
|
|
92
|
+
for (const ev of mutation.evidence ?? []) {
|
|
93
|
+
if (ev.ownerId !== ownerId) {
|
|
94
|
+
throw new Error(
|
|
95
|
+
`evidence ${ev.id} has ownerId ${ev.ownerId}, expected ${ownerId}`
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
for (const ent of mutation.entities ?? []) {
|
|
100
|
+
if (ent.ownerId !== ownerId) {
|
|
101
|
+
throw new Error(
|
|
102
|
+
`entity ${ent.id} has ownerId ${ent.ownerId}, expected ${ownerId}`
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
for (const st of mutation.states ?? []) {
|
|
107
|
+
if (st.ownerId !== ownerId) {
|
|
108
|
+
throw new Error(
|
|
109
|
+
`state ${st.id} has ownerId ${st.ownerId}, expected ${ownerId}`
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
for (const rel of mutation.relations ?? []) {
|
|
114
|
+
if (rel.ownerId !== ownerId) {
|
|
115
|
+
throw new Error(
|
|
116
|
+
`relation ${rel.id} has ownerId ${rel.ownerId}, expected ${ownerId}`
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
for (const st of mutation.states ?? []) {
|
|
121
|
+
if (supersededIds.has(st.id)) {
|
|
122
|
+
throw new Error(
|
|
123
|
+
`state ${st.id} appears in both states and supersededStateIds; a record cannot be created and retired in the same mutation`
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const facetSlots = /* @__PURE__ */ new Set();
|
|
128
|
+
for (const st of mutation.states ?? []) {
|
|
129
|
+
const slot = `${st.entityId} ${st.facet}`;
|
|
130
|
+
if (facetSlots.has(slot)) {
|
|
131
|
+
throw new Error(
|
|
132
|
+
`mutation writes parallel current states for entity ${st.entityId} facet ${st.facet}`
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
facetSlots.add(slot);
|
|
136
|
+
}
|
|
137
|
+
for (const ev of mutation.evidence ?? []) {
|
|
138
|
+
const existing = await getMemoryEvidenceVNext(db, ownerId, ev.id);
|
|
139
|
+
if (existing) {
|
|
140
|
+
throw new Error(
|
|
141
|
+
`evidence ${ev.id} already exists (owner ${ownerId}); use a unique id`
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
for (const ent of mutation.entities ?? []) {
|
|
146
|
+
const existing = await getMemoryEntityVNext(db, ownerId, ent.id);
|
|
147
|
+
if (existing) {
|
|
148
|
+
throw new Error(
|
|
149
|
+
`entity ${ent.id} already exists (owner ${ownerId}); use a unique id`
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
for (const st of mutation.states ?? []) {
|
|
154
|
+
if (!pending.entityIds.has(st.entityId)) {
|
|
155
|
+
const entity = await getMemoryEntityVNext(db, ownerId, st.entityId);
|
|
156
|
+
if (!entity) {
|
|
157
|
+
throw new Error(
|
|
158
|
+
`memory state ${st.id} references missing entity ${st.entityId} (owner ${ownerId})`
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
for (const evidenceId of st.evidenceIds) {
|
|
163
|
+
if (!pending.evidenceIds.has(evidenceId)) {
|
|
164
|
+
const ev = await getMemoryEvidenceVNext(db, ownerId, evidenceId);
|
|
165
|
+
if (!ev) {
|
|
166
|
+
throw new Error(
|
|
167
|
+
`memory state ${st.id} references missing evidence ${evidenceId} (owner ${ownerId})`
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const existing = await getMemoryStateVNext(db, ownerId, st.id);
|
|
173
|
+
if (existing) {
|
|
174
|
+
if (existing.retiredAt) {
|
|
175
|
+
throw new Error(
|
|
176
|
+
`cannot update retired memory state ${st.id} (owner ${ownerId})`
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
if (existing.entityId !== st.entityId || existing.facet !== st.facet) {
|
|
180
|
+
throw new Error(
|
|
181
|
+
`state ${st.id} already exists with different entity/facet (${existing.entityId}/${existing.facet} vs ${st.entityId}/${st.facet}); use supersede instead`
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (!existing) {
|
|
186
|
+
const existingStates = await listMemoryStatesForEntityVNext(db, ownerId, st.entityId);
|
|
187
|
+
for (const es of existingStates) {
|
|
188
|
+
if (es.facet === st.facet && !es.retiredAt) {
|
|
189
|
+
if (!supersededIds.has(es.id)) {
|
|
190
|
+
throw new Error(
|
|
191
|
+
`entity ${st.entityId} facet ${st.facet} already has current state ${es.id}; supersede it or use a different facet`
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
for (const sid of mutation.supersededStateIds ?? []) {
|
|
199
|
+
const existing = await getMemoryStateVNext(db, ownerId, sid);
|
|
200
|
+
if (!existing) {
|
|
201
|
+
throw new Error(
|
|
202
|
+
`cannot supersede missing memory state: ${sid} (owner ${ownerId})`
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
if (existing.retiredAt) {
|
|
206
|
+
throw new Error(
|
|
207
|
+
`cannot supersede already retired memory state: ${sid} (owner ${ownerId})`
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
const replacement = (mutation.states ?? []).find(
|
|
211
|
+
(st) => st.entityId === existing.entityId && st.facet === existing.facet
|
|
212
|
+
);
|
|
213
|
+
if (!replacement) {
|
|
214
|
+
throw new Error(
|
|
215
|
+
`superseded state ${sid} (entity ${existing.entityId} facet ${existing.facet}) has no replacement in this mutation`
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
for (const rel of mutation.relations ?? []) {
|
|
220
|
+
for (const [side, ref] of [
|
|
221
|
+
["from", rel.from],
|
|
222
|
+
["to", rel.to]
|
|
223
|
+
]) {
|
|
224
|
+
if (pending.entityIds.has(ref) || pending.stateIds.has(ref) || pending.evidenceIds.has(ref)) {
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
const resolved = await getMemoryEntityVNext(db, ownerId, ref) ?? await getMemoryStateVNext(db, ownerId, ref) ?? await getMemoryEvidenceVNext(db, ownerId, ref);
|
|
228
|
+
if (!resolved) {
|
|
229
|
+
throw new Error(
|
|
230
|
+
`memory relation ${rel.id} references missing ${side} ${ref} (owner ${ownerId})`
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
var applyMutationWithoutCoordination = async (db, ownerId, mutation) => {
|
|
237
|
+
await validateMutation(db, ownerId, mutation);
|
|
238
|
+
const completion = mutation.nativeCaptureCompletion;
|
|
239
|
+
if (completion) {
|
|
240
|
+
const prior = await getMemoryEvidenceVNextStrict(db, ownerId, completion.id);
|
|
241
|
+
const withoutOutcome = (ev) => ({
|
|
242
|
+
...ev,
|
|
243
|
+
nativeCapture: ev.nativeCapture && { ...ev.nativeCapture, outcome: void 0 }
|
|
244
|
+
});
|
|
245
|
+
if (!prior?.nativeCapture || prior.nativeCapture.outcome || completion.ownerId !== ownerId || !["applied", "no_op"].includes(completion.nativeCapture?.outcome ?? "") || completion.nativeCapture?.outcome === "applied" && (["no_op", "ambiguous"].includes(mutation.action) || !mutation.states?.length || mutation.states.some((st) => !st.evidenceIds.includes(completion.id))) || completion.nativeCapture?.outcome === "no_op" && (mutation.action !== "no_op" || !!(mutation.entities?.length || mutation.states?.length || mutation.relations?.length || mutation.evidence?.length || mutation.supersededStateIds?.length)) || JSON.stringify(withoutOutcome(prior)) !== JSON.stringify(withoutOutcome(completion)) || mutation.evidence?.some((ev) => ev.id === completion.id)) {
|
|
246
|
+
throw new Error("invalid native capture completion");
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
const batch = db.batch();
|
|
250
|
+
if (completion) _appendEvidenceBatch(batch, completion);
|
|
251
|
+
for (const ev of mutation.evidence ?? []) {
|
|
252
|
+
_appendEvidenceBatch(batch, ev);
|
|
253
|
+
}
|
|
254
|
+
for (const ent of mutation.entities ?? []) {
|
|
255
|
+
_appendEntityBatch(batch, ent);
|
|
256
|
+
}
|
|
257
|
+
for (const st of mutation.states ?? []) {
|
|
258
|
+
_appendStateBatch(batch, st);
|
|
259
|
+
}
|
|
260
|
+
for (const sid of mutation.supersededStateIds ?? []) {
|
|
261
|
+
const existing = await getMemoryStateVNext(db, ownerId, sid);
|
|
262
|
+
if (!existing) {
|
|
263
|
+
throw new Error(
|
|
264
|
+
`cannot supersede missing memory state: ${sid} (owner ${ownerId})`
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
const replacement = (mutation.states ?? []).find(
|
|
268
|
+
(st) => st.entityId === existing.entityId && st.facet === existing.facet
|
|
269
|
+
);
|
|
270
|
+
const retired = {
|
|
271
|
+
...existing,
|
|
272
|
+
retiredAt: replacement?.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
273
|
+
};
|
|
274
|
+
_appendRetiredStateBatch(batch, retired);
|
|
275
|
+
}
|
|
276
|
+
for (const rel of mutation.relations ?? []) {
|
|
277
|
+
_appendRelationBatch(batch, rel);
|
|
278
|
+
}
|
|
279
|
+
await batch.write();
|
|
280
|
+
};
|
|
281
|
+
var pendingByDb = /* @__PURE__ */ new WeakMap();
|
|
282
|
+
var applyMemoryInterpreterMutation = async (db, ownerId, mutation) => {
|
|
283
|
+
let owners = pendingByDb.get(db);
|
|
284
|
+
if (!owners) {
|
|
285
|
+
owners = /* @__PURE__ */ new Map();
|
|
286
|
+
pendingByDb.set(db, owners);
|
|
287
|
+
}
|
|
288
|
+
const previous = owners.get(ownerId) ?? Promise.resolve();
|
|
289
|
+
const operation = previous.then(async () => {
|
|
290
|
+
const resolved = typeof mutation === "function" ? await mutation() : mutation;
|
|
291
|
+
await applyMutationWithoutCoordination(db, ownerId, resolved);
|
|
292
|
+
});
|
|
293
|
+
const settled = operation.then(() => {
|
|
294
|
+
}, () => {
|
|
295
|
+
});
|
|
296
|
+
owners.set(ownerId, settled);
|
|
297
|
+
try {
|
|
298
|
+
await operation;
|
|
299
|
+
} finally {
|
|
300
|
+
if (owners.get(ownerId) === settled) owners.delete(ownerId);
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
// packages/ai/memory/remember.ts
|
|
305
|
+
var RESIDENT_MAX_CONTENT_CHARS = 240;
|
|
306
|
+
|
|
307
|
+
// packages/ai/memory/vnext/pureVNextRuntime.ts
|
|
308
|
+
function deriveStateResident(state, ownerType) {
|
|
309
|
+
if (ownerType !== "user") return false;
|
|
310
|
+
if (state.text.trim().length > RESIDENT_MAX_CONTENT_CHARS) return false;
|
|
311
|
+
return state.facet === "preference" || state.facet === "style";
|
|
312
|
+
}
|
|
313
|
+
var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
|
|
314
|
+
id: `vnext-state-${state.id}`,
|
|
315
|
+
ownerType,
|
|
316
|
+
ownerId,
|
|
317
|
+
visibility: "private",
|
|
318
|
+
subjectType: "user",
|
|
319
|
+
subjectId: ownerId,
|
|
320
|
+
kind: "semantic",
|
|
321
|
+
content: state.text.trim(),
|
|
322
|
+
createdAt: state.createdAt,
|
|
323
|
+
lastActivatedAt: state.createdAt,
|
|
324
|
+
activationCount: 1,
|
|
325
|
+
importance: 0.9,
|
|
326
|
+
confidence: 0.9,
|
|
327
|
+
resident: deriveStateResident(state, ownerType)
|
|
328
|
+
});
|
|
329
|
+
async function resolvePureVNextRuntime(input) {
|
|
330
|
+
const { db, owners, userInput } = input;
|
|
331
|
+
if (owners.length === 0 || !userInput.trim()) {
|
|
332
|
+
return { selectedItems: [], promptBlock: buildMemoryOverlay([], { injectionEmit: input.injectionEmit }), recalledStateCount: 0 };
|
|
333
|
+
}
|
|
334
|
+
const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
|
|
335
|
+
const catalogs = await Promise.all(
|
|
336
|
+
ownerIds.map((ownerId) => loadMemoryVNextCatalog(db, ownerId))
|
|
337
|
+
);
|
|
338
|
+
const selectedItems = [];
|
|
339
|
+
const seenStateKeys = /* @__PURE__ */ new Set();
|
|
340
|
+
for (let i = 0; i < owners.length; i++) {
|
|
341
|
+
const owner = owners[i];
|
|
342
|
+
const catalog = catalogs[i];
|
|
343
|
+
const currentStates = catalog.states.filter((s) => !s.retiredAt && s.text.trim());
|
|
344
|
+
const hits = recallMemoryVNextLocal({
|
|
345
|
+
query: userInput,
|
|
346
|
+
entities: catalog.entities,
|
|
347
|
+
states: currentStates
|
|
348
|
+
});
|
|
349
|
+
const entityById = new Map(catalog.entities.map((e) => [e.id, e]));
|
|
350
|
+
for (const hit of hits) {
|
|
351
|
+
const stateKey = `${hit.state.ownerId}\0${hit.state.id}`;
|
|
352
|
+
if (seenStateKeys.has(stateKey)) continue;
|
|
353
|
+
seenStateKeys.add(stateKey);
|
|
354
|
+
selectedItems.push(
|
|
355
|
+
buildSynthesizedStateItem(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
const promptBlock = buildMemoryOverlay(selectedItems, {
|
|
360
|
+
sources: new Map(selectedItems.map((item) => [item, "vnext"])),
|
|
361
|
+
injectionEmit: input.injectionEmit,
|
|
362
|
+
maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
|
|
363
|
+
});
|
|
364
|
+
return {
|
|
365
|
+
selectedItems,
|
|
366
|
+
promptBlock,
|
|
367
|
+
recalledStateCount: selectedItems.length
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export {
|
|
372
|
+
touchMemoryItemsInDb,
|
|
373
|
+
applyMemoryInterpreterMutation,
|
|
374
|
+
deriveStateResident,
|
|
375
|
+
resolvePureVNextRuntime
|
|
376
|
+
};
|
|
@@ -6,30 +6,29 @@ import {
|
|
|
6
6
|
localTurnHasSubjectRefs,
|
|
7
7
|
resolveLocalUserId,
|
|
8
8
|
withResolvedRuntimeToolSurface
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-HHFGE2WF.js";
|
|
10
|
+
import "./chunk-2X7WFDT6.js";
|
|
11
|
+
import "./chunk-BR3GT6MR.js";
|
|
12
|
+
import "./chunk-VS276URX.js";
|
|
13
|
+
import "./chunk-6OVNSQHN.js";
|
|
14
|
+
import "./chunk-ILHQ2AXT.js";
|
|
15
15
|
import "./chunk-M2EJHDJP.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-YUA6OAH5.js";
|
|
19
|
-
import "./chunk-SM3NSZJV.js";
|
|
20
|
-
import "./chunk-JRTNUU5Z.js";
|
|
21
|
-
import "./chunk-KUG52IAP.js";
|
|
22
|
-
import "./chunk-GOO6G4PY.js";
|
|
23
|
-
import "./chunk-QSJ3HFEF.js";
|
|
24
|
-
import "./chunk-WACI5I6V.js";
|
|
16
|
+
import "./chunk-I42VC5KR.js";
|
|
17
|
+
import "./chunk-BIDSIRTS.js";
|
|
25
18
|
import "./chunk-OLZBQWZU.js";
|
|
26
19
|
import "./chunk-LCBAMY2M.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-I42VC5KR.js";
|
|
20
|
+
import "./chunk-RTHFJZ6M.js";
|
|
21
|
+
import "./chunk-HBRDSQ3M.js";
|
|
30
22
|
import "./chunk-3EUW3WEO.js";
|
|
23
|
+
import "./chunk-CD3RU7XL.js";
|
|
24
|
+
import "./chunk-JRTNUU5Z.js";
|
|
25
|
+
import "./chunk-KUG52IAP.js";
|
|
31
26
|
import "./chunk-G3SUCT4W.js";
|
|
32
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-4SN6J65J.js";
|
|
28
|
+
import "./chunk-CF7PE763.js";
|
|
29
|
+
import "./chunk-OBSEKCVK.js";
|
|
30
|
+
import "./chunk-QSJ3HFEF.js";
|
|
31
|
+
import "./chunk-U67V476Y.js";
|
|
33
32
|
export {
|
|
34
33
|
BUILTIN_NOLO_AGENT_KEY,
|
|
35
34
|
extractLastUserText,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isCliAuthorityBrokerTimeoutError,
|
|
9
9
|
isCliAuthorityBrokerUnavailableError
|
|
10
10
|
} from "./chunk-5ZMIIR23.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-U67V476Y.js";
|
|
12
12
|
export {
|
|
13
13
|
CliAuthorityBrokerProtocolError,
|
|
14
14
|
CliAuthorityBrokerTimeoutError,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
resolveCliAuthorityStoreDriverConfig
|
|
9
9
|
} from "./chunk-CVMMWN6P.js";
|
|
10
10
|
import "./chunk-GLKOYSRU.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-U67V476Y.js";
|
|
12
12
|
export {
|
|
13
13
|
resolveCliAuthorityBrokerEndpoint,
|
|
14
14
|
resolveCliAuthorityBrokerHealthPath,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveServerCandidates,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
resolveServerUrlFromEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BIDSIRTS.js";
|
|
13
13
|
import "./chunk-OLZBQWZU.js";
|
|
14
14
|
import "./chunk-LCBAMY2M.js";
|
|
15
|
+
import "./chunk-G3SUCT4W.js";
|
|
15
16
|
import "./chunk-4SN6J65J.js";
|
|
16
17
|
import "./chunk-CF7PE763.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-4VNS5WPM.js";
|
|
18
|
+
import "./chunk-U67V476Y.js";
|
|
19
19
|
export {
|
|
20
20
|
isCompiledBinary,
|
|
21
21
|
parseUserIdFromAuthToken,
|
|
@@ -10,15 +10,16 @@ import {
|
|
|
10
10
|
getCliSession,
|
|
11
11
|
isBufferedCliStreamingProvider,
|
|
12
12
|
materializeCliImageInputs,
|
|
13
|
+
resolveGeminiCommand,
|
|
13
14
|
startCliSession
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R7XWZDOH.js";
|
|
15
16
|
import {
|
|
16
17
|
buildCliProcessEnv
|
|
17
18
|
} from "./chunk-ZEZC7IIM.js";
|
|
18
19
|
import {
|
|
19
20
|
buildCliPrompt
|
|
20
21
|
} from "./chunk-ATNTHIZI.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-U67V476Y.js";
|
|
22
23
|
export {
|
|
23
24
|
CLI_PROBE_BINARIES,
|
|
24
25
|
CliProviderQuotaError,
|
|
@@ -33,5 +34,6 @@ export {
|
|
|
33
34
|
getCliSession,
|
|
34
35
|
isBufferedCliStreamingProvider,
|
|
35
36
|
materializeCliImageInputs,
|
|
37
|
+
resolveGeminiCommand,
|
|
36
38
|
startCliSession
|
|
37
39
|
};
|