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
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deriveCredentialGroup
|
|
3
|
+
} from "./chunk-NHY322ZU.js";
|
|
1
4
|
import {
|
|
2
5
|
listUserRecordsFromServers,
|
|
3
6
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QBZCGP34.js";
|
|
5
8
|
import {
|
|
6
9
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
deriveCredentialGroup
|
|
10
|
-
} from "./chunk-QG4AOSON.js";
|
|
10
|
+
} from "./chunk-D6YNCNM6.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BV3FLP2L.js";
|
|
14
14
|
import {
|
|
15
15
|
PUBLIC_AGENT_KEY_PREFIX,
|
|
16
16
|
isOwnedAgentKey,
|
|
@@ -1,42 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
resolveDefaultReasoningEffort
|
|
3
|
+
} from "./chunk-5ZUOVCKT.js";
|
|
4
4
|
import {
|
|
5
5
|
buildRestorePatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BV3FLP2L.js";
|
|
7
|
+
import {
|
|
8
|
+
buildLocalAgentLookupKeys,
|
|
9
|
+
shouldReadAgentKeyRemotely
|
|
10
|
+
} from "./chunk-QCB42576.js";
|
|
11
|
+
import {
|
|
12
|
+
resolveCliAgentKeyInput
|
|
13
|
+
} from "./chunk-BR3GT6MR.js";
|
|
7
14
|
import {
|
|
8
15
|
createHostCredentialBrokerChain,
|
|
9
16
|
createStrictHostCredentialBroker
|
|
10
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JUSHVFNF.js";
|
|
11
18
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
collectInvalidAgentSkillModes,
|
|
20
|
+
formatInvalidAgentSkillModeMessage,
|
|
21
|
+
formatInvalidAgentSkillModesFieldMessage,
|
|
22
|
+
isAgentSkillModesFieldShapeValid
|
|
23
|
+
} from "./chunk-FJSNBZXR.js";
|
|
15
24
|
import {
|
|
16
25
|
buildAgentApiKeyCredentialRef,
|
|
17
26
|
migrateAgentSecrets
|
|
18
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-USGHJSGO.js";
|
|
19
28
|
import {
|
|
20
29
|
assertCredentialRef,
|
|
21
30
|
createFileCredentialBroker
|
|
22
31
|
} from "./chunk-OQHIVPG4.js";
|
|
23
32
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
33
|
+
createAgentKey
|
|
34
|
+
} from "./chunk-SYTHYBMI.js";
|
|
26
35
|
import {
|
|
27
36
|
parseUserIdFromAuthToken,
|
|
28
37
|
readOption,
|
|
29
38
|
resolveAuthToken,
|
|
30
39
|
resolveServerCandidates,
|
|
31
40
|
resolveServerUrl
|
|
32
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BIDSIRTS.js";
|
|
33
42
|
import {
|
|
34
43
|
readPipeText,
|
|
35
44
|
spawnProcess
|
|
36
45
|
} from "./chunk-4O22PGNQ.js";
|
|
37
46
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
47
|
+
toErrorMessage
|
|
48
|
+
} from "./chunk-HNMXYYJR.js";
|
|
40
49
|
|
|
41
50
|
// packages/agent-runtime/sessionCredentialBroker.ts
|
|
42
51
|
function createSessionMemoryCredentialBroker() {
|
|
@@ -111,10 +120,6 @@ function normalizeAgentHandle(value) {
|
|
|
111
120
|
return typeof value === "string" && value.trim() ? value.trim().toLowerCase().replace(/\s+/g, " ") : void 0;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
// packages/cli/client/localAgentRecords.ts
|
|
115
|
-
var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
|
|
116
|
-
var shouldReadAgentKeyRemotely = shouldFetchAgentRuntimeRecordRemotely;
|
|
117
|
-
|
|
118
123
|
// packages/cli/agentRecordHelpers.ts
|
|
119
124
|
var PROVIDER_COPY_FIELDS = [
|
|
120
125
|
"apiSource",
|
|
@@ -635,7 +640,7 @@ async function bindVaultCredentialToAgent(args) {
|
|
|
635
640
|
const secret = await broker.get(args.vaultId);
|
|
636
641
|
if (!secret) {
|
|
637
642
|
throw new Error(
|
|
638
|
-
`--api-key received a vault credential id (${args.vaultId}) but no secret is stored for it on this device. Re-paste the key in the chat so the runtime can isolate it again
|
|
643
|
+
`--api-key received a vault credential id (${args.vaultId}) but no secret is stored for it on this device. Re-paste the key in the chat so the runtime can isolate it again.`
|
|
639
644
|
);
|
|
640
645
|
}
|
|
641
646
|
return await storeAgentCredential({ agentKey: args.agentKey, secret, broker: args.broker });
|
|
@@ -694,6 +699,16 @@ function parseAgentUpdateArgs(args) {
|
|
|
694
699
|
}
|
|
695
700
|
updates[entry.slice(0, index)] = parseJsonishValue(entry.slice(index + 1));
|
|
696
701
|
}
|
|
702
|
+
if (Object.prototype.hasOwnProperty.call(updates, "skills")) {
|
|
703
|
+
const skillsField = updates.skills;
|
|
704
|
+
if (!isAgentSkillModesFieldShapeValid(skillsField)) {
|
|
705
|
+
throw new Error(formatInvalidAgentSkillModesFieldMessage());
|
|
706
|
+
}
|
|
707
|
+
const invalidModes = collectInvalidAgentSkillModes(skillsField);
|
|
708
|
+
if (invalidModes.length > 0) {
|
|
709
|
+
throw new Error(formatInvalidAgentSkillModeMessage(invalidModes[0]));
|
|
710
|
+
}
|
|
711
|
+
}
|
|
697
712
|
if (Object.keys(updates).length === 0) {
|
|
698
713
|
if (!promptDoc && !copyProviderFrom && !presetId) {
|
|
699
714
|
throw new Error("No updates provided. Use --model / --cli-provider / --api-source / --field key=value.");
|
|
@@ -751,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
751
766
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
752
767
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
753
768
|
if (args.parsed.presetId) {
|
|
754
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
769
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-WHAMP2D5.js");
|
|
755
770
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
756
771
|
if (fields.kind === "manual") {
|
|
757
772
|
throw new Error(
|
|
@@ -772,7 +787,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
772
787
|
}
|
|
773
788
|
if (!u.model && fields.model) u.model = fields.model;
|
|
774
789
|
if (fields.defaultReasoningEffort && u.reasoning_effort == null) {
|
|
775
|
-
u.reasoning_effort = fields.defaultReasoningEffort;
|
|
790
|
+
u.reasoning_effort = resolveDefaultReasoningEffort({ provider: typeof u.provider === "string" ? u.provider : void 0, model: typeof u.model === "string" ? u.model : void 0, fallback: fields.defaultReasoningEffort });
|
|
776
791
|
}
|
|
777
792
|
}
|
|
778
793
|
if (args.parsed.copyProviderFrom) {
|
|
@@ -914,7 +929,6 @@ async function buildUpdatedAgentRecord(args) {
|
|
|
914
929
|
export {
|
|
915
930
|
getSharedSessionCredentialBroker,
|
|
916
931
|
OAUTH_PROVIDER_REFS,
|
|
917
|
-
buildLocalAgentLookupKeys,
|
|
918
932
|
fetchWithTransportFallback,
|
|
919
933
|
readAgentRecord,
|
|
920
934
|
readDbRecord,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getModelPricing
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SRCCSTIM.js";
|
|
4
4
|
import {
|
|
5
5
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
|
|
6
6
|
PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
builtinAgentCatalogEntryById,
|
|
16
16
|
catalogReleasedAtMs,
|
|
17
17
|
isRetiredCatalogEntry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ILHQ2AXT.js";
|
|
19
19
|
import {
|
|
20
20
|
parsePublicAgentId,
|
|
21
21
|
parseSystemAgentId,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
} from "./chunk-M2EJHDJP.js";
|
|
24
24
|
import {
|
|
25
25
|
getModelConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CD3RU7XL.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "./chunk-KUG52IAP.js";
|
|
30
30
|
import {
|
|
31
31
|
isNoloHostedProvider,
|
|
32
32
|
isPlatformHostedImageModel
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OBSEKCVK.js";
|
|
34
34
|
|
|
35
35
|
// packages/core/publicAgentSeeds.ts
|
|
36
36
|
var AGENT_SEED_DEFAULTS = {
|
|
@@ -323,16 +323,16 @@ var GEMINI_4_ARGON_DEF = defineAgentSeed({
|
|
|
323
323
|
var GPT_IMAGE_2_GENERATOR_DEF = defineAgentSeed({
|
|
324
324
|
id: PUBLIC_GPT_IMAGE_2_GENERATOR_AGENT_ID,
|
|
325
325
|
presetKey: "gpt-image-2-generator",
|
|
326
|
-
name: "GPT Image 2.
|
|
326
|
+
name: "GPT Image 2.6 \u56FE\u7247\u751F\u6210\u5668",
|
|
327
327
|
provider: "nolo",
|
|
328
328
|
model: "deepseek-flash",
|
|
329
|
-
imageModel: "gpt-image-2.
|
|
329
|
+
imageModel: "gpt-image-2.6-flare",
|
|
330
330
|
isPublic: true,
|
|
331
331
|
hasImageOutput: true,
|
|
332
332
|
imageWorkflow: "generate",
|
|
333
333
|
imageConfig: { enabled: true },
|
|
334
|
-
introduction: "\u4E13\u95E8\u8D1F\u8D23 GPT Image 2.
|
|
335
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F GPT Image 2.
|
|
334
|
+
introduction: "\u4E13\u95E8\u8D1F\u8D23 GPT Image 2.6 \u65B0\u56FE\u751F\u6210\uFF1A\u6587\u672C\u751F\u6210\u65B0\u56FE\u7247\uFF0C\u4E5F\u53EF\u628A\u4E0A\u4F20\u56FE\u7247\u5F53\u4F5C\u53C2\u8003\u56FE\u6765\u751F\u6210\u65B0\u7684\u753B\u9762\u3002",
|
|
335
|
+
greeting: "\u4F60\u597D\uFF0C\u6211\u662F GPT Image 2.6 \u56FE\u7247\u751F\u6210\u5668\u3002\u76F4\u63A5\u544A\u8BC9\u6211\u4F60\u60F3\u753B\u4EC0\u4E48\uFF1B\u5982\u679C\u4F60\u4E0A\u4F20\u53C2\u8003\u56FE\uFF0C\u6211\u4F1A\u628A\u5B83\u4EEC\u5F53\u4F5C\u7075\u611F\u53C2\u8003\u6765\u751F\u6210\u4E00\u5F20\u65B0\u7684\u56FE\u7247\u3002",
|
|
336
336
|
prompt: [
|
|
337
337
|
"\u5B9A\u4F4D\uFF1A",
|
|
338
338
|
"- \u4F60\u7684\u4E3B\u4EFB\u52A1\u662F\u6587\u672C\u751F\u6210\u65B0\u56FE\u7247\u3002",
|
|
@@ -354,16 +354,16 @@ var GPT_IMAGE_2_GENERATOR_DEF = defineAgentSeed({
|
|
|
354
354
|
var GPT_IMAGE_2_EDITOR_DEF = defineAgentSeed({
|
|
355
355
|
id: PUBLIC_GPT_IMAGE_2_EDITOR_AGENT_ID,
|
|
356
356
|
presetKey: "gpt-image-2-editor",
|
|
357
|
-
name: "GPT Image 2.
|
|
357
|
+
name: "GPT Image 2.6 \u56FE\u7247\u7F16\u8F91\u5668",
|
|
358
358
|
provider: "nolo",
|
|
359
359
|
model: "deepseek-flash",
|
|
360
|
-
imageModel: "gpt-image-2.
|
|
360
|
+
imageModel: "gpt-image-2.6-sunburst",
|
|
361
361
|
isPublic: true,
|
|
362
362
|
hasImageOutput: true,
|
|
363
363
|
imageWorkflow: "edit",
|
|
364
364
|
imageConfig: { enabled: true },
|
|
365
|
-
introduction: "\u4E13\u95E8\u8D1F\u8D23 GPT Image 2.
|
|
366
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F GPT Image 2.
|
|
365
|
+
introduction: "\u4E13\u95E8\u8D1F\u8D23 GPT Image 2.6 \u5355\u6B21\u8BF7\u6C42\u6539\u56FE\uFF1A\u652F\u6301\u5355\u56FE\u7F16\u8F91\u3001\u591A\u56FE\u53C2\u8003\u5408\u6210\uFF0C\u4EE5\u53CA\u5E26 mask \u7684\u7CBE\u786E\u4FEE\u6539\u3002",
|
|
366
|
+
greeting: "\u4F60\u597D\uFF0C\u6211\u662F GPT Image 2.6 \u56FE\u7247\u7F16\u8F91\u5668\u3002\u628A\u8981\u4FEE\u6539\u7684\u56FE\u7247\u3001\u53C2\u8003\u56FE\u6216 mask \u53D1\u7ED9\u6211\uFF0C\u6211\u4F1A\u6309\u5355\u6B21\u8BF7\u6C42\u6539\u56FE\u7684\u65B9\u5F0F\u7ED9\u4F60\u4E00\u7248\u7ED3\u679C\u3002",
|
|
367
367
|
prompt: [
|
|
368
368
|
"\u5B9A\u4F4D\uFF1A",
|
|
369
369
|
"- \u4F60\u7684\u4E3B\u4EFB\u52A1\u662F\u5355\u6B21\u8BF7\u6C42\u6539\u56FE\uFF0C\u4E0D\u662F\u957F\u5BF9\u8BDD\u966A\u4F34\u5F0F\u521B\u4F5C\u3002",
|
|
@@ -388,16 +388,16 @@ var GPT_IMAGE_2_EDITOR_DEF = defineAgentSeed({
|
|
|
388
388
|
var GPT_IMAGE_2_CONTINUOUS_DEF = defineAgentSeed({
|
|
389
389
|
id: PUBLIC_GPT_IMAGE_2_CONTINUOUS_AGENT_ID,
|
|
390
390
|
presetKey: "gpt-image-2-continuous",
|
|
391
|
-
name: "GPT Image 2.
|
|
391
|
+
name: "GPT Image 2.6 \u8FDE\u7EED\u521B\u4F5C\u52A9\u624B",
|
|
392
392
|
provider: "nolo",
|
|
393
393
|
model: "deepseek-flash",
|
|
394
|
-
imageModel: "gpt-image-2.
|
|
394
|
+
imageModel: "gpt-image-2.6-flare",
|
|
395
395
|
isPublic: true,
|
|
396
396
|
hasImageOutput: true,
|
|
397
397
|
imageWorkflow: "continuous",
|
|
398
398
|
imageConfig: { enabled: true },
|
|
399
|
-
introduction: "\u4E13\u95E8\u8D1F\u8D23 GPT Image 2.
|
|
400
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F GPT Image 2.
|
|
399
|
+
introduction: "\u4E13\u95E8\u8D1F\u8D23 GPT Image 2.6 \u591A\u8F6E\u8FDE\u7EED\u521B\u4F5C\uFF1A\u9002\u5408\u5148\u51FA\u4E00\u7248\uFF0C\u518D\u56F4\u7ED5\u4E0A\u4E00\u8F6E\u56FE\u7247\u7EE7\u7EED\u4FEE\u6539\u3001\u7EE7\u7EED\u6269\u5C55\u548C\u7EE7\u7EED\u8FED\u4EE3\u3002",
|
|
400
|
+
greeting: "\u4F60\u597D\uFF0C\u6211\u662F GPT Image 2.6 \u8FDE\u7EED\u521B\u4F5C\u52A9\u624B\u3002\u4F60\u53EF\u4EE5\u5148\u8BA9\u6211\u51FA\u4E00\u7248\u56FE\uFF0C\u518D\u56F4\u7ED5\u4E0A\u4E00\u8F6E\u7EE7\u7EED\u4FEE\u6539\u3001\u7EE7\u7EED\u6269\u5C55\u6216\u7EE7\u7EED\u5B9A\u7A3F\u3002",
|
|
401
401
|
prompt: [
|
|
402
402
|
"\u5B9A\u4F4D\uFF1A",
|
|
403
403
|
"- \u4F60\u7684\u4E3B\u4EFB\u52A1\u662F\u591A\u8F6E\u8FDE\u7EED\u521B\u4F5C\u3002",
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSpaceKey,
|
|
3
|
+
normalizeSpaceId
|
|
4
|
+
} from "./chunk-UAD2WT54.js";
|
|
5
|
+
import {
|
|
6
|
+
patch,
|
|
7
|
+
read
|
|
8
|
+
} from "./chunk-CMMI3DAT.js";
|
|
9
|
+
import {
|
|
10
|
+
DEVICE_LOCAL_OWNER_ID,
|
|
11
|
+
isDeviceLocalSpaceBody
|
|
12
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
13
|
+
import {
|
|
14
|
+
selectIdentityUserId
|
|
15
|
+
} from "./chunk-PXYBUFDB.js";
|
|
16
|
+
|
|
17
|
+
// packages/create/space/utils/permissions.ts
|
|
18
|
+
var checkSpaceMembership = (spaceData, userId) => {
|
|
19
|
+
if (!spaceData) {
|
|
20
|
+
console.error("[Permission Check] Space data is missing.");
|
|
21
|
+
throw new Error("\u65E0\u6CD5\u6267\u884C\u6743\u9650\u68C0\u67E5\uFF1A\u7A7A\u95F4\u6570\u636E\u7F3A\u5931\u3002");
|
|
22
|
+
}
|
|
23
|
+
if (isDeviceLocalSpaceBody(spaceData)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (!userId) {
|
|
27
|
+
console.error("[Permission Check] User ID is missing.");
|
|
28
|
+
throw new Error("\u65E0\u6CD5\u6267\u884C\u6743\u9650\u68C0\u67E5\uFF1A\u7528\u6237 ID \u7F3A\u5931\u3002");
|
|
29
|
+
}
|
|
30
|
+
if (!spaceData.members || !Array.isArray(spaceData.members) || !spaceData.members.includes(userId)) {
|
|
31
|
+
console.warn(
|
|
32
|
+
`[Permission Check] User ${userId} attempt to operate on space ${spaceData.id} without membership.`
|
|
33
|
+
);
|
|
34
|
+
throw new Error("\u5F53\u524D\u7528\u6237\u4E0D\u662F\u7A7A\u95F4\u6210\u5458");
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var canManageSpaceContent = (spaceData, userId, membership) => {
|
|
38
|
+
if (!spaceData) return false;
|
|
39
|
+
if (isDeviceLocalSpaceBody(spaceData)) return true;
|
|
40
|
+
const actor = typeof userId === "string" ? userId.trim() : "";
|
|
41
|
+
if (!actor) return false;
|
|
42
|
+
const ownerValues = [spaceData.ownerId, spaceData.userId].map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean);
|
|
43
|
+
if (ownerValues.includes(actor)) return true;
|
|
44
|
+
const role = typeof membership?.role === "string" ? membership.role.trim() : "";
|
|
45
|
+
return role === "owner" || role === "admin";
|
|
46
|
+
};
|
|
47
|
+
var localSpaceAuthorityPatchStamp = (spaceData) => isDeviceLocalSpaceBody(spaceData) ? { userId: DEVICE_LOCAL_OWNER_ID } : {};
|
|
48
|
+
|
|
49
|
+
// packages/create/space/constants.ts
|
|
50
|
+
var UNCATEGORIZED_ID = "__uncategorized_container__";
|
|
51
|
+
|
|
52
|
+
// packages/create/space/content/spaceContentPatch.ts
|
|
53
|
+
var notifyUserDataUpdated = () => {
|
|
54
|
+
if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof window.Event === "function") {
|
|
55
|
+
window.dispatchEvent(new window.Event("nolo-user-data-updated"));
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var loadSpaceContentOrThrow = async (dispatch, spaceId, contentKey, sourceServerOrigin) => {
|
|
59
|
+
if (!contentKey || typeof contentKey !== "string" || contentKey.trim() === "") {
|
|
60
|
+
throw new Error("Invalid contentKey provided.");
|
|
61
|
+
}
|
|
62
|
+
const spaceKey = createSpaceKey.space(spaceId);
|
|
63
|
+
let spaceData = null;
|
|
64
|
+
try {
|
|
65
|
+
spaceData = await dispatch(
|
|
66
|
+
read({ dbKey: spaceKey, preferredServerOrigin: sourceServerOrigin })
|
|
67
|
+
).unwrap();
|
|
68
|
+
} catch (readError) {
|
|
69
|
+
throw new Error(`\u65E0\u6CD5\u52A0\u8F7D\u7A7A\u95F4\u6570\u636E: ${spaceId}`);
|
|
70
|
+
}
|
|
71
|
+
if (!spaceData) {
|
|
72
|
+
throw new Error("Space not found");
|
|
73
|
+
}
|
|
74
|
+
const content = spaceData.contents?.[contentKey];
|
|
75
|
+
if (!content) {
|
|
76
|
+
throw new Error("Content not found in space");
|
|
77
|
+
}
|
|
78
|
+
return { spaceKey, spaceData, content };
|
|
79
|
+
};
|
|
80
|
+
function resolveContentSpaceWriteAuthority(input) {
|
|
81
|
+
const owner = typeof input.ownerId === "string" ? input.ownerId.trim() : "";
|
|
82
|
+
const actor = typeof input.actorUserId === "string" ? input.actorUserId.trim() : "";
|
|
83
|
+
if (owner && owner !== DEVICE_LOCAL_OWNER_ID && owner !== actor) return "deny";
|
|
84
|
+
if (input.targetSpaceIsDeviceLocal) return "allow";
|
|
85
|
+
if (owner === DEVICE_LOCAL_OWNER_ID) return "allow";
|
|
86
|
+
if (!owner) return "unverified";
|
|
87
|
+
if (actor && owner === actor) return "allow";
|
|
88
|
+
return actor ? "deny" : "unverified";
|
|
89
|
+
}
|
|
90
|
+
var readContentRecordForSpaceSync = async (dispatch, contentKey) => {
|
|
91
|
+
try {
|
|
92
|
+
const existing = await dispatch(read({ dbKey: contentKey })).unwrap();
|
|
93
|
+
if (!existing || typeof existing !== "object") return { status: "missing" };
|
|
94
|
+
return { status: "ok", record: existing };
|
|
95
|
+
} catch {
|
|
96
|
+
return { status: "unreadable" };
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var applyContentRecordSpaceId = async (dispatch, contentKey, record, targetSpaceId, failMessagePrefix, options = {}) => {
|
|
100
|
+
const normalizedTarget = normalizeSpaceId(targetSpaceId) || targetSpaceId;
|
|
101
|
+
const authority = resolveContentSpaceWriteAuthority({
|
|
102
|
+
ownerId: record.userId ?? record.ownerId,
|
|
103
|
+
actorUserId: options.actorUserId,
|
|
104
|
+
targetSpaceIsDeviceLocal: options.targetSpaceIsDeviceLocal
|
|
105
|
+
});
|
|
106
|
+
if (authority === "deny") return "not-owner";
|
|
107
|
+
if (authority === "unverified") return "unverified";
|
|
108
|
+
const rawCurrentSpaceId = record.spaceId;
|
|
109
|
+
const currentSpaceId = typeof rawCurrentSpaceId === "string" ? normalizeSpaceId(rawCurrentSpaceId) : null;
|
|
110
|
+
if (currentSpaceId === normalizedTarget) return "unchanged";
|
|
111
|
+
if (options.onlyWhenUnset && currentSpaceId) return "unchanged";
|
|
112
|
+
try {
|
|
113
|
+
await dispatch(
|
|
114
|
+
patch({ dbKey: contentKey, changes: { spaceId: normalizedTarget } })
|
|
115
|
+
).unwrap();
|
|
116
|
+
} catch (contentPatchError) {
|
|
117
|
+
throw new Error(
|
|
118
|
+
`${failMessagePrefix}: ${contentPatchError?.message || "\u672A\u77E5\u9519\u8BEF"}`
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
notifyUserDataUpdated();
|
|
122
|
+
return "patched";
|
|
123
|
+
};
|
|
124
|
+
var syncContentRecordSpaceId = async (dispatch, contentKey, targetSpaceId, failMessagePrefix, options = {}) => {
|
|
125
|
+
const readResult = await readContentRecordForSpaceSync(dispatch, contentKey);
|
|
126
|
+
if (readResult.status === "unreadable") return "unreadable";
|
|
127
|
+
if (readResult.status === "missing") return "missing";
|
|
128
|
+
return applyContentRecordSpaceId(
|
|
129
|
+
dispatch,
|
|
130
|
+
contentKey,
|
|
131
|
+
readResult.record,
|
|
132
|
+
targetSpaceId,
|
|
133
|
+
failMessagePrefix,
|
|
134
|
+
options
|
|
135
|
+
);
|
|
136
|
+
};
|
|
137
|
+
var patchIndividualContentRecord = async (dispatch, contentKey, changes, sourceServerOrigin, failMessagePrefix) => {
|
|
138
|
+
let hasIndividualRecord = false;
|
|
139
|
+
try {
|
|
140
|
+
const existing = await dispatch(
|
|
141
|
+
read({ dbKey: contentKey, preferredServerOrigin: sourceServerOrigin })
|
|
142
|
+
).unwrap();
|
|
143
|
+
hasIndividualRecord = Boolean(existing);
|
|
144
|
+
} catch {
|
|
145
|
+
hasIndividualRecord = false;
|
|
146
|
+
}
|
|
147
|
+
if (hasIndividualRecord) {
|
|
148
|
+
try {
|
|
149
|
+
await dispatch(
|
|
150
|
+
patch({
|
|
151
|
+
dbKey: contentKey,
|
|
152
|
+
changes,
|
|
153
|
+
preferredServerOrigin: sourceServerOrigin
|
|
154
|
+
})
|
|
155
|
+
).unwrap();
|
|
156
|
+
notifyUserDataUpdated();
|
|
157
|
+
} catch (contentPatchError) {
|
|
158
|
+
throw new Error(
|
|
159
|
+
`${failMessagePrefix}: ${contentPatchError?.message || "\u672A\u77E5\u9519\u8BEF"}`
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// packages/create/space/content/addContentAction.ts
|
|
166
|
+
var addContentAction = async (input, thunkAPI) => {
|
|
167
|
+
const {
|
|
168
|
+
spaceId,
|
|
169
|
+
title,
|
|
170
|
+
type,
|
|
171
|
+
contentKey,
|
|
172
|
+
fileCategory,
|
|
173
|
+
mimeType,
|
|
174
|
+
fileSize,
|
|
175
|
+
originalName,
|
|
176
|
+
categoryId: rawCategoryId,
|
|
177
|
+
pinned = false,
|
|
178
|
+
order,
|
|
179
|
+
triggerType,
|
|
180
|
+
skillSummary
|
|
181
|
+
} = input;
|
|
182
|
+
const { dispatch, getState } = thunkAPI;
|
|
183
|
+
const userId = selectIdentityUserId(getState());
|
|
184
|
+
if (!contentKey || typeof contentKey !== "string" || contentKey.trim() === "")
|
|
185
|
+
throw new Error("Invalid contentKey provided.");
|
|
186
|
+
if (!title || typeof title !== "string" || title.trim() === "")
|
|
187
|
+
throw new Error("Invalid or empty title provided.");
|
|
188
|
+
if (!type || typeof type !== "string")
|
|
189
|
+
throw new Error("Invalid content type provided.");
|
|
190
|
+
const spaceKey = createSpaceKey.space(spaceId);
|
|
191
|
+
const spaceData = await dispatch(read({
|
|
192
|
+
dbKey: spaceKey
|
|
193
|
+
})).unwrap();
|
|
194
|
+
checkSpaceMembership(spaceData, userId);
|
|
195
|
+
const alreadyPresent = Boolean(spaceData.contents?.[contentKey]);
|
|
196
|
+
let categoryIdForStorage;
|
|
197
|
+
if (rawCategoryId && rawCategoryId !== "" && rawCategoryId !== UNCATEGORIZED_ID) {
|
|
198
|
+
if (spaceData.categories?.[rawCategoryId]) {
|
|
199
|
+
categoryIdForStorage = rawCategoryId;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const now = Date.now();
|
|
203
|
+
const newSpaceContent = {
|
|
204
|
+
title: title.trim(),
|
|
205
|
+
type,
|
|
206
|
+
contentKey,
|
|
207
|
+
...fileCategory !== void 0 ? { fileCategory } : {},
|
|
208
|
+
...mimeType !== void 0 ? { mimeType } : {},
|
|
209
|
+
...fileSize !== void 0 ? { fileSize } : {},
|
|
210
|
+
...originalName !== void 0 ? { originalName } : {},
|
|
211
|
+
...categoryIdForStorage !== void 0 && {
|
|
212
|
+
categoryId: categoryIdForStorage
|
|
213
|
+
},
|
|
214
|
+
pinned,
|
|
215
|
+
createdAt: now,
|
|
216
|
+
updatedAt: now,
|
|
217
|
+
...order !== void 0 && typeof order === "number" && { order },
|
|
218
|
+
...triggerType !== void 0 && { triggerType },
|
|
219
|
+
...skillSummary !== void 0 ? { skillSummary } : {}
|
|
220
|
+
};
|
|
221
|
+
const entityRead = await readContentRecordForSpaceSync(dispatch, contentKey);
|
|
222
|
+
if (entityRead.status === "unreadable") {
|
|
223
|
+
throw new Error("\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9\u8BB0\u5F55\uFF0C\u672A\u52A0\u5165\u7A7A\u95F4\uFF08\u53EF\u91CD\u8BD5\uFF09");
|
|
224
|
+
}
|
|
225
|
+
let updatedSpaceData;
|
|
226
|
+
if (alreadyPresent) {
|
|
227
|
+
updatedSpaceData = spaceData;
|
|
228
|
+
} else {
|
|
229
|
+
const changes = {
|
|
230
|
+
contents: { [contentKey]: newSpaceContent },
|
|
231
|
+
updatedAt: now,
|
|
232
|
+
...localSpaceAuthorityPatchStamp(spaceData)
|
|
233
|
+
};
|
|
234
|
+
updatedSpaceData = await dispatch(
|
|
235
|
+
patch({ dbKey: spaceKey, changes })
|
|
236
|
+
).unwrap();
|
|
237
|
+
}
|
|
238
|
+
let contentSpaceSync;
|
|
239
|
+
try {
|
|
240
|
+
contentSpaceSync = entityRead.status === "ok" ? await applyContentRecordSpaceId(
|
|
241
|
+
dispatch,
|
|
242
|
+
contentKey,
|
|
243
|
+
entityRead.record,
|
|
244
|
+
spaceId,
|
|
245
|
+
"\u5185\u5BB9\u5DF2\u52A0\u5165\u7A7A\u95F4\uFF0C\u4F46\u540C\u6B65\u5185\u5BB9\u8BB0\u5F55\u7684\u5F52\u5C5E\u7A7A\u95F4\u5931\u8D25",
|
|
246
|
+
{
|
|
247
|
+
onlyWhenUnset: true,
|
|
248
|
+
actorUserId: userId,
|
|
249
|
+
targetSpaceIsDeviceLocal: isDeviceLocalSpaceBody(spaceData)
|
|
250
|
+
}
|
|
251
|
+
) : "missing";
|
|
252
|
+
} catch (entitySyncError) {
|
|
253
|
+
throw new Error(
|
|
254
|
+
`${entitySyncError?.message || "\u540C\u6B65\u5185\u5BB9\u8BB0\u5F55\u5931\u8D25"}\uFF08\u7A7A\u95F4\u94FE\u63A5\u5DF2\u5199\u5165\uFF1B\u518D\u6B21\u52A0\u5165\u4F1A\u5E42\u7B49\u6536\u655B\uFF09`
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
return { spaceId, updatedSpaceData, contentSpaceSync, alreadyPresent };
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export {
|
|
261
|
+
checkSpaceMembership,
|
|
262
|
+
canManageSpaceContent,
|
|
263
|
+
localSpaceAuthorityPatchStamp,
|
|
264
|
+
UNCATEGORIZED_ID,
|
|
265
|
+
notifyUserDataUpdated,
|
|
266
|
+
loadSpaceContentOrThrow,
|
|
267
|
+
readContentRecordForSpaceSync,
|
|
268
|
+
syncContentRecordSpaceId,
|
|
269
|
+
patchIndividualContentRecord,
|
|
270
|
+
addContentAction
|
|
271
|
+
};
|
|
@@ -7,22 +7,22 @@ import {
|
|
|
7
7
|
scheduleExistingRecordReplication,
|
|
8
8
|
shouldReplaceLocalWithRemoteRecord,
|
|
9
9
|
shouldReplicateLocalRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
11
11
|
import {
|
|
12
12
|
fetchFromClientDb,
|
|
13
13
|
fetchFromServer,
|
|
14
14
|
isReadTimeoutError,
|
|
15
15
|
logger
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4N6G2CKP.js";
|
|
17
17
|
import {
|
|
18
18
|
shouldReplaceWithNextRecord
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BV3FLP2L.js";
|
|
20
20
|
import {
|
|
21
21
|
isAbortError
|
|
22
22
|
} from "./chunk-7DPNBQSV.js";
|
|
23
23
|
import {
|
|
24
24
|
isBuiltinPlatformAgentKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ILHQ2AXT.js";
|
|
26
26
|
import {
|
|
27
27
|
NOLO_CLUSTER_SERVERS,
|
|
28
28
|
normalizeKnownServerOrigin
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBIC6EG7.js";
|
|
4
4
|
import {
|
|
5
5
|
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7JGMNKKG.js";
|
|
7
7
|
import {
|
|
8
8
|
findModelConfig,
|
|
9
9
|
getProviderByModelName
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
asTrimmedLowercaseString
|
|
13
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
10
|
+
} from "./chunk-CD3RU7XL.js";
|
|
14
11
|
import {
|
|
15
12
|
asOptionalTrimmedString
|
|
16
13
|
} from "./chunk-G3SUCT4W.js";
|
|
14
|
+
import {
|
|
15
|
+
asTrimmedLowercaseString
|
|
16
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
17
17
|
|
|
18
18
|
// packages/ai/llm/agentCapabilities.ts
|
|
19
19
|
var ANTIGRAVITY_EFFORT_SUFFIXES = [
|
|
@@ -86,9 +86,19 @@ var resolveCatalogImageSupport = (agent) => {
|
|
|
86
86
|
)?.hasVision : lookupKnownModelVision(provider, model);
|
|
87
87
|
return catalogHasVision;
|
|
88
88
|
};
|
|
89
|
+
var liveImageSupport = Symbol("liveImageSupport");
|
|
90
|
+
function withLiveImageSupport(agent, supported) {
|
|
91
|
+
return { ...agent, [liveImageSupport]: { model: agent.model, supported } };
|
|
92
|
+
}
|
|
93
|
+
function readLiveImageSupport(agent) {
|
|
94
|
+
const evidence = agent[liveImageSupport];
|
|
95
|
+
if (!evidence || evidence.model !== agent.model) return void 0;
|
|
96
|
+
const plan = resolveAgentCallPlan({ ...agent, key: "" });
|
|
97
|
+
return plan.authMethod.kind === "oauth" && plan.authMethod.ref === "antigravity" ? evidence.supported : void 0;
|
|
98
|
+
}
|
|
89
99
|
var resolveAgentImageInputSupport = (agent) => {
|
|
90
100
|
if (!agent) return true;
|
|
91
|
-
return resolveCatalogImageSupport(agent) ?? agent.hasVision ?? true;
|
|
101
|
+
return resolveCatalogImageSupport(agent) ?? readLiveImageSupport(agent) ?? agent.hasVision ?? true;
|
|
92
102
|
};
|
|
93
103
|
var resolveToolImagePolicy = (input) => {
|
|
94
104
|
const maxImagesPerRequest = 4;
|
|
@@ -102,6 +112,8 @@ var resolveToolImagePolicy = (input) => {
|
|
|
102
112
|
}
|
|
103
113
|
const catalog = resolveCatalogImageSupport(input);
|
|
104
114
|
if (catalog !== void 0) return { maxImagesPerRequest, supportsToolImages: catalog, reason: "catalog" };
|
|
115
|
+
const live = readLiveImageSupport(input);
|
|
116
|
+
if (live !== void 0) return { maxImagesPerRequest, supportsToolImages: live, reason: "live-discovery" };
|
|
105
117
|
if (typeof input.hasVision === "boolean") {
|
|
106
118
|
return { maxImagesPerRequest, supportsToolImages: input.hasVision, reason: "agent-declaration" };
|
|
107
119
|
}
|
|
@@ -109,6 +121,8 @@ var resolveToolImagePolicy = (input) => {
|
|
|
109
121
|
};
|
|
110
122
|
|
|
111
123
|
export {
|
|
124
|
+
resolveCatalogImageSupport,
|
|
125
|
+
withLiveImageSupport,
|
|
112
126
|
resolveAgentImageInputSupport,
|
|
113
127
|
resolveToolImagePolicy
|
|
114
128
|
};
|