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
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
listLocalWorkspaceSkillCatalogEntries,
|
|
10
10
|
parseSkillFrontmatter,
|
|
11
11
|
resolveSkillByName
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-WIVVNJUS.js";
|
|
13
|
+
import "./chunk-FBNVJ2TO.js";
|
|
14
|
+
import "./chunk-Z3KTXWWB.js";
|
|
15
15
|
import "./chunk-2SXN7LAY.js";
|
|
16
16
|
import "./chunk-KHCLMKZZ.js";
|
|
17
17
|
import "./chunk-U67V476Y.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W2RQYNPI.js";
|
|
4
4
|
import "./chunk-BYXBJQAS.js";
|
|
5
5
|
import {
|
|
6
6
|
createSpaceKey,
|
|
@@ -11,107 +11,118 @@ import {
|
|
|
11
11
|
} from "./chunk-3PVYUPXK.js";
|
|
12
12
|
import {
|
|
13
13
|
readLiveDbRecordAfterTombstoneMerge
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FGD4NMTP.js";
|
|
15
15
|
import {
|
|
16
16
|
readDbRecord,
|
|
17
17
|
writeAgentRecord
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-EMFZXJTN.js";
|
|
19
|
+
import "./chunk-NTBTVKKB.js";
|
|
20
20
|
import "./chunk-AMWMV56B.js";
|
|
21
21
|
import "./chunk-UEILX4EV.js";
|
|
22
22
|
import "./chunk-GBWGPTA7.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-LHJB4BXJ.js";
|
|
24
|
+
import "./chunk-GMBWWBSJ.js";
|
|
25
25
|
import "./chunk-ZNFJWEN4.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-BKP325XS.js";
|
|
27
|
+
import "./chunk-Q5FJJ6XI.js";
|
|
28
28
|
import "./chunk-2E4BYAUE.js";
|
|
29
29
|
import "./chunk-AL3TYDIF.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-HNUWUO75.js";
|
|
30
|
+
import "./chunk-DDKA6V6X.js";
|
|
32
31
|
import "./chunk-CHOZJMJS.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-3R4AYHJR.js";
|
|
33
|
+
import "./chunk-AQNWWJLH.js";
|
|
34
|
+
import "./chunk-XJW6SLBZ.js";
|
|
35
35
|
import "./chunk-BYXBJQAS.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-RNLKWUVY.js";
|
|
37
|
+
import "./chunk-CL33RFD7.js";
|
|
38
38
|
import "./chunk-56GBUMO5.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-D3ONA3FP.js";
|
|
40
|
+
import "./chunk-HVRG27HI.js";
|
|
41
41
|
import "./chunk-LS5KAVFQ.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-2MIZHEND.js";
|
|
43
|
+
import "./chunk-4IVMDQBA.js";
|
|
44
|
+
import "./chunk-2OROOEOQ.js";
|
|
45
|
+
import "./chunk-TXMFSGRY.js";
|
|
46
|
+
import "./chunk-CA7LGAHV.js";
|
|
47
|
+
import "./chunk-3QMN3T6L.js";
|
|
48
|
+
import "./chunk-LXP53WGF.js";
|
|
49
|
+
import "./chunk-4Y6CZ2N4.js";
|
|
50
|
+
import "./chunk-G5IAIGGD.js";
|
|
50
51
|
import "./chunk-5ZUL4CUO.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-CEIWXKHP.js";
|
|
52
53
|
import "./chunk-H57T64RA.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-SR4FE5VD.js";
|
|
54
|
+
import "./chunk-WMBJDXMY.js";
|
|
55
55
|
import "./chunk-5MMAK75Q.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-GX2MFKF3.js";
|
|
57
57
|
import "./chunk-E6A5NHDH.js";
|
|
58
58
|
import "./chunk-KX6YBIHG.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-2I4R6ZRV.js";
|
|
60
60
|
import "./chunk-HEVRQGGH.js";
|
|
61
61
|
import "./chunk-EWQ3HGNZ.js";
|
|
62
62
|
import "./chunk-PSCNXBYA.js";
|
|
63
63
|
import "./chunk-IVK2KT3H.js";
|
|
64
64
|
import "./chunk-DWLEOOGR.js";
|
|
65
65
|
import "./chunk-7DPNBQSV.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-GYX6XTAI.js";
|
|
66
|
+
import "./chunk-FBNVJ2TO.js";
|
|
67
|
+
import "./chunk-Z3KTXWWB.js";
|
|
69
68
|
import "./chunk-2SXN7LAY.js";
|
|
69
|
+
import "./chunk-HNMXYYJR.js";
|
|
70
|
+
import "./chunk-OW765XBU.js";
|
|
70
71
|
import "./chunk-G7Y4GXTY.js";
|
|
71
72
|
import "./chunk-6UBGXX2W.js";
|
|
72
73
|
import "./chunk-BV3FLP2L.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-W5GKF5ZW.js";
|
|
75
|
+
import "./chunk-KAHYBAEN.js";
|
|
76
|
+
import "./chunk-J42X32PV.js";
|
|
75
77
|
import "./chunk-EUGTFFO6.js";
|
|
76
78
|
import "./chunk-AETZ7AD6.js";
|
|
77
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-ZQAADXSF.js";
|
|
78
80
|
import "./chunk-KHCLMKZZ.js";
|
|
79
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-DLXL4NSL.js";
|
|
80
82
|
import "./chunk-OJKUU3LP.js";
|
|
81
83
|
import "./chunk-YZMNK53S.js";
|
|
82
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-6KUTNAPU.js";
|
|
83
85
|
import "./chunk-BR3GT6MR.js";
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-FOC4TORM.js";
|
|
87
|
+
import "./chunk-UB7NV7NN.js";
|
|
88
|
+
import "./chunk-O7ZY6SUK.js";
|
|
89
|
+
import "./chunk-KGKTN2NX.js";
|
|
90
|
+
import "./chunk-BVYHE6QD.js";
|
|
91
|
+
import "./chunk-HJTI7RZV.js";
|
|
92
|
+
import "./chunk-ZC3CMUKU.js";
|
|
93
|
+
import "./chunk-YRPIUIEQ.js";
|
|
88
94
|
import "./chunk-M2EJHDJP.js";
|
|
89
95
|
import "./chunk-I42VC5KR.js";
|
|
96
|
+
import "./chunk-3EUW3WEO.js";
|
|
97
|
+
import "./chunk-WWC7I6TA.js";
|
|
90
98
|
import "./chunk-U6VC4MU4.js";
|
|
99
|
+
import "./chunk-RI7SXDJW.js";
|
|
100
|
+
import "./chunk-7LR2IFUH.js";
|
|
101
|
+
import "./chunk-JRTNUU5Z.js";
|
|
102
|
+
import "./chunk-KUG52IAP.js";
|
|
91
103
|
import {
|
|
92
104
|
parseUserIdFromAuthToken,
|
|
93
105
|
readOption,
|
|
94
106
|
resolveAuthToken,
|
|
95
107
|
resolveServerCandidates,
|
|
96
108
|
resolveServerUrl
|
|
97
|
-
} from "./chunk-
|
|
98
|
-
import
|
|
109
|
+
} from "./chunk-JUNYPVL6.js";
|
|
110
|
+
import {
|
|
111
|
+
hasCliFlag
|
|
112
|
+
} from "./chunk-RF576RYE.js";
|
|
113
|
+
import "./chunk-72VWN4VK.js";
|
|
99
114
|
import "./chunk-LCBAMY2M.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-EJQE5HB7.js";
|
|
102
|
-
import "./chunk-6SOWMEAY.js";
|
|
103
|
-
import "./chunk-HNMXYYJR.js";
|
|
104
|
-
import "./chunk-LVZVSLKO.js";
|
|
105
|
-
import "./chunk-2JHGUL5K.js";
|
|
106
|
-
import "./chunk-3EUW3WEO.js";
|
|
107
|
-
import "./chunk-WWC7I6TA.js";
|
|
108
|
-
import "./chunk-OKH74FML.js";
|
|
109
|
-
import "./chunk-JRTNUU5Z.js";
|
|
110
|
-
import "./chunk-KUG52IAP.js";
|
|
115
|
+
import "./chunk-IV6VUVLJ.js";
|
|
111
116
|
import "./chunk-G3SUCT4W.js";
|
|
117
|
+
import "./chunk-FI4DPLR7.js";
|
|
112
118
|
import "./chunk-4SN6J65J.js";
|
|
113
119
|
import "./chunk-CF7PE763.js";
|
|
114
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-4O22PGNQ.js";
|
|
121
|
+
import "./chunk-DSBRIUX5.js";
|
|
122
|
+
import "./chunk-35JIFLIG.js";
|
|
123
|
+
import "./chunk-SR57FDTX.js";
|
|
124
|
+
import "./chunk-MDAYRIP7.js";
|
|
125
|
+
import "./chunk-G22P2J7O.js";
|
|
115
126
|
import "./chunk-QSJ3HFEF.js";
|
|
116
127
|
import "./chunk-U67V476Y.js";
|
|
117
128
|
|
|
@@ -162,11 +173,44 @@ function resolveUploadMimeType(extension) {
|
|
|
162
173
|
const key = normalized.startsWith(".") ? normalized : `.${normalized}`;
|
|
163
174
|
return UPLOAD_MIME_BY_EXTENSION[key] ?? "application/octet-stream";
|
|
164
175
|
}
|
|
176
|
+
function resolveUploadName(args) {
|
|
177
|
+
const fileExt = extname(args.filePath).toLowerCase();
|
|
178
|
+
if (args.displayName === void 0) return basename(args.filePath);
|
|
179
|
+
const raw = args.displayName.trim();
|
|
180
|
+
if (!raw) {
|
|
181
|
+
throw new Error("space upload --name must not be empty; omit --name to keep the original file name.");
|
|
182
|
+
}
|
|
183
|
+
if (/[\u0000-\u001f\u007f]/.test(raw)) {
|
|
184
|
+
throw new Error(
|
|
185
|
+
"space upload --name must not contain control characters (tab, newline, CR, DEL, \u2026)."
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
if (raw === "." || raw === ".." || raw.includes("/") || raw.includes("\\")) {
|
|
189
|
+
throw new Error(
|
|
190
|
+
`space upload --name must be a plain file name without path separators, got: ${raw}`
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
if (basename(raw) !== raw) {
|
|
194
|
+
throw new Error(`space upload --name must be a plain file name, got: ${raw}`);
|
|
195
|
+
}
|
|
196
|
+
const rawExt = extname(raw);
|
|
197
|
+
if (!rawExt) return `${raw}${fileExt}`;
|
|
198
|
+
if (rawExt.toLowerCase() !== fileExt) {
|
|
199
|
+
throw new Error(
|
|
200
|
+
`space upload --name extension (${rawExt}) must match the uploaded file extension (${fileExt}); the stored MIME type is inferred from the real file name.`
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
return raw;
|
|
204
|
+
}
|
|
205
|
+
function resolveFilePageUrl(args) {
|
|
206
|
+
const pageKey = encodeURIComponent(args.fileDbKey);
|
|
207
|
+
return args.spaceId ? `${args.serverUrl}/space/${args.spaceId}/${pageKey}` : `${args.serverUrl}/${pageKey}`;
|
|
208
|
+
}
|
|
165
209
|
function hasHelpArg(args) {
|
|
166
|
-
return args
|
|
210
|
+
return hasCliFlag(args, "--help") || hasCliFlag(args, "-h");
|
|
167
211
|
}
|
|
168
212
|
function hasFlag(args, flag) {
|
|
169
|
-
return args
|
|
213
|
+
return hasCliFlag(args, flag);
|
|
170
214
|
}
|
|
171
215
|
function writeOutput(deps, text) {
|
|
172
216
|
(deps.output ?? process.stdout).write(text);
|
|
@@ -222,12 +266,26 @@ Options:
|
|
|
222
266
|
}
|
|
223
267
|
function printUploadUsage(output) {
|
|
224
268
|
output.write(`Usage:
|
|
225
|
-
nolo space upload --space <spaceId> --file <path>
|
|
269
|
+
nolo space upload --space <spaceId> --file <path> [--name <displayName>]
|
|
270
|
+
nolo space upload --personal --file <path> [--name <displayName>]
|
|
271
|
+
|
|
272
|
+
Target (exactly one is required):
|
|
273
|
+
--space <spaceId> Upload into a space (members-only).
|
|
274
|
+
--personal, --private-storage
|
|
275
|
+
Upload into the current user's personal storage
|
|
276
|
+
(outside any space; no space contents record).
|
|
226
277
|
|
|
227
278
|
Options:
|
|
279
|
+
--name <displayName> Override the displayed file name, e.g.
|
|
280
|
+
"\u6743\u529B\u4E0E\u8FDB\u6B65 - \u8FBE\u9F99\xB7\u963F\u897F\u83AB\u683C\u9C81.epub". Must be a bare
|
|
281
|
+
file name (no path separators); when the extension is
|
|
282
|
+
omitted the real file's extension is appended, and a
|
|
283
|
+
different extension is rejected because the stored MIME
|
|
284
|
+
type comes from the real file name.
|
|
228
285
|
--server <url> Default API target.
|
|
229
286
|
--token <jwt> Auth token. Required for writes.
|
|
230
|
-
--json Print machine-readable JSON
|
|
287
|
+
--json Print machine-readable JSON (fileId, dbKey, uploadName,
|
|
288
|
+
mimeType, target, pageUrl).
|
|
231
289
|
|
|
232
290
|
Note:
|
|
233
291
|
Any file type is accepted as long as the file name has a non-empty extension
|
|
@@ -447,9 +505,19 @@ async function runSpaceUploadCommand(args, deps) {
|
|
|
447
505
|
printUploadUsage(deps.output ?? process.stdout);
|
|
448
506
|
return 0;
|
|
449
507
|
}
|
|
508
|
+
const personalStorage = hasFlag(args, "--personal") || hasFlag(args, "--private-storage");
|
|
450
509
|
const spaceIdRaw = readOption(args, "--space") ?? readOption(args, "--space-id");
|
|
451
510
|
const filePath = readOption(args, "--file");
|
|
452
|
-
if (
|
|
511
|
+
if (personalStorage && spaceIdRaw?.trim()) {
|
|
512
|
+
throw new Error(
|
|
513
|
+
"space upload takes exactly one target: --space <spaceId> or --personal (they are mutually exclusive)."
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
if (!personalStorage && !spaceIdRaw?.trim()) {
|
|
517
|
+
throw new Error(
|
|
518
|
+
"space upload requires a target: --space <spaceId> for a space, or --personal for your own private storage."
|
|
519
|
+
);
|
|
520
|
+
}
|
|
453
521
|
if (!filePath?.trim()) throw new Error("space upload requires --file <path>.");
|
|
454
522
|
const ext = extname(filePath).toLowerCase();
|
|
455
523
|
if (!ext || ext === ".") {
|
|
@@ -458,21 +526,24 @@ async function runSpaceUploadCommand(args, deps) {
|
|
|
458
526
|
);
|
|
459
527
|
}
|
|
460
528
|
const mimeType = resolveUploadMimeType(ext);
|
|
529
|
+
const uploadName = resolveUploadName({
|
|
530
|
+
filePath,
|
|
531
|
+
displayName: readOption(args, "--name")
|
|
532
|
+
});
|
|
461
533
|
const { authToken, userId } = requireTokenUser(args, deps.env);
|
|
462
534
|
const serverUrl = resolveServerUrl(args, deps.env);
|
|
463
535
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
464
|
-
const spaceId = normalizeSpaceId(spaceIdRaw);
|
|
536
|
+
const spaceId = personalStorage ? null : normalizeSpaceId(spaceIdRaw);
|
|
465
537
|
const fileContent = readFileSync(filePath);
|
|
466
|
-
const spaceKey = createSpaceKey.space(spaceId);
|
|
467
|
-
const uploadName = basename(filePath);
|
|
538
|
+
const spaceKey = spaceId ? createSpaceKey.space(spaceId) : null;
|
|
468
539
|
const now = Date.now();
|
|
469
540
|
const nowIso = new Date(now).toISOString();
|
|
470
|
-
const
|
|
541
|
+
const spaceRecord = spaceKey ? (await readLiveDbRecordAfterTombstoneMerge({
|
|
471
542
|
dbKey: spaceKey,
|
|
472
543
|
authToken,
|
|
473
544
|
fetchImpl,
|
|
474
545
|
serverUrls: resolveServerCandidates(args, deps.env, serverUrl)
|
|
475
|
-
});
|
|
546
|
+
})).record : null;
|
|
476
547
|
const formData = new FormData();
|
|
477
548
|
formData.append("file", new Blob([fileContent], { type: mimeType }), uploadName);
|
|
478
549
|
const fileId = ulid();
|
|
@@ -492,17 +563,17 @@ async function runSpaceUploadCommand(args, deps) {
|
|
|
492
563
|
}),
|
|
493
564
|
dbKey: fileDbKey,
|
|
494
565
|
userId,
|
|
495
|
-
ownerType: "space",
|
|
496
|
-
ownerId: spaceId,
|
|
497
|
-
ownerDbKey: spaceKey,
|
|
498
|
-
source: "cli-space-upload",
|
|
566
|
+
ownerType: personalStorage ? "user" : "space",
|
|
567
|
+
ownerId: personalStorage ? userId : spaceId,
|
|
568
|
+
...personalStorage ? {} : { ownerDbKey: spaceKey },
|
|
569
|
+
source: personalStorage ? "cli-personal-upload" : "cli-space-upload",
|
|
499
570
|
createdAt: nowIso,
|
|
500
571
|
updatedAt: nowIso
|
|
501
572
|
}));
|
|
502
573
|
formData.append("customKey", fileDbKey);
|
|
503
574
|
formData.append("userId", userId);
|
|
504
|
-
formData.append("ownerType", "space");
|
|
505
|
-
formData.append("ownerId", spaceId);
|
|
575
|
+
formData.append("ownerType", personalStorage ? "user" : "space");
|
|
576
|
+
formData.append("ownerId", personalStorage ? userId : spaceId);
|
|
506
577
|
const uploadRes = await fetchImpl(`${serverUrl}/api/v1/db/upload`, {
|
|
507
578
|
method: "POST",
|
|
508
579
|
headers: {
|
|
@@ -516,34 +587,67 @@ async function runSpaceUploadCommand(args, deps) {
|
|
|
516
587
|
uploadData?.error?.message || uploadData?.error || `space upload failed: HTTP ${uploadRes.status}`
|
|
517
588
|
);
|
|
518
589
|
}
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
590
|
+
const rawServerMimeType = uploadData?.metadata?.mimeType;
|
|
591
|
+
const serverMimeType = typeof rawServerMimeType === "string" && rawServerMimeType.trim() ? rawServerMimeType.trim() : null;
|
|
592
|
+
const storedMimeType = serverMimeType ?? mimeType;
|
|
593
|
+
const mimeTypeSource = serverMimeType ? "server" : "inferred";
|
|
594
|
+
if (spaceRecord && spaceKey) {
|
|
595
|
+
const contents = spaceRecord.contents || {};
|
|
596
|
+
contents[fileDbKey] = {
|
|
597
|
+
...contents[fileDbKey] ?? {},
|
|
598
|
+
title: uploadName,
|
|
599
|
+
type: "file" /* FILE */,
|
|
600
|
+
contentKey: fileDbKey,
|
|
601
|
+
createdAt: contents[fileDbKey]?.createdAt ?? now,
|
|
602
|
+
updatedAt: now
|
|
603
|
+
};
|
|
604
|
+
await writeDbRecord({
|
|
605
|
+
authToken,
|
|
606
|
+
dbKey: spaceKey,
|
|
607
|
+
fetchImpl,
|
|
608
|
+
record: { ...spaceRecord, contents, updatedAt: now },
|
|
609
|
+
serverUrl,
|
|
610
|
+
userId
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
const result = {
|
|
614
|
+
...uploadData,
|
|
615
|
+
fileId,
|
|
616
|
+
dbKey: fileDbKey,
|
|
617
|
+
uploadName,
|
|
618
|
+
// MIME 口径:服务端返回的落库值优先(它与真实字节一起被持久化),
|
|
619
|
+
// 响应没给才回退到本地按扩展名推断的值,并如实标注来源。
|
|
620
|
+
mimeType: storedMimeType,
|
|
621
|
+
mimeTypeSource,
|
|
622
|
+
target: personalStorage ? "personal" : "space",
|
|
623
|
+
spaceId,
|
|
624
|
+
spaceKey,
|
|
625
|
+
pageUrl: resolveFilePageUrl({ serverUrl, fileDbKey, spaceId })
|
|
527
626
|
};
|
|
528
|
-
await writeDbRecord({
|
|
529
|
-
authToken,
|
|
530
|
-
dbKey: spaceKey,
|
|
531
|
-
fetchImpl,
|
|
532
|
-
record: { ...spaceRecord, contents, updatedAt: now },
|
|
533
|
-
serverUrl,
|
|
534
|
-
userId
|
|
535
|
-
});
|
|
536
627
|
if (hasFlag(args, "--json")) {
|
|
537
|
-
writeOutput(deps, `${JSON.stringify(
|
|
628
|
+
writeOutput(deps, `${JSON.stringify(result, null, 2)}
|
|
538
629
|
`);
|
|
630
|
+
} else if (personalStorage) {
|
|
631
|
+
writeOutput(
|
|
632
|
+
deps,
|
|
633
|
+
`Uploaded ${uploadName} to your personal storage (fileId: ${fileId})
|
|
634
|
+
page: ${result.pageUrl}
|
|
635
|
+
`
|
|
636
|
+
);
|
|
539
637
|
} else {
|
|
540
|
-
writeOutput(
|
|
541
|
-
|
|
638
|
+
writeOutput(
|
|
639
|
+
deps,
|
|
640
|
+
`Uploaded ${uploadName} to space ${spaceId} (fileId: ${fileId})
|
|
641
|
+
page: ${result.pageUrl}
|
|
642
|
+
`
|
|
643
|
+
);
|
|
542
644
|
}
|
|
543
645
|
return 0;
|
|
544
646
|
}
|
|
545
647
|
export {
|
|
648
|
+
resolveFilePageUrl,
|
|
546
649
|
resolveUploadMimeType,
|
|
650
|
+
resolveUploadName,
|
|
547
651
|
runSpaceAcceptInviteCommand,
|
|
548
652
|
runSpaceCreateCommand,
|
|
549
653
|
runSpaceInviteCommand,
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSpaceKey,
|
|
3
|
+
normalizeSpaceId
|
|
4
|
+
} from "./chunk-UAD2WT54.js";
|
|
5
|
+
import {
|
|
6
|
+
isTombstoneRecord
|
|
7
|
+
} from "./chunk-BV3FLP2L.js";
|
|
8
|
+
import "./chunk-U6VC4MU4.js";
|
|
9
|
+
import {
|
|
10
|
+
readOption,
|
|
11
|
+
resolveAuthToken,
|
|
12
|
+
resolveServerUrl
|
|
13
|
+
} from "./chunk-JUNYPVL6.js";
|
|
14
|
+
import {
|
|
15
|
+
hasCliFlag
|
|
16
|
+
} from "./chunk-RF576RYE.js";
|
|
17
|
+
import "./chunk-72VWN4VK.js";
|
|
18
|
+
import "./chunk-LCBAMY2M.js";
|
|
19
|
+
import "./chunk-IV6VUVLJ.js";
|
|
20
|
+
import "./chunk-G3SUCT4W.js";
|
|
21
|
+
import "./chunk-FI4DPLR7.js";
|
|
22
|
+
import "./chunk-4SN6J65J.js";
|
|
23
|
+
import "./chunk-CF7PE763.js";
|
|
24
|
+
import "./chunk-U67V476Y.js";
|
|
25
|
+
|
|
26
|
+
// packages/create/space/danglingRefs.ts
|
|
27
|
+
function classifySpaceContentTarget(target) {
|
|
28
|
+
if (!target || typeof target !== "object") {
|
|
29
|
+
return "missing";
|
|
30
|
+
}
|
|
31
|
+
if (isTombstoneRecord(target)) {
|
|
32
|
+
return "tombstone";
|
|
33
|
+
}
|
|
34
|
+
return "live";
|
|
35
|
+
}
|
|
36
|
+
async function buildSpaceDanglingRefReport(args) {
|
|
37
|
+
const spaceId = normalizeSpaceId(args.spaceId) || args.spaceId.trim();
|
|
38
|
+
const spaceName = (args.spaceName ?? "").trim() || spaceId;
|
|
39
|
+
const rawContents = args.contents && typeof args.contents === "object" ? args.contents : {};
|
|
40
|
+
const entries = [];
|
|
41
|
+
for (const [entryKey, rawEntry] of Object.entries(rawContents)) {
|
|
42
|
+
if (!rawEntry || typeof rawEntry !== "object") continue;
|
|
43
|
+
const entry = rawEntry;
|
|
44
|
+
if (isTombstoneRecord(entry)) continue;
|
|
45
|
+
const contentKey = typeof entry.contentKey === "string" && entry.contentKey.trim() ? entry.contentKey.trim() : entryKey;
|
|
46
|
+
const title = typeof entry.title === "string" && entry.title.trim() ? entry.title.trim() : contentKey;
|
|
47
|
+
const type = typeof entry.type === "string" && entry.type.trim() ? entry.type.trim() : "unknown";
|
|
48
|
+
entries.push({ entryKey, contentKey, title, type });
|
|
49
|
+
}
|
|
50
|
+
const concurrency = Math.max(1, Math.min(args.concurrency ?? 8, 16));
|
|
51
|
+
const dangling = [];
|
|
52
|
+
let liveCount = 0;
|
|
53
|
+
let unreadableCount = 0;
|
|
54
|
+
let cursor = 0;
|
|
55
|
+
const worker = async () => {
|
|
56
|
+
while (cursor < entries.length) {
|
|
57
|
+
const idx = cursor++;
|
|
58
|
+
const item = entries[idx];
|
|
59
|
+
let outcome;
|
|
60
|
+
try {
|
|
61
|
+
outcome = await args.probeTarget(item.contentKey);
|
|
62
|
+
} catch {
|
|
63
|
+
outcome = { status: "unreadable" };
|
|
64
|
+
}
|
|
65
|
+
if (outcome.status === "live") {
|
|
66
|
+
liveCount += 1;
|
|
67
|
+
} else if (outcome.status === "tombstone" || outcome.status === "missing") {
|
|
68
|
+
dangling.push({
|
|
69
|
+
entryKey: item.entryKey,
|
|
70
|
+
contentKey: item.contentKey,
|
|
71
|
+
title: item.title,
|
|
72
|
+
type: item.type,
|
|
73
|
+
reason: outcome.status
|
|
74
|
+
});
|
|
75
|
+
} else {
|
|
76
|
+
unreadableCount += 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
await Promise.all(
|
|
81
|
+
Array.from({ length: Math.min(concurrency, Math.max(1, entries.length)) }, () => worker())
|
|
82
|
+
);
|
|
83
|
+
dangling.sort((a, b) => a.entryKey.localeCompare(b.entryKey));
|
|
84
|
+
return {
|
|
85
|
+
spaceId,
|
|
86
|
+
spaceName,
|
|
87
|
+
totalRefs: entries.length,
|
|
88
|
+
liveCount,
|
|
89
|
+
unreadableCount,
|
|
90
|
+
dangling
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function buildPruneDanglingPatch(dangling, allowedEntryKeys) {
|
|
94
|
+
const allowSet = allowedEntryKeys && allowedEntryKeys.length > 0 ? new Set(allowedEntryKeys.map((k) => k.trim()).filter(Boolean)) : null;
|
|
95
|
+
const patchContents = {};
|
|
96
|
+
for (const item of dangling) {
|
|
97
|
+
if (allowSet && !allowSet.has(item.entryKey) && !allowSet.has(item.contentKey)) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
patchContents[item.entryKey] = null;
|
|
101
|
+
}
|
|
102
|
+
return patchContents;
|
|
103
|
+
}
|
|
104
|
+
function formatSpaceDanglingRefReport(report, options) {
|
|
105
|
+
const lines = [
|
|
106
|
+
`Space: ${report.spaceName} (${report.spaceId})`,
|
|
107
|
+
`Total refs: ${report.totalRefs} | Live: ${report.liveCount} | Dangling: ${report.dangling.length} | Unreadable (skipped): ${report.unreadableCount}`
|
|
108
|
+
];
|
|
109
|
+
if (report.dangling.length === 0) {
|
|
110
|
+
lines.push("No dangling references found.");
|
|
111
|
+
return lines.join("\n");
|
|
112
|
+
}
|
|
113
|
+
lines.push("");
|
|
114
|
+
for (const item of report.dangling) {
|
|
115
|
+
lines.push(`- [${item.reason}] ${item.type} ${item.title} (${item.entryKey})`);
|
|
116
|
+
}
|
|
117
|
+
if (options?.applied) {
|
|
118
|
+
lines.push("");
|
|
119
|
+
lines.push(`Pruned ${options.prunedCount ?? report.dangling.length} dangling reference(s).`);
|
|
120
|
+
} else {
|
|
121
|
+
lines.push("");
|
|
122
|
+
lines.push("Dry-run only. Re-run with --apply (or confirmedEntryKeys) to remove these dangling references.");
|
|
123
|
+
}
|
|
124
|
+
return lines.join("\n");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// packages/cli/spacePruneCommand.ts
|
|
128
|
+
function printPruneUsage(output) {
|
|
129
|
+
output.write(`Usage:
|
|
130
|
+
nolo space prune --space <spaceId> [--apply] [--json]
|
|
131
|
+
|
|
132
|
+
Options:
|
|
133
|
+
--space <spaceId> Target space ID to inspect (with or without space- prefix).
|
|
134
|
+
--apply Remove confirmed dangling (missing/tombstoned) references from space.contents.
|
|
135
|
+
Without --apply, runs in safe dry-run mode.
|
|
136
|
+
--json Emit machine-readable JSON output.
|
|
137
|
+
`);
|
|
138
|
+
}
|
|
139
|
+
async function runSpacePruneCommand(args, deps = {}) {
|
|
140
|
+
const output = deps.output ?? process.stdout;
|
|
141
|
+
if (hasCliFlag(args, "--help") || hasCliFlag(args, "-h")) {
|
|
142
|
+
printPruneUsage(output);
|
|
143
|
+
return 0;
|
|
144
|
+
}
|
|
145
|
+
const env = deps.env ?? process.env;
|
|
146
|
+
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
147
|
+
const serverUrl = resolveServerUrl(args, env).replace(/\/+$/, "");
|
|
148
|
+
const authToken = resolveAuthToken(args, env);
|
|
149
|
+
if (!authToken) {
|
|
150
|
+
throw new Error("space prune requires an auth token. Pass --token or set AUTH_TOKEN.");
|
|
151
|
+
}
|
|
152
|
+
const spaceIdRaw = readOption(args, "--space");
|
|
153
|
+
const spaceId = spaceIdRaw ? normalizeSpaceId(spaceIdRaw) : "";
|
|
154
|
+
if (!spaceId) {
|
|
155
|
+
throw new Error("space prune requires --space <spaceId>.");
|
|
156
|
+
}
|
|
157
|
+
const apply = hasCliFlag(args, "--apply") || hasCliFlag(args, "--fix");
|
|
158
|
+
const jsonOutput = hasCliFlag(args, "--json");
|
|
159
|
+
const headers = { Authorization: `Bearer ${authToken}` };
|
|
160
|
+
const spaceKey = createSpaceKey.space(spaceId);
|
|
161
|
+
const spaceRes = await fetchImpl(
|
|
162
|
+
`${serverUrl}/api/v1/db/read/${encodeURIComponent(spaceKey)}`,
|
|
163
|
+
{ headers }
|
|
164
|
+
);
|
|
165
|
+
if (spaceRes.status === 404) {
|
|
166
|
+
throw new Error(`Space not found: ${spaceId}`);
|
|
167
|
+
}
|
|
168
|
+
if (!spaceRes.ok) {
|
|
169
|
+
throw new Error(`Failed to read space ${spaceId}: HTTP ${spaceRes.status}`);
|
|
170
|
+
}
|
|
171
|
+
const spaceRecord = await spaceRes.json();
|
|
172
|
+
if (!spaceRecord || isTombstoneRecord(spaceRecord)) {
|
|
173
|
+
throw new Error(`Space is deleted or unavailable: ${spaceId}`);
|
|
174
|
+
}
|
|
175
|
+
const probeTarget = async (contentKey) => {
|
|
176
|
+
const res = await fetchImpl(
|
|
177
|
+
`${serverUrl}/api/v1/db/read/${encodeURIComponent(contentKey)}`,
|
|
178
|
+
{ headers }
|
|
179
|
+
);
|
|
180
|
+
if (res.status === 404) {
|
|
181
|
+
return { status: "missing" };
|
|
182
|
+
}
|
|
183
|
+
if (!res.ok) {
|
|
184
|
+
return { status: "unreadable" };
|
|
185
|
+
}
|
|
186
|
+
const target = await res.json().catch(() => null);
|
|
187
|
+
return { status: classifySpaceContentTarget(target), record: target };
|
|
188
|
+
};
|
|
189
|
+
const report = await buildSpaceDanglingRefReport({
|
|
190
|
+
spaceId,
|
|
191
|
+
spaceName: typeof spaceRecord.name === "string" ? spaceRecord.name : spaceId,
|
|
192
|
+
contents: spaceRecord.contents ?? {},
|
|
193
|
+
probeTarget
|
|
194
|
+
});
|
|
195
|
+
let prunedCount = 0;
|
|
196
|
+
if (apply && report.dangling.length > 0) {
|
|
197
|
+
const contentsPatch = buildPruneDanglingPatch(report.dangling);
|
|
198
|
+
const patchRes = await fetchImpl(
|
|
199
|
+
`${serverUrl}/api/v1/db/patch/${encodeURIComponent(spaceKey)}`,
|
|
200
|
+
{
|
|
201
|
+
method: "PATCH",
|
|
202
|
+
headers: {
|
|
203
|
+
...headers,
|
|
204
|
+
"Content-Type": "application/json"
|
|
205
|
+
},
|
|
206
|
+
body: JSON.stringify({
|
|
207
|
+
contents: contentsPatch,
|
|
208
|
+
updatedAt: Date.now()
|
|
209
|
+
})
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
if (!patchRes.ok) {
|
|
213
|
+
const detail = await patchRes.text().catch(() => "");
|
|
214
|
+
throw new Error(`Failed to prune space ${spaceId}: HTTP ${patchRes.status} ${detail}`.trim());
|
|
215
|
+
}
|
|
216
|
+
prunedCount = Object.keys(contentsPatch).length;
|
|
217
|
+
}
|
|
218
|
+
if (jsonOutput) {
|
|
219
|
+
output.write(
|
|
220
|
+
`${JSON.stringify({ ...report, applied: apply, prunedCount }, null, 2)}
|
|
221
|
+
`
|
|
222
|
+
);
|
|
223
|
+
return 0;
|
|
224
|
+
}
|
|
225
|
+
output.write(
|
|
226
|
+
`${formatSpaceDanglingRefReport(report, { applied: apply, prunedCount })}
|
|
227
|
+
`
|
|
228
|
+
);
|
|
229
|
+
return 0;
|
|
230
|
+
}
|
|
231
|
+
export {
|
|
232
|
+
runSpacePruneCommand
|
|
233
|
+
};
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
getMemoryEvidenceVNext,
|
|
10
10
|
getMemoryEvidenceVNextStrict,
|
|
11
11
|
getMemoryStateVNext,
|
|
12
|
+
iterateMemoryStatesForOwnerVNext,
|
|
12
13
|
listMemoryEntitiesVNext,
|
|
13
14
|
listMemoryRelationsFromVNext,
|
|
14
15
|
listMemoryRelationsToVNext,
|
|
@@ -20,7 +21,7 @@ import {
|
|
|
20
21
|
putMemoryRelationVNext,
|
|
21
22
|
putMemoryStateVNext,
|
|
22
23
|
retireMemoryStateVNext
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HHXF57CL.js";
|
|
24
25
|
import "./chunk-OW765XBU.js";
|
|
25
26
|
import "./chunk-U67V476Y.js";
|
|
26
27
|
export {
|
|
@@ -34,6 +35,7 @@ export {
|
|
|
34
35
|
getMemoryEvidenceVNext,
|
|
35
36
|
getMemoryEvidenceVNextStrict,
|
|
36
37
|
getMemoryStateVNext,
|
|
38
|
+
iterateMemoryStatesForOwnerVNext,
|
|
37
39
|
listMemoryEntitiesVNext,
|
|
38
40
|
listMemoryRelationsFromVNext,
|
|
39
41
|
listMemoryRelationsToVNext,
|