nolo-cli 0.225.0-alpha.1 → 0.225.0
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/{_executeModel-L5VHAXSU.js → _executeModel-UCWDB72C.js} +79 -73
- package/{action-CK64LS6S.js → action-24MZYW2B.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-HEMCSSHT.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-SQYDOXHA.js} +15 -14
- package/{agentDeleteCommand-4WC7INCX.js → agentDeleteCommand-P7O3ACNJ.js} +131 -124
- package/{agentEmailCommands-3XFR6WY7.js → agentEmailCommands-A5BRSYWK.js} +134 -123
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-BBCP5XYW.js → agentListCommands-LDRCOOMO.js} +112 -496
- package/{agentMachineCommands-YZDCOLQL.js → agentMachineCommands-AYL53KJV.js} +65 -58
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-N5EA3ED2.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-FICBZ57C.js +188 -0
- package/{agentRunCommand-NHYBV4G5.js → agentRunCommand-CTXQGDUM.js} +135 -120
- package/{agentRunControl-7A2FOXIJ.js → agentRunControl-CO6BASZF.js} +20 -14
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5YN4D5WT.js} +48 -41
- package/{agentSlice-O6IGTM3Y.js → agentSlice-DJ5D4DU4.js} +18 -17
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-B4E7N7M2.js} +58 -51
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-E4DTXRRM.js} +58 -51
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-FCNHYHZM.js} +58 -51
- package/{appGetCommands-LN72GAOA.js → appGetCommands-4DXSQHUZ.js} +58 -51
- package/{appListCommands-IJQQ3VND.js → appListCommands-2NN5E4F6.js} +58 -51
- package/{authCommand-7JXW54U4.js → authCommand-47DR6GZT.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-ZZ3L5IFM.js} +16 -11
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +5 -5
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-VZWAY2KR.js} +6 -6
- package/{chunk-YDBMZ7FV.js → chunk-24GVXSWK.js} +3 -3
- package/{chunk-JCK3EFZS.js → chunk-25OCZXSX.js} +63 -32
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-N5PQJKCY.js → chunk-2XMKW2OY.js} +13 -12
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-UKS7D2NL.js → chunk-3NFWMSTA.js} +111 -26
- package/{chunk-TZEP5J4A.js → chunk-3V6JT6WN.js} +2935 -1412
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-VFBVA3U2.js → chunk-5TJE4QCL.js} +131 -40
- package/{chunk-YXMBJ7UH.js → chunk-6BGJHJRN.js} +21 -21
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-IZIN2UNJ.js → chunk-6X3CS6NJ.js} +203 -24
- package/{chunk-XZGQ6ZCV.js → chunk-6XBOPKUH.js} +27 -90
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7OTNBI77.js} +13 -6
- package/{chunk-HOK3ILHA.js → chunk-7Q7MKJZN.js} +590 -330
- package/{chunk-KZU52OJ5.js → chunk-7U2TFUWW.js} +6 -6
- package/{chunk-IUD7YR3B.js → chunk-B72AFRR2.js} +15 -15
- package/{chunk-4HFTBHBF.js → chunk-BDERPCJW.js} +8 -8
- package/chunk-BEM6LPD2.js +734 -0
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6J4TTPS2.js → chunk-BIJTI5SX.js} +5 -5
- package/chunk-BWW6WRX6.js +1438 -0
- package/{chunk-AGP3YSEC.js → chunk-C3GOEQJF.js} +46 -1
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-MOMR7NMG.js → chunk-C646JEUV.js} +2 -2
- package/{chunk-YI5CDUJD.js → chunk-CT6GT2BG.js} +9 -9
- package/{chunk-PVZY6P3S.js → chunk-CZLSTOVM.js} +2 -2
- package/{chunk-LJSNEV7M.js → chunk-DGUUOHBF.js} +8 -8
- package/{chunk-C4WTX5TU.js → chunk-DIBQXNGW.js} +2 -2
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-K44HIUBX.js → chunk-DLTMAXLF.js} +13 -13
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-SOG7OEXX.js → chunk-DWWUVRB5.js} +1 -1
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-KC4SCKXO.js → chunk-EIFSCI4C.js} +990 -1370
- package/{chunk-F3YK7KIU.js → chunk-EW37CXCQ.js} +4 -4
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-2VUZSVAS.js → chunk-F3FQPVHE.js} +57 -20
- package/{chunk-ZRAARRA3.js → chunk-FCAMGBLY.js} +1399 -2978
- package/{chunk-AK5O76CC.js → chunk-FPMPWNVQ.js} +3 -3
- package/{chunk-WQEMD4Z4.js → chunk-FSIEHQNH.js} +420 -120
- package/{chunk-FNDSBM4J.js → chunk-FXX6VFMV.js} +571 -348
- package/{chunk-7XS4W5KP.js → chunk-G6OPRPXH.js} +128 -149
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-2TIQO6TC.js → chunk-GCVFX6ZL.js} +206 -308
- package/{chunk-P25E3CKY.js → chunk-H6CHPU6M.js} +4 -4
- package/chunk-HNWZJI4N.js +33394 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-IPRPYKBP.js} +46 -8
- package/{chunk-C4VAR65S.js → chunk-IUXBKS5L.js} +200 -120
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-Z6USB65D.js → chunk-KGIIZXPL.js} +347 -14
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-GBZ4YKEO.js → chunk-KOIDLCAQ.js} +8 -8
- package/{chunk-2ZKFCIJJ.js → chunk-LCQJH7KN.js} +1 -1
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-XN23AUVU.js → chunk-LMZRXDWG.js} +8 -5
- package/{chunk-EWPDMS4N.js → chunk-LN4ZVSO7.js} +30 -15
- package/{chunk-GOAPXKQU.js → chunk-LT3DMEIB.js} +4 -4
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-FTQWYWUI.js → chunk-MDVP5TLI.js} +1 -1
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-D726I5AZ.js → chunk-NBB2EBQD.js} +2 -2
- package/{chunk-DISQCYPE.js → chunk-NL7J2J5Z.js} +6 -6
- package/{chunk-JM5C4EUA.js → chunk-NQQL2DKF.js} +6 -6
- package/{chunk-LS2MGTUS.js → chunk-NWWQY2J5.js} +15 -15
- package/{chunk-TXGQ4O5S.js → chunk-OATIWAKN.js} +20 -174
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-VV7TXWOC.js → chunk-OYHJ4TW7.js} +6 -6
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-2VA6TU4I.js → chunk-QES2NCVM.js} +17 -14
- package/{chunk-WG2LFJYB.js → chunk-QGMIUVBT.js} +39 -30
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-AMEOV5VZ.js → chunk-S25VJYXV.js} +41 -35
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-GVGOEMNV.js → chunk-T444ENEC.js} +3 -3
- package/{chunk-67BE44IS.js → chunk-TE2XH4KH.js} +1 -1
- package/{chunk-5RKUPJYL.js → chunk-TFGGNRT6.js} +11 -3
- package/{chunk-ZH6MUQEO.js → chunk-TTEBPPUV.js} +1 -1
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-TXFYIWAW.js} +32 -25
- package/{chunk-KOXKKHFE.js → chunk-TXQVH72L.js} +9 -4
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-KDAGMRDA.js → chunk-UAHUJ4HH.js} +100 -32
- package/{chunk-BGGHA5DV.js → chunk-UAOFSUG7.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UKSKCDBG.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UYOICCYG.js → chunk-WHO3LYDW.js} +64 -89
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-QLFCTYRH.js → chunk-X37RQEA3.js} +17 -10
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-GIABSSWQ.js → chunk-XAFOLWLU.js} +4 -4
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EOJZGQAE.js → chunk-Y5RN44VH.js} +103 -100
- package/{chunk-OB6DVWPF.js → chunk-YFRJAE3R.js} +319 -95
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-3KNEE64G.js → chunk-YMCSR7PA.js} +14 -14
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-XQBIZRGW.js → chunk-ZBQ5UGYY.js} +3 -3
- package/{chunk-VREDDN25.js → chunk-ZQUCJBS4.js} +14 -9
- package/{chunk-UEKXWO7A.js → chunk-ZT3DYK5T.js} +15 -4
- package/{chunk-LM2PS3YS.js → chunk-ZTLTDUV6.js} +24 -11
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +51 -45
- package/{commandRegistry-HJDPQSQ4.js → commandRegistry-IHWZVV4G.js} +98 -94
- package/{contentThunks-I6OR5ENG.js → contentThunks-YQRCBDKF.js} +38 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-W67DE765.js} +4 -4
- package/{createAgentAutomationAction-7BCCTWO5.js → createAgentAutomationAction-ERSDNR4R.js} +38 -35
- package/{createDialogAction-CU27KSCJ.js → createDialogAction-QXC7JZPE.js} +39 -37
- package/{createPageAction-CWRTEYVA.js → createPageAction-RLZ7776F.js} +40 -37
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-7M2ESEUO.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-WO6WSSNK.js} +10 -7
- package/{dialogCommands-OPTRZWTE.js → dialogCommands-UIRO4QNN.js} +62 -56
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-VDUFYBZV.js} +14 -14
- package/{dialogSlice-XODSLDHY.js → dialogSlice-A4U3C76D.js} +36 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-SEC6UZWM.js} +3 -3
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-MHPYTJWR.js} +56 -49
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-VYULMBAQ.js} +58 -51
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-FV3GGZ7V.js} +56 -49
- package/{docStore-TVN4SNVE.js → docStore-AWWI72FA.js} +15 -14
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-JNS3HX7F.js} +56 -49
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-U5AR7ZHS.js} +5 -5
- package/{handleSendMessageAction-NSEMVHWX.js → handleSendMessageAction-WDJOUDNV.js} +68 -63
- package/{hostCredentialCreate-WBZY7DZB.js → hostCredentialCreate-H3FF2SAO.js} +123 -111
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +2 -2
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-OAIWERFA.js → localRuntimeAdapter-JAQQXZJP.js} +126 -113
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-OI37ZUQ4.js → machineCommands-WYOFNB5I.js} +146 -120
- package/{machineWsRunDispatch-73HKPV6D.js → machineWsRunDispatch-Y7UIAZNM.js} +118 -107
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-SCYEFLRK.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-DIITWU4M.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-GVEARCOG.js → projectArchive-IZJXBW5N.js} +43 -40
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-2QWXPJXZ.js} +6 -6
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-W4LCKK6V.js} +6 -6
- package/{read-Q7GOHGNP.js → read-OBLJNMA2.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-QQZ4DAER.js} +1 -1
- package/{readlineWorkspace-5DWUGNSU.js → readlineWorkspace-WF3SWZGR.js} +7055 -5248
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-HC3SOY3G.js} +17 -16
- package/{runAgentClientLoop-RDXIPF34.js → runAgentClientLoop-Z7V6TA3O.js} +97 -72
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-KX6YLPWV.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-STRAX275.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-DDZUQPY6.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-TN6GFASU.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-HBYQUVJI.js} +61 -54
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-XEYQZPDJ.js → streamAgentChatTurn-CM7QQXOS.js} +178 -173
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-XY5TKQQE.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-MXFL3JIT.js} +13 -10
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-6DFTHCFX.js → tools-AT6H73LD.js} +66 -62
- package/tuiRestart-272SAYSK.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-K2OVRVHG.js} +20 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-O3BOVVVN.js} +8 -6
- package/{updateDialogTitleAction-AMSBV2H7.js → updateDialogTitleAction-PGY4UPLH.js} +38 -35
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-SCF3ROV2.js} +4 -4
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-K5WPIBA5.js} +5 -5
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-KLYKI4Z7.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-QZI44GWV.js +0 -776
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_NOLO_SERVER_URL
|
|
3
|
+
} from "./chunk-OLZBQWZU.js";
|
|
4
|
+
import {
|
|
5
|
+
NOLO_CLUSTER_SERVERS
|
|
6
|
+
} from "./chunk-LCBAMY2M.js";
|
|
7
|
+
import {
|
|
8
|
+
asOptionalTrimmedString
|
|
9
|
+
} from "./chunk-G3SUCT4W.js";
|
|
10
|
+
import {
|
|
11
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
12
|
+
} from "./chunk-4SN6J65J.js";
|
|
13
|
+
import {
|
|
14
|
+
normalizeServerOrigin
|
|
15
|
+
} from "./chunk-CF7PE763.js";
|
|
16
|
+
|
|
17
|
+
// packages/cli/agentRunProtocol.ts
|
|
18
|
+
import { createHash } from "node:crypto";
|
|
19
|
+
import { existsSync, lstatSync, statSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
20
|
+
import { dirname, extname, join, relative } from "node:path";
|
|
21
|
+
import { fileURLToPath } from "node:url";
|
|
22
|
+
var AGENT_RUN_PROTOCOL = "nolo-agent-run/2";
|
|
23
|
+
var RuntimeProtocolMismatchError = class extends Error {
|
|
24
|
+
code = "runtime_protocol_mismatch";
|
|
25
|
+
constructor() {
|
|
26
|
+
super("runtime_protocol_mismatch: parent and child agent-run protocols differ");
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function validateAgentRunProtocol(expected) {
|
|
30
|
+
if (expected !== AGENT_RUN_PROTOCOL) throw new RuntimeProtocolMismatchError();
|
|
31
|
+
}
|
|
32
|
+
var RuntimeVersionMismatchError = class extends Error {
|
|
33
|
+
code = "runtime_version_mismatch";
|
|
34
|
+
constructor(detail) {
|
|
35
|
+
super(`runtime_version_mismatch: ${detail}; restart CLI/desktop before retrying`);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var ignoredDirectories = /* @__PURE__ */ new Set([
|
|
39
|
+
"node_modules",
|
|
40
|
+
".git",
|
|
41
|
+
".nolo",
|
|
42
|
+
".worktrees",
|
|
43
|
+
"data",
|
|
44
|
+
"nolodata",
|
|
45
|
+
"credentials",
|
|
46
|
+
"dist",
|
|
47
|
+
"build",
|
|
48
|
+
"public",
|
|
49
|
+
"assets",
|
|
50
|
+
"docs",
|
|
51
|
+
"logs",
|
|
52
|
+
"artifacts",
|
|
53
|
+
"coverage",
|
|
54
|
+
"__tests__",
|
|
55
|
+
"__fixtures__",
|
|
56
|
+
"fixtures",
|
|
57
|
+
"testHelpers",
|
|
58
|
+
"test-helpers"
|
|
59
|
+
]);
|
|
60
|
+
var codeFile = /\.[cm]?[jt]sx?$/;
|
|
61
|
+
var testFile = /(?:\.(?:test|spec)\.[^.]+$|^tsconfig\.)/;
|
|
62
|
+
function captureRuntimeContent(root, source) {
|
|
63
|
+
const hash = createHash("sha256");
|
|
64
|
+
const active = /* @__PURE__ */ new Set();
|
|
65
|
+
const visit = (directory) => {
|
|
66
|
+
const canonical = realpathSync(directory);
|
|
67
|
+
if (active.has(canonical)) throw new RuntimeVersionMismatchError("runtime code contains a symlink cycle");
|
|
68
|
+
active.add(canonical);
|
|
69
|
+
for (const name of readdirSync(directory).sort()) {
|
|
70
|
+
if (name.startsWith(".") || ignoredDirectories.has(name)) continue;
|
|
71
|
+
const path = join(directory, name);
|
|
72
|
+
let stat = lstatSync(path);
|
|
73
|
+
if (stat.isSymbolicLink()) {
|
|
74
|
+
try {
|
|
75
|
+
stat = statSync(path);
|
|
76
|
+
} catch {
|
|
77
|
+
if (codeFile.test(name) || name === "package.json") throw new RuntimeVersionMismatchError("runtime code link is unreadable");
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (stat.isDirectory()) visit(path);
|
|
82
|
+
else if (codeFile.test(name) && !testFile.test(name) || name === "package.json") {
|
|
83
|
+
const bytes = readFileSync(path);
|
|
84
|
+
hash.update(JSON.stringify([relative(root, path), bytes.length]));
|
|
85
|
+
hash.update(bytes);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
active.delete(canonical);
|
|
89
|
+
};
|
|
90
|
+
if (source) {
|
|
91
|
+
visit(join(root, "packages"));
|
|
92
|
+
for (const name of ["package.json", "bun.lock", "bun.lockb", "bunfig.toml", "tsconfig.json"]) {
|
|
93
|
+
hash.update(name);
|
|
94
|
+
const path = join(root, name);
|
|
95
|
+
hash.update(existsSync(path) ? readFileSync(path) : "<absent>");
|
|
96
|
+
}
|
|
97
|
+
} else visit(root);
|
|
98
|
+
return hash.digest("hex");
|
|
99
|
+
}
|
|
100
|
+
function createRuntimeContentGuard(root, source) {
|
|
101
|
+
const canonical = realpathSync(root);
|
|
102
|
+
const startupContent = captureRuntimeContent(canonical, source);
|
|
103
|
+
return Object.assign(() => {
|
|
104
|
+
try {
|
|
105
|
+
if (captureRuntimeContent(canonical, source) !== startupContent) {
|
|
106
|
+
throw new RuntimeVersionMismatchError("runtime content changed since host startup");
|
|
107
|
+
}
|
|
108
|
+
} catch (error) {
|
|
109
|
+
if (error instanceof RuntimeVersionMismatchError) throw error;
|
|
110
|
+
throw new RuntimeVersionMismatchError("startup runtime content is no longer readable");
|
|
111
|
+
}
|
|
112
|
+
}, { identity: startupContent });
|
|
113
|
+
}
|
|
114
|
+
function captureHostRuntimeGuard() {
|
|
115
|
+
try {
|
|
116
|
+
const url = import.meta.url;
|
|
117
|
+
if (url.includes("/$bunfs/")) {
|
|
118
|
+
const executable = getHostRuntimeExecutable();
|
|
119
|
+
const digest = createHash("sha256").update(readFileSync(executable)).digest("hex");
|
|
120
|
+
return Object.assign(() => {
|
|
121
|
+
try {
|
|
122
|
+
if (createHash("sha256").update(readFileSync(executable)).digest("hex") !== digest) {
|
|
123
|
+
throw new RuntimeVersionMismatchError("host executable changed since startup");
|
|
124
|
+
}
|
|
125
|
+
} catch (error) {
|
|
126
|
+
if (error instanceof RuntimeVersionMismatchError) throw error;
|
|
127
|
+
throw new RuntimeVersionMismatchError("startup executable is no longer readable");
|
|
128
|
+
}
|
|
129
|
+
}, { identity: digest });
|
|
130
|
+
}
|
|
131
|
+
const modulePath = fileURLToPath(url);
|
|
132
|
+
const source = extname(modulePath) === ".ts";
|
|
133
|
+
return createRuntimeContentGuard(source ? dirname(dirname(dirname(modulePath))) : dirname(modulePath), source);
|
|
134
|
+
} catch {
|
|
135
|
+
return Object.assign(() => {
|
|
136
|
+
throw new RuntimeVersionMismatchError("host startup identity unavailable");
|
|
137
|
+
}, { identity: "unavailable" });
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
var hostExecutable;
|
|
141
|
+
function getHostRuntimeExecutable() {
|
|
142
|
+
return hostExecutable ?? realpathSync(process.execPath);
|
|
143
|
+
}
|
|
144
|
+
var hostGuard;
|
|
145
|
+
var HOST_RUNTIME_CONTENT_IDENTITY = "uninitialized";
|
|
146
|
+
function initializeHostRuntimeIdentity() {
|
|
147
|
+
if (hostGuard) return;
|
|
148
|
+
hostExecutable = realpathSync(process.execPath);
|
|
149
|
+
hostGuard = captureHostRuntimeGuard();
|
|
150
|
+
HOST_RUNTIME_CONTENT_IDENTITY = hostGuard.identity;
|
|
151
|
+
}
|
|
152
|
+
function isAgentRuntimeHostCommand(args, interactive) {
|
|
153
|
+
if (args.some((arg) => ["--help", "-h", "--version", "-v"].includes(arg))) return false;
|
|
154
|
+
if (!args.length) return interactive;
|
|
155
|
+
return args[0] === "chat" || args[0] === "tui" || args[0] === "connect" || args[0] === "agent" && ["run", "continue", "smoke-current"].includes(args[1]);
|
|
156
|
+
}
|
|
157
|
+
function resolveExactRuntimeEntrypoint(path) {
|
|
158
|
+
try {
|
|
159
|
+
if (!existsSync(path)) throw new Error("missing");
|
|
160
|
+
return realpathSync(path);
|
|
161
|
+
} catch {
|
|
162
|
+
throw new RuntimeVersionMismatchError("explicit runtime entrypoint is missing or unreadable");
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// packages/cli/cliEnvHelpers.ts
|
|
167
|
+
import { dirname as dirname2, extname as extname2, join as join2 } from "node:path";
|
|
168
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
169
|
+
import { existsSync as existsSync2, realpathSync as realpathSync2 } from "node:fs";
|
|
170
|
+
function resolveServerUrlFromEnv(env) {
|
|
171
|
+
return normalizeServerOrigin(
|
|
172
|
+
env.NOLO_SERVER || env.BASE_URL || DEFAULT_NOLO_SERVER_URL
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
function isCliArgs(value) {
|
|
176
|
+
return Array.isArray(value);
|
|
177
|
+
}
|
|
178
|
+
function buildServerCandidates(values) {
|
|
179
|
+
return [...new Set(
|
|
180
|
+
values.filter((value) => typeof value === "string" && value.trim().length > 0).map((value) => normalizeServerOrigin(value))
|
|
181
|
+
)];
|
|
182
|
+
}
|
|
183
|
+
function resolveServerUrl(input, env) {
|
|
184
|
+
if (isCliArgs(input)) {
|
|
185
|
+
const explicit = readOption(input, "--server-url") || readOption(input, "--server");
|
|
186
|
+
return normalizeServerOrigin(explicit) || resolveServerUrlFromEnv(env ?? {});
|
|
187
|
+
}
|
|
188
|
+
return resolveServerUrlFromEnv(input);
|
|
189
|
+
}
|
|
190
|
+
function resolveServerCandidates(input, envOrPreferred, preferred) {
|
|
191
|
+
if (isCliArgs(input)) {
|
|
192
|
+
const env2 = envOrPreferred ?? {};
|
|
193
|
+
const explicitServer = resolveServerUrl(input, env2);
|
|
194
|
+
return buildServerCandidates([
|
|
195
|
+
explicitServer,
|
|
196
|
+
preferred?.trim(),
|
|
197
|
+
env2.NOLO_SERVER,
|
|
198
|
+
env2.BASE_URL,
|
|
199
|
+
env2.NOLO_SERVER_URL,
|
|
200
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
201
|
+
...NOLO_CLUSTER_SERVERS
|
|
202
|
+
]);
|
|
203
|
+
}
|
|
204
|
+
const env = input;
|
|
205
|
+
return buildServerCandidates([
|
|
206
|
+
asOptionalTrimmedString(envOrPreferred),
|
|
207
|
+
env.NOLO_SERVER,
|
|
208
|
+
env.BASE_URL,
|
|
209
|
+
env.NOLO_SERVER_URL,
|
|
210
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
211
|
+
...NOLO_CLUSTER_SERVERS
|
|
212
|
+
]);
|
|
213
|
+
}
|
|
214
|
+
function resolveDeleteServerCandidatesFromEnv(env, ...preferredValues) {
|
|
215
|
+
return buildServerCandidates([
|
|
216
|
+
...preferredValues,
|
|
217
|
+
env.NOLO_SERVER,
|
|
218
|
+
env.BASE_URL,
|
|
219
|
+
env.NOLO_SERVER_URL,
|
|
220
|
+
env.READ_DIALOG_BASE,
|
|
221
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
222
|
+
...NOLO_CLUSTER_SERVERS,
|
|
223
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
224
|
+
]);
|
|
225
|
+
}
|
|
226
|
+
function resolveDeleteServerCandidates(input, envOrPreferred, preferred) {
|
|
227
|
+
if (isCliArgs(input)) {
|
|
228
|
+
const env2 = envOrPreferred ?? {};
|
|
229
|
+
const explicitServer = resolveServerUrl(input, env2);
|
|
230
|
+
return resolveDeleteServerCandidatesFromEnv(env2, explicitServer, preferred?.trim());
|
|
231
|
+
}
|
|
232
|
+
const env = input;
|
|
233
|
+
return resolveDeleteServerCandidatesFromEnv(
|
|
234
|
+
env,
|
|
235
|
+
asOptionalTrimmedString(envOrPreferred)
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
function resolveAuthTokenFromEnv(env, extraEnvKeys = []) {
|
|
239
|
+
for (const key of ["AUTH_TOKEN", "AUTH", "NOLO_MACHINE_API_KEY", ...extraEnvKeys]) {
|
|
240
|
+
const value = env[key];
|
|
241
|
+
if (typeof value === "string" && value.trim()) return value;
|
|
242
|
+
}
|
|
243
|
+
return "";
|
|
244
|
+
}
|
|
245
|
+
function resolveAuthToken(input, envOrExtraEnvKeys, extraEnvKeys = []) {
|
|
246
|
+
if (isCliArgs(input)) {
|
|
247
|
+
const env = envOrExtraEnvKeys ?? {};
|
|
248
|
+
return readOption(input, "--token") || readOption(input, "--machine-key") || resolveAuthTokenFromEnv(env, extraEnvKeys);
|
|
249
|
+
}
|
|
250
|
+
return resolveAuthTokenFromEnv(input, envOrExtraEnvKeys ?? []);
|
|
251
|
+
}
|
|
252
|
+
function parseUserIdFromAuthToken(token) {
|
|
253
|
+
const parts = token.trim().split(".").filter(Boolean);
|
|
254
|
+
const payloadCandidates = parts.length >= 3 ? [parts[1], parts[0]] : [parts[0]];
|
|
255
|
+
for (const payload of payloadCandidates) {
|
|
256
|
+
if (!payload) continue;
|
|
257
|
+
try {
|
|
258
|
+
const parsed = JSON.parse(Buffer.from(payload, "base64").toString("utf8"));
|
|
259
|
+
if (typeof parsed?.userId === "string") return parsed.userId;
|
|
260
|
+
} catch {
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return "";
|
|
264
|
+
}
|
|
265
|
+
function readOption(args, flag) {
|
|
266
|
+
const index = args.indexOf(flag);
|
|
267
|
+
return index >= 0 ? args[index + 1] : void 0;
|
|
268
|
+
}
|
|
269
|
+
function isCompiledBinary() {
|
|
270
|
+
try {
|
|
271
|
+
const url = import.meta.url;
|
|
272
|
+
return url.startsWith("file:///$bunfs/root/") || url.startsWith("/$bunfs/root/");
|
|
273
|
+
} catch {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function resolveCliEntrypointPath(fromModuleUrl = import.meta.url) {
|
|
278
|
+
if (isCompiledBinary()) {
|
|
279
|
+
return getHostRuntimeExecutable();
|
|
280
|
+
}
|
|
281
|
+
const modulePath = fileURLToPath2(fromModuleUrl);
|
|
282
|
+
const sourcePath = existsSync2(modulePath) ? realpathSync2(modulePath) : modulePath;
|
|
283
|
+
const ext = extname2(sourcePath) || ".ts";
|
|
284
|
+
return join2(dirname2(sourcePath), `index${ext}`);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export {
|
|
288
|
+
AGENT_RUN_PROTOCOL,
|
|
289
|
+
RuntimeProtocolMismatchError,
|
|
290
|
+
validateAgentRunProtocol,
|
|
291
|
+
RuntimeVersionMismatchError,
|
|
292
|
+
getHostRuntimeExecutable,
|
|
293
|
+
HOST_RUNTIME_CONTENT_IDENTITY,
|
|
294
|
+
initializeHostRuntimeIdentity,
|
|
295
|
+
isAgentRuntimeHostCommand,
|
|
296
|
+
resolveExactRuntimeEntrypoint,
|
|
297
|
+
resolveServerUrlFromEnv,
|
|
298
|
+
resolveServerUrl,
|
|
299
|
+
resolveServerCandidates,
|
|
300
|
+
resolveDeleteServerCandidates,
|
|
301
|
+
resolveAuthTokenFromEnv,
|
|
302
|
+
resolveAuthToken,
|
|
303
|
+
parseUserIdFromAuthToken,
|
|
304
|
+
readOption,
|
|
305
|
+
isCompiledBinary,
|
|
306
|
+
resolveCliEntrypointPath
|
|
307
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireTokenUser
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
t
|
|
6
|
-
} from "./chunk-OB6DVWPF.js";
|
|
3
|
+
} from "./chunk-KOIDLCAQ.js";
|
|
7
4
|
import {
|
|
8
5
|
resolveServerUrl
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BIDSIRTS.js";
|
|
7
|
+
import {
|
|
8
|
+
t
|
|
9
|
+
} from "./chunk-YFRJAE3R.js";
|
|
10
10
|
|
|
11
11
|
// packages/cli/cliApiClient.ts
|
|
12
12
|
var CliApiError = class extends Error {
|