nolo-cli 0.259.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-MTM4BJK3.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-53NN3VSK.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
- package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-NXRWS7NS.js} +142 -126
- package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
- package/{agentListCommands-62UYUQDI.js → agentListCommands-PFXGZZ3Y.js} +87 -68
- package/{agentMachineCommands-W6TNJXEA.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-LXMADX3N.js → agentRunControl-NEK44LDM.js} +19 -12
- package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
- package/{agentSlice-3HHYUQLM.js → agentSlice-4ZJJJN4M.js} +15 -18
- package/appConfigCommands-MPHS6FHD.js +417 -0
- package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-W26WGENW.js} +68 -58
- package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-ER7IOF5E.js} +74 -59
- package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
- package/{appGetCommands-73DXOAQW.js → appGetCommands-P6GXJNUD.js} +74 -58
- package/{appListCommands-HD5LOQ3G.js → appListCommands-ACA2IZZM.js} +74 -58
- package/appMigrateCommands-OGF4E2W6.js +230 -0
- package/appSourceCommands-GAHVBRUM.js +279 -0
- package/{authCommand-V6EOMZX6.js → authCommand-PXE7NZTQ.js} +26 -40
- package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
- package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
- package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
- package/{chunk-KLMBM6P6.js → chunk-2CKFROQS.js} +2454 -1115
- package/{chunk-MJBLXJMP.js → chunk-2I4R6ZRV.js} +12 -9
- 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-L4XST72F.js → chunk-75FZ2Z7C.js} +16027 -17392
- package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
- package/{chunk-MXA54TQM.js → chunk-76K4GTY5.js} +1 -1
- package/{chunk-VNHZJEQN.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-DBJODIZ6.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-4MXYCQBS.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-MPGR4ZNR.js → chunk-CRGPRAJ4.js} +46 -42
- package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
- package/{chunk-R3TUHCSJ.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-6B2OBX5B.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-Q2EERN52.js → chunk-FF5ZRKW7.js} +12 -7
- package/{chunk-YFEK7ACQ.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-5BIDJVNX.js → chunk-G5JGA5YM.js} +180 -31
- package/{chunk-57V4PADY.js → chunk-GMBWWBSJ.js} +781 -449
- package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
- package/{chunk-KT7S7ANZ.js → chunk-GZ4I5EMM.js} +9 -9
- package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
- package/chunk-HJTI7RZV.js +94 -0
- package/{chunk-QXTEEEIN.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-JZO7KUF3.js → chunk-IM7HCFB4.js} +313 -275
- package/{chunk-UWWOWTW2.js → chunk-INN2PBW7.js} +1 -1
- package/chunk-IV6VUVLJ.js +88 -0
- package/chunk-J42X32PV.js +472 -0
- package/{chunk-UA3QTA2S.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-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
- 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-7OVOZRZF.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-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
- package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
- package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
- package/chunk-PL5RKESU.js +40 -0
- package/{chunk-MHKPUGPD.js → chunk-PQ3QZMJK.js} +20 -4
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
- package/{chunk-6YX2RAQN.js → chunk-QZCLCAYC.js} +89 -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-FEIVARWR.js → chunk-RIOAPUGV.js} +238 -25
- package/{chunk-2CT2J3O6.js → chunk-RL6H2A2Z.js} +2493 -4055
- package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
- package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
- package/chunk-S7BF2OGX.js +432 -0
- package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
- package/{chunk-KWNVPY6M.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-Y2GWUBNS.js → chunk-SX6PDLBZ.js} +279 -149
- package/{chunk-XNNBXUEM.js → chunk-T4WU747C.js} +5 -5
- package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
- package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
- package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
- package/{chunk-NCFKHYDM.js → chunk-UOLGGEEC.js} +774 -119
- package/{chunk-4EACJPZI.js → chunk-USFG4EWQ.js} +51 -42
- package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
- package/{chunk-XPETQ4MR.js → chunk-VDC3BW24.js} +24 -10
- package/chunk-VH356OQ3.js +425 -0
- package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
- package/{chunk-CJOOF4L5.js → chunk-VPAO5WQX.js} +17 -14
- package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
- package/{chunk-6BMTKYAO.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-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
- package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
- package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
- package/chunk-XT6C2QZW.js +46 -0
- package/{chunk-5YS6QHGT.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-FZENZCIA.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-IYLUK67R.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-IFYQLPGM.js → commandRegistry-TYYYTW5E.js} +260 -121
- package/{contentThunks-QCFCD2X3.js → contentThunks-E6BJ5YSX.js} +45 -43
- package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
- package/createAgentAutomationAction-L3NLCIIW.js +172 -0
- package/{createDialogAction-ZAJERW62.js → createDialogAction-QSWKRPWQ.js} +46 -42
- package/{createPageAction-QCVBMP4C.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-4IEQUALS.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-XFYID6KE.js → dialogSlice-VHPXENDZ.js} +43 -42
- package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
- package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
- package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-H4RLIUNX.js} +68 -59
- package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-OVAKCBMT.js} +68 -59
- package/{docReadCommands-EXQI7ETH.js → docReadCommands-KFISIUVA.js} +67 -58
- package/{docStore-MWFUKZL2.js → docStore-X7BEA735.js} +16 -17
- package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-VOEER36L.js} +68 -59
- package/{ebookDownloaderAgentCommand-DYSKF5ZY.js → ebookDownloaderAgentCommand-2DHPGEOQ.js} +14 -17
- package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
- package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
- package/{handleSendMessageAction-GG3TR62X.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
- package/{hostCredentialCreate-26S6DDJ5.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-VREWZWPC.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
- package/localRuntimeAuthority-3YDFZD3L.js +44 -0
- package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
- package/{machineCommands-CL5XK5UC.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-OC63TWTD.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-2NO6D6IZ.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-U7V32UTD.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
- package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
- package/{secretCommands-KVVZS7A6.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-7QKXKBDQ.js → spaceCommands-65WQHVOI.js} +68 -57
- package/spacePruneCommand-PTMRUWYJ.js +233 -0
- package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
- package/{streamAgentChatTurn-UAGFOXNJ.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-2Q2LBDUC.js → tools-UMCPIQX6.js} +73 -63
- package/{tuiRestart-4QDWLHYZ.js → tuiRestart-O7UDLNQU.js} +20 -13
- package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
- package/{updateCommands-GJGRS6JK.js → updateCommands-DXDIAQFS.js} +12 -7
- package/{updateDialogTitleAction-GGNTTI5L.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-C7LGVWYX.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-TPE7NSZ6.js +0 -194
- package/agentRunCommand-DMVGBPLI.js +0 -232
- package/chunk-2MBTWINN.js +0 -89
- package/chunk-523DITKR.js +0 -32
- package/chunk-BUDVRYES.js +0 -2213
- 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-VQX5JJNI.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-ZR5IVL4N.js +0 -862
- package/chunk-ZTHAJU3O.js +0 -2537
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
- package/cliLocalAgentRecordReader-34UKRBLY.js +0 -104
- package/deleteFile-ECU6FU5C.js +0 -55
- package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
- package/machineWsRunDispatch-TBVOYOAH.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
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CliApiError,
|
|
3
|
+
cliApiRequest,
|
|
4
|
+
formatFields,
|
|
5
|
+
outputResult,
|
|
6
|
+
printCliError,
|
|
7
|
+
resolveCliContext
|
|
8
|
+
} from "./chunk-PQ3QZMJK.js";
|
|
9
|
+
import {
|
|
10
|
+
hasFlag,
|
|
11
|
+
hasHelpArg
|
|
12
|
+
} from "./chunk-SGEBRBF3.js";
|
|
13
|
+
import "./chunk-NHLLXINQ.js";
|
|
14
|
+
import "./chunk-VF4K2QE6.js";
|
|
15
|
+
import "./chunk-UAD2WT54.js";
|
|
16
|
+
import "./chunk-LKZPX6YH.js";
|
|
17
|
+
import "./chunk-EMFZXJTN.js";
|
|
18
|
+
import "./chunk-NTBTVKKB.js";
|
|
19
|
+
import "./chunk-AMWMV56B.js";
|
|
20
|
+
import "./chunk-UEILX4EV.js";
|
|
21
|
+
import "./chunk-LHJB4BXJ.js";
|
|
22
|
+
import "./chunk-GMBWWBSJ.js";
|
|
23
|
+
import "./chunk-ZNFJWEN4.js";
|
|
24
|
+
import "./chunk-BKP325XS.js";
|
|
25
|
+
import "./chunk-Q5FJJ6XI.js";
|
|
26
|
+
import "./chunk-2E4BYAUE.js";
|
|
27
|
+
import "./chunk-AL3TYDIF.js";
|
|
28
|
+
import "./chunk-DDKA6V6X.js";
|
|
29
|
+
import "./chunk-CHOZJMJS.js";
|
|
30
|
+
import "./chunk-3R4AYHJR.js";
|
|
31
|
+
import "./chunk-AQNWWJLH.js";
|
|
32
|
+
import "./chunk-XJW6SLBZ.js";
|
|
33
|
+
import "./chunk-BYXBJQAS.js";
|
|
34
|
+
import "./chunk-RNLKWUVY.js";
|
|
35
|
+
import "./chunk-CL33RFD7.js";
|
|
36
|
+
import "./chunk-56GBUMO5.js";
|
|
37
|
+
import "./chunk-D3ONA3FP.js";
|
|
38
|
+
import "./chunk-HVRG27HI.js";
|
|
39
|
+
import "./chunk-LS5KAVFQ.js";
|
|
40
|
+
import "./chunk-2MIZHEND.js";
|
|
41
|
+
import "./chunk-4IVMDQBA.js";
|
|
42
|
+
import "./chunk-2OROOEOQ.js";
|
|
43
|
+
import "./chunk-TXMFSGRY.js";
|
|
44
|
+
import "./chunk-CA7LGAHV.js";
|
|
45
|
+
import "./chunk-3QMN3T6L.js";
|
|
46
|
+
import "./chunk-LXP53WGF.js";
|
|
47
|
+
import "./chunk-4Y6CZ2N4.js";
|
|
48
|
+
import "./chunk-G5IAIGGD.js";
|
|
49
|
+
import "./chunk-5ZUL4CUO.js";
|
|
50
|
+
import "./chunk-CEIWXKHP.js";
|
|
51
|
+
import "./chunk-H57T64RA.js";
|
|
52
|
+
import "./chunk-WMBJDXMY.js";
|
|
53
|
+
import "./chunk-5MMAK75Q.js";
|
|
54
|
+
import "./chunk-GX2MFKF3.js";
|
|
55
|
+
import "./chunk-E6A5NHDH.js";
|
|
56
|
+
import "./chunk-KX6YBIHG.js";
|
|
57
|
+
import "./chunk-2I4R6ZRV.js";
|
|
58
|
+
import "./chunk-HEVRQGGH.js";
|
|
59
|
+
import "./chunk-EWQ3HGNZ.js";
|
|
60
|
+
import "./chunk-PSCNXBYA.js";
|
|
61
|
+
import "./chunk-IVK2KT3H.js";
|
|
62
|
+
import "./chunk-DWLEOOGR.js";
|
|
63
|
+
import "./chunk-7DPNBQSV.js";
|
|
64
|
+
import "./chunk-FBNVJ2TO.js";
|
|
65
|
+
import "./chunk-Z3KTXWWB.js";
|
|
66
|
+
import "./chunk-2SXN7LAY.js";
|
|
67
|
+
import "./chunk-HNMXYYJR.js";
|
|
68
|
+
import "./chunk-OW765XBU.js";
|
|
69
|
+
import "./chunk-G7Y4GXTY.js";
|
|
70
|
+
import "./chunk-6UBGXX2W.js";
|
|
71
|
+
import "./chunk-BV3FLP2L.js";
|
|
72
|
+
import "./chunk-W5GKF5ZW.js";
|
|
73
|
+
import "./chunk-KAHYBAEN.js";
|
|
74
|
+
import "./chunk-J42X32PV.js";
|
|
75
|
+
import "./chunk-EUGTFFO6.js";
|
|
76
|
+
import "./chunk-AETZ7AD6.js";
|
|
77
|
+
import "./chunk-ZQAADXSF.js";
|
|
78
|
+
import "./chunk-KHCLMKZZ.js";
|
|
79
|
+
import "./chunk-DLXL4NSL.js";
|
|
80
|
+
import "./chunk-OJKUU3LP.js";
|
|
81
|
+
import "./chunk-YZMNK53S.js";
|
|
82
|
+
import "./chunk-6KUTNAPU.js";
|
|
83
|
+
import "./chunk-BR3GT6MR.js";
|
|
84
|
+
import "./chunk-FOC4TORM.js";
|
|
85
|
+
import "./chunk-UB7NV7NN.js";
|
|
86
|
+
import "./chunk-O7ZY6SUK.js";
|
|
87
|
+
import "./chunk-KGKTN2NX.js";
|
|
88
|
+
import "./chunk-BVYHE6QD.js";
|
|
89
|
+
import "./chunk-HJTI7RZV.js";
|
|
90
|
+
import "./chunk-ZC3CMUKU.js";
|
|
91
|
+
import "./chunk-YRPIUIEQ.js";
|
|
92
|
+
import "./chunk-M2EJHDJP.js";
|
|
93
|
+
import "./chunk-I42VC5KR.js";
|
|
94
|
+
import "./chunk-3EUW3WEO.js";
|
|
95
|
+
import "./chunk-WWC7I6TA.js";
|
|
96
|
+
import "./chunk-U6VC4MU4.js";
|
|
97
|
+
import "./chunk-RI7SXDJW.js";
|
|
98
|
+
import "./chunk-7LR2IFUH.js";
|
|
99
|
+
import "./chunk-JRTNUU5Z.js";
|
|
100
|
+
import "./chunk-KUG52IAP.js";
|
|
101
|
+
import "./chunk-JUNYPVL6.js";
|
|
102
|
+
import {
|
|
103
|
+
parseCliInput
|
|
104
|
+
} from "./chunk-RF576RYE.js";
|
|
105
|
+
import "./chunk-72VWN4VK.js";
|
|
106
|
+
import "./chunk-LCBAMY2M.js";
|
|
107
|
+
import "./chunk-IV6VUVLJ.js";
|
|
108
|
+
import "./chunk-G3SUCT4W.js";
|
|
109
|
+
import {
|
|
110
|
+
array,
|
|
111
|
+
boolean,
|
|
112
|
+
minLength,
|
|
113
|
+
number,
|
|
114
|
+
object,
|
|
115
|
+
optional,
|
|
116
|
+
picklist,
|
|
117
|
+
pipe,
|
|
118
|
+
record,
|
|
119
|
+
string,
|
|
120
|
+
unknown
|
|
121
|
+
} from "./chunk-FI4DPLR7.js";
|
|
122
|
+
import "./chunk-4SN6J65J.js";
|
|
123
|
+
import "./chunk-CF7PE763.js";
|
|
124
|
+
import "./chunk-4O22PGNQ.js";
|
|
125
|
+
import "./chunk-RIOAPUGV.js";
|
|
126
|
+
import "./chunk-DSBRIUX5.js";
|
|
127
|
+
import "./chunk-35JIFLIG.js";
|
|
128
|
+
import "./chunk-SR57FDTX.js";
|
|
129
|
+
import "./chunk-MDAYRIP7.js";
|
|
130
|
+
import "./chunk-G22P2J7O.js";
|
|
131
|
+
import "./chunk-QSJ3HFEF.js";
|
|
132
|
+
import "./chunk-U67V476Y.js";
|
|
133
|
+
|
|
134
|
+
// packages/cli/parityCommands.ts
|
|
135
|
+
import { readFileSync } from "node:fs";
|
|
136
|
+
var nonEmpty = pipe(string(), minLength(1));
|
|
137
|
+
async function runTableCreateCommand(args, deps) {
|
|
138
|
+
if (hasHelpArg(args)) {
|
|
139
|
+
process.stdout.write(
|
|
140
|
+
"Usage: nolo table create --title <title> --space <spaceId> --columns <json-array> [--description <d>] [--purpose <p>] [--tags <csv>] [--indexes <json>] [--json]\n"
|
|
141
|
+
);
|
|
142
|
+
return 0;
|
|
143
|
+
}
|
|
144
|
+
try {
|
|
145
|
+
const body = parseCliInput(
|
|
146
|
+
args,
|
|
147
|
+
object({
|
|
148
|
+
title: nonEmpty,
|
|
149
|
+
spaceId: nonEmpty,
|
|
150
|
+
columns: pipe(array(record(string(), unknown())), minLength(1)),
|
|
151
|
+
description: optional(nonEmpty),
|
|
152
|
+
purpose: optional(nonEmpty),
|
|
153
|
+
tags: optional(array(nonEmpty)),
|
|
154
|
+
indexes: optional(array(record(string(), unknown())))
|
|
155
|
+
}),
|
|
156
|
+
{
|
|
157
|
+
title: { flag: "--title", type: "string" },
|
|
158
|
+
spaceId: { flag: "--space", type: "string" },
|
|
159
|
+
columns: { flag: "--columns", type: "json" },
|
|
160
|
+
description: { flag: "--description", type: "string" },
|
|
161
|
+
purpose: { flag: "--purpose", type: "string" },
|
|
162
|
+
tags: { flag: "--tags", type: "csv" },
|
|
163
|
+
indexes: { flag: "--indexes", type: "json" }
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
167
|
+
const data = await cliApiRequest({
|
|
168
|
+
serverUrl,
|
|
169
|
+
authToken,
|
|
170
|
+
path: "/api/table/create",
|
|
171
|
+
method: "POST",
|
|
172
|
+
body: { ...body, attachToSpace: true }
|
|
173
|
+
});
|
|
174
|
+
const meta = data.rawData ?? data;
|
|
175
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
176
|
+
process.stdout.write(
|
|
177
|
+
`${formatFields([
|
|
178
|
+
["tableId", meta.tableId],
|
|
179
|
+
["title", meta.displayName ?? body.title],
|
|
180
|
+
["spaceId", data.attachedToSpace ?? body.spaceId]
|
|
181
|
+
])}
|
|
182
|
+
`
|
|
183
|
+
);
|
|
184
|
+
});
|
|
185
|
+
return 0;
|
|
186
|
+
} catch (err) {
|
|
187
|
+
printCliError(err);
|
|
188
|
+
return 1;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
async function runTableSchemaCommand(args, deps) {
|
|
192
|
+
if (hasHelpArg(args)) {
|
|
193
|
+
process.stdout.write("Usage: nolo table schema --table <tableId|metaKey> [--json]\n");
|
|
194
|
+
return 0;
|
|
195
|
+
}
|
|
196
|
+
try {
|
|
197
|
+
const { tableId } = parseCliInput(args, object({ tableId: nonEmpty }), { tableId: { flag: "--table", type: "string" } });
|
|
198
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
199
|
+
const data = await cliApiRequest({
|
|
200
|
+
serverUrl,
|
|
201
|
+
authToken,
|
|
202
|
+
path: "/api/table/query-rows",
|
|
203
|
+
method: "POST",
|
|
204
|
+
body: { envelope: "table-read-v1", tableRef: tableId, schemaOnly: true }
|
|
205
|
+
});
|
|
206
|
+
const rawData = data.rawData ?? data;
|
|
207
|
+
const meta = rawData.tableMeta ?? rawData;
|
|
208
|
+
outputResult(rawData, hasFlag(args, "--json"), () => {
|
|
209
|
+
const cols = Array.isArray(meta.columns) ? meta.columns : [];
|
|
210
|
+
process.stdout.write(`Table ${String(meta.displayName ?? tableId)} (${String(meta.tableId ?? tableId)}) \u2014 ${cols.length} columns:
|
|
211
|
+
`);
|
|
212
|
+
for (const c of cols) {
|
|
213
|
+
process.stdout.write(` - ${c.name} (${c.type ?? "text"}${c.required ? ", required" : ""})
|
|
214
|
+
`);
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
return 0;
|
|
218
|
+
} catch (err) {
|
|
219
|
+
printCliError(err);
|
|
220
|
+
return 1;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
async function runTableUpsertRowsCommand(args, deps) {
|
|
224
|
+
if (hasHelpArg(args)) {
|
|
225
|
+
process.stdout.write(
|
|
226
|
+
"Usage: nolo table upsert-rows --table <tableId> --unique-by <col1,col2> --rows <json-array> [--no-update-existing] [--json]\n"
|
|
227
|
+
);
|
|
228
|
+
return 0;
|
|
229
|
+
}
|
|
230
|
+
try {
|
|
231
|
+
const { noUpdateExisting, ...rest } = parseCliInput(
|
|
232
|
+
args,
|
|
233
|
+
object({
|
|
234
|
+
tableId: nonEmpty,
|
|
235
|
+
uniqueBy: pipe(array(nonEmpty), minLength(1)),
|
|
236
|
+
rows: pipe(array(record(string(), unknown())), minLength(1)),
|
|
237
|
+
noUpdateExisting: optional(boolean())
|
|
238
|
+
}),
|
|
239
|
+
{
|
|
240
|
+
tableId: { flag: "--table", type: "string" },
|
|
241
|
+
uniqueBy: { flag: "--unique-by", type: "csv" },
|
|
242
|
+
rows: { flag: "--rows", type: "json" },
|
|
243
|
+
noUpdateExisting: { flag: "--no-update-existing", type: "boolean" }
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
247
|
+
const data = await cliApiRequest({
|
|
248
|
+
serverUrl,
|
|
249
|
+
authToken,
|
|
250
|
+
path: "/api/table/upsert-rows",
|
|
251
|
+
method: "POST",
|
|
252
|
+
body: { ...rest, updateExisting: !noUpdateExisting }
|
|
253
|
+
});
|
|
254
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
255
|
+
process.stdout.write(`Upserted ${rest.rows.length} row(s) into table ${rest.tableId}
|
|
256
|
+
`);
|
|
257
|
+
});
|
|
258
|
+
return 0;
|
|
259
|
+
} catch (err) {
|
|
260
|
+
printCliError(err);
|
|
261
|
+
return 1;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
async function runMemoryQueryCommand(args, deps) {
|
|
265
|
+
if (hasHelpArg(args)) {
|
|
266
|
+
process.stdout.write("Usage: nolo memory query --query <text> [--limit <n>] [--json]\n");
|
|
267
|
+
return 0;
|
|
268
|
+
}
|
|
269
|
+
try {
|
|
270
|
+
const body = parseCliInput(
|
|
271
|
+
args,
|
|
272
|
+
object({ query: nonEmpty, limit: optional(number()) }),
|
|
273
|
+
{ query: { flag: "--query", type: "string", positionalFallback: true }, limit: { flag: "--limit", type: "number" } }
|
|
274
|
+
);
|
|
275
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
276
|
+
const data = await cliApiRequest({ serverUrl, authToken, path: "/api/memory/query", method: "POST", body });
|
|
277
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
278
|
+
const items = Array.isArray(data.items) ? data.items : [];
|
|
279
|
+
if (items.length === 0) {
|
|
280
|
+
process.stdout.write("No matching memories.\n");
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
for (const m of items) process.stdout.write(`- [${m.id ?? "-"}] ${m.content ?? ""}
|
|
284
|
+
`);
|
|
285
|
+
});
|
|
286
|
+
return 0;
|
|
287
|
+
} catch (err) {
|
|
288
|
+
printCliError(err);
|
|
289
|
+
return 1;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
async function runMemoryExportCommand(args, deps) {
|
|
293
|
+
if (hasHelpArg(args)) {
|
|
294
|
+
process.stdout.write(
|
|
295
|
+
"Usage: nolo memory export [--category fact|preference|decision|goal|work-context] [--topic <t>] [--status current|historical|all] [--since <iso>] [--until <iso>] [--limit <n>] [--cursor <c>] [--json]\n"
|
|
296
|
+
);
|
|
297
|
+
return 0;
|
|
298
|
+
}
|
|
299
|
+
try {
|
|
300
|
+
const body = parseCliInput(
|
|
301
|
+
args,
|
|
302
|
+
object({
|
|
303
|
+
category: optional(picklist(["fact", "preference", "decision", "goal", "work-context"])),
|
|
304
|
+
topic: optional(nonEmpty),
|
|
305
|
+
status: optional(picklist(["current", "historical", "all"])),
|
|
306
|
+
since: optional(nonEmpty),
|
|
307
|
+
until: optional(nonEmpty),
|
|
308
|
+
cursor: optional(nonEmpty),
|
|
309
|
+
limit: optional(number())
|
|
310
|
+
}),
|
|
311
|
+
{
|
|
312
|
+
category: { flag: "--category", type: "string" },
|
|
313
|
+
topic: { flag: "--topic", type: "string" },
|
|
314
|
+
status: { flag: "--status", type: "string" },
|
|
315
|
+
since: { flag: "--since", type: "string" },
|
|
316
|
+
until: { flag: "--until", type: "string" },
|
|
317
|
+
cursor: { flag: "--cursor", type: "string" },
|
|
318
|
+
limit: { flag: "--limit", type: "number" }
|
|
319
|
+
}
|
|
320
|
+
);
|
|
321
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
322
|
+
const data = await cliApiRequest({ serverUrl, authToken, path: "/api/memory/export", method: "POST", body });
|
|
323
|
+
const { ok: _ok, ...exchange } = data;
|
|
324
|
+
outputResult(exchange, true, () => {
|
|
325
|
+
});
|
|
326
|
+
return 0;
|
|
327
|
+
} catch (err) {
|
|
328
|
+
printCliError(err);
|
|
329
|
+
return 1;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
async function runMemoryImportCommand(args, deps) {
|
|
333
|
+
if (hasHelpArg(args)) {
|
|
334
|
+
process.stdout.write("Usage: nolo memory import (--file <path> | --items <json>) [--apply --preview-digest <sha256>] [--json]\n");
|
|
335
|
+
return 0;
|
|
336
|
+
}
|
|
337
|
+
try {
|
|
338
|
+
const { file, items, apply, previewDigest } = parseCliInput(
|
|
339
|
+
args,
|
|
340
|
+
object({
|
|
341
|
+
file: optional(nonEmpty),
|
|
342
|
+
items: optional(nonEmpty),
|
|
343
|
+
apply: optional(boolean()),
|
|
344
|
+
previewDigest: optional(nonEmpty)
|
|
345
|
+
}),
|
|
346
|
+
{
|
|
347
|
+
file: { flag: "--file", type: "string" },
|
|
348
|
+
items: { flag: "--items", type: "string" },
|
|
349
|
+
apply: { flag: "--apply", type: "boolean" },
|
|
350
|
+
previewDigest: { flag: "--preview-digest", type: "string" }
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
const itemsJson = file ? readFileSync(file, "utf8") : items;
|
|
354
|
+
if (!itemsJson) throw new Error("Provide --file <path> or --items <json>");
|
|
355
|
+
if (apply && !previewDigest) throw new Error("--apply requires --preview-digest <sha256> from preview");
|
|
356
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
357
|
+
const data = await cliApiRequest({
|
|
358
|
+
serverUrl,
|
|
359
|
+
authToken,
|
|
360
|
+
path: "/api/memory/import",
|
|
361
|
+
method: "POST",
|
|
362
|
+
body: { itemsJson, mode: apply ? "apply" : "preview", ...previewDigest ? { previewDigest } : {} }
|
|
363
|
+
});
|
|
364
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
365
|
+
if (data.mode === "apply") {
|
|
366
|
+
process.stdout.write(
|
|
367
|
+
`Applied memory import (batch=${String(data.importBatchId ?? "-")}): saved=${String(data.saved ?? 0)}, duplicates=${String(data.duplicates ?? 0)}, reviewRequired=${String(data.skippedReviewRequired ?? 0)}
|
|
368
|
+
`
|
|
369
|
+
);
|
|
370
|
+
} else {
|
|
371
|
+
process.stdout.write(
|
|
372
|
+
`Memory import preview: previewDigest=${String(data.previewDigest ?? "-")}
|
|
373
|
+
Re-run with --apply --preview-digest ${String(data.previewDigest ?? "")} to commit.
|
|
374
|
+
`
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
return 0;
|
|
379
|
+
} catch (err) {
|
|
380
|
+
printCliError(err);
|
|
381
|
+
return 1;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
async function fetchUserSpaceMembershipsRpc(args) {
|
|
385
|
+
const url = `${args.serverUrl.replace(/\/$/, "")}/rpc/getUserSpaceMemberships`;
|
|
386
|
+
const fetchFn = args.fetchImpl ?? fetch;
|
|
387
|
+
let response;
|
|
388
|
+
try {
|
|
389
|
+
response = await fetchFn(url, {
|
|
390
|
+
method: "POST",
|
|
391
|
+
headers: {
|
|
392
|
+
"Content-Type": "application/json",
|
|
393
|
+
Authorization: `Bearer ${args.authToken}`
|
|
394
|
+
},
|
|
395
|
+
body: JSON.stringify({ userId: args.userId })
|
|
396
|
+
});
|
|
397
|
+
} catch (error) {
|
|
398
|
+
throw new CliApiError(`Request failed: ${error.message}`, "NETWORK_ERROR", 0);
|
|
399
|
+
}
|
|
400
|
+
let payload;
|
|
401
|
+
try {
|
|
402
|
+
payload = await response.json();
|
|
403
|
+
} catch {
|
|
404
|
+
throw new CliApiError(
|
|
405
|
+
`Invalid non-JSON response (HTTP ${response.status})`,
|
|
406
|
+
"INVALID_RESPONSE",
|
|
407
|
+
response.status
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
const record2 = payload && typeof payload === "object" && !Array.isArray(payload) ? payload : null;
|
|
411
|
+
if (!response.ok || record2?.ok === false || record2?.success === false || record2?.error) {
|
|
412
|
+
const errorObj = record2 && typeof record2.error === "object" && record2.error !== null ? record2.error : {};
|
|
413
|
+
const message = errorObj.message || (typeof record2?.error === "string" ? record2.error : "") || (typeof record2?.message === "string" ? record2.message : "") || `Request failed (HTTP ${response.status})`;
|
|
414
|
+
const code = errorObj.code || `HTTP_${response.status}`;
|
|
415
|
+
throw new CliApiError(message, code, response.status);
|
|
416
|
+
}
|
|
417
|
+
if (Array.isArray(payload)) {
|
|
418
|
+
return payload;
|
|
419
|
+
}
|
|
420
|
+
if (record2) {
|
|
421
|
+
if (Array.isArray(record2.data)) return record2.data;
|
|
422
|
+
if (Array.isArray(record2.memberships)) return record2.memberships;
|
|
423
|
+
if (Array.isArray(record2.spaces)) return record2.spaces;
|
|
424
|
+
}
|
|
425
|
+
throw new CliApiError(
|
|
426
|
+
"Unexpected response format from /rpc/getUserSpaceMemberships",
|
|
427
|
+
"INVALID_RESPONSE",
|
|
428
|
+
response.status
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
async function runSpaceListCommand(args, deps) {
|
|
432
|
+
const out = deps.output ?? process.stdout;
|
|
433
|
+
if (hasHelpArg(args)) {
|
|
434
|
+
out.write("Usage: nolo space list [--limit <n>] [--json]\n");
|
|
435
|
+
return 0;
|
|
436
|
+
}
|
|
437
|
+
try {
|
|
438
|
+
const { limit } = parseCliInput(args, object({ limit: optional(number()) }), {
|
|
439
|
+
limit: { flag: "--limit", type: "number" }
|
|
440
|
+
});
|
|
441
|
+
const { serverUrl, authToken, userId } = resolveCliContext(args, deps.env);
|
|
442
|
+
const raw = await fetchUserSpaceMembershipsRpc({
|
|
443
|
+
serverUrl,
|
|
444
|
+
authToken,
|
|
445
|
+
userId,
|
|
446
|
+
fetchImpl: deps.fetchImpl
|
|
447
|
+
});
|
|
448
|
+
const activeSpaces = raw.filter((s) => s && !s.deletedAt);
|
|
449
|
+
const maxItems = Math.max(0, Math.floor(limit ?? 100));
|
|
450
|
+
const spaces = activeSpaces.slice(0, maxItems);
|
|
451
|
+
outputResult(
|
|
452
|
+
{ spaces, count: spaces.length, total: activeSpaces.length },
|
|
453
|
+
hasFlag(args, "--json"),
|
|
454
|
+
() => {
|
|
455
|
+
if (spaces.length === 0) {
|
|
456
|
+
out.write("No spaces found.\n");
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
for (const s of spaces) {
|
|
460
|
+
const id = String(s.spaceId ?? s.id ?? s.dbKey ?? "-");
|
|
461
|
+
const name = String(s.spaceName ?? s.name ?? s.title ?? "Untitled");
|
|
462
|
+
const role = typeof s.role === "string" && s.role ? ` (${s.role})` : "";
|
|
463
|
+
out.write(`- ${id} ${name}${role}
|
|
464
|
+
`);
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
out
|
|
468
|
+
);
|
|
469
|
+
return 0;
|
|
470
|
+
} catch (err) {
|
|
471
|
+
printCliError(err);
|
|
472
|
+
return 1;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
async function runSpaceSearchCommand(args, deps) {
|
|
476
|
+
if (hasHelpArg(args)) {
|
|
477
|
+
process.stdout.write("Usage: nolo space search --query <q> [--space <spaceId>] [--limit <n>] [--json]\n");
|
|
478
|
+
return 0;
|
|
479
|
+
}
|
|
480
|
+
try {
|
|
481
|
+
const body = parseCliInput(
|
|
482
|
+
args,
|
|
483
|
+
object({ query: nonEmpty, spaceId: optional(nonEmpty), limit: optional(number()) }),
|
|
484
|
+
{
|
|
485
|
+
query: { flag: "--query", type: "string", positionalFallback: true },
|
|
486
|
+
spaceId: { flag: "--space", type: "string" },
|
|
487
|
+
limit: { flag: "--limit", type: "number" }
|
|
488
|
+
}
|
|
489
|
+
);
|
|
490
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
491
|
+
const data = await cliApiRequest({ serverUrl, authToken, path: "/api/spaces/search", method: "POST", body });
|
|
492
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
493
|
+
const results = Array.isArray(data.results) ? data.results : [];
|
|
494
|
+
if (results.length === 0) {
|
|
495
|
+
process.stdout.write("No results found.\n");
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
for (const r of results) process.stdout.write(`- [${r.id}] ${r.title} (${r.url})
|
|
499
|
+
`);
|
|
500
|
+
});
|
|
501
|
+
return 0;
|
|
502
|
+
} catch (err) {
|
|
503
|
+
printCliError(err);
|
|
504
|
+
return 1;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
async function runAgentRemoteRunStatusCommand(args, deps) {
|
|
508
|
+
if (hasHelpArg(args)) {
|
|
509
|
+
process.stdout.write("Usage: nolo agent run-status --run <runId> [--dialog-key <k>] [--json]\n");
|
|
510
|
+
return 0;
|
|
511
|
+
}
|
|
512
|
+
try {
|
|
513
|
+
const { runId, dialogKey } = parseCliInput(
|
|
514
|
+
args,
|
|
515
|
+
object({ runId: nonEmpty, dialogKey: optional(nonEmpty) }),
|
|
516
|
+
{ runId: { flag: "--run", type: "string" }, dialogKey: { flag: "--dialog-key", type: "string" } }
|
|
517
|
+
);
|
|
518
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
519
|
+
const data = await cliApiRequest({
|
|
520
|
+
serverUrl,
|
|
521
|
+
authToken,
|
|
522
|
+
path: "/api/agent/runs/control",
|
|
523
|
+
method: "POST",
|
|
524
|
+
body: { action: "status", runId, ...dialogKey ? { dialogKey } : {} }
|
|
525
|
+
});
|
|
526
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
527
|
+
const run = data.run ?? data;
|
|
528
|
+
process.stdout.write(
|
|
529
|
+
`${formatFields([
|
|
530
|
+
["runId", runId],
|
|
531
|
+
["status", run.status ?? data.status],
|
|
532
|
+
["dialogKey", run.dialogKey ?? data.dialogKey],
|
|
533
|
+
["agentKey", run.agentKey ?? data.agentKey]
|
|
534
|
+
])}
|
|
535
|
+
`
|
|
536
|
+
);
|
|
537
|
+
});
|
|
538
|
+
return 0;
|
|
539
|
+
} catch (err) {
|
|
540
|
+
printCliError(err);
|
|
541
|
+
return 1;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
async function runAgentRemoteRunAppendCommand(args, deps) {
|
|
545
|
+
if (hasHelpArg(args)) {
|
|
546
|
+
process.stdout.write("Usage: nolo agent run-append --run <runId> --input <text> [--command-id <id>] [--dialog-key <k>] [--json]\n");
|
|
547
|
+
return 0;
|
|
548
|
+
}
|
|
549
|
+
try {
|
|
550
|
+
const { runId, input, commandId, dialogKey: explicitDialogKey } = parseCliInput(
|
|
551
|
+
args,
|
|
552
|
+
object({
|
|
553
|
+
runId: nonEmpty,
|
|
554
|
+
input: nonEmpty,
|
|
555
|
+
commandId: optional(nonEmpty),
|
|
556
|
+
dialogKey: optional(nonEmpty)
|
|
557
|
+
}),
|
|
558
|
+
{
|
|
559
|
+
runId: { flag: "--run", type: "string" },
|
|
560
|
+
input: { flag: "--input", type: "string" },
|
|
561
|
+
commandId: { flag: "--command-id", type: "string" },
|
|
562
|
+
dialogKey: { flag: "--dialog-key", type: "string" }
|
|
563
|
+
}
|
|
564
|
+
);
|
|
565
|
+
const { serverUrl, authToken } = resolveCliContext(args, deps.env);
|
|
566
|
+
let dialogKey = explicitDialogKey;
|
|
567
|
+
if (!dialogKey) {
|
|
568
|
+
const statusData = await cliApiRequest({
|
|
569
|
+
serverUrl,
|
|
570
|
+
authToken,
|
|
571
|
+
path: "/api/agent/runs/control",
|
|
572
|
+
method: "POST",
|
|
573
|
+
body: { action: "status", runId }
|
|
574
|
+
});
|
|
575
|
+
const run = statusData.run ?? statusData;
|
|
576
|
+
dialogKey = typeof run.dialogKey === "string" ? run.dialogKey : typeof statusData.dialogKey === "string" ? statusData.dialogKey : void 0;
|
|
577
|
+
if (!dialogKey) throw new Error(`Could not resolve dialogKey for run ${runId}; pass --dialog-key explicitly`);
|
|
578
|
+
}
|
|
579
|
+
const data = await cliApiRequest({
|
|
580
|
+
serverUrl,
|
|
581
|
+
authToken,
|
|
582
|
+
path: "/api/agent/runs/control",
|
|
583
|
+
method: "POST",
|
|
584
|
+
body: {
|
|
585
|
+
action: "append",
|
|
586
|
+
runId,
|
|
587
|
+
dialogKey,
|
|
588
|
+
userInput: input,
|
|
589
|
+
commandId: commandId ?? crypto.randomUUID()
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
outputResult(data, hasFlag(args, "--json"), () => {
|
|
593
|
+
process.stdout.write(`Appended instruction to run ${runId} (dialogKey=${dialogKey})
|
|
594
|
+
`);
|
|
595
|
+
});
|
|
596
|
+
return 0;
|
|
597
|
+
} catch (err) {
|
|
598
|
+
printCliError(err);
|
|
599
|
+
return 1;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
export {
|
|
603
|
+
runAgentRemoteRunAppendCommand,
|
|
604
|
+
runAgentRemoteRunStatusCommand,
|
|
605
|
+
runMemoryExportCommand,
|
|
606
|
+
runMemoryImportCommand,
|
|
607
|
+
runMemoryQueryCommand,
|
|
608
|
+
runSpaceListCommand,
|
|
609
|
+
runSpaceSearchCommand,
|
|
610
|
+
runTableCreateCommand,
|
|
611
|
+
runTableSchemaCommand,
|
|
612
|
+
runTableUpsertRowsCommand
|
|
613
|
+
};
|