nolo-cli 0.240.0-alpha.3 → 0.242.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 +3 -5
- package/{_executeModel-5NA4USGG.js → _executeModel-IZ2MCXHO.js} +77 -77
- package/{action-X75O3XPH.js → action-VDEW6WLI.js} +9 -9
- package/{addContentAction-GVC77QSN.js → addContentAction-7YVXHIPQ.js} +14 -14
- package/{addDialogAgentAction-KKDVAMW3.js → addDialogAgentAction-BX7B47HF.js} +17 -17
- package/{agentDeleteCommand-2RFGKFAB.js → agentDeleteCommand-N7ELXPLD.js} +107 -108
- package/{agentEmailCommands-GQCQKKOR.js → agentEmailCommands-OFS477PV.js} +110 -111
- package/{agentListCommands-HSGLDPDQ.js → agentListCommands-IQQHJSXP.js} +202 -164
- package/{agentMachineCommands-BISF6PVV.js → agentMachineCommands-NS65BEW7.js} +52 -49
- package/{agentProviderCommands-O3Q25PKU.js → agentProviderCommands-SS6M6VGY.js} +2 -2
- package/{agentPullCommand-G6U2LHMW.js → agentPullCommand-QQQZSC6S.js} +1 -1
- package/{agentRecordCommands-AOXPGYAJ.js → agentRecordCommands-4VE7CNLC.js} +103 -104
- package/{agentRunCommand-AFAIP7U7.js → agentRunCommand-2MUXHKNW.js} +109 -108
- package/{agentRunControl-VBL7UFSG.js → agentRunControl-55GL6Q3M.js} +11 -9
- package/{agentRuntimeLocal-T7BX2WGL.js → agentRuntimeLocal-5DB2P4MU.js} +51 -43
- package/{agentSlice-XJNKE3PG.js → agentSlice-5VTAFG43.js} +14 -14
- package/{appDeleteCommands-LURUSPY7.js → appDeleteCommands-EDKUPHJM.js} +52 -49
- package/{appDeployCommands-SMEW4AK2.js → appDeployCommands-JO74GW4L.js} +52 -49
- package/{appDeployStatusCommands-VYPJTBJK.js → appDeployStatusCommands-U77ZUHX7.js} +52 -49
- package/{appGetCommands-N4NI5GGJ.js → appGetCommands-QCMHBYPX.js} +52 -49
- package/{appListCommands-5C6ONN3Z.js → appListCommands-ZQJYEXI6.js} +52 -49
- package/{authCommand-4CVBDADE.js → authCommand-W4KXRZLI.js} +23 -19
- package/{authCommands-EHU2BHOX.js → authCommands-6AUYO65N.js} +10 -6
- package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-GHE3RD3V.js} +6 -6
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
- package/{chromeOpsCommands-CSDG2HYN.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
- package/{chunk-7TTMMOKH.js → chunk-247AAJRK.js} +1 -1
- package/{chunk-4X5AVCM7.js → chunk-2BSLGODA.js} +258 -23
- package/{chunk-P3IZUMIC.js → chunk-2N4UBHUU.js} +4 -4
- package/{chunk-A74QP4FI.js → chunk-2T5BHLID.js} +572 -208
- package/{chunk-H7ZYKHAZ.js → chunk-3OQFXODL.js} +102 -31
- package/{chunk-BIABIPGW.js → chunk-3ORFJP2Z.js} +1 -1
- package/{chunk-3FBAVU2Y.js → chunk-3UNAGTBW.js} +19 -84
- package/{chunk-DNZ4JJ7C.js → chunk-4F7SWSWO.js} +19 -6
- package/{chunk-2X7WFDT6.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-N2JROHD3.js → chunk-4UK6UBXF.js} +3 -3
- package/{chunk-XS5A3EKX.js → chunk-4YFC3DWW.js} +75 -1
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-E5KJOZWY.js → chunk-5GRWWUB4.js} +3 -3
- package/{chunk-HCNOO374.js → chunk-6326DRQY.js} +1 -1
- package/{chunk-RM4UMFY4.js → chunk-6MQWGA5F.js} +10 -10
- package/{chunk-TEMLHVGX.js → chunk-6MX6S6TE.js} +3 -3
- package/{chunk-6WOLPIPY.js → chunk-6RSNVJGO.js} +2 -102
- package/{chunk-Y5OWZQMJ.js → chunk-6S6CZUXK.js} +19 -19
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-FZKA3XFA.js → chunk-6XLWUNZB.js} +27 -27
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/{chunk-MYPKBJJO.js → chunk-7AWKDRXG.js} +2 -2
- package/{chunk-GDUC4VS2.js → chunk-7GTXPS3D.js} +10 -10
- package/{chunk-Z2WZAE4P.js → chunk-7HUHOCIY.js} +36 -30
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/{chunk-ULLHVDTZ.js → chunk-BH7CEVOH.js} +4 -4
- package/{chunk-A3LUWRQK.js → chunk-C4KX626C.js} +5 -5
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-DXW5WDHZ.js → chunk-CHYYSFFM.js} +6 -6
- package/{chunk-O6IPRAVV.js → chunk-CJTB3OYB.js} +2 -2
- package/{chunk-AVJDELEA.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-MM73SP4K.js → chunk-DOK7GDRU.js} +1 -1
- package/{chunk-VREG6ANQ.js → chunk-DPAIQLAL.js} +16 -16
- package/{chunk-ANJRDS6U.js → chunk-EKXPHL7M.js} +3 -3
- package/{chunk-TWTJV35S.js → chunk-ENYTIRIO.js} +3 -3
- package/{chunk-PGKA77TZ.js → chunk-ER3P6MBT.js} +170 -107
- package/{chunk-EEOOBRA7.js → chunk-F4MCAOWN.js} +2 -2
- package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
- package/{chunk-VSRISJXZ.js → chunk-GAHJLSDO.js} +1 -1
- package/{chunk-U3G7RRXJ.js → chunk-GES5GIAU.js} +8 -8
- package/{chunk-4IQVE43Z.js → chunk-HQVNO7FH.js} +22 -22
- package/{chunk-DVYAFH2Q.js → chunk-HSWEFHFS.js} +1 -1
- package/{chunk-MECDGHLK.js → chunk-IIG3TT73.js} +43 -6
- package/{chunk-YGCOJNFZ.js → chunk-IZJFTY4R.js} +3 -3
- package/{chunk-BXSMFPTG.js → chunk-J25ESVUW.js} +10 -10
- package/{chunk-CVJRVBJL.js → chunk-J2XZZXIH.js} +4 -4
- package/{chunk-3EMIEC27.js → chunk-JVJ53XCH.js} +1 -1
- package/{chunk-AH5R7BYW.js → chunk-KC2QVCI7.js} +6 -6
- package/{chunk-MYOSN6BT.js → chunk-KF2DWSAH.js} +34 -13
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-PRMEU7BT.js → chunk-KLD7K5FD.js} +7 -7
- package/{chunk-7AJRJGSQ.js → chunk-KMW5CRRM.js} +801 -381
- package/{chunk-Y2MF4DCJ.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-RTHFJZ6M.js → chunk-LMFMV5UC.js} +2 -2
- package/{chunk-2574ANSV.js → chunk-LZOOUQAZ.js} +4 -4
- package/{chunk-HOM6LTEW.js → chunk-M5EA44QU.js} +6 -6
- package/{chunk-IUMS6F53.js → chunk-MEDPR36J.js} +9 -5
- package/{chunk-6D25V6CB.js → chunk-MFXJY44K.js} +4 -4
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-CBUZ6DKA.js → chunk-N6EN3HK3.js} +1 -1
- package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
- package/{chunk-B7DE5XJW.js → chunk-ODGSLWLO.js} +249 -66
- package/{chunk-S2MHR4PU.js → chunk-OGZE6BZG.js} +190 -118
- package/{chunk-CD3RU7XL.js → chunk-OJRTTERA.js} +62 -2
- package/{chunk-GXXY2NL3.js → chunk-OKPC4QNX.js} +37 -2
- package/{chunk-5QZSEQSK.js → chunk-ONFFUQYM.js} +1 -1
- package/{chunk-BGGAY6OK.js → chunk-P244EH4W.js} +3 -3
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-UFC4J7OY.js → chunk-PK7VT4ZU.js} +3 -3
- package/{chunk-4FIO2S7Z.js → chunk-QLUYDJST.js} +1 -1
- package/{chunk-AEQMKYZN.js → chunk-QUJKDFZW.js} +7 -7
- package/{chunk-G22P367E.js → chunk-QXUVCIPB.js} +62 -18
- package/{chunk-IJTXNLQE.js → chunk-QYNABNNQ.js} +6 -6
- package/{chunk-TRHJ4NJB.js → chunk-RGUWOMXU.js} +626 -237
- package/{chunk-L32W3PRP.js → chunk-RH44TIHX.js} +165 -16
- package/{chunk-EBKHA63G.js → chunk-RIMFTQMC.js} +178 -46
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-BGGV6B5O.js → chunk-SBRJOYND.js} +280 -139
- package/{chunk-KZPEGO6D.js → chunk-SBRSXY67.js} +6 -6
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-D374I563.js → chunk-T3WSFTBS.js} +1 -1
- package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-OX6GNNVT.js → chunk-U5LOKQ2R.js} +24 -13
- package/{chunk-LYDEFPQP.js → chunk-UDT4SI37.js} +1 -1
- package/{chunk-CKZPMJNU.js → chunk-UQXOORR3.js} +5 -5
- package/{chunk-FFYE5ATM.js → chunk-UR7555FE.js} +11 -11
- package/{chunk-F3XI6WQP.js → chunk-UWOCASVL.js} +5 -5
- package/{chunk-A5EVA6HU.js → chunk-V2V5Q6DU.js} +2 -2
- package/{chunk-PROOOQZ3.js → chunk-VCU5GV42.js} +1 -1
- package/{chunk-F6YWDVIB.js → chunk-VMWY7TUA.js} +1 -1
- package/{chunk-RETQOQ4D.js → chunk-VNALJT32.js} +2 -2
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
- package/{chunk-ZEKUFJLW.js → chunk-WVOZ35E4.js} +7 -7
- package/{chunk-B5SV4H3J.js → chunk-XDNXKFWF.js} +4 -4
- package/{chunk-4Q6HQORG.js → chunk-XLN2GD6Z.js} +4 -4
- package/{chunk-HBRDSQ3M.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-6CKUO32A.js → chunk-Y22P6ASC.js} +11 -8
- package/{chunk-SRCCSTIM.js → chunk-Y3DOUQQQ.js} +4 -4
- package/{chunk-6WZVM33D.js → chunk-Y5EBOURK.js} +3 -3
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-T6VROBY7.js → chunk-YTEY27GN.js} +2 -2
- package/{chunk-5ZUOVCKT.js → chunk-YUZ2DAIH.js} +3 -1
- package/{chunk-IUTUWIKE.js → chunk-ZCVBIIUE.js} +4 -4
- package/{chunk-VM72HKW2.js → chunk-ZCZLTJEW.js} +9 -36
- package/{cliAgentConfigHelpers-U5OAVAKQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +8 -8
- package/{cliAuthorityBrokerClient-S42VMGB6.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliLocalAgentRecordReader-HVZAQCUD.js → cliLocalAgentRecordReader-FHIMCBUK.js} +52 -45
- package/{commandRegistry-TME7INFU.js → commandRegistry-OKIWAJIS.js} +101 -93
- package/{contentThunks-U6OC4R2N.js → contentThunks-VF2DCU46.js} +33 -32
- package/{cooldownCommands-U7XSRVJP.js → cooldownCommands-QL6DWGVU.js} +1 -1
- package/{createAgentAutomationAction-IP4LFN3W.js → createAgentAutomationAction-BGET7Q6K.js} +34 -33
- package/{createDialogAction-IAGQJ3LH.js → createDialogAction-XYDQZETK.js} +34 -33
- package/{createPageAction-AZ3UIFKA.js → createPageAction-74S5RO7U.js} +38 -37
- package/{db-M7FU2GNK.js → db-6NRZLEW2.js} +1 -1
- package/{dbSlice-DKKMJJYY.js → dbSlice-FI7VNDR5.js} +13 -13
- package/{deleteFile-TQSONMVU.js → deleteFile-GD62MPZW.js} +8 -8
- package/{dialogCommands-PCDRMBWG.js → dialogCommands-Y6DHZUAM.js} +56 -54
- package/{dialogNotifyCommand-O35MWMOS.js → dialogNotifyCommand-MKXL4NGL.js} +10 -10
- package/{dialogSlice-QAKYN4DE.js → dialogSlice-XAUKSWZ4.js} +32 -31
- package/{dialogUsageCommand-2SSLTXKO.js → dialogUsageCommand-BZPKR3DW.js} +5 -5
- package/{docCreateCommands-CFQFZOAD.js → docCreateCommands-PHDFOQBM.js} +51 -48
- package/{docDeleteCommands-5CPNTIIS.js → docDeleteCommands-OSHJM67Y.js} +53 -50
- package/{docReadCommands-XQILYSAJ.js → docReadCommands-E6QYCFMS.js} +51 -48
- package/{docStore-GIVRT7TQ.js → docStore-ZZT2BEBU.js} +15 -15
- package/{docUpdateCommands-VETKSUDD.js → docUpdateCommands-DHIOPK2C.js} +51 -48
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-RNRITFOP.js} +4 -4
- package/{handleSendMessageAction-HKIW4ZNO.js → handleSendMessageAction-ARUU6CNF.js} +71 -70
- package/{hostCredentialCreate-6VDJFNDO.js → hostCredentialCreate-SNQT73H4.js} +103 -104
- package/index.js +8 -8
- package/{localDialogRead-AV2VKKPG.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-BQ4F5PZV.js → localRuntimeAdapter-MHI6Y2IZ.js} +112 -111
- package/{localRuntimeAuthority-WCNA4A3G.js → localRuntimeAuthority-7DKIT7UH.js} +2 -2
- package/{localRuntimeDb-CRNIBOOM.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-K6XIGOAD.js → machineCommands-3O6Y27R4.js} +229 -321
- package/{machineWsRunDispatch-4OO7Z6UM.js → machineWsRunDispatch-5PFLR5XC.js} +101 -102
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/{mcpLocalAuthorizeCommand-ZP6ESAGE.js → mcpLocalAuthorizeCommand-BQCQ2KRJ.js} +15 -15
- package/{memberThunks-PBJPZ2JU.js → memberThunks-TU6A6OBV.js} +16 -16
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-G7AOQPRW.js → projectArchive-X2EVXU3N.js} +40 -39
- package/{providerPresetApply-OPBCAONX.js → providerPresetApply-HUWNV2NI.js} +6 -6
- package/{providerRegistry-J2HCVTHE.js → providerRegistry-7FWKDKZJ.js} +6 -6
- package/{read-JEGPITEW.js → read-QAHEQID5.js} +8 -8
- package/{readDocTool-TE3XIU4Y.js → readDocTool-KG5DP6EM.js} +1 -1
- package/{readlineWorkspace-SOW5QUGZ.js → readlineWorkspace-SO3APHVP.js} +3300 -1518
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-CX3OAH4Y.js → removeDialogAgentAction-QZCCVK2G.js} +19 -19
- package/{runAgentClientLoop-HQJPDFGQ.js → runAgentClientLoop-FLHHCOVH.js} +77 -77
- package/{runtimeDoctorCommands-GUH2YGMH.js → runtimeDoctorCommands-DN3I52C6.js} +8 -8
- package/{secretCommands-NJXFVHZU.js → secretCommands-36BCE3UE.js} +2 -2
- package/{setDialogExtraReferencesAction-CGM67EEQ.js → setDialogExtraReferencesAction-PDPTYSEW.js} +15 -15
- package/{setPrimaryDialogAgentAction-3ABWPPXR.js → setPrimaryDialogAgentAction-DOUIPR66.js} +19 -19
- package/{settingThunks-AY76OHYX.js → settingThunks-MHGGP6UE.js} +23 -23
- package/{spaceCommands-G63QGYQO.js → spaceCommands-JH7UYE3K.js} +54 -51
- package/{streamAgentChatTurn-E3XH2KFD.js → streamAgentChatTurn-VDDA2TX6.js} +118 -118
- package/{switchDialogAgentAction-G6EZRKCQ.js → switchDialogAgentAction-7USK3DAP.js} +17 -17
- package/{tableCommands-JI75ZHDI.js → tableCommands-UONBFC7L.js} +6 -6
- package/{toolApiClient-62UUPDUA.js → toolApiClient-53YMJ2G6.js} +7 -3
- package/{tools-7RSX22FT.js → tools-MIOCXKMG.js} +59 -60
- package/{tuiRestart-KAAA7TND.js → tuiRestart-ET3QISZ5.js} +10 -10
- package/{tuiSummaryLlmCaller-BVNHMWLR.js → tuiSummaryLlmCaller-MSINBP3M.js} +15 -14
- package/{updateCommands-ASK5XYPH.js → updateCommands-5OYND6EF.js} +3 -3
- package/{updateDialogTitleAction-SEWV252V.js → updateDialogTitleAction-2L4CC4YO.js} +35 -34
- package/{usageCommand-JVT5J3DC.js → usageCommand-JTKDAG6I.js} +2 -2
- package/{usageRebuildCommand-IZYYUTEW.js → usageRebuildCommand-4TFZCKXM.js} +3 -3
- package/{windowsSelfUpdate-BSDIS2J5.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
- package/{workContext-MM3P5GP5.js → workContext-Y3ADAPZU.js} +2 -1
- package/{workloadLifecycle-YIZ7KLUP.js → workloadLifecycle-ZCSQCHG3.js} +6 -6
- package/chunk-TUSTONB3.js +0 -81
- package/chunk-XBAEM4RI.js +0 -272
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
- /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
listRemotePublicAgents,
|
|
8
8
|
normalizeListedAgent,
|
|
9
9
|
parseAgentListArgs
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EKXPHL7M.js";
|
|
11
11
|
import {
|
|
12
12
|
refreshSubscriptionQuotas
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P27E22MA.js";
|
|
14
14
|
import {
|
|
15
15
|
getReadableCliDb
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DLT2DN4M.js";
|
|
17
17
|
import {
|
|
18
18
|
applyCredentialAvailability,
|
|
19
19
|
clearCredentialAvailabilityIfMarkedAt,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
resolvePaginationArgs,
|
|
30
30
|
summarizeCredentialGroups,
|
|
31
31
|
toDiscoverySafeAgentSummary
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WVOZ35E4.js";
|
|
33
33
|
import "./chunk-AMWMV56B.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSpaceLookup,
|
|
@@ -37,41 +37,34 @@ import {
|
|
|
37
37
|
} from "./chunk-ID4G2MAR.js";
|
|
38
38
|
import {
|
|
39
39
|
readLiveDbRecordAfterTombstoneMerge
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VMWY7TUA.js";
|
|
41
41
|
import {
|
|
42
42
|
queryUserRecords,
|
|
43
43
|
readDbRecord
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-J25ESVUW.js";
|
|
45
|
+
import "./chunk-YUZ2DAIH.js";
|
|
46
|
+
import {
|
|
47
|
+
listRecentRunRecords
|
|
48
|
+
} from "./chunk-IIG3TT73.js";
|
|
49
|
+
import "./chunk-S25VJYXV.js";
|
|
46
50
|
import "./chunk-UEILX4EV.js";
|
|
47
51
|
import "./chunk-GBWGPTA7.js";
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
} from "./chunk-MECDGHLK.js";
|
|
51
|
-
import "./chunk-2X7WFDT6.js";
|
|
52
|
-
import "./chunk-OOJNQK6V.js";
|
|
53
|
-
import "./chunk-BV3FLP2L.js";
|
|
54
|
-
import "./chunk-PROOOQZ3.js";
|
|
55
|
-
import "./chunk-BR3GT6MR.js";
|
|
56
|
-
import "./chunk-TRHJ4NJB.js";
|
|
57
|
-
import "./chunk-ZNFJWEN4.js";
|
|
52
|
+
import "./chunk-VCU5GV42.js";
|
|
53
|
+
import "./chunk-RGUWOMXU.js";
|
|
58
54
|
import "./chunk-BEM6LPD2.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-ZNFJWEN4.js";
|
|
56
|
+
import "./chunk-3OQFXODL.js";
|
|
57
|
+
import "./chunk-ANUP75N2.js";
|
|
61
58
|
import "./chunk-AL3TYDIF.js";
|
|
62
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-M5EA44QU.js";
|
|
63
60
|
import "./chunk-HNUWUO75.js";
|
|
64
61
|
import "./chunk-CHOZJMJS.js";
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-BYXBJQAS.js";
|
|
68
|
-
import "./chunk-BGGAY6OK.js";
|
|
69
|
-
import "./chunk-5QZSEQSK.js";
|
|
62
|
+
import "./chunk-SBRSXY67.js";
|
|
63
|
+
import "./chunk-ONFFUQYM.js";
|
|
70
64
|
import "./chunk-56GBUMO5.js";
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-G22P367E.js";
|
|
65
|
+
import "./chunk-ER3P6MBT.js";
|
|
66
|
+
import "./chunk-QXUVCIPB.js";
|
|
67
|
+
import "./chunk-FDZ2GBWO.js";
|
|
75
68
|
import {
|
|
76
69
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
77
70
|
formatQuotaSummary,
|
|
@@ -81,46 +74,55 @@ import {
|
|
|
81
74
|
resolveCredentialKeyWithFallback,
|
|
82
75
|
shouldClearCooldownFromQuota
|
|
83
76
|
} from "./chunk-QJTZ76CP.js";
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-F4MCAOWN.js";
|
|
78
|
+
import "./chunk-X4O7FJF5.js";
|
|
79
|
+
import "./chunk-DMPZMYH4.js";
|
|
80
|
+
import "./chunk-BYXBJQAS.js";
|
|
81
|
+
import "./chunk-P244EH4W.js";
|
|
86
82
|
import "./chunk-TLE77UJ5.js";
|
|
87
|
-
import "./chunk-TWTJV35S.js";
|
|
88
83
|
import "./chunk-WFGNWWJI.js";
|
|
89
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-ENYTIRIO.js";
|
|
85
|
+
import "./chunk-DOK7GDRU.js";
|
|
90
86
|
import "./chunk-2MBTWINN.js";
|
|
91
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-4F7SWSWO.js";
|
|
92
88
|
import "./chunk-5ZUL4CUO.js";
|
|
93
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-RH44TIHX.js";
|
|
94
90
|
import "./chunk-H57T64RA.js";
|
|
95
91
|
import "./chunk-UKZX3NHN.js";
|
|
92
|
+
import "./chunk-SR4FE5VD.js";
|
|
96
93
|
import "./chunk-5MMAK75Q.js";
|
|
97
94
|
import "./chunk-USGHJSGO.js";
|
|
98
95
|
import "./chunk-OQHIVPG4.js";
|
|
99
96
|
import "./chunk-KX6YBIHG.js";
|
|
100
|
-
import "./chunk-
|
|
101
|
-
import "./chunk-7DPNBQSV.js";
|
|
102
|
-
import "./chunk-OW765XBU.js";
|
|
103
|
-
import "./chunk-VMJVAJ6W.js";
|
|
97
|
+
import "./chunk-TB5KTLNB.js";
|
|
104
98
|
import "./chunk-EWQ3HGNZ.js";
|
|
105
99
|
import "./chunk-PSCNXBYA.js";
|
|
100
|
+
import "./chunk-DWLEOOGR.js";
|
|
101
|
+
import "./chunk-OW765XBU.js";
|
|
102
|
+
import "./chunk-7DPNBQSV.js";
|
|
103
|
+
import "./chunk-5HUO7SEX.js";
|
|
104
|
+
import "./chunk-YGDYYFRX.js";
|
|
105
|
+
import "./chunk-2SXN7LAY.js";
|
|
106
106
|
import "./chunk-G7Y4GXTY.js";
|
|
107
107
|
import "./chunk-6UBGXX2W.js";
|
|
108
|
+
import "./chunk-BV3FLP2L.js";
|
|
108
109
|
import "./chunk-4ZCTKB27.js";
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import "./chunk-W6RFEDN4.js";
|
|
110
|
+
import "./chunk-RIMFTQMC.js";
|
|
111
|
+
import "./chunk-AETZ7AD6.js";
|
|
112
112
|
import "./chunk-ZVOL2MAJ.js";
|
|
113
|
-
import "./chunk-
|
|
114
|
-
import "./chunk-M2EJHDJP.js";
|
|
113
|
+
import "./chunk-KHCLMKZZ.js";
|
|
115
114
|
import "./chunk-SYTHYBMI.js";
|
|
116
115
|
import "./chunk-OJKUU3LP.js";
|
|
117
116
|
import "./chunk-YZMNK53S.js";
|
|
117
|
+
import "./chunk-LZOOUQAZ.js";
|
|
118
|
+
import "./chunk-BR3GT6MR.js";
|
|
119
|
+
import "./chunk-NEG5LYK5.js";
|
|
120
|
+
import "./chunk-4FE3IWRE.js";
|
|
121
|
+
import "./chunk-YLAHYLDQ.js";
|
|
122
|
+
import "./chunk-WRKMXMU7.js";
|
|
123
|
+
import "./chunk-M2EJHDJP.js";
|
|
118
124
|
import "./chunk-I42VC5KR.js";
|
|
119
125
|
import "./chunk-U6VC4MU4.js";
|
|
120
|
-
import "./chunk-5HUO7SEX.js";
|
|
121
|
-
import "./chunk-YGDYYFRX.js";
|
|
122
|
-
import "./chunk-2SXN7LAY.js";
|
|
123
|
-
import "./chunk-KHCLMKZZ.js";
|
|
124
126
|
import {
|
|
125
127
|
parseUserIdFromAuthToken,
|
|
126
128
|
readOption,
|
|
@@ -133,23 +135,23 @@ import "./chunk-LCBAMY2M.js";
|
|
|
133
135
|
import "./chunk-4O22PGNQ.js";
|
|
134
136
|
import {
|
|
135
137
|
t
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-RTHFJZ6M.js";
|
|
140
|
-
import "./chunk-HBRDSQ3M.js";
|
|
138
|
+
} from "./chunk-OGZE6BZG.js";
|
|
139
|
+
import "./chunk-776CXKMX.js";
|
|
140
|
+
import "./chunk-Y22P6ASC.js";
|
|
141
141
|
import {
|
|
142
142
|
toErrorMessage
|
|
143
143
|
} from "./chunk-HNMXYYJR.js";
|
|
144
|
+
import "./chunk-LMFMV5UC.js";
|
|
145
|
+
import "./chunk-XNEDFWT4.js";
|
|
144
146
|
import "./chunk-3EUW3WEO.js";
|
|
145
|
-
import "./chunk-
|
|
147
|
+
import "./chunk-WWC7I6TA.js";
|
|
148
|
+
import "./chunk-OJRTTERA.js";
|
|
146
149
|
import "./chunk-JRTNUU5Z.js";
|
|
147
150
|
import "./chunk-KUG52IAP.js";
|
|
148
|
-
import "./chunk-WWC7I6TA.js";
|
|
149
151
|
import "./chunk-G3SUCT4W.js";
|
|
150
152
|
import "./chunk-4SN6J65J.js";
|
|
151
153
|
import "./chunk-CF7PE763.js";
|
|
152
|
-
import "./chunk-
|
|
154
|
+
import "./chunk-U4VSBDO5.js";
|
|
153
155
|
import "./chunk-QSJ3HFEF.js";
|
|
154
156
|
import "./chunk-U67V476Y.js";
|
|
155
157
|
|
|
@@ -160,7 +162,7 @@ var createCliDispatchSampleDb = (db, userId, env) => {
|
|
|
160
162
|
iterator: (options) => db.iterator(options),
|
|
161
163
|
isDispatchRun: async (dialogId, entryPath) => {
|
|
162
164
|
if (entryPath === "cli-local") {
|
|
163
|
-
localDialogs ??= new Set(
|
|
165
|
+
localDialogs ??= new Set(listRecentRunRecords({ env, limit: 400 }).filter(
|
|
164
166
|
(run) => typeof run.dialogId === "string" && isLocalDispatchSpeedSource(run, run.dialogId, userId)
|
|
165
167
|
).map((run) => run.dialogId));
|
|
166
168
|
return localDialogs.has(dialogId);
|
|
@@ -212,43 +214,12 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
212
214
|
output.write("[nolo] agent list could not read userId from AUTH_TOKEN.\n");
|
|
213
215
|
return 1;
|
|
214
216
|
}
|
|
217
|
+
const forceQuotaRefresh = args.includes("--refresh-quota");
|
|
215
218
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
216
219
|
const fallbackFetchImpl = deps.fallbackFetchImpl;
|
|
217
220
|
const serverUrl = resolveServerUrl(args, env);
|
|
218
221
|
const serverUrls = resolveServerCandidates(args, env, serverUrl);
|
|
219
222
|
try {
|
|
220
|
-
let agents;
|
|
221
|
-
let source;
|
|
222
|
-
let serverFailures = [];
|
|
223
|
-
try {
|
|
224
|
-
const remoteResult = await listRemoteAgentsAcrossServers({
|
|
225
|
-
authToken,
|
|
226
|
-
fallbackFetchImpl,
|
|
227
|
-
fetchImpl,
|
|
228
|
-
serverUrls,
|
|
229
|
-
userId
|
|
230
|
-
});
|
|
231
|
-
agents = remoteResult.agents;
|
|
232
|
-
serverFailures = remoteResult.failures;
|
|
233
|
-
source = "global-cache";
|
|
234
|
-
} catch {
|
|
235
|
-
try {
|
|
236
|
-
const db = deps.db ?? await getReadableCliDb(output);
|
|
237
|
-
agents = await listLocalCachedAgents({ db, userId });
|
|
238
|
-
source = "local-cache";
|
|
239
|
-
} catch {
|
|
240
|
-
agents = await listRemoteAgents({
|
|
241
|
-
authToken,
|
|
242
|
-
fallbackFetchImpl,
|
|
243
|
-
fetchImpl,
|
|
244
|
-
serverUrl,
|
|
245
|
-
userId,
|
|
246
|
-
queryUserRecords,
|
|
247
|
-
readDbRecord
|
|
248
|
-
});
|
|
249
|
-
source = "remote-cache";
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
223
|
const pagination = resolvePaginationArgs({ limit, offset });
|
|
253
224
|
const hasQuery = Boolean(query && typeof query === "string" && query.trim());
|
|
254
225
|
const MAX_UPSTREAM_CEILING = 2e3;
|
|
@@ -256,16 +227,75 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
256
227
|
MAX_UPSTREAM_CEILING,
|
|
257
228
|
hasQuery ? MAX_UPSTREAM_CEILING : Math.max(500, (pagination.offset ?? 0) + (pagination.limit ?? 100))
|
|
258
229
|
);
|
|
230
|
+
const ownAgentsPromise = (async () => {
|
|
231
|
+
try {
|
|
232
|
+
const remoteResult = await listRemoteAgentsAcrossServers({
|
|
233
|
+
authToken,
|
|
234
|
+
fallbackFetchImpl,
|
|
235
|
+
fetchImpl,
|
|
236
|
+
serverUrls,
|
|
237
|
+
userId
|
|
238
|
+
});
|
|
239
|
+
return {
|
|
240
|
+
agents: remoteResult.agents,
|
|
241
|
+
serverFailures: remoteResult.failures,
|
|
242
|
+
source: "global-cache"
|
|
243
|
+
};
|
|
244
|
+
} catch {
|
|
245
|
+
try {
|
|
246
|
+
const db = deps.db ?? await getReadableCliDb(output);
|
|
247
|
+
return {
|
|
248
|
+
agents: await listLocalCachedAgents({ db, userId }),
|
|
249
|
+
serverFailures: [],
|
|
250
|
+
source: "local-cache"
|
|
251
|
+
};
|
|
252
|
+
} catch {
|
|
253
|
+
return {
|
|
254
|
+
agents: await listRemoteAgents({
|
|
255
|
+
authToken,
|
|
256
|
+
fallbackFetchImpl,
|
|
257
|
+
fetchImpl,
|
|
258
|
+
serverUrl,
|
|
259
|
+
userId,
|
|
260
|
+
queryUserRecords,
|
|
261
|
+
readDbRecord
|
|
262
|
+
}),
|
|
263
|
+
serverFailures: [],
|
|
264
|
+
source: "remote-cache"
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
})();
|
|
269
|
+
const publicResultsPromise = scope !== "preferred" ? Promise.all(serverUrls.map((url) => listRemotePublicAgents({
|
|
270
|
+
authToken,
|
|
271
|
+
fetchImpl,
|
|
272
|
+
serverUrl: url,
|
|
273
|
+
limit: upstreamLimit,
|
|
274
|
+
query: hasQuery ? query : void 0
|
|
275
|
+
}))) : void 0;
|
|
276
|
+
const spaceLookup = spaceInput ? buildSpaceLookup(spaceInput) : null;
|
|
277
|
+
const spaceReadPromise = spaceLookup ? readLiveDbRecordAfterTombstoneMerge({
|
|
278
|
+
authToken,
|
|
279
|
+
dbKey: spaceLookup.spaceKey,
|
|
280
|
+
fallbackFetchImpl,
|
|
281
|
+
fetchImpl,
|
|
282
|
+
serverUrls
|
|
283
|
+
}) : void 0;
|
|
284
|
+
const favoritesPromise = wantSafe && !idsOnly ? listFavoriteAgentIdsAcrossServers({
|
|
285
|
+
authToken,
|
|
286
|
+
fetchImpl,
|
|
287
|
+
serverUrls
|
|
288
|
+
}).catch(() => ({})) : void 0;
|
|
289
|
+
const [ownResult, publicResults, spaceRead] = await Promise.all([
|
|
290
|
+
ownAgentsPromise,
|
|
291
|
+
publicResultsPromise ?? Promise.resolve(void 0),
|
|
292
|
+
spaceReadPromise ?? Promise.resolve(void 0)
|
|
293
|
+
]);
|
|
294
|
+
let { agents, source, serverFailures } = ownResult;
|
|
259
295
|
let cliUpstreamTruncated = false;
|
|
260
296
|
let cliUpstreamTotal;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
authToken,
|
|
264
|
-
fetchImpl,
|
|
265
|
-
serverUrl: url,
|
|
266
|
-
limit: upstreamLimit,
|
|
267
|
-
query: hasQuery ? query : void 0
|
|
268
|
-
})));
|
|
297
|
+
const publicCatalogAgents = /* @__PURE__ */ new Set();
|
|
298
|
+
if (publicResults) {
|
|
269
299
|
const publicAgents = publicResults.flatMap((r) => r.agents);
|
|
270
300
|
for (const r of publicResults) {
|
|
271
301
|
if (r.truncated) cliUpstreamTruncated = true;
|
|
@@ -278,32 +308,24 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
278
308
|
for (const agent of agents) {
|
|
279
309
|
if (agent.publicKey) seenPublicKeys.add(agent.publicKey);
|
|
280
310
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
];
|
|
311
|
+
const addedPublicAgents = publicAgents.filter((agent) => {
|
|
312
|
+
if (!agent.publicKey) return true;
|
|
313
|
+
if (seenPublicKeys.has(agent.publicKey)) return false;
|
|
314
|
+
seenPublicKeys.add(agent.publicKey);
|
|
315
|
+
return true;
|
|
316
|
+
});
|
|
317
|
+
for (const agent of addedPublicAgents) publicCatalogAgents.add(agent);
|
|
318
|
+
agents = [...agents, ...addedPublicAgents];
|
|
290
319
|
} else {
|
|
320
|
+
for (const agent of publicAgents) publicCatalogAgents.add(agent);
|
|
291
321
|
agents = publicAgents;
|
|
292
322
|
}
|
|
293
323
|
}
|
|
294
324
|
agents = agents.filter((agent) => agent.privateKey.startsWith("agent-"));
|
|
295
325
|
let resolvedSpaceId = null;
|
|
296
326
|
let spaceContentKeys = null;
|
|
297
|
-
if (
|
|
298
|
-
|
|
299
|
-
resolvedSpaceId = spaceId;
|
|
300
|
-
const spaceRead = await readLiveDbRecordAfterTombstoneMerge({
|
|
301
|
-
authToken,
|
|
302
|
-
dbKey: spaceKey,
|
|
303
|
-
fallbackFetchImpl,
|
|
304
|
-
fetchImpl,
|
|
305
|
-
serverUrls
|
|
306
|
-
});
|
|
327
|
+
if (spaceLookup && spaceRead) {
|
|
328
|
+
resolvedSpaceId = spaceLookup.spaceId;
|
|
307
329
|
serverFailures = [...serverFailures, ...spaceRead.failures];
|
|
308
330
|
const spaceRecord = spaceRead.record;
|
|
309
331
|
const currentSpaceContentKeys = getSpaceContentKeys(spaceRecord);
|
|
@@ -312,9 +334,10 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
312
334
|
(agent) => currentSpaceContentKeys.has(agent.privateKey) || currentSpaceContentKeys.has(agent.publicKey) || currentSpaceContentKeys.has(agent.id)
|
|
313
335
|
);
|
|
314
336
|
}
|
|
315
|
-
|
|
337
|
+
const decorateTargets = source === "global-cache" ? agents.filter((agent) => !publicCatalogAgents.has(agent)) : [];
|
|
338
|
+
if (publicOnly && decorateTargets.length > 0) {
|
|
316
339
|
await decorateAgentsWithPublicStatusAcrossServers({
|
|
317
|
-
agents,
|
|
340
|
+
agents: decorateTargets,
|
|
318
341
|
authToken,
|
|
319
342
|
fallbackFetchImpl,
|
|
320
343
|
fetchImpl,
|
|
@@ -337,17 +360,28 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
337
360
|
const refreshCandidates = !idsOnly ? [.../* @__PURE__ */ new Set([...agentsForOutput, ...agents.filter(
|
|
338
361
|
(agent) => !agentsForOutput.includes(agent) && isAgentUnavailableNow(agent) && agent.credentialConfigured === true && (!query || !String(query).trim() || matchesAgentQuery(agent, query))
|
|
339
362
|
)])] : agentsForOutput;
|
|
363
|
+
const decoratePromise = !publicOnly && decorateTargets.length > 0 ? decorateAgentsWithPublicStatusAcrossServers({
|
|
364
|
+
agents: decorateTargets,
|
|
365
|
+
authToken,
|
|
366
|
+
fallbackFetchImpl,
|
|
367
|
+
fetchImpl,
|
|
368
|
+
serverUrls
|
|
369
|
+
}) : Promise.resolve();
|
|
340
370
|
if (!idsOnly) {
|
|
341
|
-
const fresh = await
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
371
|
+
const [, fresh] = await Promise.all([
|
|
372
|
+
decoratePromise,
|
|
373
|
+
refreshSubscriptionQuotas({
|
|
374
|
+
entries: refreshCandidates.map((agent) => ({
|
|
375
|
+
key: agent.privateKey,
|
|
376
|
+
...agent.quota ? { quota: agent.quota } : {},
|
|
377
|
+
probeable: agent.credentialConfigured === true
|
|
378
|
+
})),
|
|
379
|
+
forceRefresh: forceQuotaRefresh,
|
|
380
|
+
env,
|
|
381
|
+
cliArgs: args,
|
|
382
|
+
fetchImpl
|
|
383
|
+
})
|
|
384
|
+
]);
|
|
351
385
|
const now = Date.now();
|
|
352
386
|
for (const agent of refreshCandidates) {
|
|
353
387
|
const quota = fresh[agent.privateKey];
|
|
@@ -389,6 +423,8 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
389
423
|
}
|
|
390
424
|
}
|
|
391
425
|
unavailableCount = agents.filter((agent) => isAgentUnavailableNow(agent)).length;
|
|
426
|
+
} else {
|
|
427
|
+
await decoratePromise;
|
|
392
428
|
}
|
|
393
429
|
const totalCount = agentsForOutput.length;
|
|
394
430
|
const pagedAgents = typeof pagination.limit === "number" || typeof pagination.offset === "number" ? agentsForOutput.slice(
|
|
@@ -401,11 +437,7 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
401
437
|
return 0;
|
|
402
438
|
}
|
|
403
439
|
if (wantSafe) {
|
|
404
|
-
const favoritesMap = await
|
|
405
|
-
authToken,
|
|
406
|
-
fetchImpl,
|
|
407
|
-
serverUrls
|
|
408
|
-
}).catch(() => ({}));
|
|
440
|
+
const favoritesMap = await (favoritesPromise ?? Promise.resolve({}));
|
|
409
441
|
const existingKeys = /* @__PURE__ */ new Set();
|
|
410
442
|
for (const agent of agents) {
|
|
411
443
|
existingKeys.add(agent.privateKey);
|
|
@@ -414,40 +446,46 @@ async function runAgentListCommand(args, deps = {}) {
|
|
|
414
446
|
}
|
|
415
447
|
const extraFavoriteRecords = [];
|
|
416
448
|
const hydratedFavoriteAgents = [];
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
if (spaceContentKeys && !candidateKeys.some((key) => spaceContentKeys?.has(key))) {
|
|
432
|
-
continue;
|
|
449
|
+
const missingFavKeys = Object.keys(favoritesMap).filter((favKey) => !existingKeys.has(favKey));
|
|
450
|
+
const favReads = await Promise.all(
|
|
451
|
+
missingFavKeys.map(async (favKey) => {
|
|
452
|
+
try {
|
|
453
|
+
const favRead = await readLiveDbRecordAfterTombstoneMerge({
|
|
454
|
+
authToken,
|
|
455
|
+
dbKey: favKey,
|
|
456
|
+
fallbackFetchImpl,
|
|
457
|
+
fetchImpl,
|
|
458
|
+
serverUrls
|
|
459
|
+
});
|
|
460
|
+
return { favKey, record: favRead.record };
|
|
461
|
+
} catch {
|
|
462
|
+
return { favKey, record: null };
|
|
433
463
|
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
464
|
+
})
|
|
465
|
+
);
|
|
466
|
+
for (const { favKey, record } of favReads) {
|
|
467
|
+
if (existingKeys.has(favKey)) continue;
|
|
468
|
+
if (!record || record.type && record.type !== "agent") continue;
|
|
469
|
+
const norm = normalizeListedAgent(record);
|
|
470
|
+
const candidateKeys = [record.dbKey, record.publicKey, record.id].filter((key) => typeof key === "string" && key.length > 0);
|
|
471
|
+
if (spaceContentKeys && !candidateKeys.some((key) => spaceContentKeys?.has(key))) {
|
|
472
|
+
continue;
|
|
473
|
+
}
|
|
474
|
+
if (norm) {
|
|
475
|
+
if (!favKey.startsWith("agent-pub-")) {
|
|
476
|
+
norm.verifiedAgentKey = favKey;
|
|
477
|
+
if (typeof record.userId === "string" && record.userId) {
|
|
478
|
+
norm.ownerId = record.userId;
|
|
440
479
|
}
|
|
441
|
-
agents.push(norm);
|
|
442
|
-
hydratedFavoriteAgents.push(norm);
|
|
443
|
-
existingKeys.add(norm.privateKey);
|
|
444
|
-
existingKeys.add(norm.publicKey);
|
|
445
|
-
existingKeys.add(norm.id);
|
|
446
|
-
} else {
|
|
447
|
-
extraFavoriteRecords.push(record);
|
|
448
|
-
for (const key of candidateKeys) existingKeys.add(key);
|
|
449
480
|
}
|
|
450
|
-
|
|
481
|
+
agents.push(norm);
|
|
482
|
+
hydratedFavoriteAgents.push(norm);
|
|
483
|
+
existingKeys.add(norm.privateKey);
|
|
484
|
+
existingKeys.add(norm.publicKey);
|
|
485
|
+
existingKeys.add(norm.id);
|
|
486
|
+
} else {
|
|
487
|
+
extraFavoriteRecords.push(record);
|
|
488
|
+
for (const key of candidateKeys) existingKeys.add(key);
|
|
451
489
|
}
|
|
452
490
|
}
|
|
453
491
|
if (source === "global-cache" && hydratedFavoriteAgents.length > 0) {
|