nolo-cli 0.228.0-alpha.1 → 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-WZKT6XEU.js → _executeModel-GIFVXKDT.js} +89 -82
- 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-PZWRHNXY.js → agentDeleteCommand-UF7XVELS.js} +120 -111
- package/{agentEmailCommands-QTKMEICX.js → agentEmailCommands-SFHRPQYC.js} +120 -107
- package/agentListCommands-IXKBP3W5.js +644 -0
- package/{agentMachineCommands-7QGICJLM.js → agentMachineCommands-7NX6PWQ6.js} +56 -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-OFQLOF5Y.js → agentRunCommand-LCR4XADM.js} +127 -111
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-RN2P6AOD.js} +11 -9
- package/{agentRuntimeLocal-TU4LA353.js → agentRuntimeLocal-LVXPQ7QA.js} +57 -43
- package/{agentSlice-L4SBGWTB.js → agentSlice-ZGMOH6TE.js} +15 -14
- package/{appDeleteCommands-JWP3XPUA.js → appDeleteCommands-BESCJOQM.js} +56 -48
- package/{appDeployCommands-6E4TQCWI.js → appDeployCommands-LPTR6IOX.js} +56 -48
- package/{appDeployStatusCommands-ALU4SADG.js → appDeployStatusCommands-BZ7KZ5RD.js} +56 -48
- package/{appGetCommands-JEY4L6L4.js → appGetCommands-EDWGJV4S.js} +56 -48
- package/{appListCommands-PCAVHU7M.js → appListCommands-OPRWYPM6.js} +56 -48
- package/{authCommand-CGRIIOOV.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-AUAJTAFM.js → chunk-2BKNICGK.js} +4 -4
- package/{chunk-QYB23WUH.js → chunk-2FK2KZSL.js} +1 -1
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-H6L2NFHY.js → chunk-3DJJ4CFG.js} +11 -11
- package/{chunk-TSPMLCWI.js → chunk-4IQN6FWY.js} +5 -5
- package/{chunk-GUXZK7SE.js → chunk-4OXPN3WC.js} +17 -6
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-3P54D2E4.js → chunk-5HUO7SEX.js} +9 -107
- package/chunk-6ASGEP5D.js +21 -0
- package/{chunk-DDC6P6EH.js → chunk-6CXQ3YNJ.js} +68 -40
- 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-2MCB7CD7.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-GPOV42YM.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-D6YNCNM6.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-IAAIUH64.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-IXG6YXQM.js → chunk-FTWAOKFU.js} +795 -361
- package/chunk-GAHJLSDO.js +107 -0
- package/{chunk-2X7WFDT6.js → chunk-GX6DITLQ.js} +1 -1
- package/{chunk-GYS5FUYR.js → chunk-HCCQEMTK.js} +28 -28
- package/{chunk-CMMI3DAT.js → chunk-HZDK56EK.js} +33 -26
- package/{chunk-UE2EVEYS.js → chunk-IIOSZAJX.js} +4 -4
- package/chunk-IIRJ4P4I.js +24 -0
- package/{chunk-QCB42576.js → chunk-IJZC2KIJ.js} +1 -1
- package/{chunk-RYOLWYBK.js → chunk-ITBX27W6.js} +97 -21
- package/{chunk-VSYTM22R.js → chunk-J2VIGDJN.js} +6 -6
- package/{chunk-QBZCGP34.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-MDZWUD3R.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-GOCSSER3.js → chunk-KZ5OD2MO.js} +4 -4
- package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
- package/chunk-LHCGKAFO.js +739 -0
- package/{chunk-XJPLSAPJ.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-2NPD3FTX.js → chunk-MYYNZG2M.js} +139 -39
- package/{chunk-DBUR22G5.js → chunk-MZVCFV3T.js} +19 -15
- package/{chunk-K67C2JUC.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-SMJEXX2S.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-OG6MQOQG.js → chunk-QMNVV3YM.js} +10 -37
- package/{chunk-GACR7H6T.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-EXJK7TQO.js → chunk-RMWDKLBE.js} +1520 -562
- package/{chunk-TGNIKIHR.js → chunk-RR3MB26M.js} +2 -2
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-STJ6LSQE.js → chunk-SCMYAGQE.js} +1135 -712
- 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-Q3IVPFVO.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-UWAIJOF2.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-WFGNWWJI.js +326 -0
- package/{chunk-R6Z5S5GA.js → chunk-WQDTSK5U.js} +51 -14
- package/{chunk-OYU2MA5S.js → chunk-X22AUZKL.js} +152 -167
- package/{chunk-4ZGPHFLE.js → chunk-X3OZ655T.js} +2 -2
- package/{chunk-NHY322ZU.js → chunk-XCA4WHX5.js} +588 -64
- package/{chunk-TI2EPRHE.js → chunk-XJSEST7D.js} +3 -3
- package/{chunk-JUSHVFNF.js → chunk-XNTZD4AE.js} +1230 -1356
- package/chunk-XSRSAU3O.js +133 -0
- package/{chunk-CYWNWA77.js → chunk-Y4NPF2UN.js} +6 -3
- package/{chunk-FJSNBZXR.js → chunk-YDRRGVT5.js} +1 -1
- package/{chunk-R3NEQZ53.js → chunk-YFW4H6DL.js} +405 -338
- package/{chunk-BNMPUQW6.js → chunk-YGDYYFRX.js} +20 -24
- 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-AGYPUBFW.js → chunk-Z7KE4K3H.js} +195 -123
- 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-M3F76NIP.js → cliLocalAgentRecordReader-MCQVRWBR.js} +59 -47
- package/{commandRegistry-ZLWHQVAI.js → commandRegistry-NTH5IAN5.js} +104 -92
- package/{contentThunks-4ZX2TO7C.js → contentThunks-SPXTX5U2.js} +38 -36
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-TIFCHCUN.js} +1 -1
- package/{createAgentAutomationAction-L4CYUZJG.js → createAgentAutomationAction-KUQKCOXB.js} +38 -36
- package/{createDialogAction-QTU2R2Q3.js → createDialogAction-HJN5U3XS.js} +39 -37
- package/{createPageAction-F3GJTHW2.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-NRLCOPJR.js → dialogCommands-KZTZLWPZ.js} +61 -54
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-PST75COP.js} +11 -11
- package/{dialogSlice-P2S4LXQD.js → dialogSlice-BXIERQHO.js} +39 -37
- package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-6RW2FY6K.js} +5 -5
- package/{docCreateCommands-YJRDA3RX.js → docCreateCommands-26HJ5NAY.js} +55 -47
- package/{docDeleteCommands-A5QIHZNF.js → docDeleteCommands-UAOHH5XK.js} +57 -49
- package/{docReadCommands-CF2LTMYH.js → docReadCommands-4ADG7YE6.js} +55 -47
- package/{docStore-6O7NYL6A.js → docStore-FZ75HWP2.js} +15 -14
- package/{docUpdateCommands-QRKV4ZXE.js → docUpdateCommands-OGFJZENF.js} +55 -47
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-FCHYVRJU.js} +4 -4
- package/{handleSendMessageAction-7IHLR37A.js → handleSendMessageAction-KP6GGBFY.js} +84 -79
- package/{hostCredentialCreate-VNCQUAFT.js → hostCredentialCreate-23TX56G7.js} +119 -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-FOWVNMIK.js → localRuntimeAdapter-MTUWOYPN.js} +126 -111
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-TYHQCTZN.js} +5 -3
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
- package/{machineCommands-ZGC3J4JB.js → machineCommands-4WJUJQHW.js} +260 -323
- package/{machineWsRunDispatch-KK5U4M3G.js → machineWsRunDispatch-V3U4JM67.js} +115 -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-7ZDYBXAX.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-YHT4SX2C.js → readlineWorkspace-T56MRMS5.js} +6426 -3669
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-J7XU7OUX.js} +19 -18
- package/{runAgentClientLoop-H4ED5V3K.js → runAgentClientLoop-O2GRCGRZ.js} +97 -75
- 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-I37M5KJC.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-MEH3HJBC.js → spaceCommands-W5TAVFDT.js} +59 -51
- package/{streamAgentChatTurn-ZXPOXU33.js → streamAgentChatTurn-OWDJMU5E.js} +238 -178
- 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-2MRWA2PP.js → tools-O7SGGVA3.js} +67 -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-RZ3KZSGQ.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/agentListCommands-GUGMORTK.js +0 -1005
- package/agentRecordCommands-SLLADS5C.js +0 -175
- package/chunk-2WZXXAQD.js +0 -57
- 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
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSelector
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6XVPMGXK.js";
|
|
4
4
|
import {
|
|
5
5
|
getAllServers,
|
|
6
|
-
getIsDesktopApp
|
|
7
|
-
|
|
6
|
+
getIsDesktopApp,
|
|
7
|
+
googleSessionServer,
|
|
8
|
+
scopeGoogleSessionServers
|
|
9
|
+
} from "./chunk-YHNUDTU4.js";
|
|
10
|
+
import {
|
|
11
|
+
selectIdentityToken
|
|
12
|
+
} from "./chunk-PXYBUFDB.js";
|
|
8
13
|
import {
|
|
9
14
|
SERVERS
|
|
10
15
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -19,20 +24,20 @@ var resolveDesktopSafeServer = (value) => {
|
|
|
19
24
|
};
|
|
20
25
|
var selectSettings = (state) => state.settings;
|
|
21
26
|
var selectCurrentServer = createSelector(
|
|
22
|
-
[selectSettings],
|
|
23
|
-
(settings) => resolveDesktopSafeServer(settings.currentServer)
|
|
27
|
+
[selectSettings, selectIdentityToken],
|
|
28
|
+
(settings, token) => googleSessionServer(token, settings.currentServer) ?? resolveDesktopSafeServer(settings.currentServer)
|
|
24
29
|
);
|
|
25
30
|
var selectSyncServers = createSelector(
|
|
26
|
-
[selectSettings],
|
|
27
|
-
(settings) => (settings.syncServers || []).filter(
|
|
31
|
+
[selectSettings, selectIdentityToken],
|
|
32
|
+
(settings, token) => googleSessionServer(token, settings.currentServer) !== void 0 ? [] : (settings.syncServers || []).filter(
|
|
28
33
|
(server) => !getIsDesktopApp() || !isLocalServerUrl(server)
|
|
29
34
|
)
|
|
30
35
|
);
|
|
31
36
|
var selectRemoteServer = selectCurrentServer;
|
|
32
37
|
var selectRemoteSyncServers = selectSyncServers;
|
|
33
38
|
var selectRemoteServers = createSelector(
|
|
34
|
-
[selectRemoteServer, selectRemoteSyncServers],
|
|
35
|
-
(currentServer, syncServers) => getAllServers(currentServer, syncServers)
|
|
39
|
+
[selectRemoteServer, selectRemoteSyncServers, selectIdentityToken],
|
|
40
|
+
(currentServer, syncServers, token) => scopeGoogleSessionServers(token, currentServer, getAllServers(currentServer, syncServers))
|
|
36
41
|
);
|
|
37
42
|
|
|
38
43
|
export {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// packages/ai/memory/topicKey.ts
|
|
2
|
+
var TOPIC_KEY_MAX_LENGTH = 128;
|
|
3
|
+
var TOPIC_KEY_PATTERN = /^[a-z0-9](?:[a-z0-9._:-]{0,127})$/;
|
|
4
|
+
function normalizeTopicKey(raw) {
|
|
5
|
+
if (raw === void 0 || raw === null) return void 0;
|
|
6
|
+
if (typeof raw !== "string") {
|
|
7
|
+
throw new Error("rememberMemory: topicKey must be a string");
|
|
8
|
+
}
|
|
9
|
+
const normalized = raw.trim().toLowerCase();
|
|
10
|
+
if (!normalized) return void 0;
|
|
11
|
+
if (normalized.length > TOPIC_KEY_MAX_LENGTH) {
|
|
12
|
+
throw new Error(
|
|
13
|
+
`rememberMemory: topicKey must be <= ${TOPIC_KEY_MAX_LENGTH} characters`
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
if (!TOPIC_KEY_PATTERN.test(normalized)) {
|
|
17
|
+
throw new Error(
|
|
18
|
+
"rememberMemory: topicKey must start with [a-z0-9] and only contain [a-z0-9._:-]"
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
return normalized;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
normalizeTopicKey
|
|
26
|
+
};
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
streamSseDataValues
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
-
import {
|
|
5
|
-
resolveToolImagePolicy
|
|
6
|
-
} from "./chunk-DUUDXSLX.js";
|
|
7
4
|
import {
|
|
8
5
|
projectOpenAiToolImages
|
|
9
6
|
} from "./chunk-X4O7FJF5.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveToolImagePolicy
|
|
9
|
+
} from "./chunk-SX6AWTNK.js";
|
|
10
10
|
import {
|
|
11
11
|
getAntigravityUserAgent,
|
|
12
12
|
readAntigravityProjectId,
|
|
13
13
|
resolveAntigravityCloudCodeBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CTWCZKNS.js";
|
|
15
15
|
import {
|
|
16
16
|
asOptionalTrimmedString
|
|
17
17
|
} from "./chunk-G3SUCT4W.js";
|
|
18
18
|
|
|
19
|
+
// packages/agent-runtime/types.ts
|
|
20
|
+
var AGENT_PROMPT_IN_MESSAGES = Symbol("agent-prompt-in-messages");
|
|
21
|
+
function hasAssembledAgentPrompt(messages) {
|
|
22
|
+
return messages.some((raw) => {
|
|
23
|
+
if (!raw || typeof raw !== "object") return false;
|
|
24
|
+
const message = raw;
|
|
25
|
+
return message.role === "system" && message[AGENT_PROMPT_IN_MESSAGES] === true;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
// packages/core/chat/upstreamErrorBody.ts
|
|
20
30
|
function parseUpstreamErrorBody(errorText, statusText) {
|
|
21
31
|
if (errorText) {
|
|
@@ -41,53 +51,124 @@ var WIRE_PROFILES = {
|
|
|
41
51
|
// Antigravity discovery exposes 3.7 Flash as one tiered wire model.
|
|
42
52
|
// The UI labels its effort variants (Low/Medium/High), but the literal
|
|
43
53
|
// -medium/-high ids return 404 from streamGenerateContent.
|
|
44
|
-
"gemini-3.7-flash-tiered": {
|
|
54
|
+
"gemini-3.7-flash-tiered": {
|
|
55
|
+
modelEnum: "MODEL_PLACEHOLDER_M301",
|
|
56
|
+
maxOutputTokens: 65536
|
|
57
|
+
},
|
|
45
58
|
// Gemini 3.8 Flash 沿用 3.7 的 tiered 兼容策略:仓库内暂无 Antigravity discovery
|
|
46
59
|
// 证据确认 3.8 的 wire modelEnum,禁止虚构,先只声明同档输出上限;enum 待
|
|
47
60
|
// discovery 证据到位后补齐。
|
|
48
61
|
"gemini-3.8-flash-tiered": { maxOutputTokens: 65536 },
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"gemini-4-argon": {
|
|
62
|
+
// Discovery (2026-11-16) exposes separate enabled Argon effort variants.
|
|
63
|
+
"gemini-4-argon-low": {
|
|
64
|
+
modelEnum: "MODEL_PLACEHOLDER_M419",
|
|
65
|
+
maxOutputTokens: 65536
|
|
66
|
+
},
|
|
67
|
+
"gemini-4-argon-medium": {
|
|
68
|
+
modelEnum: "MODEL_PLACEHOLDER_M418",
|
|
69
|
+
maxOutputTokens: 65536
|
|
70
|
+
},
|
|
71
|
+
"gemini-4-argon-high": {
|
|
72
|
+
modelEnum: "MODEL_PLACEHOLDER_M417",
|
|
73
|
+
maxOutputTokens: 65536
|
|
74
|
+
},
|
|
75
|
+
// Discovery (2026-11-17) exposes Carbon effort variants with their own enums and a
|
|
76
|
+
// 262144 output cap (Argon caps at 65536). 裸 gemini-4-carbon 不在 discovery 里,
|
|
77
|
+
// 必须折叠到 effort 变体,否则上游回 404。
|
|
78
|
+
"gemini-4-carbon-low": {
|
|
79
|
+
modelEnum: "MODEL_PLACEHOLDER_M438",
|
|
80
|
+
maxOutputTokens: 262144
|
|
81
|
+
},
|
|
82
|
+
"gemini-4-carbon-medium": {
|
|
83
|
+
modelEnum: "MODEL_PLACEHOLDER_M437",
|
|
84
|
+
maxOutputTokens: 262144
|
|
85
|
+
},
|
|
86
|
+
"gemini-4-carbon-high": {
|
|
87
|
+
modelEnum: "MODEL_PLACEHOLDER_M427",
|
|
88
|
+
maxOutputTokens: 262144
|
|
89
|
+
},
|
|
90
|
+
// Antigravity discovery 暴露 -medium / -high 变体;尚无 modelEnum 证据时不虚构 enum,仅声明 65536 输出上限。
|
|
91
|
+
"gemini-4-hydrogen-medium": { maxOutputTokens: 65536 },
|
|
92
|
+
"gemini-4-hydrogen-high": { maxOutputTokens: 65536 },
|
|
93
|
+
// Gemini 4 Neon(官方 2026-11-18 发布;仅 Google AI Pro / Ultra / Enterprise)**不登记 profile**:
|
|
94
|
+
// 2026-11-19 订阅档账号强制刷新 token 后跑 fetchAvailableModels(UA `antigravity/hub/2.26.0`),
|
|
95
|
+
// 四个 effort 变体 `gemini-4-neon-low` / `-medium` / `-high` / `-xhigh` 全部 enabled,
|
|
96
|
+
// 与官方 Antigravity 模型列表同形;同一批里仍没有裸 `gemini-4-neon`,free-tier 账号
|
|
97
|
+
// 依旧只看到 `gemini-4-neon-disabled`(MODEL_PLACEHOLDER_M536,tagDescription
|
|
98
|
+
// 「currently available to paid Pro and Ultra subscribers」)。
|
|
99
|
+
// 这批 discovery 没有给出四个变体的 modelEnum,也没有给出各自的输出窗口,因此这里**不写
|
|
100
|
+
// WIRE_PROFILES**:不虚构 enum、不复用 disabled 占位符的 262144 窗口、不折叠到
|
|
101
|
+
// Hydrogen / Carbon 冒充。四个变体按 wire id 原样透传,输出上限回落 agentConfig.max_tokens。
|
|
59
102
|
"gemini-3.6-flash-low": { maxOutputTokens: 65536 },
|
|
60
103
|
"gemini-3.6-flash-medium": { maxOutputTokens: 65536 },
|
|
61
104
|
"gemini-3.6-flash-high": { maxOutputTokens: 65536 },
|
|
62
105
|
// 旧模型 wire 映射保留:存量自定义 agent 仍可能引用(注册表已下线不影响此处)。
|
|
63
|
-
"gemini-3.5-flash-extra-low": {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"gemini-
|
|
106
|
+
"gemini-3.5-flash-extra-low": {
|
|
107
|
+
modelEnum: "MODEL_PLACEHOLDER_M187",
|
|
108
|
+
maxOutputTokens: 65536
|
|
109
|
+
},
|
|
110
|
+
"gemini-3.5-flash-low": {
|
|
111
|
+
modelEnum: "MODEL_PLACEHOLDER_M20",
|
|
112
|
+
maxOutputTokens: 65536
|
|
113
|
+
},
|
|
114
|
+
"gemini-3-flash-agent": {
|
|
115
|
+
modelEnum: "MODEL_PLACEHOLDER_M132",
|
|
116
|
+
maxOutputTokens: 65536
|
|
117
|
+
},
|
|
118
|
+
"gemini-3.1-pro-low": {
|
|
119
|
+
modelEnum: "MODEL_PLACEHOLDER_M36",
|
|
120
|
+
maxOutputTokens: 65535
|
|
121
|
+
},
|
|
122
|
+
"gemini-pro-agent": {
|
|
123
|
+
modelEnum: "MODEL_PLACEHOLDER_M16",
|
|
124
|
+
maxOutputTokens: 65535
|
|
125
|
+
},
|
|
68
126
|
"claude-sonnet-5": { maxOutputTokens: 64e3 },
|
|
69
127
|
"claude-sonnet-4-6": { maxOutputTokens: 64e3 },
|
|
70
128
|
"claude-opus-4-6-thinking": { maxOutputTokens: 64e3 },
|
|
71
129
|
"gemini-2.5-flash": { maxOutputTokens: 65536 },
|
|
72
130
|
"gemini-2.5-pro": { maxOutputTokens: 65536 }
|
|
73
131
|
};
|
|
74
|
-
function resolveAntigravityWireModel(logicalModelId) {
|
|
132
|
+
function resolveAntigravityWireModel(logicalModelId, reasoningEffort) {
|
|
75
133
|
const id = logicalModelId.trim();
|
|
76
134
|
const lower = id.toLowerCase();
|
|
77
135
|
if (lower === "gemini-3.5-flash") {
|
|
78
136
|
const wireModelId = "gemini-3.5-flash-low";
|
|
79
137
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
80
138
|
}
|
|
81
|
-
if (lower === "gemini-3.7-flash" || [
|
|
139
|
+
if (lower === "gemini-3.7-flash" || [
|
|
140
|
+
"gemini-3.7-flash-low",
|
|
141
|
+
"gemini-3.7-flash-medium",
|
|
142
|
+
"gemini-3.7-flash-high"
|
|
143
|
+
].includes(lower)) {
|
|
82
144
|
const wireModelId = "gemini-3.7-flash-tiered";
|
|
83
145
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
84
146
|
}
|
|
85
|
-
if (lower === "gemini-3.8-flash" || [
|
|
147
|
+
if (lower === "gemini-3.8-flash" || [
|
|
148
|
+
"gemini-3.8-flash-low",
|
|
149
|
+
"gemini-3.8-flash-medium",
|
|
150
|
+
"gemini-3.8-flash-high"
|
|
151
|
+
].includes(lower)) {
|
|
86
152
|
const wireModelId = "gemini-3.8-flash-tiered";
|
|
87
153
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
88
154
|
}
|
|
89
|
-
|
|
90
|
-
|
|
155
|
+
const gemini4 = /^gemini-4-(argon|carbon)(?:-(low|medium|high))?$/.exec(
|
|
156
|
+
lower
|
|
157
|
+
);
|
|
158
|
+
if (gemini4) {
|
|
159
|
+
const family = gemini4[1] ?? "argon";
|
|
160
|
+
const explicitEffort = gemini4[2];
|
|
161
|
+
const effort = reasoningEffort?.trim().toLowerCase();
|
|
162
|
+
const selected = explicitEffort ?? (effort === "low" || effort === "high" ? effort : "medium");
|
|
163
|
+
const wireModelId = `gemini-4-${family}-${selected}`;
|
|
164
|
+
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
165
|
+
}
|
|
166
|
+
const hydrogen = /^gemini-4-hydrogen(?:-(medium|high))?$/.exec(lower);
|
|
167
|
+
if (hydrogen) {
|
|
168
|
+
const explicitEffort = hydrogen[1];
|
|
169
|
+
const effort = reasoningEffort?.trim().toLowerCase();
|
|
170
|
+
const selected = explicitEffort ?? (effort === "high" ? "high" : "medium");
|
|
171
|
+
const wireModelId = `gemini-4-hydrogen-${selected}`;
|
|
91
172
|
return { wireModelId, profile: WIRE_PROFILES[wireModelId] };
|
|
92
173
|
}
|
|
93
174
|
if (lower === "gemini-3.6-flash") {
|
|
@@ -608,10 +689,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
608
689
|
const branchRequired = Array.isArray(sanitized.required) ? sanitized.required : [];
|
|
609
690
|
requiredIntersection = requiredIntersection === void 0 ? [...branchRequired] : requiredIntersection.filter((r) => branchRequired.includes(r));
|
|
610
691
|
}
|
|
611
|
-
|
|
692
|
+
const combinedProperties = {
|
|
612
693
|
...out.properties ?? {},
|
|
613
694
|
...mergedProperties
|
|
614
695
|
};
|
|
696
|
+
out.properties = Object.fromEntries(
|
|
697
|
+
Object.keys(combinedProperties).sort().map((key) => [key, combinedProperties[key]])
|
|
698
|
+
);
|
|
615
699
|
if (requiredIntersection !== void 0 && requiredIntersection.length > 0) {
|
|
616
700
|
out.required = requiredIntersection;
|
|
617
701
|
}
|
|
@@ -639,10 +723,13 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
639
723
|
for (const branch of src.allOf) {
|
|
640
724
|
const sanitized = sanitizeGeminiSchemaNode(branch, seen);
|
|
641
725
|
if (out.type === void 0 || out.type === "object" || out.properties || sanitized.properties) {
|
|
642
|
-
|
|
726
|
+
const merged = {
|
|
643
727
|
...out.properties ?? {},
|
|
644
728
|
...sanitized.properties ?? {}
|
|
645
729
|
};
|
|
730
|
+
out.properties = Object.fromEntries(
|
|
731
|
+
Object.keys(merged).sort().map((key) => [key, merged[key]])
|
|
732
|
+
);
|
|
646
733
|
}
|
|
647
734
|
if (Array.isArray(sanitized.required)) {
|
|
648
735
|
out.required = [
|
|
@@ -656,11 +743,10 @@ function sanitizeGeminiSchemaNodeInner(src, out, seen) {
|
|
|
656
743
|
if (typeof out.type !== "string") out.type = "object";
|
|
657
744
|
}
|
|
658
745
|
if (src.properties && typeof src.properties === "object") {
|
|
746
|
+
const rawProperties = src.properties;
|
|
659
747
|
const properties = {};
|
|
660
|
-
for (const
|
|
661
|
-
|
|
662
|
-
)) {
|
|
663
|
-
properties[key] = sanitizeGeminiSchemaNode(value, seen);
|
|
748
|
+
for (const key of Object.keys(rawProperties).sort()) {
|
|
749
|
+
properties[key] = sanitizeGeminiSchemaNode(rawProperties[key], seen);
|
|
664
750
|
}
|
|
665
751
|
out.properties = properties;
|
|
666
752
|
if (typeof out.type !== "string") out.type = "object";
|
|
@@ -706,6 +792,7 @@ function convertOpenAiToolsToGemini(tools) {
|
|
|
706
792
|
});
|
|
707
793
|
}
|
|
708
794
|
if (declarations.length === 0) return void 0;
|
|
795
|
+
declarations.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
709
796
|
return [{ functionDeclarations: declarations }];
|
|
710
797
|
}
|
|
711
798
|
function createGeminiAccumulatorState() {
|
|
@@ -721,19 +808,25 @@ function applyGeminiChunk(chunk, state, options) {
|
|
|
721
808
|
const response = "response" in chunk && chunk.response && typeof chunk.response === "object" ? chunk.response : chunk;
|
|
722
809
|
if ("usageMetadata" in response && response.usageMetadata && typeof response.usageMetadata === "object") {
|
|
723
810
|
const meta = response.usageMetadata;
|
|
724
|
-
const
|
|
811
|
+
const hasPromptTokenCount = typeof meta.promptTokenCount === "number" && Number.isFinite(meta.promptTokenCount);
|
|
812
|
+
const hasCachedContentTokenCount = typeof meta.cachedContentTokenCount === "number" && Number.isFinite(meta.cachedContentTokenCount);
|
|
813
|
+
const prompt = hasPromptTokenCount ? meta.promptTokenCount : 0;
|
|
725
814
|
const candidates2 = typeof meta.candidatesTokenCount === "number" ? meta.candidatesTokenCount : 0;
|
|
726
815
|
const total = typeof meta.totalTokenCount === "number" ? meta.totalTokenCount : prompt + candidates2;
|
|
727
|
-
const
|
|
816
|
+
const clampedPrompt = Math.max(0, Math.floor(prompt));
|
|
817
|
+
const cached = hasCachedContentTokenCount ? (
|
|
728
818
|
// cached ⊆ prompt;对畸形上游防御性钳位,避免 cache_read > input 破坏归一化与计费
|
|
729
|
-
Math.min(
|
|
819
|
+
Math.min(
|
|
820
|
+
Math.max(0, Math.floor(meta.cachedContentTokenCount)),
|
|
821
|
+
clampedPrompt
|
|
822
|
+
)
|
|
730
823
|
) : 0;
|
|
731
824
|
const thoughts = typeof meta.thoughtsTokenCount === "number" ? meta.thoughtsTokenCount : Array.isArray(meta.candidatesTokensDetails) && typeof meta.candidatesTokensDetails[0]?.tokensCount === "number" ? meta.candidatesTokensDetails[0].tokensCount : void 0;
|
|
732
825
|
state.usage = {
|
|
733
826
|
prompt_tokens: prompt,
|
|
734
827
|
completion_tokens: candidates2,
|
|
735
828
|
total_tokens: total,
|
|
736
|
-
...
|
|
829
|
+
...hasPromptTokenCount || hasCachedContentTokenCount ? { cache_read_input_tokens: cached } : {},
|
|
737
830
|
...thoughts !== void 0 ? {
|
|
738
831
|
completion_tokens_details: {
|
|
739
832
|
reasoning_tokens: thoughts
|
|
@@ -840,7 +933,7 @@ function buildGeminiGenerateContentRequest(args) {
|
|
|
840
933
|
maxImagesPerRequest: toolImagePolicy.maxImagesPerRequest
|
|
841
934
|
}
|
|
842
935
|
);
|
|
843
|
-
const request = {
|
|
936
|
+
const request = {};
|
|
844
937
|
if (systemTexts.length > 0) {
|
|
845
938
|
request.systemInstruction = {
|
|
846
939
|
role: "user",
|
|
@@ -852,6 +945,7 @@ function buildGeminiGenerateContentRequest(args) {
|
|
|
852
945
|
request.tools = toolsResult;
|
|
853
946
|
request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
|
|
854
947
|
}
|
|
948
|
+
request.contents = contents;
|
|
855
949
|
const generationConfig = {};
|
|
856
950
|
if (typeof args.maxTokens === "number" && args.maxTokens > 0) {
|
|
857
951
|
generationConfig.maxOutputTokens = args.maxTokens;
|
|
@@ -898,7 +992,10 @@ function buildCloudCodeAssistPayload(args) {
|
|
|
898
992
|
);
|
|
899
993
|
}
|
|
900
994
|
const logicalModel = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gemini-3.1-pro";
|
|
901
|
-
const { wireModelId: model, profile } = resolveAntigravityWireModel(
|
|
995
|
+
const { wireModelId: model, profile } = resolveAntigravityWireModel(
|
|
996
|
+
logicalModel,
|
|
997
|
+
asOptionalTrimmedString(args.openAiBody.reasoning_effort) ?? args.agentConfig.reasoning_effort
|
|
998
|
+
);
|
|
902
999
|
const rawMessages = Array.isArray(args.openAiBody.messages) ? args.openAiBody.messages : [];
|
|
903
1000
|
const quirks = resolveGeminiModelQuirks(model);
|
|
904
1001
|
const isClaude = quirks.isClaudeCrossModel;
|
|
@@ -916,8 +1013,8 @@ function buildCloudCodeAssistPayload(args) {
|
|
|
916
1013
|
throw new Error("Antigravity Cloud Code Assist request has no user/model contents.");
|
|
917
1014
|
}
|
|
918
1015
|
const prompt = args.agentConfig.prompt?.trim();
|
|
919
|
-
if (prompt) systemTexts.unshift(prompt);
|
|
920
|
-
const request = {
|
|
1016
|
+
if (prompt && !hasAssembledAgentPrompt(rawMessages)) systemTexts.unshift(prompt);
|
|
1017
|
+
const request = {};
|
|
921
1018
|
if (systemTexts.length > 0) {
|
|
922
1019
|
request.systemInstruction = {
|
|
923
1020
|
role: "user",
|
|
@@ -931,6 +1028,7 @@ function buildCloudCodeAssistPayload(args) {
|
|
|
931
1028
|
request.tools = tools;
|
|
932
1029
|
request.toolConfig = { functionCallingConfig: { mode: "AUTO" } };
|
|
933
1030
|
}
|
|
1031
|
+
request.contents = contents;
|
|
934
1032
|
const generationConfig = {};
|
|
935
1033
|
if (profile?.maxOutputTokens) {
|
|
936
1034
|
generationConfig.maxOutputTokens = profile.maxOutputTokens;
|
|
@@ -1199,6 +1297,8 @@ function buildDevinOAuthCredential(token, now = Date.now()) {
|
|
|
1199
1297
|
}
|
|
1200
1298
|
|
|
1201
1299
|
export {
|
|
1300
|
+
AGENT_PROMPT_IN_MESSAGES,
|
|
1301
|
+
hasAssembledAgentPrompt,
|
|
1202
1302
|
parseSseDataLineJson,
|
|
1203
1303
|
parseSseDataLineObject,
|
|
1204
1304
|
parseUpstreamErrorBody,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getModelPricing
|
|
3
|
-
} from "./chunk-SRCCSTIM.js";
|
|
4
1
|
import {
|
|
5
2
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
|
|
6
3
|
PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
|
|
@@ -15,22 +12,25 @@ import {
|
|
|
15
12
|
builtinAgentCatalogEntryById,
|
|
16
13
|
catalogReleasedAtMs,
|
|
17
14
|
isRetiredCatalogEntry
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KZAT2M2V.js";
|
|
19
16
|
import {
|
|
20
17
|
parsePublicAgentId,
|
|
21
18
|
parseSystemAgentId,
|
|
22
19
|
publicAgentKey
|
|
23
20
|
} from "./chunk-M2EJHDJP.js";
|
|
21
|
+
import {
|
|
22
|
+
getModelPricing
|
|
23
|
+
} from "./chunk-AS6L5KSD.js";
|
|
24
24
|
import {
|
|
25
25
|
getModelConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CD2DK5JA.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "./chunk-KUG52IAP.js";
|
|
30
30
|
import {
|
|
31
31
|
isNoloHostedProvider,
|
|
32
32
|
isPlatformHostedImageModel
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PQ63BDV3.js";
|
|
34
34
|
|
|
35
35
|
// packages/core/publicAgentSeeds.ts
|
|
36
36
|
var AGENT_SEED_DEFAULTS = {
|
|
@@ -192,15 +192,17 @@ var GLM_5_3_FLASH_DEF = defineAgentSeed({
|
|
|
192
192
|
tags: ["nolo", "glm", "flash"]
|
|
193
193
|
});
|
|
194
194
|
var CLAUDE_FABLE_5_1_DEF = defineAgentSeed({
|
|
195
|
+
// presetKey / id / deterministicId 保持不变(硬 key 引用:收藏、Space contentKey、
|
|
196
|
+
// 存量记录与 consultant 档位都按它索引);展示名与 model 随 2026-11-18 换代升级。
|
|
195
197
|
id: deterministicId("01CLDFBL51PB", "shared-space-anthropic-claude-fable-5-1"),
|
|
196
198
|
presetKey: "claude-fable-5-1",
|
|
197
|
-
name: "Claude Fable 5.
|
|
199
|
+
name: "Claude Fable 5.2",
|
|
198
200
|
provider: "nolo",
|
|
199
|
-
model: "anthropic/claude-fable-5-
|
|
201
|
+
model: "anthropic/claude-fable-5-2",
|
|
200
202
|
isPublic: true,
|
|
201
203
|
hasVision: true,
|
|
202
|
-
introduction: "Claude Fable 5.
|
|
203
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F Claude Fable 5.
|
|
204
|
+
introduction: "Claude Fable 5.2 \u516C\u5F00\u52A9\u624B\uFF0C\u9002\u5408\u590D\u6742\u95EE\u7B54\u3001\u957F\u6587\u5206\u6790\u3001\u4EE3\u7801\u548C\u56FE\u7247\u7406\u89E3\u3002",
|
|
205
|
+
greeting: "\u4F60\u597D\uFF0C\u6211\u662F Claude Fable 5.2\u3002\u9002\u5408\u590D\u6742\u95EE\u9898\u3001\u957F\u6587\u5206\u6790\u3001\u4EE3\u7801\u548C\u56FE\u7247\u7406\u89E3\u3002",
|
|
204
206
|
prompt: "\u9762\u5BF9\u590D\u6742\u4EFB\u52A1\u5148\u5398\u6E05\u76EE\u6807\u548C\u7EA6\u675F\uFF0C\u518D\u7ED9\u51FA\u53EF\u9760\u3001\u53EF\u6267\u884C\u3001\u53EF\u590D\u6838\u7684\u7ED3\u679C\u3002",
|
|
205
207
|
tools: [],
|
|
206
208
|
tags: ["anthropic", "claude", "fable"]
|
|
@@ -265,16 +267,18 @@ var GPT_61_SOL_DEF = defineAgentSeed({
|
|
|
265
267
|
tags: ["openai", "gpt", "sol"]
|
|
266
268
|
});
|
|
267
269
|
var KIMI_K3_DEF = defineAgentSeed({
|
|
270
|
+
// presetKey / id 保持不变(硬 key 引用:收藏、Space contentKey、consultant 档位);
|
|
271
|
+
// 展示名与 model 随 2026-11-18 换代升级到 K3.1 Pro。
|
|
268
272
|
id: PUBLIC_KIMI_K3_AGENT_ID,
|
|
269
273
|
presetKey: "kimi-k3",
|
|
270
|
-
name: "Kimi K3",
|
|
274
|
+
name: "Kimi K3.1 Pro",
|
|
271
275
|
provider: "nolo",
|
|
272
|
-
model: "kimi-k3",
|
|
276
|
+
model: "kimi-k3.1-pro",
|
|
273
277
|
isPublic: true,
|
|
274
|
-
// 出自平台模型目录:kimi-k3 hasVision: true、supportsTool: true、1M 上下文。
|
|
278
|
+
// 出自平台模型目录:kimi-k3.1-pro hasVision: true、supportsTool: true、1M 上下文。
|
|
275
279
|
hasVision: true,
|
|
276
|
-
introduction: "Kimi K3 \u516C\u5F00\u52A9\u624B\uFF0C\u8D85\u957F\u4E0A\u4E0B\u6587\u5F3A\u63A8\u7406\u6863\uFF0C\u9002\u5408\u6574\u4EFD\u6587\u6863/\u4EE3\u7801\u5E93\u5206\u6790\u3001\u591A\u6B65\u4EFB\u52A1\u548C\u56FE\u7247\u7406\u89E3\u3002\u9700\u5F00\u901A 199 \u79EF\u5206\u6863\u4F4D\u6216\u8D26\u6237\u4FDD\u6301\u6709\u6548\u4F59\u989D\uFF08\u2265 19 \u79EF\u5206\uFF09\u3002",
|
|
277
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F Kimi K3\u3002\u9002\u5408\u8D85\u957F\u6587\u6863\u3001\u4EE3\u7801\u5E93\u5206\u6790\u548C\u591A\u6B65\u63A8\u7406\uFF1B\u4F7F\u7528\u524D\u8BF7\u786E\u4FDD\u8D26\u6237\u5F00\u901A\u9AD8\u9636\u6863\u4F4D\u6216\u6709\u5145\u8DB3\u53EF\u7528\u4F59\u989D\u3002",
|
|
280
|
+
introduction: "Kimi K3.1 Pro \u516C\u5F00\u52A9\u624B\uFF0C\u8D85\u957F\u4E0A\u4E0B\u6587\u5F3A\u63A8\u7406\u6863\uFF0C\u9002\u5408\u6574\u4EFD\u6587\u6863/\u4EE3\u7801\u5E93\u5206\u6790\u3001\u591A\u6B65\u4EFB\u52A1\u548C\u56FE\u7247\u7406\u89E3\u3002\u9700\u5F00\u901A 199 \u79EF\u5206\u6863\u4F4D\u6216\u8D26\u6237\u4FDD\u6301\u6709\u6548\u4F59\u989D\uFF08\u2265 19 \u79EF\u5206\uFF09\u3002",
|
|
281
|
+
greeting: "\u4F60\u597D\uFF0C\u6211\u662F Kimi K3.1 Pro\u3002\u9002\u5408\u8D85\u957F\u6587\u6863\u3001\u4EE3\u7801\u5E93\u5206\u6790\u548C\u591A\u6B65\u63A8\u7406\uFF1B\u4F7F\u7528\u524D\u8BF7\u786E\u4FDD\u8D26\u6237\u5F00\u901A\u9AD8\u9636\u6863\u4F4D\u6216\u6709\u5145\u8DB3\u53EF\u7528\u4F59\u989D\u3002",
|
|
278
282
|
prompt: "\u5B9A\u4F4D\uFF1A\u8D85\u957F\u4E0A\u4E0B\u6587\u5F3A\u63A8\u7406\u6863\u3002\n\u5DE5\u4F5C\u65B9\u5F0F\uFF1A\u5148\u5728\u6D77\u91CF\u6750\u6599\u91CC\u5B9A\u4F4D\u4E0E\u95EE\u9898\u76F8\u5173\u7684\u90E8\u5206\uFF0C\u518D\u9010\u6B65\u6536\u7A84\u7ED3\u8BBA\uFF1B\u5F15\u7528\u6750\u6599\u65F6\u8BF4\u660E\u51FA\u81EA\u54EA\u4E00\u6BB5\uFF0C\u4E0D\u81C6\u6D4B\u672A\u8BFB\u5230\u7684\u5185\u5BB9\u3002\n\u6D89\u53CA\u4EE3\u7801\u65F6\u7ED9\u51FA\u6539\u52A8\u70B9\u4E0E\u9A8C\u8BC1\u65B9\u5F0F\u3002\n\u56DE\u590D\u65B9\u5F0F\uFF1A\u7ED3\u8BBA\u5148\u884C\uFF0C\u5FC5\u8981\u65F6\u5206\u5C42\u7ED9\u8981\u70B9\u3002",
|
|
279
283
|
tools: [],
|
|
280
284
|
tags: ["moonshot", "kimi", "long-context"]
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HZDK56EK.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WQDTSK5U.js";
|
|
9
9
|
import {
|
|
10
10
|
TIMEOUT,
|
|
11
11
|
asyncThunkCreator,
|
|
12
12
|
buildCreateSlice,
|
|
13
13
|
noloRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6XVPMGXK.js";
|
|
15
15
|
import {
|
|
16
16
|
applyAgentSecretMigrationUpdates,
|
|
17
17
|
migrateAgentSecrets,
|
|
18
18
|
normalizeAgentRuntimeToolPolicy
|
|
19
19
|
} from "./chunk-USGHJSGO.js";
|
|
20
|
+
import {
|
|
21
|
+
createFileCredentialBroker
|
|
22
|
+
} from "./chunk-E6A5NHDH.js";
|
|
20
23
|
import {
|
|
21
24
|
asRecordOrEmpty
|
|
22
25
|
} from "./chunk-KX6YBIHG.js";
|
|
23
|
-
import {
|
|
24
|
-
createFileCredentialBroker
|
|
25
|
-
} from "./chunk-OQHIVPG4.js";
|
|
26
26
|
import {
|
|
27
27
|
isLevelNotFoundError
|
|
28
28
|
} from "./chunk-OW765XBU.js";
|
|
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
|
|
|
458
458
|
const overrides = {};
|
|
459
459
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
460
460
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
461
|
-
const { _executeModel } = await import("./_executeModel-
|
|
461
|
+
const { _executeModel } = await import("./_executeModel-GIFVXKDT.js");
|
|
462
462
|
return _executeModel(
|
|
463
463
|
{
|
|
464
464
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
|
|
|
479
479
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
480
480
|
*/
|
|
481
481
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
482
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
482
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-O2GRCGRZ.js");
|
|
483
483
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
484
484
|
{
|
|
485
485
|
agentKey: args.agentKey,
|
|
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
|
|
|
495
495
|
* 聊天轮次流式 Agent 调用
|
|
496
496
|
*/
|
|
497
497
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
498
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
498
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-OWDJMU5E.js");
|
|
499
499
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
500
500
|
}),
|
|
501
501
|
/**
|