nolo-cli 0.258.0-alpha.1 → 0.260.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/{_executeModel-E2LL7FPO.js → _executeModel-EO6JFCOF.js} +97 -83
- package/accountResolver-NGICIMEE.js +1 -1
- package/{action-C6IQAKN4.js → action-WIA56QT4.js} +12 -10
- package/{addContentAction-53364YDW.js → addContentAction-OCMWZLYG.js} +14 -13
- package/{addDialogAgentAction-U5DD5EN5.js → addDialogAgentAction-ER2NZ7BC.js} +20 -24
- package/{agentDeleteCommand-ORNRRKJO.js → agentDeleteCommand-KSXSNPAU.js} +184 -146
- package/{agentEmailCommands-2ALVFOD5.js → agentEmailCommands-NXRWS7NS.js} +142 -126
- package/{agentGrantCommands-L6O2HVJI.js → agentGrantCommands-D2S7LCTU.js} +8 -5
- package/{agentListCommands-6I4NQPR4.js → agentListCommands-PFXGZZ3Y.js} +87 -68
- package/{agentMachineCommands-PNHTIJ6A.js → agentMachineCommands-2Q55CSL4.js} +68 -59
- package/{agentProviderCommands-QLTABYR7.js → agentProviderCommands-EUNS7Y2Z.js} +10 -7
- package/{agentPullCommand-2EYJ5ENC.js → agentPullCommand-S2VMPSWL.js} +9 -6
- package/agentRecordCommands-FUFI526H.js +210 -0
- package/agentRun-ZNMUPDHF.js +250 -0
- package/agentRunCommand-ISVQ2UYC.js +248 -0
- package/{agentRunControl-3TIVJ3SR.js → agentRunControl-NEK44LDM.js} +19 -12
- package/{agentRuntimeLocal-3MAEFYSB.js → agentRuntimeLocal-SST4EPLT.js} +62 -49
- package/{agentSlice-KOQXUPKT.js → agentSlice-4ZJJJN4M.js} +15 -18
- package/appConfigCommands-MPHS6FHD.js +417 -0
- package/{appDeleteCommands-FEPN62UR.js → appDeleteCommands-W26WGENW.js} +68 -58
- package/{appDeployCommands-DPFEWFYZ.js → appDeployCommands-ER7IOF5E.js} +74 -59
- package/{appDeployStatusCommands-LQ5X5KVX.js → appDeployStatusCommands-VKLL3A77.js} +68 -58
- package/{appGetCommands-W3JBBIF7.js → appGetCommands-P6GXJNUD.js} +74 -58
- package/{appListCommands-LUHZS7JU.js → appListCommands-ACA2IZZM.js} +74 -58
- package/appMigrateCommands-OGF4E2W6.js +230 -0
- package/appSourceCommands-GAHVBRUM.js +279 -0
- package/{authCommand-HKSXJT3J.js → authCommand-PXE7NZTQ.js} +26 -40
- package/{authCommands-T5FODCEG.js → authCommands-AZPYXTUB.js} +20 -17
- package/{builtinSkillRegistry-FVEEO4U2.js → builtinSkillRegistry-6XUWMAV5.js} +8 -6
- package/{chromeOpsCommands-4UIKH26F.js → chromeOpsCommands-7UKKUOBU.js} +68 -18
- package/{chunk-KO5PFS74.js → chunk-2CKFROQS.js} +2454 -1115
- package/{chunk-6N4IKMTH.js → chunk-2I4R6ZRV.js} +40 -26
- package/{chunk-FXEPZKNJ.js → chunk-2MIZHEND.js} +506 -64
- package/{chunk-TLE77UJ5.js → chunk-2OROOEOQ.js} +0 -1
- package/{chunk-6RSNVJGO.js → chunk-2ZBPWX7N.js} +4 -4
- package/chunk-35JIFLIG.js +30 -0
- package/{chunk-ZYPXOQS2.js → chunk-3EPED3UO.js} +1 -1
- package/{chunk-DNNPARJK.js → chunk-3QMN3T6L.js} +50 -37
- package/{chunk-DMPZMYH4.js → chunk-3R4AYHJR.js} +13 -1
- package/{chunk-HPDLPEUG.js → chunk-42JZNSAY.js} +267 -234
- package/{chunk-223KZUJ6.js → chunk-4HZCBA4Q.js} +18 -15
- package/{chunk-C5A54QS7.js → chunk-4INJGWE3.js} +18 -5
- package/chunk-4IVMDQBA.js +261 -0
- package/chunk-4Y6CZ2N4.js +82 -0
- package/{chunk-OKAXQFON.js → chunk-52BNL6GP.js} +4 -4
- package/{chunk-KZ4A7EIV.js → chunk-56OAS5RZ.js} +1 -1
- package/{chunk-QGFLVQ6E.js → chunk-6KUTNAPU.js} +4 -14
- package/{chunk-MNFUKRRU.js → chunk-6XAAKRJB.js} +7 -7
- package/{chunk-P27E22MA.js → chunk-6Z6DGDPI.js} +1 -1
- package/chunk-72VWN4VK.js +51 -0
- package/{chunk-2RZBFJEG.js → chunk-75FZ2Z7C.js} +16027 -17392
- package/{chunk-ADYWV732.js → chunk-76B6YUQS.js} +264 -177
- package/{chunk-AKBNCTPY.js → chunk-76K4GTY5.js} +1 -1
- package/{chunk-ZMJMHXYX.js → chunk-7HUCUD2I.js} +3 -3
- package/chunk-7LR2IFUH.js +100 -0
- package/{chunk-S73EPYNC.js → chunk-7LS5ATRP.js} +20 -6
- package/{chunk-Y2TCTNUD.js → chunk-7QO6YSA4.js} +4 -4
- package/{chunk-TF427WGH.js → chunk-7RYH7YIY.js} +19 -27
- package/{chunk-KHYSFS3W.js → chunk-A454UXB6.js} +148 -73
- package/chunk-AMNZPQCY.js +635 -0
- package/chunk-AMTF6FJD.js +356 -0
- package/{chunk-MUDMYJCM.js → chunk-AQNWWJLH.js} +2 -56
- package/{chunk-WSLL7VV4.js → chunk-B4NA5UJR.js} +9 -9
- package/{chunk-LHCGKAFO.js → chunk-BKP325XS.js} +184 -112
- package/{chunk-PENRYZ4D.js → chunk-BPB3T5EU.js} +4 -7
- package/{chunk-46FETNLF.js → chunk-BTIFQBYW.js} +7 -6
- package/{chunk-2JHGUL5K.js → chunk-BVYHE6QD.js} +2 -2
- package/{chunk-KXOPLLFP.js → chunk-CA7LGAHV.js} +69 -9
- package/{chunk-2FZVXOFX.js → chunk-CEIWXKHP.js} +112 -200
- package/{chunk-AIFQKNPP.js → chunk-CL33RFD7.js} +1 -1
- package/{chunk-JAGD4PSH.js → chunk-CRGPRAJ4.js} +46 -42
- package/{chunk-P4R5KXU7.js → chunk-CW6LRDSF.js} +5 -5
- package/{chunk-BD22OFDQ.js → chunk-CZHIOBBK.js} +8 -3
- package/chunk-D3ONA3FP.js +762 -0
- package/chunk-D3SAQ6T7.js +1697 -0
- package/{chunk-PIVTQRX6.js → chunk-DDKA6V6X.js} +111 -12
- package/{chunk-KQHEGELM.js → chunk-DEAII55O.js} +16 -6
- package/{chunk-J55F3IEZ.js → chunk-DKJQEFNG.js} +1 -1
- package/chunk-DLXL4NSL.js +1179 -0
- package/{chunk-EJQE5HB7.js → chunk-DSBRIUX5.js} +4 -2
- package/{chunk-XRGBJHZX.js → chunk-E36V7MPY.js} +9 -5
- package/{chunk-4YPH5KRA.js → chunk-EDKMRDET.js} +1 -1
- package/chunk-EJHLDJWZ.js +58 -0
- package/{chunk-E4HBZDV6.js → chunk-EMFZXJTN.js} +15 -47
- package/chunk-ER6NTALN.js +34 -0
- package/chunk-EUHMI5KG.js +101 -0
- package/{chunk-YQLAFJRQ.js → chunk-FBNVJ2TO.js} +1 -1
- package/{chunk-EXD7S7QW.js → chunk-FF5ZRKW7.js} +12 -7
- package/{chunk-7PTWFSZZ.js → chunk-FGD4NMTP.js} +4 -4
- package/{chunk-6XIE5ZGI.js → chunk-FGFJUFPS.js} +5 -6
- package/chunk-FI4DPLR7.js +902 -0
- package/chunk-FKVLQNGJ.js +25 -0
- package/{chunk-JCQ3WCQ3.js → chunk-FOC4TORM.js} +69 -3
- package/{chunk-JPXACKSW.js → chunk-G22P2J7O.js} +30 -81
- package/{chunk-7WHCIA5V.js → chunk-G5IAIGGD.js} +3 -8
- package/{chunk-IZHENZQ5.js → chunk-G5JGA5YM.js} +180 -31
- package/{chunk-7EUJ65PF.js → chunk-GMBWWBSJ.js} +782 -449
- package/{chunk-WS36XPJD.js → chunk-GYFKKTDI.js} +82 -6
- package/{chunk-APXC3SQO.js → chunk-GZ4I5EMM.js} +9 -9
- package/{chunk-324FWHUA.js → chunk-HHXF57CL.js} +12 -3
- package/chunk-HJTI7RZV.js +94 -0
- package/{chunk-JGVWHUYK.js → chunk-HPIY372N.js} +7 -7
- package/{chunk-Q2MPKE4B.js → chunk-HVRG27HI.js} +76 -26
- package/{chunk-HDKMVYNJ.js → chunk-I3NWAILT.js} +6 -4
- package/{chunk-MD7O2NN2.js → chunk-IM7HCFB4.js} +313 -275
- package/{chunk-DWES4SXY.js → chunk-INN2PBW7.js} +1 -1
- package/chunk-IV6VUVLJ.js +88 -0
- package/chunk-J42X32PV.js +472 -0
- package/{chunk-V6S5OZSP.js → chunk-JHQNWV2C.js} +4441 -2569
- package/{chunk-R7XWZDOH.js → chunk-JUMQJSQF.js} +1423 -282
- package/{chunk-BIDSIRTS.js → chunk-JUNYPVL6.js} +10 -16
- package/chunk-JVEKCQAP.js +222 -0
- package/{chunk-JW6OURKM.js → chunk-KAHYBAEN.js} +215 -473
- package/chunk-KDDXC2IH.js +148 -0
- package/chunk-KGKTN2NX.js +25 -0
- package/chunk-KGWE224L.js +246 -0
- package/chunk-L3UFGEDU.js +17157 -0
- package/{chunk-CBIGMWMI.js → chunk-LHJB4BXJ.js} +1 -1
- package/{chunk-DCTQJDDQ.js → chunk-LIH7WSX5.js} +23 -379
- package/chunk-LJOPY4TL.js +443 -0
- package/{chunk-TRRXYFTR.js → chunk-LOFRSJX2.js} +1 -0
- package/{chunk-SQL7YNED.js → chunk-LPXBBC32.js} +71 -5
- package/chunk-LXP53WGF.js +168 -0
- package/chunk-MDAYRIP7.js +1889 -0
- package/chunk-MRACVEPZ.js +7 -0
- package/chunk-NHLLXINQ.js +8 -0
- package/{chunk-VQR2ACSC.js → chunk-NTBTVKKB.js} +17 -25
- package/{chunk-LVZVSLKO.js → chunk-O7ZY6SUK.js} +5 -22
- package/{chunk-APQBEIOQ.js → chunk-P4XAHM4B.js} +1 -1
- package/chunk-PL5RKESU.js +40 -0
- package/{chunk-U2H426FE.js → chunk-PQ3QZMJK.js} +20 -4
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{createAgentAutomationAction-HEZ3G5L4.js → chunk-QKM55LP2.js} +3 -160
- package/{chunk-SIHOY5YI.js → chunk-QZCLCAYC.js} +170 -164
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-JLZJL3WC.js → chunk-RDZ5OIAT.js} +370 -39
- package/{chunk-5RGU3J7P.js → chunk-REAE2SZK.js} +0 -1
- package/chunk-RF576RYE.js +117 -0
- package/chunk-RI7SXDJW.js +1317 -0
- package/{chunk-JOJH3KWV.js → chunk-RIOAPUGV.js} +242 -25
- package/{chunk-7B55IVLF.js → chunk-RL6H2A2Z.js} +2561 -4059
- package/{chunk-BZLGPM5B.js → chunk-RNLKWUVY.js} +7 -12
- package/{chunk-BB76X6O4.js → chunk-RWXHGPWJ.js} +1 -1
- package/chunk-S7BF2OGX.js +432 -0
- package/{chunk-6VEO7Z3Y.js → chunk-SD4MBKZ7.js} +6 -6
- package/{chunk-PNBQ5JTA.js → chunk-SGEBRBF3.js} +7 -4
- package/{chunk-6SOWMEAY.js → chunk-SR57FDTX.js} +2 -258
- package/{chunk-CEKRIR22.js → chunk-SU4NCTW4.js} +1 -1
- package/{chunk-LJ6WIQZO.js → chunk-SX6PDLBZ.js} +279 -149
- package/{chunk-6VNBJ7GI.js → chunk-T4WU747C.js} +5 -5
- package/{chunk-53W5BXLN.js → chunk-TCOHWKDM.js} +54 -55
- package/{chunk-KO5GO2BC.js → chunk-TXMFSGRY.js} +1 -1
- package/{chunk-UUCYUN6Y.js → chunk-UB7NV7NN.js} +1 -1
- package/{chunk-CVDJUPBN.js → chunk-UOLGGEEC.js} +774 -119
- package/{chunk-ADUCBH4M.js → chunk-USFG4EWQ.js} +51 -42
- package/{chunk-LLUBUHNT.js → chunk-UYZOBSSO.js} +5 -9
- package/{chunk-ONTHDYFU.js → chunk-VDC3BW24.js} +24 -10
- package/chunk-VH356OQ3.js +425 -0
- package/{chunk-U6QNVOR5.js → chunk-VKM7DOYB.js} +130 -6
- package/{chunk-3GGVFHWI.js → chunk-VPAO5WQX.js} +17 -14
- package/{chunk-OYUMJMC5.js → chunk-W2RQYNPI.js} +5 -0
- package/{chunk-C63KMRJE.js → chunk-W2Z5E2R7.js} +126 -698
- package/{chunk-4ZCTKB27.js → chunk-W5GKF5ZW.js} +1 -0
- package/{chunk-NUHQO3RB.js → chunk-WIVVNJUS.js} +1 -1
- package/chunk-WLJNHFEB.js +1710 -0
- package/chunk-WMBJDXMY.js +408 -0
- package/chunk-WSQLCWLQ.js +201 -0
- package/{chunk-YN23INFZ.js → chunk-WXD6Y7DW.js} +23 -2
- package/{chunk-RQKTCHQM.js → chunk-WY6DMHMG.js} +1 -1
- package/{chunk-MLK3FEXG.js → chunk-XJW6SLBZ.js} +3 -3
- package/{chunk-7BIJFGKS.js → chunk-XQFDCRG3.js} +105 -51
- package/chunk-XT6C2QZW.js +46 -0
- package/{chunk-NRUYSNSZ.js → chunk-Y7THFNVJ.js} +9 -9
- package/{chunk-ZEZC7IIM.js → chunk-YFSM2366.js} +35 -35
- package/{chunk-RD3QLZQV.js → chunk-YM5XULB2.js} +324 -2
- package/{chunk-BD5YJJLJ.js → chunk-YNP3ITPU.js} +19 -12
- package/{chunk-U35UUM5K.js → chunk-YOUSQIIK.js} +1 -1
- package/{chunk-RIWKZT7E.js → chunk-YRPIUIEQ.js} +11 -9
- package/{chunk-Z3JZ2R5F.js → chunk-YU235GGN.js} +25 -8
- package/chunk-YWEZSBLL.js +790 -0
- package/chunk-Z3KTXWWB.js +76 -0
- package/{chunk-YLAHYLDQ.js → chunk-ZC3CMUKU.js} +2 -89
- package/chunk-ZD7OULYZ.js +368 -0
- package/{chunk-5P3PPQVP.js → chunk-ZQAADXSF.js} +1 -1
- package/{chunk-HQUGB2HM.js → chunk-ZTCMXPIS.js} +62 -50
- package/{cliAgentConfigHelpers-BXHQ3PXP.js → cliAgentConfigHelpers-KMXS7JP5.js} +20 -14
- package/{cliAuthorityBrokerClient-TFNXJLXL.js → cliAuthorityBrokerClient-3SKOA7OZ.js} +3 -1
- package/cliAuthorityBrokerProcess-DCCUT4YQ.js +34 -0
- package/{cliEnvHelpers-CNMP3RDX.js → cliEnvHelpers-YDGDHIEE.js} +5 -2
- package/{cliExecutor-K6FDZTQ2.js → cliExecutor-Z62UBJ5S.js} +12 -6
- package/cliLocalAgentRecordReader-X2YHEBWI.js +113 -0
- package/cloudAutomationCommands-C6Q3BFRB.js +310 -0
- package/{commandRegistry-QKOJ5FIC.js → commandRegistry-TYYYTW5E.js} +263 -120
- package/{contentThunks-ZDBDDZP3.js → contentThunks-E6BJ5YSX.js} +45 -43
- package/{cooldownCommands-Y4ZQQ35D.js → cooldownCommands-FPAFS7XG.js} +1 -1
- package/createAgentAutomationAction-L3NLCIIW.js +172 -0
- package/{createDialogAction-DK62W5VA.js → createDialogAction-QSWKRPWQ.js} +46 -42
- package/{createPageAction-W6NXHVKO.js → createPageAction-ZVVUT4CZ.js} +49 -45
- package/{db-VR74ADGC.js → db-KTQ3LL2Q.js} +3 -3
- package/{dbSlice-RWPSVHBC.js → dbSlice-SEVKNA7A.js} +21 -16
- package/deleteDbKey-43MTK2DI.js +86 -0
- package/{dialogCommands-Z24IDINY.js → dialogCommands-UVMTIFSA.js} +80 -66
- package/{dialogMessageRecord-OAV77LT7.js → dialogMessageRecord-2HJTEXQX.js} +1 -1
- package/{dialogNotifyCommand-IASQGEMW.js → dialogNotifyCommand-LMWF7EQI.js} +22 -14
- package/dialogPortabilityCommands-PAMLEBST.js +3036 -0
- package/{dialogSlice-62GISS77.js → dialogSlice-VHPXENDZ.js} +43 -42
- package/{dialogTraceCommand-FDINAIZ6.js → dialogTraceCommand-SO2WKAXW.js} +83 -69
- package/{dialogUsageCommand-WJ3U6KZU.js → dialogUsageCommand-EUO6JXTD.js} +6 -3
- package/{docCreateCommands-SXA4TMGJ.js → docCreateCommands-H4RLIUNX.js} +68 -59
- package/{docDeleteCommands-ELXSZK3F.js → docDeleteCommands-OVAKCBMT.js} +68 -59
- package/{docReadCommands-DFLAQPI4.js → docReadCommands-KFISIUVA.js} +67 -58
- package/{docStore-UWF2PMCB.js → docStore-X7BEA735.js} +16 -17
- package/{docUpdateCommands-KB6M5HUH.js → docUpdateCommands-VOEER36L.js} +68 -59
- package/ebookDownloaderAgentCommand-2DHPGEOQ.js +674 -0
- package/{fetchMessages-TQEUZD7H.js → fetchMessages-RGPIYEPZ.js} +2 -2
- package/{getPricing-5BLZRPTM.js → getPricing-BK6CUBAE.js} +8 -4
- package/{handleSendMessageAction-ZV6OQPQG.js → handleSendMessageAction-GQ2KKOET.js} +265 -119
- package/{hostCredentialCreate-3IA5IJFG.js → hostCredentialCreate-PJAIKZQP.js} +138 -122
- package/index.js +35 -21
- package/{keys-RWF7UCB4.js → keys-FXEGMKSG.js} +2 -2
- package/localAutomationCommands-UU66LOWB.js +198 -0
- package/localAutomationRuntime-SW4R42SZ.js +60 -0
- package/{localDialogRead-BJJT3TF5.js → localDialogRead-W2EVXISA.js} +2 -2
- package/{localRuntimeAdapter-SSG5ORLZ.js → localRuntimeAdapter-WRBLXFUZ.js} +136 -119
- package/localRuntimeAuthority-3YDFZD3L.js +44 -0
- package/{localRuntimeDb-ZJFGNHML.js → localRuntimeDb-CJWJK47G.js} +1 -1
- package/{machineCommands-4WKJ3TLO.js → machineCommands-JFYED66N.js} +251 -357
- package/{machineInfo-LWHTEBHJ.js → machineInfo-BJIU3WQ5.js} +4 -2
- package/machineWsRunDispatch-CZUV2FXE.js +227 -0
- package/{mcpLocalAuthorizeCommand-RBXJDE6J.js → mcpLocalAuthorizeCommand-HLU72QME.js} +40 -22
- package/mcpLocalManageCommands-OHHU6F5C.js +212 -0
- package/{memberThunks-43B7UYC5.js → memberThunks-FJW4GPM5.js} +102 -22
- package/{memoryCommands-BC6REPQB.js → memoryCommands-2RLHDMU2.js} +25 -34
- package/{models-ZX2BYIMB.js → models-TOXYINNM.js} +3 -2
- package/{offlineMarxistsAgentCommand-XVXUE6G5.js → offlineMarxistsAgentCommand-WZBJBCPZ.js} +16 -22
- package/package.json +3 -3
- package/parityCommands-7EWR34P3.js +613 -0
- package/{projectArchive-JN43WW4E.js → projectArchive-JIVRMXVV.js} +49 -45
- package/{providerPresetApply-NTJUINI6.js → providerPresetApply-IRJ56XIZ.js} +12 -16
- package/{providerRegistry-W45SLUV6.js → providerRegistry-26PAUYH2.js} +3 -13
- package/{read-KG6INYUT.js → read-6YR57D6V.js} +11 -10
- package/{readDocTool-N3GA52JR.js → readDocTool-NKOGL2MW.js} +5 -1
- package/{readlineWorkspace-D6EUSB2Q.js → readlineWorkspace-V26AN2FL.js} +926 -572
- package/{rememberExplicit-CPAPONSI.js → rememberExplicit-7KX4HXQC.js} +4 -4
- package/remove-BF33RCTH.js +32 -0
- package/{removeDialogAgentAction-EEVSOQOJ.js → removeDialogAgentAction-GWHBWF4W.js} +22 -26
- package/{runAgentClientLoop-FEZTSUSJ.js → runAgentClientLoop-EKD2EEEA.js} +117 -82
- package/{runtimeDoctorCommands-V3M3JTUV.js → runtimeDoctorCommands-IALUR5BZ.js} +23 -16
- package/{secretCommands-53NZFD4T.js → secretCommands-CSTQYB6T.js} +2 -2
- package/{setDialogExtraReferencesAction-DNO5POHA.js → setDialogExtraReferencesAction-RL6FGO7T.js} +16 -17
- package/{setPrimaryDialogAgentAction-QABBEO4C.js → setPrimaryDialogAgentAction-XJASBB3K.js} +23 -27
- package/{settingThunks-DVKG4X4S.js → settingThunks-ZT7ZYXXL.js} +170 -497
- package/{skillDiscovery-5GEGWJ6N.js → skillDiscovery-IUEZZG2B.js} +3 -3
- package/{spaceCommands-4ACQQNZL.js → spaceCommands-65WQHVOI.js} +194 -90
- package/spacePruneCommand-PTMRUWYJ.js +233 -0
- package/{store-Z53ICFL3.js → store-WSAVTR32.js} +3 -1
- package/{streamAgentChatTurn-I425SVYJ.js → streamAgentChatTurn-B5NICHZW.js} +225 -137
- package/{switchDialogAgentAction-KYWJSGOO.js → switchDialogAgentAction-X6DFOIAX.js} +19 -23
- package/{tableCommands-EFA754RE.js → tableCommands-6E77VD73.js} +28 -49
- package/{toolApiClient-N5PYW2R3.js → toolApiClient-GTTWEV6P.js} +15 -4
- package/{tools-WBPFTSMK.js → tools-UMCPIQX6.js} +73 -63
- package/{tuiRestart-VN5F4GYU.js → tuiRestart-O7UDLNQU.js} +20 -13
- package/tuiSummaryLlmCaller-7APIUIIV.js +52 -0
- package/{updateCommands-VQEBBIGO.js → updateCommands-DXDIAQFS.js} +12 -7
- package/{updateDialogTitleAction-VB5DTVXV.js → updateDialogTitleAction-HZLKWVKM.js} +57 -58
- package/{usageCommand-WI6SQOPB.js → usageCommand-WYLNBDHB.js} +6 -8
- package/{usageRebuildCommand-WQRLLZAT.js → usageRebuildCommand-AEUPY2PE.js} +11 -15
- package/{windowsSelfUpdate-ZEZKGX4M.js → windowsSelfUpdate-SXSVXK4X.js} +2 -2
- package/workContext-ZAW6VXT7.js +18 -0
- package/workContextQueryProjection-CACY5VFE.js +23 -0
- package/{workloadLifecycle-DYX5ZMAT.js → workloadLifecycle-P2SJVV3S.js} +1 -1
- package/agentFavoriteCommands-7LOP3HUD.js +0 -186
- package/agentRecordCommands-BEZPBYBM.js +0 -194
- package/agentRunCommand-2T72V5KY.js +0 -232
- package/chunk-2MBTWINN.js +0 -89
- package/chunk-523DITKR.js +0 -32
- package/chunk-BUDVRYES.js +0 -2213
- package/chunk-BXGU6274.js +0 -862
- package/chunk-BZMDWGQQ.js +0 -47
- package/chunk-GAHJLSDO.js +0 -107
- package/chunk-GYX6XTAI.js +0 -84
- package/chunk-HNUWUO75.js +0 -93
- package/chunk-HSBHS6KT.js +0 -33401
- package/chunk-KG27JIG4.js +0 -136
- package/chunk-OB4FBZXJ.js +0 -364
- package/chunk-OKH74FML.js +0 -3746
- package/chunk-OLZBQWZU.js +0 -6
- package/chunk-OOV5JN25.js +0 -1317
- package/chunk-OQFOE4SJ.js +0 -405
- package/chunk-PXYBUFDB.js +0 -53
- package/chunk-R3FZHW4Q.js +0 -103
- package/chunk-R3MV2GII.js +0 -106
- package/chunk-SCAC3NM5.js +0 -11751
- package/chunk-SR4FE5VD.js +0 -9
- package/chunk-SYTHYBMI.js +0 -3558
- package/chunk-UKZX3NHN.js +0 -48
- package/chunk-UVLYNWIE.js +0 -74
- package/chunk-WFEWP352.js +0 -861
- package/chunk-X4O7FJF5.js +0 -160
- package/chunk-YJPK35HB.js +0 -175
- package/chunk-YNIYE47Z.js +0 -105
- package/chunk-Z4PCXPUE.js +0 -127
- package/chunk-ZTHAJU3O.js +0 -2537
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +0 -22
- package/cliLocalAgentRecordReader-Q6677YID.js +0 -104
- package/deleteFile-ECU6FU5C.js +0 -55
- package/localRuntimeAuthority-UF2DAQ3F.js +0 -28
- package/machineWsRunDispatch-7PROH7E7.js +0 -209
- package/markdownToSlate-PXYAIBVL.js +0 -8
- package/tuiSummaryLlmCaller-HROLGN4F.js +0 -45
- package/webapi-QVV65DQF.js +0 -2487
- package/workContext-Y3ADAPZU.js +0 -14
- package/{chunk-USGHJSGO.js → chunk-GX2MFKF3.js} +3 -3
- package/{chunk-PHREU2KZ.js → chunk-WX266G2C.js} +0 -0
- package/{chunk-DXWGFL2Z.js → chunk-YY7IGJMN.js} +3 -3
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CONNECTOR_LOCK_CORRUPT_RECLAIM_SECONDS,
|
|
3
|
+
acquireConnectorInstanceLock,
|
|
2
4
|
buildMachinePermissionPromptBlock,
|
|
5
|
+
clearConnectorAlive,
|
|
3
6
|
handleConnectorRunMessage,
|
|
4
|
-
resolveMachineRunPermissionPolicy
|
|
5
|
-
|
|
7
|
+
resolveMachineRunPermissionPolicy,
|
|
8
|
+
withConnectorAliveSignal
|
|
9
|
+
} from "./chunk-UOLGGEEC.js";
|
|
6
10
|
import {
|
|
7
11
|
MAX_CONNECTOR_TIMER_DELAY_MS,
|
|
8
12
|
clampConnectorTimerDelayMs,
|
|
@@ -11,391 +15,250 @@ import {
|
|
|
11
15
|
resolveConnectorProbeTimeoutMs,
|
|
12
16
|
resolveConnectorWebSocketTarget
|
|
13
17
|
} from "./chunk-LISC7BD4.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JHQNWV2C.js";
|
|
19
|
+
import "./chunk-L3UFGEDU.js";
|
|
20
|
+
import "./chunk-XT6C2QZW.js";
|
|
21
|
+
import "./chunk-R72QWIFO.js";
|
|
22
|
+
import "./chunk-W2Z5E2R7.js";
|
|
18
23
|
import "./chunk-GIXWVN2W.js";
|
|
19
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-BPB3T5EU.js";
|
|
20
25
|
import "./chunk-U6RD332P.js";
|
|
21
26
|
import "./chunk-WOAZVUSN.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
detectMachineInfo,
|
|
28
|
-
resolveMachineId
|
|
29
|
-
} from "./chunk-S73EPYNC.js";
|
|
30
|
-
import "./chunk-ZEZC7IIM.js";
|
|
27
|
+
import "./chunk-52BNL6GP.js";
|
|
28
|
+
import "./chunk-JVEKCQAP.js";
|
|
29
|
+
import "./chunk-W2RQYNPI.js";
|
|
30
|
+
import "./chunk-JUMQJSQF.js";
|
|
31
31
|
import "./chunk-VIWDGTDA.js";
|
|
32
32
|
import "./chunk-ATNTHIZI.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-7HUCUD2I.js";
|
|
34
|
+
import "./chunk-HPIY372N.js";
|
|
35
|
+
import "./chunk-56OAS5RZ.js";
|
|
36
|
+
import "./chunk-2CKFROQS.js";
|
|
37
|
+
import "./chunk-FF5ZRKW7.js";
|
|
38
|
+
import "./chunk-NHLLXINQ.js";
|
|
38
39
|
import "./chunk-MVOZ22RZ.js";
|
|
39
|
-
import "./chunk-KG27JIG4.js";
|
|
40
|
-
import "./chunk-WFEWP352.js";
|
|
41
|
-
import "./chunk-NF64D32W.js";
|
|
42
|
-
import "./chunk-R3FZHW4Q.js";
|
|
43
40
|
import "./chunk-WDWZPASX.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-WLJNHFEB.js";
|
|
42
|
+
import "./chunk-NF64D32W.js";
|
|
43
|
+
import "./chunk-LJOPY4TL.js";
|
|
44
|
+
import "./chunk-S7BF2OGX.js";
|
|
45
|
+
import "./chunk-VKM7DOYB.js";
|
|
46
|
+
import "./chunk-YNP3ITPU.js";
|
|
47
|
+
import "./chunk-B4NA5UJR.js";
|
|
48
|
+
import "./chunk-WX266G2C.js";
|
|
49
|
+
import "./chunk-AGIM7IMJ.js";
|
|
46
50
|
import "./chunk-VF4K2QE6.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-UYZOBSSO.js";
|
|
52
|
+
import "./chunk-63W5N6P3.js";
|
|
53
|
+
import "./chunk-6XAAKRJB.js";
|
|
54
|
+
import "./chunk-7RYH7YIY.js";
|
|
55
|
+
import "./chunk-SX6PDLBZ.js";
|
|
56
|
+
import "./chunk-RL6H2A2Z.js";
|
|
57
|
+
import "./chunk-KDDXC2IH.js";
|
|
54
58
|
import "./chunk-TZXPT53C.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-6QDYSCPW.js";
|
|
60
|
+
import "./chunk-ER6NTALN.js";
|
|
61
|
+
import "./chunk-IM7HCFB4.js";
|
|
62
|
+
import "./chunk-WXD6Y7DW.js";
|
|
58
63
|
import "./chunk-BYXBJQAS.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-AMNZPQCY.js";
|
|
65
|
+
import "./chunk-SD4MBKZ7.js";
|
|
66
|
+
import "./chunk-REAE2SZK.js";
|
|
67
|
+
import "./chunk-PL5RKESU.js";
|
|
68
|
+
import "./chunk-FKVLQNGJ.js";
|
|
69
|
+
import "./chunk-BTIFQBYW.js";
|
|
65
70
|
import "./chunk-UAD2WT54.js";
|
|
66
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-76B6YUQS.js";
|
|
67
72
|
import "./chunk-3PVYUPXK.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-XQFDCRG3.js";
|
|
74
|
+
import "./chunk-GYFKKTDI.js";
|
|
75
|
+
import "./chunk-42JZNSAY.js";
|
|
76
|
+
import "./chunk-AMTF6FJD.js";
|
|
77
|
+
import "./chunk-DKJQEFNG.js";
|
|
78
|
+
import {
|
|
79
|
+
detectMachineInfo,
|
|
80
|
+
resolveMachineId
|
|
81
|
+
} from "./chunk-7LS5ATRP.js";
|
|
82
|
+
import "./chunk-YFSM2366.js";
|
|
70
83
|
import "./chunk-HXER7YJF.js";
|
|
71
84
|
import {
|
|
72
85
|
parsePositiveFiniteNumberOrFallback
|
|
73
86
|
} from "./chunk-Y5GCAMGP.js";
|
|
74
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-76K4GTY5.js";
|
|
75
88
|
import "./chunk-LKZPX6YH.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-EMFZXJTN.js";
|
|
90
|
+
import "./chunk-NTBTVKKB.js";
|
|
78
91
|
import "./chunk-AMWMV56B.js";
|
|
79
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-YY7IGJMN.js";
|
|
80
93
|
import {
|
|
81
94
|
CORE_DRAIN_REASON
|
|
82
95
|
} from "./chunk-3L2WKC3W.js";
|
|
83
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-UEILX4EV.js";
|
|
97
|
+
import "./chunk-VDC3BW24.js";
|
|
84
98
|
import "./chunk-S25VJYXV.js";
|
|
85
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-DEAII55O.js";
|
|
86
100
|
import "./chunk-QYPE3TS3.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-ZTHAJU3O.js";
|
|
92
|
-
import "./chunk-HDKMVYNJ.js";
|
|
93
|
-
import "./chunk-YJPK35HB.js";
|
|
94
|
-
import "./chunk-UEILX4EV.js";
|
|
101
|
+
import "./chunk-YOUSQIIK.js";
|
|
102
|
+
import "./chunk-YM5XULB2.js";
|
|
103
|
+
import "./chunk-I3NWAILT.js";
|
|
104
|
+
import "./chunk-MRACVEPZ.js";
|
|
95
105
|
import "./chunk-QQ56R7KS.js";
|
|
96
|
-
import "./chunk-PXYBUFDB.js";
|
|
97
106
|
import "./chunk-GBWGPTA7.js";
|
|
98
|
-
import "./chunk-
|
|
99
|
-
import "./chunk-
|
|
100
|
-
import "./chunk-
|
|
107
|
+
import "./chunk-YWEZSBLL.js";
|
|
108
|
+
import "./chunk-LOFRSJX2.js";
|
|
109
|
+
import "./chunk-RDZ5OIAT.js";
|
|
101
110
|
import "./chunk-3A5NNQCN.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-EUHMI5KG.js";
|
|
112
|
+
import "./chunk-KGWE224L.js";
|
|
113
|
+
import "./chunk-LPXBBC32.js";
|
|
104
114
|
import "./chunk-CVMMWN6P.js";
|
|
105
115
|
import "./chunk-GLKOYSRU.js";
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
109
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-T4WU747C.js";
|
|
117
|
+
import "./chunk-4HZCBA4Q.js";
|
|
118
|
+
import "./chunk-SU4NCTW4.js";
|
|
119
|
+
import "./chunk-LHJB4BXJ.js";
|
|
110
120
|
import {
|
|
111
121
|
NEW_TEXT_FIELD_ALIASES,
|
|
112
122
|
PATH_FIELD_ALIASES,
|
|
113
123
|
createLocalWorkspaceToolExecutors,
|
|
114
124
|
resolveRequestedWorkspacePath
|
|
115
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-GMBWWBSJ.js";
|
|
116
126
|
import "./chunk-ZNFJWEN4.js";
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
127
|
+
import "./chunk-BKP325XS.js";
|
|
128
|
+
import "./chunk-Q5FJJ6XI.js";
|
|
119
129
|
import "./chunk-2E4BYAUE.js";
|
|
120
130
|
import "./chunk-AL3TYDIF.js";
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-HNUWUO75.js";
|
|
131
|
+
import "./chunk-DDKA6V6X.js";
|
|
123
132
|
import "./chunk-CHOZJMJS.js";
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
133
|
+
import "./chunk-3R4AYHJR.js";
|
|
134
|
+
import "./chunk-AQNWWJLH.js";
|
|
135
|
+
import "./chunk-XJW6SLBZ.js";
|
|
126
136
|
import "./chunk-BYXBJQAS.js";
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
137
|
+
import "./chunk-RNLKWUVY.js";
|
|
138
|
+
import "./chunk-CL33RFD7.js";
|
|
129
139
|
import "./chunk-56GBUMO5.js";
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
140
|
+
import "./chunk-D3ONA3FP.js";
|
|
141
|
+
import "./chunk-HVRG27HI.js";
|
|
132
142
|
import "./chunk-LS5KAVFQ.js";
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-
|
|
143
|
+
import "./chunk-2MIZHEND.js";
|
|
144
|
+
import "./chunk-4IVMDQBA.js";
|
|
145
|
+
import "./chunk-2OROOEOQ.js";
|
|
136
146
|
import {
|
|
137
147
|
isCompleteInstructionOutput,
|
|
138
148
|
sanitizeToolOutputText,
|
|
139
149
|
scrubSecrets
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-
|
|
144
|
-
import "./chunk-
|
|
150
|
+
} from "./chunk-TXMFSGRY.js";
|
|
151
|
+
import "./chunk-CA7LGAHV.js";
|
|
152
|
+
import "./chunk-3QMN3T6L.js";
|
|
153
|
+
import "./chunk-LXP53WGF.js";
|
|
154
|
+
import "./chunk-4Y6CZ2N4.js";
|
|
155
|
+
import "./chunk-G5IAIGGD.js";
|
|
145
156
|
import "./chunk-5ZUL4CUO.js";
|
|
146
|
-
import "./chunk-
|
|
157
|
+
import "./chunk-CEIWXKHP.js";
|
|
147
158
|
import "./chunk-H57T64RA.js";
|
|
148
|
-
import "./chunk-
|
|
149
|
-
import "./chunk-SR4FE5VD.js";
|
|
159
|
+
import "./chunk-WMBJDXMY.js";
|
|
150
160
|
import "./chunk-5MMAK75Q.js";
|
|
151
|
-
import "./chunk-
|
|
161
|
+
import "./chunk-GX2MFKF3.js";
|
|
152
162
|
import "./chunk-E6A5NHDH.js";
|
|
153
163
|
import "./chunk-KX6YBIHG.js";
|
|
154
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-2I4R6ZRV.js";
|
|
155
165
|
import "./chunk-HEVRQGGH.js";
|
|
156
166
|
import "./chunk-EWQ3HGNZ.js";
|
|
157
167
|
import "./chunk-PSCNXBYA.js";
|
|
158
168
|
import "./chunk-IVK2KT3H.js";
|
|
159
169
|
import "./chunk-DWLEOOGR.js";
|
|
160
170
|
import "./chunk-7DPNBQSV.js";
|
|
161
|
-
import "./chunk-
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-GYX6XTAI.js";
|
|
171
|
+
import "./chunk-FBNVJ2TO.js";
|
|
172
|
+
import "./chunk-Z3KTXWWB.js";
|
|
164
173
|
import "./chunk-2SXN7LAY.js";
|
|
174
|
+
import {
|
|
175
|
+
toErrorMessage
|
|
176
|
+
} from "./chunk-HNMXYYJR.js";
|
|
177
|
+
import "./chunk-OW765XBU.js";
|
|
165
178
|
import "./chunk-G7Y4GXTY.js";
|
|
166
179
|
import "./chunk-6UBGXX2W.js";
|
|
167
180
|
import "./chunk-BV3FLP2L.js";
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import "./chunk-
|
|
181
|
+
import "./chunk-W5GKF5ZW.js";
|
|
182
|
+
import "./chunk-KAHYBAEN.js";
|
|
183
|
+
import "./chunk-J42X32PV.js";
|
|
170
184
|
import "./chunk-EUGTFFO6.js";
|
|
171
185
|
import "./chunk-AETZ7AD6.js";
|
|
172
|
-
import "./chunk-
|
|
186
|
+
import "./chunk-ZQAADXSF.js";
|
|
173
187
|
import "./chunk-KHCLMKZZ.js";
|
|
174
|
-
import "./chunk-
|
|
188
|
+
import "./chunk-DLXL4NSL.js";
|
|
175
189
|
import "./chunk-OJKUU3LP.js";
|
|
176
190
|
import "./chunk-YZMNK53S.js";
|
|
177
|
-
import "./chunk-
|
|
191
|
+
import "./chunk-6KUTNAPU.js";
|
|
178
192
|
import "./chunk-BR3GT6MR.js";
|
|
179
|
-
import "./chunk-
|
|
180
|
-
import "./chunk-
|
|
181
|
-
import "./chunk-
|
|
182
|
-
import "./chunk-
|
|
193
|
+
import "./chunk-FOC4TORM.js";
|
|
194
|
+
import "./chunk-UB7NV7NN.js";
|
|
195
|
+
import "./chunk-O7ZY6SUK.js";
|
|
196
|
+
import "./chunk-KGKTN2NX.js";
|
|
197
|
+
import "./chunk-BVYHE6QD.js";
|
|
198
|
+
import "./chunk-HJTI7RZV.js";
|
|
199
|
+
import "./chunk-ZC3CMUKU.js";
|
|
200
|
+
import "./chunk-YRPIUIEQ.js";
|
|
183
201
|
import "./chunk-M2EJHDJP.js";
|
|
184
202
|
import "./chunk-I42VC5KR.js";
|
|
185
|
-
import "./chunk-P4R5KXU7.js";
|
|
186
|
-
import "./chunk-VIDPVFP3.js";
|
|
187
|
-
import "./chunk-4JH2UMJR.js";
|
|
188
|
-
import "./chunk-U6VC4MU4.js";
|
|
189
|
-
import "./chunk-XRGBJHZX.js";
|
|
190
|
-
import "./chunk-EYLGAEB4.js";
|
|
191
|
-
import {
|
|
192
|
-
isCompiledBinary
|
|
193
|
-
} from "./chunk-BIDSIRTS.js";
|
|
194
|
-
import {
|
|
195
|
-
DEFAULT_NOLO_SERVER_URL
|
|
196
|
-
} from "./chunk-OLZBQWZU.js";
|
|
197
|
-
import "./chunk-LCBAMY2M.js";
|
|
198
|
-
import "./chunk-R5GO3YZP.js";
|
|
199
|
-
import "./chunk-4O22PGNQ.js";
|
|
200
|
-
import {
|
|
201
|
-
t
|
|
202
|
-
} from "./chunk-JOJH3KWV.js";
|
|
203
|
-
import "./chunk-EJQE5HB7.js";
|
|
204
|
-
import "./chunk-6SOWMEAY.js";
|
|
205
|
-
import {
|
|
206
|
-
toErrorMessage
|
|
207
|
-
} from "./chunk-HNMXYYJR.js";
|
|
208
|
-
import "./chunk-LVZVSLKO.js";
|
|
209
|
-
import "./chunk-2JHGUL5K.js";
|
|
210
203
|
import {
|
|
211
204
|
asTrimmedString
|
|
212
205
|
} from "./chunk-3EUW3WEO.js";
|
|
206
|
+
import "./chunk-CW6LRDSF.js";
|
|
207
|
+
import "./chunk-VIDPVFP3.js";
|
|
208
|
+
import "./chunk-4JH2UMJR.js";
|
|
213
209
|
import "./chunk-WWC7I6TA.js";
|
|
214
|
-
import "./chunk-
|
|
210
|
+
import "./chunk-U6VC4MU4.js";
|
|
211
|
+
import "./chunk-RI7SXDJW.js";
|
|
212
|
+
import "./chunk-7LR2IFUH.js";
|
|
215
213
|
import "./chunk-JRTNUU5Z.js";
|
|
216
214
|
import {
|
|
217
215
|
isRecord
|
|
218
216
|
} from "./chunk-KUG52IAP.js";
|
|
217
|
+
import "./chunk-E36V7MPY.js";
|
|
218
|
+
import "./chunk-EYLGAEB4.js";
|
|
219
|
+
import {
|
|
220
|
+
isCompiledBinary
|
|
221
|
+
} from "./chunk-JUNYPVL6.js";
|
|
222
|
+
import {
|
|
223
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
224
|
+
hasCliFlag,
|
|
225
|
+
readCliOption
|
|
226
|
+
} from "./chunk-RF576RYE.js";
|
|
227
|
+
import "./chunk-72VWN4VK.js";
|
|
228
|
+
import "./chunk-LCBAMY2M.js";
|
|
229
|
+
import "./chunk-IV6VUVLJ.js";
|
|
219
230
|
import "./chunk-G3SUCT4W.js";
|
|
231
|
+
import "./chunk-FI4DPLR7.js";
|
|
220
232
|
import "./chunk-4SN6J65J.js";
|
|
221
233
|
import {
|
|
222
234
|
normalizeServerOrigin
|
|
223
235
|
} from "./chunk-CF7PE763.js";
|
|
224
|
-
import "./chunk-
|
|
236
|
+
import "./chunk-R5GO3YZP.js";
|
|
237
|
+
import "./chunk-4O22PGNQ.js";
|
|
238
|
+
import {
|
|
239
|
+
t
|
|
240
|
+
} from "./chunk-RIOAPUGV.js";
|
|
241
|
+
import "./chunk-DSBRIUX5.js";
|
|
242
|
+
import "./chunk-35JIFLIG.js";
|
|
243
|
+
import "./chunk-SR57FDTX.js";
|
|
244
|
+
import "./chunk-MDAYRIP7.js";
|
|
245
|
+
import "./chunk-G22P2J7O.js";
|
|
225
246
|
import "./chunk-QSJ3HFEF.js";
|
|
226
247
|
import "./chunk-U67V476Y.js";
|
|
227
248
|
|
|
228
|
-
// packages/cli/connectorInstanceLock.ts
|
|
229
|
-
import {
|
|
230
|
-
closeSync,
|
|
231
|
-
mkdirSync,
|
|
232
|
-
openSync,
|
|
233
|
-
readFileSync,
|
|
234
|
-
renameSync,
|
|
235
|
-
statSync,
|
|
236
|
-
unlinkSync,
|
|
237
|
-
writeFileSync
|
|
238
|
-
} from "node:fs";
|
|
239
|
-
import { homedir } from "node:os";
|
|
240
|
-
import { join } from "node:path";
|
|
241
|
-
function resolveConnectorStateDir(args = {}) {
|
|
242
|
-
const homeDir = args.homeDir?.trim();
|
|
243
|
-
if (homeDir) return join(homeDir, ".nolo", "connector");
|
|
244
|
-
const noloHome = args.noloHome?.trim() || process.env.NOLO_HOME?.trim();
|
|
245
|
-
if (noloHome) return join(noloHome, "connector");
|
|
246
|
-
return join(homedir(), ".nolo", "connector");
|
|
247
|
-
}
|
|
248
|
-
function sanitizeMachineId(machineId) {
|
|
249
|
-
const safe = String(machineId ?? "").replace(/[^A-Za-z0-9._-]/g, "_");
|
|
250
|
-
return safe || "unknown";
|
|
251
|
-
}
|
|
252
|
-
function connectorInstanceLockPath(args) {
|
|
253
|
-
return join(resolveConnectorStateDir(args), `${sanitizeMachineId(args.machineId)}.lock`);
|
|
254
|
-
}
|
|
255
|
-
function connectorAliveSignalPath(args) {
|
|
256
|
-
return join(resolveConnectorStateDir(args), `${sanitizeMachineId(args.machineId)}.alive`);
|
|
257
|
-
}
|
|
258
|
-
function isProcessAlive(pid) {
|
|
259
|
-
if (!Number.isInteger(pid) || pid <= 0) return false;
|
|
260
|
-
try {
|
|
261
|
-
process.kill(pid, 0);
|
|
262
|
-
return true;
|
|
263
|
-
} catch (error) {
|
|
264
|
-
return error?.code === "EPERM";
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
function readLockPid(lockPath) {
|
|
268
|
-
let raw;
|
|
269
|
-
try {
|
|
270
|
-
raw = readFileSync(lockPath, "utf8");
|
|
271
|
-
} catch {
|
|
272
|
-
return null;
|
|
273
|
-
}
|
|
274
|
-
try {
|
|
275
|
-
const parsed = JSON.parse(raw);
|
|
276
|
-
const pid = Number(parsed?.pid);
|
|
277
|
-
return Number.isInteger(pid) && pid > 0 ? pid : null;
|
|
278
|
-
} catch {
|
|
279
|
-
return null;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
function isEexist(error) {
|
|
283
|
-
return error?.code === "EEXIST";
|
|
284
|
-
}
|
|
285
|
-
var CONNECTOR_LOCK_CORRUPT_RECLAIM_SECONDS = 300;
|
|
286
|
-
function inspectCorruptLock(lockPath, now = Date.now()) {
|
|
287
|
-
try {
|
|
288
|
-
const stat2 = statSync(lockPath);
|
|
289
|
-
const ageMs = now - stat2.mtimeMs;
|
|
290
|
-
return ageMs > CONNECTOR_LOCK_CORRUPT_RECLAIM_SECONDS * 1e3 ? "expired" : "fresh";
|
|
291
|
-
} catch (error) {
|
|
292
|
-
const code = error?.code;
|
|
293
|
-
if (code === "ENOENT") return "gone";
|
|
294
|
-
return "fresh";
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
function acquireConnectorInstanceLock(args) {
|
|
298
|
-
const lockPath = connectorInstanceLockPath(args);
|
|
299
|
-
mkdirSync(resolveConnectorStateDir(args), { recursive: true });
|
|
300
|
-
let reclaimed;
|
|
301
|
-
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
302
|
-
let fd = null;
|
|
303
|
-
try {
|
|
304
|
-
fd = openSync(lockPath, "wx");
|
|
305
|
-
} catch (error) {
|
|
306
|
-
if (!isEexist(error)) throw error;
|
|
307
|
-
const ownerPid2 = readLockPid(lockPath);
|
|
308
|
-
if (ownerPid2 !== null) {
|
|
309
|
-
if (isProcessAlive(ownerPid2)) {
|
|
310
|
-
return { ok: false, pid: ownerPid2 };
|
|
311
|
-
}
|
|
312
|
-
try {
|
|
313
|
-
unlinkSync(lockPath);
|
|
314
|
-
} catch {
|
|
315
|
-
}
|
|
316
|
-
continue;
|
|
317
|
-
}
|
|
318
|
-
const state = inspectCorruptLock(lockPath);
|
|
319
|
-
if (state === "gone") {
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if (state === "fresh") {
|
|
323
|
-
return { ok: false, pid: 0 };
|
|
324
|
-
}
|
|
325
|
-
try {
|
|
326
|
-
unlinkSync(lockPath);
|
|
327
|
-
} catch {
|
|
328
|
-
}
|
|
329
|
-
reclaimed = "corrupt";
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
try {
|
|
333
|
-
writeFileSync(fd, JSON.stringify({ pid: process.pid, startedAt: Date.now() }), "utf8");
|
|
334
|
-
} finally {
|
|
335
|
-
closeSync(fd);
|
|
336
|
-
}
|
|
337
|
-
return {
|
|
338
|
-
ok: true,
|
|
339
|
-
release: () => releaseConnectorInstanceLock(lockPath),
|
|
340
|
-
...reclaimed ? { reclaimed } : {}
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
const ownerPid = readLockPid(lockPath);
|
|
344
|
-
return { ok: false, pid: ownerPid ?? 0 };
|
|
345
|
-
}
|
|
346
|
-
function releaseConnectorInstanceLock(lockPath) {
|
|
347
|
-
const ownerPid = readLockPid(lockPath);
|
|
348
|
-
if (ownerPid !== process.pid) return;
|
|
349
|
-
try {
|
|
350
|
-
unlinkSync(lockPath);
|
|
351
|
-
} catch {
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
function markConnectorAlive(args) {
|
|
355
|
-
const path = connectorAliveSignalPath(args);
|
|
356
|
-
try {
|
|
357
|
-
mkdirSync(resolveConnectorStateDir(args), { recursive: true });
|
|
358
|
-
const tmpPath = `${path}.${process.pid}.tmp`;
|
|
359
|
-
writeFileSync(tmpPath, String(Date.now()), "utf8");
|
|
360
|
-
try {
|
|
361
|
-
renameSync(tmpPath, path);
|
|
362
|
-
} catch (error) {
|
|
363
|
-
try {
|
|
364
|
-
unlinkSync(tmpPath);
|
|
365
|
-
} catch {
|
|
366
|
-
}
|
|
367
|
-
throw error;
|
|
368
|
-
}
|
|
369
|
-
} catch {
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
function clearConnectorAlive(args) {
|
|
373
|
-
try {
|
|
374
|
-
unlinkSync(connectorAliveSignalPath(args));
|
|
375
|
-
} catch {
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
function withConnectorAliveSignal(sendHeartbeat, args) {
|
|
379
|
-
return async () => {
|
|
380
|
-
const result = await sendHeartbeat();
|
|
381
|
-
markConnectorAlive(args);
|
|
382
|
-
return result;
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
|
|
386
249
|
// packages/cli/machineDaemonCommands.ts
|
|
387
250
|
import { spawn } from "node:child_process";
|
|
388
|
-
import { existsSync, mkdirSync
|
|
389
|
-
import { homedir
|
|
390
|
-
import { dirname, isAbsolute, join
|
|
251
|
+
import { existsSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
252
|
+
import { homedir } from "node:os";
|
|
253
|
+
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
391
254
|
import { fileURLToPath } from "node:url";
|
|
392
255
|
var CONNECTOR_RUNTIME_WORKSPACE_PACKAGES = /* @__PURE__ */ new Set([
|
|
393
|
-
"connector
|
|
256
|
+
"connector",
|
|
394
257
|
"ai"
|
|
395
258
|
]);
|
|
396
259
|
function readJsonFile(path) {
|
|
397
260
|
try {
|
|
398
|
-
return JSON.parse(
|
|
261
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
399
262
|
} catch {
|
|
400
263
|
return null;
|
|
401
264
|
}
|
|
@@ -415,7 +278,7 @@ function isInsideOrSame(path, parent) {
|
|
|
415
278
|
function findWorkspaceRoot(startPath) {
|
|
416
279
|
let current = resolve(startPath);
|
|
417
280
|
while (true) {
|
|
418
|
-
const packageJsonPath =
|
|
281
|
+
const packageJsonPath = join(current, "package.json");
|
|
419
282
|
if (existsSync(packageJsonPath)) {
|
|
420
283
|
const packageJson = readJsonFile(packageJsonPath);
|
|
421
284
|
if (packageJson && getWorkspacePatterns(packageJson).length > 0) {
|
|
@@ -438,7 +301,7 @@ function listWorkspacePackageJsonFiles(workspaceParent) {
|
|
|
438
301
|
for (const entry of entries) {
|
|
439
302
|
if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
|
|
440
303
|
const relativePath = `${entry.name}/package.json`;
|
|
441
|
-
if (existsSync(
|
|
304
|
+
if (existsSync(join(workspaceParent, relativePath))) {
|
|
442
305
|
results.push(relativePath);
|
|
443
306
|
}
|
|
444
307
|
}
|
|
@@ -447,21 +310,21 @@ function listWorkspacePackageJsonFiles(workspaceParent) {
|
|
|
447
310
|
function validateConnectorWorkspaceLinks(cwd) {
|
|
448
311
|
const repoRoot = findWorkspaceRoot(cwd);
|
|
449
312
|
if (!repoRoot) return [];
|
|
450
|
-
const rootPackageJson = readJsonFile(
|
|
313
|
+
const rootPackageJson = readJsonFile(join(repoRoot, "package.json"));
|
|
451
314
|
if (!rootPackageJson) return [];
|
|
452
315
|
const normalizedRepoRoot = normalizePath(realpathSync(repoRoot));
|
|
453
316
|
const errors = [];
|
|
454
317
|
for (const pattern of getWorkspacePatterns(rootPackageJson)) {
|
|
455
318
|
if (!pattern.endsWith("/*")) continue;
|
|
456
|
-
const workspaceParent =
|
|
319
|
+
const workspaceParent = join(repoRoot, pattern.slice(0, -2));
|
|
457
320
|
if (!existsSync(workspaceParent)) continue;
|
|
458
321
|
for (const entry of listWorkspacePackageJsonFiles(workspaceParent)) {
|
|
459
|
-
const packageDir =
|
|
460
|
-
const packageJson = readJsonFile(
|
|
322
|
+
const packageDir = join(workspaceParent, dirname(entry));
|
|
323
|
+
const packageJson = readJsonFile(join(workspaceParent, entry));
|
|
461
324
|
if (!packageJson?.name || !CONNECTOR_RUNTIME_WORKSPACE_PACKAGES.has(packageJson.name)) {
|
|
462
325
|
continue;
|
|
463
326
|
}
|
|
464
|
-
const linkPath =
|
|
327
|
+
const linkPath = join(repoRoot, "node_modules", ...packageJson.name.split("/"));
|
|
465
328
|
if (!existsSync(linkPath)) {
|
|
466
329
|
errors.push(`${linkPath} is missing. Run bun install in ${repoRoot}.`);
|
|
467
330
|
continue;
|
|
@@ -497,7 +360,7 @@ async function checkConnectorWorkspaceLinks(cwd, output, validateWorkspaceLinks)
|
|
|
497
360
|
return false;
|
|
498
361
|
}
|
|
499
362
|
function resolveDaemonLogPath(env) {
|
|
500
|
-
return env.NOLO_CONNECT_LOG ||
|
|
363
|
+
return env.NOLO_CONNECT_LOG || join(homedir(), ".nolo", "logs", "connector.log");
|
|
501
364
|
}
|
|
502
365
|
function buildDaemonCommand(cliEntrypointPath) {
|
|
503
366
|
const execPath = process.execPath;
|
|
@@ -508,8 +371,8 @@ function buildDaemonCommand(cliEntrypointPath) {
|
|
|
508
371
|
return [execPath, entrypoint, "connect", "--ws"];
|
|
509
372
|
}
|
|
510
373
|
function defaultSpawnDaemon(args) {
|
|
511
|
-
|
|
512
|
-
const out =
|
|
374
|
+
mkdirSync(dirname(args.logPath), { recursive: true });
|
|
375
|
+
const out = openSync(args.logPath, "a");
|
|
513
376
|
const env = Object.fromEntries(
|
|
514
377
|
Object.entries(args.env).filter((entry) => typeof entry[1] === "string")
|
|
515
378
|
);
|
|
@@ -557,8 +420,8 @@ async function runMachineDaemonCommand(deps = {}) {
|
|
|
557
420
|
|
|
558
421
|
// packages/cli/machineToolInvokeDispatch.ts
|
|
559
422
|
import { appendFile, lstat, mkdir, realpath, stat } from "node:fs/promises";
|
|
560
|
-
import { homedir as
|
|
561
|
-
import { dirname as dirname2, isAbsolute as isAbsolute2, join as
|
|
423
|
+
import { homedir as homedir2 } from "node:os";
|
|
424
|
+
import { dirname as dirname2, isAbsolute as isAbsolute2, join as join2, relative as relative2, resolve as resolve2, sep } from "node:path";
|
|
562
425
|
|
|
563
426
|
// packages/agent-runtime/machineToolGrants.ts
|
|
564
427
|
function isRecord2(value) {
|
|
@@ -622,8 +485,8 @@ function isMachineToolGranted(grants, toolName, agentKey) {
|
|
|
622
485
|
}
|
|
623
486
|
function resolveMachineToolAuditLogPath() {
|
|
624
487
|
const noloHome = process.env.NOLO_HOME?.trim();
|
|
625
|
-
const base = noloHome ? noloHome :
|
|
626
|
-
return
|
|
488
|
+
const base = noloHome ? noloHome : join2(homedir2(), ".nolo");
|
|
489
|
+
return join2(base, "logs", "machine-tool-audit.jsonl");
|
|
627
490
|
}
|
|
628
491
|
function auditTargetFor(executorArgs) {
|
|
629
492
|
const target = extractMachineToolRequestPath(executorArgs) ?? "";
|
|
@@ -1001,6 +864,7 @@ async function defaultConnectWebSocket(url, options) {
|
|
|
1001
864
|
headers: options.headers
|
|
1002
865
|
});
|
|
1003
866
|
let opened = false;
|
|
867
|
+
let disposed = false;
|
|
1004
868
|
let aborted = options.signal?.aborted ?? false;
|
|
1005
869
|
let keepalive = null;
|
|
1006
870
|
const clearKeepalive = () => {
|
|
@@ -1039,8 +903,14 @@ async function defaultConnectWebSocket(url, options) {
|
|
|
1039
903
|
},
|
|
1040
904
|
{ once: true }
|
|
1041
905
|
);
|
|
1042
|
-
|
|
906
|
+
const dispose = () => {
|
|
907
|
+
disposed = true;
|
|
1043
908
|
clearKeepalive();
|
|
909
|
+
options.signal?.removeEventListener("abort", handleAbort);
|
|
910
|
+
options.teardownSignal?.removeEventListener("abort", handleAbort);
|
|
911
|
+
};
|
|
912
|
+
ws.addEventListener("error", () => {
|
|
913
|
+
dispose();
|
|
1044
914
|
if (aborted) {
|
|
1045
915
|
resolve3();
|
|
1046
916
|
return;
|
|
@@ -1050,18 +920,29 @@ async function defaultConnectWebSocket(url, options) {
|
|
|
1050
920
|
ws.addEventListener(
|
|
1051
921
|
"close",
|
|
1052
922
|
() => {
|
|
1053
|
-
|
|
923
|
+
dispose();
|
|
1054
924
|
if (opened || aborted) resolve3();
|
|
1055
925
|
else reject(new Error("connector websocket closed before opening"));
|
|
1056
926
|
},
|
|
1057
927
|
{ once: true }
|
|
1058
928
|
);
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
929
|
+
const send = (message) => {
|
|
930
|
+
if (disposed || aborted || ws.readyState !== WebSocketCtor.OPEN) return;
|
|
931
|
+
try {
|
|
932
|
+
ws.send(message);
|
|
933
|
+
} catch (error) {
|
|
934
|
+
dispose();
|
|
935
|
+
reject(error);
|
|
936
|
+
try {
|
|
937
|
+
ws.close();
|
|
938
|
+
} catch {
|
|
1064
939
|
}
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
ws.addEventListener("message", (event) => {
|
|
943
|
+
if (disposed || aborted) return;
|
|
944
|
+
void Promise.resolve().then(() => {
|
|
945
|
+
if (!disposed && !aborted) return options.onMessage(String(event.data), send);
|
|
1065
946
|
}).catch(() => void 0);
|
|
1066
947
|
});
|
|
1067
948
|
});
|
|
@@ -1069,10 +950,12 @@ async function defaultConnectWebSocket(url, options) {
|
|
|
1069
950
|
async function runMachineWsSession(options) {
|
|
1070
951
|
const sentMessages = [];
|
|
1071
952
|
const heartbeatAbort = new AbortController();
|
|
953
|
+
const sessionAbort = new AbortController();
|
|
1072
954
|
const teardownAbort = new AbortController();
|
|
1073
955
|
const teardownTimeoutMs = resolveTeardownTimeoutMs(options.env);
|
|
1074
956
|
let heartbeatLoopPromise = null;
|
|
1075
957
|
let websocketPromise = null;
|
|
958
|
+
let onAbort;
|
|
1076
959
|
const settleTeardown = async () => {
|
|
1077
960
|
const { timedOut } = await settleWithinTimeout(
|
|
1078
961
|
[websocketPromise, heartbeatLoopPromise].filter(Boolean),
|
|
@@ -1113,20 +996,26 @@ async function runMachineWsSession(options) {
|
|
|
1113
996
|
signal: options.signal,
|
|
1114
997
|
teardownSignal: teardownAbort.signal,
|
|
1115
998
|
sentMessages,
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
999
|
+
// Injected transports can still capture replies through sentMessages.
|
|
1000
|
+
onMessage: (message, send) => {
|
|
1001
|
+
if (sessionAbort.signal.aborted) return;
|
|
1002
|
+
return options.onMessage(message, send ?? ((response) => {
|
|
1003
|
+
sentMessages.push(response);
|
|
1004
|
+
}), sessionAbort.signal);
|
|
1005
|
+
}
|
|
1119
1006
|
});
|
|
1120
1007
|
const abortPromise = options.signal ? new Promise((resolve3) => {
|
|
1121
1008
|
if (options.signal?.aborted) {
|
|
1122
1009
|
resolve3("aborted");
|
|
1123
1010
|
return;
|
|
1124
1011
|
}
|
|
1125
|
-
|
|
1012
|
+
onAbort = () => resolve3("aborted");
|
|
1013
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
1126
1014
|
}) : null;
|
|
1127
1015
|
const raceResult = await Promise.race(
|
|
1128
1016
|
[websocketPromise, heartbeatMonitorPromise, abortPromise].filter(Boolean)
|
|
1129
1017
|
);
|
|
1018
|
+
sessionAbort.abort();
|
|
1130
1019
|
heartbeatAbort.abort();
|
|
1131
1020
|
await settleTeardown();
|
|
1132
1021
|
if (raceResult === "aborted") {
|
|
@@ -1134,6 +1023,7 @@ async function runMachineWsSession(options) {
|
|
|
1134
1023
|
}
|
|
1135
1024
|
return { exitCode: 0 };
|
|
1136
1025
|
} catch (error) {
|
|
1026
|
+
sessionAbort.abort();
|
|
1137
1027
|
heartbeatAbort.abort();
|
|
1138
1028
|
await settleTeardown();
|
|
1139
1029
|
if (isConnectorWebSocketAuthError(error)) {
|
|
@@ -1160,6 +1050,9 @@ async function runMachineWsSession(options) {
|
|
|
1160
1050
|
`
|
|
1161
1051
|
);
|
|
1162
1052
|
return { exitCode: 1 };
|
|
1053
|
+
} finally {
|
|
1054
|
+
sessionAbort.abort();
|
|
1055
|
+
if (onAbort) options.signal?.removeEventListener("abort", onAbort);
|
|
1163
1056
|
}
|
|
1164
1057
|
}
|
|
1165
1058
|
|
|
@@ -1276,10 +1169,10 @@ function warnMalformedMachineToolGrantsOnce(dedupeKey, message) {
|
|
|
1276
1169
|
function __resetMalformedMachineToolGrantsWarningsForTests() {
|
|
1277
1170
|
warnedMalformedMachineToolGrants.clear();
|
|
1278
1171
|
}
|
|
1279
|
-
function
|
|
1280
|
-
if (!grants) return wsUrl;
|
|
1172
|
+
function appendConnectorCapabilitiesToWsUrl(wsUrl, grants) {
|
|
1281
1173
|
const target = new URL(wsUrl);
|
|
1282
|
-
target.searchParams.set("
|
|
1174
|
+
target.searchParams.set("strictWorkspaceCwd", "1");
|
|
1175
|
+
if (grants) target.searchParams.set("toolGrants", JSON.stringify(grants));
|
|
1283
1176
|
return target.toString();
|
|
1284
1177
|
}
|
|
1285
1178
|
function resolveAuthToken2(env) {
|
|
@@ -1291,30 +1184,13 @@ function writeAuthMissing2(output) {
|
|
|
1291
1184
|
`
|
|
1292
1185
|
);
|
|
1293
1186
|
}
|
|
1294
|
-
function hasFlag(args, flag) {
|
|
1295
|
-
return args.includes(flag);
|
|
1296
|
-
}
|
|
1297
|
-
function readOption(args, flag) {
|
|
1298
|
-
for (let i = 0; i < args.length; i++) {
|
|
1299
|
-
const arg = args[i];
|
|
1300
|
-
if (arg === flag) {
|
|
1301
|
-
const next = args[i + 1];
|
|
1302
|
-
if (typeof next === "string" && !next.startsWith("-")) return next;
|
|
1303
|
-
return "";
|
|
1304
|
-
}
|
|
1305
|
-
if (arg.startsWith(flag + "=")) {
|
|
1306
|
-
return arg.slice(flag.length + 1);
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
return "";
|
|
1310
|
-
}
|
|
1311
1187
|
function resolveConnectServerUrl(args, env) {
|
|
1312
|
-
const fromFlag =
|
|
1188
|
+
const fromFlag = readCliOption(args, "--server-url") || readCliOption(args, "--server");
|
|
1313
1189
|
const raw = fromFlag || env.NOLO_SERVER || env.BASE_URL || DEFAULT_NOLO_SERVER_URL;
|
|
1314
1190
|
return String(raw).replace(/\/+$|\s+$/g, "").replace(/\/+$/g, "").replace(/\s+$/g, "");
|
|
1315
1191
|
}
|
|
1316
1192
|
function resolveConnectAuthToken(args, env) {
|
|
1317
|
-
return
|
|
1193
|
+
return readCliOption(args, "--machine-key") || readCliOption(args, "--token") || resolveAuthToken2(env);
|
|
1318
1194
|
}
|
|
1319
1195
|
var defaultSleep = (ms) => new Promise((resolve3) => setTimeout(resolve3, ms));
|
|
1320
1196
|
async function sleepWithAbort(ms, sleep, signal) {
|
|
@@ -1384,7 +1260,7 @@ ${text}`);
|
|
|
1384
1260
|
}
|
|
1385
1261
|
}
|
|
1386
1262
|
async function defaultExecuteCli(provider, prompt, options) {
|
|
1387
|
-
const { executeCli } = await import("./cliExecutor-
|
|
1263
|
+
const { executeCli } = await import("./cliExecutor-Z62UBJ5S.js");
|
|
1388
1264
|
return executeCli(provider, prompt, options);
|
|
1389
1265
|
}
|
|
1390
1266
|
function detectLaunchableMachineInfo() {
|
|
@@ -1402,7 +1278,7 @@ ${userInput}`
|
|
|
1402
1278
|
async function runMachineConnectCommand(args, deps = {}) {
|
|
1403
1279
|
const env = deps.env ?? process.env;
|
|
1404
1280
|
const output = deps.output ?? process.stdout;
|
|
1405
|
-
if (
|
|
1281
|
+
if (hasCliFlag(args, "--watch")) {
|
|
1406
1282
|
output.write(
|
|
1407
1283
|
"[nolo] `nolo connect --watch` has been removed; `nolo connect` now uses WebSocket by default.\n"
|
|
1408
1284
|
);
|
|
@@ -1415,7 +1291,7 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1415
1291
|
}
|
|
1416
1292
|
const serverUrl = resolveConnectServerUrl(args, env);
|
|
1417
1293
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
1418
|
-
if (
|
|
1294
|
+
if (hasCliFlag(args, "--daemon") || hasCliFlag(args, "--background")) {
|
|
1419
1295
|
return runMachineDaemonCommand({
|
|
1420
1296
|
env,
|
|
1421
1297
|
output,
|
|
@@ -1434,7 +1310,7 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1434
1310
|
machine,
|
|
1435
1311
|
timeoutMs: resolveConnectorHeartbeatTimeoutMs(env)
|
|
1436
1312
|
});
|
|
1437
|
-
void
|
|
1313
|
+
void hasCliFlag(args, "--ws");
|
|
1438
1314
|
const validateWorkspaceLinks = deps.validateWorkspaceLinks ?? (() => []);
|
|
1439
1315
|
if (!await checkConnectorWorkspaceLinks(process.cwd(), output, validateWorkspaceLinks)) {
|
|
1440
1316
|
return 1;
|
|
@@ -1464,7 +1340,21 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1464
1340
|
homeDir: deps.connectorHomeDir,
|
|
1465
1341
|
noloHome: env.NOLO_HOME
|
|
1466
1342
|
});
|
|
1343
|
+
let localScheduler;
|
|
1467
1344
|
try {
|
|
1345
|
+
const runtimeServerUrl = env.NOLO_CONNECT_RUNTIME_SERVER_URL || env.NOLO_RUNTIME_SERVER_URL || serverUrl;
|
|
1346
|
+
if (deps.enableLocalAutomationScheduler !== false && env.NOLO_DISABLE_LOCAL_AUTOMATION_SCHEDULER !== "1" && !deps.signal?.aborted) {
|
|
1347
|
+
const createScheduler = deps.createLocalAutomationScheduler ?? (await import("./localAutomationRuntime-SW4R42SZ.js")).createConnectorLocalAutomationScheduler;
|
|
1348
|
+
localScheduler = createScheduler({
|
|
1349
|
+
// Prefer the profile bearer for local ownership. Only fall back to
|
|
1350
|
+
// the connector credential if the profile has no bearer of its own.
|
|
1351
|
+
env: { ...env, AUTH_TOKEN: env.AUTH_TOKEN || env.AUTH || authToken, NOLO_SERVER: runtimeServerUrl, NOLO_SERVER_URL: runtimeServerUrl },
|
|
1352
|
+
scriptDir: deps.scriptDir ?? process.cwd(),
|
|
1353
|
+
output: { write: (chunk) => output.write(chunk), writeErr: (chunk) => output.write(chunk) },
|
|
1354
|
+
signal: deps.signal
|
|
1355
|
+
});
|
|
1356
|
+
localScheduler.start();
|
|
1357
|
+
}
|
|
1468
1358
|
const maxAttempts = deps.maxConnectorAttempts ?? Infinity;
|
|
1469
1359
|
const sleep = deps.sleep ?? defaultSleep;
|
|
1470
1360
|
const reconnectDelayMs = resolveConnectorReconnectDelayMs(env);
|
|
@@ -1482,7 +1372,6 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1482
1372
|
if (deps.signal?.aborted) {
|
|
1483
1373
|
return 0;
|
|
1484
1374
|
}
|
|
1485
|
-
const runtimeServerUrl = env.NOLO_CONNECT_RUNTIME_SERVER_URL || env.NOLO_RUNTIME_SERVER_URL || serverUrl;
|
|
1486
1375
|
const sessionResult = await runMachineWsSession({
|
|
1487
1376
|
env,
|
|
1488
1377
|
output,
|
|
@@ -1493,14 +1382,14 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1493
1382
|
connectWebSocket: deps.connectWebSocket ?? defaultConnectWebSocket,
|
|
1494
1383
|
serverUrl,
|
|
1495
1384
|
authToken,
|
|
1496
|
-
resolveConnectorWebSocketTarget: async (options) =>
|
|
1385
|
+
resolveConnectorWebSocketTarget: async (options) => appendConnectorCapabilitiesToWsUrl(
|
|
1497
1386
|
await resolveConnectorWebSocketTarget({
|
|
1498
1387
|
...options,
|
|
1499
1388
|
fetchImpl
|
|
1500
1389
|
}),
|
|
1501
1390
|
toolGrants
|
|
1502
1391
|
),
|
|
1503
|
-
onMessage: (message, send) => handleMachineWsMessageDemux(
|
|
1392
|
+
onMessage: (message, send, sessionSignal) => handleMachineWsMessageDemux(
|
|
1504
1393
|
message,
|
|
1505
1394
|
send,
|
|
1506
1395
|
{
|
|
@@ -1522,7 +1411,8 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1522
1411
|
fetchImpl,
|
|
1523
1412
|
{
|
|
1524
1413
|
buildConnectorCliPrompt
|
|
1525
|
-
}
|
|
1414
|
+
},
|
|
1415
|
+
sessionSignal
|
|
1526
1416
|
)
|
|
1527
1417
|
)
|
|
1528
1418
|
});
|
|
@@ -1545,12 +1435,16 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1545
1435
|
}
|
|
1546
1436
|
return 0;
|
|
1547
1437
|
} finally {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1438
|
+
try {
|
|
1439
|
+
await localScheduler?.stop();
|
|
1440
|
+
} finally {
|
|
1441
|
+
instanceLock.release();
|
|
1442
|
+
clearConnectorAlive({
|
|
1443
|
+
machineId,
|
|
1444
|
+
homeDir: deps.connectorHomeDir,
|
|
1445
|
+
noloHome: env.NOLO_HOME
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1554
1448
|
}
|
|
1555
1449
|
}
|
|
1556
1450
|
export {
|