nolo-cli 0.224.0-alpha.2 → 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-4WBUORCW.js → _executeModel-5NA4USGG.js} +77 -71
- 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-BB6KU5AO.js → agentDeleteCommand-2RFGKFAB.js} +127 -119
- package/{agentEmailCommands-KMHPL6OH.js → agentEmailCommands-GQCQKKOR.js} +126 -114
- 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-OC5D4YZW.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-M22Y3D5U.js → agentRunCommand-AFAIP7U7.js} +129 -115
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
- package/{agentSlice-AJPMMBOP.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-VQP625QS.js → authCommand-4CVBDADE.js} +29 -28
- package/{authCommands-PAKU3CJZ.js → authCommands-EHU2BHOX.js} +12 -11
- 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-XUJZYUIM.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-EK7PGVPY.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-ULK35M44.js → chunk-7AJRJGSQ.js} +1049 -2860
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-ZLOSGVCQ.js → chunk-A3LUWRQK.js} +15 -15
- package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-ZLNHUFOF.js → chunk-A74QP4FI.js} +2613 -1297
- package/{chunk-ME4XUFTD.js → chunk-AEQMKYZN.js} +15 -15
- package/{chunk-6E2NWYT4.js → chunk-AH5R7BYW.js} +22 -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-S7RA7A4X.js → chunk-B7DE5XJW.js} +387 -347
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
- package/{chunk-BKJSRO66.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-HJAGA3GR.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-PYIMOZSX.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-KPAFQHRT.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-SJYK3LLP.js → chunk-FFYE5ATM.js} +6 -6
- package/{chunk-QG3USDTD.js → chunk-FZKA3XFA.js} +21 -21
- package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
- package/{chunk-WOIURUUV.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-RXJ26SQW.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-H5LWB3D3.js → chunk-PRMEU7BT.js} +347 -14
- 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-53X6PS42.js → chunk-VREG6ANQ.js} +103 -100
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/{chunk-SH3IKNCG.js → chunk-VSRISJXZ.js} +15 -8
- 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-EVYGYDPG.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-OK4MZRJ6.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-3JVE76K2.js → commandRegistry-TME7INFU.js} +98 -94
- package/{contentThunks-SRKUHSBR.js → contentThunks-U6OC4R2N.js} +37 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
- package/{createAgentAutomationAction-B4BQV46J.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
- package/{createDialogAction-IONSKZIX.js → createDialogAction-IAGQJ3LH.js} +38 -37
- package/{createPageAction-K75KBQOO.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-GPALSBQM.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-O43KOHIX.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-I2GHUSHZ.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
- package/{hostCredentialCreate-V775SKCE.js → hostCredentialCreate-6VDJFNDO.js} +118 -105
- 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-SAMUDW5S.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -108
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-ZXZWGMFE.js → machineCommands-K6XIGOAD.js} +142 -115
- package/{machineWsRunDispatch-3ZEI4BEC.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -102
- 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-V7EYBAX6.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-S4VRNWYG.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4279
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
- package/{runAgentClientLoop-MQLOUDF5.js → runAgentClientLoop-HQJPDFGQ.js} +95 -70
- 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-GMNIKJVL.js → streamAgentChatTurn-E3XH2KFD.js} +160 -155
- 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-MWIF3S4T.js → tools-7RSX22FT.js} +64 -59
- 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-ZXHMZFSX.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-S2IVVEES.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- 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
|
@@ -5,22 +5,18 @@ import {
|
|
|
5
5
|
applyTokenUsageToDayStats,
|
|
6
6
|
require_format
|
|
7
7
|
} from "./chunk-BUDVRYES.js";
|
|
8
|
-
import {
|
|
9
|
-
buildDialogAttachmentPlan,
|
|
10
|
-
extractFileContentIds
|
|
11
|
-
} from "./chunk-KEPOVMF4.js";
|
|
12
8
|
import {
|
|
13
9
|
BUILTIN_SUMMARY_LLM_CONFIG
|
|
14
10
|
} from "./chunk-523DITKR.js";
|
|
15
11
|
import {
|
|
16
12
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IJTXNLQE.js";
|
|
18
14
|
import {
|
|
19
15
|
isMediaToolConfirmation
|
|
20
16
|
} from "./chunk-QYPE3TS3.js";
|
|
21
17
|
import {
|
|
22
18
|
cleanupCliSessionForDialog
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CKZPMJNU.js";
|
|
24
20
|
import {
|
|
25
21
|
getActiveDialogAgentId,
|
|
26
22
|
getDialogAgentIds,
|
|
@@ -41,16 +37,21 @@ import {
|
|
|
41
37
|
setActiveDialogKey,
|
|
42
38
|
setDialogConfigError,
|
|
43
39
|
setMediaJobRuntimeActor
|
|
44
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-I2OYPD3Y.js";
|
|
45
41
|
import {
|
|
46
42
|
require_react
|
|
47
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RD3QLZQV.js";
|
|
48
44
|
import {
|
|
49
45
|
fetchMessages
|
|
50
46
|
} from "./chunk-HXER7YJF.js";
|
|
47
|
+
import {
|
|
48
|
+
buildDialogAttachmentPlan,
|
|
49
|
+
extractFileContentIds,
|
|
50
|
+
fetchWithTransientRetry
|
|
51
|
+
} from "./chunk-DXWGFL2Z.js";
|
|
51
52
|
import {
|
|
52
53
|
addContentAction
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-T6VROBY7.js";
|
|
54
55
|
import {
|
|
55
56
|
patch,
|
|
56
57
|
read,
|
|
@@ -58,32 +59,34 @@ import {
|
|
|
58
59
|
selectById,
|
|
59
60
|
upload,
|
|
60
61
|
write
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RM4UMFY4.js";
|
|
62
63
|
import {
|
|
63
64
|
getRuntimeServerContext,
|
|
64
65
|
parseOwnerUserIdFromDbKey,
|
|
65
66
|
resolveUserAuthorityServer,
|
|
66
67
|
scheduleDeleteReplication,
|
|
67
68
|
waitForWriteAck
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-GXXY2NL3.js";
|
|
69
70
|
import {
|
|
70
71
|
asyncThunkCreator,
|
|
71
72
|
buildCreateSlice,
|
|
72
73
|
createAsyncThunk,
|
|
73
74
|
createEntityAdapter,
|
|
74
75
|
createSelector
|
|
75
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-7TTMMOKH.js";
|
|
76
77
|
import {
|
|
78
|
+
googleSessionRequestToken,
|
|
79
|
+
isGoogleAuthoritySession,
|
|
77
80
|
normalizeTimeFields
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
createClientLogger
|
|
81
|
-
} from "./chunk-QQ56R7KS.js";
|
|
81
|
+
} from "./chunk-ULLHVDTZ.js";
|
|
82
82
|
import {
|
|
83
83
|
selectIdentityToken,
|
|
84
84
|
selectIdentityUser,
|
|
85
85
|
selectIdentityUserId
|
|
86
86
|
} from "./chunk-PXYBUFDB.js";
|
|
87
|
+
import {
|
|
88
|
+
createClientLogger
|
|
89
|
+
} from "./chunk-QQ56R7KS.js";
|
|
87
90
|
import {
|
|
88
91
|
getRecordTimestamp,
|
|
89
92
|
getTombstoneTimestamp,
|
|
@@ -93,7 +96,7 @@ import {
|
|
|
93
96
|
import {
|
|
94
97
|
applyBuiltinAgentRuntimeOverride,
|
|
95
98
|
resolveBuiltinPlatformAgentRecord
|
|
96
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-JBWXPACD.js";
|
|
97
100
|
import {
|
|
98
101
|
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
99
102
|
EMPTY_ASSISTANT_FALLBACK_MESSAGE,
|
|
@@ -108,7 +111,7 @@ import {
|
|
|
108
111
|
isCodexOAuthAgent,
|
|
109
112
|
normalizeAttachmentPart,
|
|
110
113
|
resolveAutoExecutionProfile
|
|
111
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-DNZ4JJ7C.js";
|
|
112
115
|
import {
|
|
113
116
|
isDevinOAuthAgent
|
|
114
117
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -128,7 +131,7 @@ import {
|
|
|
128
131
|
runSummaryWithContract,
|
|
129
132
|
selectSummaryRoute,
|
|
130
133
|
serializeMessageContent
|
|
131
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-L32W3PRP.js";
|
|
132
135
|
import {
|
|
133
136
|
isOAuthApiKeyRef
|
|
134
137
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -138,12 +141,15 @@ import {
|
|
|
138
141
|
import {
|
|
139
142
|
isAbortError
|
|
140
143
|
} from "./chunk-7DPNBQSV.js";
|
|
144
|
+
import {
|
|
145
|
+
estimateTokenCount
|
|
146
|
+
} from "./chunk-PSCNXBYA.js";
|
|
141
147
|
import {
|
|
142
148
|
nolotusId
|
|
143
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-ZVOL2MAJ.js";
|
|
144
150
|
import {
|
|
145
151
|
isBuiltinPlatformAgentKey
|
|
146
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-WRKMXMU7.js";
|
|
147
153
|
import {
|
|
148
154
|
extractCustomId,
|
|
149
155
|
extractUserId
|
|
@@ -162,8 +168,8 @@ import {
|
|
|
162
168
|
getApproxPricePerImage
|
|
163
169
|
} from "./chunk-4JH2UMJR.js";
|
|
164
170
|
import {
|
|
165
|
-
|
|
166
|
-
} from "./chunk-
|
|
171
|
+
API_ENDPOINTS
|
|
172
|
+
} from "./chunk-LCBAMY2M.js";
|
|
167
173
|
import {
|
|
168
174
|
toErrorMessage
|
|
169
175
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -173,10 +179,19 @@ import {
|
|
|
173
179
|
import {
|
|
174
180
|
findModelConfig,
|
|
175
181
|
getModelConfig
|
|
176
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-CD3RU7XL.js";
|
|
177
183
|
import {
|
|
178
184
|
isRecord
|
|
179
185
|
} from "./chunk-KUG52IAP.js";
|
|
186
|
+
import {
|
|
187
|
+
asOptionalFiniteNumber
|
|
188
|
+
} from "./chunk-WWC7I6TA.js";
|
|
189
|
+
import {
|
|
190
|
+
asOptionalTrimmedString
|
|
191
|
+
} from "./chunk-G3SUCT4W.js";
|
|
192
|
+
import {
|
|
193
|
+
normalizeServerOrigin
|
|
194
|
+
} from "./chunk-CF7PE763.js";
|
|
180
195
|
import {
|
|
181
196
|
PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
|
|
182
197
|
PLATFORM_HOSTED_CLAUDE_FABLE_5_PRICE,
|
|
@@ -194,22 +209,10 @@ import {
|
|
|
194
209
|
isPlatformManagedProvider,
|
|
195
210
|
resolvePlatformEffectiveModel,
|
|
196
211
|
resolvePlatformHostedRouting
|
|
197
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-OBSEKCVK.js";
|
|
198
213
|
import {
|
|
199
214
|
asTrimmedLowercaseString
|
|
200
215
|
} from "./chunk-QSJ3HFEF.js";
|
|
201
|
-
import {
|
|
202
|
-
asOptionalFiniteNumber
|
|
203
|
-
} from "./chunk-WWC7I6TA.js";
|
|
204
|
-
import {
|
|
205
|
-
API_ENDPOINTS
|
|
206
|
-
} from "./chunk-LCBAMY2M.js";
|
|
207
|
-
import {
|
|
208
|
-
asOptionalTrimmedString
|
|
209
|
-
} from "./chunk-G3SUCT4W.js";
|
|
210
|
-
import {
|
|
211
|
-
normalizeServerOrigin
|
|
212
|
-
} from "./chunk-CF7PE763.js";
|
|
213
216
|
import {
|
|
214
217
|
__toESM
|
|
215
218
|
} from "./chunk-U67V476Y.js";
|
|
@@ -265,7 +268,7 @@ function assertUserBatchInput(expected, actual, ids) {
|
|
|
265
268
|
function createUserBatchExecution(signal, owns) {
|
|
266
269
|
let grant;
|
|
267
270
|
let closed = false;
|
|
268
|
-
let
|
|
271
|
+
let inFlight2 = false;
|
|
269
272
|
const dispose = () => {
|
|
270
273
|
closed = true;
|
|
271
274
|
grant = void 0;
|
|
@@ -290,16 +293,16 @@ function createUserBatchExecution(signal, owns) {
|
|
|
290
293
|
return valid() && same(key, receipt);
|
|
291
294
|
},
|
|
292
295
|
authorize(key, receipt, input) {
|
|
293
|
-
if (!valid() ||
|
|
296
|
+
if (!valid() || inFlight2) throw new Error("User batch execution ownership lost; blocked");
|
|
294
297
|
orderedUserBatchInput(input, receipt.messageIds);
|
|
295
298
|
grant = { dialogKey: key, receipt: { ...receipt, messageIds: [...receipt.messageIds] }, input: structuredClone(input) };
|
|
296
299
|
},
|
|
297
300
|
async start(key, receipt, input, invoke) {
|
|
298
|
-
if (!valid() || !same(key, receipt) ||
|
|
301
|
+
if (!valid() || !same(key, receipt) || inFlight2) {
|
|
299
302
|
dispose();
|
|
300
303
|
throw new Error("User batch execution permission expired or mismatched; blocked");
|
|
301
304
|
}
|
|
302
|
-
|
|
305
|
+
inFlight2 = true;
|
|
303
306
|
try {
|
|
304
307
|
assertUserBatchInput(grant.input, input, receipt.messageIds);
|
|
305
308
|
return await invoke();
|
|
@@ -307,7 +310,7 @@ function createUserBatchExecution(signal, owns) {
|
|
|
307
310
|
dispose();
|
|
308
311
|
throw error;
|
|
309
312
|
} finally {
|
|
310
|
-
|
|
313
|
+
inFlight2 = false;
|
|
311
314
|
}
|
|
312
315
|
}
|
|
313
316
|
};
|
|
@@ -401,6 +404,7 @@ function normalizeRunCompletionShape(record) {
|
|
|
401
404
|
...typeof record.parentDialogId === "string" ? { parentDialogId: record.parentDialogId } : {},
|
|
402
405
|
...typeof record.dialogId === "string" ? { dialogId: record.dialogId } : {},
|
|
403
406
|
...typeof record.resultFile === "string" ? { resultFile: record.resultFile } : {},
|
|
407
|
+
...typeof record.continuedFrom === "string" ? { continuedFrom: record.continuedFrom } : {},
|
|
404
408
|
...typeof record.ephemeral === "boolean" ? { ephemeral: record.ephemeral } : {},
|
|
405
409
|
...record.startedAt !== void 0 ? { startedAt: record.startedAt } : {},
|
|
406
410
|
...record.endedAt !== void 0 ? { endedAt: record.endedAt } : {},
|
|
@@ -982,6 +986,7 @@ var fetchConvMsgs = async (server, token, {
|
|
|
982
986
|
limit,
|
|
983
987
|
beforeKey
|
|
984
988
|
}, options = {}) => {
|
|
989
|
+
googleSessionRequestToken(token, server);
|
|
985
990
|
const { signal: externalSignal } = options;
|
|
986
991
|
const controller = new AbortController();
|
|
987
992
|
const startedAt = now();
|
|
@@ -1026,6 +1031,7 @@ var fetchConvMsgs = async (server, token, {
|
|
|
1026
1031
|
try {
|
|
1027
1032
|
const response = await fetch(`${server}/rpc/getConvMsgs`, {
|
|
1028
1033
|
method: "POST",
|
|
1034
|
+
...isGoogleAuthoritySession(token) ? { redirect: "error", credentials: "omit" } : {},
|
|
1029
1035
|
headers: {
|
|
1030
1036
|
Authorization: `Bearer ${token}`,
|
|
1031
1037
|
"Content-Type": "application/json"
|
|
@@ -6204,6 +6210,64 @@ var ai_locale_default = {
|
|
|
6204
6210
|
}
|
|
6205
6211
|
};
|
|
6206
6212
|
|
|
6213
|
+
// packages/chat/dialog/childRunObserverLabels.ts
|
|
6214
|
+
var childRunObserverLabels = {
|
|
6215
|
+
"en": {
|
|
6216
|
+
"openChildPage": "Open child dialog",
|
|
6217
|
+
"savedActiveGroup": "Last saved active \xB7 not live",
|
|
6218
|
+
"historyGroup": "Other tasks",
|
|
6219
|
+
"viewDetails": "View details",
|
|
6220
|
+
"persistedRuns": "Persisted subagent runs",
|
|
6221
|
+
"persistedSnapshot": "Saved status \xB7 not live",
|
|
6222
|
+
"inProgressGroup": "In progress"
|
|
6223
|
+
},
|
|
6224
|
+
"zh-CN": {
|
|
6225
|
+
"openChildPage": "\u6253\u5F00\u5B50\u5BF9\u8BDD",
|
|
6226
|
+
"savedActiveGroup": "\u4E0A\u6B21\u4FDD\u5B58\u4E3A\u6D3B\u8DC3 \xB7 \u975E\u5B9E\u65F6",
|
|
6227
|
+
"historyGroup": "\u5176\u4ED6\u4EFB\u52A1",
|
|
6228
|
+
"viewDetails": "\u67E5\u770B\u8BE6\u60C5",
|
|
6229
|
+
"persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52A1",
|
|
6230
|
+
"persistedSnapshot": "\u5DF2\u4FDD\u5B58\u72B6\u6001 \xB7 \u975E\u5B9E\u65F6",
|
|
6231
|
+
"inProgressGroup": "\u8FDB\u884C\u4E2D"
|
|
6232
|
+
},
|
|
6233
|
+
"zh-Hant": {
|
|
6234
|
+
"openChildPage": "\u958B\u555F\u5B50\u5C0D\u8A71",
|
|
6235
|
+
"savedActiveGroup": "\u4E0A\u6B21\u5132\u5B58\u70BA\u6D3B\u8E8D \xB7 \u975E\u5373\u6642",
|
|
6236
|
+
"historyGroup": "\u5176\u4ED6\u4EFB\u52D9",
|
|
6237
|
+
"viewDetails": "\u67E5\u770B\u8A73\u60C5",
|
|
6238
|
+
"persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52D9",
|
|
6239
|
+
"persistedSnapshot": "\u5DF2\u5132\u5B58\u72C0\u614B \xB7 \u975E\u5373\u6642",
|
|
6240
|
+
"inProgressGroup": "\u9032\u884C\u4E2D"
|
|
6241
|
+
},
|
|
6242
|
+
"ja": {
|
|
6243
|
+
"openChildPage": "\u5B50\u4F1A\u8A71\u3092\u958B\u304F",
|
|
6244
|
+
"savedActiveGroup": "\u6700\u7D42\u4FDD\u5B58\u6642\u306F\u5B9F\u884C\u4E2D\u30FB\u975E\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0",
|
|
6245
|
+
"historyGroup": "\u305D\u306E\u4ED6\u306E\u30BF\u30B9\u30AF",
|
|
6246
|
+
"viewDetails": "\u8A73\u7D30\u3092\u898B\u308B",
|
|
6247
|
+
"persistedRuns": "\u4FDD\u5B58\u6E08\u307F\u30B5\u30D6\u30BF\u30B9\u30AF",
|
|
6248
|
+
"persistedSnapshot": "\u4FDD\u5B58\u6E08\u307F\u72B6\u614B\u30FB\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0\u3067\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
6249
|
+
"inProgressGroup": "\u9032\u884C\u4E2D"
|
|
6250
|
+
},
|
|
6251
|
+
"de": {
|
|
6252
|
+
"openChildPage": "Unterdialog \xF6ffnen",
|
|
6253
|
+
"savedActiveGroup": "Zuletzt aktiv gespeichert \xB7 nicht live",
|
|
6254
|
+
"historyGroup": "Weitere Aufgaben",
|
|
6255
|
+
"viewDetails": "Details ansehen",
|
|
6256
|
+
"persistedRuns": "Gespeicherte Unteraufgaben",
|
|
6257
|
+
"persistedSnapshot": "Gespeicherter Status \xB7 nicht live",
|
|
6258
|
+
"inProgressGroup": "In Bearbeitung"
|
|
6259
|
+
},
|
|
6260
|
+
"es": {
|
|
6261
|
+
"openChildPage": "Abrir di\xE1logo secundario",
|
|
6262
|
+
"savedActiveGroup": "Activo al guardar \xB7 no en vivo",
|
|
6263
|
+
"historyGroup": "Otras tareas",
|
|
6264
|
+
"viewDetails": "Ver detalles",
|
|
6265
|
+
"persistedRuns": "Subtareas guardadas",
|
|
6266
|
+
"persistedSnapshot": "Estado guardado \xB7 no en vivo",
|
|
6267
|
+
"inProgressGroup": "En curso"
|
|
6268
|
+
}
|
|
6269
|
+
};
|
|
6270
|
+
|
|
6207
6271
|
// packages/chat/chat.locale.ts
|
|
6208
6272
|
var chat_locale_default = {
|
|
6209
6273
|
en: {
|
|
@@ -6556,6 +6620,15 @@ var chat_locale_default = {
|
|
|
6556
6620
|
ask_user: "Ask",
|
|
6557
6621
|
runStreamingAgent: "Handoff"
|
|
6558
6622
|
},
|
|
6623
|
+
toolActivity: {
|
|
6624
|
+
unknown: "Unknown",
|
|
6625
|
+
attention: {
|
|
6626
|
+
failure: "Failed",
|
|
6627
|
+
blocked: "Blocked",
|
|
6628
|
+
permission: "Requires authorization",
|
|
6629
|
+
"delete-confirmation": "Awaiting delete confirmation"
|
|
6630
|
+
}
|
|
6631
|
+
},
|
|
6559
6632
|
controlActions: {
|
|
6560
6633
|
status: "Status check",
|
|
6561
6634
|
stop: "Stop task",
|
|
@@ -6604,6 +6677,13 @@ var chat_locale_default = {
|
|
|
6604
6677
|
DialogSettings: "Dialog Settings",
|
|
6605
6678
|
collaborativeConversation: "Collaborative conversation",
|
|
6606
6679
|
childRunObserver: {
|
|
6680
|
+
...childRunObserverLabels["en"],
|
|
6681
|
+
workingGroup: "Working",
|
|
6682
|
+
mainAgent: "Main agent",
|
|
6683
|
+
modelUnknown: "Model unknown",
|
|
6684
|
+
reasoningConfigured: "Reasoning effort (configured): {{effort}}",
|
|
6685
|
+
reasoningUnspecified: "Reasoning effort: not specified",
|
|
6686
|
+
reasoningUnsupported: "Configured reasoning effort is not supported by this model/provider",
|
|
6607
6687
|
panelAriaLabel: "Child runs",
|
|
6608
6688
|
title: "Child runs",
|
|
6609
6689
|
subtitleLoading: "Loading child runs\u2026",
|
|
@@ -7100,6 +7180,15 @@ var chat_locale_default = {
|
|
|
7100
7180
|
ask_user: "\u63D0\u95EE",
|
|
7101
7181
|
runStreamingAgent: "\u8F6C\u4EA4"
|
|
7102
7182
|
},
|
|
7183
|
+
toolActivity: {
|
|
7184
|
+
unknown: "\u72B6\u6001\u672A\u77E5",
|
|
7185
|
+
attention: {
|
|
7186
|
+
failure: "\u5931\u8D25",
|
|
7187
|
+
blocked: "\u5DF2\u963B\u585E",
|
|
7188
|
+
permission: "\u9700\u8981\u6388\u6743",
|
|
7189
|
+
"delete-confirmation": "\u7B49\u5F85\u5220\u9664\u786E\u8BA4"
|
|
7190
|
+
}
|
|
7191
|
+
},
|
|
7103
7192
|
controlActions: {
|
|
7104
7193
|
status: "\u72B6\u6001\u8BCA\u65AD",
|
|
7105
7194
|
stop: "\u505C\u6B62\u4EFB\u52A1",
|
|
@@ -7148,6 +7237,13 @@ var chat_locale_default = {
|
|
|
7148
7237
|
DialogSettings: "\u4F1A\u8BDD\u8BBE\u7F6E",
|
|
7149
7238
|
collaborativeConversation: "\u534F\u4F5C\u4F1A\u8BDD",
|
|
7150
7239
|
childRunObserver: {
|
|
7240
|
+
...childRunObserverLabels["zh-CN"],
|
|
7241
|
+
workingGroup: "\u6B63\u5728\u6267\u884C",
|
|
7242
|
+
mainAgent: "\u4E3B Agent",
|
|
7243
|
+
modelUnknown: "\u6A21\u578B\u672A\u77E5",
|
|
7244
|
+
reasoningConfigured: "\u63A8\u7406\u5F3A\u5EA6\uFF08\u914D\u7F6E\uFF09\uFF1A{{effort}}",
|
|
7245
|
+
reasoningUnspecified: "\u63A8\u7406\u5F3A\u5EA6\uFF1A\u672A\u6307\u5B9A",
|
|
7246
|
+
reasoningUnsupported: "\u5DF2\u914D\u7F6E\u63A8\u7406\u5F3A\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u63D0\u4F9B\u65B9\u4E0D\u652F\u6301\u6B64\u53C2\u6570",
|
|
7151
7247
|
panelAriaLabel: "\u5B50\u4EFB\u52A1\u8FD0\u884C",
|
|
7152
7248
|
title: "\u5B50\u4EFB\u52A1",
|
|
7153
7249
|
subtitleLoading: "\u52A0\u8F7D\u5B50\u8FD0\u884C\u2026",
|
|
@@ -7644,6 +7740,15 @@ var chat_locale_default = {
|
|
|
7644
7740
|
ask_user: "\u63D0\u554F",
|
|
7645
7741
|
runStreamingAgent: "\u8F49\u4EA4"
|
|
7646
7742
|
},
|
|
7743
|
+
toolActivity: {
|
|
7744
|
+
unknown: "\u72C0\u614B\u672A\u77E5",
|
|
7745
|
+
attention: {
|
|
7746
|
+
failure: "\u5931\u6557",
|
|
7747
|
+
blocked: "\u5DF2\u963B\u585E",
|
|
7748
|
+
permission: "\u9700\u8981\u6388\u6B0A",
|
|
7749
|
+
"delete-confirmation": "\u7B49\u5F85\u522A\u9664\u78BA\u8A8D"
|
|
7750
|
+
}
|
|
7751
|
+
},
|
|
7647
7752
|
controlActions: {
|
|
7648
7753
|
status: "\u72C0\u614B\u8A3A\u65B7",
|
|
7649
7754
|
stop: "\u505C\u6B62\u4EFB\u52D9",
|
|
@@ -7692,6 +7797,13 @@ var chat_locale_default = {
|
|
|
7692
7797
|
DialogSettings: "\u6703\u8A71\u8A2D\u5B9A",
|
|
7693
7798
|
collaborativeConversation: "\u5354\u4F5C\u6703\u8A71",
|
|
7694
7799
|
childRunObserver: {
|
|
7800
|
+
...childRunObserverLabels["zh-Hant"],
|
|
7801
|
+
workingGroup: "\u6B63\u5728\u57F7\u884C",
|
|
7802
|
+
mainAgent: "\u4E3B Agent",
|
|
7803
|
+
modelUnknown: "\u6A21\u578B\u672A\u77E5",
|
|
7804
|
+
reasoningConfigured: "\u63A8\u7406\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
|
|
7805
|
+
reasoningUnspecified: "\u63A8\u7406\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
|
|
7806
|
+
reasoningUnsupported: "\u5DF2\u8A2D\u5B9A\u63A8\u7406\u5F37\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u4F9B\u61C9\u5546\u4E0D\u652F\u63F4\u6B64\u53C3\u6578",
|
|
7695
7807
|
panelAriaLabel: "\u5B50\u4EFB\u52D9\u904B\u884C",
|
|
7696
7808
|
title: "\u5B50\u4EFB\u52D9",
|
|
7697
7809
|
subtitleLoading: "\u8F09\u5165\u5B50\u904B\u884C\u2026",
|
|
@@ -8194,6 +8306,15 @@ var chat_locale_default = {
|
|
|
8194
8306
|
ask_user: "\u8CEA\u554F",
|
|
8195
8307
|
runStreamingAgent: "\u5F15\u304D\u7D99\u304E"
|
|
8196
8308
|
},
|
|
8309
|
+
toolActivity: {
|
|
8310
|
+
unknown: "\u72B6\u614B\u4E0D\u660E",
|
|
8311
|
+
attention: {
|
|
8312
|
+
failure: "\u5931\u6557",
|
|
8313
|
+
blocked: "\u30D6\u30ED\u30C3\u30AF\u4E2D",
|
|
8314
|
+
permission: "\u6A29\u9650\u304C\u5FC5\u8981",
|
|
8315
|
+
"delete-confirmation": "\u524A\u9664\u78BA\u8A8D\u5F85\u3061"
|
|
8316
|
+
}
|
|
8317
|
+
},
|
|
8197
8318
|
controlActions: {
|
|
8198
8319
|
status: "\u30B9\u30C6\u30FC\u30BF\u30B9\u78BA\u8A8D",
|
|
8199
8320
|
stop: "\u30BF\u30B9\u30AF\u505C\u6B62",
|
|
@@ -8242,6 +8363,13 @@ var chat_locale_default = {
|
|
|
8242
8363
|
DialogSettings: "\u5BFE\u8A71\u8A2D\u5B9A",
|
|
8243
8364
|
collaborativeConversation: "\u5354\u8ABF\u4F1A\u8A71",
|
|
8244
8365
|
childRunObserver: {
|
|
8366
|
+
...childRunObserverLabels["ja"],
|
|
8367
|
+
workingGroup: "\u5B9F\u884C\u4E2D",
|
|
8368
|
+
mainAgent: "\u30E1\u30A4\u30F3 Agent",
|
|
8369
|
+
modelUnknown: "\u30E2\u30C7\u30EB\u4E0D\u660E",
|
|
8370
|
+
reasoningConfigured: "\u63A8\u8AD6\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
|
|
8371
|
+
reasoningUnspecified: "\u63A8\u8AD6\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
|
|
8372
|
+
reasoningUnsupported: "\u8A2D\u5B9A\u3055\u308C\u305F\u63A8\u8AD6\u5F37\u5EA6\u306F\u3053\u306E\u30E2\u30C7\u30EB\u307E\u305F\u306F\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3067\u306F\u975E\u5BFE\u5FDC\u3067\u3059",
|
|
8245
8373
|
panelAriaLabel: "\u5B50\u30BF\u30B9\u30AF\u5B9F\u884C",
|
|
8246
8374
|
title: "\u5B50\u30BF\u30B9\u30AF",
|
|
8247
8375
|
subtitleLoading: "\u5B50\u5B9F\u884C\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
@@ -8745,6 +8873,15 @@ var chat_locale_default = {
|
|
|
8745
8873
|
ask_user: "Fragen",
|
|
8746
8874
|
runStreamingAgent: "\xDCbergeben"
|
|
8747
8875
|
},
|
|
8876
|
+
toolActivity: {
|
|
8877
|
+
unknown: "Unbekannt",
|
|
8878
|
+
attention: {
|
|
8879
|
+
failure: "Fehlgeschlagen",
|
|
8880
|
+
blocked: "Blockiert",
|
|
8881
|
+
permission: "Autorisierung erforderlich",
|
|
8882
|
+
"delete-confirmation": "Wartet auf L\xF6schbest\xE4tigung"
|
|
8883
|
+
}
|
|
8884
|
+
},
|
|
8748
8885
|
controlActions: {
|
|
8749
8886
|
status: "Statuspr\xFCfung",
|
|
8750
8887
|
stop: "Aufgabe anhalten",
|
|
@@ -8793,6 +8930,13 @@ var chat_locale_default = {
|
|
|
8793
8930
|
DialogSettings: "Dialog-Einstellungen",
|
|
8794
8931
|
collaborativeConversation: "Kollaborative Unterhaltung",
|
|
8795
8932
|
childRunObserver: {
|
|
8933
|
+
...childRunObserverLabels["de"],
|
|
8934
|
+
workingGroup: "In Bearbeitung",
|
|
8935
|
+
mainAgent: "Haupt-Agent",
|
|
8936
|
+
modelUnknown: "Modell unbekannt",
|
|
8937
|
+
reasoningConfigured: "Denkaufwand (konfiguriert): {{effort}}",
|
|
8938
|
+
reasoningUnspecified: "Denkaufwand: nicht angegeben",
|
|
8939
|
+
reasoningUnsupported: "Der konfigurierte Denkaufwand wird von diesem Modell/Anbieter nicht unterst\xFCtzt",
|
|
8796
8940
|
panelAriaLabel: "Hintergrund-Subtasks",
|
|
8797
8941
|
title: "Hintergrund-Subtasks",
|
|
8798
8942
|
subtitleLoading: "Subtasks werden geladen\u2026",
|
|
@@ -9296,6 +9440,15 @@ var chat_locale_default = {
|
|
|
9296
9440
|
ask_user: "Preguntar",
|
|
9297
9441
|
runStreamingAgent: "Transferir"
|
|
9298
9442
|
},
|
|
9443
|
+
toolActivity: {
|
|
9444
|
+
unknown: "Desconocido",
|
|
9445
|
+
attention: {
|
|
9446
|
+
failure: "Fallido",
|
|
9447
|
+
blocked: "Bloqueado",
|
|
9448
|
+
permission: "Requiere autorizaci\xF3n",
|
|
9449
|
+
"delete-confirmation": "Esperando confirmaci\xF3n de eliminaci\xF3n"
|
|
9450
|
+
}
|
|
9451
|
+
},
|
|
9299
9452
|
controlActions: {
|
|
9300
9453
|
status: "Diagn\xF3stico de estado",
|
|
9301
9454
|
stop: "Detener tarea",
|
|
@@ -9344,6 +9497,13 @@ var chat_locale_default = {
|
|
|
9344
9497
|
DialogSettings: "Ajustes del di\xE1logo",
|
|
9345
9498
|
collaborativeConversation: "Conversaci\xF3n colaborativa",
|
|
9346
9499
|
childRunObserver: {
|
|
9500
|
+
...childRunObserverLabels["es"],
|
|
9501
|
+
workingGroup: "En ejecuci\xF3n",
|
|
9502
|
+
mainAgent: "Agente principal",
|
|
9503
|
+
modelUnknown: "Modelo desconocido",
|
|
9504
|
+
reasoningConfigured: "Esfuerzo de razonamiento (configurado): {{effort}}",
|
|
9505
|
+
reasoningUnspecified: "Esfuerzo de razonamiento: sin especificar",
|
|
9506
|
+
reasoningUnsupported: "El esfuerzo configurado no es compatible con este modelo/proveedor",
|
|
9347
9507
|
panelAriaLabel: "Subtareas en segundo plano",
|
|
9348
9508
|
title: "Subtareas en segundo plano",
|
|
9349
9509
|
subtitleLoading: "Cargando subtareas\u2026",
|
|
@@ -12037,256 +12197,6 @@ ${failureText}`;
|
|
|
12037
12197
|
return failureText;
|
|
12038
12198
|
}
|
|
12039
12199
|
|
|
12040
|
-
// packages/create/space/contentKeyUtils.ts
|
|
12041
|
-
var isAppContentKey = (contentKey) => typeof contentKey === "string" && contentKey.startsWith("app-");
|
|
12042
|
-
var normalizeAppRouteId = (contentKey) => isAppContentKey(contentKey) ? contentKey : `app-${contentKey}`;
|
|
12043
|
-
|
|
12044
|
-
// packages/ai/tools/uiAskChoiceTool.ts
|
|
12045
|
-
var uiAskChoiceFunctionSchema = {
|
|
12046
|
-
name: "ask_user",
|
|
12047
|
-
description: "\u8BA9\u7528\u6237\u5728\u4E00\u7EC4\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\uFF08\u5355\u9009\u6216\u591A\u9009\uFF09\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\uFF08\u9700\u6C42\u6A21\u7CCA\u3001\u5206\u652F\u51B3\u7B56\u3001\u95EE\u5377\u7B49\uFF09\u3002\u672C\u5DE5\u5177\u7528\u4E8E\u7EAF\u63D0\u95EE\u3001\u7B49\u5F85\u7528\u6237\u56DE\u7B54\u7684\u573A\u666F\uFF08blocking:false \u65F6\u4E0D\u6682\u505C\u7B49\u5F85\uFF09\uFF1B\u82E5\u9700\u8981\u540C\u65F6\u5C55\u793A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u5E76\u8BA9\u7528\u6237\u5728\u540C\u4E00\u5757\u91CC\u9009\u62E9\uFF0C\u8D70 show_interaction\u3002\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002\u591A\u95EE\u9898\u4F20 questions\uFF0C\u5355\u95EE\u9898\u4F20 question+choices\u3002\u754C\u9762\u9ED8\u8BA4\u63D0\u4F9B\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF08\u53EF\u7528 allowOther:false \u5173\u95ED\uFF09\uFF0C\u7528\u6237\u8F93\u5165\u7684\u6587\u5B57\u4F1A\u968F\u7B54\u6848\u56DE\u4F20\uFF1B\u4E0D\u8981\u81EA\u5EFA\u201C\u5176\u4ED6/\u81EA\u5DF1\u5199\u201D\u4E4B\u7C7B\u7684\u9009\u9879\u2014\u2014\u70B9\u51FB\u666E\u901A\u9009\u9879\u53EA\u56DE\u4F20\u8BE5\u9009\u9879\u6587\u6848\uFF0C\u7528\u6237\u65E0\u5904\u586B\u5199\u3002",
|
|
12048
|
-
parameters: {
|
|
12049
|
-
type: "object",
|
|
12050
|
-
properties: {
|
|
12051
|
-
question: {
|
|
12052
|
-
type: "string",
|
|
12053
|
-
description: "\u5C55\u793A\u7ED9\u7528\u6237\u7684\u95EE\u9898\u6587\u6848\uFF08\u5355\u95EE\u9898\u6A21\u5F0F\uFF09\u3002\u4E0E questions \u4E8C\u9009\u4E00\u3002"
|
|
12054
|
-
},
|
|
12055
|
-
choices: {
|
|
12056
|
-
type: "array",
|
|
12057
|
-
description: "\u5907\u9009\u9879\u5217\u8868\uFF0C\u6E32\u67D3\u4E3A\u6309\u94AE\u4F9B\u7528\u6237\u70B9\u51FB\u3002",
|
|
12058
|
-
items: {
|
|
12059
|
-
type: "object",
|
|
12060
|
-
properties: {
|
|
12061
|
-
id: {
|
|
12062
|
-
type: "string",
|
|
12063
|
-
description: "\u9009\u9879\u6807\u8BC6\u3002"
|
|
12064
|
-
},
|
|
12065
|
-
label: {
|
|
12066
|
-
type: "string",
|
|
12067
|
-
description: "\u6309\u94AE\u6587\u5B57\uFF0C\u5982\u201C\u751F\u6210\u672C\u5468\u5468\u62A5\u201D\u3002"
|
|
12068
|
-
},
|
|
12069
|
-
detail: {
|
|
12070
|
-
type: "string",
|
|
12071
|
-
description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
|
|
12072
|
-
},
|
|
12073
|
-
userMessage: {
|
|
12074
|
-
type: "string",
|
|
12075
|
-
description: "\u70B9\u51FB\u540E\u4F5C\u4E3A\u4E0B\u4E00\u6761 user \u6D88\u606F\u53D1\u9001\u7684\u6587\u6848\uFF08\u7559\u7A7A\u9ED8\u8BA4\u7528 label\uFF09\u3002"
|
|
12076
|
-
}
|
|
12077
|
-
},
|
|
12078
|
-
required: ["id", "label"]
|
|
12079
|
-
}
|
|
12080
|
-
},
|
|
12081
|
-
questions: {
|
|
12082
|
-
type: "array",
|
|
12083
|
-
description: "\u591A\u95EE\u9898\u6A21\u5F0F\uFF08\u591A tab \u6E32\u67D3\uFF0C\u4E0E question+choices \u4E8C\u9009\u4E00\uFF09\u3002",
|
|
12084
|
-
items: {
|
|
12085
|
-
type: "object",
|
|
12086
|
-
properties: {
|
|
12087
|
-
id: {
|
|
12088
|
-
type: "string",
|
|
12089
|
-
description: "\u95EE\u9898\u6807\u8BC6\u3002"
|
|
12090
|
-
},
|
|
12091
|
-
header: {
|
|
12092
|
-
type: "string",
|
|
12093
|
-
description: "\u591A\u95EE\u9898 tab \u680F\u663E\u793A\u7684\u77ED\u6807\u7B7E\uFF08\u226412 \u5B57\u7B26\uFF0C\u5982\u201C\u683C\u5F0F/\u8BED\u8A00/\u8303\u56F4\u201D\uFF09\uFF0C\u7F3A\u7701\u7528 Qn\u3002"
|
|
12094
|
-
},
|
|
12095
|
-
question: {
|
|
12096
|
-
type: "string",
|
|
12097
|
-
description: "\u95EE\u9898\u6587\u6848\u3002"
|
|
12098
|
-
},
|
|
12099
|
-
choices: {
|
|
12100
|
-
type: "array",
|
|
12101
|
-
description: "\u8BE5\u95EE\u9898\u7684\u5907\u9009\u9879\u3002",
|
|
12102
|
-
items: {
|
|
12103
|
-
type: "object",
|
|
12104
|
-
properties: {
|
|
12105
|
-
id: { type: "string" },
|
|
12106
|
-
label: { type: "string" },
|
|
12107
|
-
detail: {
|
|
12108
|
-
type: "string",
|
|
12109
|
-
description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
|
|
12110
|
-
},
|
|
12111
|
-
userMessage: { type: "string" }
|
|
12112
|
-
},
|
|
12113
|
-
required: ["id", "label"]
|
|
12114
|
-
}
|
|
12115
|
-
},
|
|
12116
|
-
multiSelect: {
|
|
12117
|
-
type: "boolean",
|
|
12118
|
-
description: "\u5141\u8BB8\u591A\u9009\uFF0C\u9ED8\u8BA4 false\u3002"
|
|
12119
|
-
},
|
|
12120
|
-
allowOther: {
|
|
12121
|
-
type: "boolean",
|
|
12122
|
-
description: "\u663E\u793A\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF0C\u9ED8\u8BA4 true\u3002"
|
|
12123
|
-
},
|
|
12124
|
-
required: {
|
|
12125
|
-
type: "boolean",
|
|
12126
|
-
description: "\u662F\u5426\u5FC5\u987B\u56DE\u7B54\u624D\u80FD\u63D0\u4EA4\uFF0C\u9ED8\u8BA4 true\u3002"
|
|
12127
|
-
}
|
|
12128
|
-
},
|
|
12129
|
-
required: ["id", "question", "choices"]
|
|
12130
|
-
}
|
|
12131
|
-
},
|
|
12132
|
-
blocking: {
|
|
12133
|
-
type: "boolean",
|
|
12134
|
-
description: "\u662F\u5426\u7B49\u5F85\u7528\u6237\u9009\u62E9\u540E\u518D\u7EE7\u7EED\u6D41\u7A0B\uFF0C\u9ED8\u8BA4 true\u3002"
|
|
12135
|
-
}
|
|
12136
|
-
},
|
|
12137
|
-
required: []
|
|
12138
|
-
}
|
|
12139
|
-
};
|
|
12140
|
-
function validateChoiceList(choices, scopeLabel) {
|
|
12141
|
-
const seenChoiceIds = /* @__PURE__ */ new Set();
|
|
12142
|
-
for (let index = 0; index < choices.length; index += 1) {
|
|
12143
|
-
const entry = choices[index];
|
|
12144
|
-
if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
|
|
12145
|
-
return `${scopeLabel}.choices[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
|
|
12146
|
-
}
|
|
12147
|
-
const choice = entry;
|
|
12148
|
-
if (typeof choice.label !== "string" || !choice.label.trim()) {
|
|
12149
|
-
return `${scopeLabel}.choices[${index}].label \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
|
|
12150
|
-
}
|
|
12151
|
-
if (choice.id !== void 0 && typeof choice.id !== "string") {
|
|
12152
|
-
return `${scopeLabel}.choices[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
|
|
12153
|
-
}
|
|
12154
|
-
const choiceId = typeof choice.id === "string" ? choice.id.trim() : "";
|
|
12155
|
-
if (choiceId && seenChoiceIds.has(choiceId)) {
|
|
12156
|
-
return `${scopeLabel} \u5185\u7684\u9009\u9879 id "${choiceId}" \u91CD\u590D\u3002`;
|
|
12157
|
-
}
|
|
12158
|
-
if (choiceId) seenChoiceIds.add(choiceId);
|
|
12159
|
-
}
|
|
12160
|
-
return null;
|
|
12161
|
-
}
|
|
12162
|
-
function validateAskChoiceInput(raw) {
|
|
12163
|
-
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
12164
|
-
return "ask_user \u9700\u8981\u4E00\u4E2A\u5BF9\u8C61\u53C2\u6570\u3002";
|
|
12165
|
-
}
|
|
12166
|
-
const args = raw;
|
|
12167
|
-
if (args.blocking !== void 0 && typeof args.blocking !== "boolean") {
|
|
12168
|
-
return "ask_user \u7684 blocking \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002";
|
|
12169
|
-
}
|
|
12170
|
-
const rawQuestions = args.questions;
|
|
12171
|
-
if (rawQuestions !== void 0 && !Array.isArray(rawQuestions)) {
|
|
12172
|
-
return "ask_user \u7684 questions \u5FC5\u987B\u662F\u6570\u7EC4\u3002";
|
|
12173
|
-
}
|
|
12174
|
-
const questions = rawQuestions;
|
|
12175
|
-
if (questions && questions.length > 0) {
|
|
12176
|
-
const seenQuestionIds = /* @__PURE__ */ new Set();
|
|
12177
|
-
for (let index = 0; index < questions.length; index += 1) {
|
|
12178
|
-
const entry = questions[index];
|
|
12179
|
-
if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
|
|
12180
|
-
return `questions[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
|
|
12181
|
-
}
|
|
12182
|
-
const question = entry;
|
|
12183
|
-
if (question.id !== void 0 && typeof question.id !== "string") {
|
|
12184
|
-
return `questions[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
|
|
12185
|
-
}
|
|
12186
|
-
const questionId = typeof question.id === "string" ? question.id.trim() : "";
|
|
12187
|
-
if (questionId && seenQuestionIds.has(questionId)) {
|
|
12188
|
-
return `\u95EE\u9898 id "${questionId}" \u91CD\u590D\u3002`;
|
|
12189
|
-
}
|
|
12190
|
-
if (questionId) seenQuestionIds.add(questionId);
|
|
12191
|
-
if (typeof question.question !== "string" || !question.question.trim()) {
|
|
12192
|
-
return `questions[${index}].question \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
|
|
12193
|
-
}
|
|
12194
|
-
for (const flag of ["multiSelect", "allowOther", "required"]) {
|
|
12195
|
-
if (question[flag] !== void 0 && typeof question[flag] !== "boolean") {
|
|
12196
|
-
return `questions[${index}].${flag} \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`;
|
|
12197
|
-
}
|
|
12198
|
-
}
|
|
12199
|
-
const choices = question.choices;
|
|
12200
|
-
if (!Array.isArray(choices)) {
|
|
12201
|
-
return `questions[${index}].choices \u5FC5\u987B\u662F\u6570\u7EC4\u3002`;
|
|
12202
|
-
}
|
|
12203
|
-
const choiceError = validateChoiceList(choices, `questions[${index}]`);
|
|
12204
|
-
if (choiceError) return choiceError;
|
|
12205
|
-
if (choices.length === 0 && question.allowOther === false) {
|
|
12206
|
-
return `questions[${index}] \u6CA1\u6709\u4EFB\u4F55\u9009\u9879\u4E14 allowOther \u4E3A false\uFF0C\u7528\u6237\u65E0\u6CD5\u4F5C\u7B54\u3002`;
|
|
12207
|
-
}
|
|
12208
|
-
}
|
|
12209
|
-
return null;
|
|
12210
|
-
}
|
|
12211
|
-
if (typeof args.question !== "string" || !args.question.trim()) {
|
|
12212
|
-
return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
|
|
12213
|
-
}
|
|
12214
|
-
if (!Array.isArray(args.choices) || args.choices.length === 0) {
|
|
12215
|
-
return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
|
|
12216
|
-
}
|
|
12217
|
-
return validateChoiceList(args.choices, "ask_user");
|
|
12218
|
-
}
|
|
12219
|
-
async function uiAskChoiceFunc(args, _thunkApi) {
|
|
12220
|
-
const invalid = validateAskChoiceInput(args);
|
|
12221
|
-
if (invalid) throw new Error(invalid);
|
|
12222
|
-
const blocking = args?.blocking !== false;
|
|
12223
|
-
if (Array.isArray(args?.questions) && args.questions.length > 0) {
|
|
12224
|
-
const firstQ = args.questions[0];
|
|
12225
|
-
return {
|
|
12226
|
-
rawData: {
|
|
12227
|
-
type: "ask_user",
|
|
12228
|
-
question: firstQ?.question ?? "",
|
|
12229
|
-
choices: firstQ?.choices ?? [],
|
|
12230
|
-
blocking,
|
|
12231
|
-
questions: args.questions
|
|
12232
|
-
},
|
|
12233
|
-
displayData: args.questions.map((q) => q.question).join(" / ")
|
|
12234
|
-
};
|
|
12235
|
-
}
|
|
12236
|
-
const question = String(args?.question ?? "").trim();
|
|
12237
|
-
const choices = Array.isArray(args?.choices) ? args.choices : [];
|
|
12238
|
-
if (!question || choices.length === 0) {
|
|
12239
|
-
throw new Error("ask_user \u9700\u8981 question+choices \u6216 questions\u3002");
|
|
12240
|
-
}
|
|
12241
|
-
return {
|
|
12242
|
-
rawData: {
|
|
12243
|
-
type: "ask_user",
|
|
12244
|
-
question,
|
|
12245
|
-
choices,
|
|
12246
|
-
blocking
|
|
12247
|
-
},
|
|
12248
|
-
displayData: question
|
|
12249
|
-
};
|
|
12250
|
-
}
|
|
12251
|
-
function parseUiAskChoiceContent(rawContent) {
|
|
12252
|
-
const parsed = typeof rawContent === "string" ? (() => {
|
|
12253
|
-
try {
|
|
12254
|
-
return JSON.parse(rawContent);
|
|
12255
|
-
} catch {
|
|
12256
|
-
return null;
|
|
12257
|
-
}
|
|
12258
|
-
})() : rawContent;
|
|
12259
|
-
if (!parsed || typeof parsed !== "object") return null;
|
|
12260
|
-
if (parsed.type !== "ask_user") return null;
|
|
12261
|
-
return parsed;
|
|
12262
|
-
}
|
|
12263
|
-
|
|
12264
|
-
// packages/ai/policy/personalizationDialog.ts
|
|
12265
|
-
var PERSONALIZATION_DIALOG_CATEGORY = "user-overlay-profile";
|
|
12266
|
-
var PERSONALIZATION_DIALOG_EXTRA_TOOLS = [
|
|
12267
|
-
"ask_user",
|
|
12268
|
-
"updateUserPreferenceProfile"
|
|
12269
|
-
];
|
|
12270
|
-
var buildPersonalizationRuntimeOptions = (runtimeOptions) => ({
|
|
12271
|
-
...runtimeOptions,
|
|
12272
|
-
extraTools: Array.from(
|
|
12273
|
-
/* @__PURE__ */ new Set([
|
|
12274
|
-
...runtimeOptions?.extraTools ?? [],
|
|
12275
|
-
...PERSONALIZATION_DIALOG_EXTRA_TOOLS
|
|
12276
|
-
])
|
|
12277
|
-
)
|
|
12278
|
-
});
|
|
12279
|
-
var buildPersonalizationDialogPolicyContext = () => [
|
|
12280
|
-
"\u5F53\u524D\u5BF9\u8BDD\u662F\u201C\u7528\u6237\u4E2A\u6027\u5316\u8BBE\u7F6E\u201D\u6A21\u5F0F\uFF0C\u4E0D\u662F\u666E\u901A\u95F2\u804A\u3002",
|
|
12281
|
-
"\u4F60\u7684\u76EE\u6807\u662F\u7528\u7B80\u77ED\u5BF9\u8BDD\u5E2E\u52A9\u7528\u6237\u786E\u8BA4 tone\u3001knowledge_capture\u3001space_context \u8FD9\u4E09\u9879\u504F\u597D\u3002",
|
|
12282
|
-
"\u5982\u679C\u7528\u6237\u5148\u4ECB\u7ECD\u81EA\u5DF1\u3001\u5DE5\u4F5C\u65B9\u5F0F\u6216\u957F\u671F\u6C9F\u901A\u504F\u597D\uFF0C\u8BF7\u628A\u8FD9\u4E9B\u53EF\u590D\u7528\u4FE1\u606F\u6574\u7406\u6210\u7B80\u6D01\u7684 globalPrompt \u8349\u6848\uFF0C\u5E76\u5728\u7528\u6237\u786E\u8BA4\u540E\u901A\u8FC7 updateUserPreferenceProfile \u4FDD\u5B58\u3002",
|
|
12283
|
-
"\u4F18\u5148\u4E00\u6B21\u53EA\u95EE\u4E00\u4E2A\u95EE\u9898\uFF1B\u5F53\u5B58\u5728\u6E05\u6670\u4E92\u65A5\u9009\u9879\u65F6\uFF0C\u4F18\u5148\u8C03\u7528 ask_user\u3002",
|
|
12284
|
-
"\u6536\u96C6\u5230\u8DB3\u591F\u4FE1\u606F\u540E\uFF0C\u8C03\u7528 updateUserPreferenceProfile \u4FDD\u5B58\u7ED3\u679C\uFF0C\u7136\u540E\u7528\u81EA\u7136\u8BED\u8A00\u603B\u7ED3\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\u3002",
|
|
12285
|
-
"\u4FDD\u5B58\u5B8C\u6210\u540E\uFF0C\u8981\u63D0\u9192\u7528\u6237\uFF1A\u4EE5\u540E\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u4FEE\u6539 globalPrompt \u548C\u8FD9\u4E9B\u504F\u597D\uFF0C\u6216\u8005\u518D\u6B21\u6253\u5F00\u8FD9\u4E2A\u5165\u53E3\u7EE7\u7EED\u8C03\u6574\u3002",
|
|
12286
|
-
"\u4E2A\u6027\u5316\u8BBE\u7F6E\u5B8C\u6210\u540E\uFF0C\u53EF\u987A\u624B\u5F15\u5BFC\u7528\u6237\u5C1D\u8BD5 1 \u5230 2 \u4E2A\u76F8\u5173\u529F\u80FD\uFF0C\u4F8B\u5982\u9996\u9875\u5FEB\u6377\u5BF9\u8BDD\u3001\u521B\u5EFA\u7B14\u8BB0\u3001\u521B\u5EFA AI\uFF0C\u4F46\u4E0D\u8981\u4E00\u6B21\u63A8\u8350\u592A\u591A\u3002",
|
|
12287
|
-
"\u9664\u975E\u7528\u6237\u660E\u786E\u8981\u6C42\uFF0C\u5426\u5219\u4E0D\u8981\u521B\u5EFA\u6587\u6863\uFF0C\u4E0D\u8981\u521B\u5EFA\u6216\u4FEE\u6539\u4EFB\u4F55 agent\u3002"
|
|
12288
|
-
].join("\n");
|
|
12289
|
-
|
|
12290
12200
|
// packages/chat/dialog/dialogAgentPolicy.ts
|
|
12291
12201
|
var resolveDialogAgentMode = (dialog) => {
|
|
12292
12202
|
if (dialog?.agentMode === "auto") return "auto";
|
|
@@ -12322,7 +12232,7 @@ function resolveHandleSendMessageContext(input) {
|
|
|
12322
12232
|
return {
|
|
12323
12233
|
agentKeyToUse: resolveDialogRuntimeAgentKey(dialogConfig, targetAgentKey),
|
|
12324
12234
|
agentConfigToUse: resolveDialogRuntimeAgentConfig(dialogConfig, targetAgentKey) ?? void 0,
|
|
12325
|
-
effectiveRuntimeOptions:
|
|
12235
|
+
effectiveRuntimeOptions: runtimeOptions
|
|
12326
12236
|
};
|
|
12327
12237
|
}
|
|
12328
12238
|
|
|
@@ -12501,6 +12411,60 @@ function resolveStreamEndBillingUsages(input) {
|
|
|
12501
12411
|
}
|
|
12502
12412
|
|
|
12503
12413
|
// packages/chat/messages/web/toolDisplayName.ts
|
|
12414
|
+
var TOOL_DISPLAY_NAME_DEFAULTS = {
|
|
12415
|
+
tool: "\u5DE5\u5177",
|
|
12416
|
+
globFiles: "\u67E5\u627E\u6587\u4EF6",
|
|
12417
|
+
glob_files: "\u67E5\u627E\u6587\u4EF6",
|
|
12418
|
+
codeSearch: "\u4EE3\u7801\u641C\u7D22",
|
|
12419
|
+
code_search: "\u4EE3\u7801\u641C\u7D22",
|
|
12420
|
+
readFile: "\u8BFB\u53D6\u6587\u4EF6",
|
|
12421
|
+
read_file: "\u8BFB\u53D6\u6587\u4EF6",
|
|
12422
|
+
writeFile: "\u5199\u5165\u6587\u4EF6",
|
|
12423
|
+
write_file: "\u5199\u5165\u6587\u4EF6",
|
|
12424
|
+
editFile: "\u4FEE\u6539\u6587\u4EF6",
|
|
12425
|
+
edit_file: "\u4FEE\u6539\u6587\u4EF6",
|
|
12426
|
+
execShell: "\u8FD0\u884C\u547D\u4EE4",
|
|
12427
|
+
exec_shell: "\u8FD0\u884C\u547D\u4EE4",
|
|
12428
|
+
shell: "\u8FD0\u884C\u547D\u4EE4",
|
|
12429
|
+
searchWorkspace: "\u641C\u7D22\u5DE5\u4F5C\u533A",
|
|
12430
|
+
readWorkspaceFile: "\u8BFB\u53D6\u6587\u4EF6",
|
|
12431
|
+
writeWorkspaceFile: "\u5199\u5165\u6587\u4EF6",
|
|
12432
|
+
replaceWorkspaceText: "\u66FF\u6362\u6587\u672C",
|
|
12433
|
+
listAgents: "\u5217\u51FA\u52A9\u624B",
|
|
12434
|
+
readAgent: "\u8BFB\u53D6\u52A9\u624B",
|
|
12435
|
+
startAgentRun: "\u542F\u52A8\u5B50\u4EFB\u52A1",
|
|
12436
|
+
controlAgentRun: "\u63A7\u5236\u5B50\u4EFB\u52A1",
|
|
12437
|
+
createAgent: "\u521B\u5EFA\u52A9\u624B",
|
|
12438
|
+
updateAgent: "\u66F4\u65B0\u52A9\u624B",
|
|
12439
|
+
prepareAgentDraft: "\u6574\u7406\u52A9\u624B\u8349\u7A3F",
|
|
12440
|
+
createSkillAgent: "\u521B\u5EFA\u6280\u80FD\u52A9\u624B",
|
|
12441
|
+
queryDialogsBySubjectRef: "\u68C0\u7D22\u5BF9\u8BDD\u8BB0\u5F55",
|
|
12442
|
+
deleteDialogs: "\u5220\u9664\u5BF9\u8BDD\u8BB0\u5F55",
|
|
12443
|
+
readDialog: "\u8BFB\u53D6\u5BF9\u8BDD",
|
|
12444
|
+
listDialogs: "\u5217\u51FA\u5BF9\u8BDD",
|
|
12445
|
+
exa_search: "\u641C\u7D22",
|
|
12446
|
+
firecrawl_scrape: "\u7F51\u9875\u6293\u53D6",
|
|
12447
|
+
firecrawl_search: "\u7F51\u9875\u641C\u7D22",
|
|
12448
|
+
startPreview: "\u542F\u52A8\u9884\u89C8",
|
|
12449
|
+
getPreviewStatus: "\u9884\u89C8\u72B6\u6001",
|
|
12450
|
+
stopPreview: "\u505C\u6B62\u9884\u89C8",
|
|
12451
|
+
releasePreview: "\u91CA\u653E\u9884\u89C8",
|
|
12452
|
+
captureVisualState: "\u622A\u56FE\u68C0\u67E5",
|
|
12453
|
+
fetchWebpage: "\u6293\u53D6\u7F51\u9875",
|
|
12454
|
+
fetch_webpage: "\u6293\u53D6\u7F51\u9875",
|
|
12455
|
+
loadSkill: "\u52A0\u8F7D\u6280\u80FD"
|
|
12456
|
+
};
|
|
12457
|
+
function normalizeToolNameKey(toolName) {
|
|
12458
|
+
let normalized = asTrimmedString(toolName);
|
|
12459
|
+
if (!normalized) return "";
|
|
12460
|
+
normalized = normalized.replace(/^functions\./, "").replace(/^tools\./, "");
|
|
12461
|
+
if (TOOL_DISPLAY_NAME_DEFAULTS[normalized]) return normalized;
|
|
12462
|
+
if (normalized.includes("_")) {
|
|
12463
|
+
const camel = normalized.replace(/_([a-z])/g, (_, c) => c.toUpperCase());
|
|
12464
|
+
if (TOOL_DISPLAY_NAME_DEFAULTS[camel]) return camel;
|
|
12465
|
+
}
|
|
12466
|
+
return normalized;
|
|
12467
|
+
}
|
|
12504
12468
|
var LEGACY_VERSION_ACTIVITY_TITLES = {
|
|
12505
12469
|
\u7528\u7248\u672C\u7BA1\u7406\u68C0\u67E5\u6539\u52A8: "\u68C0\u67E5\u6539\u52A8",
|
|
12506
12470
|
\u7528\u7248\u672C\u7BA1\u7406\u67E5\u770B\u6539\u52A8: "\u67E5\u770B\u6539\u52A8",
|
|
@@ -12830,7 +12794,9 @@ function formatActivityAction(activity) {
|
|
|
12830
12794
|
}
|
|
12831
12795
|
function getMessageStatus(msg) {
|
|
12832
12796
|
const rawData = typeof msg?.content === "string" ? asOptionalJsonRecord(msg.content) : msg?.content;
|
|
12833
|
-
const
|
|
12797
|
+
const name = normalizeToolNameKey(msg?.toolName);
|
|
12798
|
+
const isReadFile = ["readFile", "read_file", "readWorkspaceFile"].includes(name);
|
|
12799
|
+
const isError = msg?.toolPayload?.status === "failed" || !!msg?.toolPayload?.error || !!msg?.metadata?.error || !isReadFile && (!!rawData?.error || rawData?.ok === false);
|
|
12834
12800
|
if (msg?.isStreaming || msg?.toolPayload?.status === "running") return "running";
|
|
12835
12801
|
if (isError) return "failed";
|
|
12836
12802
|
if (msg?.toolPayload?.status === "pending") return "pending";
|
|
@@ -13168,15 +13134,6 @@ function prepareStreamEndPersistInputs(input) {
|
|
|
13168
13134
|
}
|
|
13169
13135
|
|
|
13170
13136
|
// packages/chat/messages/messageUnderstandingCapture.ts
|
|
13171
|
-
function getLatestUserInputFromMessages(messages) {
|
|
13172
|
-
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
13173
|
-
const message = messages[index];
|
|
13174
|
-
if (!message || message.role !== "user") continue;
|
|
13175
|
-
const serialized = serializeMessageContent(message.content, "[\u56FE\u7247]")?.trim();
|
|
13176
|
-
if (serialized) return serialized;
|
|
13177
|
-
}
|
|
13178
|
-
return null;
|
|
13179
|
-
}
|
|
13180
13137
|
function getDialogSpaceIdFromState(state, dialogKey) {
|
|
13181
13138
|
if (!dialogKey) return void 0;
|
|
13182
13139
|
const dialog = selectById(state, dialogKey);
|
|
@@ -13190,32 +13147,117 @@ function resolveMemoryCaptureBaseUrl(state) {
|
|
|
13190
13147
|
return currentServer.replace(/\/+$/, "");
|
|
13191
13148
|
}
|
|
13192
13149
|
async function captureUnderstandingFromCompletedUiTurn(input) {
|
|
13193
|
-
if (input.assistantText.trim()
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
const
|
|
13197
|
-
if (!
|
|
13150
|
+
if (!input.assistantText.trim() || input.toolCalls?.length || !input.agentKey) {
|
|
13151
|
+
return { status: "skipped", reason: "incomplete_turn" };
|
|
13152
|
+
}
|
|
13153
|
+
const source = input.messages.findLast((message) => message?.role === "user");
|
|
13154
|
+
if (!source || !/^[A-Za-z0-9_-]{1,128}$/.test(source.id ?? "") || source.dbKey !== dialogMessageKey(input.dialogId, source.id)) {
|
|
13155
|
+
return { status: "skipped", reason: "missing_persisted_user" };
|
|
13156
|
+
}
|
|
13198
13157
|
const state = input.state;
|
|
13158
|
+
const persisted = state?.db ? selectById(state, source.dbKey) : void 0;
|
|
13159
|
+
if (!persisted || persisted.id !== source.id || persisted.dbKey !== source.dbKey || persisted.role !== "user" || persisted.metadata?.queueState === "pending" || persisted.deleted || persisted.isDeleted || typeof persisted.content !== "string" || !persisted.content.trim() || persisted.content !== source.content) {
|
|
13160
|
+
return { status: "skipped", reason: "missing_persisted_user" };
|
|
13161
|
+
}
|
|
13199
13162
|
const token = selectIdentityToken(state) ?? null;
|
|
13200
13163
|
const baseUrl = resolveMemoryCaptureBaseUrl(state);
|
|
13201
|
-
if (!token || !baseUrl) return;
|
|
13202
|
-
const
|
|
13164
|
+
if (!token || !baseUrl) return { status: "skipped", reason: "unavailable" };
|
|
13165
|
+
const body = JSON.stringify({
|
|
13166
|
+
agentKey: input.agentKey,
|
|
13167
|
+
dialogId: input.dialogId,
|
|
13168
|
+
userMessageId: persisted.id,
|
|
13169
|
+
userInput: persisted.content,
|
|
13170
|
+
assistantText: input.assistantText,
|
|
13171
|
+
spaceId: input.spaceId ?? getDialogSpaceIdFromState(state, input.dialogKey)
|
|
13172
|
+
});
|
|
13173
|
+
const key = JSON.stringify([baseUrl, token, body]);
|
|
13174
|
+
const existing = inFlight.get(key);
|
|
13175
|
+
if (existing && existing.signal === input.signal) return existing.promise;
|
|
13176
|
+
const promise = runCapture(input, persisted.dbKey, baseUrl, token, body);
|
|
13177
|
+
const entry = { signal: input.signal, promise };
|
|
13178
|
+
inFlight.set(key, entry);
|
|
13203
13179
|
try {
|
|
13204
|
-
await
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13180
|
+
return await promise;
|
|
13181
|
+
} finally {
|
|
13182
|
+
if (inFlight.get(key) === entry) inFlight.delete(key);
|
|
13183
|
+
}
|
|
13184
|
+
}
|
|
13185
|
+
var inFlight = /* @__PURE__ */ new Map();
|
|
13186
|
+
async function runCapture(input, sourceKey, baseUrl, token, body) {
|
|
13187
|
+
const controller = new AbortController();
|
|
13188
|
+
const cancel = () => controller.abort();
|
|
13189
|
+
input.signal?.addEventListener("abort", cancel, { once: true });
|
|
13190
|
+
if (input.signal?.aborted) cancel();
|
|
13191
|
+
const requestedTimeout = input.timeoutMs ?? 8e3;
|
|
13192
|
+
const timeoutMs = Number.isFinite(requestedTimeout) ? Math.max(1, Math.min(8e3, requestedTimeout)) : 8e3;
|
|
13193
|
+
const timer = setTimeout(cancel, timeoutMs);
|
|
13194
|
+
const signal = controller.signal;
|
|
13195
|
+
const bounded = (operation) => new Promise((resolve, reject) => {
|
|
13196
|
+
const abort = () => reject(new Error("capture aborted"));
|
|
13197
|
+
if (signal.aborted) {
|
|
13198
|
+
reject(new Error("capture aborted"));
|
|
13199
|
+
return;
|
|
13200
|
+
}
|
|
13201
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
13202
|
+
operation.then(resolve, reject).finally(() => signal.removeEventListener("abort", abort));
|
|
13203
|
+
});
|
|
13204
|
+
try {
|
|
13205
|
+
if (signal.aborted) return { status: "failed", reason: "cancelled" };
|
|
13206
|
+
const ack = await bounded(waitForWriteAck(sourceKey, { targetServer: baseUrl, timeoutMs }));
|
|
13207
|
+
if (ack.timedOut) return { status: "failed", reason: "replication_timeout" };
|
|
13208
|
+
if (!["acked", "unknown"].includes(ack.outcome.status) || ack.waitTarget === "primary-fallback") {
|
|
13209
|
+
return { status: "failed", reason: "replication_failed" };
|
|
13210
|
+
}
|
|
13211
|
+
const response = await bounded(fetchWithTransientRetry(
|
|
13212
|
+
async (url, init2) => {
|
|
13213
|
+
if (signal.aborted) throw new Error("capture aborted");
|
|
13214
|
+
return bounded(fetch(url, init2));
|
|
13215
|
+
},
|
|
13216
|
+
`${baseUrl}/api/memory/capture-turn`,
|
|
13217
|
+
{
|
|
13218
|
+
method: "POST",
|
|
13219
|
+
headers: {
|
|
13220
|
+
"Content-Type": "application/json",
|
|
13221
|
+
Authorization: `Bearer ${token}`
|
|
13222
|
+
},
|
|
13223
|
+
body,
|
|
13224
|
+
signal
|
|
13209
13225
|
},
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13226
|
+
{
|
|
13227
|
+
maxAttempts: 3,
|
|
13228
|
+
coreDrainingMaxAttempts: 3,
|
|
13229
|
+
// Never replay an ambiguous application-level 422 or permanent 401/403.
|
|
13230
|
+
retryableStatuses: /* @__PURE__ */ new Set([429, 502, 503, 504]),
|
|
13231
|
+
sleep: (ms) => bounded(new Promise((resolve) => {
|
|
13232
|
+
const timer2 = setTimeout(done, Math.min(ms, 2e3));
|
|
13233
|
+
function done() {
|
|
13234
|
+
clearTimeout(timer2);
|
|
13235
|
+
signal.removeEventListener("abort", done);
|
|
13236
|
+
resolve();
|
|
13237
|
+
}
|
|
13238
|
+
signal.addEventListener("abort", done, { once: true });
|
|
13239
|
+
}))
|
|
13240
|
+
}
|
|
13241
|
+
));
|
|
13242
|
+
if (!response.ok) return { status: "failed", reason: "http", httpStatus: response.status };
|
|
13243
|
+
let responseBody;
|
|
13244
|
+
try {
|
|
13245
|
+
responseBody = await bounded(response.json());
|
|
13246
|
+
} catch {
|
|
13247
|
+
if (signal.aborted) throw new Error("capture aborted");
|
|
13248
|
+
return { status: "failed", reason: "invalid_response" };
|
|
13249
|
+
}
|
|
13250
|
+
const native = responseBody?.nativeCapture;
|
|
13251
|
+
if (native && ["captured", "skipped", "failed"].includes(native.capture) && ["applied", "no_op", "deferred", "failed"].includes(native.formation)) {
|
|
13252
|
+
return { status: "native", capture: native.capture, formation: native.formation };
|
|
13253
|
+
}
|
|
13254
|
+
if (!native && responseBody?.success === true) return { status: "legacy_acknowledged" };
|
|
13255
|
+
return { status: "failed", reason: "invalid_response" };
|
|
13218
13256
|
} catch {
|
|
13257
|
+
return { status: "failed", reason: signal.aborted ? input.signal?.aborted ? "cancelled" : "timeout" : "network" };
|
|
13258
|
+
} finally {
|
|
13259
|
+
clearTimeout(timer);
|
|
13260
|
+
input.signal?.removeEventListener("abort", cancel);
|
|
13219
13261
|
}
|
|
13220
13262
|
}
|
|
13221
13263
|
|
|
@@ -14267,12 +14309,17 @@ var messageSlice = createSliceWithThunks({
|
|
|
14267
14309
|
}
|
|
14268
14310
|
captureUnderstandingFromCompletedUiTurn2({
|
|
14269
14311
|
state: getState(),
|
|
14312
|
+
signal,
|
|
14270
14313
|
agentKey: agentConfig?.dbKey,
|
|
14271
14314
|
dialogId,
|
|
14272
14315
|
dialogKey,
|
|
14273
14316
|
spaceId: payload.spaceId,
|
|
14274
14317
|
assistantText: textContent,
|
|
14275
14318
|
toolCalls
|
|
14319
|
+
}).then((result) => {
|
|
14320
|
+
if (result.status === "failed" || result.status === "native" && (result.capture === "failed" || result.formation === "failed" || result.formation === "deferred")) {
|
|
14321
|
+
console.warn("Understanding memory capture incomplete:", result);
|
|
14322
|
+
}
|
|
14276
14323
|
}).catch(
|
|
14277
14324
|
(err) => console.error("Understanding memory capture failed:", err)
|
|
14278
14325
|
);
|
|
@@ -14426,7 +14473,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
14426
14473
|
runtimeOptions: args.runtimeOptions
|
|
14427
14474
|
});
|
|
14428
14475
|
if (agentKeyToUse) {
|
|
14429
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
14476
|
+
const { streamAgentChatTurn } = await import("./agentSlice-XJNKE3PG.js");
|
|
14430
14477
|
await dispatch(
|
|
14431
14478
|
streamAgentChatTurn({
|
|
14432
14479
|
agentKey: agentKeyToUse,
|
|
@@ -15497,7 +15544,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
15497
15544
|
metadataReadFailures
|
|
15498
15545
|
});
|
|
15499
15546
|
if (!plan.deleteCandidates.length) return plan;
|
|
15500
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
15547
|
+
const { deleteFileAction } = await import("./deleteFile-TQSONMVU.js");
|
|
15501
15548
|
for (const candidate of plan.deleteCandidates) {
|
|
15502
15549
|
if (candidate.fileDbKey) {
|
|
15503
15550
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -15559,7 +15606,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
15559
15606
|
}
|
|
15560
15607
|
if (isCurrentDialog) {
|
|
15561
15608
|
await thunkApi.dispatch(resetMsgs());
|
|
15562
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
15609
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-QAKYN4DE.js");
|
|
15563
15610
|
dispatch(clearPendingAttachments2());
|
|
15564
15611
|
}
|
|
15565
15612
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -15567,39 +15614,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
15567
15614
|
|
|
15568
15615
|
// packages/chat/dialog/dialogSlice.ts
|
|
15569
15616
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
15570
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
15617
|
+
const { createDialogAction } = await import("./createDialogAction-IAGQJ3LH.js");
|
|
15571
15618
|
return createDialogAction(args, thunkApi);
|
|
15572
15619
|
};
|
|
15573
15620
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
15574
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
15621
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-IP4LFN3W.js");
|
|
15575
15622
|
return createAgentAutomationAction(args, thunkApi);
|
|
15576
15623
|
};
|
|
15577
15624
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
15578
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
15625
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-SEWV252V.js");
|
|
15579
15626
|
return updateDialogTitleAction(args, thunkApi);
|
|
15580
15627
|
};
|
|
15581
15628
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
15582
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
15629
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-KKDVAMW3.js");
|
|
15583
15630
|
return addDialogAgentAction(args, thunkApi);
|
|
15584
15631
|
};
|
|
15585
15632
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
15586
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
15633
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-CX3OAH4Y.js");
|
|
15587
15634
|
return removeDialogAgentAction(args, thunkApi);
|
|
15588
15635
|
};
|
|
15589
15636
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
15590
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
15637
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-3ABWPPXR.js");
|
|
15591
15638
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
15592
15639
|
};
|
|
15593
15640
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
15594
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
15641
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-G6EZRKCQ.js");
|
|
15595
15642
|
return switchDialogAgentAction(args, thunkApi);
|
|
15596
15643
|
};
|
|
15597
15644
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
15598
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
15645
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-CGM67EEQ.js");
|
|
15599
15646
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
15600
15647
|
};
|
|
15601
15648
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
15602
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
15649
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-HKIW4ZNO.js");
|
|
15603
15650
|
return handleSendMessageAction(args, thunkApi);
|
|
15604
15651
|
};
|
|
15605
15652
|
function clearDialogState() {
|
|
@@ -15612,7 +15659,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
15612
15659
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
15613
15660
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
15614
15661
|
try {
|
|
15615
|
-
const { createDocState } = await import("./docStore-
|
|
15662
|
+
const { createDocState } = await import("./docStore-GIVRT7TQ.js");
|
|
15616
15663
|
const pageKey = await createDocState(
|
|
15617
15664
|
{ slateData, title },
|
|
15618
15665
|
{ dispatch, getState }
|
|
@@ -15777,20 +15824,16 @@ var selectCurrentDialogTokens = createSelector(
|
|
|
15777
15824
|
var selectTotalDialogTokens = selectCurrentDialogTokens;
|
|
15778
15825
|
|
|
15779
15826
|
export {
|
|
15780
|
-
normalizeRunCompletionShape,
|
|
15781
|
-
createTurnRequest,
|
|
15782
|
-
isAgentRunStatusNormal,
|
|
15783
|
-
isAgentRunStartFailureStatus,
|
|
15784
|
-
uiAskChoiceFunctionSchema,
|
|
15785
|
-
validateAskChoiceInput,
|
|
15786
|
-
uiAskChoiceFunc,
|
|
15787
|
-
parseUiAskChoiceContent,
|
|
15788
15827
|
API_REPORTED_COST_MULTIPLIER,
|
|
15789
15828
|
estimateMessagesTokens,
|
|
15790
15829
|
historyTokensBeforeLatestAssistant,
|
|
15791
15830
|
resolveOccupancy,
|
|
15792
15831
|
resolveOccupancyWindow,
|
|
15793
15832
|
resolveAgentContextWindow,
|
|
15833
|
+
isAgentRunStatusNormal,
|
|
15834
|
+
isAgentRunStartFailureStatus,
|
|
15835
|
+
normalizeRunCompletionShape,
|
|
15836
|
+
createTurnRequest,
|
|
15794
15837
|
runtime_default,
|
|
15795
15838
|
snapshotUserBatchInput,
|
|
15796
15839
|
createUserBatchExecution,
|
|
@@ -15804,9 +15847,6 @@ export {
|
|
|
15804
15847
|
toast,
|
|
15805
15848
|
updateDialogSummaryAction,
|
|
15806
15849
|
buildDatabaseFileContentUrl,
|
|
15807
|
-
normalizeAppRouteId,
|
|
15808
|
-
PERSONALIZATION_DIALOG_CATEGORY,
|
|
15809
|
-
buildPersonalizationDialogPolicyContext,
|
|
15810
15850
|
resolveDialogRuntimeAgentKey,
|
|
15811
15851
|
resolveHandleSendMessageContext,
|
|
15812
15852
|
estimateMissingUsage,
|