nolo-cli 0.225.0-alpha.1 → 0.225.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/{_executeModel-L5VHAXSU.js → _executeModel-UCWDB72C.js} +79 -73
- package/{action-CK64LS6S.js → action-24MZYW2B.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-HEMCSSHT.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-SQYDOXHA.js} +15 -14
- package/{agentDeleteCommand-4WC7INCX.js → agentDeleteCommand-P7O3ACNJ.js} +131 -124
- package/{agentEmailCommands-3XFR6WY7.js → agentEmailCommands-A5BRSYWK.js} +134 -123
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-BBCP5XYW.js → agentListCommands-LDRCOOMO.js} +112 -496
- package/{agentMachineCommands-YZDCOLQL.js → agentMachineCommands-AYL53KJV.js} +65 -58
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-N5EA3ED2.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-FICBZ57C.js +188 -0
- package/{agentRunCommand-NHYBV4G5.js → agentRunCommand-CTXQGDUM.js} +135 -120
- package/{agentRunControl-7A2FOXIJ.js → agentRunControl-CO6BASZF.js} +20 -14
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5YN4D5WT.js} +48 -41
- package/{agentSlice-O6IGTM3Y.js → agentSlice-DJ5D4DU4.js} +18 -17
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-B4E7N7M2.js} +58 -51
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-E4DTXRRM.js} +58 -51
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-FCNHYHZM.js} +58 -51
- package/{appGetCommands-LN72GAOA.js → appGetCommands-4DXSQHUZ.js} +58 -51
- package/{appListCommands-IJQQ3VND.js → appListCommands-2NN5E4F6.js} +58 -51
- package/{authCommand-7JXW54U4.js → authCommand-47DR6GZT.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-ZZ3L5IFM.js} +16 -11
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +5 -5
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-VZWAY2KR.js} +6 -6
- package/{chunk-YDBMZ7FV.js → chunk-24GVXSWK.js} +3 -3
- package/{chunk-JCK3EFZS.js → chunk-25OCZXSX.js} +63 -32
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-N5PQJKCY.js → chunk-2XMKW2OY.js} +13 -12
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-UKS7D2NL.js → chunk-3NFWMSTA.js} +111 -26
- package/{chunk-TZEP5J4A.js → chunk-3V6JT6WN.js} +2935 -1412
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-VFBVA3U2.js → chunk-5TJE4QCL.js} +131 -40
- package/{chunk-YXMBJ7UH.js → chunk-6BGJHJRN.js} +21 -21
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-IZIN2UNJ.js → chunk-6X3CS6NJ.js} +203 -24
- package/{chunk-XZGQ6ZCV.js → chunk-6XBOPKUH.js} +27 -90
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7OTNBI77.js} +13 -6
- package/{chunk-HOK3ILHA.js → chunk-7Q7MKJZN.js} +590 -330
- package/{chunk-KZU52OJ5.js → chunk-7U2TFUWW.js} +6 -6
- package/{chunk-IUD7YR3B.js → chunk-B72AFRR2.js} +15 -15
- package/{chunk-4HFTBHBF.js → chunk-BDERPCJW.js} +8 -8
- package/chunk-BEM6LPD2.js +734 -0
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6J4TTPS2.js → chunk-BIJTI5SX.js} +5 -5
- package/chunk-BWW6WRX6.js +1438 -0
- package/{chunk-AGP3YSEC.js → chunk-C3GOEQJF.js} +46 -1
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-MOMR7NMG.js → chunk-C646JEUV.js} +2 -2
- package/{chunk-YI5CDUJD.js → chunk-CT6GT2BG.js} +9 -9
- package/{chunk-PVZY6P3S.js → chunk-CZLSTOVM.js} +2 -2
- package/{chunk-LJSNEV7M.js → chunk-DGUUOHBF.js} +8 -8
- package/{chunk-C4WTX5TU.js → chunk-DIBQXNGW.js} +2 -2
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-K44HIUBX.js → chunk-DLTMAXLF.js} +13 -13
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-SOG7OEXX.js → chunk-DWWUVRB5.js} +1 -1
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-KC4SCKXO.js → chunk-EIFSCI4C.js} +990 -1370
- package/{chunk-F3YK7KIU.js → chunk-EW37CXCQ.js} +4 -4
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-2VUZSVAS.js → chunk-F3FQPVHE.js} +57 -20
- package/{chunk-ZRAARRA3.js → chunk-FCAMGBLY.js} +1399 -2978
- package/{chunk-AK5O76CC.js → chunk-FPMPWNVQ.js} +3 -3
- package/{chunk-WQEMD4Z4.js → chunk-FSIEHQNH.js} +420 -120
- package/{chunk-FNDSBM4J.js → chunk-FXX6VFMV.js} +571 -348
- package/{chunk-7XS4W5KP.js → chunk-G6OPRPXH.js} +128 -149
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-2TIQO6TC.js → chunk-GCVFX6ZL.js} +206 -308
- package/{chunk-P25E3CKY.js → chunk-H6CHPU6M.js} +4 -4
- package/chunk-HNWZJI4N.js +33394 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-IPRPYKBP.js} +46 -8
- package/{chunk-C4VAR65S.js → chunk-IUXBKS5L.js} +200 -120
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-Z6USB65D.js → chunk-KGIIZXPL.js} +347 -14
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-GBZ4YKEO.js → chunk-KOIDLCAQ.js} +8 -8
- package/{chunk-2ZKFCIJJ.js → chunk-LCQJH7KN.js} +1 -1
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-XN23AUVU.js → chunk-LMZRXDWG.js} +8 -5
- package/{chunk-EWPDMS4N.js → chunk-LN4ZVSO7.js} +30 -15
- package/{chunk-GOAPXKQU.js → chunk-LT3DMEIB.js} +4 -4
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-FTQWYWUI.js → chunk-MDVP5TLI.js} +1 -1
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-D726I5AZ.js → chunk-NBB2EBQD.js} +2 -2
- package/{chunk-DISQCYPE.js → chunk-NL7J2J5Z.js} +6 -6
- package/{chunk-JM5C4EUA.js → chunk-NQQL2DKF.js} +6 -6
- package/{chunk-LS2MGTUS.js → chunk-NWWQY2J5.js} +15 -15
- package/{chunk-TXGQ4O5S.js → chunk-OATIWAKN.js} +20 -174
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-VV7TXWOC.js → chunk-OYHJ4TW7.js} +6 -6
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-2VA6TU4I.js → chunk-QES2NCVM.js} +17 -14
- package/{chunk-WG2LFJYB.js → chunk-QGMIUVBT.js} +39 -30
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-AMEOV5VZ.js → chunk-S25VJYXV.js} +41 -35
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-GVGOEMNV.js → chunk-T444ENEC.js} +3 -3
- package/{chunk-67BE44IS.js → chunk-TE2XH4KH.js} +1 -1
- package/{chunk-5RKUPJYL.js → chunk-TFGGNRT6.js} +11 -3
- package/{chunk-ZH6MUQEO.js → chunk-TTEBPPUV.js} +1 -1
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-TXFYIWAW.js} +32 -25
- package/{chunk-KOXKKHFE.js → chunk-TXQVH72L.js} +9 -4
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-KDAGMRDA.js → chunk-UAHUJ4HH.js} +100 -32
- package/{chunk-BGGHA5DV.js → chunk-UAOFSUG7.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UKSKCDBG.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UYOICCYG.js → chunk-WHO3LYDW.js} +64 -89
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-QLFCTYRH.js → chunk-X37RQEA3.js} +17 -10
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-GIABSSWQ.js → chunk-XAFOLWLU.js} +4 -4
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EOJZGQAE.js → chunk-Y5RN44VH.js} +103 -100
- package/{chunk-OB6DVWPF.js → chunk-YFRJAE3R.js} +319 -95
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-3KNEE64G.js → chunk-YMCSR7PA.js} +14 -14
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-XQBIZRGW.js → chunk-ZBQ5UGYY.js} +3 -3
- package/{chunk-VREDDN25.js → chunk-ZQUCJBS4.js} +14 -9
- package/{chunk-UEKXWO7A.js → chunk-ZT3DYK5T.js} +15 -4
- package/{chunk-LM2PS3YS.js → chunk-ZTLTDUV6.js} +24 -11
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +51 -45
- package/{commandRegistry-HJDPQSQ4.js → commandRegistry-IHWZVV4G.js} +98 -94
- package/{contentThunks-I6OR5ENG.js → contentThunks-YQRCBDKF.js} +38 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-W67DE765.js} +4 -4
- package/{createAgentAutomationAction-7BCCTWO5.js → createAgentAutomationAction-ERSDNR4R.js} +38 -35
- package/{createDialogAction-CU27KSCJ.js → createDialogAction-QXC7JZPE.js} +39 -37
- package/{createPageAction-CWRTEYVA.js → createPageAction-RLZ7776F.js} +40 -37
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-7M2ESEUO.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-WO6WSSNK.js} +10 -7
- package/{dialogCommands-OPTRZWTE.js → dialogCommands-UIRO4QNN.js} +62 -56
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-VDUFYBZV.js} +14 -14
- package/{dialogSlice-XODSLDHY.js → dialogSlice-A4U3C76D.js} +36 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-SEC6UZWM.js} +3 -3
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-MHPYTJWR.js} +56 -49
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-VYULMBAQ.js} +58 -51
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-FV3GGZ7V.js} +56 -49
- package/{docStore-TVN4SNVE.js → docStore-AWWI72FA.js} +15 -14
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-JNS3HX7F.js} +56 -49
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-U5AR7ZHS.js} +5 -5
- package/{handleSendMessageAction-NSEMVHWX.js → handleSendMessageAction-WDJOUDNV.js} +68 -63
- package/{hostCredentialCreate-WBZY7DZB.js → hostCredentialCreate-H3FF2SAO.js} +123 -111
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +2 -2
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-OAIWERFA.js → localRuntimeAdapter-JAQQXZJP.js} +126 -113
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-OI37ZUQ4.js → machineCommands-WYOFNB5I.js} +146 -120
- package/{machineWsRunDispatch-73HKPV6D.js → machineWsRunDispatch-Y7UIAZNM.js} +118 -107
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-SCYEFLRK.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-DIITWU4M.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-GVEARCOG.js → projectArchive-IZJXBW5N.js} +43 -40
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-2QWXPJXZ.js} +6 -6
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-W4LCKK6V.js} +6 -6
- package/{read-Q7GOHGNP.js → read-OBLJNMA2.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-QQZ4DAER.js} +1 -1
- package/{readlineWorkspace-5DWUGNSU.js → readlineWorkspace-WF3SWZGR.js} +7055 -5248
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-HC3SOY3G.js} +17 -16
- package/{runAgentClientLoop-RDXIPF34.js → runAgentClientLoop-Z7V6TA3O.js} +97 -72
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-KX6YLPWV.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-STRAX275.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-DDZUQPY6.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-TN6GFASU.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-HBYQUVJI.js} +61 -54
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-XEYQZPDJ.js → streamAgentChatTurn-CM7QQXOS.js} +178 -173
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-XY5TKQQE.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-MXFL3JIT.js} +13 -10
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-6DFTHCFX.js → tools-AT6H73LD.js} +66 -62
- package/tuiRestart-272SAYSK.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-K2OVRVHG.js} +20 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-O3BOVVVN.js} +8 -6
- package/{updateDialogTitleAction-AMSBV2H7.js → updateDialogTitleAction-PGY4UPLH.js} +38 -35
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-SCF3ROV2.js} +4 -4
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-K5WPIBA5.js} +5 -5
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-KLYKI4Z7.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-QZI44GWV.js +0 -776
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -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-7XS4W5KP.js";
|
|
21
|
-
import {
|
|
22
|
-
resolveUserSkillRuntime
|
|
23
|
-
} from "./chunk-652XYZGP.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-25OCZXSX.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-ZBQ5UGYY.js";
|
|
41
22
|
import {
|
|
42
23
|
DirectApiKeyResolutionError,
|
|
43
24
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -49,38 +30,62 @@ import {
|
|
|
49
30
|
sanitizeOutboundResponsesInput,
|
|
50
31
|
selectResponsesConversationState,
|
|
51
32
|
updateResponsesConversationState
|
|
52
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6XBOPKUH.js";
|
|
53
34
|
import "./chunk-HS7MLR74.js";
|
|
54
|
-
import "./chunk-HOK3ILHA.js";
|
|
55
|
-
import "./chunk-KFHREHUQ.js";
|
|
56
35
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
36
|
+
selectMaxExecutionTime
|
|
37
|
+
} from "./chunk-7Q7MKJZN.js";
|
|
38
|
+
import {
|
|
39
|
+
isGptProModel,
|
|
40
|
+
isPlatformPaidAgentCall,
|
|
41
|
+
shouldBlockForGptPro
|
|
42
|
+
} from "./chunk-BWW6WRX6.js";
|
|
43
|
+
import "./chunk-AMWMV56B.js";
|
|
44
|
+
import "./chunk-MVOZ22RZ.js";
|
|
45
|
+
import "./chunk-WDWZPASX.js";
|
|
46
|
+
import "./chunk-LYDEFPQP.js";
|
|
47
|
+
import "./chunk-TXQVH72L.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-G6OPRPXH.js";
|
|
66
|
+
import {
|
|
67
|
+
resolveUserSkillRuntime
|
|
68
|
+
} from "./chunk-6D25V6CB.js";
|
|
60
69
|
import {
|
|
61
70
|
performServerProxyFetchWithRetry
|
|
62
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-QGMIUVBT.js";
|
|
63
72
|
import {
|
|
64
73
|
createSSEParser,
|
|
65
|
-
selectMaxExecutionTime,
|
|
66
74
|
waitForAbortableDelay
|
|
67
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-Y5RN44VH.js";
|
|
68
76
|
import "./chunk-NF64D32W.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-DVYAFH2Q.js";
|
|
78
|
+
import "./chunk-EW37CXCQ.js";
|
|
79
|
+
import "./chunk-4YFC3DWW.js";
|
|
80
|
+
import "./chunk-XAFOLWLU.js";
|
|
81
|
+
import "./chunk-UAOFSUG7.js";
|
|
72
82
|
import "./chunk-AGIM7IMJ.js";
|
|
73
|
-
import "./chunk-63W5N6P3.js";
|
|
74
83
|
import "./chunk-VF4K2QE6.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
import "./chunk-AK5O76CC.js";
|
|
81
|
-
import "./chunk-Z6USB65D.js";
|
|
82
|
-
import "./chunk-BJF2MHJ3.js";
|
|
83
|
-
import "./chunk-YXMBJ7UH.js";
|
|
84
|
+
import "./chunk-KGIIZXPL.js";
|
|
85
|
+
import "./chunk-6BGJHJRN.js";
|
|
86
|
+
import {
|
|
87
|
+
getCurrentSpaceId
|
|
88
|
+
} from "./chunk-C646JEUV.js";
|
|
84
89
|
import {
|
|
85
90
|
addToolMessage,
|
|
86
91
|
addUserMessage,
|
|
@@ -102,22 +107,18 @@ import {
|
|
|
102
107
|
updateDialogSummaryAction,
|
|
103
108
|
updateTokens,
|
|
104
109
|
updateToolMessage
|
|
105
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-FXX6VFMV.js";
|
|
106
111
|
import "./chunk-TZXPT53C.js";
|
|
107
112
|
import "./chunk-BUDVRYES.js";
|
|
108
|
-
import "./chunk-KEPOVMF4.js";
|
|
109
113
|
import "./chunk-523DITKR.js";
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import {
|
|
112
|
-
getCurrentSpaceId
|
|
113
|
-
} from "./chunk-MOMR7NMG.js";
|
|
114
|
+
import "./chunk-DLTMAXLF.js";
|
|
114
115
|
import "./chunk-BYXBJQAS.js";
|
|
115
116
|
import "./chunk-QYPE3TS3.js";
|
|
116
117
|
import {
|
|
117
118
|
createCliChatTurnStream,
|
|
118
119
|
getCliChatSession,
|
|
119
120
|
startCliChatSession
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-T444ENEC.js";
|
|
121
122
|
import "./chunk-5RGU3J7P.js";
|
|
122
123
|
import "./chunk-UVLYNWIE.js";
|
|
123
124
|
import "./chunk-YNIYE47Z.js";
|
|
@@ -134,46 +135,52 @@ import {
|
|
|
134
135
|
setDialogTurnPhase,
|
|
135
136
|
subscribe,
|
|
136
137
|
tokenUsageLiveUpdate
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import "./chunk-
|
|
138
|
+
} from "./chunk-I2OYPD3Y.js";
|
|
139
|
+
import "./chunk-RD3QLZQV.js";
|
|
140
|
+
import "./chunk-HXER7YJF.js";
|
|
141
|
+
import "./chunk-YUZ2DAIH.js";
|
|
142
|
+
import "./chunk-DXWGFL2Z.js";
|
|
143
|
+
import "./chunk-3L2WKC3W.js";
|
|
144
|
+
import "./chunk-FPMPWNVQ.js";
|
|
139
145
|
import {
|
|
140
146
|
selectCurrentServer
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import "./chunk-
|
|
143
|
-
import "./chunk-PVZY6P3S.js";
|
|
147
|
+
} from "./chunk-ZQUCJBS4.js";
|
|
148
|
+
import "./chunk-CZLSTOVM.js";
|
|
144
149
|
import "./chunk-UAD2WT54.js";
|
|
145
150
|
import {
|
|
146
151
|
patch,
|
|
147
152
|
read,
|
|
148
153
|
selectById,
|
|
149
154
|
write
|
|
150
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-TXFYIWAW.js";
|
|
151
156
|
import "./chunk-3PVYUPXK.js";
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-
|
|
154
|
-
import "./chunk-QLFCTYRH.js";
|
|
157
|
+
import "./chunk-DIBQXNGW.js";
|
|
158
|
+
import "./chunk-X37RQEA3.js";
|
|
155
159
|
import {
|
|
156
160
|
selectRuntimeCurrentServer
|
|
157
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-F3FQPVHE.js";
|
|
158
162
|
import "./chunk-UEILX4EV.js";
|
|
159
|
-
import "./chunk-
|
|
163
|
+
import "./chunk-7OTNBI77.js";
|
|
160
164
|
import {
|
|
161
165
|
getIsDesktopApp
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import "./chunk-
|
|
166
|
+
} from "./chunk-C3GOEQJF.js";
|
|
167
|
+
import "./chunk-X7IA2B7R.js";
|
|
164
168
|
import {
|
|
165
169
|
selectIdentityToken,
|
|
166
170
|
selectIdentityUser,
|
|
167
171
|
selectIdentityUserId
|
|
168
172
|
} from "./chunk-PXYBUFDB.js";
|
|
173
|
+
import "./chunk-QQ56R7KS.js";
|
|
174
|
+
import "./chunk-GBWGPTA7.js";
|
|
175
|
+
import "./chunk-S25VJYXV.js";
|
|
169
176
|
import "./chunk-BV3FLP2L.js";
|
|
170
177
|
import {
|
|
171
178
|
applyPublicAgentCatalogOverride
|
|
172
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-LT3DMEIB.js";
|
|
173
180
|
import {
|
|
174
181
|
applyBuiltinAgentRuntimeOverride,
|
|
175
182
|
resolveBuiltinPlatformAgentRecord
|
|
176
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-JBWXPACD.js";
|
|
177
184
|
import {
|
|
178
185
|
assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
|
|
179
186
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
@@ -181,70 +188,70 @@ import {
|
|
|
181
188
|
evaluateRequestBudget,
|
|
182
189
|
extractImageUrlsFromMessages,
|
|
183
190
|
stripImagePartsForTextOnlyAgent
|
|
184
|
-
} from "./chunk-
|
|
185
|
-
import "./chunk-2WZXXAQD.js";
|
|
186
|
-
import "./chunk-KNIIRXHF.js";
|
|
191
|
+
} from "./chunk-ZT3DYK5T.js";
|
|
187
192
|
import {
|
|
188
193
|
projectUserPartForModel
|
|
189
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-DWWUVRB5.js";
|
|
190
195
|
import "./chunk-56GBUMO5.js";
|
|
191
|
-
import
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
import "./chunk-C4VAR65S.js";
|
|
196
|
-
import "./chunk-HOCHUZQ7.js";
|
|
196
|
+
import "./chunk-GCVFX6ZL.js";
|
|
197
|
+
import "./chunk-IUXBKS5L.js";
|
|
198
|
+
import "./chunk-7NIBQ4HY.js";
|
|
199
|
+
import "./chunk-QJTZ76CP.js";
|
|
197
200
|
import {
|
|
198
201
|
resolveRuntimeToolSurfaceForAgent
|
|
199
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-VS276URX.js";
|
|
200
203
|
import {
|
|
201
204
|
extractImagePartsFromResponseOutput,
|
|
202
205
|
extractTextFromResponseOutput,
|
|
203
206
|
toResponsesTools
|
|
204
|
-
} from "./chunk-
|
|
205
|
-
import "./chunk-
|
|
207
|
+
} from "./chunk-NQQL2DKF.js";
|
|
208
|
+
import "./chunk-X4O7FJF5.js";
|
|
209
|
+
import "./chunk-BYXBJQAS.js";
|
|
210
|
+
import "./chunk-IPRPYKBP.js";
|
|
206
211
|
import {
|
|
207
212
|
isContextOverflowText,
|
|
208
213
|
parseApiError
|
|
209
214
|
} from "./chunk-TLE77UJ5.js";
|
|
210
|
-
import "./chunk-
|
|
215
|
+
import "./chunk-WFGNWWJI.js";
|
|
211
216
|
import {
|
|
212
217
|
resolveAgentCallPlan,
|
|
213
218
|
resolveClientWire
|
|
214
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-NL7J2J5Z.js";
|
|
220
|
+
import "./chunk-MM73SP4K.js";
|
|
215
221
|
import {
|
|
216
222
|
resolveAgentContextWindow
|
|
217
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-ZTLTDUV6.js";
|
|
218
224
|
import "./chunk-5ZUL4CUO.js";
|
|
219
225
|
import {
|
|
220
226
|
getModelInfo
|
|
221
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-6X3CS6NJ.js";
|
|
222
228
|
import "./chunk-H57T64RA.js";
|
|
223
|
-
import
|
|
224
|
-
|
|
225
|
-
} from "./chunk-UKZX3NHN.js";
|
|
229
|
+
import "./chunk-UKZX3NHN.js";
|
|
230
|
+
import "./chunk-SR4FE5VD.js";
|
|
226
231
|
import "./chunk-5MMAK75Q.js";
|
|
227
|
-
import "./chunk-
|
|
232
|
+
import "./chunk-USGHJSGO.js";
|
|
233
|
+
import "./chunk-OQHIVPG4.js";
|
|
228
234
|
import {
|
|
229
235
|
asRecordOrEmpty
|
|
230
236
|
} from "./chunk-KX6YBIHG.js";
|
|
231
|
-
import "./chunk-SNBZZPYH.js";
|
|
232
237
|
import "./chunk-DWLEOOGR.js";
|
|
233
238
|
import "./chunk-OW765XBU.js";
|
|
234
239
|
import {
|
|
235
240
|
isAbortError
|
|
236
241
|
} from "./chunk-7DPNBQSV.js";
|
|
237
|
-
import "./chunk-
|
|
242
|
+
import "./chunk-EWQ3HGNZ.js";
|
|
238
243
|
import {
|
|
239
|
-
|
|
240
|
-
} from "./chunk-
|
|
241
|
-
import "./chunk-
|
|
244
|
+
estimateTokenCount
|
|
245
|
+
} from "./chunk-PSCNXBYA.js";
|
|
246
|
+
import "./chunk-G7Y4GXTY.js";
|
|
247
|
+
import "./chunk-6UBGXX2W.js";
|
|
248
|
+
import "./chunk-EBKHA63G.js";
|
|
242
249
|
import "./chunk-6OVNSQHN.js";
|
|
243
250
|
import "./chunk-W6RFEDN4.js";
|
|
244
|
-
import "./chunk-
|
|
251
|
+
import "./chunk-ZVOL2MAJ.js";
|
|
245
252
|
import {
|
|
246
253
|
isSystemBuiltinTrustedAgentKey
|
|
247
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-WRKMXMU7.js";
|
|
248
255
|
import {
|
|
249
256
|
extractCustomId
|
|
250
257
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -253,26 +260,25 @@ import {
|
|
|
253
260
|
createDialogMessageKeyAndId,
|
|
254
261
|
dialogMessageKey
|
|
255
262
|
} from "./chunk-OJKUU3LP.js";
|
|
256
|
-
import "./chunk-YZMNK53S.js";
|
|
257
263
|
import "./chunk-I42VC5KR.js";
|
|
258
|
-
import "./chunk-
|
|
264
|
+
import "./chunk-YZMNK53S.js";
|
|
265
|
+
import "./chunk-DGUUOHBF.js";
|
|
259
266
|
import {
|
|
260
267
|
getPublicImageAgentDefaultProfile,
|
|
261
268
|
getPublicImageAgentMode
|
|
262
269
|
} from "./chunk-VIDPVFP3.js";
|
|
263
270
|
import "./chunk-4JH2UMJR.js";
|
|
264
|
-
import "./chunk-
|
|
265
|
-
import "./chunk-
|
|
271
|
+
import "./chunk-U6VC4MU4.js";
|
|
272
|
+
import "./chunk-YGDYYFRX.js";
|
|
273
|
+
import "./chunk-2SXN7LAY.js";
|
|
266
274
|
import "./chunk-KHCLMKZZ.js";
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import "./chunk-
|
|
269
|
-
import
|
|
270
|
-
|
|
271
|
-
} from "./chunk-PSCNXBYA.js";
|
|
272
|
-
import "./chunk-4NA3YTBC.js";
|
|
275
|
+
import "./chunk-LCBAMY2M.js";
|
|
276
|
+
import "./chunk-776CXKMX.js";
|
|
277
|
+
import "./chunk-LN4ZVSO7.js";
|
|
278
|
+
import "./chunk-LMFMV5UC.js";
|
|
273
279
|
import {
|
|
274
280
|
isOpenAiResponsesModel
|
|
275
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-XNEDFWT4.js";
|
|
276
282
|
import {
|
|
277
283
|
toErrorMessage
|
|
278
284
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -281,23 +287,19 @@ import {
|
|
|
281
287
|
} from "./chunk-3EUW3WEO.js";
|
|
282
288
|
import {
|
|
283
289
|
getApiEndpoint
|
|
284
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-OJRTTERA.js";
|
|
285
291
|
import "./chunk-JRTNUU5Z.js";
|
|
286
292
|
import {
|
|
287
293
|
isRecord
|
|
288
294
|
} from "./chunk-KUG52IAP.js";
|
|
289
|
-
import "./chunk-OBSEKCVK.js";
|
|
290
|
-
import "./chunk-QSJ3HFEF.js";
|
|
291
|
-
import "./chunk-U6VC4MU4.js";
|
|
292
295
|
import "./chunk-WWC7I6TA.js";
|
|
293
|
-
import "./chunk-LCBAMY2M.js";
|
|
294
296
|
import {
|
|
295
297
|
asOptionalTrimmedString
|
|
296
298
|
} from "./chunk-G3SUCT4W.js";
|
|
297
299
|
import "./chunk-4SN6J65J.js";
|
|
298
300
|
import "./chunk-CF7PE763.js";
|
|
299
|
-
import "./chunk-
|
|
300
|
-
import "./chunk-
|
|
301
|
+
import "./chunk-U4VSBDO5.js";
|
|
302
|
+
import "./chunk-QSJ3HFEF.js";
|
|
301
303
|
import "./chunk-U67V476Y.js";
|
|
302
304
|
|
|
303
305
|
// packages/ai/agent/isVoiceModel.ts
|
|
@@ -537,7 +539,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
537
539
|
parentMessageId,
|
|
538
540
|
messageMetadata,
|
|
539
541
|
quickChatPerfStartedAt,
|
|
540
|
-
fallbackBodyData
|
|
542
|
+
fallbackBodyData,
|
|
543
|
+
userMessageId
|
|
541
544
|
}) => {
|
|
542
545
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
543
546
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -770,7 +773,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
770
773
|
agentConfig,
|
|
771
774
|
messageId,
|
|
772
775
|
dialogId,
|
|
773
|
-
dialogKey
|
|
776
|
+
dialogKey,
|
|
777
|
+
userMessageId
|
|
774
778
|
})
|
|
775
779
|
).unwrap();
|
|
776
780
|
state.content = Array.isArray(result.finalContentBuffer) ? result.finalContentBuffer.filter((part) => part?.type === "text").map((part) => part.text ?? "").join("") : state.content;
|
|
@@ -1242,39 +1246,6 @@ async function admitWebRequest(options) {
|
|
|
1242
1246
|
throw new Error("Context budget admission failed");
|
|
1243
1247
|
}
|
|
1244
1248
|
|
|
1245
|
-
// packages/ai/agent/platformPaidCall.ts
|
|
1246
|
-
var asTrimmed = (value) => typeof value === "string" ? value.trim() : "";
|
|
1247
|
-
var hasOAuthCredentialShape = (agentConfig) => isOAuthApiKeyRef(agentConfig?.apiKeyRef) || isAntigravityOAuthAgent({
|
|
1248
|
-
key: "platform-paid-call-probe",
|
|
1249
|
-
apiKeyRef: agentConfig?.apiKeyRef ?? void 0,
|
|
1250
|
-
provider: agentConfig?.provider ?? void 0,
|
|
1251
|
-
customProviderUrl: agentConfig?.customProviderUrl ?? void 0
|
|
1252
|
-
});
|
|
1253
|
-
function isPlatformPaidAgentCall(probe) {
|
|
1254
|
-
const agentConfig = probe?.agentConfig ?? {};
|
|
1255
|
-
const authKind = asTrimmed(probe?.authKind);
|
|
1256
|
-
if (authKind) return authKind === "platform-key";
|
|
1257
|
-
if (asTrimmed(agentConfig.apiSource) === "cli") return false;
|
|
1258
|
-
return resolveBillingSource({
|
|
1259
|
-
local: agentConfig.local,
|
|
1260
|
-
isLocal: agentConfig.isLocal,
|
|
1261
|
-
cliProvider: agentConfig.cliProvider,
|
|
1262
|
-
apiSource: agentConfig.apiSource,
|
|
1263
|
-
provider: agentConfig.provider,
|
|
1264
|
-
billingSource: agentConfig.billingSource,
|
|
1265
|
-
// 形态证明而非记录自声明(见文件头):自声明 isOAuth 不足以证明 OAuth 通道归属。
|
|
1266
|
-
isOAuth: hasOAuthCredentialShape(agentConfig),
|
|
1267
|
-
apiKeyRef: agentConfig.apiKeyRef,
|
|
1268
|
-
customProviderUrl: agentConfig.customProviderUrl,
|
|
1269
|
-
isOwned: isOwnedAgentRecord(
|
|
1270
|
-
agentConfig,
|
|
1271
|
-
asTrimmed(probe?.callerUserId) || void 0
|
|
1272
|
-
),
|
|
1273
|
-
userId: agentConfig.userId,
|
|
1274
|
-
ownerId: agentConfig.ownerId
|
|
1275
|
-
}) === "platform_credits";
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
1249
|
// packages/ai/agent/persistMessageWithFixedId.ts
|
|
1279
1250
|
async function persistMessageWithFixedId(dispatch, message) {
|
|
1280
1251
|
dispatch(addUserMessage(message));
|
|
@@ -2085,7 +2056,45 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2085
2056
|
let loopKey = null;
|
|
2086
2057
|
let runtimeDialogKey = explicitDialogKey ?? null;
|
|
2087
2058
|
let turnPhaseTurnId = null;
|
|
2059
|
+
const secretGateTurnId = createDialogMessageKeyAndId("secret-gate").messageId;
|
|
2060
|
+
const secretGateAnchors = /* @__PURE__ */ new Set();
|
|
2061
|
+
const receiveActionGate = (gate, target, dialogId) => {
|
|
2062
|
+
const secret = gate.kind === "input" && gate.payload?.action === "secret_request";
|
|
2063
|
+
if (!secret || target?.kind === "local") {
|
|
2064
|
+
pushGate(gate, target);
|
|
2065
|
+
return;
|
|
2066
|
+
}
|
|
2067
|
+
const { messageId, key } = createDialogMessageKeyAndId(dialogId);
|
|
2068
|
+
secretGateAnchors.add(messageId);
|
|
2069
|
+
pushGate(gate, target, { dialogId, turnId: secretGateTurnId, messageId });
|
|
2070
|
+
dispatch(messageStreaming({
|
|
2071
|
+
id: messageId,
|
|
2072
|
+
dbKey: key,
|
|
2073
|
+
dialogId,
|
|
2074
|
+
role: "tool",
|
|
2075
|
+
toolName: "secret-request",
|
|
2076
|
+
content: "",
|
|
2077
|
+
isStreaming: true
|
|
2078
|
+
}));
|
|
2079
|
+
};
|
|
2088
2080
|
const batchExecution = createUserBatchExecution(loopController.signal, () => !thunkApi.signal.aborted && (!turnPhaseTurnId || !runtimeDialogKey || getDialogRuntimeState(runtimeDialogKey).turnPhaseTurnId === turnPhaseTurnId));
|
|
2081
|
+
const workMemoryUserMessageId = (dialogId, activeId) => {
|
|
2082
|
+
if (!activeId) return void 0;
|
|
2083
|
+
const users = selectAllMsgs(getState(), dialogId).filter((message) => message.role === "user");
|
|
2084
|
+
const bound = users.find((message) => message.id === activeId);
|
|
2085
|
+
if (!bound || bound.metadata?.queueState === "pending") return void 0;
|
|
2086
|
+
const receipt = bound.metadata?.userBatchReceipt;
|
|
2087
|
+
if (receipt) {
|
|
2088
|
+
const ids = receipt.messageIds;
|
|
2089
|
+
return Array.isArray(ids) && ids.length === 1 && ids[0] === activeId ? activeId : void 0;
|
|
2090
|
+
}
|
|
2091
|
+
const batchId = bound.metadata?.acceptedUserBatchId;
|
|
2092
|
+
if (batchId) {
|
|
2093
|
+
const batch = users.filter((message) => message.metadata?.acceptedUserBatchId === batchId);
|
|
2094
|
+
return batch.length === 1 && batch[0]?.id === activeId ? activeId : void 0;
|
|
2095
|
+
}
|
|
2096
|
+
return activeId;
|
|
2097
|
+
};
|
|
2089
2098
|
let remoteTransientMessageId = null;
|
|
2090
2099
|
let remoteTransientMessageFinalized = false;
|
|
2091
2100
|
let modelRequestStarted = false;
|
|
@@ -2280,7 +2289,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2280
2289
|
agentKey,
|
|
2281
2290
|
userInput: agentRunUserInput,
|
|
2282
2291
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
2283
|
-
messages: cleanedMessages,
|
|
2292
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
2284
2293
|
stream: true,
|
|
2285
2294
|
persistDialog: true,
|
|
2286
2295
|
continueDialogId: dialogId2,
|
|
@@ -2291,7 +2300,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2291
2300
|
runtime: "react",
|
|
2292
2301
|
entrypoint: "chat-dialog",
|
|
2293
2302
|
capabilities: ["streaming", "dialog-ui", "machine-bound-cli", "durable-user-batch", "client-user-prepersisted"],
|
|
2294
|
-
userMessageId
|
|
2303
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {}
|
|
2295
2304
|
},
|
|
2296
2305
|
...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
|
|
2297
2306
|
}),
|
|
@@ -2339,12 +2348,13 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2339
2348
|
return { reject: payload.message || "\u7535\u8111\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
2340
2349
|
}
|
|
2341
2350
|
if (payload.type === "action_gate" && payload.gate) {
|
|
2342
|
-
|
|
2351
|
+
receiveActionGate(
|
|
2343
2352
|
payload.gate,
|
|
2344
2353
|
targetForRunKind("server-run", {
|
|
2345
2354
|
server: currentServer2,
|
|
2346
2355
|
token
|
|
2347
|
-
})
|
|
2356
|
+
}),
|
|
2357
|
+
dialogId2
|
|
2348
2358
|
);
|
|
2349
2359
|
}
|
|
2350
2360
|
remoteToolHandlers.handleToolPayload(payload);
|
|
@@ -2896,9 +2906,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2896
2906
|
} else if (event.type === "execution_location") {
|
|
2897
2907
|
desktopToolExecutionLocation = event.location;
|
|
2898
2908
|
} else if (event.type === "action_gate") {
|
|
2899
|
-
|
|
2909
|
+
receiveActionGate(
|
|
2900
2910
|
event.gate,
|
|
2901
|
-
targetForRunKind("desktop-local")
|
|
2911
|
+
targetForRunKind("desktop-local"),
|
|
2912
|
+
dialogId
|
|
2902
2913
|
);
|
|
2903
2914
|
} else if (event.type === "done") {
|
|
2904
2915
|
streamResult = event.result;
|
|
@@ -3216,7 +3227,7 @@ ${info.actionHint}` : streamError;
|
|
|
3216
3227
|
agentKey,
|
|
3217
3228
|
userInput: agentRunUserInput,
|
|
3218
3229
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
3219
|
-
messages: cleanedMessages,
|
|
3230
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
3220
3231
|
stream: true,
|
|
3221
3232
|
persistDialog: false,
|
|
3222
3233
|
clientDialogId: dialogId,
|
|
@@ -3296,12 +3307,13 @@ ${info.actionHint}` : streamError;
|
|
|
3296
3307
|
return { reject: payload.message || "\u8FDC\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
3297
3308
|
}
|
|
3298
3309
|
if (payload.type === "action_gate" && payload.gate) {
|
|
3299
|
-
|
|
3310
|
+
receiveActionGate(
|
|
3300
3311
|
payload.gate,
|
|
3301
3312
|
targetForRunKind("server-run", {
|
|
3302
3313
|
server: explicitServerBase,
|
|
3303
3314
|
token
|
|
3304
|
-
})
|
|
3315
|
+
}),
|
|
3316
|
+
dialogId
|
|
3305
3317
|
);
|
|
3306
3318
|
}
|
|
3307
3319
|
if (payload.type === "agent_handoff") {
|
|
@@ -3407,7 +3419,8 @@ ${info.actionHint}` : streamError;
|
|
|
3407
3419
|
referencedTools: referenceTools,
|
|
3408
3420
|
recommendedSkillTools: turnToolContext.recommendedSkillTools,
|
|
3409
3421
|
recommendedSkillHints: turnToolContext.recommendedSkillHints,
|
|
3410
|
-
skillPromptPatches: turnToolContext.skillPromptPatches
|
|
3422
|
+
skillPromptPatches: turnToolContext.skillPromptPatches,
|
|
3423
|
+
skillPromptContributions: turnToolContext.skillPromptContributions
|
|
3411
3424
|
};
|
|
3412
3425
|
const initialRawMsgs = selectAdmittedMessages(selectAllMsgs(state, dialogId));
|
|
3413
3426
|
const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
|
|
@@ -3457,7 +3470,7 @@ ${info.actionHint}` : streamError;
|
|
|
3457
3470
|
responseApi: true
|
|
3458
3471
|
});
|
|
3459
3472
|
let appendTempUserInput2 = true;
|
|
3460
|
-
let activeTurnUserMessageId2;
|
|
3473
|
+
let activeTurnUserMessageId2 = args.userMessageId;
|
|
3461
3474
|
let currentParentMessageId2 = parentMessageId ?? void 0;
|
|
3462
3475
|
const storedResponsesState = currentDialog?.responsesState;
|
|
3463
3476
|
let responsesState = selectResponsesConversationState(
|
|
@@ -3591,12 +3604,6 @@ ${info.actionHint}` : streamError;
|
|
|
3591
3604
|
isStreaming: false
|
|
3592
3605
|
}
|
|
3593
3606
|
];
|
|
3594
|
-
activeTurnUserMessageId2 = tempId;
|
|
3595
|
-
} else {
|
|
3596
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3597
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3598
|
-
activeTurnUserMessageId2 = lastMsg.id;
|
|
3599
|
-
}
|
|
3600
3607
|
}
|
|
3601
3608
|
}
|
|
3602
3609
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3671,7 +3678,8 @@ ${info.actionHint}` : streamError;
|
|
|
3671
3678
|
parentMessageId: currentParentMessageId2,
|
|
3672
3679
|
messageMetadata: streamingMessageMetadata,
|
|
3673
3680
|
quickChatPerfStartedAt,
|
|
3674
|
-
fallbackBodyData
|
|
3681
|
+
fallbackBodyData,
|
|
3682
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId2)
|
|
3675
3683
|
})
|
|
3676
3684
|
})).unwrap();
|
|
3677
3685
|
if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
|
|
@@ -3781,7 +3789,7 @@ ${info.actionHint}` : streamError;
|
|
|
3781
3789
|
responseApi: false
|
|
3782
3790
|
});
|
|
3783
3791
|
let appendTempUserInput = true;
|
|
3784
|
-
let activeTurnUserMessageId;
|
|
3792
|
+
let activeTurnUserMessageId = args.userMessageId;
|
|
3785
3793
|
let currentParentMessageId = parentMessageId ?? void 0;
|
|
3786
3794
|
const w = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
3787
3795
|
if (w) w.__LOOP_STOP_REASON__ = null;
|
|
@@ -3904,12 +3912,6 @@ ${info.actionHint}` : streamError;
|
|
|
3904
3912
|
isStreaming: false
|
|
3905
3913
|
}
|
|
3906
3914
|
];
|
|
3907
|
-
activeTurnUserMessageId = tempId;
|
|
3908
|
-
} else {
|
|
3909
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3910
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3911
|
-
activeTurnUserMessageId = lastMsg.id;
|
|
3912
|
-
}
|
|
3913
3915
|
}
|
|
3914
3916
|
}
|
|
3915
3917
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3999,7 +4001,8 @@ ${info.actionHint}` : streamError;
|
|
|
3999
4001
|
parentMessageId: currentParentMessageId,
|
|
4000
4002
|
messageMetadata: streamingMessageMetadata,
|
|
4001
4003
|
disableToolsForThisRequest,
|
|
4002
|
-
quickChatPerfStartedAt
|
|
4004
|
+
quickChatPerfStartedAt,
|
|
4005
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId)
|
|
4003
4006
|
})
|
|
4004
4007
|
})).unwrap();
|
|
4005
4008
|
if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
|
|
@@ -4106,6 +4109,8 @@ ${info.actionHint}` : streamError;
|
|
|
4106
4109
|
);
|
|
4107
4110
|
} finally {
|
|
4108
4111
|
batchExecution.dispose();
|
|
4112
|
+
clearGateTurn(secretGateTurnId);
|
|
4113
|
+
for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
|
|
4109
4114
|
clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
|
|
4110
4115
|
if (loopKey && runtimeDialogKey) {
|
|
4111
4116
|
dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
|