nolo-cli 0.153.2 → 0.154.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-7PZNF3KM.js → _executeModel-3HHZYHHB.js} +44 -42
- package/accountResolver-55EDKEIK.js +1 -1
- package/action-GPPJC5TI.js +1 -1
- package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
- package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
- package/{agentDeleteCommand-52SBFMA4.js → agentDeleteCommand-ON2KVSJ5.js} +60 -60
- package/{agentEmailCommands-FLTHAK4Y.js → agentEmailCommands-2QPD5VP3.js} +63 -63
- package/{agentListCommands-LKFRVROH.js → agentListCommands-L33M3I6V.js} +33 -33
- package/{agentMachineCommands-V3E6STQ6.js → agentMachineCommands-V44DPSED.js} +30 -28
- package/{agentProviderCommands-MKG2OOEY.js → agentProviderCommands-CXBHNONN.js} +5 -5
- package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
- package/{agentRecordCommands-KAOY56RD.js → agentRecordCommands-CKILCNQZ.js} +57 -57
- package/{agentRunCommand-FXAN65RN.js → agentRunCommand-6IN7NK7H.js} +59 -59
- package/{agentRunControl-2C5GM3BW.js → agentRunControl-XBSNHHZE.js} +7 -7
- package/{agentRuntimeLocal-V4URZOQL.js → agentRuntimeLocal-XCKO5FVP.js} +20 -18
- package/{agentSlice-LAV5TJXT.js → agentSlice-YT3VCCEW.js} +6 -6
- package/{appDeleteCommands-7EZRTNIP.js → appDeleteCommands-2PJFNLAJ.js} +28 -26
- package/{appDeployCommands-3U6MEES7.js → appDeployCommands-AZCMCMK6.js} +28 -26
- package/{appDeployStatusCommands-TAC6BYC6.js → appDeployStatusCommands-HSIKPVJN.js} +28 -26
- package/{appGetCommands-MFNPLXGO.js → appGetCommands-IUZCPAP7.js} +28 -26
- package/{appListCommands-QVZAUEUU.js → appListCommands-JLFVS44M.js} +28 -26
- package/{authCommand-NIV3DKPF.js → authCommand-3Z52KJID.js} +19 -19
- package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
- package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
- package/{chunk-4RJJDA57.js → chunk-2ODX2C4E.js} +154 -30
- package/{chunk-UCLSOLX4.js → chunk-2XDQAWBM.js} +12 -12
- package/{chunk-XJOBYJWN.js → chunk-2ZYCNT2O.js} +72 -33
- package/{chunk-YIIQNHJW.js → chunk-3GTVM7NJ.js} +19 -19
- package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
- package/{chunk-SGJRNVYF.js → chunk-4L4K6YR7.js} +16 -2
- package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
- package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
- package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
- package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
- package/{chunk-JPJGMOIM.js → chunk-DD2EOI6S.js} +1 -1
- package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
- package/{chunk-RWSOTHY4.js → chunk-DT7EWFTY.js} +5 -5
- package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
- package/{chunk-V6P4AYYJ.js → chunk-EVPKKBSI.js} +13 -13
- package/{chunk-HB4XPBC7.js → chunk-EWO77ZGF.js} +9 -11
- package/{chunk-KJ7MT3UC.js → chunk-F3SOW2EU.js} +81 -1
- package/{chunk-T64RZQBO.js → chunk-F5WASHQA.js} +247 -132
- package/{chunk-WUGRUG5Z.js → chunk-FB5WLEOD.js} +12 -12
- package/{chunk-SOEJSA7I.js → chunk-FCUKCVKN.js} +4 -4
- package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
- package/{chunk-ICRRXBRN.js → chunk-FFHV45HO.js} +3 -3
- package/{chunk-BUCB3RT4.js → chunk-FZYKQFBQ.js} +3 -3
- package/{chunk-IE5PXKVU.js → chunk-G3VYRPTV.js} +5 -5
- package/{chunk-3CHPRXKY.js → chunk-HW7EBEC5.js} +26 -194
- package/{chunk-UFYBYB26.js → chunk-I7S63QUU.js} +1 -1
- package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
- package/{chunk-RAEBIT7A.js → chunk-JDKSYQQN.js} +4 -4
- package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
- package/{chunk-QJJQZ4EK.js → chunk-JSB2OPQT.js} +115 -119
- package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
- package/{chunk-7G4KH3C4.js → chunk-K25WQPP3.js} +220 -54
- package/{chunk-ZEY4NJRE.js → chunk-KABQ74UQ.js} +4 -4
- package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
- package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
- package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
- package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
- package/{chunk-QPY264HO.js → chunk-O2IWR23M.js} +1 -1
- package/{chunk-TFPOD4YZ.js → chunk-OLVOR45M.js} +2 -2
- package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
- package/{chunk-AAMWEIEP.js → chunk-QA2C5NKI.js} +3 -3
- package/{chunk-3WIXU4XO.js → chunk-QI2WVWXV.js} +13 -1
- package/{chunk-VSJIIKGY.js → chunk-QXZH5UDF.js} +3 -3
- package/{chunk-SQ73U3BG.js → chunk-QZIOZDM6.js} +9 -9
- package/{chunk-MJ54WBLO.js → chunk-R2KWTENX.js} +3 -3
- package/{chunk-C3OK72G3.js → chunk-RIHQGFFA.js} +1 -1
- package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
- package/{chunk-MM3662RS.js → chunk-SNAWGDXT.js} +263 -4
- package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
- package/chunk-TT644UJD.js +188 -0
- package/{chunk-IYBIRCQV.js → chunk-U34KT53V.js} +29 -11
- package/{chunk-ZJZGF77K.js → chunk-ULQAD7ZY.js} +18 -43
- package/{chunk-DJKBZYMR.js → chunk-UY73HNIN.js} +53 -49
- package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
- package/{chunk-KLA62VVE.js → chunk-VXS4YYJ2.js} +8 -8
- package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
- package/{chunk-C5A3GWRG.js → chunk-YR47Y7CN.js} +6 -6
- package/{chunk-AXYXKGPN.js → chunk-ZAV4YVEA.js} +1 -1
- package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
- package/{chunk-AWY25K65.js → chunk-ZSLIYVIQ.js} +7 -7
- package/{commandRegistry-BZGZP4AW.js → commandRegistry-4LWXIPNX.js} +83 -83
- package/{contentThunks-56AWRCC4.js → contentThunks-QBL5NK2W.js} +17 -17
- package/{createAgentAutomationAction-W5D4IHHK.js → createAgentAutomationAction-5UWBLR2N.js} +17 -17
- package/{createDialogAction-YMU646CH.js → createDialogAction-NJ2LE7KC.js} +21 -21
- package/{createPageAction-T4WRPDOH.js → createPageAction-7T3RINS2.js} +19 -19
- package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
- package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
- package/{dialogCommands-3T3LM566.js → dialogCommands-KMECTGCW.js} +30 -28
- package/{dialogSlice-Z5KOY4CC.js → dialogSlice-GQMTD4HR.js} +16 -16
- package/{docCreateCommands-OLNS64OJ.js → docCreateCommands-4IT5PUAL.js} +30 -28
- package/{docDeleteCommands-U4UOLXZQ.js → docDeleteCommands-QS66YNZV.js} +31 -29
- package/{docReadCommands-WUYVWGOH.js → docReadCommands-3SAI46YC.js} +30 -28
- package/{docStore-2EN5A7PW.js → docStore-PM5PYKPZ.js} +6 -6
- package/{docUpdateCommands-RKVB6XAQ.js → docUpdateCommands-OGYG5BRC.js} +30 -28
- package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
- package/{handleSendMessageAction-EF3LOTXW.js → handleSendMessageAction-EQ3U6K5N.js} +35 -31
- package/index.js +7 -7
- package/{localRuntimeAdapter-OAHN57AM.js → localRuntimeAdapter-MO64KEOS.js} +53 -53
- package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
- package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
- package/{machineCommands-RTYX5UN3.js → machineCommands-7MBJJY4K.js} +60 -60
- package/{machineWsRunDispatch-ELDKKIHF.js → machineWsRunDispatch-T4LFRJL3.js} +55 -55
- package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
- package/package.json +1 -1
- package/{providerPresetApply-GSJI4JBJ.js → providerPresetApply-PKUOHQJT.js} +5 -5
- package/{providerRegistry-TSSTPGWF.js → providerRegistry-HNQLIFN2.js} +5 -5
- package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
- package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
- package/{readlineWorkspace-BUEUGN7D.js → readlineWorkspace-2DR5GHLQ.js} +92 -126
- package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
- package/{runAgentClientLoop-BDN5VYZN.js → runAgentClientLoop-EXIQDX7G.js} +42 -40
- package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
- package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
- package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
- package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
- package/{spaceCommands-KHCPOFEB.js → spaceCommands-WQMUCGV7.js} +27 -25
- package/{streamAgentChatTurn-WFNIELXS.js → streamAgentChatTurn-DI2334G3.js} +142 -81
- package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
- package/{tools-2LGM37M4.js → tools-23VQGJOX.js} +32 -32
- package/{tuiSummaryLlmCaller-NBEHCAFU.js → tuiSummaryLlmCaller-FESHBDTT.js} +7 -7
- package/{updateCommands-LXZLG44Y.js → updateCommands-ODWC7SK7.js} +5 -3
- package/{updateDialogTitleAction-IFC2MM4P.js → updateDialogTitleAction-AGAYHWS7.js} +17 -17
- package/chunk-UKZX3NHN.js +0 -48
- package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
- package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
- package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
- package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
- package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
- package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
- package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isOAuthApiKeyRef
|
|
3
|
-
} from "./chunk-UKZX3NHN.js";
|
|
4
1
|
import {
|
|
5
2
|
buildDialogAttachmentPlan,
|
|
6
3
|
extractFileContentIds
|
|
@@ -14,13 +11,13 @@ import {
|
|
|
14
11
|
} from "./chunk-QYPE3TS3.js";
|
|
15
12
|
import {
|
|
16
13
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DT7EWFTY.js";
|
|
18
15
|
import {
|
|
19
16
|
getApproxPricePerImage
|
|
20
17
|
} from "./chunk-4JH2UMJR.js";
|
|
21
18
|
import {
|
|
22
19
|
cleanupCliSessionForDialog
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ESMZW5PE.js";
|
|
24
21
|
import {
|
|
25
22
|
getActiveDialogAgentId,
|
|
26
23
|
getDialogAgentIds,
|
|
@@ -56,7 +53,7 @@ import {
|
|
|
56
53
|
} from "./chunk-XI7DGLUK.js";
|
|
57
54
|
import {
|
|
58
55
|
addContentAction
|
|
59
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-JWEXJ573.js";
|
|
60
57
|
import {
|
|
61
58
|
patch,
|
|
62
59
|
read,
|
|
@@ -64,12 +61,12 @@ import {
|
|
|
64
61
|
selectById,
|
|
65
62
|
upload,
|
|
66
63
|
write
|
|
67
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-CDLP56BS.js";
|
|
68
65
|
import {
|
|
69
66
|
getRuntimeServerContext,
|
|
70
67
|
parseOwnerUserIdFromDbKey,
|
|
71
68
|
scheduleDeleteReplication
|
|
72
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-43OFVLWJ.js";
|
|
73
70
|
import {
|
|
74
71
|
asyncThunkCreator,
|
|
75
72
|
buildCreateSlice,
|
|
@@ -102,24 +99,29 @@ import {
|
|
|
102
99
|
STAGNANT_TOOL_CALLS_FALLBACK_MESSAGE,
|
|
103
100
|
STREAM_TRUNCATED_FALLBACK_MESSAGE,
|
|
104
101
|
asOptionalJsonRecord,
|
|
102
|
+
devinChannelContextWindow,
|
|
105
103
|
extractReferenceKeysFromMessage,
|
|
104
|
+
isOAuthApiKeyRef,
|
|
106
105
|
normalizeUsage,
|
|
107
106
|
resolveAutoExecutionProfile
|
|
108
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-F3SOW2EU.js";
|
|
108
|
+
import {
|
|
109
|
+
isDevinOAuthAgent
|
|
110
|
+
} from "./chunk-5ZUL4CUO.js";
|
|
109
111
|
import {
|
|
110
112
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
111
113
|
DEFAULT_CONTEXT_WINDOW,
|
|
112
114
|
buildCompactionMetricsFromPlan,
|
|
113
115
|
buildCompactionUserContent,
|
|
114
116
|
computeSummarySourceMetadata,
|
|
117
|
+
findModelContextWindow,
|
|
115
118
|
formatCompactionMetricsLog,
|
|
116
119
|
formatFileOperationsFromMessages,
|
|
117
120
|
formatMessagesForSummaryWithTruncation,
|
|
118
|
-
getModelContextWindow,
|
|
119
121
|
getModelInfo,
|
|
120
122
|
planCompression,
|
|
121
123
|
serializeMessageContent
|
|
122
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-QA2C5NKI.js";
|
|
123
125
|
import {
|
|
124
126
|
asRecordOrEmpty
|
|
125
127
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -146,13 +148,19 @@ import {
|
|
|
146
148
|
createTokenStatsKey,
|
|
147
149
|
dialogMessageKey
|
|
148
150
|
} from "./chunk-5EMSBTQ6.js";
|
|
151
|
+
import {
|
|
152
|
+
estimateTokenCount
|
|
153
|
+
} from "./chunk-PSCNXBYA.js";
|
|
154
|
+
import {
|
|
155
|
+
API_ENDPOINTS
|
|
156
|
+
} from "./chunk-LCBAMY2M.js";
|
|
149
157
|
import {
|
|
150
158
|
asOptionalFiniteNumber
|
|
151
159
|
} from "./chunk-WWC7I6TA.js";
|
|
152
160
|
import {
|
|
153
161
|
findModelConfig,
|
|
154
162
|
getModelConfig
|
|
155
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-6EQD4AQL.js";
|
|
156
164
|
import {
|
|
157
165
|
isRecord
|
|
158
166
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -162,9 +170,6 @@ import {
|
|
|
162
170
|
import {
|
|
163
171
|
toErrorMessage
|
|
164
172
|
} from "./chunk-HNMXYYJR.js";
|
|
165
|
-
import {
|
|
166
|
-
API_ENDPOINTS
|
|
167
|
-
} from "./chunk-LCBAMY2M.js";
|
|
168
173
|
import {
|
|
169
174
|
normalizeServerOrigin
|
|
170
175
|
} from "./chunk-CF7PE763.js";
|
|
@@ -696,6 +701,154 @@ var fetchAndCacheMessages = async (options) => {
|
|
|
696
701
|
return remotePromise;
|
|
697
702
|
};
|
|
698
703
|
|
|
704
|
+
// packages/ai/context/contextOccupancy.ts
|
|
705
|
+
function estimateMessagesTokens(messages) {
|
|
706
|
+
return messages.reduce((total, message) => {
|
|
707
|
+
const content = typeof message.content === "string" ? message.content : message.content == null ? "" : JSON.stringify(message.content);
|
|
708
|
+
return total + estimateTokenCount(content) + 4;
|
|
709
|
+
}, 0);
|
|
710
|
+
}
|
|
711
|
+
function historyTokensBeforeLatestAssistant(messages) {
|
|
712
|
+
const total = estimateMessagesTokens(messages);
|
|
713
|
+
const latest = messages[messages.length - 1];
|
|
714
|
+
if (latest?.role !== "assistant") return total;
|
|
715
|
+
return Math.max(0, total - estimateMessagesTokens([latest]));
|
|
716
|
+
}
|
|
717
|
+
function resolveOccupancy(input) {
|
|
718
|
+
if (input.authoritativeInput !== void 0 && input.authoritativeInput > 0) {
|
|
719
|
+
const generated = Math.max(0, input.generatedSinceAuthority ?? 0);
|
|
720
|
+
return {
|
|
721
|
+
tokens: input.authoritativeInput + generated,
|
|
722
|
+
estimated: generated > 0
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
return {
|
|
726
|
+
tokens: Math.max(0, input.baselineEstimate ?? 0),
|
|
727
|
+
estimated: true
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
function resolveOccupancyWindow(ref) {
|
|
731
|
+
if (!ref.model) return void 0;
|
|
732
|
+
if (isDevinOAuthAgent(ref)) {
|
|
733
|
+
return devinChannelContextWindow(ref.model) ?? findModelContextWindow(ref.model, ref.provider);
|
|
734
|
+
}
|
|
735
|
+
return findModelContextWindow(ref.model, ref.provider);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
// packages/ai/context/agentContextWindow.ts
|
|
739
|
+
function resolveAgentContextWindow(ref) {
|
|
740
|
+
const byModel = resolveOccupancyWindow({ model: ref.model, provider: ref.provider });
|
|
741
|
+
if (byModel !== void 0) return byModel;
|
|
742
|
+
const byName = ref.agentName?.trim() ? resolveOccupancyWindow({ model: ref.agentName, provider: ref.provider }) : void 0;
|
|
743
|
+
if (byName !== void 0) return byName;
|
|
744
|
+
const candidates = [
|
|
745
|
+
...modelSlugCandidates(ref.agentKey, 2),
|
|
746
|
+
...modelSlugCandidates(ref.agentName, 1)
|
|
747
|
+
];
|
|
748
|
+
for (const candidate of candidates) {
|
|
749
|
+
const window = resolveOccupancyWindow({ model: candidate, provider: ref.provider });
|
|
750
|
+
if (window !== void 0) return window;
|
|
751
|
+
}
|
|
752
|
+
return void 0;
|
|
753
|
+
}
|
|
754
|
+
var AGENT_KEY_PREFIX = /^agent-[a-z0-9]+-/i;
|
|
755
|
+
function modelSlugCandidates(source, maxDrop) {
|
|
756
|
+
const raw = source?.trim();
|
|
757
|
+
if (!raw) return [];
|
|
758
|
+
const base = raw.replace(/\s+/g, "-").toLowerCase();
|
|
759
|
+
const seed = base.replace(AGENT_KEY_PREFIX, "");
|
|
760
|
+
const out = [seed];
|
|
761
|
+
if (seed !== base) out.push(base);
|
|
762
|
+
const segments = seed.split("-");
|
|
763
|
+
for (let drop = 1; drop <= maxDrop && drop < segments.length; drop++) {
|
|
764
|
+
out.push(segments.slice(drop).join("-"));
|
|
765
|
+
}
|
|
766
|
+
return [...new Set(out.filter(Boolean))];
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
// packages/agent-runtime/builtinPlatformAgentRoute.ts
|
|
770
|
+
function resolveBuiltinAgentRuntimeFields(agentKey) {
|
|
771
|
+
if (!isBuiltinPlatformAgentKey(agentKey)) return null;
|
|
772
|
+
const entry = builtinAgentCatalogEntryById(parseBuiltinPlatformAgentId(agentKey));
|
|
773
|
+
if (!entry) return null;
|
|
774
|
+
return { provider: entry.provider, model: entry.model };
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// packages/agent-runtime/builtinPlatformAgentConfigs.ts
|
|
778
|
+
function buildConfig(e2) {
|
|
779
|
+
const key = publicAgentKey(e2.id);
|
|
780
|
+
const rawRecord = {
|
|
781
|
+
dbKey: key,
|
|
782
|
+
isPublic: true,
|
|
783
|
+
provider: e2.provider,
|
|
784
|
+
model: e2.model,
|
|
785
|
+
apiSource: e2.apiSource ?? "platform",
|
|
786
|
+
useServerProxy: e2.useServerProxy ?? true
|
|
787
|
+
};
|
|
788
|
+
if (e2.hasImageOutput) rawRecord.hasImageOutput = true;
|
|
789
|
+
if (e2.imageModel) rawRecord.imageModel = e2.imageModel;
|
|
790
|
+
if (e2.imageWorkflow) rawRecord.imageWorkflow = e2.imageWorkflow;
|
|
791
|
+
if (e2.imageConfig) rawRecord.imageConfig = e2.imageConfig;
|
|
792
|
+
return {
|
|
793
|
+
key,
|
|
794
|
+
name: e2.name,
|
|
795
|
+
provider: e2.provider,
|
|
796
|
+
model: e2.model,
|
|
797
|
+
apiSource: e2.apiSource ?? "platform",
|
|
798
|
+
useServerProxy: e2.useServerProxy ?? true,
|
|
799
|
+
rawRecord
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
var BUILTIN_PLATFORM_AGENT_CONFIGS = Object.fromEntries(
|
|
803
|
+
builtinRuntimeFallbackEntries().map((e2) => [publicAgentKey(e2.id), buildConfig(e2)])
|
|
804
|
+
);
|
|
805
|
+
function resolveBuiltinPlatformAgentConfig(agentRef) {
|
|
806
|
+
return BUILTIN_PLATFORM_AGENT_CONFIGS[agentRef] ?? null;
|
|
807
|
+
}
|
|
808
|
+
function resolveBuiltinPlatformAgentRecord(agentRef) {
|
|
809
|
+
const config = resolveBuiltinPlatformAgentConfig(agentRef);
|
|
810
|
+
if (!config) return null;
|
|
811
|
+
return {
|
|
812
|
+
...config.rawRecord,
|
|
813
|
+
dbKey: agentRef,
|
|
814
|
+
...config.name ? { name: config.name } : {}
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
var BUILTIN_RUNTIME_EXTRA_OVERRIDES = {
|
|
818
|
+
[BUILTIN_NOLO_AGENT_KEY]: { reasoningEffort: "max" }
|
|
819
|
+
};
|
|
820
|
+
function applyBuiltinAgentRuntimeOverride(agentKey, record) {
|
|
821
|
+
const fields = resolveBuiltinAgentRuntimeFields(agentKey);
|
|
822
|
+
if (!fields) return record;
|
|
823
|
+
const extraFields = BUILTIN_RUNTIME_EXTRA_OVERRIDES[agentKey];
|
|
824
|
+
const extraNeedsOverride = (target) => {
|
|
825
|
+
if (extraFields == null || target == null || typeof target !== "object") {
|
|
826
|
+
return false;
|
|
827
|
+
}
|
|
828
|
+
const flat = target;
|
|
829
|
+
return Object.entries(extraFields).some(([key, value]) => flat[key] !== value);
|
|
830
|
+
};
|
|
831
|
+
const current = record;
|
|
832
|
+
const rawNeedsOverride = current.rawRecord != null && (current.rawRecord.provider !== fields.provider || current.rawRecord.model !== fields.model || extraNeedsOverride(current.rawRecord));
|
|
833
|
+
if (current.provider === fields.provider && current.model === fields.model && !rawNeedsOverride && !extraNeedsOverride(record)) {
|
|
834
|
+
return record;
|
|
835
|
+
}
|
|
836
|
+
return {
|
|
837
|
+
...record,
|
|
838
|
+
provider: fields.provider,
|
|
839
|
+
model: fields.model,
|
|
840
|
+
...extraFields ?? {},
|
|
841
|
+
...current.rawRecord ? {
|
|
842
|
+
rawRecord: {
|
|
843
|
+
...current.rawRecord,
|
|
844
|
+
provider: fields.provider,
|
|
845
|
+
model: fields.model,
|
|
846
|
+
...extraFields ?? {}
|
|
847
|
+
}
|
|
848
|
+
} : {}
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
|
|
699
852
|
// packages/render/web/ui/toastStore.ts
|
|
700
853
|
var EXIT_MS = 320;
|
|
701
854
|
var raf = typeof globalThis.requestAnimationFrame === "function" ? (cb) => globalThis.requestAnimationFrame(cb) : (cb) => {
|
|
@@ -4918,9 +5071,18 @@ var chat_locale_default = {
|
|
|
4918
5071
|
usageInputLabel: "input",
|
|
4919
5072
|
usageOutputLabel: "output",
|
|
4920
5073
|
contextWindow: "Context window",
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
5074
|
+
contextUsageKnownChip: "{{percent}}%",
|
|
5075
|
+
contextUsageEstimatedChip: "~{{percent}}%",
|
|
5076
|
+
contextUsageUnknownChip: "{{tokens}}",
|
|
5077
|
+
contextUsageUnknownChipEstimated: "\u2248{{tokens}}",
|
|
5078
|
+
contextUsageLoadingChip: "\u2014",
|
|
5079
|
+
contextUsageChipLabel: "Context occupancy {{usage}}",
|
|
5080
|
+
contextUsageKnownPanel: "{{tokens}} / {{window}} \xB7 {{percent}}%",
|
|
5081
|
+
contextUsageUnknownPanel: "{{tokens}} tokens \xB7 Window unknown",
|
|
5082
|
+
contextUsageUnknownPanelEstimated: "\u2248{{tokens}} tokens \xB7 Window unknown",
|
|
5083
|
+
contextUsageUnknownHint: "This model has no registered context window; occupancy percentage is unavailable.",
|
|
5084
|
+
contextUsageLoading: "Loading\u2026",
|
|
5085
|
+
contextUsageCompact: "Compact context",
|
|
4924
5086
|
contextOccupancyEstimated: " (estimated)",
|
|
4925
5087
|
dialogCumulative: "Conversation total",
|
|
4926
5088
|
dialogUsageTokensSection: "Session tokens",
|
|
@@ -5449,9 +5611,18 @@ var chat_locale_default = {
|
|
|
5449
5611
|
usageInputLabel: "\u8F93\u5165",
|
|
5450
5612
|
usageOutputLabel: "\u8F93\u51FA",
|
|
5451
5613
|
contextWindow: "\u4E0A\u4E0B\u6587\u7A97\u53E3",
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5614
|
+
contextUsageKnownChip: "{{percent}}%",
|
|
5615
|
+
contextUsageEstimatedChip: "~{{percent}}%",
|
|
5616
|
+
contextUsageUnknownChip: "{{tokens}}",
|
|
5617
|
+
contextUsageUnknownChipEstimated: "\u2248{{tokens}}",
|
|
5618
|
+
contextUsageLoadingChip: "\u2014",
|
|
5619
|
+
contextUsageChipLabel: "\u4E0A\u4E0B\u6587\u5360\u7528 {{usage}}",
|
|
5620
|
+
contextUsageKnownPanel: "{{tokens}} / {{window}} \xB7 {{percent}}%",
|
|
5621
|
+
contextUsageUnknownPanel: "{{tokens}} \xB7 \u7A97\u53E3\u672A\u77E5",
|
|
5622
|
+
contextUsageUnknownPanelEstimated: "\u2248{{tokens}} \xB7 \u7A97\u53E3\u672A\u77E5",
|
|
5623
|
+
contextUsageUnknownHint: "\u8BE5\u6A21\u578B\u672A\u767B\u8BB0\u4E0A\u4E0B\u6587\u7A97\u53E3\uFF0C\u65E0\u6CD5\u8BA1\u7B97\u5360\u6BD4",
|
|
5624
|
+
contextUsageLoading: "\u8BFB\u53D6\u4E2D\u2026",
|
|
5625
|
+
contextUsageCompact: "\u538B\u7F29\u4E0A\u4E0B\u6587",
|
|
5455
5626
|
contextOccupancyEstimated: "\uFF08\u4F30\u7B97\uFF09",
|
|
5456
5627
|
dialogCumulative: "\u672C\u5BF9\u8BDD\u7D2F\u8BA1",
|
|
5457
5628
|
dialogUsageTokensSection: "\u672C\u4F1A\u8BDD token",
|
|
@@ -5969,9 +6140,18 @@ var chat_locale_default = {
|
|
|
5969
6140
|
usageInputLabel: "\u8F38\u5165",
|
|
5970
6141
|
usageOutputLabel: "\u8F38\u51FA",
|
|
5971
6142
|
contextWindow: "\u4E0A\u4E0B\u6587\u8996\u7A97",
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
6143
|
+
contextUsageKnownChip: "{{percent}}%",
|
|
6144
|
+
contextUsageEstimatedChip: "~{{percent}}%",
|
|
6145
|
+
contextUsageUnknownChip: "{{tokens}}",
|
|
6146
|
+
contextUsageUnknownChipEstimated: "\u2248{{tokens}}",
|
|
6147
|
+
contextUsageLoadingChip: "\u2014",
|
|
6148
|
+
contextUsageChipLabel: "\u4E0A\u4E0B\u6587\u4F54\u7528 {{usage}}",
|
|
6149
|
+
contextUsageKnownPanel: "{{tokens}} / {{window}} \xB7 {{percent}}%",
|
|
6150
|
+
contextUsageUnknownPanel: "{{tokens}} \xB7 \u8996\u7A97\u672A\u77E5",
|
|
6151
|
+
contextUsageUnknownPanelEstimated: "\u2248{{tokens}} \xB7 \u8996\u7A97\u672A\u77E5",
|
|
6152
|
+
contextUsageUnknownHint: "\u8A72\u6A21\u578B\u672A\u767B\u8A18\u4E0A\u4E0B\u6587\u8996\u7A97\uFF0C\u7121\u6CD5\u8A08\u7B97\u4F54\u6BD4",
|
|
6153
|
+
contextUsageLoading: "\u8B80\u53D6\u4E2D\u2026",
|
|
6154
|
+
contextUsageCompact: "\u58D3\u7E2E\u4E0A\u4E0B\u6587",
|
|
5975
6155
|
contextOccupancyEstimated: "\uFF08\u4F30\u7B97\uFF09",
|
|
5976
6156
|
dialogCumulative: "\u672C\u5C0D\u8A71\u7D2F\u8A08",
|
|
5977
6157
|
dialogUsageTokensSection: "\u672C\u6703\u8A71 token",
|
|
@@ -6488,9 +6668,18 @@ var chat_locale_default = {
|
|
|
6488
6668
|
usageInputLabel: "\u5165\u529B",
|
|
6489
6669
|
usageOutputLabel: "\u51FA\u529B",
|
|
6490
6670
|
contextWindow: "\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u30A6\u30A3\u30F3\u30C9\u30A6",
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6671
|
+
contextUsageKnownChip: "{{percent}}%",
|
|
6672
|
+
contextUsageEstimatedChip: "~{{percent}}%",
|
|
6673
|
+
contextUsageUnknownChip: "{{tokens}}",
|
|
6674
|
+
contextUsageUnknownChipEstimated: "\u2248{{tokens}}",
|
|
6675
|
+
contextUsageLoadingChip: "\u2014",
|
|
6676
|
+
contextUsageChipLabel: "\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u4F7F\u7528\u91CF {{usage}}",
|
|
6677
|
+
contextUsageKnownPanel: "{{tokens}} / {{window}} \xB7 {{percent}}%",
|
|
6678
|
+
contextUsageUnknownPanel: "{{tokens}} \xB7 \u30A6\u30A3\u30F3\u30C9\u30A6\u4E0D\u660E",
|
|
6679
|
+
contextUsageUnknownPanelEstimated: "\u2248{{tokens}} \xB7 \u30A6\u30A3\u30F3\u30C9\u30A6\u4E0D\u660E",
|
|
6680
|
+
contextUsageUnknownHint: "\u3053\u306E\u30E2\u30C7\u30EB\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u30A6\u30A3\u30F3\u30C9\u30A6\u306F\u672A\u767B\u9332\u306E\u305F\u3081\u3001\u4F7F\u7528\u7387\u3092\u8A08\u7B97\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
6681
|
+
contextUsageLoading: "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
6682
|
+
contextUsageCompact: "\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u5727\u7E2E",
|
|
6494
6683
|
contextOccupancyEstimated: "\uFF08\u63A8\u5B9A\uFF09",
|
|
6495
6684
|
dialogCumulative: "\u3053\u306E\u4F1A\u8A71\u306E\u7D2F\u8A08",
|
|
6496
6685
|
dialogUsageTokensSection: "\u30BB\u30C3\u30B7\u30E7\u30F3 token",
|
|
@@ -8257,12 +8446,16 @@ var updateDialogSummaryAction = async (args, thunkApi) => {
|
|
|
8257
8446
|
const dialogConfig = selectById(state, dialogKey);
|
|
8258
8447
|
if (!dialogConfig) return;
|
|
8259
8448
|
let contextWindow = DEFAULT_CONTEXT_WINDOW;
|
|
8260
|
-
|
|
8261
|
-
const agentId = dialogConfig
|
|
8262
|
-
const agent = selectById(state, agentId);
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8449
|
+
{
|
|
8450
|
+
const agentId = getActiveDialogAgentId(dialogConfig);
|
|
8451
|
+
const agent = agentId ? selectById(state, agentId) : void 0;
|
|
8452
|
+
const resolvedAgent = agent && agentId ? applyBuiltinAgentRuntimeOverride(agentId, agent) : agent;
|
|
8453
|
+
contextWindow = resolveAgentContextWindow({
|
|
8454
|
+
model: resolvedAgent?.model,
|
|
8455
|
+
provider: resolvedAgent?.provider,
|
|
8456
|
+
agentKey: agentId,
|
|
8457
|
+
agentName: resolvedAgent?.name
|
|
8458
|
+
}) ?? DEFAULT_CONTEXT_WINDOW;
|
|
8266
8459
|
}
|
|
8267
8460
|
const allMsgs = preFetchedMessages || getMessagesForDialogFromState(state, dialogId);
|
|
8268
8461
|
const plan = planCompression({
|
|
@@ -8918,89 +9111,6 @@ var buildPersonalizationDialogPolicyContext = () => [
|
|
|
8918
9111
|
"\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"
|
|
8919
9112
|
].join("\n");
|
|
8920
9113
|
|
|
8921
|
-
// packages/agent-runtime/builtinPlatformAgentRoute.ts
|
|
8922
|
-
function resolveBuiltinAgentRuntimeFields(agentKey) {
|
|
8923
|
-
if (!isBuiltinPlatformAgentKey(agentKey)) return null;
|
|
8924
|
-
const entry = builtinAgentCatalogEntryById(parseBuiltinPlatformAgentId(agentKey));
|
|
8925
|
-
if (!entry) return null;
|
|
8926
|
-
return { provider: entry.provider, model: entry.model };
|
|
8927
|
-
}
|
|
8928
|
-
|
|
8929
|
-
// packages/agent-runtime/builtinPlatformAgentConfigs.ts
|
|
8930
|
-
function buildConfig(e2) {
|
|
8931
|
-
const key = publicAgentKey(e2.id);
|
|
8932
|
-
const rawRecord = {
|
|
8933
|
-
dbKey: key,
|
|
8934
|
-
isPublic: true,
|
|
8935
|
-
provider: e2.provider,
|
|
8936
|
-
model: e2.model,
|
|
8937
|
-
apiSource: e2.apiSource ?? "platform",
|
|
8938
|
-
useServerProxy: e2.useServerProxy ?? true
|
|
8939
|
-
};
|
|
8940
|
-
if (e2.hasImageOutput) rawRecord.hasImageOutput = true;
|
|
8941
|
-
if (e2.imageModel) rawRecord.imageModel = e2.imageModel;
|
|
8942
|
-
if (e2.imageWorkflow) rawRecord.imageWorkflow = e2.imageWorkflow;
|
|
8943
|
-
if (e2.imageConfig) rawRecord.imageConfig = e2.imageConfig;
|
|
8944
|
-
return {
|
|
8945
|
-
key,
|
|
8946
|
-
name: e2.name,
|
|
8947
|
-
provider: e2.provider,
|
|
8948
|
-
model: e2.model,
|
|
8949
|
-
apiSource: e2.apiSource ?? "platform",
|
|
8950
|
-
useServerProxy: e2.useServerProxy ?? true,
|
|
8951
|
-
rawRecord
|
|
8952
|
-
};
|
|
8953
|
-
}
|
|
8954
|
-
var BUILTIN_PLATFORM_AGENT_CONFIGS = Object.fromEntries(
|
|
8955
|
-
builtinRuntimeFallbackEntries().map((e2) => [publicAgentKey(e2.id), buildConfig(e2)])
|
|
8956
|
-
);
|
|
8957
|
-
function resolveBuiltinPlatformAgentConfig(agentRef) {
|
|
8958
|
-
return BUILTIN_PLATFORM_AGENT_CONFIGS[agentRef] ?? null;
|
|
8959
|
-
}
|
|
8960
|
-
function resolveBuiltinPlatformAgentRecord(agentRef) {
|
|
8961
|
-
const config = resolveBuiltinPlatformAgentConfig(agentRef);
|
|
8962
|
-
if (!config) return null;
|
|
8963
|
-
return {
|
|
8964
|
-
...config.rawRecord,
|
|
8965
|
-
dbKey: agentRef,
|
|
8966
|
-
...config.name ? { name: config.name } : {}
|
|
8967
|
-
};
|
|
8968
|
-
}
|
|
8969
|
-
var BUILTIN_RUNTIME_EXTRA_OVERRIDES = {
|
|
8970
|
-
[BUILTIN_NOLO_AGENT_KEY]: { reasoningEffort: "max" }
|
|
8971
|
-
};
|
|
8972
|
-
function applyBuiltinAgentRuntimeOverride(agentKey, record) {
|
|
8973
|
-
const fields = resolveBuiltinAgentRuntimeFields(agentKey);
|
|
8974
|
-
if (!fields) return record;
|
|
8975
|
-
const extraFields = BUILTIN_RUNTIME_EXTRA_OVERRIDES[agentKey];
|
|
8976
|
-
const extraNeedsOverride = (target) => {
|
|
8977
|
-
if (extraFields == null || target == null || typeof target !== "object") {
|
|
8978
|
-
return false;
|
|
8979
|
-
}
|
|
8980
|
-
const flat = target;
|
|
8981
|
-
return Object.entries(extraFields).some(([key, value]) => flat[key] !== value);
|
|
8982
|
-
};
|
|
8983
|
-
const current = record;
|
|
8984
|
-
const rawNeedsOverride = current.rawRecord != null && (current.rawRecord.provider !== fields.provider || current.rawRecord.model !== fields.model || extraNeedsOverride(current.rawRecord));
|
|
8985
|
-
if (current.provider === fields.provider && current.model === fields.model && !rawNeedsOverride && !extraNeedsOverride(record)) {
|
|
8986
|
-
return record;
|
|
8987
|
-
}
|
|
8988
|
-
return {
|
|
8989
|
-
...record,
|
|
8990
|
-
provider: fields.provider,
|
|
8991
|
-
model: fields.model,
|
|
8992
|
-
...extraFields ?? {},
|
|
8993
|
-
...current.rawRecord ? {
|
|
8994
|
-
rawRecord: {
|
|
8995
|
-
...current.rawRecord,
|
|
8996
|
-
provider: fields.provider,
|
|
8997
|
-
model: fields.model,
|
|
8998
|
-
...extraFields ?? {}
|
|
8999
|
-
}
|
|
9000
|
-
} : {}
|
|
9001
|
-
};
|
|
9002
|
-
}
|
|
9003
|
-
|
|
9004
9114
|
// packages/chat/dialog/dialogAgentPolicy.ts
|
|
9005
9115
|
var resolveDialogAgentMode = (dialog) => {
|
|
9006
9116
|
if (dialog?.agentMode === "auto") return "auto";
|
|
@@ -10952,7 +11062,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10952
11062
|
runtimeOptions: args.runtimeOptions
|
|
10953
11063
|
});
|
|
10954
11064
|
if (agentKeyToUse) {
|
|
10955
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
11065
|
+
const { streamAgentChatTurn } = await import("./agentSlice-YT3VCCEW.js");
|
|
10956
11066
|
await dispatch(
|
|
10957
11067
|
streamAgentChatTurn({
|
|
10958
11068
|
agentKey: agentKeyToUse,
|
|
@@ -13707,7 +13817,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
13707
13817
|
metadataReadFailures
|
|
13708
13818
|
});
|
|
13709
13819
|
if (!plan.deleteCandidates.length) return plan;
|
|
13710
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
13820
|
+
const { deleteFileAction } = await import("./deleteFile-YM6NDPAR.js");
|
|
13711
13821
|
for (const candidate of plan.deleteCandidates) {
|
|
13712
13822
|
if (candidate.fileDbKey) {
|
|
13713
13823
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -13769,7 +13879,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13769
13879
|
}
|
|
13770
13880
|
if (isCurrentDialog) {
|
|
13771
13881
|
await thunkApi.dispatch(resetMsgs());
|
|
13772
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13882
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-GQMTD4HR.js");
|
|
13773
13883
|
dispatch(clearPendingAttachments2());
|
|
13774
13884
|
}
|
|
13775
13885
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13777,39 +13887,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13777
13887
|
|
|
13778
13888
|
// packages/chat/dialog/dialogSlice.ts
|
|
13779
13889
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13780
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13890
|
+
const { createDialogAction } = await import("./createDialogAction-NJ2LE7KC.js");
|
|
13781
13891
|
return createDialogAction(args, thunkApi);
|
|
13782
13892
|
};
|
|
13783
13893
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13784
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13894
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-5UWBLR2N.js");
|
|
13785
13895
|
return createAgentAutomationAction(args, thunkApi);
|
|
13786
13896
|
};
|
|
13787
13897
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13788
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13898
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-AGAYHWS7.js");
|
|
13789
13899
|
return updateDialogTitleAction(args, thunkApi);
|
|
13790
13900
|
};
|
|
13791
13901
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
13792
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
13902
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-5WZX5CAY.js");
|
|
13793
13903
|
return addDialogAgentAction(args, thunkApi);
|
|
13794
13904
|
};
|
|
13795
13905
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
13796
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
13906
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-RMVRILLK.js");
|
|
13797
13907
|
return removeDialogAgentAction(args, thunkApi);
|
|
13798
13908
|
};
|
|
13799
13909
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
13800
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
13910
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-X52JQGTJ.js");
|
|
13801
13911
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
13802
13912
|
};
|
|
13803
13913
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
13804
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
13914
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-ZJ5CGU7J.js");
|
|
13805
13915
|
return switchDialogAgentAction(args, thunkApi);
|
|
13806
13916
|
};
|
|
13807
13917
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
13808
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
13918
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-L3V7JTMG.js");
|
|
13809
13919
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13810
13920
|
};
|
|
13811
13921
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13812
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13922
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-EQ3U6K5N.js");
|
|
13813
13923
|
return handleSendMessageAction(args, thunkApi);
|
|
13814
13924
|
};
|
|
13815
13925
|
function clearDialogState() {
|
|
@@ -13822,7 +13932,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13822
13932
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13823
13933
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13824
13934
|
try {
|
|
13825
|
-
const { createDocState } = await import("./docStore-
|
|
13935
|
+
const { createDocState } = await import("./docStore-PM5PYKPZ.js");
|
|
13826
13936
|
const pageKey = await createDocState(
|
|
13827
13937
|
{ slateData, title },
|
|
13828
13938
|
{ dispatch, getState }
|
|
@@ -13992,18 +14102,23 @@ export {
|
|
|
13992
14102
|
uiAskChoiceFunc,
|
|
13993
14103
|
parseUiAskChoiceContent,
|
|
13994
14104
|
API_REPORTED_COST_MULTIPLIER,
|
|
14105
|
+
estimateMessagesTokens,
|
|
14106
|
+
historyTokensBeforeLatestAssistant,
|
|
14107
|
+
resolveOccupancy,
|
|
14108
|
+
resolveOccupancyWindow,
|
|
14109
|
+
resolveAgentContextWindow,
|
|
13995
14110
|
runtime_default,
|
|
13996
14111
|
toolResultNeedsUserConfirmation,
|
|
13997
14112
|
isAssistantToolStub,
|
|
13998
14113
|
fetchAndCacheMessages,
|
|
14114
|
+
resolveBuiltinPlatformAgentConfig,
|
|
14115
|
+
resolveBuiltinPlatformAgentRecord,
|
|
14116
|
+
applyBuiltinAgentRuntimeOverride,
|
|
13999
14117
|
toast,
|
|
14000
14118
|
buildDatabaseFileContentUrl,
|
|
14001
14119
|
normalizeAppRouteId,
|
|
14002
14120
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
14003
14121
|
buildPersonalizationDialogPolicyContext,
|
|
14004
|
-
resolveBuiltinPlatformAgentConfig,
|
|
14005
|
-
resolveBuiltinPlatformAgentRecord,
|
|
14006
|
-
applyBuiltinAgentRuntimeOverride,
|
|
14007
14122
|
resolveDialogRuntimeAgentKey,
|
|
14008
14123
|
resolveHandleSendMessageContext,
|
|
14009
14124
|
estimateMissingUsage,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OLVOR45M.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HW7EBEC5.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2ZYCNT2O.js";
|
|
22
22
|
import {
|
|
23
23
|
classifyApiError,
|
|
24
24
|
classifyGenerationError,
|
|
25
25
|
extractErrorDiagnostics
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QZIOZDM6.js";
|
|
27
27
|
import {
|
|
28
28
|
createSSEParser,
|
|
29
29
|
createToolRunId,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
toolRunSetPending,
|
|
33
33
|
toolRunStarted,
|
|
34
34
|
toolRunSucceeded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FCUKCVKN.js";
|
|
36
36
|
import {
|
|
37
37
|
getPublicImageAgentMode
|
|
38
38
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
messageStreaming,
|
|
43
43
|
toolResultNeedsUserConfirmation,
|
|
44
44
|
updateToolMessage
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-F5WASHQA.js";
|
|
46
46
|
import {
|
|
47
47
|
streamAgentChatTurn
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DT7EWFTY.js";
|
|
49
49
|
import {
|
|
50
50
|
getCurrentSpaceId
|
|
51
51
|
} from "./chunk-ZJ7UHBJS.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-32ZKZET7.js";
|
|
60
60
|
import {
|
|
61
61
|
write
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-CDLP56BS.js";
|
|
63
63
|
import {
|
|
64
64
|
createAsyncThunk
|
|
65
65
|
} from "./chunk-WRCZXJ4N.js";
|
|
@@ -85,13 +85,13 @@ import {
|
|
|
85
85
|
} from "./chunk-56GBUMO5.js";
|
|
86
86
|
import {
|
|
87
87
|
normalizeChatCompletionsBodyForProvider
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-4L4K6YR7.js";
|
|
89
89
|
import {
|
|
90
90
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-F3SOW2EU.js";
|
|
92
92
|
import {
|
|
93
93
|
getModelInfo
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-QA2C5NKI.js";
|
|
95
95
|
import {
|
|
96
96
|
isAbortError
|
|
97
97
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
} from "./chunk-5EMSBTQ6.js";
|
|
106
106
|
import {
|
|
107
107
|
getApiEndpoint
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-6EQD4AQL.js";
|
|
109
109
|
import {
|
|
110
110
|
isRecord
|
|
111
111
|
} from "./chunk-KUG52IAP.js";
|