nolo-cli 0.258.0-alpha.1 → 0.260.0-alpha.1
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 +1 -1
- package/{_executeModel-E2LL7FPO.js → _executeModel-EO6JFCOF.js} +97 -83
- package/accountResolver-NGICIMEE.js +1 -1
- package/{action-C6IQAKN4.js → action-WIA56QT4.js} +12 -10
- package/{addContentAction-53364YDW.js → addContentAction-OCMWZLYG.js} +14 -13
- package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-ER2NZ7BC.js} +20 -24
- package/{agentDeleteCommand-ORNRRKJO.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
- package/{agentEmailCommands-2ALVFOD5.js → agentEmailCommands-NXRWS7NS.js} +142 -126
- package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
- package/{agentListCommands-6I4NQPR4.js → agentListCommands-PFXGZZ3Y.js} +87 -68
- package/{agentMachineCommands-PNHTIJ6A.js → agentMachineCommands-2Q55CSL4.js} +68 -59
- package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-EUNS7Y2Z.js} +10 -7
- package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-S2VMPSWL.js} +9 -6
- package/agentRecordCommands-FUFI526H.js +210 -0
- package/agentRun-ZNMUPDHF.js +250 -0
- package/agentRunCommand-ISVQ2UYC.js +248 -0
- package/{agentRunControl-3TIVJ3SR.js → agentRunControl-NEK44LDM.js} +19 -12
- package/{agentRuntimeLocal-3MAEFYSB.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
- package/{agentSlice-KOQXUPKT.js → agentSlice-4ZJJJN4M.js} +15 -18
- package/appConfigCommands-MPHS6FHD.js +417 -0
- package/{appDeleteCommands-FEPN62UR.js → appDeleteCommands-W26WGENW.js} +68 -58
- package/{appDeployCommands-DPFEWFYZ.js → appDeployCommands-ER7IOF5E.js} +74 -59
- package/{appDeployStatusCommands-LQ5X5KVX.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
- package/{appGetCommands-W3JBBIF7.js → appGetCommands-P6GXJNUD.js} +74 -58
- package/{appListCommands-LUHZS7JU.js → appListCommands-ACA2IZZM.js} +74 -58
- package/appMigrateCommands-OGF4E2W6.js +230 -0
- package/appSourceCommands-GAHVBRUM.js +279 -0
- package/{authCommand-HKSXJT3J.js → authCommand-PXE7NZTQ.js} +26 -40
- package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
- package/{builtinSkillRegistry-FVEEO4U2.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
- package/{chromeOpsCommands-4UIKH26F.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
- package/{chunk-KO5PFS74.js → chunk-2CKFROQS.js} +2454 -1115
- package/{chunk-6N4IKMTH.js → chunk-2I4R6ZRV.js} +40 -26
- package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
- package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
- package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
- package/chunk-35JIFLIG.js +30 -0
- package/{chunk-ZYPXOQS2.js → chunk-3EPED3UO.js} +1 -1
- package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
- package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
- package/{chunk-HPDLPEUG.js → chunk-42JZNSAY.js} +267 -234
- package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
- package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
- package/chunk-4IVMDQBA.js +261 -0
- package/chunk-4Y6CZ2N4.js +82 -0
- package/{chunk-OKAXQFON.js → chunk-52BNL6GP.js} +4 -4
- package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
- package/{chunk-QGFLVQ6E.js → chunk-6KUTNAPU.js} +4 -14
- package/{chunk-MNFUKRRU.js → chunk-6XAAKRJB.js} +7 -7
- package/{chunk-P27E22MA.js → chunk-6Z6DGDPI.js} +1 -1
- package/chunk-72VWN4VK.js +51 -0
- package/{chunk-2RZBFJEG.js → chunk-75FZ2Z7C.js} +16027 -17392
- package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
- package/{chunk-AKBNCTPY.js → chunk-76K4GTY5.js} +1 -1
- package/{chunk-ZMJMHXYX.js → chunk-7HUCUD2I.js} +3 -3
- package/chunk-7LR2IFUH.js +100 -0
- package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
- package/{chunk-Y2TCTNUD.js → chunk-7QO6YSA4.js} +4 -4
- package/{chunk-TF427WGH.js → chunk-7RYH7YIY.js} +19 -27
- package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
- package/chunk-AMNZPQCY.js +635 -0
- package/chunk-AMTF6FJD.js +356 -0
- package/{chunk-MUDMYJCM.js → chunk-AQNWWJLH.js} +2 -56
- package/{chunk-WSLL7VV4.js → chunk-B4NA5UJR.js} +9 -9
- package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
- package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
- package/{chunk-46FETNLF.js → chunk-BTIFQBYW.js} +7 -6
- package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
- package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
- package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
- package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
- package/{chunk-JAGD4PSH.js → chunk-CRGPRAJ4.js} +46 -42
- package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
- package/{chunk-BD22OFDQ.js → chunk-CZHIOBBK.js} +8 -3
- package/chunk-D3ONA3FP.js +762 -0
- package/chunk-D3SAQ6T7.js +1697 -0
- package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
- package/{chunk-KQHEGELM.js → chunk-DEAII55O.js} +16 -6
- package/{chunk-J55F3IEZ.js → chunk-DKJQEFNG.js} +1 -1
- package/chunk-DLXL4NSL.js +1179 -0
- package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
- package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
- package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
- package/chunk-EJHLDJWZ.js +58 -0
- package/{chunk-E4HBZDV6.js → chunk-EMFZXJTN.js} +15 -47
- package/chunk-ER6NTALN.js +34 -0
- package/chunk-EUHMI5KG.js +101 -0
- package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
- package/{chunk-EXD7S7QW.js → chunk-FF5ZRKW7.js} +12 -7
- package/{chunk-7PTWFSZZ.js → chunk-FGD4NMTP.js} +4 -4
- package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
- package/chunk-FI4DPLR7.js +902 -0
- package/chunk-FKVLQNGJ.js +25 -0
- package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
- package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
- package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
- package/{chunk-IZHENZQ5.js → chunk-G5JGA5YM.js} +180 -31
- package/{chunk-7EUJ65PF.js → chunk-GMBWWBSJ.js} +782 -449
- package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
- package/{chunk-APXC3SQO.js → chunk-GZ4I5EMM.js} +9 -9
- package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
- package/chunk-HJTI7RZV.js +94 -0
- package/{chunk-JGVWHUYK.js → chunk-HPIY372N.js} +7 -7
- package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
- package/{chunk-HDKMVYNJ.js → chunk-I3NWAILT.js} +6 -4
- package/{chunk-MD7O2NN2.js → chunk-IM7HCFB4.js} +313 -275
- package/{chunk-DWES4SXY.js → chunk-INN2PBW7.js} +1 -1
- package/chunk-IV6VUVLJ.js +88 -0
- package/chunk-J42X32PV.js +472 -0
- package/{chunk-V6S5OZSP.js → chunk-JHQNWV2C.js} +4441 -2569
- package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
- package/{chunk-BIDSIRTS.js → chunk-JUNYPVL6.js} +10 -16
- package/chunk-JVEKCQAP.js +222 -0
- package/{chunk-JW6OURKM.js → chunk-KAHYBAEN.js} +215 -473
- package/chunk-KDDXC2IH.js +148 -0
- package/chunk-KGKTN2NX.js +25 -0
- package/chunk-KGWE224L.js +246 -0
- package/chunk-L3UFGEDU.js +17157 -0
- package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
- package/{chunk-DCTQJDDQ.js → chunk-LIH7WSX5.js} +23 -379
- package/chunk-LJOPY4TL.js +443 -0
- package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
- package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
- package/chunk-LXP53WGF.js +168 -0
- package/chunk-MDAYRIP7.js +1889 -0
- package/chunk-MRACVEPZ.js +7 -0
- package/chunk-NHLLXINQ.js +8 -0
- package/{chunk-VQR2ACSC.js → chunk-NTBTVKKB.js} +17 -25
- package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
- package/{chunk-APQBEIOQ.js → chunk-P4XAHM4B.js} +1 -1
- package/chunk-PL5RKESU.js +40 -0
- package/{chunk-U2H426FE.js → chunk-PQ3QZMJK.js} +20 -4
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{createAgentAutomationAction-HEZ3G5L4.js → chunk-QKM55LP2.js} +3 -160
- package/{chunk-SIHOY5YI.js → chunk-QZCLCAYC.js} +170 -164
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-JLZJL3WC.js → chunk-RDZ5OIAT.js} +370 -39
- package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
- package/chunk-RF576RYE.js +117 -0
- package/chunk-RI7SXDJW.js +1317 -0
- package/{chunk-JOJH3KWV.js → chunk-RIOAPUGV.js} +242 -25
- package/{chunk-7B55IVLF.js → chunk-RL6H2A2Z.js} +2561 -4059
- package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
- package/{chunk-BB76X6O4.js → chunk-RWXHGPWJ.js} +1 -1
- package/chunk-S7BF2OGX.js +432 -0
- package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
- package/{chunk-PNBQ5JTA.js → chunk-SGEBRBF3.js} +7 -4
- package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
- package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
- package/{chunk-LJ6WIQZO.js → chunk-SX6PDLBZ.js} +279 -149
- package/{chunk-6VNBJ7GI.js → chunk-T4WU747C.js} +5 -5
- package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
- package/{chunk-KO5GO2BC.js → chunk-TXMFSGRY.js} +1 -1
- package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
- package/{chunk-CVDJUPBN.js → chunk-UOLGGEEC.js} +774 -119
- package/{chunk-ADUCBH4M.js → chunk-USFG4EWQ.js} +51 -42
- package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
- package/{chunk-ONTHDYFU.js → chunk-VDC3BW24.js} +24 -10
- package/chunk-VH356OQ3.js +425 -0
- package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
- package/{chunk-3GGVFHWI.js → chunk-VPAO5WQX.js} +17 -14
- package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
- package/{chunk-C63KMRJE.js → chunk-W2Z5E2R7.js} +126 -698
- package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
- package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
- package/chunk-WLJNHFEB.js +1710 -0
- package/chunk-WMBJDXMY.js +408 -0
- package/chunk-WSQLCWLQ.js +201 -0
- package/{chunk-YN23INFZ.js → chunk-WXD6Y7DW.js} +23 -2
- package/{chunk-RQKTCHQM.js → chunk-WY6DMHMG.js} +1 -1
- package/{chunk-MLK3FEXG.js → chunk-XJW6SLBZ.js} +3 -3
- package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
- package/chunk-XT6C2QZW.js +46 -0
- package/{chunk-NRUYSNSZ.js → chunk-Y7THFNVJ.js} +9 -9
- package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
- package/{chunk-RD3QLZQV.js → chunk-YM5XULB2.js} +324 -2
- package/{chunk-BD5YJJLJ.js → chunk-YNP3ITPU.js} +19 -12
- package/{chunk-U35UUM5K.js → chunk-YOUSQIIK.js} +1 -1
- package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
- package/{chunk-Z3JZ2R5F.js → chunk-YU235GGN.js} +25 -8
- package/chunk-YWEZSBLL.js +790 -0
- package/chunk-Z3KTXWWB.js +76 -0
- package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
- package/chunk-ZD7OULYZ.js +368 -0
- package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
- package/{chunk-HQUGB2HM.js → chunk-ZTCMXPIS.js} +62 -50
- package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-KMXS7JP5.js} +20 -14
- package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
- package/cliAuthorityBrokerProcess-DCCUT4YQ.js +34 -0
- package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-YDGDHIEE.js} +5 -2
- package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
- package/cliLocalAgentRecordReader-X2YHEBWI.js +113 -0
- package/cloudAutomationCommands-C6Q3BFRB.js +310 -0
- package/{commandRegistry-QKOJ5FIC.js → commandRegistry-TYYYTW5E.js} +263 -120
- package/{contentThunks-ZDBDDZP3.js → contentThunks-E6BJ5YSX.js} +45 -43
- package/{cooldownCommands-Y4ZQQ35D.js → cooldownCommands-FPAFS7XG.js} +1 -1
- package/createAgentAutomationAction-L3NLCIIW.js +172 -0
- package/{createDialogAction-DK62W5VA.js → createDialogAction-QSWKRPWQ.js} +46 -42
- package/{createPageAction-W6NXHVKO.js → createPageAction-ZVVUT4CZ.js} +49 -45
- package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
- package/{dbSlice-RWPSVHBC.js → dbSlice-SEVKNA7A.js} +21 -16
- package/deleteDbKey-43MTK2DI.js +86 -0
- package/{dialogCommands-Z24IDINY.js → dialogCommands-UVMTIFSA.js} +80 -66
- package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
- package/{dialogNotifyCommand-IASQGEMW.js → dialogNotifyCommand-LMWF7EQI.js} +22 -14
- package/dialogPortabilityCommands-PAMLEBST.js +3036 -0
- package/{dialogSlice-62GISS77.js → dialogSlice-VHPXENDZ.js} +43 -42
- package/{dialogTraceCommand-FDINAIZ6.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
- package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
- package/{docCreateCommands-SXA4TMGJ.js → docCreateCommands-H4RLIUNX.js} +68 -59
- package/{docDeleteCommands-ELXSZK3F.js → docDeleteCommands-OVAKCBMT.js} +68 -59
- package/{docReadCommands-DFLAQPI4.js → docReadCommands-KFISIUVA.js} +67 -58
- package/{docStore-UWF2PMCB.js → docStore-X7BEA735.js} +16 -17
- package/{docUpdateCommands-KB6M5HUH.js → docUpdateCommands-VOEER36L.js} +68 -59
- package/ebookDownloaderAgentCommand-2DHPGEOQ.js +674 -0
- package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
- package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
- package/{handleSendMessageAction-ZV6OQPQG.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
- package/{hostCredentialCreate-3IA5IJFG.js → hostCredentialCreate-PJAIKZQP.js} +138 -122
- package/index.js +35 -21
- package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
- package/localAutomationCommands-UU66LOWB.js +198 -0
- package/localAutomationRuntime-SW4R42SZ.js +60 -0
- package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
- package/{localRuntimeAdapter-SSG5ORLZ.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
- package/localRuntimeAuthority-3YDFZD3L.js +44 -0
- package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
- package/{machineCommands-4WKJ3TLO.js → machineCommands-JFYED66N.js} +251 -357
- package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
- package/machineWsRunDispatch-CZUV2FXE.js +227 -0
- package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-HLU72QME.js} +40 -22
- package/mcpLocalManageCommands-OHHU6F5C.js +212 -0
- package/{memberThunks-43B7UYC5.js → memberThunks-FJW4GPM5.js} +102 -22
- package/{memoryCommands-BC6REPQB.js → memoryCommands-2RLHDMU2.js} +25 -34
- package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
- package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
- package/package.json +3 -3
- package/parityCommands-7EWR34P3.js +613 -0
- package/{projectArchive-JN43WW4E.js → projectArchive-JIVRMXVV.js} +49 -45
- package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
- package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
- package/{read-KG6INYUT.js → read-6YR57D6V.js} +11 -10
- package/{readDocTool-N3GA52JR.js → readDocTool-NKOGL2MW.js} +5 -1
- package/{readlineWorkspace-D6EUSB2Q.js → readlineWorkspace-V26AN2FL.js} +926 -572
- package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
- package/remove-BF33RCTH.js +32 -0
- package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-GWHBWF4W.js} +22 -26
- package/{runAgentClientLoop-FEZTSUSJ.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
- package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
- package/{secretCommands-53NZFD4T.js → secretCommands-CSTQYB6T.js} +2 -2
- package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-RL6FGO7T.js} +16 -17
- package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-XJASBB3K.js} +23 -27
- package/{settingThunks-DVKG4X4S.js → settingThunks-ZT7ZYXXL.js} +170 -497
- package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
- package/{spaceCommands-4ACQQNZL.js → spaceCommands-65WQHVOI.js} +194 -90
- package/spacePruneCommand-PTMRUWYJ.js +233 -0
- package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
- package/{streamAgentChatTurn-I425SVYJ.js → streamAgentChatTurn-B5NICHZW.js} +225 -137
- package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-X6DFOIAX.js} +19 -23
- package/{tableCommands-EFA754RE.js → tableCommands-6E77VD73.js} +28 -49
- package/{toolApiClient-N5PYW2R3.js → toolApiClient-GTTWEV6P.js} +15 -4
- package/{tools-WBPFTSMK.js → tools-UMCPIQX6.js} +73 -63
- package/{tuiRestart-VN5F4GYU.js → tuiRestart-O7UDLNQU.js} +20 -13
- package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
- package/{updateCommands-VQEBBIGO.js → updateCommands-DXDIAQFS.js} +12 -7
- package/{updateDialogTitleAction-VB5DTVXV.js → updateDialogTitleAction-HZLKWVKM.js} +57 -58
- package/{usageCommand-WI6SQOPB.js → usageCommand-WYLNBDHB.js} +6 -8
- package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-AEUPY2PE.js} +11 -15
- package/{windowsSelfUpdate-ZEZKGX4M.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
- package/workContext-ZAW6VXT7.js +18 -0
- package/workContextQueryProjection-CACY5VFE.js +23 -0
- package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
- package/agentFavoriteCommands-7LOP3HUD.js +0 -186
- package/agentRecordCommands-BEZPBYBM.js +0 -194
- package/agentRunCommand-2T72V5KY.js +0 -232
- package/chunk-2MBTWINN.js +0 -89
- package/chunk-523DITKR.js +0 -32
- package/chunk-BUDVRYES.js +0 -2213
- package/chunk-BXGU6274.js +0 -862
- package/chunk-BZMDWGQQ.js +0 -47
- package/chunk-GAHJLSDO.js +0 -107
- package/chunk-GYX6XTAI.js +0 -84
- package/chunk-HNUWUO75.js +0 -93
- package/chunk-HSBHS6KT.js +0 -33401
- package/chunk-KG27JIG4.js +0 -136
- package/chunk-OB4FBZXJ.js +0 -364
- package/chunk-OKH74FML.js +0 -3746
- package/chunk-OLZBQWZU.js +0 -6
- package/chunk-OOV5JN25.js +0 -1317
- package/chunk-OQFOE4SJ.js +0 -405
- package/chunk-PXYBUFDB.js +0 -53
- package/chunk-R3FZHW4Q.js +0 -103
- package/chunk-R3MV2GII.js +0 -106
- package/chunk-SCAC3NM5.js +0 -11751
- package/chunk-SR4FE5VD.js +0 -9
- package/chunk-SYTHYBMI.js +0 -3558
- package/chunk-UKZX3NHN.js +0 -48
- package/chunk-UVLYNWIE.js +0 -74
- package/chunk-WFEWP352.js +0 -861
- package/chunk-X4O7FJF5.js +0 -160
- package/chunk-YJPK35HB.js +0 -175
- package/chunk-YNIYE47Z.js +0 -105
- package/chunk-Z4PCXPUE.js +0 -127
- package/chunk-ZTHAJU3O.js +0 -2537
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
- package/cliLocalAgentRecordReader-Q6677YID.js +0 -104
- package/deleteFile-ECU6FU5C.js +0 -55
- package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
- package/machineWsRunDispatch-7PROH7E7.js +0 -209
- package/markdownToSlate-PXYAIBVL.js +0 -8
- package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
- package/webapi-QVV65DQF.js +0 -2487
- package/workContext-Y3ADAPZU.js +0 -14
- package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
- package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
- package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
CUSTOM_API_KEY_TEMPLATES,
|
|
6
|
-
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
7
|
-
} from "./chunk-6SOWMEAY.js";
|
|
3
|
+
} from "./chunk-3QMN3T6L.js";
|
|
8
4
|
import {
|
|
9
5
|
findModelConfig,
|
|
10
6
|
getProviderByModelName
|
|
11
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RI7SXDJW.js";
|
|
12
8
|
import {
|
|
13
9
|
asOptionalTrimmedString
|
|
14
10
|
} from "./chunk-G3SUCT4W.js";
|
|
11
|
+
import {
|
|
12
|
+
CUSTOM_API_KEY_TEMPLATES,
|
|
13
|
+
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
14
|
+
} from "./chunk-SR57FDTX.js";
|
|
15
15
|
import {
|
|
16
16
|
asTrimmedLowercaseString
|
|
17
17
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -111,14 +111,11 @@ var resolveCatalogImageSupport = (agent) => {
|
|
|
111
111
|
return catalogHasVision;
|
|
112
112
|
};
|
|
113
113
|
var liveImageSupport = Symbol("liveImageSupport");
|
|
114
|
-
function withLiveImageSupport(agent, supported) {
|
|
115
|
-
return { ...agent, [liveImageSupport]: { model: agent.model, supported } };
|
|
116
|
-
}
|
|
117
114
|
function readLiveImageSupport(agent) {
|
|
118
115
|
const evidence = agent[liveImageSupport];
|
|
119
116
|
if (!evidence || evidence.model !== agent.model) return void 0;
|
|
120
117
|
const plan = resolveAgentCallPlan({ ...agent, key: "" });
|
|
121
|
-
return plan.authMethod.kind === "oauth"
|
|
118
|
+
return plan.authMethod.kind === "oauth" ? evidence.supported : void 0;
|
|
122
119
|
}
|
|
123
120
|
var resolveAgentImageInputSupport = (agent) => {
|
|
124
121
|
if (!agent) return true;
|
|
@@ -145,8 +142,6 @@ var resolveToolImagePolicy = (input) => {
|
|
|
145
142
|
};
|
|
146
143
|
|
|
147
144
|
export {
|
|
148
|
-
resolveCatalogImageSupport,
|
|
149
|
-
withLiveImageSupport,
|
|
150
145
|
resolveAgentImageInputSupport,
|
|
151
146
|
resolveToolImagePolicy
|
|
152
147
|
};
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deleteContentFromSpace,
|
|
3
|
+
deleteTable
|
|
4
|
+
} from "./chunk-SX6PDLBZ.js";
|
|
5
|
+
import {
|
|
6
|
+
deleteDialog
|
|
7
|
+
} from "./chunk-RL6H2A2Z.js";
|
|
8
|
+
import {
|
|
9
|
+
deleteServerSyncedCredential
|
|
10
|
+
} from "./chunk-IM7HCFB4.js";
|
|
11
|
+
import {
|
|
12
|
+
getAllMemberSpaces
|
|
13
|
+
} from "./chunk-WXD6Y7DW.js";
|
|
14
|
+
import {
|
|
15
|
+
read,
|
|
16
|
+
remove,
|
|
17
|
+
selectById
|
|
18
|
+
} from "./chunk-76B6YUQS.js";
|
|
19
|
+
import {
|
|
20
|
+
emitUserDataUpdated
|
|
21
|
+
} from "./chunk-GYFKKTDI.js";
|
|
22
|
+
import {
|
|
23
|
+
DEVICE_LOCAL_OWNER_ID,
|
|
24
|
+
getRuntimeServerContext,
|
|
25
|
+
isDeviceLocalOwnerId,
|
|
26
|
+
selectRuntimeSnapshot
|
|
27
|
+
} from "./chunk-42JZNSAY.js";
|
|
28
|
+
import {
|
|
29
|
+
selectIdentityUserId
|
|
30
|
+
} from "./chunk-YM5XULB2.js";
|
|
31
|
+
import {
|
|
32
|
+
googleSessionRequestToken,
|
|
33
|
+
isGoogleAuthoritySession
|
|
34
|
+
} from "./chunk-I3NWAILT.js";
|
|
35
|
+
import {
|
|
36
|
+
createFileCredentialBroker
|
|
37
|
+
} from "./chunk-E6A5NHDH.js";
|
|
38
|
+
import {
|
|
39
|
+
isAgentKey,
|
|
40
|
+
isAppKey,
|
|
41
|
+
isFileKey,
|
|
42
|
+
isPageKey,
|
|
43
|
+
isTableMetaKey,
|
|
44
|
+
isTaskKey
|
|
45
|
+
} from "./chunk-DLXL4NSL.js";
|
|
46
|
+
import {
|
|
47
|
+
isDialogKey
|
|
48
|
+
} from "./chunk-OJKUU3LP.js";
|
|
49
|
+
import {
|
|
50
|
+
asNonEmptyStringArray
|
|
51
|
+
} from "./chunk-I42VC5KR.js";
|
|
52
|
+
import {
|
|
53
|
+
asTrimmedString
|
|
54
|
+
} from "./chunk-3EUW3WEO.js";
|
|
55
|
+
import {
|
|
56
|
+
API_ENDPOINTS
|
|
57
|
+
} from "./chunk-LCBAMY2M.js";
|
|
58
|
+
import {
|
|
59
|
+
asOptionalTrimmedString
|
|
60
|
+
} from "./chunk-G3SUCT4W.js";
|
|
61
|
+
|
|
62
|
+
// packages/app/hooks/deleteOwnershipGuard.ts
|
|
63
|
+
function resolveDeleteOwnershipGuard(input) {
|
|
64
|
+
const actor = typeof input.actorUserId === "string" ? input.actorUserId.trim() : "";
|
|
65
|
+
const owner = typeof input.ownerId === "string" ? input.ownerId.trim() : "";
|
|
66
|
+
const recordLoaded = input.recordLoaded !== false;
|
|
67
|
+
if (!actor) return "unknown";
|
|
68
|
+
if (owner) {
|
|
69
|
+
if (owner === actor || owner === DEVICE_LOCAL_OWNER_ID) return "allow";
|
|
70
|
+
return "deny";
|
|
71
|
+
}
|
|
72
|
+
if (isDeviceLocalOwnerId(actor) && recordLoaded) return "allow";
|
|
73
|
+
return "unknown";
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// packages/app/hooks/deleteRemoteRecordPresence.ts
|
|
77
|
+
var DEFAULT_TIMEOUT_MS = 5e3;
|
|
78
|
+
var trimOrigin = (server) => server.trim().replace(/\/+$/, "");
|
|
79
|
+
var buildReadUrl = (server, dbKey) => `${trimOrigin(server)}${API_ENDPOINTS.DATABASE}/read/${encodeURIComponent(dbKey)}`;
|
|
80
|
+
async function probeServer(input) {
|
|
81
|
+
const { server, dbKey, token, timeoutMs, fetchImpl } = input;
|
|
82
|
+
if (!trimOrigin(server)) return { result: "unknown" };
|
|
83
|
+
const controller = new AbortController();
|
|
84
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
85
|
+
try {
|
|
86
|
+
const requestToken = googleSessionRequestToken(token ?? void 0, server, false);
|
|
87
|
+
const headers = { "Content-Type": "application/json" };
|
|
88
|
+
if (requestToken) headers.Authorization = `Bearer ${requestToken}`;
|
|
89
|
+
const res = await fetchImpl(buildReadUrl(server, dbKey), {
|
|
90
|
+
method: "GET",
|
|
91
|
+
headers,
|
|
92
|
+
signal: controller.signal,
|
|
93
|
+
// 权威探测必须拒绝重定向:登录跳转/维护页/代理路由的 302 会落到一个与数据库
|
|
94
|
+
// 端点无关的页面,那个页面的 404 不代表记录不存在。与 read.ts 的
|
|
95
|
+
// `redirect: "error"` 策略保持一致,任何重定向都按未核实处理。
|
|
96
|
+
redirect: "error",
|
|
97
|
+
...isGoogleAuthoritySession(token) ? { credentials: "omit" } : {}
|
|
98
|
+
});
|
|
99
|
+
if (res.status === 404 || res.status === 410 || res.status === 204) {
|
|
100
|
+
return { result: "absent" };
|
|
101
|
+
}
|
|
102
|
+
if (res.status !== 200) return { result: "unknown" };
|
|
103
|
+
const body = await res.json().catch(() => null);
|
|
104
|
+
if (body && typeof body === "object" && Object.keys(body).length > 0) {
|
|
105
|
+
return { result: "present", record: body };
|
|
106
|
+
}
|
|
107
|
+
return { result: "unknown" };
|
|
108
|
+
} catch {
|
|
109
|
+
return { result: "unknown" };
|
|
110
|
+
} finally {
|
|
111
|
+
clearTimeout(timeoutId);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async function probeRemoteRecordPresence(input) {
|
|
115
|
+
const dbKey = typeof input.dbKey === "string" ? input.dbKey.trim() : "";
|
|
116
|
+
if (!dbKey) return { status: "unknown", reason: "empty dbKey" };
|
|
117
|
+
const servers = [];
|
|
118
|
+
for (const candidate of input.servers ?? []) {
|
|
119
|
+
const origin = trimOrigin(candidate ?? "");
|
|
120
|
+
if (!origin || servers.includes(origin)) continue;
|
|
121
|
+
servers.push(origin);
|
|
122
|
+
}
|
|
123
|
+
if (servers.length === 0) {
|
|
124
|
+
return { status: "unknown", reason: "no server to probe" };
|
|
125
|
+
}
|
|
126
|
+
const timeoutMs = typeof input.timeoutMs === "number" && input.timeoutMs > 0 ? input.timeoutMs : DEFAULT_TIMEOUT_MS;
|
|
127
|
+
const fetchImpl = input.fetchImpl ?? fetch;
|
|
128
|
+
const probes = await Promise.all(
|
|
129
|
+
servers.map(
|
|
130
|
+
(server) => probeServer({ server, dbKey, token: input.token, timeoutMs, fetchImpl }).then((value) => ({ server, ...value })).catch(() => ({ server, result: "unknown" }))
|
|
131
|
+
)
|
|
132
|
+
);
|
|
133
|
+
const present = probes.find((probe) => probe.result === "present");
|
|
134
|
+
if (present) return { status: "present", record: present.record };
|
|
135
|
+
if (probes.some((probe) => probe.result !== "absent")) {
|
|
136
|
+
return { status: "unknown", reason: "probe inconclusive" };
|
|
137
|
+
}
|
|
138
|
+
return { status: "absent" };
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// packages/agent-runtime/deleteAgentLocalCredential.ts
|
|
142
|
+
var AGENT_LOCAL_CREDENTIAL_DELETE_FAILED_MESSAGE = "Agent was deleted, but local API key cleanup failed. You may remove the leftover credential manually if needed.";
|
|
143
|
+
var createAgentLocalCredentialBroker = createFileCredentialBroker;
|
|
144
|
+
function isPublicAgentProjectionKey(dbKey) {
|
|
145
|
+
const key = asTrimmedString(dbKey);
|
|
146
|
+
return key.startsWith("agent-pub-");
|
|
147
|
+
}
|
|
148
|
+
function extractAgentLocalCredentialRef(record) {
|
|
149
|
+
if (!record || typeof record !== "object") return null;
|
|
150
|
+
const value = record.credentialRef;
|
|
151
|
+
return asOptionalTrimmedString(value) ?? null;
|
|
152
|
+
}
|
|
153
|
+
async function deleteAgentLocalCredentialRef(credentialRef, options) {
|
|
154
|
+
const ref = asTrimmedString(credentialRef);
|
|
155
|
+
if (!ref) {
|
|
156
|
+
return { deleted: false, skipped: true };
|
|
157
|
+
}
|
|
158
|
+
try {
|
|
159
|
+
const factory = options?.brokerFactory ?? createAgentLocalCredentialBroker;
|
|
160
|
+
const broker = factory();
|
|
161
|
+
await broker.delete(ref);
|
|
162
|
+
return { deleted: true };
|
|
163
|
+
} catch {
|
|
164
|
+
return {
|
|
165
|
+
deleted: false,
|
|
166
|
+
warning: AGENT_LOCAL_CREDENTIAL_DELETE_FAILED_MESSAGE
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// packages/app/hooks/deleteDbKey.ts
|
|
172
|
+
var performDirectDelete = async (dispatch, getState, contentKey, preferredServerOrigin, includeAttachments) => {
|
|
173
|
+
if (isDialogKey(contentKey)) {
|
|
174
|
+
await dispatch(
|
|
175
|
+
deleteDialog({ dialogKey: contentKey, includeAttachments })
|
|
176
|
+
).unwrap();
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (isTableMetaKey(contentKey)) {
|
|
180
|
+
const result = await dispatch(deleteTable({ dbKey: contentKey }));
|
|
181
|
+
await result.unwrap();
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (isAgentKey(contentKey)) {
|
|
185
|
+
let credentialRef = null;
|
|
186
|
+
let credentialSynced = false;
|
|
187
|
+
if (!isPublicAgentProjectionKey(contentKey)) {
|
|
188
|
+
try {
|
|
189
|
+
let record = selectById(getState(), contentKey);
|
|
190
|
+
if (!record) {
|
|
191
|
+
try {
|
|
192
|
+
record = await dispatch(
|
|
193
|
+
read({
|
|
194
|
+
dbKey: contentKey,
|
|
195
|
+
preferredServerOrigin
|
|
196
|
+
})
|
|
197
|
+
).unwrap();
|
|
198
|
+
} catch {
|
|
199
|
+
record = null;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
credentialRef = extractAgentLocalCredentialRef(record);
|
|
203
|
+
if (record && typeof record === "object" && "credentialSynced" in record) {
|
|
204
|
+
credentialSynced = record.credentialSynced === true;
|
|
205
|
+
}
|
|
206
|
+
} catch {
|
|
207
|
+
credentialRef = null;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
await dispatch(
|
|
211
|
+
remove({
|
|
212
|
+
dbKey: contentKey,
|
|
213
|
+
preferredServerOrigin
|
|
214
|
+
})
|
|
215
|
+
).unwrap();
|
|
216
|
+
if (credentialRef) {
|
|
217
|
+
const cleanup = await deleteAgentLocalCredentialRef(credentialRef);
|
|
218
|
+
if (!cleanup.deleted && "warning" in cleanup) {
|
|
219
|
+
console.warn(
|
|
220
|
+
"[deleteDbKey] local API credential cleanup failed after agent delete:",
|
|
221
|
+
cleanup.warning
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (credentialRef && credentialSynced) {
|
|
226
|
+
try {
|
|
227
|
+
const { currentServer, currentToken } = selectRuntimeSnapshot(
|
|
228
|
+
getState()
|
|
229
|
+
);
|
|
230
|
+
if (currentServer && currentToken) {
|
|
231
|
+
await deleteServerSyncedCredential(
|
|
232
|
+
{ currentServer, authToken: currentToken },
|
|
233
|
+
credentialRef
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
} catch {
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (isAppKey(contentKey) || isPageKey(contentKey) || isFileKey(contentKey) || isTaskKey(contentKey)) {
|
|
242
|
+
await dispatch(
|
|
243
|
+
remove({
|
|
244
|
+
dbKey: contentKey,
|
|
245
|
+
preferredServerOrigin
|
|
246
|
+
})
|
|
247
|
+
).unwrap();
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
var resolveDeleteInput = (input) => {
|
|
251
|
+
if (typeof input === "string" && input.trim()) {
|
|
252
|
+
return { contentKey: input };
|
|
253
|
+
}
|
|
254
|
+
if (input && typeof input === "object") {
|
|
255
|
+
const candidates = [input.contentKey, input.dbKey, input.key];
|
|
256
|
+
const preferredServerOrigin = asNonEmptyStringArray([
|
|
257
|
+
input.preferredServerOrigin,
|
|
258
|
+
input.serverOrigin
|
|
259
|
+
])[0];
|
|
260
|
+
const inputSpaceId = typeof input.spaceId === "string" && input.spaceId.trim().length > 0 ? input.spaceId : null;
|
|
261
|
+
const includeAttachments = input.includeAttachments === true;
|
|
262
|
+
for (const candidate of candidates) {
|
|
263
|
+
if (typeof candidate === "string" && candidate.trim()) {
|
|
264
|
+
return {
|
|
265
|
+
contentKey: candidate,
|
|
266
|
+
preferredServerOrigin,
|
|
267
|
+
inputSpaceId,
|
|
268
|
+
includeAttachments
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
throw new Error("Invalid delete key");
|
|
274
|
+
};
|
|
275
|
+
var extractDeleteErrorMessage = (error, seen = /* @__PURE__ */ new Set(), depth = 0) => {
|
|
276
|
+
if (depth > 8) {
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
if (error instanceof Error && error.message.trim()) {
|
|
280
|
+
return error.message;
|
|
281
|
+
}
|
|
282
|
+
if (typeof error === "string" && error.trim()) {
|
|
283
|
+
return error;
|
|
284
|
+
}
|
|
285
|
+
if (!error || typeof error !== "object") {
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
if (seen.has(error)) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
seen.add(error);
|
|
292
|
+
const record = error;
|
|
293
|
+
const directKeys = ["message", "error", "detail", "title"];
|
|
294
|
+
for (const key of directKeys) {
|
|
295
|
+
const value = record[key];
|
|
296
|
+
if (typeof value === "string" && value.trim()) {
|
|
297
|
+
return value;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
const nestedKeys = ["payload", "data", "cause"];
|
|
301
|
+
for (const key of nestedKeys) {
|
|
302
|
+
const message = extractDeleteErrorMessage(record[key], seen, depth + 1);
|
|
303
|
+
if (message) {
|
|
304
|
+
return message;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (Array.isArray(record.errors)) {
|
|
308
|
+
const messages = record.errors.map((item) => extractDeleteErrorMessage(item, seen, depth + 1)).filter((item) => Boolean(item));
|
|
309
|
+
if (messages.length > 0) {
|
|
310
|
+
return messages.join("\n");
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
try {
|
|
314
|
+
const serialized = JSON.stringify(error);
|
|
315
|
+
if (serialized && serialized !== "{}") {
|
|
316
|
+
return serialized;
|
|
317
|
+
}
|
|
318
|
+
} catch {
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
return null;
|
|
322
|
+
};
|
|
323
|
+
var getDeleteErrorMessage = (error, fallback = "Delete failed") => {
|
|
324
|
+
return extractDeleteErrorMessage(error) ?? fallback;
|
|
325
|
+
};
|
|
326
|
+
var normalizeDeleteError = (error) => {
|
|
327
|
+
if (error instanceof Error && error.message.trim()) {
|
|
328
|
+
return error;
|
|
329
|
+
}
|
|
330
|
+
return new Error(getDeleteErrorMessage(error));
|
|
331
|
+
};
|
|
332
|
+
var deleteDbKey = (input, spaceId, options) => async (dispatch, getState) => {
|
|
333
|
+
try {
|
|
334
|
+
const {
|
|
335
|
+
contentKey,
|
|
336
|
+
preferredServerOrigin,
|
|
337
|
+
inputSpaceId,
|
|
338
|
+
includeAttachments
|
|
339
|
+
} = resolveDeleteInput(input);
|
|
340
|
+
if (options?.requireOwnership) {
|
|
341
|
+
const state = getState();
|
|
342
|
+
let ownedRecord = selectById(state, contentKey);
|
|
343
|
+
if (!ownedRecord) {
|
|
344
|
+
try {
|
|
345
|
+
ownedRecord = await dispatch(
|
|
346
|
+
read({ dbKey: contentKey, preferredServerOrigin })
|
|
347
|
+
).unwrap();
|
|
348
|
+
} catch {
|
|
349
|
+
ownedRecord = null;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
const actorUserId = selectIdentityUserId(state);
|
|
353
|
+
let verdict = resolveDeleteOwnershipGuard({
|
|
354
|
+
ownerId: ownedRecord?.userId ?? ownedRecord?.ownerId,
|
|
355
|
+
actorUserId,
|
|
356
|
+
recordLoaded: Boolean(ownedRecord)
|
|
357
|
+
});
|
|
358
|
+
if (verdict === "unknown" && actorUserId) {
|
|
359
|
+
const { remoteServers, currentToken } = getRuntimeServerContext(
|
|
360
|
+
state,
|
|
361
|
+
preferredServerOrigin
|
|
362
|
+
);
|
|
363
|
+
const presence = await probeRemoteRecordPresence({
|
|
364
|
+
dbKey: contentKey,
|
|
365
|
+
servers: remoteServers,
|
|
366
|
+
token: currentToken
|
|
367
|
+
});
|
|
368
|
+
if (presence.status === "present") {
|
|
369
|
+
const remoteRecord = presence.record;
|
|
370
|
+
verdict = resolveDeleteOwnershipGuard({
|
|
371
|
+
ownerId: remoteRecord?.userId ?? remoteRecord?.ownerId,
|
|
372
|
+
actorUserId,
|
|
373
|
+
recordLoaded: true
|
|
374
|
+
});
|
|
375
|
+
} else if (presence.status === "absent") {
|
|
376
|
+
verdict = "allow";
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
if (verdict === "deny") {
|
|
380
|
+
throw new Error("\u65E0\u6743\u5220\u9664\u4ED6\u4EBA\u5185\u5BB9");
|
|
381
|
+
}
|
|
382
|
+
if (verdict !== "allow") {
|
|
383
|
+
throw new Error("\u65E0\u6CD5\u9A8C\u8BC1\u5185\u5BB9\u6240\u6709\u6743\uFF0C\u672A\u5220\u9664\uFF08\u53EF\u7A0D\u540E\u91CD\u8BD5\uFF09");
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
let cachedRecordForSpace;
|
|
387
|
+
try {
|
|
388
|
+
const currentState = getState();
|
|
389
|
+
if (currentState && (currentState.db || currentState.entities)) {
|
|
390
|
+
cachedRecordForSpace = selectById(currentState, contentKey);
|
|
391
|
+
}
|
|
392
|
+
} catch {
|
|
393
|
+
cachedRecordForSpace = void 0;
|
|
394
|
+
}
|
|
395
|
+
const cachedSpaceId = typeof cachedRecordForSpace?.spaceId === "string" && cachedRecordForSpace.spaceId.trim().length > 0 ? cachedRecordForSpace.spaceId.trim() : null;
|
|
396
|
+
const effectiveSpaceId = typeof spaceId === "string" && spaceId.trim().length > 0 ? spaceId : inputSpaceId ?? cachedSpaceId;
|
|
397
|
+
await performDirectDelete(
|
|
398
|
+
dispatch,
|
|
399
|
+
getState,
|
|
400
|
+
contentKey,
|
|
401
|
+
preferredServerOrigin,
|
|
402
|
+
includeAttachments
|
|
403
|
+
);
|
|
404
|
+
const spaceIds = isAppKey(contentKey) ? /* @__PURE__ */ new Set([
|
|
405
|
+
effectiveSpaceId,
|
|
406
|
+
...getAllMemberSpaces().map((space) => space.spaceId)
|
|
407
|
+
]) : /* @__PURE__ */ new Set([effectiveSpaceId]);
|
|
408
|
+
await Promise.all(
|
|
409
|
+
[...spaceIds].filter((spaceId2) => Boolean(spaceId2)).map(
|
|
410
|
+
(spaceId2) => dispatch(
|
|
411
|
+
deleteContentFromSpace({
|
|
412
|
+
contentKey,
|
|
413
|
+
spaceId: spaceId2,
|
|
414
|
+
skipEntityDelete: true,
|
|
415
|
+
...preferredServerOrigin ? { sourceServerOrigin: preferredServerOrigin } : {}
|
|
416
|
+
})
|
|
417
|
+
).unwrap().catch((err) => {
|
|
418
|
+
console.warn("[deleteDbKey] space cleanup failed (entity already tombstoned):", err);
|
|
419
|
+
})
|
|
420
|
+
)
|
|
421
|
+
);
|
|
422
|
+
emitUserDataUpdated({ deletedDbKey: contentKey });
|
|
423
|
+
return true;
|
|
424
|
+
} catch (error) {
|
|
425
|
+
throw normalizeDeleteError(error);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
export {
|
|
430
|
+
getDeleteErrorMessage,
|
|
431
|
+
deleteDbKey
|
|
432
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FKVLQNGJ.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
getIsDesktopApp
|
|
9
|
-
} from "./chunk-HDKMVYNJ.js";
|
|
6
|
+
} from "./chunk-76B6YUQS.js";
|
|
10
7
|
import {
|
|
11
8
|
selectIdentityToken
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YM5XULB2.js";
|
|
10
|
+
import {
|
|
11
|
+
getIsDesktopApp
|
|
12
|
+
} from "./chunk-I3NWAILT.js";
|
|
13
13
|
|
|
14
14
|
// packages/ai/agent/cliChatClient.ts
|
|
15
15
|
function getCliChatRequestConfig(thunkApi) {
|
|
@@ -7,13 +7,16 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
readDbRecord,
|
|
9
9
|
writeAgentRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EMFZXJTN.js";
|
|
11
11
|
import {
|
|
12
12
|
parseUserIdFromAuthToken,
|
|
13
13
|
readOption,
|
|
14
14
|
resolveAuthToken,
|
|
15
15
|
resolveServerUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JUNYPVL6.js";
|
|
17
|
+
import {
|
|
18
|
+
hasCliFlag
|
|
19
|
+
} from "./chunk-RF576RYE.js";
|
|
17
20
|
import {
|
|
18
21
|
NOLO_CLUSTER_SERVERS
|
|
19
22
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -89,10 +92,10 @@ async function removePageFromSpace(params) {
|
|
|
89
92
|
|
|
90
93
|
// packages/cli/docCommandShared.ts
|
|
91
94
|
function hasHelpArg(args) {
|
|
92
|
-
return args
|
|
95
|
+
return hasCliFlag(args, "--help") || hasCliFlag(args, "-h");
|
|
93
96
|
}
|
|
94
97
|
function hasFlag(args, flag) {
|
|
95
|
-
return args
|
|
98
|
+
return hasCliFlag(args, flag);
|
|
96
99
|
}
|
|
97
100
|
function normalizeBaseUrl(base) {
|
|
98
101
|
return normalizeServerOrigin(base);
|