nolo-cli 0.8.0-alpha.21 → 0.8.0-alpha.24
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-42U3VOVZ.js → _executeModel-2ZAPHFOX.js} +46 -43
- package/{action-TLI3V62L.js → action-QM2ONPYZ.js} +9 -9
- package/{addContentAction-57RSIIMR.js → addContentAction-UXY3GM53.js} +8 -8
- package/{addDialogAgentAction-G3VWEA6E.js → addDialogAgentAction-MUBYOG65.js} +10 -10
- package/{agentDeleteCommand-5DD2IM3J.js → agentDeleteCommand-5TFSII4Z.js} +28 -27
- package/{agentEmailCommands-6FACJBU4.js → agentEmailCommands-XMXWGUMZ.js} +62 -58
- package/{agentListCommands-I6KZYCIG.js → agentListCommands-OWEFQEY4.js} +119 -33
- package/{agentMachineCommands-VKLIGMZA.js → agentMachineCommands-DGHYBBFC.js} +27 -26
- package/{agentPullCommand-O2MTUAFR.js → agentPullCommand-N6UWRTVL.js} +3 -3
- package/{agentRecordCommands-7TZICYDT.js → agentRecordCommands-I433EE5F.js} +53 -49
- package/{agentRunCommand-L4OM23KV.js → agentRunCommand-UQSX3IGW.js} +57 -52
- package/{agentRunControl-K4VKNEHF.js → agentRunControl-S3G62M6C.js} +3 -3
- package/{agentRuntimeLocal-ZYEIPTY4.js → agentRuntimeLocal-73SVOC5U.js} +14 -12
- package/{agentSlice-BX7GXSNO.js → agentSlice-JQCS4LR3.js} +9 -9
- package/{authCommand-EB5JSOX5.js → authCommand-B6P2XYLN.js} +11 -11
- package/{authCommands-XPEHTKSM.js → authCommands-4YKA4GTU.js} +7 -7
- package/{chunk-AS4PVWA4.js → chunk-2CVZSC5L.js} +1 -1
- package/{chunk-JRKKFRAV.js → chunk-3HPUUWOR.js} +58 -8
- package/{chunk-5KLGBAAR.js → chunk-3KGTFX3T.js} +2 -13
- package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
- package/chunk-6QFNUK2G.js +144 -0
- package/{chunk-4QEWT7KD.js → chunk-AISLHYDB.js} +367 -85
- package/{chunk-2FTTDCD4.js → chunk-AMJ7LA5D.js} +1 -1
- package/{chunk-I6XMPTMR.js → chunk-BFDWXLFF.js} +2 -2
- package/{chunk-RL776AGR.js → chunk-BKGNXJAM.js} +1 -1
- package/{chunk-RCSJFQPB.js → chunk-BQECZ3Q4.js} +361 -90
- package/{chunk-VVX233PH.js → chunk-BT37DVDA.js} +9 -9
- package/{chunk-ENOG22KJ.js → chunk-BT57QC5K.js} +18 -20
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-O2ZNTTET.js → chunk-C4DZRHFJ.js} +24 -15
- package/{chunk-4XENYTF5.js → chunk-DS3VC4EA.js} +3 -3
- package/{chunk-N54XAP77.js → chunk-FVVST32H.js} +1 -1
- package/{chunk-P3PKED2I.js → chunk-FZ2G3I4B.js} +11 -13
- package/{chunk-AGFH73SK.js → chunk-G7KM6BBZ.js} +1 -1
- package/{chunk-2ECQG4YX.js → chunk-GROGNZOA.js} +264 -161
- package/chunk-IOQIOZNI.js +42 -0
- package/{chunk-AL2KDGR2.js → chunk-IPA2WQGY.js} +201 -98
- package/{chunk-7DAJ4AI4.js → chunk-IYMGQ3TN.js} +9 -2
- package/{chunk-CKOJQDKR.js → chunk-JEMATI63.js} +1 -1
- package/{chunk-7U44LYTR.js → chunk-JTINRTBT.js} +1 -1
- package/{chunk-4O3CARJ4.js → chunk-KTHLAJEY.js} +1 -1
- package/{chunk-URUUZLPA.js → chunk-L3KWEH3V.js} +8 -8
- package/{chunk-XBUBEFNX.js → chunk-L76QNLGU.js} +1 -1
- package/{chunk-UB6SN4NJ.js → chunk-LE6JAIXE.js} +6 -6
- package/{chunk-2JCXITPK.js → chunk-LRKEOCWY.js} +15 -15
- package/{chunk-5EFXE3O7.js → chunk-LTH6AVG7.js} +3 -3
- package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-6KHNO3SK.js → chunk-P2SPC3FT.js} +27 -23
- package/{chunk-4IJYA27C.js → chunk-PXZAAB4L.js} +4 -4
- package/{chunk-VUW5FBDB.js → chunk-Q7S2ORXX.js} +9 -9
- package/{chunk-C3RUNRHT.js → chunk-QWM7YWVT.js} +1 -1
- package/{chunk-25LCXTML.js → chunk-RQPZX6KP.js} +2 -2
- package/chunk-S3UTETIC.js +4885 -0
- package/{chunk-SDJDLO5W.js → chunk-SBVUZC2E.js} +5 -5
- package/{chunk-VX3SXJ3N.js → chunk-UBSKX3LP.js} +6 -6
- package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
- package/{chunk-DSZUWUYB.js → chunk-VBKJTOAW.js} +1 -1
- package/{chunk-FVYY6MCS.js → chunk-VUEXKW6U.js} +17 -17
- package/{chunk-7KCUSYT2.js → chunk-WKQGZJVI.js} +7 -7
- package/{chunk-GU3PEVGZ.js → chunk-WM7P5OWZ.js} +2639 -1579
- package/{chunk-7GNGZRLZ.js → chunk-WTBWWBSF.js} +150 -78
- package/{chunk-FSO5B7GH.js → chunk-WVS3GX3B.js} +2 -2
- package/chunk-Z3NEXVYE.js +33 -0
- package/{createAgentAutomationAction-RJF3N2QY.js → createAgentAutomationAction-GXZNLJZK.js} +26 -24
- package/{createDialogAction-DRSPS6CE.js → createDialogAction-KLW42ZGF.js} +26 -24
- package/{createPageAction-6B2WMNO3.js → createPageAction-IBJHE6MH.js} +26 -24
- package/{dbSlice-Q3TM2FJV.js → dbSlice-R5EJKZBW.js} +7 -7
- package/{deleteFile-OW53A6BX.js → deleteFile-WPWVZE4B.js} +5 -5
- package/{dialogCommands-4IX4XIZE.js → dialogCommands-7O5PUZRU.js} +23 -22
- package/{dialogSlice-3M7KX2TX.js → dialogSlice-GGV7PF53.js} +25 -23
- package/{docCreateCommands-SIL3NPGT.js → docCreateCommands-7ZO2NQQF.js} +22 -21
- package/{docDeleteCommands-7IOMLUS4.js → docDeleteCommands-YKIXZYBR.js} +23 -22
- package/{docReadCommands-FNFXUA5L.js → docReadCommands-5UDONBUL.js} +22 -21
- package/{docStore-SV7E34D4.js → docStore-VDWTATFH.js} +25 -23
- package/{docUpdateCommands-X2HNDVUC.js → docUpdateCommands-EPZIIQMY.js} +22 -21
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
- package/{handleSendMessageAction-JYETO5RZ.js → handleSendMessageAction-MMATC5V5.js} +30 -28
- package/index.js +74 -74
- package/{localDialogRead-2VRI24F4.js → localDialogRead-YSKFFRTT.js} +1 -1
- package/{machineCommands-RIO3RP5Q.js → machineCommands-PTHPKSIZ.js} +59 -55
- package/{machineWsRunDispatch-W7UYLGB5.js → machineWsRunDispatch-M5L2NVWJ.js} +51 -47
- package/{memoryCommands-O4MIPIWQ.js → memoryCommands-HG4WKTU7.js} +2 -2
- package/{models-4OPOOLFS.js → models-H524GH3U.js} +3 -2
- package/package.json +1 -1
- package/{read-GW7ZEI23.js → read-5ZMY7FKP.js} +5 -5
- package/{readDocTool-HUFU6OCT.js → readDocTool-2NXDK32S.js} +1 -1
- package/{readlineWorkspace-27JR7WPW.js → readlineWorkspace-4NXMEOHP.js} +835 -622
- package/{removeDialogAgentAction-CXKR4NJI.js → removeDialogAgentAction-KOLQ2R5W.js} +13 -12
- package/{runAgentClientLoop-HZFAPJHS.js → runAgentClientLoop-FGUYNGSA.js} +45 -42
- package/{runtimeDoctorCommands-LRHLPDRC.js → runtimeDoctorCommands-UWR5UDSM.js} +5 -5
- package/{setDialogExtraReferencesAction-6RKUSXHX.js → setDialogExtraReferencesAction-OMTEO7X6.js} +10 -10
- package/{setPrimaryDialogAgentAction-T3UTBEFG.js → setPrimaryDialogAgentAction-DOCIS6V4.js} +13 -12
- package/{settingSlice-IVKXJXMG.js → settingSlice-UWZJYDOA.js} +8 -8
- package/{spaceCommands-E7VOF4LO.js → spaceCommands-S3EB6TOS.js} +29 -28
- package/{spaceSlice-TSVROA5U.js → spaceSlice-RG2GSV7K.js} +24 -22
- package/{streamAgentChatTurn-3C5RQZJF.js → streamAgentChatTurn-X576C23M.js} +209 -86
- package/{tableCommands-O7O2LBEG.js → tableCommands-M3DJUETS.js} +10 -10
- package/{toolApiClient-QI3YBNWB.js → toolApiClient-C7P7YSE4.js} +2 -2
- package/{tools-EQDEKR6N.js → tools-HURZ2N4O.js} +33 -30
- package/{tuiSummaryLlmCaller-RV3THLZF.js → tuiSummaryLlmCaller-DG2LBTBX.js} +8 -6
- package/{updateCommands-VOSPKXFF.js → updateCommands-TC5SX42Y.js} +3 -3
- package/{updateDialogTitleAction-3XV7VWSZ.js → updateDialogTitleAction-62LVIAUZ.js} +28 -26
- package/chunk-BBYVOSU2.js +0 -792
- package/chunk-DCOA4QSN.js +0 -105
- package/{chunk-DZ3XJVET.js → chunk-3QAF2LTL.js} +3 -3
- package/{chunk-EHLHSX7R.js → chunk-5MMZUWSG.js} +3 -3
- package/{chunk-ISNCLGUZ.js → chunk-AVMJVOQY.js} +3 -3
- package/{chunk-UTLZINAP.js → chunk-DVRHHFEA.js} +10 -10
- package/{chunk-4CQLVGRV.js → chunk-ID4G2MAR.js} +3 -3
- package/{chunk-5MIDPSSK.js → chunk-JK7VW2FN.js} +3 -3
- package/{chunk-TILFE6LV.js → chunk-YOCHZD7D.js} +3 -3
- package/{db-HCJ5PRB5.js → db-6QED3ZVO.js} +3 -3
- package/{understanding-3CUQQ6SV.js → understanding-ZOESBLF3.js} +3 -3
|
@@ -4,13 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
buildStaticUserPolicyContext,
|
|
6
6
|
resolveSpaceContextPreloadPlan
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
getFinalPrice,
|
|
10
|
-
getModelPricing,
|
|
11
|
-
getPrices,
|
|
12
|
-
hasExplicitAgentPricing
|
|
13
|
-
} from "./chunk-YPRZSPF3.js";
|
|
7
|
+
} from "./chunk-KTHLAJEY.js";
|
|
14
8
|
import {
|
|
15
9
|
buildCliPrompt
|
|
16
10
|
} from "./chunk-ATNTHIZI.js";
|
|
@@ -26,23 +20,32 @@ import {
|
|
|
26
20
|
sanitizeOutboundResponsesInput,
|
|
27
21
|
sendOpenAICompletionsRequest,
|
|
28
22
|
updateTotalUsage
|
|
29
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P2SPC3FT.js";
|
|
30
24
|
import "./chunk-JEXVIMYZ.js";
|
|
31
25
|
import {
|
|
32
26
|
prepareTools
|
|
33
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WVS3GX3B.js";
|
|
34
28
|
import {
|
|
35
29
|
fetchReferenceContents,
|
|
36
30
|
generateRequestBody,
|
|
31
|
+
isResponsesConversationStateRejection,
|
|
37
32
|
mergeReferences,
|
|
38
33
|
performFetchRequest,
|
|
39
34
|
performServerProxyFetchWithRetry,
|
|
40
35
|
resolveAgentCallPlan,
|
|
41
36
|
resolveClientWire,
|
|
42
37
|
resolveReferenceAssets,
|
|
43
|
-
resolveToolsFromKeys
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
resolveToolsFromKeys,
|
|
39
|
+
selectResponsesConversationState,
|
|
40
|
+
updateResponsesConversationState
|
|
41
|
+
} from "./chunk-WTBWWBSF.js";
|
|
42
|
+
import "./chunk-QWM7YWVT.js";
|
|
43
|
+
import {
|
|
44
|
+
getFinalPrice,
|
|
45
|
+
getModelPricing,
|
|
46
|
+
getPrices,
|
|
47
|
+
hasExplicitAgentPricing
|
|
48
|
+
} from "./chunk-OCDEWRE2.js";
|
|
46
49
|
import {
|
|
47
50
|
getPublicImageAgentDefaultProfile,
|
|
48
51
|
getPublicImageAgentMode
|
|
@@ -55,10 +58,11 @@ import {
|
|
|
55
58
|
expandEnabledPacks,
|
|
56
59
|
getAllToolRuns,
|
|
57
60
|
shouldBlockForGptPro
|
|
58
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IPA2WQGY.js";
|
|
59
62
|
import "./chunk-GAKEBQD6.js";
|
|
63
|
+
import "./chunk-6QFNUK2G.js";
|
|
60
64
|
import "./chunk-KQHGZWSV.js";
|
|
61
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-2CVZSC5L.js";
|
|
62
66
|
import "./chunk-3LY4F7SV.js";
|
|
63
67
|
import {
|
|
64
68
|
extractCategorizedMentions
|
|
@@ -67,16 +71,15 @@ import "./chunk-63W5N6P3.js";
|
|
|
67
71
|
import "./chunk-VF4K2QE6.js";
|
|
68
72
|
import {
|
|
69
73
|
getDocState
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-LE6JAIXE.js";
|
|
75
|
+
import "./chunk-BT57QC5K.js";
|
|
72
76
|
import "./chunk-VC6OZXO5.js";
|
|
73
|
-
import "./chunk-25LCXTML.js";
|
|
74
|
-
import "./chunk-XENYHRUE.js";
|
|
75
77
|
import {
|
|
76
78
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
77
79
|
addToolMessage,
|
|
78
80
|
addUserMessage,
|
|
79
81
|
buildPersonalizationDialogPolicyContext,
|
|
82
|
+
estimateMissingUsage,
|
|
80
83
|
estimateTokenCount,
|
|
81
84
|
extractReferenceKeysFromMessage,
|
|
82
85
|
finalizeTransientMessageOnError,
|
|
@@ -94,24 +97,46 @@ import {
|
|
|
94
97
|
selectCurrentUserBalance,
|
|
95
98
|
selectDialogConfigByKey,
|
|
96
99
|
selectTableRows,
|
|
97
|
-
selectViewMode
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
selectViewMode,
|
|
101
|
+
updateTokens
|
|
102
|
+
} from "./chunk-GROGNZOA.js";
|
|
103
|
+
import "./chunk-V2J635L5.js";
|
|
100
104
|
import "./chunk-MRC4Q34M.js";
|
|
101
105
|
import "./chunk-MTU75CZ2.js";
|
|
102
106
|
import "./chunk-CWMSB67P.js";
|
|
103
|
-
import "./chunk-
|
|
107
|
+
import "./chunk-Q7S2ORXX.js";
|
|
104
108
|
import {
|
|
105
109
|
createCliChatTurnStream,
|
|
106
110
|
getCliChatSession,
|
|
107
111
|
startCliChatSession
|
|
108
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-LTH6AVG7.js";
|
|
109
113
|
import "./chunk-Z4NR32XR.js";
|
|
110
114
|
import "./chunk-M76ECQRD.js";
|
|
115
|
+
import "./chunk-RQPZX6KP.js";
|
|
116
|
+
import {
|
|
117
|
+
selectAiRecentContentLimit,
|
|
118
|
+
selectCurrentServer,
|
|
119
|
+
selectGlobalPrompt,
|
|
120
|
+
selectKnowledgeCaptureLevel,
|
|
121
|
+
selectMaxExecutionTime,
|
|
122
|
+
selectSpaceContextLevel,
|
|
123
|
+
selectUserTonePreset
|
|
124
|
+
} from "./chunk-UBSKX3LP.js";
|
|
125
|
+
import "./chunk-Y5GCAMGP.js";
|
|
111
126
|
import "./chunk-SOTZ6RDN.js";
|
|
112
|
-
import "./chunk-
|
|
127
|
+
import "./chunk-BFDWXLFF.js";
|
|
113
128
|
import "./chunk-UAD2WT54.js";
|
|
114
|
-
import
|
|
129
|
+
import {
|
|
130
|
+
patch,
|
|
131
|
+
read,
|
|
132
|
+
selectById,
|
|
133
|
+
write
|
|
134
|
+
} from "./chunk-L3KWEH3V.js";
|
|
135
|
+
import "./chunk-AZPCASRE.js";
|
|
136
|
+
import "./chunk-IOQIOZNI.js";
|
|
137
|
+
import "./chunk-Z3NEXVYE.js";
|
|
138
|
+
import "./chunk-XENYHRUE.js";
|
|
139
|
+
import "./chunk-JTINRTBT.js";
|
|
115
140
|
import {
|
|
116
141
|
buildLinkedSpacesSection,
|
|
117
142
|
buildSpaceContextLayer
|
|
@@ -122,34 +147,48 @@ import {
|
|
|
122
147
|
assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
|
|
123
148
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
124
149
|
buildDesktopAgentRuntimeDialogHistorySnapshot
|
|
125
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-YOCHZD7D.js";
|
|
126
151
|
import {
|
|
127
152
|
resolveAgentImageInputSupport
|
|
128
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-AISLHYDB.js";
|
|
129
154
|
import "./chunk-OPZYGHUC.js";
|
|
130
|
-
import "./chunk-
|
|
155
|
+
import "./chunk-G7KM6BBZ.js";
|
|
131
156
|
import {
|
|
132
157
|
extractImagePartsFromResponseOutput,
|
|
133
158
|
extractTextFromResponseOutput,
|
|
134
159
|
toResponsesTools
|
|
135
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-3HPUUWOR.js";
|
|
136
161
|
import {
|
|
137
162
|
canonicalizeToolNames,
|
|
138
163
|
prioritizeToolNames,
|
|
139
164
|
resolveRuntimeToolSurfaceForAgent
|
|
140
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-FZ2G3I4B.js";
|
|
141
166
|
import "./chunk-5MMAK75Q.js";
|
|
142
167
|
import {
|
|
143
168
|
getApiEndpoint,
|
|
144
169
|
getModelConfig,
|
|
145
170
|
getProviderByModelName
|
|
146
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-S3UTETIC.js";
|
|
147
172
|
import "./chunk-5CS33IBL.js";
|
|
148
173
|
import "./chunk-JZPBVBIY.js";
|
|
149
|
-
import "./chunk-
|
|
174
|
+
import "./chunk-BYXBJQAS.js";
|
|
175
|
+
import {
|
|
176
|
+
asRecordOrEmpty
|
|
177
|
+
} from "./chunk-KX6YBIHG.js";
|
|
178
|
+
import "./chunk-524BDL33.js";
|
|
179
|
+
import {
|
|
180
|
+
createDialogMessageKeyAndId,
|
|
181
|
+
dialogMessageKey
|
|
182
|
+
} from "./chunk-O4BU24WZ.js";
|
|
183
|
+
import {
|
|
184
|
+
asNonEmptyStringArray
|
|
185
|
+
} from "./chunk-I42VC5KR.js";
|
|
186
|
+
import {
|
|
187
|
+
asOptionalFiniteNumber
|
|
188
|
+
} from "./chunk-WWC7I6TA.js";
|
|
150
189
|
import {
|
|
151
190
|
resolveToolBaseUrl
|
|
152
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-JK7VW2FN.js";
|
|
153
192
|
import {
|
|
154
193
|
extractCustomId
|
|
155
194
|
} from "./chunk-DFFIZ25G.js";
|
|
@@ -163,67 +202,36 @@ import {
|
|
|
163
202
|
selectPendingUserInputQueue,
|
|
164
203
|
tokenUsageLiveUpdate
|
|
165
204
|
} from "./chunk-3ASDTTEI.js";
|
|
205
|
+
import "./chunk-QSJ3HFEF.js";
|
|
166
206
|
import "./chunk-DWLEOOGR.js";
|
|
167
207
|
import {
|
|
168
208
|
toErrorMessage
|
|
169
209
|
} from "./chunk-HNMXYYJR.js";
|
|
170
|
-
import
|
|
171
|
-
selectAiRecentContentLimit,
|
|
172
|
-
selectCurrentServer,
|
|
173
|
-
selectGlobalPrompt,
|
|
174
|
-
selectKnowledgeCaptureLevel,
|
|
175
|
-
selectMaxExecutionTime,
|
|
176
|
-
selectSpaceContextLevel,
|
|
177
|
-
selectUserTonePreset
|
|
178
|
-
} from "./chunk-VX3SXJ3N.js";
|
|
179
|
-
import "./chunk-Y5GCAMGP.js";
|
|
180
|
-
import {
|
|
181
|
-
patch,
|
|
182
|
-
read,
|
|
183
|
-
selectById,
|
|
184
|
-
write
|
|
185
|
-
} from "./chunk-URUUZLPA.js";
|
|
186
|
-
import "./chunk-AZPCASRE.js";
|
|
187
|
-
import "./chunk-7U44LYTR.js";
|
|
188
|
-
import {
|
|
189
|
-
asRecordOrEmpty
|
|
190
|
-
} from "./chunk-KX6YBIHG.js";
|
|
191
|
-
import {
|
|
192
|
-
createDialogMessageKeyAndId,
|
|
193
|
-
dialogMessageKey
|
|
194
|
-
} from "./chunk-O4BU24WZ.js";
|
|
195
|
-
import {
|
|
196
|
-
asNonEmptyStringArray
|
|
197
|
-
} from "./chunk-I42VC5KR.js";
|
|
198
|
-
import {
|
|
199
|
-
asOptionalFiniteNumber
|
|
200
|
-
} from "./chunk-WWC7I6TA.js";
|
|
201
|
-
import "./chunk-QSJ3HFEF.js";
|
|
202
|
-
import "./chunk-DSZUWUYB.js";
|
|
210
|
+
import "./chunk-VBKJTOAW.js";
|
|
203
211
|
import {
|
|
204
212
|
selectIdentityToken,
|
|
205
213
|
selectIdentityUser,
|
|
206
214
|
selectIdentityUserId,
|
|
207
215
|
selectRuntimeCurrentServer
|
|
208
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-DVRHHFEA.js";
|
|
209
217
|
import {
|
|
210
218
|
getIsDesktopApp,
|
|
211
219
|
isAbortError
|
|
212
220
|
} from "./chunk-OOSFSFMA.js";
|
|
213
221
|
import "./chunk-GBRG75BQ.js";
|
|
214
|
-
import "./chunk-4SN6J65J.js";
|
|
215
|
-
import "./chunk-LCBAMY2M.js";
|
|
216
222
|
import {
|
|
217
223
|
asTrimmedString
|
|
218
224
|
} from "./chunk-3EUW3WEO.js";
|
|
219
225
|
import "./chunk-U6VC4MU4.js";
|
|
226
|
+
import {
|
|
227
|
+
isRecord
|
|
228
|
+
} from "./chunk-KUG52IAP.js";
|
|
229
|
+
import "./chunk-LCBAMY2M.js";
|
|
230
|
+
import "./chunk-4SN6J65J.js";
|
|
220
231
|
import "./chunk-CF7PE763.js";
|
|
221
232
|
import {
|
|
222
233
|
asOptionalTrimmedString
|
|
223
234
|
} from "./chunk-G3SUCT4W.js";
|
|
224
|
-
import {
|
|
225
|
-
isRecord
|
|
226
|
-
} from "./chunk-KUG52IAP.js";
|
|
227
235
|
import "./chunk-4VNS5WPM.js";
|
|
228
236
|
|
|
229
237
|
// packages/ai/agent/isVoiceModel.ts
|
|
@@ -616,7 +624,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
616
624
|
dialogKey,
|
|
617
625
|
parentMessageId,
|
|
618
626
|
messageMetadata,
|
|
619
|
-
quickChatPerfStartedAt
|
|
627
|
+
quickChatPerfStartedAt,
|
|
628
|
+
fallbackBodyData
|
|
620
629
|
}) => {
|
|
621
630
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
622
631
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -650,7 +659,9 @@ var sendOpenAIResponseRequest = async ({
|
|
|
650
659
|
hasHandedOff,
|
|
651
660
|
finishReason,
|
|
652
661
|
messageId,
|
|
653
|
-
usage: state.usage ?? void 0
|
|
662
|
+
usage: state.usage ?? void 0,
|
|
663
|
+
responseId: typeof state.completedResponse?.id === "string" ? state.completedResponse.id : void 0,
|
|
664
|
+
...state.responsesStateFallback ? { responsesStateFallback: true } : {}
|
|
654
665
|
});
|
|
655
666
|
const resetStateForRetry = () => {
|
|
656
667
|
state.content = "";
|
|
@@ -844,6 +855,7 @@ var sendOpenAIResponseRequest = async ({
|
|
|
844
855
|
return buildMeta(result.hasPendingInteraction, result.hasHandedOff, null);
|
|
845
856
|
};
|
|
846
857
|
let reader;
|
|
858
|
+
let responsesStateFallbackUsed = false;
|
|
847
859
|
try {
|
|
848
860
|
if (!parentMessageId) {
|
|
849
861
|
dispatch(
|
|
@@ -876,13 +888,17 @@ var sendOpenAIResponseRequest = async ({
|
|
|
876
888
|
}
|
|
877
889
|
] : []
|
|
878
890
|
];
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
891
|
+
const buildRequestBody = (sourceBodyData) => {
|
|
892
|
+
const sanitizedInput = Array.isArray(sourceBodyData?.input) ? sanitizeOutboundResponsesInput(sourceBodyData.input) : sourceBodyData?.input;
|
|
893
|
+
const baseBodyData = sanitizedInput !== sourceBodyData?.input ? { ...sourceBodyData, input: sanitizedInput } : sourceBodyData;
|
|
894
|
+
return {
|
|
895
|
+
...baseBodyData,
|
|
896
|
+
...tools.length ? { tools, tool_choice: baseBodyData.tool_choice ?? "auto" } : {},
|
|
897
|
+
stream: true
|
|
898
|
+
};
|
|
885
899
|
};
|
|
900
|
+
let requestBody = buildRequestBody(bodyData);
|
|
901
|
+
const fallbackRequestBody = fallbackBodyData ? buildRequestBody(fallbackBodyData) : null;
|
|
886
902
|
const api = getApiEndpoint(agentConfig);
|
|
887
903
|
const token = selectIdentityToken(getState());
|
|
888
904
|
logQuickChatPerfStage(quickChatPerfStartedAt, "openai-response-fetch-starting", {
|
|
@@ -926,6 +942,17 @@ var sendOpenAIResponseRequest = async ({
|
|
|
926
942
|
);
|
|
927
943
|
}
|
|
928
944
|
if (!response.ok) {
|
|
945
|
+
const rejectedStoredState = !!requestBody.previous_response_id && !!fallbackRequestBody && isResponsesConversationStateRejection(
|
|
946
|
+
response.status,
|
|
947
|
+
await response.clone().text().catch(() => "")
|
|
948
|
+
);
|
|
949
|
+
if (!responsesStateFallbackUsed && rejectedStoredState) {
|
|
950
|
+
responsesStateFallbackUsed = true;
|
|
951
|
+
state.responsesStateFallback = true;
|
|
952
|
+
requestBody = fallbackRequestBody;
|
|
953
|
+
resetStateForRetry();
|
|
954
|
+
continue attemptLoop;
|
|
955
|
+
}
|
|
929
956
|
const errorMessage = await parseApiError(response);
|
|
930
957
|
state.content = `[\u9519\u8BEF: ${errorMessage}]`;
|
|
931
958
|
await finalize();
|
|
@@ -1023,6 +1050,12 @@ var sendOpenAIResponseRequest = async ({
|
|
|
1023
1050
|
flush();
|
|
1024
1051
|
}
|
|
1025
1052
|
break;
|
|
1053
|
+
case "response.reasoning_text.delta":
|
|
1054
|
+
if (typeof event.delta === "string" && event.delta) {
|
|
1055
|
+
state.reasoning += event.delta;
|
|
1056
|
+
flush();
|
|
1057
|
+
}
|
|
1058
|
+
break;
|
|
1026
1059
|
case "response.reasoning.done":
|
|
1027
1060
|
if (event.text) {
|
|
1028
1061
|
state.reasoning += event.text;
|
|
@@ -1081,6 +1114,9 @@ var sendOpenAIResponseRequest = async ({
|
|
|
1081
1114
|
}
|
|
1082
1115
|
case "response.completed":
|
|
1083
1116
|
state.completedResponse = event.response ?? null;
|
|
1117
|
+
if (responsesStateFallbackUsed) {
|
|
1118
|
+
state.responsesStateFallback = true;
|
|
1119
|
+
}
|
|
1084
1120
|
finishReason = event.response?.status === "completed" ? "stop" : event.response?.status ?? null;
|
|
1085
1121
|
if (event.response?.usage) {
|
|
1086
1122
|
state.usage = updateTotalUsage(state.usage, event.response.usage);
|
|
@@ -1708,8 +1744,8 @@ var trimMessagesWithSummary = (messages, contextWindow, summaryTokenCount) => {
|
|
|
1708
1744
|
}
|
|
1709
1745
|
let cutIndex = messages.length - keepCount;
|
|
1710
1746
|
if (cutIndex < 0) cutIndex = 0;
|
|
1711
|
-
while (cutIndex
|
|
1712
|
-
cutIndex
|
|
1747
|
+
while (cutIndex > 0 && messages[cutIndex]?.role === "tool") {
|
|
1748
|
+
cutIndex--;
|
|
1713
1749
|
}
|
|
1714
1750
|
return messages.slice(cutIndex);
|
|
1715
1751
|
};
|
|
@@ -2016,7 +2052,7 @@ var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools,
|
|
|
2016
2052
|
const rawBaseTools = Array.isArray(agentConfig.tools) ? agentConfig.tools : [];
|
|
2017
2053
|
const agentEnabledPacks = agentConfig?.enabledPacks;
|
|
2018
2054
|
const isInlineArtifact = isInlineVisualArtifactAgent(agentConfig);
|
|
2019
|
-
const effectiveEnabledPacks = Array.isArray(agentEnabledPacks) && agentEnabledPacks.length > 0 ? agentEnabledPacks : isInlineArtifact ? agentEnabledPacks ?? [] : ["long-term-memory"];
|
|
2055
|
+
const effectiveEnabledPacks = Array.isArray(agentEnabledPacks) && agentEnabledPacks.length > 0 ? agentEnabledPacks.includes("agent-orchestration") ? agentEnabledPacks : [...agentEnabledPacks, "agent-orchestration"] : isInlineArtifact ? agentEnabledPacks ?? [] : ["long-term-memory", "agent-orchestration"];
|
|
2020
2056
|
const expandedPackTools = expandEnabledPacks(
|
|
2021
2057
|
effectiveEnabledPacks,
|
|
2022
2058
|
rawBaseTools
|
|
@@ -2617,7 +2653,11 @@ async function consumeAgentRunStream(handlers) {
|
|
|
2617
2653
|
|
|
2618
2654
|
// packages/ai/llm/isResponseAPIModel.ts
|
|
2619
2655
|
var isResponseAPIModel = (agentConfig) => {
|
|
2620
|
-
|
|
2656
|
+
const provider = agentConfig.provider?.trim().toLowerCase();
|
|
2657
|
+
if (provider === "deepseek") {
|
|
2658
|
+
return agentConfig.model?.trim().toLowerCase() === "deepseek-v4-flash";
|
|
2659
|
+
}
|
|
2660
|
+
if (provider !== "openai") return false;
|
|
2621
2661
|
if (agentConfig.endpointKey === "responses") return true;
|
|
2622
2662
|
if (!agentConfig.model) return false;
|
|
2623
2663
|
try {
|
|
@@ -2918,6 +2958,12 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2918
2958
|
runtimeOptions.quickChatModelOverride
|
|
2919
2959
|
);
|
|
2920
2960
|
}
|
|
2961
|
+
if (runtimeOptions?.quickChatReasoningEffort && rawAgentConfig.model === "deepseek-v4-flash") {
|
|
2962
|
+
rawAgentConfig = {
|
|
2963
|
+
...rawAgentConfig,
|
|
2964
|
+
reasoning_effort: runtimeOptions.quickChatReasoningEffort
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2921
2967
|
if (isLiveAudioOnlyAgent(rawAgentConfig)) {
|
|
2922
2968
|
return rejectWithValue(
|
|
2923
2969
|
"\u6B64 Agent \u4EC5\u652F\u6301\u5B9E\u65F6\u8BED\u97F3\u6A21\u5F0F\uFF0C\u8BF7\u4F7F\u7528\u8BED\u97F3\u9762\u677F\u8FDB\u884C\u5BF9\u8BDD\u3002"
|
|
@@ -3212,6 +3258,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3212
3258
|
}
|
|
3213
3259
|
let accumulated = "";
|
|
3214
3260
|
let cliCapabilityWarnings = [];
|
|
3261
|
+
let cliTurnUsage = null;
|
|
3215
3262
|
const decoder = new TextDecoder();
|
|
3216
3263
|
const buildCliAssistantMessage = () => ({
|
|
3217
3264
|
id: messageId,
|
|
@@ -3277,6 +3324,9 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3277
3324
|
(warning) => typeof warning === "string" && warning.trim().length > 0
|
|
3278
3325
|
);
|
|
3279
3326
|
}
|
|
3327
|
+
if (payload.done && payload.usage) {
|
|
3328
|
+
cliTurnUsage = updateTotalUsage(cliTurnUsage, payload.usage);
|
|
3329
|
+
}
|
|
3280
3330
|
}
|
|
3281
3331
|
});
|
|
3282
3332
|
if (result.outcome === "rejected") {
|
|
@@ -3308,6 +3358,22 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3308
3358
|
}
|
|
3309
3359
|
await persistMessageWithFixedId(dispatch, buildCliAssistantMessage());
|
|
3310
3360
|
remoteTransientMessageFinalized = true;
|
|
3361
|
+
const cliUsageRaw = cliTurnUsage;
|
|
3362
|
+
const hasRealUsage = !!cliUsageRaw && (cliUsageRaw.prompt_tokens ?? cliUsageRaw.input_tokens ?? 0) + (cliUsageRaw.completion_tokens ?? cliUsageRaw.output_tokens ?? 0) + (cliUsageRaw.cache_creation_input_tokens ?? 0) + (cliUsageRaw.cache_read_input_tokens ?? 0) > 0;
|
|
3363
|
+
const isCliEstimated = !hasRealUsage;
|
|
3364
|
+
const cliUsage = hasRealUsage ? cliUsageRaw : estimateMissingUsage({ content: accumulated });
|
|
3365
|
+
if (dialogKey2) {
|
|
3366
|
+
try {
|
|
3367
|
+
await dispatch(updateTokens({
|
|
3368
|
+
dialogId: dialogId2,
|
|
3369
|
+
dialogKey: dialogKey2,
|
|
3370
|
+
usage: cliUsage,
|
|
3371
|
+
agentConfig: isCliEstimated ? { ...agentConfig, apiSource: "cli" } : agentConfig
|
|
3372
|
+
})).unwrap();
|
|
3373
|
+
} catch (err) {
|
|
3374
|
+
console.warn("[streamAgentChatTurn] CLI token stats dispatch failed", err);
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3311
3377
|
}
|
|
3312
3378
|
} finally {
|
|
3313
3379
|
try {
|
|
@@ -3776,6 +3842,11 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3776
3842
|
entrypoint: "chat-dialog",
|
|
3777
3843
|
capabilities: ["streaming", "dialog-ui", "tool-cards"]
|
|
3778
3844
|
},
|
|
3845
|
+
...runtimeOptions?.quickChatReasoningEffort ? {
|
|
3846
|
+
runtimeOptions: {
|
|
3847
|
+
quickChatReasoningEffort: runtimeOptions.quickChatReasoningEffort
|
|
3848
|
+
}
|
|
3849
|
+
} : {},
|
|
3779
3850
|
...currentDialog?.spaceId ? { spaceId: currentDialog.spaceId } : {}
|
|
3780
3851
|
});
|
|
3781
3852
|
const remoteRunUrl = `${explicitServerBase.replace(/\/+$/, "")}/api/agent/run`;
|
|
@@ -3997,6 +4068,19 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3997
4068
|
});
|
|
3998
4069
|
let appendTempUserInput2 = true;
|
|
3999
4070
|
let currentParentMessageId2 = parentMessageId ?? void 0;
|
|
4071
|
+
const storedResponsesState = currentDialog?.responsesState;
|
|
4072
|
+
let responsesState = selectResponsesConversationState(
|
|
4073
|
+
storedResponsesState,
|
|
4074
|
+
agentConfigForCall
|
|
4075
|
+
);
|
|
4076
|
+
if (storedResponsesState != null && !responsesState) {
|
|
4077
|
+
dispatch(
|
|
4078
|
+
patch({
|
|
4079
|
+
dbKey: dialogKey,
|
|
4080
|
+
changes: { responsesState: null }
|
|
4081
|
+
})
|
|
4082
|
+
);
|
|
4083
|
+
}
|
|
4000
4084
|
const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
4001
4085
|
if (w2) w2.__LOOP_STOP_REASON__ = null;
|
|
4002
4086
|
loopKey = `loop:${dialogId}`;
|
|
@@ -4141,8 +4225,17 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4141
4225
|
messages: dynamicMessages,
|
|
4142
4226
|
stableMessages,
|
|
4143
4227
|
userInput: userInputText,
|
|
4144
|
-
contexts
|
|
4228
|
+
contexts,
|
|
4229
|
+
responsesState
|
|
4145
4230
|
});
|
|
4231
|
+
const fallbackBodyData = responsesState ? generateRequestBody({
|
|
4232
|
+
agentConfig: effectiveAgentConfig,
|
|
4233
|
+
messages: dynamicMessages,
|
|
4234
|
+
stableMessages,
|
|
4235
|
+
userInput: userInputText,
|
|
4236
|
+
contexts,
|
|
4237
|
+
responsesState: null
|
|
4238
|
+
}) : void 0;
|
|
4146
4239
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-starting", {
|
|
4147
4240
|
responseApi: true,
|
|
4148
4241
|
dynamicMessageCount: dynamicMessages.length,
|
|
@@ -4156,7 +4249,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4156
4249
|
dialogKey,
|
|
4157
4250
|
parentMessageId: currentParentMessageId2,
|
|
4158
4251
|
messageMetadata: streamingMessageMetadata,
|
|
4159
|
-
quickChatPerfStartedAt
|
|
4252
|
+
quickChatPerfStartedAt,
|
|
4253
|
+
fallbackBodyData
|
|
4160
4254
|
});
|
|
4161
4255
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
|
|
4162
4256
|
responseApi: true,
|
|
@@ -4166,6 +4260,35 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4166
4260
|
});
|
|
4167
4261
|
appendTempUserInput2 = false;
|
|
4168
4262
|
currentParentMessageId2 = void 0;
|
|
4263
|
+
if (meta.responseId) {
|
|
4264
|
+
responsesState = updateResponsesConversationState(
|
|
4265
|
+
agentConfigForCall,
|
|
4266
|
+
meta.responseId
|
|
4267
|
+
);
|
|
4268
|
+
if (responsesState) {
|
|
4269
|
+
dispatch(
|
|
4270
|
+
patch({
|
|
4271
|
+
dbKey: dialogKey,
|
|
4272
|
+
changes: { responsesState }
|
|
4273
|
+
})
|
|
4274
|
+
);
|
|
4275
|
+
} else if (meta.responsesStateFallback) {
|
|
4276
|
+
dispatch(
|
|
4277
|
+
patch({
|
|
4278
|
+
dbKey: dialogKey,
|
|
4279
|
+
changes: { responsesState: null }
|
|
4280
|
+
})
|
|
4281
|
+
);
|
|
4282
|
+
}
|
|
4283
|
+
} else if (meta.responsesStateFallback) {
|
|
4284
|
+
responsesState = null;
|
|
4285
|
+
dispatch(
|
|
4286
|
+
patch({
|
|
4287
|
+
dbKey: dialogKey,
|
|
4288
|
+
changes: { responsesState: null }
|
|
4289
|
+
})
|
|
4290
|
+
);
|
|
4291
|
+
}
|
|
4169
4292
|
totalTurnUsage = updateTotalUsage(totalTurnUsage, meta.usage);
|
|
4170
4293
|
if (meta.hasHandedOff) {
|
|
4171
4294
|
if (!requestParentMessageId && meta.messageId) {
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSpaceContentKeys,
|
|
3
3
|
normalizeSpaceIdInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ID4G2MAR.js";
|
|
5
5
|
import {
|
|
6
6
|
getCurrentProfile,
|
|
7
7
|
getDefaultProfileConfigPath,
|
|
8
8
|
loadProfileConfig
|
|
9
9
|
} from "./chunk-ROWQEJRP.js";
|
|
10
|
-
import {
|
|
11
|
-
DEFAULT_NOLO_SERVER_URL
|
|
12
|
-
} from "./chunk-OLZBQWZU.js";
|
|
13
|
-
import {
|
|
14
|
-
toErrorMessage
|
|
15
|
-
} from "./chunk-HNMXYYJR.js";
|
|
16
10
|
import {
|
|
17
11
|
asOptionalFiniteNumber
|
|
18
12
|
} from "./chunk-WWC7I6TA.js";
|
|
19
13
|
import {
|
|
20
14
|
asTrimmedLowercaseString
|
|
21
15
|
} from "./chunk-QSJ3HFEF.js";
|
|
16
|
+
import {
|
|
17
|
+
DEFAULT_NOLO_SERVER_URL
|
|
18
|
+
} from "./chunk-OLZBQWZU.js";
|
|
19
|
+
import {
|
|
20
|
+
toErrorMessage
|
|
21
|
+
} from "./chunk-HNMXYYJR.js";
|
|
22
22
|
import {
|
|
23
23
|
getAllServers
|
|
24
24
|
} from "./chunk-OOSFSFMA.js";
|
|
25
|
+
import {
|
|
26
|
+
isRecord
|
|
27
|
+
} from "./chunk-KUG52IAP.js";
|
|
25
28
|
import {
|
|
26
29
|
NOLO_CLUSTER_SERVERS
|
|
27
30
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -29,9 +32,6 @@ import "./chunk-CF7PE763.js";
|
|
|
29
32
|
import {
|
|
30
33
|
asOptionalTrimmedString
|
|
31
34
|
} from "./chunk-G3SUCT4W.js";
|
|
32
|
-
import {
|
|
33
|
-
isRecord
|
|
34
|
-
} from "./chunk-KUG52IAP.js";
|
|
35
35
|
import "./chunk-4VNS5WPM.js";
|
|
36
36
|
|
|
37
37
|
// packages/core/table/activityColumns.ts
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getToolRequestContext,
|
|
8
8
|
resolveToolApiBaseUrl,
|
|
9
9
|
resolveToolBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JK7VW2FN.js";
|
|
11
11
|
import "./chunk-DFFIZ25G.js";
|
|
12
12
|
import "./chunk-3ASDTTEI.js";
|
|
13
|
-
import "./chunk-DWLEOOGR.js";
|
|
14
13
|
import "./chunk-QSJ3HFEF.js";
|
|
14
|
+
import "./chunk-DWLEOOGR.js";
|
|
15
15
|
import "./chunk-KUG52IAP.js";
|
|
16
16
|
import "./chunk-4VNS5WPM.js";
|
|
17
17
|
export {
|