nolo-cli 0.228.0-alpha.2 → 0.228.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 +3 -5
- package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
- package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
- package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
- package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
- package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
- package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
- package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
- package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/agentRecordCommands-4NTVR6MZ.js +194 -0
- package/agentRunCommand-VHF34PYC.js +232 -0
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
- package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
- package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
- package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
- package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
- package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
- package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
- package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
- package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
- package/chunk-2SXN7LAY.js +15 -0
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
- package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
- package/chunk-6PAHSSD2.js +33401 -0
- package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
- package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
- package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
- package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
- package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
- package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
- package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
- package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
- package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
- package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
- package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/chunk-EHFBP6IK.js +791 -0
- package/chunk-EJQE5HB7.js +21 -0
- package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
- package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
- package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
- package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
- package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
- package/chunk-GAHJLSDO.js +107 -0
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
- package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
- package/chunk-IIRJ4P4I.js +24 -0
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
- package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
- package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
- package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
- package/chunk-JLZJL3WC.js +988 -0
- package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
- package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
- package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
- package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
- package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
- package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
- package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
- package/chunk-KXOPLLFP.js +190 -0
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
- package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
- package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
- package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
- package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
- package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
- package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
- package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
- package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
- package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
- package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
- package/chunk-R3FZHW4Q.js +103 -0
- package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
- package/chunk-R72QWIFO.js +50 -0
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
- package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
- package/chunk-SQL7YNED.js +650 -0
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
- package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
- package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
- package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
- package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
- package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
- package/chunk-V5TI7HJH.js +133 -0
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
- package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
- package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
- package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
- package/chunk-YJPK35HB.js +175 -0
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
- package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
- package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
- package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
- package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
- package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
- package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
- package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
- package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
- package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
- package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
- package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
- package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
- package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
- package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
- package/index.js +23 -11
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
- package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
- package/machineWsRunDispatch-PDWYB33B.js +209 -0
- package/markdownToSlate-PXYAIBVL.js +8 -0
- package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
- package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +2 -1
- package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
- package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
- package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
- package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
- package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
- package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
- package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
- package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
- package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
- package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
- package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
- package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
- package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/webapi-QVV65DQF.js +2487 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-VU5I4LKZ.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/agentRecordCommands-IZYUVHME.js +0 -177
- package/agentRunCommand-QM7ETUTX.js +0 -209
- package/chunk-2YGBI2XB.js +0 -30
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-5ZUOVCKT.js +0 -32
- package/chunk-62HXNQVV.js +0 -134
- package/chunk-FJSNBZXR.js +0 -142
- package/chunk-FPBJM2BW.js +0 -689
- package/chunk-JQZRSXS5.js +0 -90
- package/chunk-P2ZLUIW2.js +0 -795
- package/chunk-PPJYZRSQ.js +0 -160
- package/chunk-TUSTONB3.js +0 -81
- package/chunk-ZXF6D3I6.js +0 -359
- package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
- package/lib-OT5OTXRU.js +0 -21046
- package/localRuntimeAuthority-IBJAT62G.js +0 -16
- package/machineWsRunDispatch-L6H7J66T.js +0 -192
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveStateResident
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
resolveMachineId
|
|
6
|
-
} from "./chunk-S73EPYNC.js";
|
|
3
|
+
} from "./chunk-GAHJLSDO.js";
|
|
7
4
|
import {
|
|
8
5
|
_appendRetiredStateBatch,
|
|
9
6
|
loadMemoryVNextCatalog
|
|
10
7
|
} from "./chunk-324FWHUA.js";
|
|
8
|
+
import {
|
|
9
|
+
resolveMachineId
|
|
10
|
+
} from "./chunk-S73EPYNC.js";
|
|
11
11
|
import {
|
|
12
12
|
getDefaultCliLocalRuntimeDb
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J55F3IEZ.js";
|
|
14
|
+
import {
|
|
15
|
+
gBase64,
|
|
16
|
+
isExternalSessionKind
|
|
17
|
+
} from "./chunk-YJPK35HB.js";
|
|
14
18
|
import {
|
|
15
19
|
createMemoryKey,
|
|
16
20
|
createMemoryOwnerIndexKey,
|
|
@@ -42,169 +46,6 @@ import {
|
|
|
42
46
|
// packages/core/crypto.ts
|
|
43
47
|
import nacl from "tweetnacl";
|
|
44
48
|
|
|
45
|
-
// node_modules/js-base64/base64.mjs
|
|
46
|
-
var version = "3.9.6";
|
|
47
|
-
var VERSION = version;
|
|
48
|
-
var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
|
|
49
|
-
var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
|
|
50
|
-
var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
51
|
-
var b64chs = Array.prototype.slice.call(b64ch);
|
|
52
|
-
var b64tab = ((a) => {
|
|
53
|
-
let tab = {};
|
|
54
|
-
a.forEach((c, i) => tab[c] = i);
|
|
55
|
-
return tab;
|
|
56
|
-
})(b64chs);
|
|
57
|
-
var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
|
|
58
|
-
var _fromCC = String.fromCharCode.bind(String);
|
|
59
|
-
var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
|
|
60
|
-
var _mkUriSafe = (src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_");
|
|
61
|
-
var _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, "");
|
|
62
|
-
var btoaPolyfill = (bin) => {
|
|
63
|
-
let u32, c0, c1, c2, asc = "";
|
|
64
|
-
const pad = bin.length % 3;
|
|
65
|
-
for (let i = 0; i < bin.length; ) {
|
|
66
|
-
if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
|
|
67
|
-
throw new TypeError("invalid character found");
|
|
68
|
-
u32 = c0 << 16 | c1 << 8 | c2;
|
|
69
|
-
asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
|
|
70
|
-
}
|
|
71
|
-
return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
|
|
72
|
-
};
|
|
73
|
-
var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
|
|
74
|
-
var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? Function.prototype.call.bind(Uint8Array.prototype.toBase64) : (u8a) => {
|
|
75
|
-
const maxargs = 4096;
|
|
76
|
-
let strs = [];
|
|
77
|
-
for (let i = 0, l = u8a.length; i < l; i += maxargs) {
|
|
78
|
-
strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
|
|
79
|
-
}
|
|
80
|
-
return _btoa(strs.join(""));
|
|
81
|
-
};
|
|
82
|
-
var fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
|
|
83
|
-
var cb_utob = (c) => {
|
|
84
|
-
if (c.length < 2) {
|
|
85
|
-
var cc = c.charCodeAt(0);
|
|
86
|
-
return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
87
|
-
} else {
|
|
88
|
-
var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
|
|
89
|
-
return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
|
|
93
|
-
var utob = (u) => u.replace(re_utob, cb_utob);
|
|
94
|
-
var _encode = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
|
|
95
|
-
var encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
|
|
96
|
-
var encodeURI = (src) => encode(src, true);
|
|
97
|
-
var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
|
|
98
|
-
var cb_btou = (cccc) => {
|
|
99
|
-
switch (cccc.length) {
|
|
100
|
-
case 4:
|
|
101
|
-
var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
|
|
102
|
-
return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
|
|
103
|
-
case 3:
|
|
104
|
-
return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
|
|
105
|
-
default:
|
|
106
|
-
return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
var btou = (b) => b.replace(re_btou, cb_btou);
|
|
110
|
-
var atobPolyfill = (asc) => {
|
|
111
|
-
asc = asc.replace(/\s+/g, "");
|
|
112
|
-
if (!b64re.test(asc))
|
|
113
|
-
throw new TypeError("malformed base64.");
|
|
114
|
-
asc += "==".slice(2 - (asc.length & 3));
|
|
115
|
-
let u24, r1, r2;
|
|
116
|
-
let binArray = [];
|
|
117
|
-
for (let i = 0; i < asc.length; ) {
|
|
118
|
-
u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
|
|
119
|
-
if (r1 === 64) {
|
|
120
|
-
binArray.push(_fromCC(u24 >> 16 & 255));
|
|
121
|
-
} else if (r2 === 64) {
|
|
122
|
-
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
|
|
123
|
-
} else {
|
|
124
|
-
binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return binArray.join("");
|
|
128
|
-
};
|
|
129
|
-
var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
|
|
130
|
-
var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
|
|
131
|
-
var toUint8Array = (a) => _toUint8Array(_unURI(a));
|
|
132
|
-
var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
|
|
133
|
-
var _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/"));
|
|
134
|
-
var decode = (src) => _decode(_unURI(src));
|
|
135
|
-
var isValid = (src) => {
|
|
136
|
-
if (typeof src !== "string")
|
|
137
|
-
return false;
|
|
138
|
-
const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
|
|
139
|
-
if (s.length % 4 === 1)
|
|
140
|
-
return false;
|
|
141
|
-
return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
|
|
142
|
-
};
|
|
143
|
-
var _noEnum = (v) => {
|
|
144
|
-
return {
|
|
145
|
-
value: v,
|
|
146
|
-
enumerable: false,
|
|
147
|
-
writable: true,
|
|
148
|
-
configurable: true
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
var extendString = function() {
|
|
152
|
-
const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
|
|
153
|
-
_add("fromBase64", function() {
|
|
154
|
-
return decode(this);
|
|
155
|
-
});
|
|
156
|
-
_add("toBase64", function(urlsafe) {
|
|
157
|
-
return encode(this, urlsafe);
|
|
158
|
-
});
|
|
159
|
-
_add("toBase64URI", function() {
|
|
160
|
-
return encode(this, true);
|
|
161
|
-
});
|
|
162
|
-
_add("toBase64URL", function() {
|
|
163
|
-
return encode(this, true);
|
|
164
|
-
});
|
|
165
|
-
_add("toUint8Array", function() {
|
|
166
|
-
return toUint8Array(this);
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
var extendUint8Array = function() {
|
|
170
|
-
const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
|
|
171
|
-
_add("toBase64", function(urlsafe) {
|
|
172
|
-
return fromUint8Array(this, urlsafe);
|
|
173
|
-
});
|
|
174
|
-
_add("toBase64URI", function() {
|
|
175
|
-
return fromUint8Array(this, true);
|
|
176
|
-
});
|
|
177
|
-
_add("toBase64URL", function() {
|
|
178
|
-
return fromUint8Array(this, true);
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
var extendBuiltins = () => {
|
|
182
|
-
extendString();
|
|
183
|
-
extendUint8Array();
|
|
184
|
-
};
|
|
185
|
-
var gBase64 = {
|
|
186
|
-
version,
|
|
187
|
-
VERSION,
|
|
188
|
-
atob: _atob,
|
|
189
|
-
atobPolyfill,
|
|
190
|
-
btoa: _btoa,
|
|
191
|
-
btoaPolyfill,
|
|
192
|
-
fromBase64: decode,
|
|
193
|
-
toBase64: encode,
|
|
194
|
-
encode,
|
|
195
|
-
encodeURI,
|
|
196
|
-
encodeURL: encodeURI,
|
|
197
|
-
utob,
|
|
198
|
-
btou,
|
|
199
|
-
decode,
|
|
200
|
-
isValid,
|
|
201
|
-
fromUint8Array,
|
|
202
|
-
toUint8Array,
|
|
203
|
-
extendString,
|
|
204
|
-
extendUint8Array,
|
|
205
|
-
extendBuiltins
|
|
206
|
-
};
|
|
207
|
-
|
|
208
49
|
// packages/core/authToken.ts
|
|
209
50
|
var parseToken = (token) => {
|
|
210
51
|
try {
|
|
@@ -220,7 +61,13 @@ var isAccountIdentity = (value) => typeof value === "object" && value !== null &
|
|
|
220
61
|
var parseUserToken = (token) => {
|
|
221
62
|
if (typeof token !== "string" || !token.trim()) return null;
|
|
222
63
|
const parsed = parseToken(token);
|
|
223
|
-
|
|
64
|
+
if (!isAccountIdentity(parsed)) return null;
|
|
65
|
+
if (isExternalSessionKind(parsed.authKind)) {
|
|
66
|
+
const account = { userId: parsed.userId };
|
|
67
|
+
if (typeof parsed.username === "string") account.username = parsed.username;
|
|
68
|
+
return account;
|
|
69
|
+
}
|
|
70
|
+
return parsed;
|
|
224
71
|
};
|
|
225
72
|
var parseStoredTokenEntries = (tokens) => {
|
|
226
73
|
if (!Array.isArray(tokens)) return [];
|
|
@@ -352,7 +199,7 @@ var AccountSessionCore = class {
|
|
|
352
199
|
this.setSnapshot({
|
|
353
200
|
...this.snapshot,
|
|
354
201
|
transition
|
|
355
|
-
});
|
|
202
|
+
}, true);
|
|
356
203
|
}
|
|
357
204
|
/**
|
|
358
205
|
* Activate `token` as the active account and complete the current transition.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isTombstoneRecord
|
|
3
|
+
} from "./chunk-BV3FLP2L.js";
|
|
4
|
+
import {
|
|
5
|
+
buildDialogKey,
|
|
6
|
+
dialogMessageKey
|
|
7
|
+
} from "./chunk-OJKUU3LP.js";
|
|
8
|
+
|
|
9
|
+
// packages/ai/memory/vnext/workContextAccess.ts
|
|
10
|
+
async function resolveWorkContextAccess(db, userId, dialogId, userMessageId) {
|
|
11
|
+
if (!userId || userId === "server" || typeof dialogId !== "string" || !/^[A-Za-z0-9_-]{1,128}$/.test(dialogId)) throw new Error("invalid work dialog");
|
|
12
|
+
const dialog = await db.get(buildDialogKey(userId, dialogId));
|
|
13
|
+
if (!dialog || dialog.id !== dialogId || dialog.userId != null && dialog.userId !== userId || isTombstoneRecord(dialog)) throw new Error("work dialog forbidden");
|
|
14
|
+
const scope = { ownerId: `user:${encodeURIComponent(userId)}`, spaceId: typeof dialog.spaceId === "string" && dialog.spaceId ? dialog.spaceId : null, dialogId };
|
|
15
|
+
if (userMessageId === void 0) return { scope };
|
|
16
|
+
if (typeof userMessageId !== "string" || !/^[A-Za-z0-9_-]{1,128}$/.test(userMessageId)) throw new Error("persisted user message required");
|
|
17
|
+
const message = await db.get(dialogMessageKey(dialogId, userMessageId));
|
|
18
|
+
if (!message || message.id !== userMessageId || message.dialogId != null && message.dialogId !== dialogId || message.role !== "user" || message.userId !== userId || isTombstoneRecord(message) || typeof message.content !== "string" || typeof message.createdAt !== "string") throw new Error("work source forbidden");
|
|
19
|
+
return { scope, sourceRef: JSON.stringify(["dialog", dialogId, "message", userMessageId]) };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
resolveWorkContextAccess
|
|
24
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// node_modules/async-mutex/index.mjs
|
|
2
|
+
var E_TIMEOUT = new Error("timeout while waiting for mutex to become available");
|
|
3
|
+
var E_ALREADY_LOCKED = new Error("mutex already locked");
|
|
4
|
+
var E_CANCELED = new Error("request for lock canceled");
|
|
5
|
+
var __awaiter$2 = function(thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) {
|
|
7
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
8
|
+
resolve(value);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
12
|
+
function fulfilled(value) {
|
|
13
|
+
try {
|
|
14
|
+
step(generator.next(value));
|
|
15
|
+
} catch (e) {
|
|
16
|
+
reject(e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function rejected(value) {
|
|
20
|
+
try {
|
|
21
|
+
step(generator["throw"](value));
|
|
22
|
+
} catch (e) {
|
|
23
|
+
reject(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function step(result) {
|
|
27
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
28
|
+
}
|
|
29
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var Semaphore = class {
|
|
33
|
+
constructor(_value, _cancelError = E_CANCELED) {
|
|
34
|
+
this._value = _value;
|
|
35
|
+
this._cancelError = _cancelError;
|
|
36
|
+
this._queue = [];
|
|
37
|
+
this._weightedWaiters = [];
|
|
38
|
+
}
|
|
39
|
+
acquire(weight = 1, priority = 0) {
|
|
40
|
+
if (weight <= 0)
|
|
41
|
+
throw new Error(`invalid weight ${weight}: must be positive`);
|
|
42
|
+
return new Promise((resolve, reject) => {
|
|
43
|
+
const task = { resolve, reject, weight, priority };
|
|
44
|
+
const i = findIndexFromEnd(this._queue, (other) => priority <= other.priority);
|
|
45
|
+
if (i === -1 && weight <= this._value) {
|
|
46
|
+
this._dispatchItem(task);
|
|
47
|
+
} else {
|
|
48
|
+
this._queue.splice(i + 1, 0, task);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
runExclusive(callback_1) {
|
|
53
|
+
return __awaiter$2(this, arguments, void 0, function* (callback, weight = 1, priority = 0) {
|
|
54
|
+
const [value, release] = yield this.acquire(weight, priority);
|
|
55
|
+
try {
|
|
56
|
+
return yield callback(value);
|
|
57
|
+
} finally {
|
|
58
|
+
release();
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
waitForUnlock(weight = 1, priority = 0) {
|
|
63
|
+
if (weight <= 0)
|
|
64
|
+
throw new Error(`invalid weight ${weight}: must be positive`);
|
|
65
|
+
if (this._couldLockImmediately(weight, priority)) {
|
|
66
|
+
return Promise.resolve();
|
|
67
|
+
} else {
|
|
68
|
+
return new Promise((resolve) => {
|
|
69
|
+
if (!this._weightedWaiters[weight - 1])
|
|
70
|
+
this._weightedWaiters[weight - 1] = [];
|
|
71
|
+
insertSorted(this._weightedWaiters[weight - 1], { resolve, priority });
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
isLocked() {
|
|
76
|
+
return this._value <= 0;
|
|
77
|
+
}
|
|
78
|
+
getValue() {
|
|
79
|
+
return this._value;
|
|
80
|
+
}
|
|
81
|
+
setValue(value) {
|
|
82
|
+
this._value = value;
|
|
83
|
+
this._dispatchQueue();
|
|
84
|
+
}
|
|
85
|
+
release(weight = 1) {
|
|
86
|
+
if (weight <= 0)
|
|
87
|
+
throw new Error(`invalid weight ${weight}: must be positive`);
|
|
88
|
+
this._value += weight;
|
|
89
|
+
this._dispatchQueue();
|
|
90
|
+
}
|
|
91
|
+
cancel() {
|
|
92
|
+
this._queue.forEach((entry) => entry.reject(this._cancelError));
|
|
93
|
+
this._queue = [];
|
|
94
|
+
}
|
|
95
|
+
_dispatchQueue() {
|
|
96
|
+
this._drainUnlockWaiters();
|
|
97
|
+
while (this._queue.length > 0 && this._queue[0].weight <= this._value) {
|
|
98
|
+
this._dispatchItem(this._queue.shift());
|
|
99
|
+
this._drainUnlockWaiters();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
_dispatchItem(item) {
|
|
103
|
+
const previousValue = this._value;
|
|
104
|
+
this._value -= item.weight;
|
|
105
|
+
item.resolve([previousValue, this._newReleaser(item.weight)]);
|
|
106
|
+
}
|
|
107
|
+
_newReleaser(weight) {
|
|
108
|
+
let called = false;
|
|
109
|
+
return () => {
|
|
110
|
+
if (called)
|
|
111
|
+
return;
|
|
112
|
+
called = true;
|
|
113
|
+
this.release(weight);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
_drainUnlockWaiters() {
|
|
117
|
+
if (this._queue.length === 0) {
|
|
118
|
+
for (let weight = this._value; weight > 0; weight--) {
|
|
119
|
+
const waiters = this._weightedWaiters[weight - 1];
|
|
120
|
+
if (!waiters)
|
|
121
|
+
continue;
|
|
122
|
+
waiters.forEach((waiter) => waiter.resolve());
|
|
123
|
+
this._weightedWaiters[weight - 1] = [];
|
|
124
|
+
}
|
|
125
|
+
} else {
|
|
126
|
+
const queuedPriority = this._queue[0].priority;
|
|
127
|
+
for (let weight = this._value; weight > 0; weight--) {
|
|
128
|
+
const waiters = this._weightedWaiters[weight - 1];
|
|
129
|
+
if (!waiters)
|
|
130
|
+
continue;
|
|
131
|
+
const i = waiters.findIndex((waiter) => waiter.priority <= queuedPriority);
|
|
132
|
+
(i === -1 ? waiters : waiters.splice(0, i)).forEach((waiter) => waiter.resolve());
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
_couldLockImmediately(weight, priority) {
|
|
137
|
+
return (this._queue.length === 0 || this._queue[0].priority < priority) && weight <= this._value;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
function insertSorted(a, v) {
|
|
141
|
+
const i = findIndexFromEnd(a, (other) => v.priority <= other.priority);
|
|
142
|
+
a.splice(i + 1, 0, v);
|
|
143
|
+
}
|
|
144
|
+
function findIndexFromEnd(a, predicate) {
|
|
145
|
+
for (let i = a.length - 1; i >= 0; i--) {
|
|
146
|
+
if (predicate(a[i])) {
|
|
147
|
+
return i;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return -1;
|
|
151
|
+
}
|
|
152
|
+
var __awaiter$1 = function(thisArg, _arguments, P, generator) {
|
|
153
|
+
function adopt(value) {
|
|
154
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
155
|
+
resolve(value);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
159
|
+
function fulfilled(value) {
|
|
160
|
+
try {
|
|
161
|
+
step(generator.next(value));
|
|
162
|
+
} catch (e) {
|
|
163
|
+
reject(e);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function rejected(value) {
|
|
167
|
+
try {
|
|
168
|
+
step(generator["throw"](value));
|
|
169
|
+
} catch (e) {
|
|
170
|
+
reject(e);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function step(result) {
|
|
174
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
175
|
+
}
|
|
176
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
var Mutex = class {
|
|
180
|
+
constructor(cancelError) {
|
|
181
|
+
this._semaphore = new Semaphore(1, cancelError);
|
|
182
|
+
}
|
|
183
|
+
acquire() {
|
|
184
|
+
return __awaiter$1(this, arguments, void 0, function* (priority = 0) {
|
|
185
|
+
const [, releaser] = yield this._semaphore.acquire(1, priority);
|
|
186
|
+
return releaser;
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
runExclusive(callback, priority = 0) {
|
|
190
|
+
return this._semaphore.runExclusive(() => callback(), 1, priority);
|
|
191
|
+
}
|
|
192
|
+
isLocked() {
|
|
193
|
+
return this._semaphore.isLocked();
|
|
194
|
+
}
|
|
195
|
+
waitForUnlock(priority = 0) {
|
|
196
|
+
return this._semaphore.waitForUnlock(1, priority);
|
|
197
|
+
}
|
|
198
|
+
release() {
|
|
199
|
+
if (this._semaphore.isLocked())
|
|
200
|
+
this._semaphore.release();
|
|
201
|
+
}
|
|
202
|
+
cancel() {
|
|
203
|
+
return this._semaphore.cancel();
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export {
|
|
208
|
+
Mutex
|
|
209
|
+
};
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-4O22PGNQ.js";
|
|
13
13
|
import {
|
|
14
14
|
scheduleWindowsSelfUpdate
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OOVOAG4Q.js";
|
|
16
16
|
import {
|
|
17
17
|
t
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FEIVARWR.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeServerOrigin
|
|
21
21
|
} from "./chunk-CF7PE763.js";
|
|
@@ -125,7 +125,8 @@ function readPackageInfo() {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
function buildCliVersionText(info) {
|
|
128
|
-
|
|
128
|
+
const normalizedName = info.name === "nolo-cli" || info.name.startsWith("nolo-cli-") ? "nolo-cli" : info.name;
|
|
129
|
+
return `${normalizedName} ${info.version}`;
|
|
129
130
|
}
|
|
130
131
|
function buildSelfUpdateCommand(serverUrl) {
|
|
131
132
|
return buildNpmSelfUpdateCommand(getCliInstallChannel(serverUrl));
|
|
@@ -225,13 +226,14 @@ PACKAGE="$STAGING/lib/node_modules/nolo-cli"
|
|
|
225
226
|
node -e 'const p=require(process.argv[1]); if(p.name!=="nolo-cli" || !/^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.+-]+)?$/.test(p.version)) process.exit(1)' "$PACKAGE/package.json"
|
|
226
227
|
VERSION_TEXT=$("$PACKAGE/index.js" -v)
|
|
227
228
|
case "$VERSION_TEXT" in
|
|
228
|
-
"nolo-cli "*) ;;
|
|
229
|
+
"nolo-cli "*) ACTUAL_VERSION=\${VERSION_TEXT#nolo-cli } ;;
|
|
230
|
+
"nolo-cli-"?*" "*) ACTUAL_VERSION=\${VERSION_TEXT#* } ;;
|
|
229
231
|
*) echo "Error: invalid staged CLI version" >&2; exit 1 ;;
|
|
230
232
|
esac
|
|
231
233
|
# Fail before touching the live entry. Version is a health check, not identity:
|
|
232
234
|
# every install has a unique permanent prefix, including same-version builds.
|
|
233
235
|
EXPECTED=$(node -p 'require(process.argv[1]).version' "$PACKAGE/package.json")
|
|
234
|
-
[ "$
|
|
236
|
+
[ "$ACTUAL_VERSION" = "$EXPECTED" ]
|
|
235
237
|
if [ -d "$ENTRY" ] || { [ -e "$ENTRY" ] && [ ! -L "$ENTRY" ]; }; then echo "Error: refusing non-symlink entrypoint; retain it and migrate explicitly" >&2; exit 1; fi
|
|
236
238
|
LINK="$ENTRY.new.$$"
|
|
237
239
|
if [ -e "$LINK" ] || [ -L "$LINK" ]; then exit 1; fi
|
|
@@ -277,6 +279,7 @@ chmod +x "$STAGING/nolo"
|
|
|
277
279
|
VERSION_TEXT=$("$STAGING/nolo" -v)
|
|
278
280
|
case "$VERSION_TEXT" in
|
|
279
281
|
"nolo-cli "*) VERSION=\${VERSION_TEXT#nolo-cli } ;;
|
|
282
|
+
"nolo-cli-"?*" "*) VERSION=\${VERSION_TEXT#* } ;;
|
|
280
283
|
*) VERSION=$VERSION_TEXT ;;
|
|
281
284
|
esac
|
|
282
285
|
CORE=\${VERSION%%[-+]*}
|
|
@@ -296,6 +299,7 @@ case "$VERSION" in
|
|
|
296
299
|
esac
|
|
297
300
|
case "$CURRENT_VERSION" in
|
|
298
301
|
"nolo-cli "*) CUR_VER=\${CURRENT_VERSION#nolo-cli } ;;
|
|
302
|
+
"nolo-cli-"?*" "*) CUR_VER=\${CURRENT_VERSION#* } ;;
|
|
299
303
|
*) CUR_VER=$CURRENT_VERSION ;;
|
|
300
304
|
esac
|
|
301
305
|
CUR_CORE=\${CUR_VER%%[-+]*}
|
|
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
17
|
-
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-
|
|
17
|
+
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-UF2DAQ3F.js");
|
|
18
18
|
return getAuthorityBackedDb(options);
|
|
19
19
|
}
|
|
20
20
|
|