nolo-cli 0.219.0 → 0.221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-WW57SJN4.js → _executeModel-WZKT6XEU.js} +74 -74
- package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
- package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
- package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-PZWRHNXY.js} +114 -115
- package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-QTKMEICX.js} +115 -116
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-GUGMORTK.js} +84 -70
- package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-7QGICJLM.js} +56 -55
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
- package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-SLLADS5C.js} +102 -103
- package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-OFQLOF5Y.js} +113 -112
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
- package/{agentSlice-ACZGTZVW.js → agentSlice-L4SBGWTB.js} +16 -16
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
- package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
- package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
- package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
- package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
- package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
- package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
- package/{chunk-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
- package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
- package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
- package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
- package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
- package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
- package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
- package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
- package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
- package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
- package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
- package/{chunk-MKQ2UTTX.js → chunk-DDC6P6EH.js} +22 -19
- package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
- package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
- package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
- package/{chunk-O2CYENYJ.js → chunk-EXJK7TQO.js} +2113 -1090
- package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
- package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
- package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
- package/{chunk-7WPAI5JJ.js → chunk-GACR7H6T.js} +14 -14
- package/{chunk-65XXHYZ5.js → chunk-GOCSSER3.js} +3 -3
- package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
- package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
- package/{chunk-F3TQURKK.js → chunk-GYS5FUYR.js} +19 -19
- package/{chunk-VHPAA6MT.js → chunk-H6L2NFHY.js} +6 -6
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
- package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
- package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
- package/{chunk-N3J4VDGV.js → chunk-IAAIUH64.js} +15 -15
- package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
- package/{chunk-T3O6BLYU.js → chunk-IXG6YXQM.js} +147 -115
- package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
- package/{chunk-QWYFFHCJ.js → chunk-K67C2JUC.js} +10 -10
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
- package/{chunk-KAVGK4ES.js → chunk-MDZWUD3R.js} +18 -18
- package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
- package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
- package/{chunk-XFJ4ZPFC.js → chunk-OYU2MA5S.js} +25 -25
- package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
- package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
- package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
- package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
- package/{chunk-FVZW66K4.js → chunk-R3NEQZ53.js} +288 -95
- package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
- package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
- package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
- package/{chunk-7UH3DGV6.js → chunk-SMJEXX2S.js} +7 -7
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-KO63FPG3.js → chunk-STJ6LSQE.js} +750 -2523
- package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
- package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
- package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-3ESU44FG.js → chunk-UE2EVEYS.js} +3 -3
- package/{chunk-S7SB7L2I.js → chunk-UWAIJOF2.js} +19 -19
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/{chunk-N7HVLYOY.js → chunk-VSYTM22R.js} +3 -3
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-3N4ASIP6.js → chunk-XJPLSAPJ.js} +11 -11
- package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
- package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
- package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
- package/chunk-ZOHO6MOF.js +376 -0
- package/{chunk-652XYZGP.js → chunk-ZXF6D3I6.js} +13 -6
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
- package/{commandRegistry-SDSYBKMC.js → commandRegistry-ZLWHQVAI.js} +93 -93
- package/{contentThunks-G3TRPEAU.js → contentThunks-4ZX2TO7C.js} +36 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
- package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
- package/{createDialogAction-KWSBNAPJ.js → createDialogAction-QTU2R2Q3.js} +37 -36
- package/{createPageAction-HXKJ7OFG.js → createPageAction-F3GJTHW2.js} +37 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
- package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
- package/{dialogSlice-HXPKFGRL.js → dialogSlice-P2S4LXQD.js} +34 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
- package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
- package/{docStore-A2B3GH33.js → docStore-6O7NYL6A.js} +12 -12
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-7IHLR37A.js} +65 -65
- package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-VNCQUAFT.js} +102 -103
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-FOWVNMIK.js} +109 -110
- package/{machineCommands-WFWV25IR.js → machineCommands-ZGC3J4JB.js} +111 -112
- package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-KK5U4M3G.js} +100 -101
- package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-ULJDLUA6.js → projectArchive-7ZDYBXAX.js} +42 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
- package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
- package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-YHT4SX2C.js} +3946 -4393
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
- package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-H4ED5V3K.js} +71 -67
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
- package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-ZXPOXU33.js} +89 -128
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
- package/{tools-JVOJ5HC4.js → tools-2MRWA2PP.js} +58 -58
- package/tuiRestart-2IL37YIB.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
- package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
- package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-KEPOVMF4.js +0 -91
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -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-K67C2JUC.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-RG2DGNL6.js";
|
|
24
20
|
import {
|
|
25
21
|
getActiveDialogAgentId,
|
|
26
22
|
getDialogAgentIds,
|
|
@@ -46,11 +42,13 @@ import {
|
|
|
46
42
|
require_react
|
|
47
43
|
} from "./chunk-5FUN7EG4.js";
|
|
48
44
|
import {
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
buildDialogAttachmentPlan,
|
|
46
|
+
extractFileContentIds,
|
|
47
|
+
fetchWithTransientRetry
|
|
48
|
+
} from "./chunk-DXWGFL2Z.js";
|
|
51
49
|
import {
|
|
52
50
|
addContentAction
|
|
53
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-DEA37IUY.js";
|
|
54
52
|
import {
|
|
55
53
|
patch,
|
|
56
54
|
read,
|
|
@@ -58,14 +56,14 @@ import {
|
|
|
58
56
|
selectById,
|
|
59
57
|
upload,
|
|
60
58
|
write
|
|
61
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CMMI3DAT.js";
|
|
62
60
|
import {
|
|
63
61
|
getRuntimeServerContext,
|
|
64
62
|
parseOwnerUserIdFromDbKey,
|
|
65
63
|
resolveUserAuthorityServer,
|
|
66
64
|
scheduleDeleteReplication,
|
|
67
65
|
waitForWriteAck
|
|
68
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
69
67
|
import {
|
|
70
68
|
asyncThunkCreator,
|
|
71
69
|
buildCreateSlice,
|
|
@@ -75,15 +73,18 @@ import {
|
|
|
75
73
|
} from "./chunk-7Z6EW7AH.js";
|
|
76
74
|
import {
|
|
77
75
|
normalizeTimeFields
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
createClientLogger
|
|
81
|
-
} from "./chunk-QQ56R7KS.js";
|
|
76
|
+
} from "./chunk-4N6G2CKP.js";
|
|
82
77
|
import {
|
|
83
78
|
selectIdentityToken,
|
|
84
79
|
selectIdentityUser,
|
|
85
80
|
selectIdentityUserId
|
|
86
81
|
} from "./chunk-PXYBUFDB.js";
|
|
82
|
+
import {
|
|
83
|
+
createClientLogger
|
|
84
|
+
} from "./chunk-QQ56R7KS.js";
|
|
85
|
+
import {
|
|
86
|
+
fetchMessages
|
|
87
|
+
} from "./chunk-HXER7YJF.js";
|
|
87
88
|
import {
|
|
88
89
|
getRecordTimestamp,
|
|
89
90
|
getTombstoneTimestamp,
|
|
@@ -93,7 +94,10 @@ import {
|
|
|
93
94
|
import {
|
|
94
95
|
applyBuiltinAgentRuntimeOverride,
|
|
95
96
|
resolveBuiltinPlatformAgentRecord
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-S6K5F3KP.js";
|
|
98
|
+
import {
|
|
99
|
+
getApproxPricePerImage
|
|
100
|
+
} from "./chunk-4JH2UMJR.js";
|
|
97
101
|
import {
|
|
98
102
|
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
99
103
|
EMPTY_ASSISTANT_FALLBACK_MESSAGE,
|
|
@@ -108,7 +112,7 @@ import {
|
|
|
108
112
|
isCodexOAuthAgent,
|
|
109
113
|
normalizeAttachmentPart,
|
|
110
114
|
resolveAutoExecutionProfile
|
|
111
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-QRGDJA4B.js";
|
|
112
116
|
import {
|
|
113
117
|
isDevinOAuthAgent
|
|
114
118
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -128,7 +132,7 @@ import {
|
|
|
128
132
|
runSummaryWithContract,
|
|
129
133
|
selectSummaryRoute,
|
|
130
134
|
serializeMessageContent
|
|
131
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-L32W3PRP.js";
|
|
132
136
|
import {
|
|
133
137
|
isOAuthApiKeyRef
|
|
134
138
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -138,12 +142,15 @@ import {
|
|
|
138
142
|
import {
|
|
139
143
|
isAbortError
|
|
140
144
|
} from "./chunk-7DPNBQSV.js";
|
|
145
|
+
import {
|
|
146
|
+
estimateTokenCount
|
|
147
|
+
} from "./chunk-PSCNXBYA.js";
|
|
141
148
|
import {
|
|
142
149
|
nolotusId
|
|
143
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-EVGU5P4U.js";
|
|
144
151
|
import {
|
|
145
152
|
isBuiltinPlatformAgentKey
|
|
146
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-ILHQ2AXT.js";
|
|
147
154
|
import {
|
|
148
155
|
extractCustomId,
|
|
149
156
|
extractUserId
|
|
@@ -159,11 +166,8 @@ import {
|
|
|
159
166
|
dialogMessageKey
|
|
160
167
|
} from "./chunk-OJKUU3LP.js";
|
|
161
168
|
import {
|
|
162
|
-
|
|
163
|
-
} from "./chunk-
|
|
164
|
-
import {
|
|
165
|
-
estimateTokenCount
|
|
166
|
-
} from "./chunk-PSCNXBYA.js";
|
|
169
|
+
API_ENDPOINTS
|
|
170
|
+
} from "./chunk-LCBAMY2M.js";
|
|
167
171
|
import {
|
|
168
172
|
toErrorMessage
|
|
169
173
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -173,10 +177,19 @@ import {
|
|
|
173
177
|
import {
|
|
174
178
|
findModelConfig,
|
|
175
179
|
getModelConfig
|
|
176
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-CD3RU7XL.js";
|
|
177
181
|
import {
|
|
178
182
|
isRecord
|
|
179
183
|
} from "./chunk-KUG52IAP.js";
|
|
184
|
+
import {
|
|
185
|
+
asOptionalFiniteNumber
|
|
186
|
+
} from "./chunk-WWC7I6TA.js";
|
|
187
|
+
import {
|
|
188
|
+
asOptionalTrimmedString
|
|
189
|
+
} from "./chunk-G3SUCT4W.js";
|
|
190
|
+
import {
|
|
191
|
+
normalizeServerOrigin
|
|
192
|
+
} from "./chunk-CF7PE763.js";
|
|
180
193
|
import {
|
|
181
194
|
PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
|
|
182
195
|
PLATFORM_HOSTED_CLAUDE_FABLE_5_PRICE,
|
|
@@ -194,22 +207,10 @@ import {
|
|
|
194
207
|
isPlatformManagedProvider,
|
|
195
208
|
resolvePlatformEffectiveModel,
|
|
196
209
|
resolvePlatformHostedRouting
|
|
197
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-OBSEKCVK.js";
|
|
198
211
|
import {
|
|
199
212
|
asTrimmedLowercaseString
|
|
200
213
|
} 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
214
|
import {
|
|
214
215
|
__toESM
|
|
215
216
|
} from "./chunk-U67V476Y.js";
|
|
@@ -265,7 +266,7 @@ function assertUserBatchInput(expected, actual, ids) {
|
|
|
265
266
|
function createUserBatchExecution(signal, owns) {
|
|
266
267
|
let grant;
|
|
267
268
|
let closed = false;
|
|
268
|
-
let
|
|
269
|
+
let inFlight2 = false;
|
|
269
270
|
const dispose = () => {
|
|
270
271
|
closed = true;
|
|
271
272
|
grant = void 0;
|
|
@@ -290,16 +291,16 @@ function createUserBatchExecution(signal, owns) {
|
|
|
290
291
|
return valid() && same(key, receipt);
|
|
291
292
|
},
|
|
292
293
|
authorize(key, receipt, input) {
|
|
293
|
-
if (!valid() ||
|
|
294
|
+
if (!valid() || inFlight2) throw new Error("User batch execution ownership lost; blocked");
|
|
294
295
|
orderedUserBatchInput(input, receipt.messageIds);
|
|
295
296
|
grant = { dialogKey: key, receipt: { ...receipt, messageIds: [...receipt.messageIds] }, input: structuredClone(input) };
|
|
296
297
|
},
|
|
297
298
|
async start(key, receipt, input, invoke) {
|
|
298
|
-
if (!valid() || !same(key, receipt) ||
|
|
299
|
+
if (!valid() || !same(key, receipt) || inFlight2) {
|
|
299
300
|
dispose();
|
|
300
301
|
throw new Error("User batch execution permission expired or mismatched; blocked");
|
|
301
302
|
}
|
|
302
|
-
|
|
303
|
+
inFlight2 = true;
|
|
303
304
|
try {
|
|
304
305
|
assertUserBatchInput(grant.input, input, receipt.messageIds);
|
|
305
306
|
return await invoke();
|
|
@@ -307,7 +308,7 @@ function createUserBatchExecution(signal, owns) {
|
|
|
307
308
|
dispose();
|
|
308
309
|
throw error;
|
|
309
310
|
} finally {
|
|
310
|
-
|
|
311
|
+
inFlight2 = false;
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
};
|
|
@@ -401,6 +402,7 @@ function normalizeRunCompletionShape(record) {
|
|
|
401
402
|
...typeof record.parentDialogId === "string" ? { parentDialogId: record.parentDialogId } : {},
|
|
402
403
|
...typeof record.dialogId === "string" ? { dialogId: record.dialogId } : {},
|
|
403
404
|
...typeof record.resultFile === "string" ? { resultFile: record.resultFile } : {},
|
|
405
|
+
...typeof record.continuedFrom === "string" ? { continuedFrom: record.continuedFrom } : {},
|
|
404
406
|
...typeof record.ephemeral === "boolean" ? { ephemeral: record.ephemeral } : {},
|
|
405
407
|
...record.startedAt !== void 0 ? { startedAt: record.startedAt } : {},
|
|
406
408
|
...record.endedAt !== void 0 ? { endedAt: record.endedAt } : {},
|
|
@@ -6556,6 +6558,15 @@ var chat_locale_default = {
|
|
|
6556
6558
|
ask_user: "Ask",
|
|
6557
6559
|
runStreamingAgent: "Handoff"
|
|
6558
6560
|
},
|
|
6561
|
+
toolActivity: {
|
|
6562
|
+
unknown: "Unknown",
|
|
6563
|
+
attention: {
|
|
6564
|
+
failure: "Failed",
|
|
6565
|
+
blocked: "Blocked",
|
|
6566
|
+
permission: "Requires authorization",
|
|
6567
|
+
"delete-confirmation": "Awaiting delete confirmation"
|
|
6568
|
+
}
|
|
6569
|
+
},
|
|
6559
6570
|
controlActions: {
|
|
6560
6571
|
status: "Status check",
|
|
6561
6572
|
stop: "Stop task",
|
|
@@ -7100,6 +7111,15 @@ var chat_locale_default = {
|
|
|
7100
7111
|
ask_user: "\u63D0\u95EE",
|
|
7101
7112
|
runStreamingAgent: "\u8F6C\u4EA4"
|
|
7102
7113
|
},
|
|
7114
|
+
toolActivity: {
|
|
7115
|
+
unknown: "\u72B6\u6001\u672A\u77E5",
|
|
7116
|
+
attention: {
|
|
7117
|
+
failure: "\u5931\u8D25",
|
|
7118
|
+
blocked: "\u5DF2\u963B\u585E",
|
|
7119
|
+
permission: "\u9700\u8981\u6388\u6743",
|
|
7120
|
+
"delete-confirmation": "\u7B49\u5F85\u5220\u9664\u786E\u8BA4"
|
|
7121
|
+
}
|
|
7122
|
+
},
|
|
7103
7123
|
controlActions: {
|
|
7104
7124
|
status: "\u72B6\u6001\u8BCA\u65AD",
|
|
7105
7125
|
stop: "\u505C\u6B62\u4EFB\u52A1",
|
|
@@ -7644,6 +7664,15 @@ var chat_locale_default = {
|
|
|
7644
7664
|
ask_user: "\u63D0\u554F",
|
|
7645
7665
|
runStreamingAgent: "\u8F49\u4EA4"
|
|
7646
7666
|
},
|
|
7667
|
+
toolActivity: {
|
|
7668
|
+
unknown: "\u72C0\u614B\u672A\u77E5",
|
|
7669
|
+
attention: {
|
|
7670
|
+
failure: "\u5931\u6557",
|
|
7671
|
+
blocked: "\u5DF2\u963B\u585E",
|
|
7672
|
+
permission: "\u9700\u8981\u6388\u6B0A",
|
|
7673
|
+
"delete-confirmation": "\u7B49\u5F85\u522A\u9664\u78BA\u8A8D"
|
|
7674
|
+
}
|
|
7675
|
+
},
|
|
7647
7676
|
controlActions: {
|
|
7648
7677
|
status: "\u72C0\u614B\u8A3A\u65B7",
|
|
7649
7678
|
stop: "\u505C\u6B62\u4EFB\u52D9",
|
|
@@ -8194,6 +8223,15 @@ var chat_locale_default = {
|
|
|
8194
8223
|
ask_user: "\u8CEA\u554F",
|
|
8195
8224
|
runStreamingAgent: "\u5F15\u304D\u7D99\u304E"
|
|
8196
8225
|
},
|
|
8226
|
+
toolActivity: {
|
|
8227
|
+
unknown: "\u72B6\u614B\u4E0D\u660E",
|
|
8228
|
+
attention: {
|
|
8229
|
+
failure: "\u5931\u6557",
|
|
8230
|
+
blocked: "\u30D6\u30ED\u30C3\u30AF\u4E2D",
|
|
8231
|
+
permission: "\u6A29\u9650\u304C\u5FC5\u8981",
|
|
8232
|
+
"delete-confirmation": "\u524A\u9664\u78BA\u8A8D\u5F85\u3061"
|
|
8233
|
+
}
|
|
8234
|
+
},
|
|
8197
8235
|
controlActions: {
|
|
8198
8236
|
status: "\u30B9\u30C6\u30FC\u30BF\u30B9\u78BA\u8A8D",
|
|
8199
8237
|
stop: "\u30BF\u30B9\u30AF\u505C\u6B62",
|
|
@@ -8745,6 +8783,15 @@ var chat_locale_default = {
|
|
|
8745
8783
|
ask_user: "Fragen",
|
|
8746
8784
|
runStreamingAgent: "\xDCbergeben"
|
|
8747
8785
|
},
|
|
8786
|
+
toolActivity: {
|
|
8787
|
+
unknown: "Unbekannt",
|
|
8788
|
+
attention: {
|
|
8789
|
+
failure: "Fehlgeschlagen",
|
|
8790
|
+
blocked: "Blockiert",
|
|
8791
|
+
permission: "Autorisierung erforderlich",
|
|
8792
|
+
"delete-confirmation": "Wartet auf L\xF6schbest\xE4tigung"
|
|
8793
|
+
}
|
|
8794
|
+
},
|
|
8748
8795
|
controlActions: {
|
|
8749
8796
|
status: "Statuspr\xFCfung",
|
|
8750
8797
|
stop: "Aufgabe anhalten",
|
|
@@ -9296,6 +9343,15 @@ var chat_locale_default = {
|
|
|
9296
9343
|
ask_user: "Preguntar",
|
|
9297
9344
|
runStreamingAgent: "Transferir"
|
|
9298
9345
|
},
|
|
9346
|
+
toolActivity: {
|
|
9347
|
+
unknown: "Desconocido",
|
|
9348
|
+
attention: {
|
|
9349
|
+
failure: "Fallido",
|
|
9350
|
+
blocked: "Bloqueado",
|
|
9351
|
+
permission: "Requiere autorizaci\xF3n",
|
|
9352
|
+
"delete-confirmation": "Esperando confirmaci\xF3n de eliminaci\xF3n"
|
|
9353
|
+
}
|
|
9354
|
+
},
|
|
9299
9355
|
controlActions: {
|
|
9300
9356
|
status: "Diagn\xF3stico de estado",
|
|
9301
9357
|
stop: "Detener tarea",
|
|
@@ -12501,6 +12557,60 @@ function resolveStreamEndBillingUsages(input) {
|
|
|
12501
12557
|
}
|
|
12502
12558
|
|
|
12503
12559
|
// packages/chat/messages/web/toolDisplayName.ts
|
|
12560
|
+
var TOOL_DISPLAY_NAME_DEFAULTS = {
|
|
12561
|
+
tool: "\u5DE5\u5177",
|
|
12562
|
+
globFiles: "\u67E5\u627E\u6587\u4EF6",
|
|
12563
|
+
glob_files: "\u67E5\u627E\u6587\u4EF6",
|
|
12564
|
+
codeSearch: "\u4EE3\u7801\u641C\u7D22",
|
|
12565
|
+
code_search: "\u4EE3\u7801\u641C\u7D22",
|
|
12566
|
+
readFile: "\u8BFB\u53D6\u6587\u4EF6",
|
|
12567
|
+
read_file: "\u8BFB\u53D6\u6587\u4EF6",
|
|
12568
|
+
writeFile: "\u5199\u5165\u6587\u4EF6",
|
|
12569
|
+
write_file: "\u5199\u5165\u6587\u4EF6",
|
|
12570
|
+
editFile: "\u4FEE\u6539\u6587\u4EF6",
|
|
12571
|
+
edit_file: "\u4FEE\u6539\u6587\u4EF6",
|
|
12572
|
+
execShell: "\u8FD0\u884C\u547D\u4EE4",
|
|
12573
|
+
exec_shell: "\u8FD0\u884C\u547D\u4EE4",
|
|
12574
|
+
shell: "\u8FD0\u884C\u547D\u4EE4",
|
|
12575
|
+
searchWorkspace: "\u641C\u7D22\u5DE5\u4F5C\u533A",
|
|
12576
|
+
readWorkspaceFile: "\u8BFB\u53D6\u6587\u4EF6",
|
|
12577
|
+
writeWorkspaceFile: "\u5199\u5165\u6587\u4EF6",
|
|
12578
|
+
replaceWorkspaceText: "\u66FF\u6362\u6587\u672C",
|
|
12579
|
+
listAgents: "\u5217\u51FA\u52A9\u624B",
|
|
12580
|
+
readAgent: "\u8BFB\u53D6\u52A9\u624B",
|
|
12581
|
+
startAgentRun: "\u542F\u52A8\u5B50\u4EFB\u52A1",
|
|
12582
|
+
controlAgentRun: "\u63A7\u5236\u5B50\u4EFB\u52A1",
|
|
12583
|
+
createAgent: "\u521B\u5EFA\u52A9\u624B",
|
|
12584
|
+
updateAgent: "\u66F4\u65B0\u52A9\u624B",
|
|
12585
|
+
prepareAgentDraft: "\u6574\u7406\u52A9\u624B\u8349\u7A3F",
|
|
12586
|
+
createSkillAgent: "\u521B\u5EFA\u6280\u80FD\u52A9\u624B",
|
|
12587
|
+
queryDialogsBySubjectRef: "\u68C0\u7D22\u5BF9\u8BDD\u8BB0\u5F55",
|
|
12588
|
+
deleteDialogs: "\u5220\u9664\u5BF9\u8BDD\u8BB0\u5F55",
|
|
12589
|
+
readDialog: "\u8BFB\u53D6\u5BF9\u8BDD",
|
|
12590
|
+
listDialogs: "\u5217\u51FA\u5BF9\u8BDD",
|
|
12591
|
+
exa_search: "\u641C\u7D22",
|
|
12592
|
+
firecrawl_scrape: "\u7F51\u9875\u6293\u53D6",
|
|
12593
|
+
firecrawl_search: "\u7F51\u9875\u641C\u7D22",
|
|
12594
|
+
startPreview: "\u542F\u52A8\u9884\u89C8",
|
|
12595
|
+
getPreviewStatus: "\u9884\u89C8\u72B6\u6001",
|
|
12596
|
+
stopPreview: "\u505C\u6B62\u9884\u89C8",
|
|
12597
|
+
releasePreview: "\u91CA\u653E\u9884\u89C8",
|
|
12598
|
+
captureVisualState: "\u622A\u56FE\u68C0\u67E5",
|
|
12599
|
+
fetchWebpage: "\u6293\u53D6\u7F51\u9875",
|
|
12600
|
+
fetch_webpage: "\u6293\u53D6\u7F51\u9875",
|
|
12601
|
+
loadSkill: "\u52A0\u8F7D\u6280\u80FD"
|
|
12602
|
+
};
|
|
12603
|
+
function normalizeToolNameKey(toolName) {
|
|
12604
|
+
let normalized = asTrimmedString(toolName);
|
|
12605
|
+
if (!normalized) return "";
|
|
12606
|
+
normalized = normalized.replace(/^functions\./, "").replace(/^tools\./, "");
|
|
12607
|
+
if (TOOL_DISPLAY_NAME_DEFAULTS[normalized]) return normalized;
|
|
12608
|
+
if (normalized.includes("_")) {
|
|
12609
|
+
const camel = normalized.replace(/_([a-z])/g, (_, c) => c.toUpperCase());
|
|
12610
|
+
if (TOOL_DISPLAY_NAME_DEFAULTS[camel]) return camel;
|
|
12611
|
+
}
|
|
12612
|
+
return normalized;
|
|
12613
|
+
}
|
|
12504
12614
|
var LEGACY_VERSION_ACTIVITY_TITLES = {
|
|
12505
12615
|
\u7528\u7248\u672C\u7BA1\u7406\u68C0\u67E5\u6539\u52A8: "\u68C0\u67E5\u6539\u52A8",
|
|
12506
12616
|
\u7528\u7248\u672C\u7BA1\u7406\u67E5\u770B\u6539\u52A8: "\u67E5\u770B\u6539\u52A8",
|
|
@@ -12830,7 +12940,9 @@ function formatActivityAction(activity) {
|
|
|
12830
12940
|
}
|
|
12831
12941
|
function getMessageStatus(msg) {
|
|
12832
12942
|
const rawData = typeof msg?.content === "string" ? asOptionalJsonRecord(msg.content) : msg?.content;
|
|
12833
|
-
const
|
|
12943
|
+
const name = normalizeToolNameKey(msg?.toolName);
|
|
12944
|
+
const isReadFile = ["readFile", "read_file", "readWorkspaceFile"].includes(name);
|
|
12945
|
+
const isError = msg?.toolPayload?.status === "failed" || !!msg?.toolPayload?.error || !!msg?.metadata?.error || !isReadFile && (!!rawData?.error || rawData?.ok === false);
|
|
12834
12946
|
if (msg?.isStreaming || msg?.toolPayload?.status === "running") return "running";
|
|
12835
12947
|
if (isError) return "failed";
|
|
12836
12948
|
if (msg?.toolPayload?.status === "pending") return "pending";
|
|
@@ -13168,15 +13280,6 @@ function prepareStreamEndPersistInputs(input) {
|
|
|
13168
13280
|
}
|
|
13169
13281
|
|
|
13170
13282
|
// 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
13283
|
function getDialogSpaceIdFromState(state, dialogKey) {
|
|
13181
13284
|
if (!dialogKey) return void 0;
|
|
13182
13285
|
const dialog = selectById(state, dialogKey);
|
|
@@ -13190,32 +13293,117 @@ function resolveMemoryCaptureBaseUrl(state) {
|
|
|
13190
13293
|
return currentServer.replace(/\/+$/, "");
|
|
13191
13294
|
}
|
|
13192
13295
|
async function captureUnderstandingFromCompletedUiTurn(input) {
|
|
13193
|
-
if (input.assistantText.trim()
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
const
|
|
13197
|
-
if (!
|
|
13296
|
+
if (!input.assistantText.trim() || input.toolCalls?.length || !input.agentKey) {
|
|
13297
|
+
return { status: "skipped", reason: "incomplete_turn" };
|
|
13298
|
+
}
|
|
13299
|
+
const source = input.messages.findLast((message) => message?.role === "user");
|
|
13300
|
+
if (!source || !/^[A-Za-z0-9_-]{1,128}$/.test(source.id ?? "") || source.dbKey !== dialogMessageKey(input.dialogId, source.id)) {
|
|
13301
|
+
return { status: "skipped", reason: "missing_persisted_user" };
|
|
13302
|
+
}
|
|
13198
13303
|
const state = input.state;
|
|
13304
|
+
const persisted = state?.db ? selectById(state, source.dbKey) : void 0;
|
|
13305
|
+
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) {
|
|
13306
|
+
return { status: "skipped", reason: "missing_persisted_user" };
|
|
13307
|
+
}
|
|
13199
13308
|
const token = selectIdentityToken(state) ?? null;
|
|
13200
13309
|
const baseUrl = resolveMemoryCaptureBaseUrl(state);
|
|
13201
|
-
if (!token || !baseUrl) return;
|
|
13202
|
-
const
|
|
13310
|
+
if (!token || !baseUrl) return { status: "skipped", reason: "unavailable" };
|
|
13311
|
+
const body = JSON.stringify({
|
|
13312
|
+
agentKey: input.agentKey,
|
|
13313
|
+
dialogId: input.dialogId,
|
|
13314
|
+
userMessageId: persisted.id,
|
|
13315
|
+
userInput: persisted.content,
|
|
13316
|
+
assistantText: input.assistantText,
|
|
13317
|
+
spaceId: input.spaceId ?? getDialogSpaceIdFromState(state, input.dialogKey)
|
|
13318
|
+
});
|
|
13319
|
+
const key = JSON.stringify([baseUrl, token, body]);
|
|
13320
|
+
const existing = inFlight.get(key);
|
|
13321
|
+
if (existing && existing.signal === input.signal) return existing.promise;
|
|
13322
|
+
const promise = runCapture(input, persisted.dbKey, baseUrl, token, body);
|
|
13323
|
+
const entry = { signal: input.signal, promise };
|
|
13324
|
+
inFlight.set(key, entry);
|
|
13203
13325
|
try {
|
|
13204
|
-
await
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13326
|
+
return await promise;
|
|
13327
|
+
} finally {
|
|
13328
|
+
if (inFlight.get(key) === entry) inFlight.delete(key);
|
|
13329
|
+
}
|
|
13330
|
+
}
|
|
13331
|
+
var inFlight = /* @__PURE__ */ new Map();
|
|
13332
|
+
async function runCapture(input, sourceKey, baseUrl, token, body) {
|
|
13333
|
+
const controller = new AbortController();
|
|
13334
|
+
const cancel = () => controller.abort();
|
|
13335
|
+
input.signal?.addEventListener("abort", cancel, { once: true });
|
|
13336
|
+
if (input.signal?.aborted) cancel();
|
|
13337
|
+
const requestedTimeout = input.timeoutMs ?? 8e3;
|
|
13338
|
+
const timeoutMs = Number.isFinite(requestedTimeout) ? Math.max(1, Math.min(8e3, requestedTimeout)) : 8e3;
|
|
13339
|
+
const timer = setTimeout(cancel, timeoutMs);
|
|
13340
|
+
const signal = controller.signal;
|
|
13341
|
+
const bounded = (operation) => new Promise((resolve, reject) => {
|
|
13342
|
+
const abort = () => reject(new Error("capture aborted"));
|
|
13343
|
+
if (signal.aborted) {
|
|
13344
|
+
reject(new Error("capture aborted"));
|
|
13345
|
+
return;
|
|
13346
|
+
}
|
|
13347
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
13348
|
+
operation.then(resolve, reject).finally(() => signal.removeEventListener("abort", abort));
|
|
13349
|
+
});
|
|
13350
|
+
try {
|
|
13351
|
+
if (signal.aborted) return { status: "failed", reason: "cancelled" };
|
|
13352
|
+
const ack = await bounded(waitForWriteAck(sourceKey, { targetServer: baseUrl, timeoutMs }));
|
|
13353
|
+
if (ack.timedOut) return { status: "failed", reason: "replication_timeout" };
|
|
13354
|
+
if (!["acked", "unknown"].includes(ack.outcome.status) || ack.waitTarget === "primary-fallback") {
|
|
13355
|
+
return { status: "failed", reason: "replication_failed" };
|
|
13356
|
+
}
|
|
13357
|
+
const response = await bounded(fetchWithTransientRetry(
|
|
13358
|
+
async (url, init2) => {
|
|
13359
|
+
if (signal.aborted) throw new Error("capture aborted");
|
|
13360
|
+
return bounded(fetch(url, init2));
|
|
13361
|
+
},
|
|
13362
|
+
`${baseUrl}/api/memory/capture-turn`,
|
|
13363
|
+
{
|
|
13364
|
+
method: "POST",
|
|
13365
|
+
headers: {
|
|
13366
|
+
"Content-Type": "application/json",
|
|
13367
|
+
Authorization: `Bearer ${token}`
|
|
13368
|
+
},
|
|
13369
|
+
body,
|
|
13370
|
+
signal
|
|
13209
13371
|
},
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13372
|
+
{
|
|
13373
|
+
maxAttempts: 3,
|
|
13374
|
+
coreDrainingMaxAttempts: 3,
|
|
13375
|
+
// Never replay an ambiguous application-level 422 or permanent 401/403.
|
|
13376
|
+
retryableStatuses: /* @__PURE__ */ new Set([429, 502, 503, 504]),
|
|
13377
|
+
sleep: (ms) => bounded(new Promise((resolve) => {
|
|
13378
|
+
const timer2 = setTimeout(done, Math.min(ms, 2e3));
|
|
13379
|
+
function done() {
|
|
13380
|
+
clearTimeout(timer2);
|
|
13381
|
+
signal.removeEventListener("abort", done);
|
|
13382
|
+
resolve();
|
|
13383
|
+
}
|
|
13384
|
+
signal.addEventListener("abort", done, { once: true });
|
|
13385
|
+
}))
|
|
13386
|
+
}
|
|
13387
|
+
));
|
|
13388
|
+
if (!response.ok) return { status: "failed", reason: "http", httpStatus: response.status };
|
|
13389
|
+
let responseBody;
|
|
13390
|
+
try {
|
|
13391
|
+
responseBody = await bounded(response.json());
|
|
13392
|
+
} catch {
|
|
13393
|
+
if (signal.aborted) throw new Error("capture aborted");
|
|
13394
|
+
return { status: "failed", reason: "invalid_response" };
|
|
13395
|
+
}
|
|
13396
|
+
const native = responseBody?.nativeCapture;
|
|
13397
|
+
if (native && ["captured", "skipped", "failed"].includes(native.capture) && ["applied", "no_op", "deferred", "failed"].includes(native.formation)) {
|
|
13398
|
+
return { status: "native", capture: native.capture, formation: native.formation };
|
|
13399
|
+
}
|
|
13400
|
+
if (!native && responseBody?.success === true) return { status: "legacy_acknowledged" };
|
|
13401
|
+
return { status: "failed", reason: "invalid_response" };
|
|
13218
13402
|
} catch {
|
|
13403
|
+
return { status: "failed", reason: signal.aborted ? input.signal?.aborted ? "cancelled" : "timeout" : "network" };
|
|
13404
|
+
} finally {
|
|
13405
|
+
clearTimeout(timer);
|
|
13406
|
+
input.signal?.removeEventListener("abort", cancel);
|
|
13219
13407
|
}
|
|
13220
13408
|
}
|
|
13221
13409
|
|
|
@@ -14267,12 +14455,17 @@ var messageSlice = createSliceWithThunks({
|
|
|
14267
14455
|
}
|
|
14268
14456
|
captureUnderstandingFromCompletedUiTurn2({
|
|
14269
14457
|
state: getState(),
|
|
14458
|
+
signal,
|
|
14270
14459
|
agentKey: agentConfig?.dbKey,
|
|
14271
14460
|
dialogId,
|
|
14272
14461
|
dialogKey,
|
|
14273
14462
|
spaceId: payload.spaceId,
|
|
14274
14463
|
assistantText: textContent,
|
|
14275
14464
|
toolCalls
|
|
14465
|
+
}).then((result) => {
|
|
14466
|
+
if (result.status === "failed" || result.status === "native" && (result.capture === "failed" || result.formation === "failed" || result.formation === "deferred")) {
|
|
14467
|
+
console.warn("Understanding memory capture incomplete:", result);
|
|
14468
|
+
}
|
|
14276
14469
|
}).catch(
|
|
14277
14470
|
(err) => console.error("Understanding memory capture failed:", err)
|
|
14278
14471
|
);
|
|
@@ -14426,7 +14619,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
14426
14619
|
runtimeOptions: args.runtimeOptions
|
|
14427
14620
|
});
|
|
14428
14621
|
if (agentKeyToUse) {
|
|
14429
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
14622
|
+
const { streamAgentChatTurn } = await import("./agentSlice-L4SBGWTB.js");
|
|
14430
14623
|
await dispatch(
|
|
14431
14624
|
streamAgentChatTurn({
|
|
14432
14625
|
agentKey: agentKeyToUse,
|
|
@@ -15497,7 +15690,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
15497
15690
|
metadataReadFailures
|
|
15498
15691
|
});
|
|
15499
15692
|
if (!plan.deleteCandidates.length) return plan;
|
|
15500
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
15693
|
+
const { deleteFileAction } = await import("./deleteFile-6URDHYRB.js");
|
|
15501
15694
|
for (const candidate of plan.deleteCandidates) {
|
|
15502
15695
|
if (candidate.fileDbKey) {
|
|
15503
15696
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -15559,7 +15752,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
15559
15752
|
}
|
|
15560
15753
|
if (isCurrentDialog) {
|
|
15561
15754
|
await thunkApi.dispatch(resetMsgs());
|
|
15562
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
15755
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-P2S4LXQD.js");
|
|
15563
15756
|
dispatch(clearPendingAttachments2());
|
|
15564
15757
|
}
|
|
15565
15758
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -15567,39 +15760,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
15567
15760
|
|
|
15568
15761
|
// packages/chat/dialog/dialogSlice.ts
|
|
15569
15762
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
15570
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
15763
|
+
const { createDialogAction } = await import("./createDialogAction-QTU2R2Q3.js");
|
|
15571
15764
|
return createDialogAction(args, thunkApi);
|
|
15572
15765
|
};
|
|
15573
15766
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
15574
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
15767
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-L4CYUZJG.js");
|
|
15575
15768
|
return createAgentAutomationAction(args, thunkApi);
|
|
15576
15769
|
};
|
|
15577
15770
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
15578
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
15771
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-RZ3KZSGQ.js");
|
|
15579
15772
|
return updateDialogTitleAction(args, thunkApi);
|
|
15580
15773
|
};
|
|
15581
15774
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
15582
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
15775
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-EVYBGTXB.js");
|
|
15583
15776
|
return addDialogAgentAction(args, thunkApi);
|
|
15584
15777
|
};
|
|
15585
15778
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
15586
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
15779
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-F5QE2O2B.js");
|
|
15587
15780
|
return removeDialogAgentAction(args, thunkApi);
|
|
15588
15781
|
};
|
|
15589
15782
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
15590
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
15783
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-GJJDUSGJ.js");
|
|
15591
15784
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
15592
15785
|
};
|
|
15593
15786
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
15594
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
15787
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-IIJBPND3.js");
|
|
15595
15788
|
return switchDialogAgentAction(args, thunkApi);
|
|
15596
15789
|
};
|
|
15597
15790
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
15598
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
15791
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-72L27ERM.js");
|
|
15599
15792
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
15600
15793
|
};
|
|
15601
15794
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
15602
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
15795
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-7IHLR37A.js");
|
|
15603
15796
|
return handleSendMessageAction(args, thunkApi);
|
|
15604
15797
|
};
|
|
15605
15798
|
function clearDialogState() {
|
|
@@ -15612,7 +15805,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
15612
15805
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
15613
15806
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
15614
15807
|
try {
|
|
15615
|
-
const { createDocState } = await import("./docStore-
|
|
15808
|
+
const { createDocState } = await import("./docStore-6O7NYL6A.js");
|
|
15616
15809
|
const pageKey = await createDocState(
|
|
15617
15810
|
{ slateData, title },
|
|
15618
15811
|
{ dispatch, getState }
|
|
@@ -15777,20 +15970,20 @@ var selectCurrentDialogTokens = createSelector(
|
|
|
15777
15970
|
var selectTotalDialogTokens = selectCurrentDialogTokens;
|
|
15778
15971
|
|
|
15779
15972
|
export {
|
|
15780
|
-
normalizeRunCompletionShape,
|
|
15781
|
-
createTurnRequest,
|
|
15782
|
-
isAgentRunStatusNormal,
|
|
15783
|
-
isAgentRunStartFailureStatus,
|
|
15784
|
-
uiAskChoiceFunctionSchema,
|
|
15785
|
-
validateAskChoiceInput,
|
|
15786
|
-
uiAskChoiceFunc,
|
|
15787
|
-
parseUiAskChoiceContent,
|
|
15788
15973
|
API_REPORTED_COST_MULTIPLIER,
|
|
15789
15974
|
estimateMessagesTokens,
|
|
15790
15975
|
historyTokensBeforeLatestAssistant,
|
|
15791
15976
|
resolveOccupancy,
|
|
15792
15977
|
resolveOccupancyWindow,
|
|
15793
15978
|
resolveAgentContextWindow,
|
|
15979
|
+
isAgentRunStatusNormal,
|
|
15980
|
+
isAgentRunStartFailureStatus,
|
|
15981
|
+
uiAskChoiceFunctionSchema,
|
|
15982
|
+
validateAskChoiceInput,
|
|
15983
|
+
uiAskChoiceFunc,
|
|
15984
|
+
parseUiAskChoiceContent,
|
|
15985
|
+
normalizeRunCompletionShape,
|
|
15986
|
+
createTurnRequest,
|
|
15794
15987
|
runtime_default,
|
|
15795
15988
|
snapshotUserBatchInput,
|
|
15796
15989
|
createUserBatchExecution,
|