nolo-cli 0.213.0 → 0.222.0-alpha.2
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 -2
- package/{_executeModel-CUJLCFWR.js → _executeModel-4GGQQHOB.js} +111 -82
- package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
- package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
- package/{addContentAction-WERAONNY.js → addContentAction-GDHDOF4U.js} +18 -17
- package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-CAKRU3ZT.js} +21 -20
- package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-BPV2XZL7.js} +128 -119
- package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-EJOS75YL.js} +132 -124
- package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
- package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
- package/{agentListCommands-OBLRBLHS.js → agentListCommands-HIZODBF3.js} +155 -92
- package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-ZMQ2CY7Y.js} +62 -54
- package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-WKJOAWBP.js} +5 -5
- package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
- package/agentRecordCommands-OMXVDLDX.js +176 -0
- package/agentRunCommand-CB34YWMV.js +206 -0
- package/{agentRunControl-TAMHJQSR.js → agentRunControl-JNONH3RP.js} +30 -15
- package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-QZPFWMLG.js} +52 -45
- package/{agentSlice-CHR6KOZN.js → agentSlice-RD2CDU7T.js} +20 -19
- package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-QCCFDIEQ.js} +61 -53
- package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-V2T7TNMQ.js} +61 -53
- package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-6PGH7ZCG.js} +61 -53
- package/{appGetCommands-YWDEX6Z4.js → appGetCommands-3L7WWJA6.js} +61 -53
- package/{appListCommands-ZQVMLPAY.js → appListCommands-ENJCK4PO.js} +61 -53
- package/{authCommand-PWX2ZNUP.js → authCommand-6V47SYGK.js} +29 -28
- package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
- package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-2ECA42FC.js} +11 -13
- package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
- package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
- package/{chunk-CRHOO2ZR.js → chunk-27PCUMJI.js} +2 -2
- package/chunk-2CI3ZFWD.js +97 -0
- package/{chunk-NSAPDIN2.js → chunk-2GJKRKI6.js} +541 -31
- package/{chunk-SM3NSZJV.js → chunk-2UCBGYO4.js} +20 -1
- package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
- package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
- package/chunk-2YGBI2XB.js +30 -0
- package/chunk-2ZKFCIJJ.js +13 -0
- package/{chunk-QG4AOSON.js → chunk-34J5K2YA.js} +13 -32
- package/{chunk-LOEO7LRC.js → chunk-3IK6ILVW.js} +4 -1
- package/{chunk-CTPXME7U.js → chunk-3LMUPOHG.js} +29 -6
- package/chunk-44X52WOJ.js +1621 -0
- package/{chunk-6VLJ6YA7.js → chunk-4DESLZTK.js} +9 -9
- package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
- package/chunk-5CHGAKRT.js +364 -0
- package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
- package/{chunk-INUFILG6.js → chunk-5RKUPJYL.js} +1 -1
- package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
- package/{chunk-MOIJOHA5.js → chunk-6WU5572L.js} +36 -25
- package/{chunk-IXNGOHV5.js → chunk-7EEZJ6BS.js} +11 -152
- package/{chunk-Y6ORVLSS.js → chunk-7ET2U67U.js} +1 -1
- package/{chunk-G7MLNNEX.js → chunk-7JLY4WYF.js} +5 -5
- package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
- package/{chunk-NJLL224W.js → chunk-AD5EWDFD.js} +2 -2
- package/{chunk-J2NHJ7WX.js → chunk-AIHYNKGV.js} +4 -4
- package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
- package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
- package/{chunk-ALQ3657A.js → chunk-AMEOV5VZ.js} +32 -12
- package/chunk-AN74ON4G.js +675 -0
- package/{chunk-HRMJUN5J.js → chunk-AQZ6BMRK.js} +1 -1
- package/{chunk-XHQC4PXX.js → chunk-B4GOW4MT.js} +424 -194
- package/{chunk-4KB6WQUL.js → chunk-BGP2EDFG.js} +1 -1
- package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
- package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
- package/{chunk-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
- package/{chunk-RZOV7OMV.js → chunk-C4VAR65S.js} +83 -141
- package/{chunk-COFEN36Z.js → chunk-C4WTX5TU.js} +2 -2
- package/{chunk-ZL5RAEEB.js → chunk-CIRB724Q.js} +1 -1
- package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
- package/{chunk-X7SDOJUM.js → chunk-CMZ3Z5PT.js} +14 -14
- package/{secretCommands-LXDWOLZ6.js → chunk-D726I5AZ.js} +191 -16
- package/{chunk-TAKB25RM.js → chunk-DNKTQ3IN.js} +4 -4
- package/chunk-DVQH4BTR.js +1137 -0
- package/{chunk-WYDI6TGM.js → chunk-DWX2HEVC.js} +91 -132
- package/{chunk-5MQRBSMW.js → chunk-EIAI3PPH.js} +111 -113
- package/chunk-EUCFKKDM.js +247 -0
- package/chunk-EWQ3HGNZ.js +90 -0
- package/{chunk-RPQXPZZF.js → chunk-F3GRJO4Z.js} +908 -13
- package/{chunk-YTF4WH7J.js → chunk-FIYSMXHY.js} +1 -1
- package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
- package/{chunk-INN4LTAJ.js → chunk-FJK526XH.js} +2 -2
- package/chunk-FS2XP5D7.js +142 -0
- package/{chunk-FUGMREBO.js → chunk-FYF2TONJ.js} +5 -5
- package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
- package/{chunk-TX5EYMGT.js → chunk-GYVCJABP.js} +30 -254
- package/{chunk-3UKL3HPD.js → chunk-HOCHUZQ7.js} +8 -78
- package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
- package/chunk-HYIETXA6.js +99 -0
- package/{chunk-H2TJUNCH.js → chunk-I4EADJ4P.js} +6 -6
- package/{chunk-TCZHTTUU.js → chunk-I7WBYGBP.js} +8 -8
- package/{chunk-6DWMYIUY.js → chunk-IILMY4W4.js} +14 -9
- package/chunk-JA3ICVJY.js +271 -0
- package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
- package/{chunk-H4UOTUOX.js → chunk-KEN3N2TN.js} +148 -18
- package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
- package/{chunk-UHJGXRJ4.js → chunk-KQSYAIZR.js} +3 -3
- package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
- package/chunk-LKA64WH4.js +227 -0
- package/{chunk-QHPRUL4O.js → chunk-LVL6GFCM.js} +4 -4
- package/{chunk-H5HF7TJA.js → chunk-MAIITKBT.js} +2 -2
- package/chunk-MBG66ZBH.js +226 -0
- package/{chunk-YUA6OAH5.js → chunk-MDLS23JK.js} +2 -2
- package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
- package/{chunk-MDB67IWP.js → chunk-MS4NZNKI.js} +10 -10
- package/{chunk-VO4WSAVP.js → chunk-MYHNBEXD.js} +3 -3
- package/{chunk-ZXOUUDCG.js → chunk-MZLE5HQ3.js} +3654 -231
- package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
- package/{chunk-V5Y3R6BT.js → chunk-NIZ2BXFD.js} +213 -210
- package/{chunk-KFLT5KAD.js → chunk-NWP2OYOX.js} +20 -20
- package/{chunk-G2BQWAVT.js → chunk-O6J3OTOP.js} +4 -4
- package/{chunk-VNYYOX3V.js → chunk-OB6DVWPF.js} +141 -48
- package/{chunk-YWSEPJ7C.js → chunk-OBWT45ZU.js} +3 -3
- package/{chunk-ZNWI6OVT.js → chunk-ODJ7BVSI.js} +80 -11
- package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
- package/{chunk-HUBHAQK2.js → chunk-ON37YXGX.js} +29 -29
- package/{chunk-UYD5HQ6T.js → chunk-P5ZJRTCH.js} +5429 -1752
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-WRYQ35LQ.js → chunk-PJCIP64Z.js} +859 -57
- package/{chunk-7QTZCMKL.js → chunk-PJVKMGPZ.js} +1089 -1639
- package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
- package/chunk-QHEN7NZ7.js +46 -0
- package/{chunk-OQPKUBPB.js → chunk-QNWG52I4.js} +19 -7
- package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
- package/{chunk-7BT37FK3.js → chunk-RDH5CQ4T.js} +648 -131
- package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
- package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
- package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
- package/{chunk-RLBNLZVC.js → chunk-SQYIK6HO.js} +1 -1
- package/{chunk-YJAFKXMU.js → chunk-SVT62ULE.js} +50 -48
- package/{chunk-KIM6CLW5.js → chunk-SY3C4SQ7.js} +42 -15
- package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
- package/{chunk-WMTBPBMP.js → chunk-T6DXNI6Z.js} +52 -50
- package/chunk-TLE77UJ5.js +230 -0
- package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
- package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
- package/{chunk-R5O4QAWG.js → chunk-UB3D4TRQ.js} +11 -77
- package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
- package/{chunk-NOKUNJON.js → chunk-UYOICCYG.js} +29 -19
- package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
- package/{chunk-O2TZF4AI.js → chunk-WAE3GFCJ.js} +3 -3
- package/{chunk-H7PPIYWP.js → chunk-WI67URFP.js} +20 -20
- package/{chunk-7OCO4TDT.js → chunk-WJVYAO6P.js} +1 -1
- package/{chunk-T43B7LB2.js → chunk-WKGQSYTB.js} +1 -1
- package/{chunk-BBJ22CLB.js → chunk-WUUH4LWZ.js} +60 -30
- package/{chunk-4T2WNOY7.js → chunk-X7UF53VA.js} +33 -22
- package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
- package/{chunk-LLRPJECG.js → chunk-XWVCYUUU.js} +16 -159
- package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
- package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
- package/chunk-YL3EFYL3.js +199 -0
- package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
- package/{chunk-W4S457LU.js → chunk-YU4ZPWVF.js} +41 -5
- package/{chunk-7Y4YTDQF.js → chunk-YWWDC3O7.js} +281 -159
- package/chunk-YZMNK53S.js +68 -0
- package/{chunk-RSHTSUEG.js → chunk-Z2PITYZN.js} +2060 -602
- package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
- package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-TKYL43MT.js} +15 -16
- package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
- package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
- package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
- package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
- package/cliLocalAgentRecordReader-MHHD4T7R.js +90 -0
- package/{commandRegistry-W63CYRZJ.js → commandRegistry-5DA5UP7S.js} +105 -97
- package/{contentThunks-U7PL5MQD.js → contentThunks-5GUQ7FWJ.js} +47 -43
- package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-X7P5M2V5.js} +5 -4
- package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-UCLTHQRI.js} +51 -49
- package/{createDialogAction-SVH6B3SB.js → createDialogAction-UPN774AF.js} +46 -48
- package/{createPageAction-F4DIWZ2Z.js → createPageAction-JRQ2TA4O.js} +50 -48
- package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
- package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
- package/{dbSlice-BVH2YZPQ.js → dbSlice-WNON7TOL.js} +17 -16
- package/{deleteFile-5YOEKV4U.js → deleteFile-Q3YDB4ML.js} +9 -9
- package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
- package/{dialogCommands-KHIEPY3M.js → dialogCommands-VRI7VCXH.js} +64 -57
- package/dialogNotifyCommand-6TMCX4D2.js +36 -0
- package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-LFNVUSAN.js} +42 -40
- package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
- package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-AMPXMOX3.js} +61 -55
- package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-I5WFAEHP.js} +63 -57
- package/{docReadCommands-LK37XH6L.js → docReadCommands-X53ELNIE.js} +61 -55
- package/{docStore-V2KECILA.js → docStore-2VAWVLWH.js} +21 -20
- package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-6QPNDC7M.js} +64 -58
- package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
- package/{getPricing-2MNMXEVG.js → getPricing-MB2GBXOK.js} +6 -6
- package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-AAJOHXOB.js} +194 -302
- package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-GLMJ22M6.js} +123 -114
- package/index.js +29 -29
- package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
- package/legacyMigration-TF4SYJCZ.js +19 -0
- package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
- package/{localDialogRead-7NNDVVF7.js → localDialogRead-SVTPA5GY.js} +3 -3
- package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
- package/localRecall-2J6QPOK2.js +15 -0
- package/{localRuntimeAdapter-KY6WXNBR.js → localRuntimeAdapter-BMP57P42.js} +119 -110
- package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
- package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
- package/{machineCommands-Q6HA3IXF.js → machineCommands-3MLIAK5Q.js} +128 -119
- package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
- package/machineWsRunDispatch-FKIGROQF.js +191 -0
- package/{memberThunks-7EDJADWU.js → memberThunks-ZGLZ36PK.js} +29 -28
- package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
- package/models-ULVWLSQ6.js +9 -0
- package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
- package/overlay-THLKYIWY.js +11 -0
- package/package.json +2 -2
- package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
- package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
- package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
- package/{projectArchive-DRTDIMEV.js → projectArchive-HK63GMF4.js} +52 -50
- package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-OIFQ73LH.js} +19 -12
- package/{providerRegistry-S6UL6UNA.js → providerRegistry-KZ3SDZ3D.js} +10 -10
- package/{read-4V2RMG7N.js → read-MRQHJMJ2.js} +10 -10
- package/{readDocTool-BH6ATGQO.js → readDocTool-4BGTXTXA.js} +2 -2
- package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-AKAHSCNY.js} +7982 -6274
- package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-B6H7DXFM.js} +23 -22
- package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-UVAWGEON.js} +81 -79
- package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-FW6XKDUG.js} +12 -12
- package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
- package/secretCommands-LJXOOYA7.js +24 -0
- package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-EVCY3TRW.js} +22 -21
- package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-KPFVPHCJ.js} +23 -22
- package/{settingThunks-RAMHMTGM.js → settingThunks-ENOAK2WV.js} +97 -88
- package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
- package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
- package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
- package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
- package/{spaceCommands-KVJZVKVO.js → spaceCommands-DTTNAS2L.js} +61 -53
- package/store-JRVN62NM.js +46 -0
- package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-R5UY25VB.js} +875 -618
- package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-SZ44XDRY.js} +21 -20
- package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
- package/tombstones-FQQMEDOW.js +32 -0
- package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
- package/{tools-EWKCPKMS.js → tools-HWFG6GMJ.js} +75 -74
- package/tuiSummaryLlmCaller-HQQZAMYF.js +44 -0
- package/{updateCommands-ZQYU6SCI.js → updateCommands-RJVCRSBP.js} +10 -8
- package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-KNPOAMVS.js} +48 -46
- package/{usageCommand-F4IPVMIZ.js → usageCommand-FWZCB7AM.js} +11 -10
- package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-SP2BLNJU.js} +12 -11
- package/userDataMerge-HT2ZVHBJ.js +13 -0
- package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
- package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-DYNEYHV5.js} +6 -6
- package/agentRecordCommands-ZQ7SVYGG.js +0 -167
- package/agentRunCommand-WS7IGO2W.js +0 -196
- package/chunk-3CGG2PAL.js +0 -594
- package/chunk-5XBUWM6I.js +0 -89
- package/chunk-CJEIOP3E.js +0 -0
- package/chunk-EHGEOAHI.js +0 -636
- package/chunk-FW6YHHLI.js +0 -842
- package/chunk-GPVRUGGY.js +0 -115
- package/chunk-HSVBJRF4.js +0 -339
- package/chunk-WJZOQR2J.js +0 -151
- package/chunk-ZCWRMUWT.js +0 -89
- package/dist-M676ULYG.js +0 -7314
- package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
- package/models-PJBE6JDV.js +0 -9
- package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
- package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
- package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
- package/{chunk-GOO6G4PY.js → chunk-CKG3PRZ7.js} +0 -0
- package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliAgentKeyInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BR3GT6MR.js";
|
|
4
4
|
import "./chunk-M2EJHDJP.js";
|
|
5
5
|
import {
|
|
6
6
|
toErrorMessage
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
resolveAuthToken,
|
|
11
11
|
resolveServerCandidates,
|
|
12
12
|
resolveServerUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2THCNKE4.js";
|
|
14
14
|
import "./chunk-OLZBQWZU.js";
|
|
15
15
|
import "./chunk-LCBAMY2M.js";
|
|
16
|
+
import "./chunk-G3SUCT4W.js";
|
|
16
17
|
import "./chunk-4SN6J65J.js";
|
|
17
18
|
import "./chunk-CF7PE763.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-4VNS5WPM.js";
|
|
19
|
+
import "./chunk-U67V476Y.js";
|
|
20
20
|
|
|
21
21
|
// packages/cli/agentFavoriteCommands.ts
|
|
22
22
|
function wantsHelp(args) {
|
|
@@ -125,6 +125,7 @@ async function runAgentFavoriteCommand(args, deps = {}) {
|
|
|
125
125
|
const isFavorite = !args.includes("--off");
|
|
126
126
|
const primaryServerUrl = resolveServerUrl(args, env);
|
|
127
127
|
const serverUrls = resolveServerCandidates(args, env, primaryServerUrl);
|
|
128
|
+
const favoritedAt = Date.now();
|
|
128
129
|
try {
|
|
129
130
|
const attempts = await setFavoriteAcrossServers({
|
|
130
131
|
serverUrls,
|
|
@@ -132,9 +133,7 @@ async function runAgentFavoriteCommand(args, deps = {}) {
|
|
|
132
133
|
fetchImpl: deps.fetchImpl ?? fetch,
|
|
133
134
|
agentKey,
|
|
134
135
|
isFavorite,
|
|
135
|
-
|
|
136
|
-
// 各自取 Date.now() 会让各服务器时间错开毫秒级。
|
|
137
|
-
favoritedAt: Date.now()
|
|
136
|
+
favoritedAt
|
|
138
137
|
});
|
|
139
138
|
const failures = attempts.filter((attempt) => !attempt.ok);
|
|
140
139
|
if (failures.length === attempts.length) {
|
|
@@ -151,7 +150,7 @@ async function runAgentFavoriteCommand(args, deps = {}) {
|
|
|
151
150
|
targetType: "agent",
|
|
152
151
|
targetKey: agentKey,
|
|
153
152
|
isFavorite,
|
|
154
|
-
favoritedAt
|
|
153
|
+
favoritedAt,
|
|
155
154
|
servers: attempts
|
|
156
155
|
},
|
|
157
156
|
null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliAgentKeyInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BR3GT6MR.js";
|
|
4
4
|
import "./chunk-M2EJHDJP.js";
|
|
5
5
|
import {
|
|
6
6
|
toErrorMessage
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
readOption,
|
|
12
12
|
resolveAuthToken,
|
|
13
13
|
resolveServerUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2THCNKE4.js";
|
|
15
15
|
import "./chunk-OLZBQWZU.js";
|
|
16
16
|
import "./chunk-LCBAMY2M.js";
|
|
17
|
-
import "./chunk-4SN6J65J.js";
|
|
18
|
-
import "./chunk-CF7PE763.js";
|
|
19
17
|
import {
|
|
20
18
|
asOptionalTrimmedString
|
|
21
19
|
} from "./chunk-G3SUCT4W.js";
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-4SN6J65J.js";
|
|
21
|
+
import "./chunk-CF7PE763.js";
|
|
22
|
+
import "./chunk-U67V476Y.js";
|
|
23
23
|
|
|
24
24
|
// packages/cli/agentGrantCommands.ts
|
|
25
25
|
function wantsHelp(args) {
|
|
@@ -10,59 +10,58 @@ import {
|
|
|
10
10
|
listRemotePublicAgents,
|
|
11
11
|
normalizeListedAgent,
|
|
12
12
|
parseAgentListArgs
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AIHYNKGV.js";
|
|
14
14
|
import {
|
|
15
15
|
buildSpaceLookup,
|
|
16
16
|
getSpaceContentKeys
|
|
17
17
|
} from "./chunk-ID4G2MAR.js";
|
|
18
18
|
import {
|
|
19
19
|
readLiveDbRecordAfterTombstoneMerge
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MYHNBEXD.js";
|
|
21
21
|
import {
|
|
22
22
|
refreshSubscriptionQuotas
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QVBXJNZ2.js";
|
|
24
24
|
import {
|
|
25
25
|
getReadableCliDb
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YFLVRVYK.js";
|
|
27
27
|
import {
|
|
28
28
|
applyCredentialAvailability,
|
|
29
29
|
clearCredentialAvailabilityIfMarkedAt,
|
|
30
30
|
readCredentialAvailability,
|
|
31
31
|
readEffectiveCredentialEntry
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FIYSMXHY.js";
|
|
33
33
|
import {
|
|
34
34
|
queryUserRecords,
|
|
35
35
|
readDbRecord
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-NBTY7YJF.js";
|
|
36
|
+
} from "./chunk-6WU5572L.js";
|
|
38
37
|
import {
|
|
39
38
|
buildAgentDiscoveryResult,
|
|
40
39
|
matchesAgentQuery,
|
|
41
40
|
resolvePaginationArgs,
|
|
42
41
|
summarizeCredentialGroups,
|
|
43
42
|
toDiscoverySafeAgentSummary
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import {
|
|
47
|
-
resolveNoloHome
|
|
48
|
-
} from "./chunk-GLKOYSRU.js";
|
|
43
|
+
} from "./chunk-34J5K2YA.js";
|
|
44
|
+
import "./chunk-GBWGPTA7.js";
|
|
49
45
|
import "./chunk-UEILX4EV.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-BV3FLP2L.js";
|
|
47
|
+
import "./chunk-2ZKFCIJJ.js";
|
|
48
|
+
import "./chunk-BR3GT6MR.js";
|
|
49
|
+
import "./chunk-Z2PITYZN.js";
|
|
52
50
|
import "./chunk-ZNFJWEN4.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-CTPXME7U.js";
|
|
55
|
-
import "./chunk-HNUWUO75.js";
|
|
51
|
+
import "./chunk-3LMUPOHG.js";
|
|
56
52
|
import "./chunk-CHOZJMJS.js";
|
|
57
53
|
import "./chunk-PWTNI4N7.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-AL3TYDIF.js";
|
|
55
|
+
import "./chunk-QNWG52I4.js";
|
|
56
|
+
import "./chunk-HNUWUO75.js";
|
|
57
|
+
import "./chunk-LKA64WH4.js";
|
|
58
|
+
import "./chunk-YU4ZPWVF.js";
|
|
59
|
+
import "./chunk-2WZXXAQD.js";
|
|
60
|
+
import "./chunk-OBWT45ZU.js";
|
|
61
|
+
import "./chunk-BGP2EDFG.js";
|
|
61
62
|
import "./chunk-56GBUMO5.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-E2BESSAW.js";
|
|
65
|
-
import "./chunk-RZOV7OMV.js";
|
|
63
|
+
import "./chunk-EIAI3PPH.js";
|
|
64
|
+
import "./chunk-C4VAR65S.js";
|
|
66
65
|
import {
|
|
67
66
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
68
67
|
formatQuotaSummary,
|
|
@@ -71,79 +70,89 @@ import {
|
|
|
71
70
|
resolveCredentialCandidateKeys,
|
|
72
71
|
resolveCredentialKeyWithFallback,
|
|
73
72
|
shouldClearCooldownFromQuota
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
73
|
+
} from "./chunk-HOCHUZQ7.js";
|
|
74
|
+
import "./chunk-SOF4OWDM.js";
|
|
75
|
+
import "./chunk-MAIITKBT.js";
|
|
76
|
+
import "./chunk-E2BESSAW.js";
|
|
77
|
+
import "./chunk-TLE77UJ5.js";
|
|
78
|
+
import "./chunk-FS2XP5D7.js";
|
|
79
|
+
import "./chunk-KQSYAIZR.js";
|
|
80
80
|
import "./chunk-2MBTWINN.js";
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-7BT37FK3.js";
|
|
83
|
-
import "./chunk-H57T64RA.js";
|
|
81
|
+
import "./chunk-NIZ2BXFD.js";
|
|
84
82
|
import "./chunk-5ZUL4CUO.js";
|
|
83
|
+
import "./chunk-RDH5CQ4T.js";
|
|
84
|
+
import "./chunk-H57T64RA.js";
|
|
85
85
|
import "./chunk-UKZX3NHN.js";
|
|
86
86
|
import "./chunk-5MMAK75Q.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-OQHIVPG4.js";
|
|
87
|
+
import "./chunk-47ITIXO7.js";
|
|
89
88
|
import "./chunk-KX6YBIHG.js";
|
|
89
|
+
import "./chunk-SNBZZPYH.js";
|
|
90
90
|
import "./chunk-DWLEOOGR.js";
|
|
91
|
+
import "./chunk-OW765XBU.js";
|
|
91
92
|
import "./chunk-7DPNBQSV.js";
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-WKGQSYTB.js";
|
|
94
|
+
import "./chunk-SY3C4SQ7.js";
|
|
95
|
+
import "./chunk-PJCIP64Z.js";
|
|
96
|
+
import "./chunk-6OVNSQHN.js";
|
|
97
|
+
import "./chunk-W6RFEDN4.js";
|
|
98
|
+
import "./chunk-7ET2U67U.js";
|
|
99
|
+
import "./chunk-3IK6ILVW.js";
|
|
99
100
|
import "./chunk-M2EJHDJP.js";
|
|
100
|
-
import
|
|
101
|
-
|
|
101
|
+
import {
|
|
102
|
+
createKey,
|
|
103
|
+
createTokenKey
|
|
104
|
+
} from "./chunk-SYTHYBMI.js";
|
|
105
|
+
import "./chunk-OJKUU3LP.js";
|
|
106
|
+
import "./chunk-YZMNK53S.js";
|
|
107
|
+
import "./chunk-I42VC5KR.js";
|
|
108
|
+
import "./chunk-JWXITTQB.js";
|
|
109
|
+
import "./chunk-L5I543VB.js";
|
|
110
|
+
import "./chunk-KHCLMKZZ.js";
|
|
111
|
+
import "./chunk-4O22PGNQ.js";
|
|
112
|
+
import {
|
|
113
|
+
t
|
|
114
|
+
} from "./chunk-OB6DVWPF.js";
|
|
115
|
+
import {
|
|
116
|
+
listRunRecords
|
|
117
|
+
} from "./chunk-2GJKRKI6.js";
|
|
118
|
+
import "./chunk-AQZ6BMRK.js";
|
|
119
|
+
import "./chunk-AMEOV5VZ.js";
|
|
120
|
+
import "./chunk-KEN3N2TN.js";
|
|
121
|
+
import "./chunk-EWQ3HGNZ.js";
|
|
102
122
|
import "./chunk-PSCNXBYA.js";
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-SM3NSZJV.js";
|
|
106
|
-
import "./chunk-JRTNUU5Z.js";
|
|
123
|
+
import "./chunk-I7WBYGBP.js";
|
|
124
|
+
import "./chunk-MDLS23JK.js";
|
|
107
125
|
import {
|
|
108
126
|
toErrorMessage
|
|
109
127
|
} from "./chunk-HNMXYYJR.js";
|
|
128
|
+
import "./chunk-3EUW3WEO.js";
|
|
129
|
+
import "./chunk-2UCBGYO4.js";
|
|
130
|
+
import "./chunk-JRTNUU5Z.js";
|
|
110
131
|
import "./chunk-KUG52IAP.js";
|
|
111
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-CKG3PRZ7.js";
|
|
112
133
|
import "./chunk-QSJ3HFEF.js";
|
|
134
|
+
import "./chunk-U6VC4MU4.js";
|
|
135
|
+
import "./chunk-WWC7I6TA.js";
|
|
113
136
|
import {
|
|
114
137
|
parseUserIdFromAuthToken,
|
|
115
138
|
readOption,
|
|
116
139
|
resolveAuthToken,
|
|
117
140
|
resolveServerCandidates,
|
|
118
141
|
resolveServerUrl
|
|
119
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-2THCNKE4.js";
|
|
120
143
|
import "./chunk-OLZBQWZU.js";
|
|
121
144
|
import "./chunk-LCBAMY2M.js";
|
|
145
|
+
import "./chunk-G3SUCT4W.js";
|
|
122
146
|
import "./chunk-4SN6J65J.js";
|
|
123
147
|
import "./chunk-CF7PE763.js";
|
|
124
|
-
import "./chunk-4O22PGNQ.js";
|
|
125
|
-
import {
|
|
126
|
-
t
|
|
127
|
-
} from "./chunk-VNYYOX3V.js";
|
|
128
148
|
import "./chunk-G7Y4GXTY.js";
|
|
129
149
|
import "./chunk-6UBGXX2W.js";
|
|
130
|
-
import
|
|
131
|
-
createKey,
|
|
132
|
-
createTokenKey
|
|
133
|
-
} from "./chunk-JY5NGFFH.js";
|
|
134
|
-
import "./chunk-XJWWBO34.js";
|
|
135
|
-
import "./chunk-I42VC5KR.js";
|
|
136
|
-
import "./chunk-U6VC4MU4.js";
|
|
137
|
-
import "./chunk-WWC7I6TA.js";
|
|
138
|
-
import "./chunk-3EUW3WEO.js";
|
|
139
|
-
import "./chunk-G3SUCT4W.js";
|
|
140
|
-
import "./chunk-4VNS5WPM.js";
|
|
150
|
+
import "./chunk-U67V476Y.js";
|
|
141
151
|
|
|
142
152
|
// packages/ai/agent/speedSampleCache.ts
|
|
143
153
|
var SPEED_SAMPLE_DISK_CACHE_TTL_MS = 10 * 6e4;
|
|
144
154
|
var SPEED_SAMPLE_SCAN_BUDGET_MS = 2500;
|
|
145
|
-
var SPEED_SAMPLE_CACHE_VERSION =
|
|
146
|
-
var SPEED_SAMPLE_LEGACY_CACHE_VERSION = 1;
|
|
155
|
+
var SPEED_SAMPLE_CACHE_VERSION = 4;
|
|
147
156
|
var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
148
157
|
var sanitizeSample = (value) => {
|
|
149
158
|
if (!value || typeof value !== "object") return null;
|
|
@@ -163,7 +172,7 @@ async function parseCacheFile(cachePath, userId) {
|
|
|
163
172
|
const parsed = JSON.parse(raw);
|
|
164
173
|
if (!parsed || typeof parsed !== "object") return null;
|
|
165
174
|
const version = parsed.version;
|
|
166
|
-
if (version !== SPEED_SAMPLE_CACHE_VERSION
|
|
175
|
+
if (version !== SPEED_SAMPLE_CACHE_VERSION) {
|
|
167
176
|
return null;
|
|
168
177
|
}
|
|
169
178
|
if (parsed.userId !== userId) return null;
|
|
@@ -180,7 +189,7 @@ async function parseCacheFile(cachePath, userId) {
|
|
|
180
189
|
}
|
|
181
190
|
samples.set(model, cleaned);
|
|
182
191
|
}
|
|
183
|
-
const complete =
|
|
192
|
+
const complete = parsed.complete === true;
|
|
184
193
|
const cursor = typeof parsed.cursor === "string" && parsed.cursor.length > 0 ? parsed.cursor : void 0;
|
|
185
194
|
return { samples, at: parsed.at, complete, cursor: complete ? void 0 : cursor };
|
|
186
195
|
} catch {
|
|
@@ -211,8 +220,8 @@ function resolveSpeedSamplesProgressPath(cachePath) {
|
|
|
211
220
|
async function writeSpeedSamplesCache(cachePath, payload) {
|
|
212
221
|
try {
|
|
213
222
|
const fs = await import("node:fs/promises");
|
|
214
|
-
const
|
|
215
|
-
await fs.mkdir(
|
|
223
|
+
const path = await import("node:path");
|
|
224
|
+
await fs.mkdir(path.dirname(cachePath), { recursive: true });
|
|
216
225
|
const tmpPath = `${cachePath}.tmp-${process.pid}-${Math.random().toString(36).slice(2, 8)}`;
|
|
217
226
|
await fs.writeFile(tmpPath, JSON.stringify(payload), "utf8");
|
|
218
227
|
await fs.rename(tmpPath, cachePath);
|
|
@@ -294,6 +303,7 @@ function buildCandidateSpeedContext(models, samplesByModel, options = {}) {
|
|
|
294
303
|
return formatCandidateSpeedFacts(resolveCandidateSpeedFacts(models, samplesByModel), options);
|
|
295
304
|
}
|
|
296
305
|
var SPEED_SAMPLE_PAGE_SIZE = 2e3;
|
|
306
|
+
var DISPATCH_ENTRY_PATH = "agent-run";
|
|
297
307
|
var eventTime = (value) => {
|
|
298
308
|
if (isFiniteNumber2(value.timestamp)) return value.timestamp;
|
|
299
309
|
if (isFiniteNumber2(value.createdAt)) return value.createdAt;
|
|
@@ -330,6 +340,25 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
|
330
340
|
const budgetMs = isFiniteNumber2(options.budgetMs) ? options.budgetMs : Number.POSITIVE_INFINITY;
|
|
331
341
|
const { start, end } = createTokenKey.rangeOfUser(userId);
|
|
332
342
|
const failedPrefix = createKey("token", userId, "failed-call", "");
|
|
343
|
+
const dispatchRunCache = /* @__PURE__ */ new Map();
|
|
344
|
+
const isDispatchSampleRecord = async (record2, resolver, cache) => {
|
|
345
|
+
if (record2.entry_path !== DISPATCH_ENTRY_PATH && record2.entry_path !== "cli-local") return false;
|
|
346
|
+
const runId = typeof record2.dialogId === "string" ? record2.dialogId.trim() : "";
|
|
347
|
+
if (!runId) return false;
|
|
348
|
+
const cacheKey = `${record2.entry_path}:${runId}`;
|
|
349
|
+
const cached = cache.get(cacheKey);
|
|
350
|
+
if (cached !== void 0) return cached;
|
|
351
|
+
let dispatch = false;
|
|
352
|
+
if (resolver) {
|
|
353
|
+
try {
|
|
354
|
+
dispatch = await resolver(runId, record2.entry_path) === true;
|
|
355
|
+
} catch {
|
|
356
|
+
dispatch = false;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
cache.set(cacheKey, dispatch);
|
|
360
|
+
return dispatch;
|
|
361
|
+
};
|
|
333
362
|
const collected = /* @__PURE__ */ new Map();
|
|
334
363
|
const startedAt = Date.now();
|
|
335
364
|
let lastKey = options.startAfter;
|
|
@@ -355,7 +384,15 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
|
355
384
|
newestKey = key;
|
|
356
385
|
if (key.startsWith(failedPrefix)) continue;
|
|
357
386
|
if (!raw || typeof raw !== "object") continue;
|
|
358
|
-
|
|
387
|
+
const record2 = raw;
|
|
388
|
+
const resolver = options.isDispatchRun ?? db.isDispatchRun;
|
|
389
|
+
if (!await isDispatchSampleRecord(
|
|
390
|
+
record2,
|
|
391
|
+
resolver ? (runId, entryPath) => resolver.call(db, runId, entryPath) : void 0,
|
|
392
|
+
dispatchRunCache
|
|
393
|
+
))
|
|
394
|
+
continue;
|
|
395
|
+
collectSample(collected, record2);
|
|
359
396
|
}
|
|
360
397
|
if (accepted === 0 || accepted < pageSize) break;
|
|
361
398
|
lastKey = newestKey;
|
|
@@ -506,20 +543,46 @@ async function injectSpeedContextIntoListAgentsResult(result, options = {}) {
|
|
|
506
543
|
}
|
|
507
544
|
}
|
|
508
545
|
|
|
546
|
+
// packages/ai/agent/dispatchSpeedProvenance.ts
|
|
547
|
+
var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
548
|
+
function isServerDispatchSpeedSource(value, dialogId, userId) {
|
|
549
|
+
const dialog = record(value);
|
|
550
|
+
const proof = record(dialog.dispatchSpeedProvenance);
|
|
551
|
+
return proof.version === 1 && proof.source === "server-startAgentRun" && proof.userId === userId && record(dialog.runtimeBinding).tenantUserId === userId && dialog.id === dialogId;
|
|
552
|
+
}
|
|
553
|
+
function isLocalDispatchSpeedSource(value, dialogId, userId) {
|
|
554
|
+
const run = record(value);
|
|
555
|
+
const proof = record(run.dispatchSpeedProvenance);
|
|
556
|
+
return proof.version === 1 && proof.source === "cli-startAgentRun" && proof.userId === userId && typeof run.runId === "string" && run.runId.length > 0 && run.dialogId === dialogId && run.ephemeral !== true;
|
|
557
|
+
}
|
|
558
|
+
|
|
509
559
|
// packages/cli/agentListCommands.ts
|
|
510
|
-
|
|
511
|
-
|
|
560
|
+
var createCliDispatchSampleDb = (db, userId, env) => {
|
|
561
|
+
let localDialogs;
|
|
562
|
+
return {
|
|
563
|
+
iterator: (options) => db.iterator(options),
|
|
564
|
+
isDispatchRun: async (dialogId, entryPath) => {
|
|
565
|
+
if (entryPath === "cli-local") {
|
|
566
|
+
localDialogs ??= new Set(listRunRecords({ env }).filter(
|
|
567
|
+
(run) => typeof run.dialogId === "string" && isLocalDispatchSpeedSource(run, run.dialogId, userId)
|
|
568
|
+
).map((run) => run.dialogId));
|
|
569
|
+
return localDialogs.has(dialogId);
|
|
570
|
+
}
|
|
571
|
+
if (entryPath !== "agent-run") return false;
|
|
572
|
+
try {
|
|
573
|
+
return isServerDispatchSpeedSource(await db.get(`dialog-${userId}-${dialogId}`), dialogId, userId);
|
|
574
|
+
} catch {
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
};
|
|
512
580
|
function formatCooldownUntilLocal(at, now = /* @__PURE__ */ new Date()) {
|
|
513
581
|
const pad = (value) => String(value).padStart(2, "0");
|
|
514
582
|
const time = `${pad(at.getHours())}:${pad(at.getMinutes())}`;
|
|
515
583
|
const sameDay = at.getFullYear() === now.getFullYear() && at.getMonth() === now.getMonth() && at.getDate() === now.getDate();
|
|
516
584
|
return sameDay ? time : `${pad(at.getMonth() + 1)}-${pad(at.getDate())} ${time}`;
|
|
517
585
|
}
|
|
518
|
-
function resolveSpeedSamplesCachePath(env, userId) {
|
|
519
|
-
const safeUserId = userId.replace(/[^A-Za-z0-9._-]/g, "_");
|
|
520
|
-
const mergedEnv = { ...process.env, ...env };
|
|
521
|
-
return path.join(resolveNoloHome({ env: mergedEnv }), "cache", `speed-samples-${safeUserId}.json`);
|
|
522
|
-
}
|
|
523
586
|
async function runAgentListCommand(args, deps = {}) {
|
|
524
587
|
const env = deps.env ?? process.env;
|
|
525
588
|
const output = deps.output ?? process.stdout;
|
|
@@ -754,18 +817,18 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
754
817
|
fetchImpl,
|
|
755
818
|
serverUrls
|
|
756
819
|
});
|
|
757
|
-
const
|
|
758
|
-
if (!
|
|
759
|
-
const norm = normalizeListedAgent(
|
|
760
|
-
const candidateKeys = [
|
|
820
|
+
const record2 = favRead.record;
|
|
821
|
+
if (!record2 || record2.type && record2.type !== "agent") continue;
|
|
822
|
+
const norm = normalizeListedAgent(record2);
|
|
823
|
+
const candidateKeys = [record2.dbKey, record2.publicKey, record2.id].filter((key) => typeof key === "string" && key.length > 0);
|
|
761
824
|
if (spaceContentKeys && !candidateKeys.some((key) => spaceContentKeys?.has(key))) {
|
|
762
825
|
continue;
|
|
763
826
|
}
|
|
764
827
|
if (norm) {
|
|
765
828
|
if (!favKey.startsWith("agent-pub-")) {
|
|
766
829
|
norm.verifiedAgentKey = favKey;
|
|
767
|
-
if (typeof
|
|
768
|
-
norm.ownerId =
|
|
830
|
+
if (typeof record2.userId === "string" && record2.userId) {
|
|
831
|
+
norm.ownerId = record2.userId;
|
|
769
832
|
}
|
|
770
833
|
}
|
|
771
834
|
agents.push(norm);
|
|
@@ -774,7 +837,7 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
774
837
|
existingKeys.add(norm.publicKey);
|
|
775
838
|
existingKeys.add(norm.id);
|
|
776
839
|
} else {
|
|
777
|
-
extraFavoriteRecords.push(
|
|
840
|
+
extraFavoriteRecords.push(record2);
|
|
778
841
|
for (const key of candidateKeys) existingKeys.add(key);
|
|
779
842
|
}
|
|
780
843
|
} catch {
|
|
@@ -789,7 +852,7 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
789
852
|
serverUrls
|
|
790
853
|
});
|
|
791
854
|
}
|
|
792
|
-
const safeRecords = [...agents, ...extraFavoriteRecords].map((
|
|
855
|
+
const safeRecords = [...agents, ...extraFavoriteRecords].map((record2) => toDiscoverySafeAgentSummary(record2, { favoritesMap, userId })).filter((agent) => publicOnly ? agent.isPublic === true : true);
|
|
793
856
|
const discovery = buildAgentDiscoveryResult({
|
|
794
857
|
agents: safeRecords,
|
|
795
858
|
scope: requestedScope ?? (publicOnly ? "public" : "all"),
|
|
@@ -818,12 +881,13 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
818
881
|
agents: discovery.agents,
|
|
819
882
|
credentialGroups: discovery.credentialGroups
|
|
820
883
|
}, null, 2);
|
|
821
|
-
const
|
|
822
|
-
|
|
884
|
+
const cliNoloHome = env.NOLO_HOME?.trim() || (env.HOME?.trim() ? `${env.HOME.trim()}/.nolo` : "");
|
|
885
|
+
const speedAwareListResult = await injectSpeedContextIntoListAgentsResult(listResult, {
|
|
886
|
+
db: createCliDispatchSampleDb(deps.db ?? await getReadableCliDb(output), userId, env),
|
|
823
887
|
userId,
|
|
824
|
-
diskCache: { cachePath:
|
|
888
|
+
...cliNoloHome ? { diskCache: { cachePath: `${cliNoloHome}/cache/speed-samples-${userId}.json` } } : {}
|
|
825
889
|
});
|
|
826
|
-
output.write(
|
|
890
|
+
output.write(speedAwareListResult);
|
|
827
891
|
output.write("\n");
|
|
828
892
|
return 0;
|
|
829
893
|
}
|
|
@@ -923,6 +987,5 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
923
987
|
}
|
|
924
988
|
}
|
|
925
989
|
export {
|
|
926
|
-
resolveSpeedSamplesCachePath,
|
|
927
990
|
runAgentListCommand
|
|
928
991
|
};
|
|
@@ -4,109 +4,117 @@ import {
|
|
|
4
4
|
import "./chunk-Y5GCAMGP.js";
|
|
5
5
|
import {
|
|
6
6
|
getReadableCliDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YFLVRVYK.js";
|
|
8
8
|
import {
|
|
9
9
|
readAgentRecord,
|
|
10
10
|
resolveAgentRecordFromHybridStore,
|
|
11
11
|
writeAgentRecord
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
resolveCliAgentKeyInput
|
|
15
|
-
} from "./chunk-NBTY7YJF.js";
|
|
12
|
+
} from "./chunk-6WU5572L.js";
|
|
16
13
|
import "./chunk-NF64D32W.js";
|
|
17
14
|
import "./chunk-3L2WKC3W.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BV3FLP2L.js";
|
|
16
|
+
import "./chunk-2ZKFCIJJ.js";
|
|
17
|
+
import {
|
|
18
|
+
resolveCliAgentKeyInput
|
|
19
|
+
} from "./chunk-BR3GT6MR.js";
|
|
20
|
+
import "./chunk-Z2PITYZN.js";
|
|
20
21
|
import "./chunk-ZNFJWEN4.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-CTPXME7U.js";
|
|
23
|
-
import "./chunk-HNUWUO75.js";
|
|
22
|
+
import "./chunk-3LMUPOHG.js";
|
|
24
23
|
import "./chunk-CHOZJMJS.js";
|
|
25
24
|
import "./chunk-PWTNI4N7.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AL3TYDIF.js";
|
|
26
|
+
import "./chunk-QNWG52I4.js";
|
|
27
|
+
import "./chunk-HNUWUO75.js";
|
|
28
|
+
import "./chunk-LKA64WH4.js";
|
|
29
|
+
import "./chunk-YU4ZPWVF.js";
|
|
30
|
+
import "./chunk-2WZXXAQD.js";
|
|
31
|
+
import "./chunk-OBWT45ZU.js";
|
|
32
|
+
import "./chunk-BGP2EDFG.js";
|
|
29
33
|
import "./chunk-56GBUMO5.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-EIAI3PPH.js";
|
|
35
|
+
import "./chunk-C4VAR65S.js";
|
|
36
|
+
import "./chunk-HOCHUZQ7.js";
|
|
37
|
+
import "./chunk-SOF4OWDM.js";
|
|
38
|
+
import "./chunk-MAIITKBT.js";
|
|
32
39
|
import "./chunk-E2BESSAW.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-YB3YZK56.js";
|
|
37
|
-
import "./chunk-YWSEPJ7C.js";
|
|
38
|
-
import "./chunk-WJZOQR2J.js";
|
|
39
|
-
import "./chunk-UHJGXRJ4.js";
|
|
40
|
+
import "./chunk-TLE77UJ5.js";
|
|
41
|
+
import "./chunk-FS2XP5D7.js";
|
|
42
|
+
import "./chunk-KQSYAIZR.js";
|
|
40
43
|
import "./chunk-2MBTWINN.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-7BT37FK3.js";
|
|
43
|
-
import "./chunk-H57T64RA.js";
|
|
44
|
+
import "./chunk-NIZ2BXFD.js";
|
|
44
45
|
import "./chunk-5ZUL4CUO.js";
|
|
46
|
+
import "./chunk-RDH5CQ4T.js";
|
|
47
|
+
import "./chunk-H57T64RA.js";
|
|
45
48
|
import "./chunk-UKZX3NHN.js";
|
|
46
49
|
import "./chunk-5MMAK75Q.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-OQHIVPG4.js";
|
|
50
|
+
import "./chunk-47ITIXO7.js";
|
|
49
51
|
import {
|
|
50
52
|
asRecordOrEmpty
|
|
51
53
|
} from "./chunk-KX6YBIHG.js";
|
|
54
|
+
import "./chunk-SNBZZPYH.js";
|
|
52
55
|
import "./chunk-DWLEOOGR.js";
|
|
56
|
+
import "./chunk-OW765XBU.js";
|
|
53
57
|
import "./chunk-7DPNBQSV.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-WKGQSYTB.js";
|
|
59
|
+
import "./chunk-SY3C4SQ7.js";
|
|
60
|
+
import "./chunk-PJCIP64Z.js";
|
|
61
|
+
import "./chunk-6OVNSQHN.js";
|
|
62
|
+
import "./chunk-W6RFEDN4.js";
|
|
63
|
+
import "./chunk-7ET2U67U.js";
|
|
64
|
+
import "./chunk-3IK6ILVW.js";
|
|
61
65
|
import "./chunk-M2EJHDJP.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-SYTHYBMI.js";
|
|
67
|
+
import "./chunk-OJKUU3LP.js";
|
|
68
|
+
import "./chunk-YZMNK53S.js";
|
|
69
|
+
import "./chunk-I42VC5KR.js";
|
|
70
|
+
import "./chunk-JWXITTQB.js";
|
|
71
|
+
import "./chunk-L5I543VB.js";
|
|
72
|
+
import "./chunk-KHCLMKZZ.js";
|
|
73
|
+
import "./chunk-4O22PGNQ.js";
|
|
74
|
+
import "./chunk-KEN3N2TN.js";
|
|
75
|
+
import "./chunk-EWQ3HGNZ.js";
|
|
64
76
|
import "./chunk-PSCNXBYA.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-SM3NSZJV.js";
|
|
68
|
-
import "./chunk-JRTNUU5Z.js";
|
|
77
|
+
import "./chunk-I7WBYGBP.js";
|
|
78
|
+
import "./chunk-MDLS23JK.js";
|
|
69
79
|
import {
|
|
70
80
|
toErrorMessage
|
|
71
81
|
} from "./chunk-HNMXYYJR.js";
|
|
82
|
+
import "./chunk-3EUW3WEO.js";
|
|
83
|
+
import "./chunk-2UCBGYO4.js";
|
|
84
|
+
import "./chunk-JRTNUU5Z.js";
|
|
72
85
|
import "./chunk-KUG52IAP.js";
|
|
73
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-CKG3PRZ7.js";
|
|
74
87
|
import {
|
|
75
88
|
asTrimmedLowercaseString
|
|
76
89
|
} from "./chunk-QSJ3HFEF.js";
|
|
90
|
+
import "./chunk-U6VC4MU4.js";
|
|
91
|
+
import "./chunk-WWC7I6TA.js";
|
|
77
92
|
import {
|
|
78
93
|
parseUserIdFromAuthToken,
|
|
79
94
|
readOption,
|
|
80
95
|
resolveAuthToken,
|
|
81
96
|
resolveServerUrl
|
|
82
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-2THCNKE4.js";
|
|
83
98
|
import "./chunk-OLZBQWZU.js";
|
|
84
99
|
import "./chunk-LCBAMY2M.js";
|
|
100
|
+
import "./chunk-G3SUCT4W.js";
|
|
85
101
|
import "./chunk-4SN6J65J.js";
|
|
86
102
|
import "./chunk-CF7PE763.js";
|
|
87
|
-
import "./chunk-4O22PGNQ.js";
|
|
88
103
|
import "./chunk-G7Y4GXTY.js";
|
|
89
104
|
import "./chunk-6UBGXX2W.js";
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-XJWWBO34.js";
|
|
92
|
-
import "./chunk-I42VC5KR.js";
|
|
93
|
-
import "./chunk-U6VC4MU4.js";
|
|
94
|
-
import "./chunk-WWC7I6TA.js";
|
|
95
|
-
import "./chunk-3EUW3WEO.js";
|
|
96
|
-
import "./chunk-G3SUCT4W.js";
|
|
97
|
-
import "./chunk-4VNS5WPM.js";
|
|
105
|
+
import "./chunk-U67V476Y.js";
|
|
98
106
|
|
|
99
107
|
// packages/cli/agentMachineCommands.ts
|
|
100
108
|
async function defaultExecuteCli(provider, prompt, options) {
|
|
101
|
-
const { executeCli } = await import("./cliExecutor-
|
|
109
|
+
const { executeCli } = await import("./cliExecutor-4MAX3PZL.js");
|
|
102
110
|
return executeCli(provider, prompt, options);
|
|
103
111
|
}
|
|
104
112
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
105
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
113
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-FKIGROQF.js");
|
|
106
114
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
107
115
|
}
|
|
108
116
|
async function detectLaunchableMachineInfo() {
|
|
109
|
-
const { detectMachineInfo } = await import("./machineInfo-
|
|
117
|
+
const { detectMachineInfo } = await import("./machineInfo-LWHTEBHJ.js");
|
|
110
118
|
return detectMachineInfo({ probeLaunchable: true });
|
|
111
119
|
}
|
|
112
120
|
function requiredCapabilityForAgent(agent) {
|