nolo-cli 0.228.0-alpha.2 → 0.228.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/README.md +3 -5
- package/{_executeModel-VYCHHZVT.js → _executeModel-GIFVXKDT.js} +88 -83
- package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
- package/{action-GDZDXPMB.js → action-WZTKEF5H.js} +9 -6
- package/{addContentAction-7RO4AMRI.js → addContentAction-MLI6GOBV.js} +14 -13
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-ARGQM22H.js} +17 -16
- package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-UF7XVELS.js} +118 -111
- package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-SFHRPQYC.js} +118 -107
- package/{agentListCommands-4WLG32IW.js → agentListCommands-IXKBP3W5.js} +208 -177
- package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-7NX6PWQ6.js} +55 -48
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-4EQZYHU4.js} +1 -1
- package/agentRecordCommands-IUNX6XD6.js +188 -0
- package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-LCR4XADM.js} +125 -111
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-RN2P6AOD.js} +11 -9
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-LVXPQ7QA.js} +56 -43
- package/{agentSlice-UG76KEBH.js → agentSlice-ZGMOH6TE.js} +15 -14
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-BESCJOQM.js} +55 -48
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-LPTR6IOX.js} +55 -48
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-BZ7KZ5RD.js} +55 -48
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-EDWGJV4S.js} +55 -48
- package/{appListCommands-CUCPRUXW.js → appListCommands-OPRWYPM6.js} +55 -48
- package/{authCommand-OZ2KTP4Z.js → authCommand-3C3RN4OU.js} +25 -19
- package/{authCommands-55OGQGCR.js → authCommands-ZMVEDCQD.js} +12 -6
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-VRCMQ77Q.js} +7 -7
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-NZITLHWO.js} +3 -3
- package/{chunk-VQ5N5GSV.js → chunk-2BKNICGK.js} +4 -4
- package/{chunk-QYB23WUH.js → chunk-2FK2KZSL.js} +1 -1
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-3VZLEKV2.js → chunk-3DJJ4CFG.js} +11 -11
- package/{chunk-TSPMLCWI.js → chunk-4IQN6FWY.js} +5 -5
- package/{chunk-XAG3FWBE.js → chunk-4OXPN3WC.js} +6 -6
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
- package/chunk-6ASGEP5D.js +21 -0
- package/{chunk-MJI3UAXN.js → chunk-6CXQ3YNJ.js} +40 -36
- package/{chunk-G7IUT2V3.js → chunk-6MTVACLN.js} +365 -64
- package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
- package/{chunk-XSW4EXQV.js → chunk-6TVYUQRM.js} +55 -18
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-7Z6EW7AH.js → chunk-6XVPMGXK.js} +97 -11
- package/{chunk-ALAES342.js → chunk-73PZD7JZ.js} +9 -5
- package/{chunk-TCZ2VJZQ.js → chunk-7UVVLYKC.js} +9 -9
- package/{chunk-S6FDXXZV.js → chunk-ADOOL3PG.js} +2 -2
- package/{chunk-OWKNSIXL.js → chunk-AEZBAFC6.js} +334 -77
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/{chunk-RG2DGNL6.js → chunk-ARFCL53U.js} +5 -5
- package/{chunk-SRCCSTIM.js → chunk-AS6L5KSD.js} +4 -4
- package/{chunk-WFDNADFX.js → chunk-BAH3BAUZ.js} +8 -8
- package/{chunk-N5Z2V73W.js → chunk-BFKJ2RS3.js} +1 -1
- package/{chunk-F6Z6ZCUV.js → chunk-BVEDT6DM.js} +3 -3
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-CD3RU7XL.js → chunk-CD2DK5JA.js} +120 -14
- package/{chunk-BP5ZJ6B4.js → chunk-CD64YXRB.js} +1 -1
- package/{chunk-VP3BINY7.js → chunk-CIGCTSBF.js} +31 -1
- package/{chunk-TQEKUOTI.js → chunk-CIUZXD5D.js} +12 -12
- package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
- package/{chunk-VMJVAJ6W.js → chunk-CTIEJRTP.js} +28 -4
- package/{chunk-7JGMNKKG.js → chunk-CTWCZKNS.js} +29 -8
- package/{chunk-YFLVRVYK.js → chunk-D25ONVOH.js} +1 -1
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-262R3XNN.js → chunk-E5RYFR7E.js} +334 -103
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/{chunk-HSSBDZLD.js → chunk-EDT65EUE.js} +6 -6
- package/{chunk-YVFH2MFB.js → chunk-EQZQUQ33.js} +7 -7
- package/{chunk-HBRDSQ3M.js → chunk-ESN4WNWU.js} +3 -2
- package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
- package/{chunk-547ENH5T.js → chunk-FFFKAOJN.js} +4 -4
- package/{chunk-5ZUOVCKT.js → chunk-FGHEF6WI.js} +3 -1
- package/{chunk-GAYNXB6T.js → chunk-FTWAOKFU.js} +756 -333
- package/chunk-GAHJLSDO.js +107 -0
- package/{chunk-2X7WFDT6.js → chunk-GX6DITLQ.js} +1 -1
- package/{chunk-HXB4VDGK.js → chunk-HCCQEMTK.js} +28 -28
- package/{chunk-CMMI3DAT.js → chunk-HZDK56EK.js} +33 -26
- package/{chunk-OTKSESZR.js → chunk-IIOSZAJX.js} +4 -4
- package/chunk-IIRJ4P4I.js +24 -0
- package/{chunk-OJ45MEEI.js → chunk-IJZC2KIJ.js} +1 -1
- package/{chunk-MNEZUL5S.js → chunk-ITBX27W6.js} +92 -31
- package/{chunk-LYD6C7OU.js → chunk-J2VIGDJN.js} +6 -6
- package/{chunk-M3OZRQNH.js → chunk-JEWMQR6J.js} +1 -1
- package/{chunk-6QHKRARD.js → chunk-JFRJEPFI.js} +29 -5
- package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
- package/{chunk-EGHP7KOY.js → chunk-JU7VN4LF.js} +38 -29
- package/{chunk-RTHFJZ6M.js → chunk-K26XPZRB.js} +2 -2
- package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
- package/chunk-KK3FCYZM.js +647 -0
- package/chunk-KLAMJNKQ.js +33394 -0
- package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
- package/chunk-KXOPLLFP.js +190 -0
- package/{chunk-MZG5CETE.js → chunk-KZ5OD2MO.js} +4 -4
- package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
- package/chunk-LHCGKAFO.js +739 -0
- package/{chunk-HF7BLF3F.js → chunk-LMGFVH65.js} +107 -104
- package/{chunk-QRGDJA4B.js → chunk-LTVEOOZL.js} +19 -6
- package/{chunk-L32W3PRP.js → chunk-MAA42MMV.js} +233 -17
- package/{chunk-ATEKLSLR.js → chunk-MTM4LRVG.js} +14 -9
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-U2HBB7RS.js → chunk-MYYNZG2M.js} +132 -32
- package/{chunk-DBUR22G5.js → chunk-MZVCFV3T.js} +19 -15
- package/{chunk-WCFFRBL5.js → chunk-N74XL3NI.js} +9 -9
- package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
- package/{chunk-RBPUNSG5.js → chunk-OAZP4TSA.js} +18 -108
- package/{chunk-4QYJPWHH.js → chunk-ODBYGVO2.js} +232 -10
- package/{chunk-M4SFKP5L.js → chunk-OHUYN3YU.js} +3 -3
- package/{chunk-HYLRQDEE.js → chunk-OLGFIQN2.js} +6 -6
- package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-BIWI5M4E.js → chunk-PBPXXMWZ.js} +1 -1
- package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-XFXFPUO7.js → chunk-QMNVV3YM.js} +10 -37
- package/{chunk-CNMY2XM6.js → chunk-R5NRFXGD.js} +5 -5
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-4WVJLODK.js → chunk-RHBD22LV.js} +9 -4
- package/{chunk-45CAVC35.js → chunk-RMWDKLBE.js} +1489 -286
- package/{chunk-ZEVQHCLM.js → chunk-RR3MB26M.js} +2 -2
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-DLXMMTGM.js → chunk-SCMYAGQE.js} +1067 -705
- package/{chunk-YKY4OVOX.js → chunk-SPU3L3OR.js} +17 -170
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-DUUDXSLX.js → chunk-SX6AWTNK.js} +28 -4
- package/{chunk-ZH3KXFHS.js → chunk-TMRJGSK2.js} +1 -1
- package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
- package/{chunk-3U44JB3O.js → chunk-UF6J7NXV.js} +1 -1
- package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UOUMPHS5.js +103 -0
- package/{chunk-HHFGE2WF.js → chunk-UPOW5HTG.js} +5 -5
- package/{chunk-DEA37IUY.js → chunk-V4IYI3SB.js} +2 -2
- package/{chunk-XTJKU3Z4.js → chunk-VKCPKCSS.js} +66 -92
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/{chunk-OBIC6EG7.js → chunk-VUHKG4KS.js} +3 -3
- package/{chunk-EEOOBRA7.js → chunk-W3HSD32M.js} +13 -6
- package/{chunk-P2ZLUIW2.js → chunk-W6T4FNZP.js} +351 -26
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-R6Z5S5GA.js → chunk-WQDTSK5U.js} +51 -14
- package/{chunk-X3E6EHJW.js → chunk-X22AUZKL.js} +149 -165
- package/{chunk-4ZGPHFLE.js → chunk-X3OZ655T.js} +2 -2
- package/{chunk-RRDRQOEC.js → chunk-XCA4WHX5.js} +95 -77
- package/{chunk-TI2EPRHE.js → chunk-XJSEST7D.js} +3 -3
- package/{chunk-3QIYD3VM.js → chunk-XNTZD4AE.js} +870 -1068
- package/chunk-XSRSAU3O.js +133 -0
- package/{chunk-7FEP5USX.js → chunk-Y4NPF2UN.js} +3 -3
- package/{chunk-FJSNBZXR.js → chunk-YDRRGVT5.js} +1 -1
- package/{chunk-7BCG67EI.js → chunk-YFW4H6DL.js} +405 -338
- package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
- package/{chunk-4N6G2CKP.js → chunk-YHNUDTU4.js} +49 -3
- package/chunk-YJPK35HB.js +175 -0
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-FPBJM2BW.js → chunk-Z7KE4K3H.js} +195 -126
- package/{chunk-DGYCDA6W.js → chunk-ZM5AZTQG.js} +20 -13
- package/{chunk-CBUZ6DKA.js → chunk-ZQ6K57FJ.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-37ZNEY5Y.js} +9 -9
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-MCQVRWBR.js} +58 -47
- package/{commandRegistry-FVYPE2IN.js → commandRegistry-NTH5IAN5.js} +104 -92
- package/{contentThunks-GNFPG32S.js → contentThunks-SPXTX5U2.js} +38 -36
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-TIFCHCUN.js} +1 -1
- package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-KUQKCOXB.js} +38 -36
- package/{createDialogAction-EVTOPY7A.js → createDialogAction-HJN5U3XS.js} +39 -37
- package/{createPageAction-2UYF2IDZ.js → createPageAction-ZAHRDOAU.js} +43 -41
- package/{db-M7FU2GNK.js → db-CMUTP3W5.js} +2 -2
- package/{dbSlice-XRUZOGSU.js → dbSlice-656PMWR2.js} +13 -12
- package/{deleteFile-6URDHYRB.js → deleteFile-ZCQESEEQ.js} +10 -7
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-KZTZLWPZ.js} +60 -54
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-PST75COP.js} +11 -11
- package/{dialogSlice-5EQ2A6LY.js → dialogSlice-BXIERQHO.js} +39 -37
- package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-6RW2FY6K.js} +5 -5
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-26HJ5NAY.js} +54 -47
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-UAOHH5XK.js} +56 -49
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-4ADG7YE6.js} +54 -47
- package/{docStore-OKKIKLT3.js → docStore-FZ75HWP2.js} +15 -14
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-OGFJZENF.js} +54 -47
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-FCHYVRJU.js} +4 -4
- package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-KP6GGBFY.js} +82 -78
- package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-23TX56G7.js} +117 -105
- package/index.js +8 -8
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-CIOTQM5T.js} +1 -1
- package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-MTUWOYPN.js} +124 -111
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-TYHQCTZN.js} +5 -3
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
- package/{machineCommands-HSQHDHOT.js → machineCommands-4WJUJQHW.js} +241 -321
- package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-V3U4JM67.js} +113 -102
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-TI656UWC.js +106 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-JFYC4Z5L.js} +20 -15
- package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-FQO654Z3.js → projectArchive-NU2Z5HOR.js} +45 -43
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-4H7YP5D7.js} +6 -6
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-F3UPOTIY.js} +6 -6
- package/{read-TYMBGEXO.js → read-BRZHXUJ6.js} +9 -8
- package/{readDocTool-SKQVHBLO.js → readDocTool-N7RVFQEE.js} +1 -1
- package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-T56MRMS5.js} +6423 -3669
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-J7XU7OUX.js} +19 -18
- package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-O2GRCGRZ.js} +96 -76
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-RDRJXMXC.js} +8 -8
- package/{secretCommands-KZWBZIYS.js → secretCommands-2FEMRUFM.js} +3 -3
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +16 -15
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-742H5S6T.js} +19 -18
- package/{settingThunks-ZRGWVGZD.js → settingThunks-T4FXSV6M.js} +185 -66
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-5VNWMDBE.js → spaceCommands-W5TAVFDT.js} +58 -51
- package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-OWDJMU5E.js} +234 -177
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-HLDLHRRA.js} +17 -16
- package/{tableCommands-FTAOCBTX.js → tableCommands-44GC4N6J.js} +8 -5
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
- package/{tools-M35PTIFB.js → tools-O7SGGVA3.js} +65 -62
- package/{tuiRestart-2IL37YIB.js → tuiRestart-EOGC2BYY.js} +10 -10
- package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-TM5BU73J.js} +16 -15
- package/{updateCommands-CPATDG6J.js → updateCommands-FBYA5WVG.js} +3 -3
- package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-EXSZGTLL.js} +40 -38
- package/{usageCommand-2BF74MKF.js → usageCommand-L4OFWXEU.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-7JR33UHS.js} +3 -3
- package/webapi-QVV65DQF.js +2487 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-VU5I4LKZ.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
- package/agentRecordCommands-IZYUVHME.js +0 -177
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-62HXNQVV.js +0 -134
- package/chunk-TUSTONB3.js +0 -81
- package/chunk-ZXF6D3I6.js +0 -359
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
compareAgentSelection,
|
|
9
9
|
resolveModelTier
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ITBX27W6.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
13
13
|
isAgentUnavailableNow,
|
|
@@ -21,23 +21,20 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
isOAuthApiKeyRef
|
|
23
23
|
} from "./chunk-UKZX3NHN.js";
|
|
24
|
-
import {
|
|
25
|
-
isOwnedAgentKey,
|
|
26
|
-
ownedAgentKey,
|
|
27
|
-
publicAgentKey
|
|
28
|
-
} from "./chunk-M2EJHDJP.js";
|
|
29
24
|
import {
|
|
30
25
|
createKey,
|
|
31
26
|
createTokenKey
|
|
32
27
|
} from "./chunk-SYTHYBMI.js";
|
|
33
28
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
isOwnedAgentKey,
|
|
30
|
+
ownedAgentKey,
|
|
31
|
+
publicAgentKey
|
|
32
|
+
} from "./chunk-M2EJHDJP.js";
|
|
36
33
|
import {
|
|
37
34
|
isAntigravityOAuthAgent,
|
|
38
35
|
isSubscriptionEndpoint,
|
|
39
36
|
isSubscriptionOAuthCredential
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CTWCZKNS.js";
|
|
41
38
|
import {
|
|
42
39
|
asTrimmedLowercaseString
|
|
43
40
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -55,7 +52,15 @@ var GPT_SOL_RE = /^(?:openai\/)?gpt-\d+(?:\.\d+)*-sol(?:-[a-z0-9]+(?:[.-][a-z0-9
|
|
|
55
52
|
var GPT_ASTRA_RE = /^(?:openai\/)?gpt-\d+(?:\.\d+)*-astra(?:-[a-z0-9]+(?:[.-][a-z0-9]+)*)?$/i;
|
|
56
53
|
var KIMI_K3_MODELS = /* @__PURE__ */ new Set([
|
|
57
54
|
"kimi-k3",
|
|
58
|
-
"moonshotai/kimi-k3"
|
|
55
|
+
"moonshotai/kimi-k3",
|
|
56
|
+
// 2026-11-18:K3 由 K3.1 Pro 接替(目录换成 kimi-k3.1-pro),旗舰档门槛保持一致 —
|
|
57
|
+
// 不因换代把 199 档位约束漏掉。
|
|
58
|
+
"kimi-k3.1-pro",
|
|
59
|
+
"moonshotai/kimi-k3.1-pro",
|
|
60
|
+
// 旧 K2.6 经 PLATFORM_MODEL_ALIASES 执行同一 K3.1 Pro 上游与计费:档位判定按
|
|
61
|
+
// 请求 id 直查,不带这一条就会出现「换个旧 id 绕过 premium 门槛」。
|
|
62
|
+
"kimi-k2.6",
|
|
63
|
+
"moonshotai/kimi-k2.6"
|
|
59
64
|
]);
|
|
60
65
|
function classifyPremiumModel(model) {
|
|
61
66
|
const normalizedModel = asTrimmedLowercaseString(model);
|
|
@@ -85,7 +90,7 @@ function isGptProModel(provider, model) {
|
|
|
85
90
|
}
|
|
86
91
|
return classifyPremiumModel(model) !== void 0;
|
|
87
92
|
}
|
|
88
|
-
var GPT_PRO_BLOCKED_MESSAGE = `GPT Pro / Kimi K3 \u7B49\u9AD8\u7EA7\u6A21\u578B\u9700\u8981\u5148\u5F00\u901A ${GPT_PRO_REQUIRED_RECHARGE_AMOUNT} \u79EF\u5206\u6863\u4F4D\u3002`;
|
|
93
|
+
var GPT_PRO_BLOCKED_MESSAGE = `GPT Pro / Kimi K3.1 Pro \u7B49\u9AD8\u7EA7\u6A21\u578B\u9700\u8981\u5148\u5F00\u901A ${GPT_PRO_REQUIRED_RECHARGE_AMOUNT} \u79EF\u5206\u6863\u4F4D\u3002`;
|
|
89
94
|
function shouldBlockForGptPro(input) {
|
|
90
95
|
if (input?.premium !== true || input?.platformPaid !== true) {
|
|
91
96
|
return { blocked: false };
|
|
@@ -362,17 +367,17 @@ function parseAgentRecordId(privateKey, explicitId) {
|
|
|
362
367
|
}
|
|
363
368
|
return null;
|
|
364
369
|
}
|
|
365
|
-
function resolveFavoriteStatus(
|
|
370
|
+
function resolveFavoriteStatus(record2, options) {
|
|
366
371
|
if (options?.isFavorite !== void 0) {
|
|
367
372
|
return {
|
|
368
373
|
isFavorite: !!options.isFavorite,
|
|
369
374
|
favoritedAt: safeTimestamp(options.favoritedAt)
|
|
370
375
|
};
|
|
371
376
|
}
|
|
372
|
-
if (
|
|
377
|
+
if (record2?.isFavorite === true) {
|
|
373
378
|
return {
|
|
374
379
|
isFavorite: true,
|
|
375
|
-
favoritedAt: safeTimestamp(
|
|
380
|
+
favoritedAt: safeTimestamp(record2?.favoritedAt)
|
|
376
381
|
};
|
|
377
382
|
}
|
|
378
383
|
const favoritesMap = options?.favoritesMap;
|
|
@@ -380,17 +385,17 @@ function resolveFavoriteStatus(record, options) {
|
|
|
380
385
|
return { isFavorite: false, favoritedAt: null };
|
|
381
386
|
}
|
|
382
387
|
const candidateKeys = [];
|
|
383
|
-
if (typeof
|
|
384
|
-
if (typeof
|
|
385
|
-
if (typeof
|
|
386
|
-
if (typeof
|
|
387
|
-
candidateKeys.push(
|
|
388
|
+
if (typeof record2?.dbKey === "string" && record2.dbKey) candidateKeys.push(record2.dbKey);
|
|
389
|
+
if (typeof record2?.privateKey === "string" && record2.privateKey) candidateKeys.push(record2.privateKey);
|
|
390
|
+
if (typeof record2?.publicKey === "string" && record2.publicKey) candidateKeys.push(record2.publicKey);
|
|
391
|
+
if (typeof record2?.verifiedAgentKey === "string" && record2.verifiedAgentKey) {
|
|
392
|
+
candidateKeys.push(record2.verifiedAgentKey);
|
|
388
393
|
}
|
|
389
|
-
if (typeof
|
|
390
|
-
candidateKeys.push(
|
|
391
|
-
candidateKeys.push(publicAgentKey(
|
|
394
|
+
if (typeof record2?.id === "string" && record2.id) {
|
|
395
|
+
candidateKeys.push(record2.id);
|
|
396
|
+
candidateKeys.push(publicAgentKey(record2.id));
|
|
392
397
|
if (options?.userId) {
|
|
393
|
-
candidateKeys.push(ownedAgentKey(options.userId,
|
|
398
|
+
candidateKeys.push(ownedAgentKey(options.userId, record2.id));
|
|
394
399
|
}
|
|
395
400
|
}
|
|
396
401
|
let matched = false;
|
|
@@ -417,55 +422,54 @@ function resolveFavoriteStatus(record, options) {
|
|
|
417
422
|
}
|
|
418
423
|
return { isFavorite: false, favoritedAt: null };
|
|
419
424
|
}
|
|
420
|
-
function isOwnedAgentRecord(
|
|
425
|
+
function isOwnedAgentRecord(record2, userId) {
|
|
421
426
|
if (!userId) return false;
|
|
422
|
-
if (typeof
|
|
427
|
+
if (typeof record2?.userId === "string" && record2.userId === userId || typeof record2?.ownerId === "string" && record2.ownerId === userId) {
|
|
423
428
|
return true;
|
|
424
429
|
}
|
|
425
|
-
return [
|
|
430
|
+
return [record2?.dbKey, record2?.privateKey].some(
|
|
426
431
|
(key) => isOwnedAgentKey(key, userId)
|
|
427
432
|
);
|
|
428
433
|
}
|
|
429
|
-
function toSafeAgentSummary(
|
|
434
|
+
function toSafeAgentSummary(record2, options) {
|
|
430
435
|
const rawId = parseAgentRecordId(
|
|
431
|
-
typeof
|
|
432
|
-
typeof
|
|
436
|
+
typeof record2?.privateKey === "string" ? record2.privateKey : record2?.dbKey,
|
|
437
|
+
typeof record2?.id === "string" ? record2.id : void 0
|
|
433
438
|
);
|
|
434
|
-
const id = rawId ?? (typeof
|
|
435
|
-
const publicRecordDenied =
|
|
436
|
-
const publicRecordConfirmed =
|
|
439
|
+
const id = rawId ?? (typeof record2?.id === "string" ? record2.id : null);
|
|
440
|
+
const publicRecordDenied = record2?.publicRecordExists === false || options?.publicRecordExists === false;
|
|
441
|
+
const publicRecordConfirmed = record2?.publicRecordExists === true || options?.publicRecordExists === true;
|
|
437
442
|
let publicKey;
|
|
438
|
-
if (typeof
|
|
439
|
-
publicKey =
|
|
443
|
+
if (typeof record2?.publicKey === "string" && record2.publicKey && !publicRecordDenied) {
|
|
444
|
+
publicKey = record2.publicKey;
|
|
440
445
|
} else if (publicRecordConfirmed && id) {
|
|
441
446
|
publicKey = publicAgentKey(id);
|
|
442
447
|
}
|
|
443
|
-
const name = typeof
|
|
444
|
-
const handle = typeof
|
|
445
|
-
const introduction = typeof
|
|
446
|
-
const model = typeof
|
|
447
|
-
const provider = typeof
|
|
448
|
-
const apiSource = typeof
|
|
449
|
-
const cliProvider = typeof
|
|
450
|
-
const tools = Array.isArray(
|
|
451
|
-
const inputPrice = typeof
|
|
452
|
-
const outputPrice = typeof
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
const
|
|
456
|
-
const
|
|
457
|
-
const
|
|
458
|
-
const
|
|
459
|
-
const rawQuota = record?.quota;
|
|
448
|
+
const name = typeof record2?.name === "string" && record2.name ? record2.name : "(unnamed)";
|
|
449
|
+
const handle = typeof record2?.handle === "string" && record2.handle ? record2.handle : null;
|
|
450
|
+
const introduction = typeof record2?.introduction === "string" && record2.introduction ? record2.introduction : typeof record2?.description === "string" && record2.description ? record2.description : null;
|
|
451
|
+
const model = typeof record2?.model === "string" && record2.model ? record2.model : null;
|
|
452
|
+
const provider = typeof record2?.provider === "string" && record2.provider ? record2.provider : typeof record2?.apiSource === "string" && record2.apiSource ? record2.apiSource : null;
|
|
453
|
+
const apiSource = typeof record2?.apiSource === "string" && record2.apiSource ? record2.apiSource : null;
|
|
454
|
+
const cliProvider = typeof record2?.cliProvider === "string" && record2.cliProvider ? record2.cliProvider : null;
|
|
455
|
+
const tools = Array.isArray(record2?.tools) ? record2.tools.filter((t) => typeof t === "string") : [];
|
|
456
|
+
const inputPrice = typeof record2?.inputPrice === "number" && Number.isFinite(record2.inputPrice) ? record2.inputPrice : null;
|
|
457
|
+
const outputPrice = typeof record2?.outputPrice === "number" && Number.isFinite(record2.outputPrice) ? record2.outputPrice : null;
|
|
458
|
+
const favStatus = resolveFavoriteStatus(record2, options);
|
|
459
|
+
const isPublic = record2?.isPublic === true || record2?.isPublicFlag === true || record2?.publicRecordExists === true;
|
|
460
|
+
const updatedAt = safeTimestamp(record2?.updatedAt ?? record2?.createdAt ?? record2?.created);
|
|
461
|
+
const nextAvailableAt = typeof record2?.nextAvailableAt === "number" && Number.isFinite(record2.nextAvailableAt) ? record2.nextAvailableAt : void 0;
|
|
462
|
+
const quotaExhaustion = record2?.quotaExhaustion && typeof record2.quotaExhaustion.observedAt === "number" && Number.isFinite(record2.quotaExhaustion.observedAt) ? { observedAt: record2.quotaExhaustion.observedAt } : void 0;
|
|
463
|
+
const rawQuota = record2?.quota;
|
|
460
464
|
const quota = rawQuota && typeof rawQuota === "object" && Array.isArray(rawQuota.windows) && typeof rawQuota.observedAt === "number" && Number.isFinite(rawQuota.observedAt) ? rawQuota : void 0;
|
|
461
465
|
const currentUserId = options?.userId;
|
|
462
|
-
const ownedKey = currentUserId ? [
|
|
466
|
+
const ownedKey = currentUserId ? [record2?.dbKey, record2?.privateKey].find(
|
|
463
467
|
(key) => isOwnedAgentKey(key, currentUserId)
|
|
464
468
|
) : void 0;
|
|
465
|
-
const isOwned = isOwnedAgentRecord(
|
|
466
|
-
const isOAuth = isOAuthApiKeyRef(
|
|
469
|
+
const isOwned = isOwnedAgentRecord(record2, currentUserId);
|
|
470
|
+
const isOAuth = isOAuthApiKeyRef(record2?.apiKeyRef);
|
|
467
471
|
const billingSource = resolveBillingSource({
|
|
468
|
-
...
|
|
472
|
+
...record2,
|
|
469
473
|
isOAuth,
|
|
470
474
|
isOwned,
|
|
471
475
|
apiSource,
|
|
@@ -477,11 +481,11 @@ function toSafeAgentSummary(record, options) {
|
|
|
477
481
|
{
|
|
478
482
|
provider,
|
|
479
483
|
apiSource,
|
|
480
|
-
customProviderUrl: typeof
|
|
484
|
+
customProviderUrl: typeof record2?.customProviderUrl === "string" ? record2.customProviderUrl : null
|
|
481
485
|
},
|
|
482
486
|
options?.now ?? Date.now()
|
|
483
487
|
);
|
|
484
|
-
const verifiedSharedKey = typeof
|
|
488
|
+
const verifiedSharedKey = typeof record2?.verifiedAgentKey === "string" && record2.verifiedAgentKey ? record2.verifiedAgentKey : void 0;
|
|
485
489
|
let agentKey;
|
|
486
490
|
if (currentUserId) {
|
|
487
491
|
if (isOwned) {
|
|
@@ -492,10 +496,10 @@ function toSafeAgentSummary(record, options) {
|
|
|
492
496
|
agentKey = verifiedSharedKey;
|
|
493
497
|
}
|
|
494
498
|
}
|
|
495
|
-
const rawCredRef = (typeof
|
|
496
|
-
const credInfo = deriveCredentialGroup(
|
|
497
|
-
const credentialGroup =
|
|
498
|
-
const credentialKind =
|
|
499
|
+
const rawCredRef = (typeof record2?.apiKeyRef === "string" && record2.apiKeyRef ? record2.apiKeyRef : void 0) ?? (typeof record2?.credentialRef === "string" && record2.credentialRef ? record2.credentialRef : void 0);
|
|
500
|
+
const credInfo = deriveCredentialGroup(record2?.credentialGroup ?? rawCredRef);
|
|
501
|
+
const credentialGroup = record2?.credentialGroup ?? credInfo?.credentialGroup;
|
|
502
|
+
const credentialKind = record2?.credentialKind ?? credInfo?.credentialKind;
|
|
499
503
|
const availability = resolveAgentAvailability(
|
|
500
504
|
{ nextAvailableAt, quota, quotaExhaustion },
|
|
501
505
|
options?.now ?? Date.now()
|
|
@@ -516,7 +520,6 @@ function toSafeAgentSummary(record, options) {
|
|
|
516
520
|
tools,
|
|
517
521
|
inputPrice,
|
|
518
522
|
outputPrice,
|
|
519
|
-
modelAbility,
|
|
520
523
|
isFavorite: favStatus.isFavorite,
|
|
521
524
|
favoritedAt: favStatus.favoritedAt,
|
|
522
525
|
isPublic,
|
|
@@ -525,7 +528,7 @@ function toSafeAgentSummary(record, options) {
|
|
|
525
528
|
// 例如 apiSource==="cli" 的本地 CLI Agent 在 resolveBillingSource 里会落到
|
|
526
529
|
// platform_credits,但 isPlatformPaidAgentCall 显式短路为「非平台垫付」。
|
|
527
530
|
requiresPaidApproval: isPlatformPaidAgentCall({
|
|
528
|
-
agentConfig:
|
|
531
|
+
agentConfig: record2 ?? void 0,
|
|
529
532
|
callerUserId: currentUserId ?? void 0
|
|
530
533
|
}),
|
|
531
534
|
...economics ? { economics } : {},
|
|
@@ -910,9 +913,9 @@ function buildAgentDiscoveryResult(options) {
|
|
|
910
913
|
credentialGroups
|
|
911
914
|
};
|
|
912
915
|
}
|
|
913
|
-
function toDiscoverySafeAgentSummary(
|
|
914
|
-
const mergedOptions =
|
|
915
|
-
return toSafeAgentSummary(
|
|
916
|
+
function toDiscoverySafeAgentSummary(record2, options) {
|
|
917
|
+
const mergedOptions = record2?.publicRecordExists === true ? { ...options, publicRecordExists: true } : options;
|
|
918
|
+
return toSafeAgentSummary(record2, mergedOptions);
|
|
916
919
|
}
|
|
917
920
|
|
|
918
921
|
// packages/ai/agent/speedSampleCache.ts
|
|
@@ -1107,17 +1110,17 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
|
1107
1110
|
const { start, end } = createTokenKey.rangeOfUser(userId);
|
|
1108
1111
|
const failedPrefix = createKey("token", userId, "failed-call", "");
|
|
1109
1112
|
const dispatchRunCache = /* @__PURE__ */ new Map();
|
|
1110
|
-
const isDispatchSampleRecord = async (
|
|
1111
|
-
if (
|
|
1112
|
-
const runId = typeof
|
|
1113
|
+
const isDispatchSampleRecord = async (record2, resolver, cache) => {
|
|
1114
|
+
if (record2.entry_path !== DISPATCH_ENTRY_PATH && record2.entry_path !== "cli-local") return false;
|
|
1115
|
+
const runId = typeof record2.dialogId === "string" ? record2.dialogId.trim() : "";
|
|
1113
1116
|
if (!runId) return false;
|
|
1114
|
-
const cacheKey = `${
|
|
1117
|
+
const cacheKey = `${record2.entry_path}:${runId}`;
|
|
1115
1118
|
const cached = cache.get(cacheKey);
|
|
1116
1119
|
if (cached !== void 0) return cached;
|
|
1117
1120
|
let dispatch = false;
|
|
1118
1121
|
if (resolver) {
|
|
1119
1122
|
try {
|
|
1120
|
-
dispatch = await resolver(runId,
|
|
1123
|
+
dispatch = await resolver(runId, record2.entry_path) === true;
|
|
1121
1124
|
} catch {
|
|
1122
1125
|
dispatch = false;
|
|
1123
1126
|
}
|
|
@@ -1150,15 +1153,15 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
|
1150
1153
|
newestKey = key;
|
|
1151
1154
|
if (key.startsWith(failedPrefix)) continue;
|
|
1152
1155
|
if (!raw || typeof raw !== "object") continue;
|
|
1153
|
-
const
|
|
1156
|
+
const record2 = raw;
|
|
1154
1157
|
const resolver = options.isDispatchRun ?? db.isDispatchRun;
|
|
1155
1158
|
if (!await isDispatchSampleRecord(
|
|
1156
|
-
|
|
1159
|
+
record2,
|
|
1157
1160
|
resolver ? (runId, entryPath) => resolver.call(db, runId, entryPath) : void 0,
|
|
1158
1161
|
dispatchRunCache
|
|
1159
1162
|
))
|
|
1160
1163
|
continue;
|
|
1161
|
-
collectSample(collected,
|
|
1164
|
+
collectSample(collected, record2);
|
|
1162
1165
|
}
|
|
1163
1166
|
if (accepted === 0 || accepted < pageSize) break;
|
|
1164
1167
|
lastKey = newestKey;
|
|
@@ -1327,7 +1330,7 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
|
|
|
1327
1330
|
}
|
|
1328
1331
|
const agent = candidates[0];
|
|
1329
1332
|
const speedContext = buildCandidateSpeedContext(typeof agent.model === "string" ? [agent.model] : [], samples, { snapshotAgeMs });
|
|
1330
|
-
const payload = { agent, credentialGroups: groups.filter((group) => group.credentialGroup === agent.credentialGroup)
|
|
1333
|
+
const payload = { agent, credentialGroups: groups.filter((group) => group.credentialGroup === agent.credentialGroup) };
|
|
1331
1334
|
let keyCollision = false;
|
|
1332
1335
|
const cleanText = (value) => scrubSecrets(sanitizeToolOutputText(value)).cleaned;
|
|
1333
1336
|
const sanitize = (value) => {
|
|
@@ -1360,7 +1363,7 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
|
|
|
1360
1363
|
let end = Math.min(serialized.length, fragmentOffset + 3e3);
|
|
1361
1364
|
if (end < serialized.length && /[\uD800-\uDBFF]/.test(serialized[end - 1]) && /[\uDC00-\uDFFF]/.test(serialized[end])) end--;
|
|
1362
1365
|
const fragment = serialized.slice(fragmentOffset, end);
|
|
1363
|
-
const result = JSON.stringify({ success: true, agentKey: agentKey2, offset, digest, fragment, fragmentOffset, nextFragmentOffset: end, hasMoreFragments: end < serialized.length, nextOffset: offset + 1 });
|
|
1366
|
+
const result = JSON.stringify({ success: true, agentKey: agentKey2, offset, digest, fragment, fragmentOffset, nextFragmentOffset: end, hasMoreFragments: end < serialized.length, nextOffset: offset + 1, ...speedContext ? { speedContext: cleanText(speedContext) } : {} });
|
|
1364
1367
|
return fits(result) ? result : JSON.stringify({ success: false, error: "LIST_AGENTS_FRAGMENT_METADATA_TOO_LARGE", offset });
|
|
1365
1368
|
}
|
|
1366
1369
|
const makePage = (count) => {
|
|
@@ -1407,6 +1410,19 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
|
|
|
1407
1410
|
return fits(encoded) ? encoded : JSON.stringify({ success: false, error: "LIST_AGENTS_RECOVERY_ID_TOO_LARGE", offset });
|
|
1408
1411
|
}
|
|
1409
1412
|
|
|
1413
|
+
// packages/ai/agent/dispatchSpeedProvenance.ts
|
|
1414
|
+
var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
1415
|
+
function isServerDispatchSpeedSource(value, dialogId, userId) {
|
|
1416
|
+
const dialog = record(value);
|
|
1417
|
+
const proof = record(dialog.dispatchSpeedProvenance);
|
|
1418
|
+
return proof.version === 1 && proof.source === "server-startAgentRun" && proof.userId === userId && record(dialog.runtimeBinding).tenantUserId === userId && dialog.id === dialogId;
|
|
1419
|
+
}
|
|
1420
|
+
function isLocalDispatchSpeedSource(value, dialogId, userId) {
|
|
1421
|
+
const run = record(value);
|
|
1422
|
+
const proof = record(run.dispatchSpeedProvenance);
|
|
1423
|
+
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;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1410
1426
|
export {
|
|
1411
1427
|
isGptProModel,
|
|
1412
1428
|
shouldBlockForGptPro,
|
|
@@ -1419,5 +1435,7 @@ export {
|
|
|
1419
1435
|
matchesAgentQuery,
|
|
1420
1436
|
buildAgentDiscoveryResult,
|
|
1421
1437
|
toDiscoverySafeAgentSummary,
|
|
1422
|
-
injectSpeedContextIntoListAgentsResult
|
|
1438
|
+
injectSpeedContextIntoListAgentsResult,
|
|
1439
|
+
isServerDispatchSpeedSource,
|
|
1440
|
+
isLocalDispatchSpeedSource
|
|
1423
1441
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MTM4LRVG.js";
|
|
5
5
|
import {
|
|
6
6
|
noloDeleteRequest,
|
|
7
7
|
noloWriteRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6XVPMGXK.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeTimeFields
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YHNUDTU4.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUser,
|
|
14
14
|
selectIdentityUserId
|