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,26 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCliPrompt
|
|
3
3
|
} from "./chunk-ATNTHIZI.js";
|
|
4
|
-
import {
|
|
5
|
-
applyImageConfigRuntimeOverride,
|
|
6
|
-
buildDynamicContexts,
|
|
7
|
-
buildForegroundTurnAdmissionFetchInit,
|
|
8
|
-
buildStaticContexts,
|
|
9
|
-
compressOldToolResults,
|
|
10
|
-
consumeAgentRunStream,
|
|
11
|
-
mergeAgentToolsWithRuntime,
|
|
12
|
-
mergeContexts,
|
|
13
|
-
projectDesktopToolUiContent,
|
|
14
|
-
pushGate,
|
|
15
|
-
resolveImageGenerationStreamingState,
|
|
16
|
-
resolveTurnToolContext,
|
|
17
|
-
targetForRunKind,
|
|
18
|
-
validateAccessAndBalance,
|
|
19
|
-
withRequestContextBlocks
|
|
20
|
-
} from "./chunk-OYU2MA5S.js";
|
|
21
|
-
import {
|
|
22
|
-
resolveUserSkillRuntime
|
|
23
|
-
} from "./chunk-ZXF6D3I6.js";
|
|
24
4
|
import {
|
|
25
5
|
buildEmptyCompletionRepairBody,
|
|
26
6
|
buildFinalCompletionsRequestBody,
|
|
@@ -30,14 +10,15 @@ import {
|
|
|
30
10
|
persistToolMessages,
|
|
31
11
|
readStreamChunk,
|
|
32
12
|
sendOpenAICompletionsRequest,
|
|
13
|
+
serializeAgentRunMessages,
|
|
33
14
|
updateTotalUsage
|
|
34
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6CXQ3YNJ.js";
|
|
35
16
|
import "./chunk-JEXVIMYZ.js";
|
|
36
17
|
import {
|
|
37
18
|
inlineImageUrlsForCustomProvider,
|
|
38
19
|
prepareTools,
|
|
39
20
|
shouldInlineImageUrlsForAgent
|
|
40
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IIOSZAJX.js";
|
|
41
22
|
import {
|
|
42
23
|
DirectApiKeyResolutionError,
|
|
43
24
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -49,38 +30,58 @@ import {
|
|
|
49
30
|
sanitizeOutboundResponsesInput,
|
|
50
31
|
selectResponsesConversationState,
|
|
51
32
|
updateResponsesConversationState
|
|
52
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VKCPKCSS.js";
|
|
53
34
|
import "./chunk-HS7MLR74.js";
|
|
54
|
-
import
|
|
35
|
+
import {
|
|
36
|
+
selectMaxExecutionTime
|
|
37
|
+
} from "./chunk-FTWAOKFU.js";
|
|
55
38
|
import {
|
|
56
39
|
isGptProModel,
|
|
57
40
|
isPlatformPaidAgentCall,
|
|
58
41
|
shouldBlockForGptPro
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-XCA4WHX5.js";
|
|
43
|
+
import "./chunk-AMWMV56B.js";
|
|
44
|
+
import "./chunk-MVOZ22RZ.js";
|
|
45
|
+
import "./chunk-WDWZPASX.js";
|
|
46
|
+
import "./chunk-OAZP4TSA.js";
|
|
47
|
+
import "./chunk-JFRJEPFI.js";
|
|
48
|
+
import {
|
|
49
|
+
applyImageConfigRuntimeOverride,
|
|
50
|
+
buildDynamicContexts,
|
|
51
|
+
buildForegroundTurnAdmissionFetchInit,
|
|
52
|
+
buildStaticContexts,
|
|
53
|
+
clearGateTurn,
|
|
54
|
+
compressOldToolResults,
|
|
55
|
+
consumeAgentRunStream,
|
|
56
|
+
mergeAgentToolsWithRuntime,
|
|
57
|
+
mergeContexts,
|
|
58
|
+
projectDesktopToolUiContent,
|
|
59
|
+
pushGate,
|
|
60
|
+
resolveImageGenerationStreamingState,
|
|
61
|
+
resolveTurnToolContext,
|
|
62
|
+
targetForRunKind,
|
|
63
|
+
validateAccessAndBalance,
|
|
64
|
+
withRequestContextBlocks
|
|
65
|
+
} from "./chunk-X22AUZKL.js";
|
|
66
|
+
import {
|
|
67
|
+
resolveUserSkillRuntime
|
|
68
|
+
} from "./chunk-XSRSAU3O.js";
|
|
61
69
|
import {
|
|
62
70
|
performServerProxyFetchWithRetry
|
|
63
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-JU7VN4LF.js";
|
|
64
72
|
import {
|
|
65
73
|
createSSEParser,
|
|
66
|
-
selectMaxExecutionTime,
|
|
67
74
|
waitForAbortableDelay
|
|
68
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-LMGFVH65.js";
|
|
69
76
|
import "./chunk-NF64D32W.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-HYLRQDEE.js";
|
|
73
|
-
import "./chunk-BP5ZJ6B4.js";
|
|
74
|
-
import "./chunk-FJ23FZXF.js";
|
|
75
|
-
import "./chunk-AGIM7IMJ.js";
|
|
76
|
-
import "./chunk-63W5N6P3.js";
|
|
77
|
+
import "./chunk-UOUMPHS5.js";
|
|
78
|
+
import "./chunk-J2VIGDJN.js";
|
|
77
79
|
import "./chunk-VF4K2QE6.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import
|
|
82
|
-
|
|
83
|
-
} from "./chunk-547ENH5T.js";
|
|
80
|
+
import "./chunk-OLGFIQN2.js";
|
|
81
|
+
import "./chunk-CD64YXRB.js";
|
|
82
|
+
import "./chunk-AGIM7IMJ.js";
|
|
83
|
+
import "./chunk-ODBYGVO2.js";
|
|
84
|
+
import "./chunk-HCCQEMTK.js";
|
|
84
85
|
import {
|
|
85
86
|
addToolMessage,
|
|
86
87
|
addUserMessage,
|
|
@@ -102,19 +103,40 @@ import {
|
|
|
102
103
|
updateDialogSummaryAction,
|
|
103
104
|
updateTokens,
|
|
104
105
|
updateToolMessage
|
|
105
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-YFW4H6DL.js";
|
|
106
107
|
import "./chunk-TZXPT53C.js";
|
|
107
108
|
import "./chunk-BUDVRYES.js";
|
|
108
109
|
import "./chunk-523DITKR.js";
|
|
109
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-N74XL3NI.js";
|
|
111
|
+
import {
|
|
112
|
+
getCurrentSpaceId
|
|
113
|
+
} from "./chunk-FFFKAOJN.js";
|
|
110
114
|
import "./chunk-BYXBJQAS.js";
|
|
111
|
-
import "./chunk-QYPE3TS3.js";
|
|
112
115
|
import {
|
|
113
116
|
createCliChatTurnStream,
|
|
114
117
|
getCliChatSession,
|
|
115
118
|
startCliChatSession
|
|
116
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-ARFCL53U.js";
|
|
117
120
|
import "./chunk-5RGU3J7P.js";
|
|
121
|
+
import "./chunk-UVLYNWIE.js";
|
|
122
|
+
import "./chunk-YNIYE47Z.js";
|
|
123
|
+
import "./chunk-V4IYI3SB.js";
|
|
124
|
+
import "./chunk-UAD2WT54.js";
|
|
125
|
+
import {
|
|
126
|
+
patch,
|
|
127
|
+
read,
|
|
128
|
+
selectById,
|
|
129
|
+
write
|
|
130
|
+
} from "./chunk-HZDK56EK.js";
|
|
131
|
+
import "./chunk-3PVYUPXK.js";
|
|
132
|
+
import "./chunk-X3OZ655T.js";
|
|
133
|
+
import "./chunk-HXER7YJF.js";
|
|
134
|
+
import "./chunk-FGHEF6WI.js";
|
|
135
|
+
import "./chunk-DXWGFL2Z.js";
|
|
136
|
+
import "./chunk-3L2WKC3W.js";
|
|
137
|
+
import "./chunk-S25VJYXV.js";
|
|
138
|
+
import "./chunk-KQHEGELM.js";
|
|
139
|
+
import "./chunk-QYPE3TS3.js";
|
|
118
140
|
import {
|
|
119
141
|
addActiveController,
|
|
120
142
|
claimDialogTurnPhase,
|
|
@@ -128,59 +150,36 @@ import {
|
|
|
128
150
|
setDialogTurnPhase,
|
|
129
151
|
subscribe,
|
|
130
152
|
tokenUsageLiveUpdate
|
|
131
|
-
} from "./chunk-
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-5FUN7EG4.js";
|
|
135
|
-
import "./chunk-5ZUOVCKT.js";
|
|
136
|
-
import "./chunk-DXWGFL2Z.js";
|
|
137
|
-
import "./chunk-3L2WKC3W.js";
|
|
138
|
-
import "./chunk-TI2EPRHE.js";
|
|
139
|
-
import {
|
|
140
|
-
selectCurrentServer
|
|
141
|
-
} from "./chunk-ATEKLSLR.js";
|
|
142
|
-
import "./chunk-DEA37IUY.js";
|
|
143
|
-
import "./chunk-UAD2WT54.js";
|
|
144
|
-
import {
|
|
145
|
-
patch,
|
|
146
|
-
read,
|
|
147
|
-
selectById,
|
|
148
|
-
write
|
|
149
|
-
} from "./chunk-CMMI3DAT.js";
|
|
150
|
-
import "./chunk-3PVYUPXK.js";
|
|
151
|
-
import "./chunk-DGYCDA6W.js";
|
|
152
|
-
import "./chunk-4ZGPHFLE.js";
|
|
153
|
+
} from "./chunk-U35UUM5K.js";
|
|
154
|
+
import "./chunk-RD3QLZQV.js";
|
|
155
|
+
import "./chunk-ZM5AZTQG.js";
|
|
153
156
|
import {
|
|
154
157
|
selectRuntimeCurrentServer
|
|
155
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-WQDTSK5U.js";
|
|
156
159
|
import "./chunk-UEILX4EV.js";
|
|
157
|
-
import "./chunk-
|
|
160
|
+
import "./chunk-XJSEST7D.js";
|
|
161
|
+
import {
|
|
162
|
+
selectCurrentServer
|
|
163
|
+
} from "./chunk-MTM4LRVG.js";
|
|
164
|
+
import "./chunk-6XVPMGXK.js";
|
|
158
165
|
import {
|
|
159
166
|
getIsDesktopApp
|
|
160
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-YHNUDTU4.js";
|
|
168
|
+
import "./chunk-YJPK35HB.js";
|
|
169
|
+
import "./chunk-QQ56R7KS.js";
|
|
161
170
|
import {
|
|
162
171
|
selectIdentityToken,
|
|
163
172
|
selectIdentityUser,
|
|
164
173
|
selectIdentityUserId
|
|
165
174
|
} from "./chunk-PXYBUFDB.js";
|
|
166
|
-
import "./chunk-QQ56R7KS.js";
|
|
167
175
|
import "./chunk-GBWGPTA7.js";
|
|
168
|
-
import "./chunk-OOJNQK6V.js";
|
|
169
|
-
import "./chunk-HXER7YJF.js";
|
|
170
|
-
import "./chunk-BV3FLP2L.js";
|
|
171
176
|
import {
|
|
172
177
|
applyPublicAgentCatalogOverride
|
|
173
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-MZVCFV3T.js";
|
|
174
179
|
import {
|
|
175
180
|
applyBuiltinAgentRuntimeOverride,
|
|
176
181
|
resolveBuiltinPlatformAgentRecord
|
|
177
|
-
} from "./chunk-
|
|
178
|
-
import "./chunk-SRCCSTIM.js";
|
|
179
|
-
import {
|
|
180
|
-
getPublicImageAgentDefaultProfile,
|
|
181
|
-
getPublicImageAgentMode
|
|
182
|
-
} from "./chunk-VIDPVFP3.js";
|
|
183
|
-
import "./chunk-4JH2UMJR.js";
|
|
182
|
+
} from "./chunk-JP2BH4NC.js";
|
|
184
183
|
import {
|
|
185
184
|
assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
|
|
186
185
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
@@ -188,108 +187,118 @@ import {
|
|
|
188
187
|
evaluateRequestBudget,
|
|
189
188
|
extractImageUrlsFromMessages,
|
|
190
189
|
stripImagePartsForTextOnlyAgent
|
|
191
|
-
} from "./chunk-
|
|
192
|
-
import "./chunk-2WZXXAQD.js";
|
|
193
|
-
import "./chunk-DUUDXSLX.js";
|
|
190
|
+
} from "./chunk-4OXPN3WC.js";
|
|
194
191
|
import {
|
|
195
192
|
projectUserPartForModel
|
|
196
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-2FK2KZSL.js";
|
|
197
194
|
import "./chunk-56GBUMO5.js";
|
|
198
|
-
import "./chunk-
|
|
195
|
+
import "./chunk-Z7KE4K3H.js";
|
|
196
|
+
import "./chunk-ITBX27W6.js";
|
|
197
|
+
import "./chunk-KXOPLLFP.js";
|
|
198
|
+
import "./chunk-QJTZ76CP.js";
|
|
199
199
|
import {
|
|
200
200
|
extractImagePartsFromResponseOutput,
|
|
201
201
|
extractTextFromResponseOutput,
|
|
202
202
|
toResponsesTools
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-W3HSD32M.js";
|
|
204
204
|
import "./chunk-X4O7FJF5.js";
|
|
205
|
-
import "./chunk-
|
|
206
|
-
import "./chunk-
|
|
207
|
-
import {
|
|
208
|
-
resolveRuntimeToolSurfaceForAgent
|
|
209
|
-
} from "./chunk-VS276URX.js";
|
|
205
|
+
import "./chunk-BYXBJQAS.js";
|
|
206
|
+
import "./chunk-SX6AWTNK.js";
|
|
210
207
|
import {
|
|
211
208
|
isContextOverflowText,
|
|
212
209
|
parseApiError
|
|
213
210
|
} from "./chunk-TLE77UJ5.js";
|
|
211
|
+
import "./chunk-WFGNWWJI.js";
|
|
214
212
|
import {
|
|
215
213
|
resolveAgentCallPlan,
|
|
216
214
|
resolveClientWire
|
|
217
|
-
} from "./chunk-
|
|
218
|
-
import "./chunk-
|
|
215
|
+
} from "./chunk-VUHKG4KS.js";
|
|
216
|
+
import "./chunk-YDRRGVT5.js";
|
|
219
217
|
import {
|
|
220
218
|
resolveAgentContextWindow
|
|
221
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-LTVEOOZL.js";
|
|
222
220
|
import "./chunk-5ZUL4CUO.js";
|
|
223
221
|
import {
|
|
224
222
|
getModelInfo
|
|
225
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-MAA42MMV.js";
|
|
226
224
|
import "./chunk-H57T64RA.js";
|
|
227
225
|
import "./chunk-UKZX3NHN.js";
|
|
226
|
+
import "./chunk-SR4FE5VD.js";
|
|
228
227
|
import "./chunk-5MMAK75Q.js";
|
|
229
228
|
import "./chunk-USGHJSGO.js";
|
|
229
|
+
import "./chunk-E6A5NHDH.js";
|
|
230
230
|
import {
|
|
231
231
|
asRecordOrEmpty
|
|
232
232
|
} from "./chunk-KX6YBIHG.js";
|
|
233
|
-
import "./chunk-OQHIVPG4.js";
|
|
234
|
-
import "./chunk-DWLEOOGR.js";
|
|
235
|
-
import {
|
|
236
|
-
isAbortError
|
|
237
|
-
} from "./chunk-7DPNBQSV.js";
|
|
238
|
-
import "./chunk-OW765XBU.js";
|
|
239
233
|
import "./chunk-EWQ3HGNZ.js";
|
|
240
234
|
import {
|
|
241
235
|
estimateTokenCount
|
|
242
236
|
} from "./chunk-PSCNXBYA.js";
|
|
237
|
+
import "./chunk-DWLEOOGR.js";
|
|
238
|
+
import "./chunk-OW765XBU.js";
|
|
239
|
+
import {
|
|
240
|
+
isAbortError
|
|
241
|
+
} from "./chunk-7DPNBQSV.js";
|
|
242
|
+
import "./chunk-YGDYYFRX.js";
|
|
243
|
+
import "./chunk-2SXN7LAY.js";
|
|
243
244
|
import "./chunk-G7Y4GXTY.js";
|
|
244
245
|
import "./chunk-6UBGXX2W.js";
|
|
245
|
-
import "./chunk-
|
|
246
|
-
import "./chunk-
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
249
|
-
import
|
|
250
|
-
isSystemBuiltinTrustedAgentKey
|
|
251
|
-
} from "./chunk-ILHQ2AXT.js";
|
|
252
|
-
import {
|
|
253
|
-
extractCustomId
|
|
254
|
-
} from "./chunk-M2EJHDJP.js";
|
|
246
|
+
import "./chunk-BV3FLP2L.js";
|
|
247
|
+
import "./chunk-6MTVACLN.js";
|
|
248
|
+
import "./chunk-AETZ7AD6.js";
|
|
249
|
+
import "./chunk-CO6E7YK6.js";
|
|
250
|
+
import "./chunk-KHCLMKZZ.js";
|
|
255
251
|
import "./chunk-SYTHYBMI.js";
|
|
256
252
|
import {
|
|
257
253
|
createDialogMessageKeyAndId,
|
|
258
254
|
dialogMessageKey
|
|
259
255
|
} from "./chunk-OJKUU3LP.js";
|
|
260
256
|
import "./chunk-YZMNK53S.js";
|
|
257
|
+
import {
|
|
258
|
+
resolveRuntimeToolSurfaceForAgent
|
|
259
|
+
} from "./chunk-NEG5LYK5.js";
|
|
260
|
+
import "./chunk-YLAHYLDQ.js";
|
|
261
|
+
import {
|
|
262
|
+
isSystemBuiltinTrustedAgentKey
|
|
263
|
+
} from "./chunk-KZAT2M2V.js";
|
|
264
|
+
import {
|
|
265
|
+
extractCustomId
|
|
266
|
+
} from "./chunk-M2EJHDJP.js";
|
|
261
267
|
import "./chunk-I42VC5KR.js";
|
|
268
|
+
import "./chunk-AS6L5KSD.js";
|
|
269
|
+
import {
|
|
270
|
+
getPublicImageAgentDefaultProfile,
|
|
271
|
+
getPublicImageAgentMode
|
|
272
|
+
} from "./chunk-VIDPVFP3.js";
|
|
273
|
+
import "./chunk-4JH2UMJR.js";
|
|
262
274
|
import "./chunk-U6VC4MU4.js";
|
|
263
|
-
import "./chunk-3P54D2E4.js";
|
|
264
|
-
import "./chunk-BNMPUQW6.js";
|
|
265
|
-
import "./chunk-KHCLMKZZ.js";
|
|
266
275
|
import "./chunk-LCBAMY2M.js";
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import "./chunk-
|
|
269
|
-
import "./chunk-RTHFJZ6M.js";
|
|
270
|
-
import {
|
|
271
|
-
isOpenAiResponsesModel
|
|
272
|
-
} from "./chunk-HBRDSQ3M.js";
|
|
276
|
+
import "./chunk-6ASGEP5D.js";
|
|
277
|
+
import "./chunk-CTWCZKNS.js";
|
|
273
278
|
import {
|
|
274
279
|
toErrorMessage
|
|
275
280
|
} from "./chunk-HNMXYYJR.js";
|
|
281
|
+
import "./chunk-K26XPZRB.js";
|
|
282
|
+
import {
|
|
283
|
+
isOpenAiResponsesModel
|
|
284
|
+
} from "./chunk-ESN4WNWU.js";
|
|
276
285
|
import {
|
|
277
286
|
asTrimmedString
|
|
278
287
|
} from "./chunk-3EUW3WEO.js";
|
|
288
|
+
import "./chunk-WWC7I6TA.js";
|
|
279
289
|
import {
|
|
280
290
|
getApiEndpoint
|
|
281
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-CD2DK5JA.js";
|
|
282
292
|
import "./chunk-JRTNUU5Z.js";
|
|
283
293
|
import {
|
|
284
294
|
isRecord
|
|
285
295
|
} from "./chunk-KUG52IAP.js";
|
|
286
|
-
import "./chunk-WWC7I6TA.js";
|
|
287
296
|
import {
|
|
288
297
|
asOptionalTrimmedString
|
|
289
298
|
} from "./chunk-G3SUCT4W.js";
|
|
290
299
|
import "./chunk-4SN6J65J.js";
|
|
291
300
|
import "./chunk-CF7PE763.js";
|
|
292
|
-
import "./chunk-
|
|
301
|
+
import "./chunk-PQ63BDV3.js";
|
|
293
302
|
import "./chunk-QSJ3HFEF.js";
|
|
294
303
|
import "./chunk-U67V476Y.js";
|
|
295
304
|
|
|
@@ -530,7 +539,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
530
539
|
parentMessageId,
|
|
531
540
|
messageMetadata,
|
|
532
541
|
quickChatPerfStartedAt,
|
|
533
|
-
fallbackBodyData
|
|
542
|
+
fallbackBodyData,
|
|
543
|
+
userMessageId
|
|
534
544
|
}) => {
|
|
535
545
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
536
546
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -763,7 +773,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
763
773
|
agentConfig,
|
|
764
774
|
messageId,
|
|
765
775
|
dialogId,
|
|
766
|
-
dialogKey
|
|
776
|
+
dialogKey,
|
|
777
|
+
userMessageId
|
|
767
778
|
})
|
|
768
779
|
).unwrap();
|
|
769
780
|
state.content = Array.isArray(result.finalContentBuffer) ? result.finalContentBuffer.filter((part) => part?.type === "text").map((part) => part.text ?? "").join("") : state.content;
|
|
@@ -1320,6 +1331,7 @@ async function* runDesktopAgentRuntimeTurnStream({
|
|
|
1320
1331
|
fetchImpl = fetch,
|
|
1321
1332
|
signal,
|
|
1322
1333
|
noEventWatchdogMs,
|
|
1334
|
+
authToken,
|
|
1323
1335
|
...args
|
|
1324
1336
|
}) {
|
|
1325
1337
|
try {
|
|
@@ -1327,9 +1339,13 @@ async function* runDesktopAgentRuntimeTurnStream({
|
|
|
1327
1339
|
yield { type: "error", error: "The operation was aborted." };
|
|
1328
1340
|
return;
|
|
1329
1341
|
}
|
|
1342
|
+
const trimmedAuthToken = asTrimmedString(authToken) ?? "";
|
|
1330
1343
|
const response = await fetchImpl("/api/desktop/agent-runtime/turn", {
|
|
1331
1344
|
method: "POST",
|
|
1332
|
-
headers: {
|
|
1345
|
+
headers: {
|
|
1346
|
+
"Content-Type": "application/json",
|
|
1347
|
+
...trimmedAuthToken ? { Authorization: `Bearer ${trimmedAuthToken}` } : {}
|
|
1348
|
+
},
|
|
1333
1349
|
body: JSON.stringify(buildDesktopAgentRuntimeTurnBody(args)),
|
|
1334
1350
|
signal
|
|
1335
1351
|
});
|
|
@@ -2045,7 +2061,45 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2045
2061
|
let loopKey = null;
|
|
2046
2062
|
let runtimeDialogKey = explicitDialogKey ?? null;
|
|
2047
2063
|
let turnPhaseTurnId = null;
|
|
2064
|
+
const secretGateTurnId = createDialogMessageKeyAndId("secret-gate").messageId;
|
|
2065
|
+
const secretGateAnchors = /* @__PURE__ */ new Set();
|
|
2066
|
+
const receiveActionGate = (gate, target, dialogId) => {
|
|
2067
|
+
const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
|
|
2068
|
+
if (!secret || target?.kind === "local") {
|
|
2069
|
+
pushGate(gate, target);
|
|
2070
|
+
return;
|
|
2071
|
+
}
|
|
2072
|
+
const { messageId, key } = createDialogMessageKeyAndId(dialogId);
|
|
2073
|
+
secretGateAnchors.add(messageId);
|
|
2074
|
+
pushGate(gate, target, { dialogId, turnId: secretGateTurnId, messageId });
|
|
2075
|
+
dispatch(messageStreaming({
|
|
2076
|
+
id: messageId,
|
|
2077
|
+
dbKey: key,
|
|
2078
|
+
dialogId,
|
|
2079
|
+
role: "tool",
|
|
2080
|
+
toolName: "secret-request",
|
|
2081
|
+
content: "",
|
|
2082
|
+
isStreaming: true
|
|
2083
|
+
}));
|
|
2084
|
+
};
|
|
2048
2085
|
const batchExecution = createUserBatchExecution(loopController.signal, () => !thunkApi.signal.aborted && (!turnPhaseTurnId || !runtimeDialogKey || getDialogRuntimeState(runtimeDialogKey).turnPhaseTurnId === turnPhaseTurnId));
|
|
2086
|
+
const workMemoryUserMessageId = (dialogId, activeId) => {
|
|
2087
|
+
if (!activeId) return void 0;
|
|
2088
|
+
const users = selectAllMsgs(getState(), dialogId).filter((message) => message.role === "user");
|
|
2089
|
+
const bound = users.find((message) => message.id === activeId);
|
|
2090
|
+
if (!bound || bound.metadata?.queueState === "pending") return void 0;
|
|
2091
|
+
const receipt = bound.metadata?.userBatchReceipt;
|
|
2092
|
+
if (receipt) {
|
|
2093
|
+
const ids = receipt.messageIds;
|
|
2094
|
+
return Array.isArray(ids) && ids.length === 1 && ids[0] === activeId ? activeId : void 0;
|
|
2095
|
+
}
|
|
2096
|
+
const batchId = bound.metadata?.acceptedUserBatchId;
|
|
2097
|
+
if (batchId) {
|
|
2098
|
+
const batch = users.filter((message) => message.metadata?.acceptedUserBatchId === batchId);
|
|
2099
|
+
return batch.length === 1 && batch[0]?.id === activeId ? activeId : void 0;
|
|
2100
|
+
}
|
|
2101
|
+
return activeId;
|
|
2102
|
+
};
|
|
2049
2103
|
let remoteTransientMessageId = null;
|
|
2050
2104
|
let remoteTransientMessageFinalized = false;
|
|
2051
2105
|
let modelRequestStarted = false;
|
|
@@ -2240,7 +2294,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2240
2294
|
agentKey,
|
|
2241
2295
|
userInput: agentRunUserInput,
|
|
2242
2296
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
2243
|
-
messages: cleanedMessages,
|
|
2297
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
2244
2298
|
stream: true,
|
|
2245
2299
|
persistDialog: true,
|
|
2246
2300
|
continueDialogId: dialogId2,
|
|
@@ -2251,7 +2305,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2251
2305
|
runtime: "react",
|
|
2252
2306
|
entrypoint: "chat-dialog",
|
|
2253
2307
|
capabilities: ["streaming", "dialog-ui", "machine-bound-cli", "durable-user-batch", "client-user-prepersisted"],
|
|
2254
|
-
userMessageId
|
|
2308
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {}
|
|
2255
2309
|
},
|
|
2256
2310
|
...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
|
|
2257
2311
|
}),
|
|
@@ -2299,12 +2353,13 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2299
2353
|
return { reject: payload.message || "\u7535\u8111\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
2300
2354
|
}
|
|
2301
2355
|
if (payload.type === "action_gate" && payload.gate) {
|
|
2302
|
-
|
|
2356
|
+
receiveActionGate(
|
|
2303
2357
|
payload.gate,
|
|
2304
2358
|
targetForRunKind("server-run", {
|
|
2305
2359
|
server: currentServer2,
|
|
2306
2360
|
token
|
|
2307
|
-
})
|
|
2361
|
+
}),
|
|
2362
|
+
dialogId2
|
|
2308
2363
|
);
|
|
2309
2364
|
}
|
|
2310
2365
|
remoteToolHandlers.handleToolPayload(payload);
|
|
@@ -2714,6 +2769,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2714
2769
|
};
|
|
2715
2770
|
try {
|
|
2716
2771
|
const desktopAgentRef = agentConfig.dbKey || agentKey;
|
|
2772
|
+
const desktopTurnAuthToken = selectIdentityToken(getState());
|
|
2717
2773
|
const eventStream = await dispatch(runPendingUserBatchRequest({
|
|
2718
2774
|
dialogKey,
|
|
2719
2775
|
signal: loopController.signal,
|
|
@@ -2751,7 +2807,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2751
2807
|
// 未分类的 "stream stalled" 而不是 runtime 的
|
|
2752
2808
|
// LLM_REQUEST_TIMEOUT 可操作文案。取 2× = 20 分钟:
|
|
2753
2809
|
// 只兜「runtime 完全没 deadline」的真悬挂。
|
|
2754
|
-
noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS
|
|
2810
|
+
noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS,
|
|
2811
|
+
...desktopTurnAuthToken ? { authToken: desktopTurnAuthToken } : {}
|
|
2755
2812
|
});
|
|
2756
2813
|
const first = iterator.next();
|
|
2757
2814
|
return async function* () {
|
|
@@ -2856,9 +2913,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2856
2913
|
} else if (event.type === "execution_location") {
|
|
2857
2914
|
desktopToolExecutionLocation = event.location;
|
|
2858
2915
|
} else if (event.type === "action_gate") {
|
|
2859
|
-
|
|
2916
|
+
receiveActionGate(
|
|
2860
2917
|
event.gate,
|
|
2861
|
-
targetForRunKind("desktop-local")
|
|
2918
|
+
targetForRunKind("desktop-local"),
|
|
2919
|
+
dialogId
|
|
2862
2920
|
);
|
|
2863
2921
|
} else if (event.type === "done") {
|
|
2864
2922
|
streamResult = event.result;
|
|
@@ -3176,7 +3234,7 @@ ${info.actionHint}` : streamError;
|
|
|
3176
3234
|
agentKey,
|
|
3177
3235
|
userInput: agentRunUserInput,
|
|
3178
3236
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
3179
|
-
messages: cleanedMessages,
|
|
3237
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
3180
3238
|
stream: true,
|
|
3181
3239
|
persistDialog: false,
|
|
3182
3240
|
clientDialogId: dialogId,
|
|
@@ -3256,12 +3314,13 @@ ${info.actionHint}` : streamError;
|
|
|
3256
3314
|
return { reject: payload.message || "\u8FDC\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
3257
3315
|
}
|
|
3258
3316
|
if (payload.type === "action_gate" && payload.gate) {
|
|
3259
|
-
|
|
3317
|
+
receiveActionGate(
|
|
3260
3318
|
payload.gate,
|
|
3261
3319
|
targetForRunKind("server-run", {
|
|
3262
3320
|
server: explicitServerBase,
|
|
3263
3321
|
token
|
|
3264
|
-
})
|
|
3322
|
+
}),
|
|
3323
|
+
dialogId
|
|
3265
3324
|
);
|
|
3266
3325
|
}
|
|
3267
3326
|
if (payload.type === "agent_handoff") {
|
|
@@ -3367,7 +3426,8 @@ ${info.actionHint}` : streamError;
|
|
|
3367
3426
|
referencedTools: referenceTools,
|
|
3368
3427
|
recommendedSkillTools: turnToolContext.recommendedSkillTools,
|
|
3369
3428
|
recommendedSkillHints: turnToolContext.recommendedSkillHints,
|
|
3370
|
-
skillPromptPatches: turnToolContext.skillPromptPatches
|
|
3429
|
+
skillPromptPatches: turnToolContext.skillPromptPatches,
|
|
3430
|
+
skillPromptContributions: turnToolContext.skillPromptContributions
|
|
3371
3431
|
};
|
|
3372
3432
|
const initialRawMsgs = selectAdmittedMessages(selectAllMsgs(state, dialogId));
|
|
3373
3433
|
const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
|
|
@@ -3417,7 +3477,7 @@ ${info.actionHint}` : streamError;
|
|
|
3417
3477
|
responseApi: true
|
|
3418
3478
|
});
|
|
3419
3479
|
let appendTempUserInput2 = true;
|
|
3420
|
-
let activeTurnUserMessageId2;
|
|
3480
|
+
let activeTurnUserMessageId2 = args.userMessageId;
|
|
3421
3481
|
let currentParentMessageId2 = parentMessageId ?? void 0;
|
|
3422
3482
|
const storedResponsesState = currentDialog?.responsesState;
|
|
3423
3483
|
let responsesState = selectResponsesConversationState(
|
|
@@ -3551,12 +3611,6 @@ ${info.actionHint}` : streamError;
|
|
|
3551
3611
|
isStreaming: false
|
|
3552
3612
|
}
|
|
3553
3613
|
];
|
|
3554
|
-
activeTurnUserMessageId2 = tempId;
|
|
3555
|
-
} else {
|
|
3556
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3557
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3558
|
-
activeTurnUserMessageId2 = lastMsg.id;
|
|
3559
|
-
}
|
|
3560
3614
|
}
|
|
3561
3615
|
}
|
|
3562
3616
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3617,24 +3671,28 @@ ${info.actionHint}` : streamError;
|
|
|
3617
3671
|
dynamicMessageCount: dynamicMessages.length,
|
|
3618
3672
|
stableMessageCount: stableMessages.length
|
|
3619
3673
|
});
|
|
3620
|
-
modelRequestStarted = true;
|
|
3621
3674
|
const meta = await dispatch(runPendingUserBatchRequest({
|
|
3622
3675
|
dialogKey,
|
|
3623
3676
|
signal: loopController.signal,
|
|
3624
3677
|
execution: batchExecution,
|
|
3625
3678
|
requestUserInput,
|
|
3626
|
-
start: () =>
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3679
|
+
start: () => {
|
|
3680
|
+
modelRequestStarted = true;
|
|
3681
|
+
return sendOpenAIResponseRequest({
|
|
3682
|
+
bodyData,
|
|
3683
|
+
agentConfig: agentConfigForCall,
|
|
3684
|
+
thunkApi,
|
|
3685
|
+
dialogKey,
|
|
3686
|
+
parentMessageId: currentParentMessageId2,
|
|
3687
|
+
messageMetadata: streamingMessageMetadata,
|
|
3688
|
+
quickChatPerfStartedAt,
|
|
3689
|
+
fallbackBodyData,
|
|
3690
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId2)
|
|
3691
|
+
});
|
|
3692
|
+
}
|
|
3636
3693
|
})).unwrap();
|
|
3637
|
-
if (
|
|
3694
|
+
if (isTurnAborted()) return { aborted: true };
|
|
3695
|
+
if (!meta) throw new Error("Model request returned no result; reply did not complete");
|
|
3638
3696
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
|
|
3639
3697
|
responseApi: true,
|
|
3640
3698
|
hasToolCalls: meta.hasToolCalls,
|
|
@@ -3741,7 +3799,7 @@ ${info.actionHint}` : streamError;
|
|
|
3741
3799
|
responseApi: false
|
|
3742
3800
|
});
|
|
3743
3801
|
let appendTempUserInput = true;
|
|
3744
|
-
let activeTurnUserMessageId;
|
|
3802
|
+
let activeTurnUserMessageId = args.userMessageId;
|
|
3745
3803
|
let currentParentMessageId = parentMessageId ?? void 0;
|
|
3746
3804
|
const w = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
3747
3805
|
if (w) w.__LOOP_STOP_REASON__ = null;
|
|
@@ -3864,12 +3922,6 @@ ${info.actionHint}` : streamError;
|
|
|
3864
3922
|
isStreaming: false
|
|
3865
3923
|
}
|
|
3866
3924
|
];
|
|
3867
|
-
activeTurnUserMessageId = tempId;
|
|
3868
|
-
} else {
|
|
3869
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3870
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3871
|
-
activeTurnUserMessageId = lastMsg.id;
|
|
3872
|
-
}
|
|
3873
3925
|
}
|
|
3874
3926
|
}
|
|
3875
3927
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3929,7 +3981,6 @@ ${info.actionHint}` : streamError;
|
|
|
3929
3981
|
dynamicMessageCount: dynamicMessages.length,
|
|
3930
3982
|
stableMessageCount: stableMessages.length
|
|
3931
3983
|
});
|
|
3932
|
-
modelRequestStarted = true;
|
|
3933
3984
|
const disableToolsForThisRequest = shouldDisableQuickChatToolsForDirectAnswer(
|
|
3934
3985
|
quickChatPerfStartedAt,
|
|
3935
3986
|
userInput,
|
|
@@ -3951,18 +4002,23 @@ ${info.actionHint}` : streamError;
|
|
|
3951
4002
|
signal: loopController.signal,
|
|
3952
4003
|
execution: batchExecution,
|
|
3953
4004
|
requestUserInput,
|
|
3954
|
-
start: () =>
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
4005
|
+
start: () => {
|
|
4006
|
+
modelRequestStarted = true;
|
|
4007
|
+
return sendOpenAICompletionsRequest({
|
|
4008
|
+
bodyData,
|
|
4009
|
+
agentConfig: agentConfigForCall,
|
|
4010
|
+
thunkApi,
|
|
4011
|
+
dialogKey,
|
|
4012
|
+
parentMessageId: currentParentMessageId,
|
|
4013
|
+
messageMetadata: streamingMessageMetadata,
|
|
4014
|
+
disableToolsForThisRequest,
|
|
4015
|
+
quickChatPerfStartedAt,
|
|
4016
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId)
|
|
4017
|
+
});
|
|
4018
|
+
}
|
|
3964
4019
|
})).unwrap();
|
|
3965
|
-
if (
|
|
4020
|
+
if (isTurnAborted()) return { aborted: true };
|
|
4021
|
+
if (!meta) throw new Error("Model request returned no result; reply did not complete");
|
|
3966
4022
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
|
|
3967
4023
|
responseApi: false,
|
|
3968
4024
|
hasToolCalls: meta.hasToolCalls,
|
|
@@ -4018,6 +4074,8 @@ ${info.actionHint}` : streamError;
|
|
|
4018
4074
|
break;
|
|
4019
4075
|
}
|
|
4020
4076
|
}
|
|
4077
|
+
if (isTurnAborted()) return { aborted: true };
|
|
4078
|
+
if (!modelRequestStarted) throw new Error("Model request did not start; reply did not complete");
|
|
4021
4079
|
return {
|
|
4022
4080
|
usage: totalTurnUsage ?? void 0
|
|
4023
4081
|
};
|
|
@@ -4066,6 +4124,8 @@ ${info.actionHint}` : streamError;
|
|
|
4066
4124
|
);
|
|
4067
4125
|
} finally {
|
|
4068
4126
|
batchExecution.dispose();
|
|
4127
|
+
clearGateTurn(secretGateTurnId);
|
|
4128
|
+
for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
|
|
4069
4129
|
clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
|
|
4070
4130
|
if (loopKey && runtimeDialogKey) {
|
|
4071
4131
|
dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
|