nolo-cli 0.259.0-alpha.1 → 0.261.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-PODMRXJJ.js} +97 -83
- package/accountResolver-NGICIMEE.js +1 -1
- package/{action-C6IQAKN4.js → action-NJTYNXXR.js} +12 -10
- package/{addContentAction-53364YDW.js → addContentAction-RUPXLROG.js} +14 -13
- package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-57EJ2UBC.js} +20 -24
- package/{agentDeleteCommand-53NN3VSK.js → agentDeleteCommand-DRFCOTYP.js} +185 -147
- package/{agentEmailCommands-KOGGIT6I.js → agentEmailCommands-FHENHUBF.js} +143 -127
- package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-BMVKNYIY.js} +9 -6
- package/{agentListCommands-62UYUQDI.js → agentListCommands-W66W5K3V.js} +88 -69
- package/{agentMachineCommands-W6TNJXEA.js → agentMachineCommands-C3BUBCXU.js} +69 -60
- package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-VIWKP7DM.js} +11 -8
- package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-5SNSXOY7.js} +10 -7
- package/agentRecordCommands-DYMHWTID.js +210 -0
- package/agentRun-QVFG3CI4.js +250 -0
- package/agentRunCommand-YV4V5HSL.js +248 -0
- package/{agentRunControl-LXMADX3N.js → agentRunControl-RGBHKPKJ.js} +19 -12
- package/{agentRuntimeLocal-YGNJMQW3.js → agentRuntimeLocal-LVEMOYS2.js} +62 -49
- package/{agentSlice-3HHYUQLM.js → agentSlice-OJCM7OUX.js} +15 -18
- package/appConfigCommands-ZUXQLE7L.js +417 -0
- package/{appDeleteCommands-5COJ6CSG.js → appDeleteCommands-L5UKUMXY.js} +68 -58
- package/{appDeployCommands-3JPAT3XO.js → appDeployCommands-KX2BRQUW.js} +74 -59
- package/{appDeployStatusCommands-RHZKF3G4.js → appDeployStatusCommands-7LHRSWW7.js} +68 -58
- package/{appGetCommands-73DXOAQW.js → appGetCommands-F7SDFCUK.js} +74 -58
- package/{appListCommands-HD5LOQ3G.js → appListCommands-U4NJKSMZ.js} +74 -58
- package/appMigrateCommands-JAPOLYSW.js +230 -0
- package/appSourceCommands-TLXPWXUH.js +279 -0
- package/authCommand-AU3GZBZ2.js +65 -0
- package/{authCommands-T5FODCEG.js → authCommands-JKBWMUQ4.js} +20 -17
- package/{builtinSkillRegistry-EDHD2UHU.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
- package/{chromeOpsCommands-3SSTDFRF.js → chromeOpsCommands-F47WYQWF.js} +68 -18
- package/{chunk-5YS6QHGT.js → chunk-2FGFY72B.js} +9 -9
- 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-7OVOZRZF.js → chunk-3B7OTHDW.js} +23 -379
- package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
- package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
- package/{chunk-XNNBXUEM.js → chunk-3TII7WCF.js} +5 -5
- 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-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
- package/{chunk-KQHEGELM.js → chunk-63G7JWEA.js} +16 -6
- package/{chunk-4EACJPZI.js → chunk-6BBXJGIQ.js} +51 -42
- package/chunk-72VWN4VK.js +51 -0
- package/chunk-7LR2IFUH.js +100 -0
- package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
- package/{chunk-XPETQ4MR.js → chunk-7X4BFUJV.js} +24 -10
- package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
- package/chunk-A4O76A6V.js +432 -0
- package/chunk-AMNZPQCY.js +635 -0
- package/{chunk-4MXYCQBS.js → chunk-AQNWWJLH.js} +2 -56
- package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
- package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
- package/{chunk-U6QNVOR5.js → chunk-BUGLH2A7.js} +130 -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-Y2TCTNUD.js → chunk-CK2LMTYO.js} +4 -4
- package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
- package/{chunk-57V4PADY.js → chunk-CNYPQYXT.js} +781 -449
- package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
- package/chunk-D3ONA3FP.js +762 -0
- package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
- 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-DBJODIZ6.js → chunk-EQOWWSNQ.js} +19 -27
- package/chunk-ER6NTALN.js +34 -0
- package/{chunk-L4XST72F.js → chunk-ERCSHBUD.js} +16027 -17392
- 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-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
- package/chunk-FI4DPLR7.js +902 -0
- package/{chunk-HDKMVYNJ.js → chunk-FNLT7NKG.js} +7 -11
- package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
- package/chunk-FP46RAJQ.js +58 -0
- package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
- package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
- package/{chunk-FZENZCIA.js → chunk-GEC4CHS2.js} +19 -12
- package/chunk-GF4LYNNZ.js +25 -0
- package/{chunk-IYLUK67R.js → chunk-GH6SS2DZ.js} +25 -8
- package/chunk-HAZ6UVH4.js +368 -0
- package/{chunk-OKAXQFON.js → chunk-HB4J5HA6.js} +4 -4
- package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
- package/chunk-HJTI7RZV.js +94 -0
- package/{chunk-HQUGB2HM.js → chunk-HMFKYZKP.js} +62 -50
- package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
- package/{chunk-46FETNLF.js → chunk-IN4B6Z2D.js} +7 -6
- package/chunk-IV6VUVLJ.js +88 -0
- package/{chunk-LLUBUHNT.js → chunk-IWWJSSST.js} +5 -9
- package/{chunk-7BIJFGKS.js → chunk-J22PFCQN.js} +106 -52
- package/chunk-J42X32PV.js +472 -0
- package/{chunk-LCBAMY2M.js → chunk-JKVOKKMQ.js} +0 -7
- package/{chunk-KT7S7ANZ.js → chunk-JPYOHIHX.js} +9 -9
- package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
- package/{chunk-KVMLM5VD.js → chunk-KAHYBAEN.js} +211 -472
- package/{chunk-KLMBM6P6.js → chunk-KALCFXQO.js} +2454 -1115
- package/chunk-KDDXC2IH.js +148 -0
- package/chunk-KGKTN2NX.js +25 -0
- package/chunk-KGWE224L.js +246 -0
- package/{chunk-OYUMJMC5.js → chunk-KSV6T4AH.js} +6 -1
- package/{chunk-P27E22MA.js → chunk-L43DGEPZ.js} +1 -1
- package/{chunk-5BIDJVNX.js → chunk-L45P4JTE.js} +180 -31
- package/chunk-LHCIIUCX.js +222 -0
- package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
- package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
- package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
- package/{chunk-BIDSIRTS.js → chunk-LTCZOOAM.js} +11 -17
- package/chunk-LUTSMSIL.js +425 -0
- package/chunk-LXP53WGF.js +168 -0
- package/{chunk-2CT2J3O6.js → chunk-M7VNNPVX.js} +2493 -4055
- package/chunk-MDAYRIP7.js +1889 -0
- package/{chunk-6B2OBX5B.js → chunk-MMXHIHJZ.js} +15 -47
- package/{chunk-HPDLPEUG.js → chunk-MPWQI36J.js} +267 -234
- package/chunk-MRACVEPZ.js +7 -0
- package/{chunk-ZYPXOQS2.js → chunk-MSFKHPA6.js} +1 -1
- package/chunk-NHLLXINQ.js +8 -0
- package/{chunk-QXTEEEIN.js → chunk-NJCTPWJU.js} +8 -8
- package/chunk-NLS7F5DW.js +1697 -0
- package/{chunk-FP37ELBT.js → chunk-NTBTVKKB.js} +17 -25
- package/{chunk-JLZJL3WC.js → chunk-O77F26YB.js} +370 -39
- package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
- package/{chunk-YN23INFZ.js → chunk-OIOMBPCA.js} +23 -2
- package/{chunk-CJOOF4L5.js → chunk-OSZNERNW.js} +17 -14
- package/{chunk-JZO7KUF3.js → chunk-P4I55ASV.js} +313 -275
- package/{chunk-2C5VN7NH.js → chunk-P4XAHM4B.js} +1 -1
- package/chunk-PL5RKESU.js +40 -0
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{chunk-WS36XPJD.js → chunk-Q5IXZF3S.js} +82 -6
- package/{createAgentAutomationAction-GRZ6XY7Q.js → chunk-QKM55LP2.js} +3 -160
- package/{chunk-WSLL7VV4.js → chunk-QXWXRBOL.js} +9 -9
- package/{chunk-MXA54TQM.js → chunk-QZYQ3Y3G.js} +1 -1
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- 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-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
- package/{chunk-J7JRCOIW.js → chunk-RWXHGPWJ.js} +1 -1
- package/{chunk-J55F3IEZ.js → chunk-SARJZIGR.js} +1 -1
- package/chunk-SJFL32RD.js +356 -0
- package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
- package/{chunk-MPGR4ZNR.js → chunk-SRVLHMES.js} +46 -42
- package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
- package/{chunk-RD3QLZQV.js → chunk-SWJRX4M5.js} +324 -2
- package/{chunk-R3TUHCSJ.js → chunk-T3Y2NA4H.js} +8 -3
- package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
- package/{chunk-KWNVPY6M.js → chunk-TJXO66M2.js} +8 -5
- package/{chunk-QIGQFON2.js → chunk-TXMFSGRY.js} +1 -1
- package/{chunk-ADYWV732.js → chunk-U5PSCTMR.js} +264 -177
- package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
- package/{chunk-QGFLVQ6E.js → chunk-UBOTXA3Z.js} +4 -14
- package/{chunk-6YX2RAQN.js → chunk-UEZL3RBG.js} +89 -164
- package/{chunk-NCFKHYDM.js → chunk-UJL23HBL.js} +774 -119
- package/chunk-ULPU4C43.js +1710 -0
- package/{chunk-UA3QTA2S.js → chunk-VC3MAT33.js} +4442 -2570
- package/{chunk-VNHZJEQN.js → chunk-VCESLFF4.js} +3 -3
- package/chunk-VOO3YQQP.js +17157 -0
- package/{chunk-Y2GWUBNS.js → chunk-VZDSNDUD.js} +279 -149
- package/{chunk-6BMTKYAO.js → chunk-W2Z5E2R7.js} +126 -698
- package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
- package/chunk-WEEB2JKA.js +443 -0
- package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
- package/chunk-WMBJDXMY.js +408 -0
- package/chunk-WSQLCWLQ.js +201 -0
- package/{chunk-OOVOAG4Q.js → chunk-WY6DMHMG.js} +1 -1
- package/{chunk-6K32PBRY.js → chunk-XJW6SLBZ.js} +3 -3
- package/{chunk-MNFUKRRU.js → chunk-XKNDVHF5.js} +7 -7
- package/{chunk-MHKPUGPD.js → chunk-XREMPMNK.js} +20 -4
- package/chunk-XT6C2QZW.js +46 -0
- package/chunk-XUDXQT7R.js +790 -0
- package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
- package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
- package/{chunk-U35UUM5K.js → chunk-YVOUSIIA.js} +1 -1
- package/{chunk-6VEO7Z3Y.js → chunk-Z27AH6A5.js} +6 -6
- package/chunk-Z3KTXWWB.js +76 -0
- package/{chunk-UWWOWTW2.js → chunk-Z7EP5HDL.js} +1 -1
- package/{chunk-YFEK7ACQ.js → chunk-ZB2E724W.js} +4 -4
- package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
- package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
- package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-BJJEXHSZ.js} +20 -14
- package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
- package/cliAuthorityBrokerProcess-VIJEKQSX.js +34 -0
- package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-NDMKN4X2.js} +6 -3
- package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
- package/cliLocalAgentRecordReader-KCZS2MZU.js +113 -0
- package/cloudAutomationCommands-2WQUGQSW.js +310 -0
- package/{commandRegistry-IFYQLPGM.js → commandRegistry-C64JBZJ3.js} +288 -121
- package/{contentThunks-QCFCD2X3.js → contentThunks-G3HEIRXC.js} +45 -43
- package/{cooldownCommands-WDOI5VD7.js → cooldownCommands-FPAFS7XG.js} +1 -1
- package/createAgentAutomationAction-DSBL3X3A.js +172 -0
- package/createDialogAction-OHFUHC53.js +86 -0
- package/{createPageAction-QCVBMP4C.js → createPageAction-E6JZSZLU.js} +49 -45
- package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
- package/{dbSlice-RWPSVHBC.js → dbSlice-U3GPLEL3.js} +21 -16
- package/deleteDbKey-DRXKWJX5.js +86 -0
- package/{dialogCommands-4IEQUALS.js → dialogCommands-4EX2OTIC.js} +80 -66
- package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
- package/dialogNotifyCommand-4SCE2Z2R.js +44 -0
- package/dialogPortabilityCommands-ZSFFHRX4.js +3036 -0
- package/{dialogSlice-XFYID6KE.js → dialogSlice-PRZCIJCH.js} +43 -42
- package/{dialogTraceCommand-Y67NRFCV.js → dialogTraceCommand-RKB76OVX.js} +84 -70
- package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-BP7HMRYP.js} +7 -4
- package/{docCreateCommands-QLRIWRQE.js → docCreateCommands-JGPNGIZ7.js} +68 -59
- package/{docDeleteCommands-XPRYA532.js → docDeleteCommands-XRJTNRDH.js} +68 -59
- package/{docReadCommands-EXQI7ETH.js → docReadCommands-6GFO4ARS.js} +67 -58
- package/{docStore-MWFUKZL2.js → docStore-QRLIWFTU.js} +16 -17
- package/{docUpdateCommands-EFBFQV77.js → docUpdateCommands-W2GXMUXW.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-DHGWURJZ.js} +265 -119
- package/{hostCredentialCreate-26S6DDJ5.js → hostCredentialCreate-FPUZ7RMI.js} +138 -122
- package/index.js +36 -22
- package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
- package/localAutomationCommands-ZMU22RQJ.js +198 -0
- package/localAutomationRuntime-MU5FGJ3V.js +60 -0
- package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
- package/{localRuntimeAdapter-VREWZWPC.js → localRuntimeAdapter-YBXQBV4G.js} +136 -119
- package/localRuntimeAuthority-LDXMEDO5.js +44 -0
- package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-6TQZDLNU.js} +1 -1
- package/{machineCommands-CL5XK5UC.js → machineCommands-57RTUYRV.js} +251 -357
- package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
- package/machineWsRunDispatch-VBKV3FFE.js +227 -0
- package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-J76SOJVZ.js} +40 -22
- package/mcpLocalManageCommands-USETIMHB.js +212 -0
- package/{memberThunks-43B7UYC5.js → memberThunks-7UERUEMI.js} +102 -22
- package/{memoryCommands-BC6REPQB.js → memoryCommands-N7NHEE55.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-LYDLWSLK.js +613 -0
- package/{projectArchive-OC63TWTD.js → projectArchive-KCNQDVWJ.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-SPSQ6NLR.js} +11 -10
- package/{readDocTool-N3GA52JR.js → readDocTool-ENUL2GNL.js} +5 -1
- package/{readlineWorkspace-2NO6D6IZ.js → readlineWorkspace-MKS7TAEF.js} +927 -573
- package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
- package/remove-TNNDO635.js +32 -0
- package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-POPUZ3WU.js} +22 -26
- package/{runAgentClientLoop-U7V32UTD.js → runAgentClientLoop-KVILXQNI.js} +117 -82
- package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-4J2DP4LZ.js} +23 -16
- package/{secretCommands-KVVZS7A6.js → secretCommands-CSTQYB6T.js} +2 -2
- package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-35THMVBP.js} +16 -17
- package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-WLXBNIG7.js} +23 -27
- package/{settingThunks-DVKG4X4S.js → settingThunks-6Y5U5M5N.js} +170 -497
- package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
- package/{spaceCommands-7QKXKBDQ.js → spaceCommands-LXNJBO2U.js} +293 -58
- package/spacePruneCommand-2ITUFYBM.js +233 -0
- package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
- package/{streamAgentChatTurn-UAGFOXNJ.js → streamAgentChatTurn-EY6MFKCA.js} +225 -137
- package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-TG6BQRDA.js} +19 -23
- package/{tableCommands-EFA754RE.js → tableCommands-35G34R4B.js} +28 -49
- package/{toolApiClient-N5PYW2R3.js → toolApiClient-MPQIFYXP.js} +15 -4
- package/{tools-2Q2LBDUC.js → tools-CSLTRRUR.js} +73 -63
- package/{tuiRestart-4QDWLHYZ.js → tuiRestart-ALR4Q3JM.js} +20 -13
- package/tuiSummaryLlmCaller-3Y3JEXJK.js +52 -0
- package/{updateCommands-GJGRS6JK.js → updateCommands-GHQVP6Z5.js} +13 -8
- package/{updateDialogTitleAction-GGNTTI5L.js → updateDialogTitleAction-LFAWF5EW.js} +57 -58
- package/{usageCommand-WI6SQOPB.js → usageCommand-5VKW6T4C.js} +6 -8
- package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-VUQETFMW.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/authCommand-V6EOMZX6.js +0 -79
- 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/createDialogAction-ZAJERW62.js +0 -82
- package/deleteFile-ECU6FU5C.js +0 -55
- package/dialogNotifyCommand-IASQGEMW.js +0 -36
- 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
package/chunk-OQFOE4SJ.js
DELETED
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createLegacyServerDb,
|
|
3
|
-
isLevelLockError
|
|
4
|
-
} from "./chunk-TRRXYFTR.js";
|
|
5
|
-
import {
|
|
6
|
-
startCliAuthorityBrokerProcess
|
|
7
|
-
} from "./chunk-JLZJL3WC.js";
|
|
8
|
-
import {
|
|
9
|
-
loadCliAuthorityBrokerTls
|
|
10
|
-
} from "./chunk-3A5NNQCN.js";
|
|
11
|
-
import {
|
|
12
|
-
createCliAuthorityBrokerClient,
|
|
13
|
-
createCliAuthorityBrokerSocketInvoker,
|
|
14
|
-
isCliAuthorityBrokerTimeoutError,
|
|
15
|
-
isCliAuthorityBrokerUnavailableError
|
|
16
|
-
} from "./chunk-SQL7YNED.js";
|
|
17
|
-
import {
|
|
18
|
-
resolveCliAuthorityBrokerEndpoint,
|
|
19
|
-
resolveCliAuthorityBrokerHealthPath,
|
|
20
|
-
resolveCliAuthorityBrokerMetadataPath
|
|
21
|
-
} from "./chunk-CVMMWN6P.js";
|
|
22
|
-
import {
|
|
23
|
-
resolveNoloHome
|
|
24
|
-
} from "./chunk-GLKOYSRU.js";
|
|
25
|
-
import {
|
|
26
|
-
toErrorMessage
|
|
27
|
-
} from "./chunk-HNMXYYJR.js";
|
|
28
|
-
|
|
29
|
-
// packages/cli/localRuntimeAuthority.ts
|
|
30
|
-
import fs from "node:fs";
|
|
31
|
-
import { randomUUID } from "node:crypto";
|
|
32
|
-
import path from "node:path";
|
|
33
|
-
function ensureDbParentDir(dbPath) {
|
|
34
|
-
fs.mkdirSync(path.dirname(dbPath), { recursive: true });
|
|
35
|
-
}
|
|
36
|
-
function findCliAuthorityCorruption(error) {
|
|
37
|
-
const seen = /* @__PURE__ */ new Set();
|
|
38
|
-
let current = error;
|
|
39
|
-
while (current && !seen.has(current)) {
|
|
40
|
-
seen.add(current);
|
|
41
|
-
if (current.code === "LEVEL_CORRUPTION" || /Corruption:|missing files/i.test(toErrorMessage(current))) return current;
|
|
42
|
-
current = current.cause;
|
|
43
|
-
}
|
|
44
|
-
return void 0;
|
|
45
|
-
}
|
|
46
|
-
function throwCliAuthorityStartupError(error) {
|
|
47
|
-
const corruption = findCliAuthorityCorruption(error);
|
|
48
|
-
if (corruption) {
|
|
49
|
-
throw new Error(`Local authority database corruption: ${toErrorMessage(corruption)}`, { cause: error });
|
|
50
|
-
}
|
|
51
|
-
throw error;
|
|
52
|
-
}
|
|
53
|
-
function isCliAuthorityLockError(error) {
|
|
54
|
-
if (findCliAuthorityCorruption(error)) return false;
|
|
55
|
-
const seen = /* @__PURE__ */ new Set();
|
|
56
|
-
let current = error;
|
|
57
|
-
while (current && !seen.has(current)) {
|
|
58
|
-
seen.add(current);
|
|
59
|
-
if (isLevelLockError(current)) return true;
|
|
60
|
-
current = current.cause;
|
|
61
|
-
}
|
|
62
|
-
return /EADDRINUSE|Failed to listen/i.test(toErrorMessage(error));
|
|
63
|
-
}
|
|
64
|
-
async function sleep(ms) {
|
|
65
|
-
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
66
|
-
}
|
|
67
|
-
function resolveCliLocalRuntimeDbPath(options = {}) {
|
|
68
|
-
return path.join(
|
|
69
|
-
resolveNoloHome({
|
|
70
|
-
env: options.env,
|
|
71
|
-
homeDir: options.homeDir
|
|
72
|
-
}),
|
|
73
|
-
"data",
|
|
74
|
-
"leveldb"
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
var DEFAULT_ATTACH_BACKOFF_MS = [100, 200, 400, 800];
|
|
78
|
-
var DEFAULT_ATTACH_RETRY_BUDGET_MS = 9e3;
|
|
79
|
-
function findOwnerPid(error) {
|
|
80
|
-
const seen = /* @__PURE__ */ new Set();
|
|
81
|
-
let current = error;
|
|
82
|
-
while (current && typeof current === "object" && !seen.has(current)) {
|
|
83
|
-
seen.add(current);
|
|
84
|
-
const pid = current.ownerPid;
|
|
85
|
-
if (typeof pid === "number" && Number.isInteger(pid) && pid > 0) {
|
|
86
|
-
return pid;
|
|
87
|
-
}
|
|
88
|
-
current = current.cause;
|
|
89
|
-
}
|
|
90
|
-
return void 0;
|
|
91
|
-
}
|
|
92
|
-
function isTransientBrokerOpenError(error) {
|
|
93
|
-
return isCliAuthorityBrokerUnavailableError(error) || isCliAuthorityBrokerTimeoutError(error);
|
|
94
|
-
}
|
|
95
|
-
var defaultCliAuthorityBrokerConnectDeps = {
|
|
96
|
-
createClient: (options) => createCliAuthorityBrokerClient(options),
|
|
97
|
-
startBroker: startCliAuthorityBrokerProcess,
|
|
98
|
-
sleep,
|
|
99
|
-
useFastPath: true
|
|
100
|
-
};
|
|
101
|
-
function verifyBrokerDatabase(args, liveLocation) {
|
|
102
|
-
const expected = fs.existsSync(args.dbPath) ? fs.realpathSync(args.dbPath) : path.join(fs.realpathSync(path.dirname(args.dbPath)), path.basename(args.dbPath));
|
|
103
|
-
if (typeof liveLocation !== "string" || fs.realpathSync(liveLocation) !== expected) {
|
|
104
|
-
throw new Error(`Authority broker at ${args.endpoint} does not match the requested database ${args.dbPath}`);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function findLegacyBrokerOwner(args) {
|
|
108
|
-
try {
|
|
109
|
-
const metadata = JSON.parse(fs.readFileSync(args.metadataPath, "utf8"));
|
|
110
|
-
const owner = JSON.parse(fs.readFileSync(`${args.dbPath}.owner`, "utf8"));
|
|
111
|
-
if (metadata.transportSecurity !== void 0 || metadata.supervisorPid !== void 0 || metadata.endpoint !== args.endpoint || !Number.isInteger(metadata.pid) || metadata.pid <= 0 || owner.pid !== metadata.pid || fs.realpathSync(metadata.location) !== fs.realpathSync(args.dbPath)) return void 0;
|
|
112
|
-
process.kill(metadata.pid, 0);
|
|
113
|
-
return metadata.pid;
|
|
114
|
-
} catch {
|
|
115
|
-
return void 0;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
async function connectCliAuthorityBroker(args) {
|
|
119
|
-
const deps = {
|
|
120
|
-
...defaultCliAuthorityBrokerConnectDeps,
|
|
121
|
-
...args.deps
|
|
122
|
-
};
|
|
123
|
-
async function connectClient() {
|
|
124
|
-
const invoke = createCliAuthorityBrokerSocketInvoker({ endpoint: args.endpoint, tls: args.tls });
|
|
125
|
-
const client2 = deps.createClient({
|
|
126
|
-
endpoint: args.endpoint,
|
|
127
|
-
invoke: async (request) => {
|
|
128
|
-
if (request.type !== "status" || !deps.verifyBroker) return invoke(request);
|
|
129
|
-
const response = await invoke({ type: "status", includeLocation: true });
|
|
130
|
-
if (response.ok && response.result.type === "status") deps.verifyBroker(args, response.result.location);
|
|
131
|
-
return response;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
const backoffSchedule = deps.attachBackoffMs?.length ? deps.attachBackoffMs : DEFAULT_ATTACH_BACKOFF_MS;
|
|
135
|
-
const retryBudgetMs = deps.attachRetryBudgetMs ?? DEFAULT_ATTACH_RETRY_BUDGET_MS;
|
|
136
|
-
let waitedMs = 0;
|
|
137
|
-
let backoffStep = 0;
|
|
138
|
-
let lastAttachError;
|
|
139
|
-
const waitBackoff = async () => {
|
|
140
|
-
if (waitedMs >= retryBudgetMs) return false;
|
|
141
|
-
const delay = backoffSchedule[Math.min(backoffStep, backoffSchedule.length - 1)];
|
|
142
|
-
if (waitedMs > 0 && waitedMs + delay > retryBudgetMs) return false;
|
|
143
|
-
backoffStep += 1;
|
|
144
|
-
const startedAt = Date.now();
|
|
145
|
-
await deps.sleep(delay);
|
|
146
|
-
waitedMs += Math.max(delay, Date.now() - startedAt);
|
|
147
|
-
return true;
|
|
148
|
-
};
|
|
149
|
-
async function attachToExistingBroker(attempts) {
|
|
150
|
-
for (let attempt = 0; attempt < attempts; attempt += 1) {
|
|
151
|
-
if (!await waitBackoff()) return false;
|
|
152
|
-
const probeStartedAt = Date.now();
|
|
153
|
-
try {
|
|
154
|
-
await client2.open();
|
|
155
|
-
return true;
|
|
156
|
-
} catch (error) {
|
|
157
|
-
waitedMs += Date.now() - probeStartedAt;
|
|
158
|
-
if (!isTransientBrokerOpenError(error)) throw error;
|
|
159
|
-
lastAttachError = error;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
if (deps.useFastPath) {
|
|
165
|
-
try {
|
|
166
|
-
await client2.open();
|
|
167
|
-
return client2;
|
|
168
|
-
} catch (error) {
|
|
169
|
-
if (!isTransientBrokerOpenError(error)) throw error;
|
|
170
|
-
lastAttachError = error;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
try {
|
|
174
|
-
await deps.startBroker({
|
|
175
|
-
endpoint: args.endpoint,
|
|
176
|
-
metadataPath: args.metadataPath,
|
|
177
|
-
healthPath: args.healthPath,
|
|
178
|
-
dbPath: args.dbPath
|
|
179
|
-
});
|
|
180
|
-
await client2.open();
|
|
181
|
-
return client2;
|
|
182
|
-
} catch (error) {
|
|
183
|
-
if (!isCliAuthorityLockError(error)) throwCliAuthorityStartupError(error);
|
|
184
|
-
if (await attachToExistingBroker(5)) {
|
|
185
|
-
return client2;
|
|
186
|
-
}
|
|
187
|
-
let lastError = error;
|
|
188
|
-
while (await waitBackoff()) {
|
|
189
|
-
try {
|
|
190
|
-
await deps.startBroker({
|
|
191
|
-
endpoint: args.endpoint,
|
|
192
|
-
metadataPath: args.metadataPath,
|
|
193
|
-
healthPath: args.healthPath,
|
|
194
|
-
dbPath: args.dbPath
|
|
195
|
-
});
|
|
196
|
-
await client2.open();
|
|
197
|
-
return client2;
|
|
198
|
-
} catch (retryError) {
|
|
199
|
-
lastError = retryError;
|
|
200
|
-
if (isCliAuthorityLockError(retryError)) {
|
|
201
|
-
if (await attachToExistingBroker(2)) {
|
|
202
|
-
return client2;
|
|
203
|
-
}
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
if (isTransientBrokerOpenError(retryError)) {
|
|
207
|
-
lastAttachError = retryError;
|
|
208
|
-
continue;
|
|
209
|
-
}
|
|
210
|
-
throwCliAuthorityStartupError(retryError);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const lastMessage = toErrorMessage(lastError);
|
|
214
|
-
const attachCause = lastAttachError instanceof Error ? lastAttachError.cause : void 0;
|
|
215
|
-
const attachMessage = lastAttachError ? [toErrorMessage(lastAttachError), ...attachCause ? [toErrorMessage(attachCause)] : []].join(" / ") : "";
|
|
216
|
-
const portInUse = lastError !== null && typeof lastError === "object" && "code" in lastError && lastError.code === "EADDRINUSE" || /EADDRINUSE/i.test(lastMessage);
|
|
217
|
-
const ownerPid = findOwnerPid(lastError);
|
|
218
|
-
const legacyOwner = args.tls ? findLegacyBrokerOwner(args) : void 0;
|
|
219
|
-
if (legacyOwner !== void 0) {
|
|
220
|
-
throw new Error(`CLI authority broker upgrade requires exit of the previous Nolo process (PID ${legacyOwner}). Close its Nolo window or let it finish, then retry. The new broker will reopen the same database.`, {
|
|
221
|
-
cause: lastError
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
let detail = "";
|
|
225
|
-
if (portInUse) {
|
|
226
|
-
detail = `: EADDRINUSE (${lastMessage}). The broker endpoint is already in use; check the process using it or set NOLO_CLI_AUTHORITY_BROKER_PORT to a free port for all local CLI processes`;
|
|
227
|
-
} else {
|
|
228
|
-
const parts = [
|
|
229
|
-
ownerPid !== void 0 ? `ownerPid=${ownerPid}` : void 0,
|
|
230
|
-
lastMessage || void 0,
|
|
231
|
-
attachMessage && attachMessage !== lastMessage ? `attach=${attachMessage}` : void 0
|
|
232
|
-
].filter(Boolean);
|
|
233
|
-
if (parts.length > 0) {
|
|
234
|
-
detail = `: ${parts.join("; ")}`;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
throw new Error(`CLI authority broker could not attach or take ownership for ${args.endpoint}${detail}`, {
|
|
238
|
-
cause: lastError
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
let client = await connectClient();
|
|
243
|
-
let reconnecting = null;
|
|
244
|
-
async function reconnect() {
|
|
245
|
-
reconnecting ??= connectClient();
|
|
246
|
-
try {
|
|
247
|
-
client = await reconnecting;
|
|
248
|
-
return client;
|
|
249
|
-
} finally {
|
|
250
|
-
reconnecting = null;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
async function runWithSelfHealing(operation) {
|
|
254
|
-
try {
|
|
255
|
-
return await operation(client);
|
|
256
|
-
} catch (error) {
|
|
257
|
-
if (!isCliAuthorityBrokerUnavailableError(error)) throw error;
|
|
258
|
-
const recoveredClient = await reconnect();
|
|
259
|
-
return operation(recoveredClient);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
return {
|
|
263
|
-
get location() {
|
|
264
|
-
return client.location;
|
|
265
|
-
},
|
|
266
|
-
get status() {
|
|
267
|
-
return client.status;
|
|
268
|
-
},
|
|
269
|
-
open: () => runWithSelfHealing((activeClient) => activeClient.open()),
|
|
270
|
-
close: () => runWithSelfHealing((activeClient) => activeClient.close()),
|
|
271
|
-
get: (key) => runWithSelfHealing((activeClient) => activeClient.get(key)),
|
|
272
|
-
conditionalPut: (key, expectedRevision, value) => runWithSelfHealing((activeClient) => {
|
|
273
|
-
if (!activeClient.conditionalPut) {
|
|
274
|
-
throw new Error("CLI authority broker does not support conditionalPut");
|
|
275
|
-
}
|
|
276
|
-
return activeClient.conditionalPut(key, expectedRevision, value);
|
|
277
|
-
}),
|
|
278
|
-
put: (key, value) => runWithSelfHealing((activeClient) => activeClient.put(key, value)),
|
|
279
|
-
del: (key) => runWithSelfHealing((activeClient) => activeClient.del(key)),
|
|
280
|
-
batchWrite: (ops) => runWithSelfHealing((activeClient) => activeClient.batchWrite(ops)),
|
|
281
|
-
createBatch() {
|
|
282
|
-
const ops = [];
|
|
283
|
-
return {
|
|
284
|
-
put(key, value) {
|
|
285
|
-
ops.push({ type: "put", key, value });
|
|
286
|
-
},
|
|
287
|
-
del(key) {
|
|
288
|
-
ops.push({ type: "del", key });
|
|
289
|
-
},
|
|
290
|
-
write: () => runWithSelfHealing((activeClient) => activeClient.batchWrite(ops))
|
|
291
|
-
};
|
|
292
|
-
},
|
|
293
|
-
iterator(options = {}) {
|
|
294
|
-
return async function* iterate() {
|
|
295
|
-
let activeOptions = options;
|
|
296
|
-
let lastYieldedKey;
|
|
297
|
-
let skipResumeKey = false;
|
|
298
|
-
let recovered = false;
|
|
299
|
-
while (true) {
|
|
300
|
-
try {
|
|
301
|
-
for await (const entry of client.iterator(activeOptions)) {
|
|
302
|
-
if (skipResumeKey && entry[0] === lastYieldedKey) {
|
|
303
|
-
skipResumeKey = false;
|
|
304
|
-
continue;
|
|
305
|
-
}
|
|
306
|
-
skipResumeKey = false;
|
|
307
|
-
lastYieldedKey = entry[0];
|
|
308
|
-
yield entry;
|
|
309
|
-
}
|
|
310
|
-
return;
|
|
311
|
-
} catch (error) {
|
|
312
|
-
if (recovered || !isCliAuthorityBrokerUnavailableError(error)) {
|
|
313
|
-
throw error;
|
|
314
|
-
}
|
|
315
|
-
recovered = true;
|
|
316
|
-
await reconnect();
|
|
317
|
-
if (lastYieldedKey === void 0) {
|
|
318
|
-
activeOptions = options;
|
|
319
|
-
continue;
|
|
320
|
-
}
|
|
321
|
-
if (options.reverse) {
|
|
322
|
-
activeOptions = {
|
|
323
|
-
...options,
|
|
324
|
-
lt: lastYieldedKey
|
|
325
|
-
};
|
|
326
|
-
continue;
|
|
327
|
-
}
|
|
328
|
-
activeOptions = {
|
|
329
|
-
...options,
|
|
330
|
-
gte: lastYieldedKey
|
|
331
|
-
};
|
|
332
|
-
skipResumeKey = true;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}();
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
async function getDefaultCliLocalRuntimeAuthority(options = {}) {
|
|
340
|
-
const ambientNoloHome = process.env.NOLO_HOME?.trim();
|
|
341
|
-
const ambientBrokerPort = process.env.NOLO_CLI_AUTHORITY_BROKER_PORT?.trim();
|
|
342
|
-
const env = {
|
|
343
|
-
...ambientNoloHome ? { NOLO_HOME: ambientNoloHome } : {},
|
|
344
|
-
...ambientBrokerPort ? { NOLO_CLI_AUTHORITY_BROKER_PORT: ambientBrokerPort } : {},
|
|
345
|
-
...options.env ?? process.env
|
|
346
|
-
};
|
|
347
|
-
const dbPath = resolveCliLocalRuntimeDbPath({
|
|
348
|
-
env,
|
|
349
|
-
homeDir: options.homeDir
|
|
350
|
-
});
|
|
351
|
-
ensureDbParentDir(dbPath);
|
|
352
|
-
const endpoint = resolveCliAuthorityBrokerEndpoint({
|
|
353
|
-
transport: "tcp",
|
|
354
|
-
env,
|
|
355
|
-
homeDir: options.homeDir
|
|
356
|
-
});
|
|
357
|
-
const metadataPath = resolveCliAuthorityBrokerMetadataPath({
|
|
358
|
-
transport: "tcp",
|
|
359
|
-
env,
|
|
360
|
-
homeDir: options.homeDir
|
|
361
|
-
});
|
|
362
|
-
const healthPath = resolveCliAuthorityBrokerHealthPath({
|
|
363
|
-
transport: "tcp",
|
|
364
|
-
env,
|
|
365
|
-
homeDir: options.homeDir
|
|
366
|
-
});
|
|
367
|
-
return connectCliAuthorityBroker({
|
|
368
|
-
endpoint,
|
|
369
|
-
metadataPath,
|
|
370
|
-
healthPath,
|
|
371
|
-
dbPath,
|
|
372
|
-
tls: await loadCliAuthorityBrokerTls(metadataPath),
|
|
373
|
-
deps: { verifyBroker: verifyBrokerDatabase }
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
377
|
-
const authorityStore = await getDefaultCliLocalRuntimeAuthority(options);
|
|
378
|
-
return createLegacyServerDb(authorityStore);
|
|
379
|
-
}
|
|
380
|
-
function createCliLocalMcpConnectionRevisionWriter(authority, authenticatedUserId) {
|
|
381
|
-
if (!authenticatedUserId) throw new Error("Local MCP connection owner is required");
|
|
382
|
-
const prefix = `mcp-private:v1:${encodeURIComponent(authenticatedUserId)}:connection:`;
|
|
383
|
-
const conditionalPut = authority.conditionalPut?.bind(authority);
|
|
384
|
-
if (!conditionalPut) throw new Error("CLI authority broker does not support conditionalPut");
|
|
385
|
-
return {
|
|
386
|
-
async create(value) {
|
|
387
|
-
const id = randomUUID();
|
|
388
|
-
const result = await conditionalPut(prefix + id, null, { ...value, revision: 1 });
|
|
389
|
-
return { id, ...result };
|
|
390
|
-
},
|
|
391
|
-
async update(id, expectedRevision, value) {
|
|
392
|
-
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(id) || !Number.isSafeInteger(expectedRevision) || expectedRevision < 1 || expectedRevision >= Number.MAX_SAFE_INTEGER) {
|
|
393
|
-
throw new Error("Invalid local MCP connection identity or revision");
|
|
394
|
-
}
|
|
395
|
-
return conditionalPut(prefix + id, expectedRevision, { ...value, revision: expectedRevision + 1 });
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export {
|
|
401
|
-
connectCliAuthorityBroker,
|
|
402
|
-
getDefaultCliLocalRuntimeAuthority,
|
|
403
|
-
getDefaultCliLocalRuntimeDb,
|
|
404
|
-
createCliLocalMcpConnectionRevisionWriter
|
|
405
|
-
};
|
package/chunk-PXYBUFDB.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// packages/identity/sessionSource.ts
|
|
2
|
-
var IDENTITY_SESSION_READER = Symbol.for(
|
|
3
|
-
"nolo.identity.sessionReader"
|
|
4
|
-
);
|
|
5
|
-
var moduleFallbackReader = null;
|
|
6
|
-
function getBoundSessionSnapshot() {
|
|
7
|
-
return moduleFallbackReader?.() ?? null;
|
|
8
|
-
}
|
|
9
|
-
function getSessionSnapshotForState(state) {
|
|
10
|
-
const reader = state?.[IDENTITY_SESSION_READER];
|
|
11
|
-
if (typeof reader === "function") {
|
|
12
|
-
return reader();
|
|
13
|
-
}
|
|
14
|
-
return getBoundSessionSnapshot();
|
|
15
|
-
}
|
|
16
|
-
function getSessionGenerationForState(state) {
|
|
17
|
-
return getSessionSnapshotForState(state)?.sessionGeneration;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// packages/identity/selectors.local.ts
|
|
21
|
-
var LOCAL_USER_ID = (typeof process !== "undefined" ? process.env?.NOLO_LOCAL_USER_ID : void 0) || (typeof process !== "undefined" ? process.env?.NOLO_USER_ID : void 0) || "local";
|
|
22
|
-
var LOCAL_USER = {
|
|
23
|
-
userId: LOCAL_USER_ID,
|
|
24
|
-
username: "Local User"
|
|
25
|
-
};
|
|
26
|
-
var selectIdentityUserId = (state) => {
|
|
27
|
-
const snapshot = getSessionSnapshotForState(state);
|
|
28
|
-
if (snapshot) return snapshot.activeAccountId ?? void 0;
|
|
29
|
-
return LOCAL_USER_ID;
|
|
30
|
-
};
|
|
31
|
-
var selectIdentityToken = (state) => {
|
|
32
|
-
return getSessionSnapshotForState(state)?.activeToken ?? void 0;
|
|
33
|
-
};
|
|
34
|
-
var selectIdentityUser = (state) => {
|
|
35
|
-
const snapshot = getSessionSnapshotForState(state);
|
|
36
|
-
if (snapshot) {
|
|
37
|
-
const active = snapshot.accounts.find(
|
|
38
|
-
(account) => account.userId === snapshot.activeAccountId
|
|
39
|
-
);
|
|
40
|
-
return active ?? null;
|
|
41
|
-
}
|
|
42
|
-
return LOCAL_USER;
|
|
43
|
-
};
|
|
44
|
-
var selectIdentityUserBalance = (state) => void 0;
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
getSessionSnapshotForState,
|
|
48
|
-
getSessionGenerationForState,
|
|
49
|
-
selectIdentityUserId,
|
|
50
|
-
selectIdentityToken,
|
|
51
|
-
selectIdentityUser,
|
|
52
|
-
selectIdentityUserBalance
|
|
53
|
-
};
|
package/chunk-R3FZHW4Q.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
// packages/ai/skills/userPromptSkillSlugs.ts
|
|
2
|
-
var RECOMMENDED_PROMPT_SKILL_SLUGS = ["ub-mode"];
|
|
3
|
-
var ALLOWED_PROMPT_SKILL_SLUGS = new Set(
|
|
4
|
-
RECOMMENDED_PROMPT_SKILL_SLUGS
|
|
5
|
-
);
|
|
6
|
-
function normalizeEnabledPromptSkills(value) {
|
|
7
|
-
if (!Array.isArray(value)) {
|
|
8
|
-
return [];
|
|
9
|
-
}
|
|
10
|
-
const result = [];
|
|
11
|
-
const seen = /* @__PURE__ */ new Set();
|
|
12
|
-
for (const item of value) {
|
|
13
|
-
if (typeof item !== "string") {
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
const trimmed = item.trim();
|
|
17
|
-
if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
|
|
18
|
-
seen.add(trimmed);
|
|
19
|
-
result.push(trimmed);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// packages/ai/skills/userSkills.ts
|
|
26
|
-
var NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS = [
|
|
27
|
-
"response-presentation",
|
|
28
|
-
"external-copywriting"
|
|
29
|
-
];
|
|
30
|
-
function isAccountOnDemandWorkflowSkill(slug) {
|
|
31
|
-
return typeof slug === "string" && NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS.some((candidate) => candidate === slug.trim());
|
|
32
|
-
}
|
|
33
|
-
var SUPPORTED_USER_SKILL_SLUGS = [
|
|
34
|
-
"ub-mode",
|
|
35
|
-
"auto-review",
|
|
36
|
-
"code-style",
|
|
37
|
-
"worktree-isolation",
|
|
38
|
-
"systematic-investigation",
|
|
39
|
-
"show-me",
|
|
40
|
-
"caveman",
|
|
41
|
-
"secrets-manager",
|
|
42
|
-
"skill-creator",
|
|
43
|
-
"code-planning",
|
|
44
|
-
"coding",
|
|
45
|
-
"coding-review",
|
|
46
|
-
"android-adb",
|
|
47
|
-
"mihome-assistant",
|
|
48
|
-
"stock-quotes",
|
|
49
|
-
"unslop-ui",
|
|
50
|
-
...NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS
|
|
51
|
-
];
|
|
52
|
-
var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
|
|
53
|
-
SUPPORTED_USER_SKILL_SLUGS
|
|
54
|
-
);
|
|
55
|
-
function normalizeEnabledSkills(value) {
|
|
56
|
-
if (!Array.isArray(value)) {
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
const result = [];
|
|
60
|
-
const seen = /* @__PURE__ */ new Set();
|
|
61
|
-
for (const item of value) {
|
|
62
|
-
if (typeof item !== "string") {
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
const trimmed = item.trim();
|
|
66
|
-
if (SUPPORTED_USER_SKILL_SLUG_SET.has(trimmed) && !seen.has(trimmed)) {
|
|
67
|
-
seen.add(trimmed);
|
|
68
|
-
result.push(trimmed);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
function resolveUserEnabledSkills(preferences) {
|
|
74
|
-
if (!preferences || typeof preferences !== "object") {
|
|
75
|
-
return [];
|
|
76
|
-
}
|
|
77
|
-
if (Object.prototype.hasOwnProperty.call(preferences, "enabledSkills")) {
|
|
78
|
-
return normalizeEnabledSkills(preferences.enabledSkills);
|
|
79
|
-
}
|
|
80
|
-
if (Object.prototype.hasOwnProperty.call(preferences, "enabledPromptSkills")) {
|
|
81
|
-
const legacy = normalizeEnabledPromptSkills(preferences.enabledPromptSkills);
|
|
82
|
-
return legacy.filter((slug) => SUPPORTED_USER_SKILL_SLUG_SET.has(slug));
|
|
83
|
-
}
|
|
84
|
-
return [];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// packages/ai/policy/types.ts
|
|
88
|
-
var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
89
|
-
version: 1,
|
|
90
|
-
tone: {
|
|
91
|
-
preset: "default"
|
|
92
|
-
},
|
|
93
|
-
knowledgeCaptureLevel: 2,
|
|
94
|
-
spaceContextLevel: 3
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
normalizeEnabledPromptSkills,
|
|
99
|
-
isAccountOnDemandWorkflowSkill,
|
|
100
|
-
normalizeEnabledSkills,
|
|
101
|
-
resolveUserEnabledSkills,
|
|
102
|
-
DEFAULT_USER_PREFERENCE_PROFILE
|
|
103
|
-
};
|
package/chunk-R3MV2GII.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// packages/cli/levelLazyShim.mjs
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
|
-
var _require = createRequire(import.meta.url);
|
|
4
|
-
var _RealLevel;
|
|
5
|
-
function ensureLevel() {
|
|
6
|
-
if (!_RealLevel) {
|
|
7
|
-
_RealLevel = _require("level").Level;
|
|
8
|
-
}
|
|
9
|
-
return _RealLevel;
|
|
10
|
-
}
|
|
11
|
-
var Level = class {
|
|
12
|
-
/** `Level` 就是 classic-level 的 ClassicLevel,静态 repair 同样要懒加载。 */
|
|
13
|
-
static repair(location) {
|
|
14
|
-
return ensureLevel().repair(location);
|
|
15
|
-
}
|
|
16
|
-
constructor(...args) {
|
|
17
|
-
const RealLevel = ensureLevel();
|
|
18
|
-
return new RealLevel(...args);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// packages/database-engine/levelAuthorityStore.ts
|
|
23
|
-
var safeJsonEncoding = {
|
|
24
|
-
name: "safe-json",
|
|
25
|
-
format: "utf8",
|
|
26
|
-
encode: (data) => JSON.stringify(data),
|
|
27
|
-
decode: (data) => {
|
|
28
|
-
try {
|
|
29
|
-
return JSON.parse(data);
|
|
30
|
-
} catch {
|
|
31
|
-
console.warn("[LevelDB] Corrupted value:", data?.substring?.(0, 60));
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
function createLevelAuthorityStore(source) {
|
|
37
|
-
const levelDb = typeof source === "string" ? new Level(source, { valueEncoding: safeJsonEncoding }) : source;
|
|
38
|
-
const writeBatchOps = async (ops) => {
|
|
39
|
-
const result = levelDb.batch(ops);
|
|
40
|
-
if (result && typeof result.then === "function") {
|
|
41
|
-
await result;
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (result && typeof result.write === "function") {
|
|
45
|
-
const writer = result;
|
|
46
|
-
for (const op of ops) {
|
|
47
|
-
if (op.type === "put") {
|
|
48
|
-
writer.put(op.key, op.value);
|
|
49
|
-
} else {
|
|
50
|
-
writer.del(op.key);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
await writer.write();
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
throw new Error("Level backing does not support batch writes");
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
get location() {
|
|
60
|
-
return levelDb.location;
|
|
61
|
-
},
|
|
62
|
-
get status() {
|
|
63
|
-
return levelDb.status;
|
|
64
|
-
},
|
|
65
|
-
async open() {
|
|
66
|
-
await levelDb.open();
|
|
67
|
-
},
|
|
68
|
-
async close() {
|
|
69
|
-
await levelDb.close();
|
|
70
|
-
},
|
|
71
|
-
async get(key) {
|
|
72
|
-
return levelDb.get(key);
|
|
73
|
-
},
|
|
74
|
-
async put(key, value) {
|
|
75
|
-
await levelDb.put(key, value);
|
|
76
|
-
},
|
|
77
|
-
async del(key) {
|
|
78
|
-
await levelDb.del(key);
|
|
79
|
-
},
|
|
80
|
-
async batchWrite(ops) {
|
|
81
|
-
await writeBatchOps(ops);
|
|
82
|
-
},
|
|
83
|
-
createBatch() {
|
|
84
|
-
const batch = levelDb.batch();
|
|
85
|
-
return {
|
|
86
|
-
put(key, value) {
|
|
87
|
-
batch.put(key, value);
|
|
88
|
-
},
|
|
89
|
-
del(key) {
|
|
90
|
-
batch.del(key);
|
|
91
|
-
},
|
|
92
|
-
async write() {
|
|
93
|
-
await batch.write();
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
iterator(options = {}) {
|
|
98
|
-
return levelDb.iterator(options);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
Level,
|
|
105
|
-
createLevelAuthorityStore
|
|
106
|
-
};
|