nolo-cli 0.224.0-alpha.1 → 0.224.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-WW57SJN4.js → _executeModel-5NA4USGG.js} +77 -70
- package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
- package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-2RFGKFAB.js} +127 -118
- package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-GQCQKKOR.js} +126 -113
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-HSGLDPDQ.js} +110 -495
- package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-BISF6PVV.js} +63 -57
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
- package/agentRecordCommands-AOXPGYAJ.js +189 -0
- package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-AFAIP7U7.js} +129 -113
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
- package/{agentSlice-ACZGTZVW.js → agentSlice-XJNKE3PG.js} +18 -17
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
- package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
- package/{authCommand-4FDPL7WG.js → authCommand-4CVBDADE.js} +29 -24
- package/{authCommands-GAJ3NIXO.js → authCommands-EHU2BHOX.js} +12 -7
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
- package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
- package/{chunk-S7SB7L2I.js → chunk-3FBAVU2Y.js} +24 -22
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
- package/{chunk-MKQ2UTTX.js → chunk-4IQVE43Z.js} +63 -32
- package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6WOLPIPY.js +379 -0
- package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-KO63FPG3.js → chunk-7AJRJGSQ.js} +1049 -2860
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-7WPAI5JJ.js → chunk-A3LUWRQK.js} +15 -15
- package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-O2CYENYJ.js → chunk-A74QP4FI.js} +2614 -1374
- package/{chunk-N3J4VDGV.js → chunk-AEQMKYZN.js} +15 -15
- package/{chunk-DVQH4BTR.js → chunk-AH5R7BYW.js} +26 -176
- package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
- package/{chunk-FVZW66K4.js → chunk-B7DE5XJW.js} +387 -347
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
- package/{chunk-T3O6BLYU.js → chunk-BGGV6B5O.js} +555 -328
- package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-3ESU44FG.js → chunk-CVJRVBJL.js} +3 -3
- package/chunk-D374I563.js +62 -0
- package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-N7HVLYOY.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-65XXHYZ5.js → chunk-E5KJOZWY.js} +4 -4
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-VHPAA6MT.js → chunk-FFYE5ATM.js} +6 -6
- package/{chunk-F3TQURKK.js → chunk-FZKA3XFA.js} +21 -21
- package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
- package/{chunk-4NMHE7CX.js → chunk-GDUC4VS2.js} +12 -12
- package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
- package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-QWYFFHCJ.js → chunk-IJTXNLQE.js} +13 -13
- package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
- package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
- package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
- package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
- package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
- package/{chunk-7UH3DGV6.js → chunk-PRMEU7BT.js} +232 -10
- package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- 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-RETQOQ4D.js +33394 -0
- package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
- package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
- package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
- package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-3N4ASIP6.js → chunk-VREG6ANQ.js} +103 -100
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-VSRISJXZ.js +107 -0
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
- package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
- package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
- package/{chunk-KAVGK4ES.js → chunk-Y5OWZQMJ.js} +39 -30
- package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-XFJ4ZPFC.js → chunk-Z2WZAE4P.js} +128 -149
- package/chunk-Z6YTCDU4.js +24 -0
- package/chunk-ZEKUFJLW.js +1438 -0
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
- package/{commandRegistry-SDSYBKMC.js → commandRegistry-TME7INFU.js} +98 -94
- package/{contentThunks-G3TRPEAU.js → contentThunks-U6OC4R2N.js} +37 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
- package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
- package/{createDialogAction-KWSBNAPJ.js → createDialogAction-IAGQJ3LH.js} +38 -36
- package/{createPageAction-HXKJ7OFG.js → createPageAction-AZ3UIFKA.js} +38 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
- package/{dialogSlice-HXPKFGRL.js → dialogSlice-QAKYN4DE.js} +35 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
- package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
- package/{docStore-A2B3GH33.js → docStore-GIVRT7TQ.js} +15 -14
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
- package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-6VDJFNDO.js} +118 -104
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-AV2VKKPG.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -107
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-WFWV25IR.js → machineCommands-K6XIGOAD.js} +142 -114
- package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -101
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-ULJDLUA6.js → projectArchive-G7AOQPRW.js} +43 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
- package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
- package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4277
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
- package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-HQJPDFGQ.js} +95 -69
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-E3XH2KFD.js} +160 -154
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-JVOJ5HC4.js → tools-7RSX22FT.js} +64 -58
- package/tuiRestart-KAAA7TND.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
- package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-SEWV252V.js} +37 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
- package/workContext-MM3P5GP5.js +13 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-DX2WE6BH.js +0 -176
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-652XYZGP.js +0 -352
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-OXKUPBAQ.js +0 -776
- 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/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
buildDynamicContexts,
|
|
7
7
|
buildForegroundTurnAdmissionFetchInit,
|
|
8
8
|
buildStaticContexts,
|
|
9
|
+
clearGateTurn,
|
|
9
10
|
compressOldToolResults,
|
|
10
11
|
consumeAgentRunStream,
|
|
11
12
|
mergeAgentToolsWithRuntime,
|
|
@@ -17,10 +18,10 @@ import {
|
|
|
17
18
|
targetForRunKind,
|
|
18
19
|
validateAccessAndBalance,
|
|
19
20
|
withRequestContextBlocks
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Z2WZAE4P.js";
|
|
21
22
|
import {
|
|
22
23
|
resolveUserSkillRuntime
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6D25V6CB.js";
|
|
24
25
|
import {
|
|
25
26
|
buildEmptyCompletionRepairBody,
|
|
26
27
|
buildFinalCompletionsRequestBody,
|
|
@@ -30,14 +31,15 @@ import {
|
|
|
30
31
|
persistToolMessages,
|
|
31
32
|
readStreamChunk,
|
|
32
33
|
sendOpenAICompletionsRequest,
|
|
34
|
+
serializeAgentRunMessages,
|
|
33
35
|
updateTotalUsage
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4IQVE43Z.js";
|
|
35
37
|
import "./chunk-JEXVIMYZ.js";
|
|
36
38
|
import {
|
|
37
39
|
inlineImageUrlsForCustomProvider,
|
|
38
40
|
prepareTools,
|
|
39
41
|
shouldInlineImageUrlsForAgent
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CVJRVBJL.js";
|
|
41
43
|
import {
|
|
42
44
|
DirectApiKeyResolutionError,
|
|
43
45
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -49,37 +51,42 @@ import {
|
|
|
49
51
|
sanitizeOutboundResponsesInput,
|
|
50
52
|
selectResponsesConversationState,
|
|
51
53
|
updateResponsesConversationState
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-3FBAVU2Y.js";
|
|
53
55
|
import "./chunk-HS7MLR74.js";
|
|
54
|
-
import "./chunk-T3O6BLYU.js";
|
|
55
|
-
import "./chunk-KFHREHUQ.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
selectMaxExecutionTime
|
|
58
|
+
} from "./chunk-BGGV6B5O.js";
|
|
59
|
+
import {
|
|
60
|
+
isGptProModel,
|
|
61
|
+
isPlatformPaidAgentCall,
|
|
62
|
+
shouldBlockForGptPro
|
|
63
|
+
} from "./chunk-ZEKUFJLW.js";
|
|
64
|
+
import "./chunk-AMWMV56B.js";
|
|
65
|
+
import "./chunk-WDWZPASX.js";
|
|
66
|
+
import "./chunk-LYDEFPQP.js";
|
|
67
|
+
import "./chunk-6WZVM33D.js";
|
|
60
68
|
import {
|
|
61
69
|
performServerProxyFetchWithRetry
|
|
62
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-Y5OWZQMJ.js";
|
|
63
71
|
import {
|
|
64
72
|
createSSEParser,
|
|
65
|
-
selectMaxExecutionTime,
|
|
66
73
|
waitForAbortableDelay
|
|
67
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-VREG6ANQ.js";
|
|
68
75
|
import "./chunk-NF64D32W.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-DVYAFH2Q.js";
|
|
77
|
+
import "./chunk-DXW5WDHZ.js";
|
|
78
|
+
import "./chunk-XS5A3EKX.js";
|
|
79
|
+
import "./chunk-B5SV4H3J.js";
|
|
80
|
+
import "./chunk-BIABIPGW.js";
|
|
71
81
|
import "./chunk-FJ23FZXF.js";
|
|
72
82
|
import "./chunk-AGIM7IMJ.js";
|
|
73
83
|
import "./chunk-63W5N6P3.js";
|
|
74
84
|
import "./chunk-VF4K2QE6.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
import "./chunk-AK5O76CC.js";
|
|
81
|
-
import "./chunk-7UH3DGV6.js";
|
|
82
|
-
import "./chunk-F3TQURKK.js";
|
|
85
|
+
import "./chunk-PRMEU7BT.js";
|
|
86
|
+
import "./chunk-FZKA3XFA.js";
|
|
87
|
+
import {
|
|
88
|
+
getCurrentSpaceId
|
|
89
|
+
} from "./chunk-IUTUWIKE.js";
|
|
83
90
|
import {
|
|
84
91
|
addToolMessage,
|
|
85
92
|
addUserMessage,
|
|
@@ -101,22 +108,18 @@ import {
|
|
|
101
108
|
updateDialogSummaryAction,
|
|
102
109
|
updateTokens,
|
|
103
110
|
updateToolMessage
|
|
104
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-B7DE5XJW.js";
|
|
105
112
|
import "./chunk-TZXPT53C.js";
|
|
106
113
|
import "./chunk-BUDVRYES.js";
|
|
107
|
-
import "./chunk-KEPOVMF4.js";
|
|
108
114
|
import "./chunk-523DITKR.js";
|
|
109
|
-
import "./chunk-
|
|
110
|
-
import {
|
|
111
|
-
getCurrentSpaceId
|
|
112
|
-
} from "./chunk-MOMR7NMG.js";
|
|
115
|
+
import "./chunk-IJTXNLQE.js";
|
|
113
116
|
import "./chunk-BYXBJQAS.js";
|
|
114
117
|
import "./chunk-QYPE3TS3.js";
|
|
115
118
|
import {
|
|
116
119
|
createCliChatTurnStream,
|
|
117
120
|
getCliChatSession,
|
|
118
121
|
startCliChatSession
|
|
119
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-CKZPMJNU.js";
|
|
120
123
|
import "./chunk-5RGU3J7P.js";
|
|
121
124
|
import "./chunk-UVLYNWIE.js";
|
|
122
125
|
import "./chunk-YNIYE47Z.js";
|
|
@@ -133,46 +136,52 @@ import {
|
|
|
133
136
|
setDialogTurnPhase,
|
|
134
137
|
subscribe,
|
|
135
138
|
tokenUsageLiveUpdate
|
|
136
|
-
} from "./chunk-
|
|
137
|
-
import "./chunk-
|
|
139
|
+
} from "./chunk-I2OYPD3Y.js";
|
|
140
|
+
import "./chunk-RD3QLZQV.js";
|
|
141
|
+
import "./chunk-HXER7YJF.js";
|
|
142
|
+
import "./chunk-5ZUOVCKT.js";
|
|
143
|
+
import "./chunk-DXWGFL2Z.js";
|
|
144
|
+
import "./chunk-3L2WKC3W.js";
|
|
145
|
+
import "./chunk-YGCOJNFZ.js";
|
|
138
146
|
import {
|
|
139
147
|
selectCurrentServer
|
|
140
|
-
} from "./chunk-
|
|
141
|
-
import "./chunk-
|
|
142
|
-
import "./chunk-PVZY6P3S.js";
|
|
148
|
+
} from "./chunk-O6IPRAVV.js";
|
|
149
|
+
import "./chunk-T6VROBY7.js";
|
|
143
150
|
import "./chunk-UAD2WT54.js";
|
|
144
151
|
import {
|
|
145
152
|
patch,
|
|
146
153
|
read,
|
|
147
154
|
selectById,
|
|
148
155
|
write
|
|
149
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-RM4UMFY4.js";
|
|
150
157
|
import "./chunk-3PVYUPXK.js";
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-
|
|
153
|
-
import "./chunk-QLFCTYRH.js";
|
|
158
|
+
import "./chunk-A5EVA6HU.js";
|
|
159
|
+
import "./chunk-F3XI6WQP.js";
|
|
154
160
|
import {
|
|
155
161
|
selectRuntimeCurrentServer
|
|
156
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-GXXY2NL3.js";
|
|
157
163
|
import "./chunk-UEILX4EV.js";
|
|
158
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-7TTMMOKH.js";
|
|
159
165
|
import {
|
|
160
166
|
getIsDesktopApp
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
167
|
+
} from "./chunk-ULLHVDTZ.js";
|
|
168
|
+
import "./chunk-X7IA2B7R.js";
|
|
163
169
|
import {
|
|
164
170
|
selectIdentityToken,
|
|
165
171
|
selectIdentityUser,
|
|
166
172
|
selectIdentityUserId
|
|
167
173
|
} from "./chunk-PXYBUFDB.js";
|
|
174
|
+
import "./chunk-QQ56R7KS.js";
|
|
175
|
+
import "./chunk-GBWGPTA7.js";
|
|
176
|
+
import "./chunk-OOJNQK6V.js";
|
|
168
177
|
import "./chunk-BV3FLP2L.js";
|
|
169
178
|
import {
|
|
170
179
|
applyPublicAgentCatalogOverride
|
|
171
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-N2JROHD3.js";
|
|
172
181
|
import {
|
|
173
182
|
applyBuiltinAgentRuntimeOverride,
|
|
174
183
|
resolveBuiltinPlatformAgentRecord
|
|
175
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-JBWXPACD.js";
|
|
176
185
|
import {
|
|
177
186
|
assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
|
|
178
187
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
@@ -180,70 +189,69 @@ import {
|
|
|
180
189
|
evaluateRequestBudget,
|
|
181
190
|
extractImageUrlsFromMessages,
|
|
182
191
|
stripImagePartsForTextOnlyAgent
|
|
183
|
-
} from "./chunk-
|
|
184
|
-
import "./chunk-
|
|
185
|
-
import "./chunk-
|
|
192
|
+
} from "./chunk-KZPEGO6D.js";
|
|
193
|
+
import "./chunk-BYXBJQAS.js";
|
|
194
|
+
import "./chunk-BGGAY6OK.js";
|
|
186
195
|
import {
|
|
187
196
|
projectUserPartForModel
|
|
188
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-5QZSEQSK.js";
|
|
189
198
|
import "./chunk-56GBUMO5.js";
|
|
190
|
-
import
|
|
191
|
-
isGptProModel,
|
|
192
|
-
shouldBlockForGptPro
|
|
193
|
-
} from "./chunk-FRSBYNWI.js";
|
|
194
|
-
import "./chunk-C4VAR65S.js";
|
|
195
|
-
import "./chunk-HOCHUZQ7.js";
|
|
196
|
-
import {
|
|
197
|
-
resolveRuntimeToolSurfaceForAgent
|
|
198
|
-
} from "./chunk-SOF4OWDM.js";
|
|
199
|
+
import "./chunk-PGKA77TZ.js";
|
|
199
200
|
import {
|
|
200
201
|
extractImagePartsFromResponseOutput,
|
|
201
202
|
extractTextFromResponseOutput,
|
|
202
203
|
toResponsesTools
|
|
203
|
-
} from "./chunk-
|
|
204
|
-
import "./chunk-
|
|
204
|
+
} from "./chunk-EEOOBRA7.js";
|
|
205
|
+
import "./chunk-X4O7FJF5.js";
|
|
206
|
+
import "./chunk-G22P367E.js";
|
|
207
|
+
import "./chunk-QJTZ76CP.js";
|
|
208
|
+
import "./chunk-7NIBQ4HY.js";
|
|
209
|
+
import {
|
|
210
|
+
resolveRuntimeToolSurfaceForAgent
|
|
211
|
+
} from "./chunk-VS276URX.js";
|
|
205
212
|
import {
|
|
206
213
|
isContextOverflowText,
|
|
207
214
|
parseApiError
|
|
208
215
|
} from "./chunk-TLE77UJ5.js";
|
|
209
|
-
import "./chunk-EOWLBDY6.js";
|
|
210
216
|
import {
|
|
211
217
|
resolveAgentCallPlan,
|
|
212
218
|
resolveClientWire
|
|
213
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-TWTJV35S.js";
|
|
220
|
+
import "./chunk-WFGNWWJI.js";
|
|
221
|
+
import "./chunk-MM73SP4K.js";
|
|
214
222
|
import {
|
|
215
223
|
resolveAgentContextWindow
|
|
216
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-DNZ4JJ7C.js";
|
|
217
225
|
import "./chunk-5ZUL4CUO.js";
|
|
218
226
|
import {
|
|
219
227
|
getModelInfo
|
|
220
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-L32W3PRP.js";
|
|
221
229
|
import "./chunk-H57T64RA.js";
|
|
222
|
-
import
|
|
223
|
-
isOAuthApiKeyRef
|
|
224
|
-
} from "./chunk-UKZX3NHN.js";
|
|
230
|
+
import "./chunk-UKZX3NHN.js";
|
|
225
231
|
import "./chunk-5MMAK75Q.js";
|
|
226
|
-
import "./chunk-
|
|
232
|
+
import "./chunk-USGHJSGO.js";
|
|
233
|
+
import "./chunk-OQHIVPG4.js";
|
|
227
234
|
import {
|
|
228
235
|
asRecordOrEmpty
|
|
229
236
|
} from "./chunk-KX6YBIHG.js";
|
|
230
|
-
import "./chunk-SNBZZPYH.js";
|
|
231
237
|
import "./chunk-DWLEOOGR.js";
|
|
232
|
-
import "./chunk-OW765XBU.js";
|
|
233
238
|
import {
|
|
234
239
|
isAbortError
|
|
235
240
|
} from "./chunk-7DPNBQSV.js";
|
|
236
|
-
import "./chunk-
|
|
241
|
+
import "./chunk-OW765XBU.js";
|
|
242
|
+
import "./chunk-EWQ3HGNZ.js";
|
|
237
243
|
import {
|
|
238
|
-
|
|
239
|
-
} from "./chunk-
|
|
240
|
-
import "./chunk-
|
|
244
|
+
estimateTokenCount
|
|
245
|
+
} from "./chunk-PSCNXBYA.js";
|
|
246
|
+
import "./chunk-G7Y4GXTY.js";
|
|
247
|
+
import "./chunk-6UBGXX2W.js";
|
|
248
|
+
import "./chunk-EBKHA63G.js";
|
|
241
249
|
import "./chunk-6OVNSQHN.js";
|
|
242
250
|
import "./chunk-W6RFEDN4.js";
|
|
243
|
-
import "./chunk-
|
|
251
|
+
import "./chunk-ZVOL2MAJ.js";
|
|
244
252
|
import {
|
|
245
253
|
isSystemBuiltinTrustedAgentKey
|
|
246
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-WRKMXMU7.js";
|
|
247
255
|
import {
|
|
248
256
|
extractCustomId
|
|
249
257
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -254,24 +262,23 @@ import {
|
|
|
254
262
|
} from "./chunk-OJKUU3LP.js";
|
|
255
263
|
import "./chunk-YZMNK53S.js";
|
|
256
264
|
import "./chunk-I42VC5KR.js";
|
|
257
|
-
import "./chunk-
|
|
265
|
+
import "./chunk-SRCCSTIM.js";
|
|
258
266
|
import {
|
|
259
267
|
getPublicImageAgentDefaultProfile,
|
|
260
268
|
getPublicImageAgentMode
|
|
261
269
|
} from "./chunk-VIDPVFP3.js";
|
|
262
270
|
import "./chunk-4JH2UMJR.js";
|
|
263
|
-
import "./chunk-
|
|
264
|
-
import "./chunk-
|
|
271
|
+
import "./chunk-U6VC4MU4.js";
|
|
272
|
+
import "./chunk-YGDYYFRX.js";
|
|
273
|
+
import "./chunk-2SXN7LAY.js";
|
|
265
274
|
import "./chunk-KHCLMKZZ.js";
|
|
266
|
-
import "./chunk-
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import
|
|
269
|
-
|
|
270
|
-
} from "./chunk-PSCNXBYA.js";
|
|
271
|
-
import "./chunk-2OLYKYNY.js";
|
|
275
|
+
import "./chunk-LCBAMY2M.js";
|
|
276
|
+
import "./chunk-62HXNQVV.js";
|
|
277
|
+
import "./chunk-6CKUO32A.js";
|
|
278
|
+
import "./chunk-RTHFJZ6M.js";
|
|
272
279
|
import {
|
|
273
280
|
isOpenAiResponsesModel
|
|
274
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-HBRDSQ3M.js";
|
|
275
282
|
import {
|
|
276
283
|
toErrorMessage
|
|
277
284
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -280,23 +287,19 @@ import {
|
|
|
280
287
|
} from "./chunk-3EUW3WEO.js";
|
|
281
288
|
import {
|
|
282
289
|
getApiEndpoint
|
|
283
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-CD3RU7XL.js";
|
|
284
291
|
import "./chunk-JRTNUU5Z.js";
|
|
285
292
|
import {
|
|
286
293
|
isRecord
|
|
287
294
|
} from "./chunk-KUG52IAP.js";
|
|
288
|
-
import "./chunk-VALBGPM6.js";
|
|
289
|
-
import "./chunk-QSJ3HFEF.js";
|
|
290
|
-
import "./chunk-U6VC4MU4.js";
|
|
291
295
|
import "./chunk-WWC7I6TA.js";
|
|
292
|
-
import "./chunk-LCBAMY2M.js";
|
|
293
296
|
import {
|
|
294
297
|
asOptionalTrimmedString
|
|
295
298
|
} from "./chunk-G3SUCT4W.js";
|
|
296
299
|
import "./chunk-4SN6J65J.js";
|
|
297
300
|
import "./chunk-CF7PE763.js";
|
|
298
|
-
import "./chunk-
|
|
299
|
-
import "./chunk-
|
|
301
|
+
import "./chunk-OBSEKCVK.js";
|
|
302
|
+
import "./chunk-QSJ3HFEF.js";
|
|
300
303
|
import "./chunk-U67V476Y.js";
|
|
301
304
|
|
|
302
305
|
// packages/ai/agent/isVoiceModel.ts
|
|
@@ -536,7 +539,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
536
539
|
parentMessageId,
|
|
537
540
|
messageMetadata,
|
|
538
541
|
quickChatPerfStartedAt,
|
|
539
|
-
fallbackBodyData
|
|
542
|
+
fallbackBodyData,
|
|
543
|
+
userMessageId
|
|
540
544
|
}) => {
|
|
541
545
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
542
546
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -769,7 +773,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
769
773
|
agentConfig,
|
|
770
774
|
messageId,
|
|
771
775
|
dialogId,
|
|
772
|
-
dialogKey
|
|
776
|
+
dialogKey,
|
|
777
|
+
userMessageId
|
|
773
778
|
})
|
|
774
779
|
).unwrap();
|
|
775
780
|
state.content = Array.isArray(result.finalContentBuffer) ? result.finalContentBuffer.filter((part) => part?.type === "text").map((part) => part.text ?? "").join("") : state.content;
|
|
@@ -1241,39 +1246,6 @@ async function admitWebRequest(options) {
|
|
|
1241
1246
|
throw new Error("Context budget admission failed");
|
|
1242
1247
|
}
|
|
1243
1248
|
|
|
1244
|
-
// packages/ai/agent/platformPaidCall.ts
|
|
1245
|
-
var asTrimmed = (value) => typeof value === "string" ? value.trim() : "";
|
|
1246
|
-
var hasOAuthCredentialShape = (agentConfig) => isOAuthApiKeyRef(agentConfig?.apiKeyRef) || isAntigravityOAuthAgent({
|
|
1247
|
-
key: "platform-paid-call-probe",
|
|
1248
|
-
apiKeyRef: agentConfig?.apiKeyRef ?? void 0,
|
|
1249
|
-
provider: agentConfig?.provider ?? void 0,
|
|
1250
|
-
customProviderUrl: agentConfig?.customProviderUrl ?? void 0
|
|
1251
|
-
});
|
|
1252
|
-
function isPlatformPaidAgentCall(probe) {
|
|
1253
|
-
const agentConfig = probe?.agentConfig ?? {};
|
|
1254
|
-
const authKind = asTrimmed(probe?.authKind);
|
|
1255
|
-
if (authKind) return authKind === "platform-key";
|
|
1256
|
-
if (asTrimmed(agentConfig.apiSource) === "cli") return false;
|
|
1257
|
-
return resolveBillingSource({
|
|
1258
|
-
local: agentConfig.local,
|
|
1259
|
-
isLocal: agentConfig.isLocal,
|
|
1260
|
-
cliProvider: agentConfig.cliProvider,
|
|
1261
|
-
apiSource: agentConfig.apiSource,
|
|
1262
|
-
provider: agentConfig.provider,
|
|
1263
|
-
billingSource: agentConfig.billingSource,
|
|
1264
|
-
// 形态证明而非记录自声明(见文件头):自声明 isOAuth 不足以证明 OAuth 通道归属。
|
|
1265
|
-
isOAuth: hasOAuthCredentialShape(agentConfig),
|
|
1266
|
-
apiKeyRef: agentConfig.apiKeyRef,
|
|
1267
|
-
customProviderUrl: agentConfig.customProviderUrl,
|
|
1268
|
-
isOwned: isOwnedAgentRecord(
|
|
1269
|
-
agentConfig,
|
|
1270
|
-
asTrimmed(probe?.callerUserId) || void 0
|
|
1271
|
-
),
|
|
1272
|
-
userId: agentConfig.userId,
|
|
1273
|
-
ownerId: agentConfig.ownerId
|
|
1274
|
-
}) === "platform_credits";
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
1249
|
// packages/ai/agent/persistMessageWithFixedId.ts
|
|
1278
1250
|
async function persistMessageWithFixedId(dispatch, message) {
|
|
1279
1251
|
dispatch(addUserMessage(message));
|
|
@@ -2084,7 +2056,45 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2084
2056
|
let loopKey = null;
|
|
2085
2057
|
let runtimeDialogKey = explicitDialogKey ?? null;
|
|
2086
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
|
+
};
|
|
2087
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
|
+
};
|
|
2088
2098
|
let remoteTransientMessageId = null;
|
|
2089
2099
|
let remoteTransientMessageFinalized = false;
|
|
2090
2100
|
let modelRequestStarted = false;
|
|
@@ -2279,7 +2289,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2279
2289
|
agentKey,
|
|
2280
2290
|
userInput: agentRunUserInput,
|
|
2281
2291
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
2282
|
-
messages: cleanedMessages,
|
|
2292
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
2283
2293
|
stream: true,
|
|
2284
2294
|
persistDialog: true,
|
|
2285
2295
|
continueDialogId: dialogId2,
|
|
@@ -2290,7 +2300,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2290
2300
|
runtime: "react",
|
|
2291
2301
|
entrypoint: "chat-dialog",
|
|
2292
2302
|
capabilities: ["streaming", "dialog-ui", "machine-bound-cli", "durable-user-batch", "client-user-prepersisted"],
|
|
2293
|
-
userMessageId
|
|
2303
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {}
|
|
2294
2304
|
},
|
|
2295
2305
|
...dialogConfig?.spaceId ? { spaceId: dialogConfig.spaceId } : {}
|
|
2296
2306
|
}),
|
|
@@ -2338,12 +2348,13 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2338
2348
|
return { reject: payload.message || "\u7535\u8111\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
2339
2349
|
}
|
|
2340
2350
|
if (payload.type === "action_gate" && payload.gate) {
|
|
2341
|
-
|
|
2351
|
+
receiveActionGate(
|
|
2342
2352
|
payload.gate,
|
|
2343
2353
|
targetForRunKind("server-run", {
|
|
2344
2354
|
server: currentServer2,
|
|
2345
2355
|
token
|
|
2346
|
-
})
|
|
2356
|
+
}),
|
|
2357
|
+
dialogId2
|
|
2347
2358
|
);
|
|
2348
2359
|
}
|
|
2349
2360
|
remoteToolHandlers.handleToolPayload(payload);
|
|
@@ -2895,9 +2906,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2895
2906
|
} else if (event.type === "execution_location") {
|
|
2896
2907
|
desktopToolExecutionLocation = event.location;
|
|
2897
2908
|
} else if (event.type === "action_gate") {
|
|
2898
|
-
|
|
2909
|
+
receiveActionGate(
|
|
2899
2910
|
event.gate,
|
|
2900
|
-
targetForRunKind("desktop-local")
|
|
2911
|
+
targetForRunKind("desktop-local"),
|
|
2912
|
+
dialogId
|
|
2901
2913
|
);
|
|
2902
2914
|
} else if (event.type === "done") {
|
|
2903
2915
|
streamResult = event.result;
|
|
@@ -3215,7 +3227,7 @@ ${info.actionHint}` : streamError;
|
|
|
3215
3227
|
agentKey,
|
|
3216
3228
|
userInput: agentRunUserInput,
|
|
3217
3229
|
...Array.isArray(contextBlocks) && contextBlocks.length > 0 ? { contextBlocks } : {},
|
|
3218
|
-
messages: cleanedMessages,
|
|
3230
|
+
messages: serializeAgentRunMessages(cleanedMessages),
|
|
3219
3231
|
stream: true,
|
|
3220
3232
|
persistDialog: false,
|
|
3221
3233
|
clientDialogId: dialogId,
|
|
@@ -3295,12 +3307,13 @@ ${info.actionHint}` : streamError;
|
|
|
3295
3307
|
return { reject: payload.message || "\u8FDC\u7AEF Agent \u6267\u884C\u5931\u8D25" };
|
|
3296
3308
|
}
|
|
3297
3309
|
if (payload.type === "action_gate" && payload.gate) {
|
|
3298
|
-
|
|
3310
|
+
receiveActionGate(
|
|
3299
3311
|
payload.gate,
|
|
3300
3312
|
targetForRunKind("server-run", {
|
|
3301
3313
|
server: explicitServerBase,
|
|
3302
3314
|
token
|
|
3303
|
-
})
|
|
3315
|
+
}),
|
|
3316
|
+
dialogId
|
|
3304
3317
|
);
|
|
3305
3318
|
}
|
|
3306
3319
|
if (payload.type === "agent_handoff") {
|
|
@@ -3406,7 +3419,8 @@ ${info.actionHint}` : streamError;
|
|
|
3406
3419
|
referencedTools: referenceTools,
|
|
3407
3420
|
recommendedSkillTools: turnToolContext.recommendedSkillTools,
|
|
3408
3421
|
recommendedSkillHints: turnToolContext.recommendedSkillHints,
|
|
3409
|
-
skillPromptPatches: turnToolContext.skillPromptPatches
|
|
3422
|
+
skillPromptPatches: turnToolContext.skillPromptPatches,
|
|
3423
|
+
skillPromptContributions: turnToolContext.skillPromptContributions
|
|
3410
3424
|
};
|
|
3411
3425
|
const initialRawMsgs = selectAdmittedMessages(selectAllMsgs(state, dialogId));
|
|
3412
3426
|
const initialHistoryIds = new Set(initialRawMsgs.map((m) => m.id));
|
|
@@ -3456,7 +3470,7 @@ ${info.actionHint}` : streamError;
|
|
|
3456
3470
|
responseApi: true
|
|
3457
3471
|
});
|
|
3458
3472
|
let appendTempUserInput2 = true;
|
|
3459
|
-
let activeTurnUserMessageId2;
|
|
3473
|
+
let activeTurnUserMessageId2 = args.userMessageId;
|
|
3460
3474
|
let currentParentMessageId2 = parentMessageId ?? void 0;
|
|
3461
3475
|
const storedResponsesState = currentDialog?.responsesState;
|
|
3462
3476
|
let responsesState = selectResponsesConversationState(
|
|
@@ -3590,12 +3604,6 @@ ${info.actionHint}` : streamError;
|
|
|
3590
3604
|
isStreaming: false
|
|
3591
3605
|
}
|
|
3592
3606
|
];
|
|
3593
|
-
activeTurnUserMessageId2 = tempId;
|
|
3594
|
-
} else {
|
|
3595
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3596
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3597
|
-
activeTurnUserMessageId2 = lastMsg.id;
|
|
3598
|
-
}
|
|
3599
3607
|
}
|
|
3600
3608
|
}
|
|
3601
3609
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3670,7 +3678,8 @@ ${info.actionHint}` : streamError;
|
|
|
3670
3678
|
parentMessageId: currentParentMessageId2,
|
|
3671
3679
|
messageMetadata: streamingMessageMetadata,
|
|
3672
3680
|
quickChatPerfStartedAt,
|
|
3673
|
-
fallbackBodyData
|
|
3681
|
+
fallbackBodyData,
|
|
3682
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId2)
|
|
3674
3683
|
})
|
|
3675
3684
|
})).unwrap();
|
|
3676
3685
|
if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
|
|
@@ -3780,7 +3789,7 @@ ${info.actionHint}` : streamError;
|
|
|
3780
3789
|
responseApi: false
|
|
3781
3790
|
});
|
|
3782
3791
|
let appendTempUserInput = true;
|
|
3783
|
-
let activeTurnUserMessageId;
|
|
3792
|
+
let activeTurnUserMessageId = args.userMessageId;
|
|
3784
3793
|
let currentParentMessageId = parentMessageId ?? void 0;
|
|
3785
3794
|
const w = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
3786
3795
|
if (w) w.__LOOP_STOP_REASON__ = null;
|
|
@@ -3903,12 +3912,6 @@ ${info.actionHint}` : streamError;
|
|
|
3903
3912
|
isStreaming: false
|
|
3904
3913
|
}
|
|
3905
3914
|
];
|
|
3906
|
-
activeTurnUserMessageId = tempId;
|
|
3907
|
-
} else {
|
|
3908
|
-
const lastMsg = visibleMessages[visibleMessages.length - 1];
|
|
3909
|
-
if (lastMsg && typeof lastMsg.id === "string") {
|
|
3910
|
-
activeTurnUserMessageId = lastMsg.id;
|
|
3911
|
-
}
|
|
3912
3915
|
}
|
|
3913
3916
|
}
|
|
3914
3917
|
const requestUserInput = snapshotUserBatchInput(selectAllMsgs(loopState, dialogId));
|
|
@@ -3998,7 +4001,8 @@ ${info.actionHint}` : streamError;
|
|
|
3998
4001
|
parentMessageId: currentParentMessageId,
|
|
3999
4002
|
messageMetadata: streamingMessageMetadata,
|
|
4000
4003
|
disableToolsForThisRequest,
|
|
4001
|
-
quickChatPerfStartedAt
|
|
4004
|
+
quickChatPerfStartedAt,
|
|
4005
|
+
userMessageId: workMemoryUserMessageId(dialogId, activeTurnUserMessageId)
|
|
4002
4006
|
})
|
|
4003
4007
|
})).unwrap();
|
|
4004
4008
|
if (!meta || loopController.signal.aborted || thunkApi.signal.aborted) break;
|
|
@@ -4105,6 +4109,8 @@ ${info.actionHint}` : streamError;
|
|
|
4105
4109
|
);
|
|
4106
4110
|
} finally {
|
|
4107
4111
|
batchExecution.dispose();
|
|
4112
|
+
clearGateTurn(secretGateTurnId);
|
|
4113
|
+
for (const id of secretGateAnchors) dispatch(removeTransientMessage(id));
|
|
4108
4114
|
clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
|
|
4109
4115
|
if (loopKey && runtimeDialogKey) {
|
|
4110
4116
|
dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
|
|
@@ -4,39 +4,40 @@ import {
|
|
|
4
4
|
import "./chunk-YNIYE47Z.js";
|
|
5
5
|
import {
|
|
6
6
|
getActiveDialogKey
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-I2OYPD3Y.js";
|
|
8
|
+
import "./chunk-RD3QLZQV.js";
|
|
9
9
|
import {
|
|
10
10
|
patch,
|
|
11
11
|
selectById
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RM4UMFY4.js";
|
|
13
13
|
import "./chunk-3PVYUPXK.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-A5EVA6HU.js";
|
|
15
|
+
import "./chunk-F3XI6WQP.js";
|
|
16
|
+
import "./chunk-GXXY2NL3.js";
|
|
17
17
|
import "./chunk-UEILX4EV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-7TTMMOKH.js";
|
|
19
|
+
import "./chunk-ULLHVDTZ.js";
|
|
20
|
+
import "./chunk-X7IA2B7R.js";
|
|
21
21
|
import "./chunk-PXYBUFDB.js";
|
|
22
|
+
import "./chunk-QQ56R7KS.js";
|
|
22
23
|
import "./chunk-BV3FLP2L.js";
|
|
23
|
-
import "./chunk-OW765XBU.js";
|
|
24
24
|
import "./chunk-7DPNBQSV.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-OW765XBU.js";
|
|
26
|
+
import "./chunk-WRKMXMU7.js";
|
|
26
27
|
import "./chunk-M2EJHDJP.js";
|
|
27
28
|
import "./chunk-SYTHYBMI.js";
|
|
28
29
|
import "./chunk-OJKUU3LP.js";
|
|
29
30
|
import "./chunk-YZMNK53S.js";
|
|
30
31
|
import "./chunk-I42VC5KR.js";
|
|
32
|
+
import "./chunk-U6VC4MU4.js";
|
|
33
|
+
import "./chunk-LCBAMY2M.js";
|
|
31
34
|
import "./chunk-3EUW3WEO.js";
|
|
32
35
|
import "./chunk-KUG52IAP.js";
|
|
33
|
-
import "./chunk-QSJ3HFEF.js";
|
|
34
|
-
import "./chunk-U6VC4MU4.js";
|
|
35
36
|
import "./chunk-WWC7I6TA.js";
|
|
36
|
-
import "./chunk-LCBAMY2M.js";
|
|
37
37
|
import "./chunk-G3SUCT4W.js";
|
|
38
38
|
import "./chunk-4SN6J65J.js";
|
|
39
39
|
import "./chunk-CF7PE763.js";
|
|
40
|
+
import "./chunk-QSJ3HFEF.js";
|
|
40
41
|
import {
|
|
41
42
|
__toESM
|
|
42
43
|
} from "./chunk-U67V476Y.js";
|