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,226 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_react
|
|
3
|
+
} from "./chunk-5FUN7EG4.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeSpaceId
|
|
6
|
+
} from "./chunk-UAD2WT54.js";
|
|
7
|
+
import {
|
|
8
|
+
toTimestampMs
|
|
9
|
+
} from "./chunk-CMMI3DAT.js";
|
|
10
|
+
import {
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-U67V476Y.js";
|
|
13
|
+
|
|
14
|
+
// packages/create/space/spaceCurrentStore.ts
|
|
15
|
+
var import_react = __toESM(require_react(), 1);
|
|
16
|
+
var VIEW_MODE_STORAGE_KEY = "nolo-space-view-mode";
|
|
17
|
+
var readStoredViewMode = () => {
|
|
18
|
+
try {
|
|
19
|
+
if (typeof window === "undefined") return "all";
|
|
20
|
+
return window.localStorage.getItem(VIEW_MODE_STORAGE_KEY) === "categories" ? "categories" : "all";
|
|
21
|
+
} catch {
|
|
22
|
+
return "all";
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var writeStoredViewMode = (mode) => {
|
|
26
|
+
try {
|
|
27
|
+
if (typeof window === "undefined") return;
|
|
28
|
+
window.localStorage.setItem(VIEW_MODE_STORAGE_KEY, mode);
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var createInitialState = () => ({
|
|
33
|
+
currentSpaceId: null,
|
|
34
|
+
currentSpace: null,
|
|
35
|
+
viewMode: readStoredViewMode()
|
|
36
|
+
});
|
|
37
|
+
var state = createInitialState();
|
|
38
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
39
|
+
var version = 0;
|
|
40
|
+
var notify = () => {
|
|
41
|
+
version += 1;
|
|
42
|
+
for (const listener of listeners) {
|
|
43
|
+
try {
|
|
44
|
+
listener();
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
function getCurrentSpaceId() {
|
|
50
|
+
return state.viewMode === "all" ? null : state.currentSpaceId;
|
|
51
|
+
}
|
|
52
|
+
function getCurrentSpaceIdRaw() {
|
|
53
|
+
return state.currentSpaceId;
|
|
54
|
+
}
|
|
55
|
+
function getCurrentSpaceRaw() {
|
|
56
|
+
return state.currentSpace;
|
|
57
|
+
}
|
|
58
|
+
function getViewMode() {
|
|
59
|
+
return state.viewMode;
|
|
60
|
+
}
|
|
61
|
+
function setViewMode(mode) {
|
|
62
|
+
if (state.viewMode === mode) return;
|
|
63
|
+
state = { ...state, viewMode: mode };
|
|
64
|
+
writeStoredViewMode(mode);
|
|
65
|
+
notify();
|
|
66
|
+
}
|
|
67
|
+
function setCurrentSpace(space) {
|
|
68
|
+
state = { ...state, currentSpace: space };
|
|
69
|
+
notify();
|
|
70
|
+
}
|
|
71
|
+
function setCurrentSpaceBoth(spaceId, space) {
|
|
72
|
+
state = { ...state, currentSpaceId: spaceId, currentSpace: space };
|
|
73
|
+
notify();
|
|
74
|
+
}
|
|
75
|
+
function updateCurrentSpaceIfMatch(spaceId, space) {
|
|
76
|
+
const currentId = state.currentSpaceId;
|
|
77
|
+
if (currentId && normalizeSpaceId(currentId) === normalizeSpaceId(spaceId)) {
|
|
78
|
+
state = { ...state, currentSpace: space };
|
|
79
|
+
notify();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// packages/create/space/spaceMembershipStore.ts
|
|
84
|
+
var import_react2 = __toESM(require_react(), 1);
|
|
85
|
+
var createInitialState2 = () => ({
|
|
86
|
+
memberSpaces: null,
|
|
87
|
+
loading: false,
|
|
88
|
+
membershipStatus: "idle",
|
|
89
|
+
initialized: false
|
|
90
|
+
});
|
|
91
|
+
var state2 = createInitialState2();
|
|
92
|
+
var listeners2 = /* @__PURE__ */ new Set();
|
|
93
|
+
var version2 = 0;
|
|
94
|
+
var notify2 = () => {
|
|
95
|
+
version2 += 1;
|
|
96
|
+
for (const listener of listeners2) {
|
|
97
|
+
try {
|
|
98
|
+
listener();
|
|
99
|
+
} catch {
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var getMembershipUpdatedAt = (space) => {
|
|
104
|
+
if (!space) return 0;
|
|
105
|
+
return toTimestampMs(
|
|
106
|
+
space.spaceUpdatedAt ?? space.memberUpdatedAt ?? space.updatedAt ?? space.createdAt ?? space.joinedAt
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
function dedupeMemberSpacesById(memberSpaces) {
|
|
110
|
+
const membershipMap = /* @__PURE__ */ new Map();
|
|
111
|
+
memberSpaces.forEach((space) => {
|
|
112
|
+
const prev = membershipMap.get(space.spaceId);
|
|
113
|
+
if (!prev || getMembershipUpdatedAt(space) >= getMembershipUpdatedAt(prev)) {
|
|
114
|
+
membershipMap.set(space.spaceId, space);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return Array.from(membershipMap.values());
|
|
118
|
+
}
|
|
119
|
+
function getAllMemberSpaces() {
|
|
120
|
+
const memberSpaces = dedupeMemberSpacesById(state2.memberSpaces || []);
|
|
121
|
+
return [...memberSpaces].sort((a, b) => {
|
|
122
|
+
return getMembershipUpdatedAt(b) - getMembershipUpdatedAt(a);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function setMemberSpaces(spaces) {
|
|
126
|
+
state2 = {
|
|
127
|
+
...state2,
|
|
128
|
+
memberSpaces: spaces,
|
|
129
|
+
loading: false,
|
|
130
|
+
error: void 0,
|
|
131
|
+
membershipStatus: "fresh",
|
|
132
|
+
initialized: true
|
|
133
|
+
};
|
|
134
|
+
notify2();
|
|
135
|
+
}
|
|
136
|
+
function setMembershipLoading() {
|
|
137
|
+
state2 = { ...state2, loading: true, membershipStatus: "loading" };
|
|
138
|
+
notify2();
|
|
139
|
+
}
|
|
140
|
+
function setMembershipRejected(errorMessage, isRemoteUnavailable) {
|
|
141
|
+
const membershipStatus = isRemoteUnavailable ? "offline" : state2.membershipStatus === "loading" ? "idle" : state2.membershipStatus;
|
|
142
|
+
state2 = {
|
|
143
|
+
...state2,
|
|
144
|
+
loading: false,
|
|
145
|
+
error: errorMessage,
|
|
146
|
+
membershipStatus
|
|
147
|
+
};
|
|
148
|
+
notify2();
|
|
149
|
+
}
|
|
150
|
+
function appendRecoveredMemberships(recovered) {
|
|
151
|
+
if (!recovered || recovered.length === 0) return;
|
|
152
|
+
if (state2.memberSpaces === null) {
|
|
153
|
+
state2 = {
|
|
154
|
+
...state2,
|
|
155
|
+
memberSpaces: dedupeMemberSpacesById(recovered)
|
|
156
|
+
};
|
|
157
|
+
notify2();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
state2 = {
|
|
161
|
+
...state2,
|
|
162
|
+
memberSpaces: dedupeMemberSpacesById([
|
|
163
|
+
...state2.memberSpaces,
|
|
164
|
+
...recovered
|
|
165
|
+
]).sort((a, b) => toTimestampMs(b.joinedAt) - toTimestampMs(a.joinedAt))
|
|
166
|
+
};
|
|
167
|
+
notify2();
|
|
168
|
+
}
|
|
169
|
+
function setSpaceInitialized() {
|
|
170
|
+
state2 = { ...state2, initialized: true };
|
|
171
|
+
notify2();
|
|
172
|
+
}
|
|
173
|
+
function setMembershipLoaded() {
|
|
174
|
+
state2 = { ...state2, loading: false, error: void 0 };
|
|
175
|
+
notify2();
|
|
176
|
+
}
|
|
177
|
+
function addMemberSpace(space) {
|
|
178
|
+
const existing = state2.memberSpaces || [];
|
|
179
|
+
state2 = {
|
|
180
|
+
...state2,
|
|
181
|
+
memberSpaces: dedupeMemberSpacesById([...existing, space])
|
|
182
|
+
};
|
|
183
|
+
notify2();
|
|
184
|
+
}
|
|
185
|
+
function removeMemberSpace(spaceId) {
|
|
186
|
+
if (!state2.memberSpaces) return;
|
|
187
|
+
const normalized = normalizeSpaceId(spaceId);
|
|
188
|
+
state2 = {
|
|
189
|
+
...state2,
|
|
190
|
+
memberSpaces: state2.memberSpaces.filter(
|
|
191
|
+
(s) => normalizeSpaceId(s.spaceId) !== normalized
|
|
192
|
+
)
|
|
193
|
+
};
|
|
194
|
+
notify2();
|
|
195
|
+
}
|
|
196
|
+
function updateMemberSpaceName(spaceId, name) {
|
|
197
|
+
if (!state2.memberSpaces || !name) return;
|
|
198
|
+
state2 = {
|
|
199
|
+
...state2,
|
|
200
|
+
memberSpaces: state2.memberSpaces.map(
|
|
201
|
+
(space) => space.spaceId === spaceId ? { ...space, spaceName: name } : space
|
|
202
|
+
)
|
|
203
|
+
};
|
|
204
|
+
notify2();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export {
|
|
208
|
+
getCurrentSpaceId,
|
|
209
|
+
getCurrentSpaceIdRaw,
|
|
210
|
+
getCurrentSpaceRaw,
|
|
211
|
+
getViewMode,
|
|
212
|
+
setViewMode,
|
|
213
|
+
setCurrentSpace,
|
|
214
|
+
setCurrentSpaceBoth,
|
|
215
|
+
updateCurrentSpaceIfMatch,
|
|
216
|
+
getAllMemberSpaces,
|
|
217
|
+
setMemberSpaces,
|
|
218
|
+
setMembershipLoading,
|
|
219
|
+
setMembershipRejected,
|
|
220
|
+
appendRecoveredMemberships,
|
|
221
|
+
setSpaceInitialized,
|
|
222
|
+
setMembershipLoaded,
|
|
223
|
+
addMemberSpace,
|
|
224
|
+
removeMemberSpace,
|
|
225
|
+
updateMemberSpaceName
|
|
226
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_formatISO
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UVLYNWIE.js";
|
|
4
4
|
import {
|
|
5
5
|
require_react
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5FUN7EG4.js";
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
readAndWait
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CMMI3DAT.js";
|
|
11
11
|
import {
|
|
12
12
|
toErrorMessage
|
|
13
13
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-G3SUCT4W.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U67V476Y.js";
|
|
20
20
|
|
|
21
21
|
// packages/render/page/docStore.ts
|
|
22
22
|
var import_react = __toESM(require_react(), 1);
|
|
@@ -308,9 +308,9 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
308
308
|
{ slateToRenderMarkdown },
|
|
309
309
|
{ buildSkillSummaryMarker }
|
|
310
310
|
] = await Promise.all([
|
|
311
|
-
import("./slateUtils-
|
|
312
|
-
import("./slateToRenderMarkdown-
|
|
313
|
-
import("./skillSummaryMarker-
|
|
311
|
+
import("./slateUtils-ESQAJ6RN.js"),
|
|
312
|
+
import("./slateToRenderMarkdown-R3X74MCX.js"),
|
|
313
|
+
import("./skillSummaryMarker-62UW7HI7.js")
|
|
314
314
|
]);
|
|
315
315
|
const title = asOptionalTrimmedString(current.title) || extractTitleFromSlate(slateData) || "\u672A\u547D\u540D\u9875\u9762";
|
|
316
316
|
const tools = extractMentionsFromSlate(slateData);
|
|
@@ -321,6 +321,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
321
321
|
await dispatch(
|
|
322
322
|
patch({
|
|
323
323
|
dbKey: pageKey,
|
|
324
|
+
requireServerConfirmation: true,
|
|
324
325
|
changes: {
|
|
325
326
|
updatedAt,
|
|
326
327
|
slateData,
|
|
@@ -334,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
334
335
|
).unwrap();
|
|
335
336
|
if (dbSpaceId) {
|
|
336
337
|
try {
|
|
337
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
338
|
+
const { updateContentTitle } = await import("./contentThunks-YEPZAHXU.js");
|
|
338
339
|
await dispatch(
|
|
339
340
|
updateContentTitle({
|
|
340
341
|
spaceId: dbSpaceId,
|
|
@@ -352,6 +353,10 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
352
353
|
if (typeof window !== "undefined") {
|
|
353
354
|
window.dispatchEvent(new Event("nolo-user-data-updated"));
|
|
354
355
|
}
|
|
356
|
+
if (state.pageKey !== pageKey || state.slateData !== slateData || state.title !== current.title || state.icon !== icon) {
|
|
357
|
+
if (state.pageKey === pageKey) setState((prev) => ({ ...prev, isSaving: false, justSaved: false }));
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
355
360
|
setState((prev) => ({
|
|
356
361
|
...prev,
|
|
357
362
|
isSaving: false,
|
|
@@ -373,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
373
378
|
}
|
|
374
379
|
}
|
|
375
380
|
async function createDocState(args, thunkApi) {
|
|
376
|
-
const { createPageAction } = await import("./createPageAction-
|
|
381
|
+
const { createPageAction } = await import("./createPageAction-3FGAPLJO.js");
|
|
377
382
|
return createPageAction(args, thunkApi);
|
|
378
383
|
}
|
|
379
384
|
function subscribe(listener) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveModelReasoningCapability
|
|
3
|
+
} from "./chunk-CD3RU7XL.js";
|
|
4
|
+
|
|
5
|
+
// packages/ai/agent/defaultReasoningEffort.ts
|
|
6
|
+
var defaults = {
|
|
7
|
+
"gpt-6.1-sol": "medium",
|
|
8
|
+
"gpt-6.1-terra": "medium",
|
|
9
|
+
"gpt-6-luna": "medium",
|
|
10
|
+
"gpt-6-astra": "high",
|
|
11
|
+
"claude-opus-5-5": "medium",
|
|
12
|
+
"claude-sonnet-5-5": "high",
|
|
13
|
+
"deepseek-flash": "high",
|
|
14
|
+
"deepseek-v4-flash": "high",
|
|
15
|
+
"deepseek-v4.1-flash": "high"
|
|
16
|
+
};
|
|
17
|
+
var deepseekChannels = /* @__PURE__ */ new Set(["opendesign", "ollama-cloud", "lithosai"]);
|
|
18
|
+
var providers = /* @__PURE__ */ new Set(["nolo", "openai", "openrouter", "anthropic", "deepseek", "commandcode", "opencode-go", "stepfun"]);
|
|
19
|
+
function resolveDefaultReasoningEffort(input) {
|
|
20
|
+
const provider = (input.provider ?? "").toLowerCase();
|
|
21
|
+
const model = (input.model ?? "").toLowerCase().split("/").pop() ?? "";
|
|
22
|
+
const isDeepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(model);
|
|
23
|
+
const effort = providers.has(provider) || deepseekChannels.has(provider) && isDeepseekFlash ? defaults[model] : void 0;
|
|
24
|
+
if (!effort) return input.fallback;
|
|
25
|
+
if (provider === "nolo" && model.startsWith("claude-") && input.model?.startsWith("anthropic/")) return effort;
|
|
26
|
+
if (provider === "anthropic" && model.startsWith("claude-")) return effort;
|
|
27
|
+
return resolveModelReasoningCapability(provider, input.model).efforts.includes(effort) ? effort : input.fallback;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
resolveDefaultReasoningEffort
|
|
32
|
+
};
|
|
@@ -311,12 +311,94 @@ async function chromeConnectorUnavailableFunc() {
|
|
|
311
311
|
throw new Error("Browser connector tools are only executable in the Nolo desktop local runtime.");
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
// packages/agent-runtime/toolNameAliases.ts
|
|
315
|
+
var LEGACY_TOOL_NAME_ALIASES = {
|
|
316
|
+
// Nolo Browser Connector: legacy chrome_* → canonical browser_*
|
|
317
|
+
...CHROME_CONNECTOR_LEGACY_TOOL_ALIASES,
|
|
318
|
+
createPage: "createDoc",
|
|
319
|
+
updatePage: "updateDoc",
|
|
320
|
+
update_page: "updateDoc",
|
|
321
|
+
create_page: "createDoc",
|
|
322
|
+
fetchwebpage: "fetchWebpage",
|
|
323
|
+
fetch_webpage: "fetchWebpage",
|
|
324
|
+
"fetch-page": "fetchWebpage",
|
|
325
|
+
exasearch: "exa_search",
|
|
326
|
+
"exa-search": "exa_search",
|
|
327
|
+
exa_search: "exa_search",
|
|
328
|
+
firecrawlscrape: "firecrawl_scrape",
|
|
329
|
+
"firecrawl-scrape": "firecrawl_scrape",
|
|
330
|
+
firecrawl_scrape: "firecrawl_scrape",
|
|
331
|
+
firecrawlsearch: "firecrawl_search",
|
|
332
|
+
"firecrawl-search": "firecrawl_search",
|
|
333
|
+
firecrawl_search: "firecrawl_search",
|
|
334
|
+
readDoc: "readDoc",
|
|
335
|
+
readpage: "readDoc",
|
|
336
|
+
read_page: "readDoc",
|
|
337
|
+
read_doc: "readDoc",
|
|
338
|
+
createdoc: "createDoc",
|
|
339
|
+
updateDocTool: "updateDoc",
|
|
340
|
+
terminalCommand: "execShell",
|
|
341
|
+
terminal_command: "execShell",
|
|
342
|
+
runCommand: "execShell",
|
|
343
|
+
run_command: "execShell",
|
|
344
|
+
runInBash: "execShell",
|
|
345
|
+
run_in_bash: "execShell",
|
|
346
|
+
executeCommand: "execShell",
|
|
347
|
+
execute_command: "execShell",
|
|
348
|
+
// Codex CLI 风格工具名 → nolo 原生工具名
|
|
349
|
+
bash: "execShell",
|
|
350
|
+
shell: "execShell",
|
|
351
|
+
read: "readFile",
|
|
352
|
+
edit: "editFile",
|
|
353
|
+
write: "writeFile",
|
|
354
|
+
glob: "globFiles",
|
|
355
|
+
// 联网搜索别名
|
|
356
|
+
web_search: "exa_search",
|
|
357
|
+
websearch: "exa_search",
|
|
358
|
+
search_web: "exa_search",
|
|
359
|
+
searchweb: "exa_search",
|
|
360
|
+
webfetch: "fetchWebpage",
|
|
361
|
+
web_fetch: "fetchWebpage",
|
|
362
|
+
fetchweb: "fetchWebpage",
|
|
363
|
+
fetch_web: "fetchWebpage",
|
|
364
|
+
// 模型偶尔会把 loadSkill 幻觉成 readSkill(参数风格 name= 一致),
|
|
365
|
+
// 规范化到 loadSkill,避免 localToolPolicy 把这种调用直接拦死。
|
|
366
|
+
readSkill: "loadSkill"
|
|
367
|
+
};
|
|
368
|
+
var normalizeToolName = (name) => name.replace(/[-_]/g, "").toLowerCase();
|
|
369
|
+
var canonicalizeToolName = (rawName) => {
|
|
370
|
+
const trimmedName = rawName.trim();
|
|
371
|
+
if (!trimmedName) return rawName;
|
|
372
|
+
if (LEGACY_TOOL_NAME_ALIASES[trimmedName]) {
|
|
373
|
+
return LEGACY_TOOL_NAME_ALIASES[trimmedName];
|
|
374
|
+
}
|
|
375
|
+
const normalizedRawName = normalizeToolName(trimmedName);
|
|
376
|
+
const matchedAlias = Object.entries(LEGACY_TOOL_NAME_ALIASES).find(
|
|
377
|
+
([alias]) => normalizeToolName(alias) === normalizedRawName
|
|
378
|
+
);
|
|
379
|
+
return matchedAlias?.[1] ?? trimmedName;
|
|
380
|
+
};
|
|
381
|
+
var canonicalizeToolNames = (toolNames) => Array.from(
|
|
382
|
+
new Set(
|
|
383
|
+
toolNames.filter((toolName) => typeof toolName === "string").map(canonicalizeToolName)
|
|
384
|
+
)
|
|
385
|
+
);
|
|
386
|
+
var prioritizeToolNames = (toolNames, preferredToolNames) => {
|
|
387
|
+
const canonicalTools = canonicalizeToolNames(toolNames);
|
|
388
|
+
const preferred = new Set(canonicalizeToolNames(preferredToolNames));
|
|
389
|
+
const prioritized = canonicalTools.filter((toolName) => preferred.has(toolName));
|
|
390
|
+
const remaining = canonicalTools.filter((toolName) => !preferred.has(toolName));
|
|
391
|
+
return [...prioritized, ...remaining];
|
|
392
|
+
};
|
|
393
|
+
|
|
314
394
|
export {
|
|
315
|
-
CHROME_CONNECTOR_LEGACY_TOOL_ALIASES,
|
|
316
395
|
CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
|
|
317
396
|
canonicalizeChromeConnectorToolNames,
|
|
318
397
|
getChromeConnectorToolBehavior,
|
|
319
398
|
getChromeConnectorToolDefaultConsent,
|
|
320
399
|
chromeConnectorToolSchemas,
|
|
321
|
-
chromeConnectorUnavailableFunc
|
|
400
|
+
chromeConnectorUnavailableFunc,
|
|
401
|
+
canonicalizeToolName,
|
|
402
|
+
canonicalizeToolNames,
|
|
403
|
+
prioritizeToolNames
|
|
322
404
|
};
|
|
@@ -1,166 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCurrentSpaceIdRaw,
|
|
3
|
-
setCurrentSpaceBoth
|
|
4
|
-
|
|
3
|
+
setCurrentSpaceBoth,
|
|
4
|
+
setSpaceInitialized
|
|
5
|
+
} from "./chunk-547ENH5T.js";
|
|
5
6
|
import {
|
|
6
7
|
createSpaceKey,
|
|
7
8
|
normalizeSpaceId
|
|
8
9
|
} from "./chunk-UAD2WT54.js";
|
|
9
|
-
import {
|
|
10
|
-
require_react
|
|
11
|
-
} from "./chunk-YDH3FDFQ.js";
|
|
12
|
-
import {
|
|
13
|
-
toTimestampMs
|
|
14
|
-
} from "./chunk-FW6YHHLI.js";
|
|
15
10
|
import {
|
|
16
11
|
fetchFromServer,
|
|
17
12
|
getAllServers
|
|
18
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4N6G2CKP.js";
|
|
19
14
|
import {
|
|
20
15
|
selectIdentityToken,
|
|
21
16
|
selectIdentityUserId
|
|
22
17
|
} from "./chunk-PXYBUFDB.js";
|
|
23
18
|
import {
|
|
24
19
|
isTombstoneRecord
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
__toESM
|
|
28
|
-
} from "./chunk-4VNS5WPM.js";
|
|
29
|
-
|
|
30
|
-
// packages/create/space/spaceMembershipStore.ts
|
|
31
|
-
var import_react = __toESM(require_react(), 1);
|
|
32
|
-
var createInitialState = () => ({
|
|
33
|
-
memberSpaces: null,
|
|
34
|
-
loading: false,
|
|
35
|
-
membershipStatus: "idle",
|
|
36
|
-
initialized: false
|
|
37
|
-
});
|
|
38
|
-
var state = createInitialState();
|
|
39
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
40
|
-
var version = 0;
|
|
41
|
-
var notify = () => {
|
|
42
|
-
version += 1;
|
|
43
|
-
for (const listener of listeners) {
|
|
44
|
-
try {
|
|
45
|
-
listener();
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
var getMembershipUpdatedAt = (space) => {
|
|
51
|
-
if (!space) return 0;
|
|
52
|
-
return toTimestampMs(
|
|
53
|
-
space.spaceUpdatedAt ?? space.memberUpdatedAt ?? space.updatedAt ?? space.createdAt ?? space.joinedAt
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
function dedupeMemberSpacesById(memberSpaces) {
|
|
57
|
-
const membershipMap = /* @__PURE__ */ new Map();
|
|
58
|
-
memberSpaces.forEach((space) => {
|
|
59
|
-
const prev = membershipMap.get(space.spaceId);
|
|
60
|
-
if (!prev || getMembershipUpdatedAt(space) >= getMembershipUpdatedAt(prev)) {
|
|
61
|
-
membershipMap.set(space.spaceId, space);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
return Array.from(membershipMap.values());
|
|
65
|
-
}
|
|
66
|
-
function getAllMemberSpaces() {
|
|
67
|
-
const memberSpaces = dedupeMemberSpacesById(state.memberSpaces || []);
|
|
68
|
-
return [...memberSpaces].sort((a, b) => {
|
|
69
|
-
return getMembershipUpdatedAt(b) - getMembershipUpdatedAt(a);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function setMemberSpaces(spaces) {
|
|
73
|
-
state = {
|
|
74
|
-
...state,
|
|
75
|
-
memberSpaces: spaces,
|
|
76
|
-
loading: false,
|
|
77
|
-
error: void 0,
|
|
78
|
-
membershipStatus: "fresh",
|
|
79
|
-
initialized: true
|
|
80
|
-
};
|
|
81
|
-
notify();
|
|
82
|
-
}
|
|
83
|
-
function setMembershipLoading() {
|
|
84
|
-
state = { ...state, loading: true, membershipStatus: "loading" };
|
|
85
|
-
notify();
|
|
86
|
-
}
|
|
87
|
-
function setMembershipRejected(errorMessage, isRemoteUnavailable) {
|
|
88
|
-
const membershipStatus = isRemoteUnavailable ? "offline" : state.membershipStatus === "loading" ? "idle" : state.membershipStatus;
|
|
89
|
-
state = {
|
|
90
|
-
...state,
|
|
91
|
-
loading: false,
|
|
92
|
-
error: errorMessage,
|
|
93
|
-
membershipStatus
|
|
94
|
-
};
|
|
95
|
-
notify();
|
|
96
|
-
}
|
|
97
|
-
function appendRecoveredMemberships(recovered) {
|
|
98
|
-
if (!recovered || recovered.length === 0) return;
|
|
99
|
-
if (state.memberSpaces === null) {
|
|
100
|
-
state = {
|
|
101
|
-
...state,
|
|
102
|
-
memberSpaces: dedupeMemberSpacesById(recovered)
|
|
103
|
-
};
|
|
104
|
-
notify();
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
state = {
|
|
108
|
-
...state,
|
|
109
|
-
memberSpaces: dedupeMemberSpacesById([
|
|
110
|
-
...state.memberSpaces,
|
|
111
|
-
...recovered
|
|
112
|
-
]).sort((a, b) => toTimestampMs(b.joinedAt) - toTimestampMs(a.joinedAt))
|
|
113
|
-
};
|
|
114
|
-
notify();
|
|
115
|
-
}
|
|
116
|
-
function setSpaceInitialized() {
|
|
117
|
-
state = { ...state, initialized: true };
|
|
118
|
-
notify();
|
|
119
|
-
}
|
|
120
|
-
function setMembershipLoaded() {
|
|
121
|
-
state = { ...state, loading: false, error: void 0 };
|
|
122
|
-
notify();
|
|
123
|
-
}
|
|
124
|
-
function addMemberSpace(space) {
|
|
125
|
-
const existing = state.memberSpaces || [];
|
|
126
|
-
state = {
|
|
127
|
-
...state,
|
|
128
|
-
memberSpaces: dedupeMemberSpacesById([...existing, space])
|
|
129
|
-
};
|
|
130
|
-
notify();
|
|
131
|
-
}
|
|
132
|
-
function removeMemberSpace(spaceId) {
|
|
133
|
-
if (!state.memberSpaces) return;
|
|
134
|
-
const normalized = normalizeSpaceId(spaceId);
|
|
135
|
-
state = {
|
|
136
|
-
...state,
|
|
137
|
-
memberSpaces: state.memberSpaces.filter(
|
|
138
|
-
(s) => normalizeSpaceId(s.spaceId) !== normalized
|
|
139
|
-
)
|
|
140
|
-
};
|
|
141
|
-
notify();
|
|
142
|
-
}
|
|
143
|
-
function updateMemberSpaceName(spaceId, name) {
|
|
144
|
-
if (!state.memberSpaces || !name) return;
|
|
145
|
-
state = {
|
|
146
|
-
...state,
|
|
147
|
-
memberSpaces: state.memberSpaces.map(
|
|
148
|
-
(space) => space.spaceId === spaceId ? { ...space, spaceName: name } : space
|
|
149
|
-
)
|
|
150
|
-
};
|
|
151
|
-
notify();
|
|
152
|
-
}
|
|
20
|
+
} from "./chunk-BV3FLP2L.js";
|
|
153
21
|
|
|
154
22
|
// packages/create/space/spaceAccess.ts
|
|
155
|
-
var resolveSpaceRemoteServers = (
|
|
156
|
-
const currentServer = typeof
|
|
157
|
-
const syncServers = Array.isArray(
|
|
23
|
+
var resolveSpaceRemoteServers = (state) => {
|
|
24
|
+
const currentServer = typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : void 0;
|
|
25
|
+
const syncServers = Array.isArray(state?.settings?.syncServers) ? state.settings.syncServers : void 0;
|
|
158
26
|
return getAllServers(currentServer, syncServers);
|
|
159
27
|
};
|
|
160
|
-
var selectSpaceRemoteAuth = (
|
|
161
|
-
token: selectIdentityToken(
|
|
162
|
-
userId: selectIdentityUserId(
|
|
163
|
-
servers: resolveSpaceRemoteServers(
|
|
28
|
+
var selectSpaceRemoteAuth = (state) => ({
|
|
29
|
+
token: selectIdentityToken(state) ?? null,
|
|
30
|
+
userId: selectIdentityUserId(state) ?? null,
|
|
31
|
+
servers: resolveSpaceRemoteServers(state)
|
|
164
32
|
});
|
|
165
33
|
var spaceListsUser = (spaceData, userId) => {
|
|
166
34
|
if (!spaceData || isTombstoneRecord(spaceData)) return false;
|
|
@@ -288,14 +156,5 @@ export {
|
|
|
288
156
|
fetchRemoteUserSpaceMemberships,
|
|
289
157
|
fetchRemoteSpace,
|
|
290
158
|
fetchAuthoritativeRemoteSpace,
|
|
291
|
-
getAllMemberSpaces,
|
|
292
|
-
setMemberSpaces,
|
|
293
|
-
setMembershipLoading,
|
|
294
|
-
setMembershipRejected,
|
|
295
|
-
appendRecoveredMemberships,
|
|
296
|
-
setMembershipLoaded,
|
|
297
|
-
addMemberSpace,
|
|
298
|
-
removeMemberSpace,
|
|
299
|
-
updateMemberSpaceName,
|
|
300
159
|
applyFetchSpaceFulfilled
|
|
301
160
|
};
|