nolo-cli 0.8.0-alpha.23 → 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-YXTTYRXS.js → _executeModel-2ZAPHFOX.js} +19 -17
- package/{agentDeleteCommand-4NO7Y6UI.js → agentDeleteCommand-5TFSII4Z.js} +11 -11
- package/{agentEmailCommands-NPP5TGZV.js → agentEmailCommands-XMXWGUMZ.js} +22 -20
- package/{agentListCommands-IP5BNB5W.js → agentListCommands-OWEFQEY4.js} +99 -15
- package/{agentMachineCommands-24NFTIKY.js → agentMachineCommands-DGHYBBFC.js} +11 -11
- package/{agentRecordCommands-7AWSR46F.js → agentRecordCommands-I433EE5F.js} +22 -20
- package/{agentRunCommand-P46WCJ6P.js → agentRunCommand-UQSX3IGW.js} +22 -20
- package/{agentRuntimeLocal-V5UV7S4R.js → agentRuntimeLocal-73SVOC5U.js} +8 -8
- package/{agentSlice-3CVAZZOP.js → agentSlice-JQCS4LR3.js} +1 -1
- package/{chunk-AWY2AFHN.js → chunk-3HPUUWOR.js} +50 -4
- package/{chunk-6UUD2WES.js → chunk-3KGTFX3T.js} +2 -13
- package/{chunk-RBCNBU2A.js → chunk-524BDL33.js} +1 -0
- package/chunk-6QFNUK2G.js +144 -0
- package/{chunk-RBB43B5W.js → chunk-AISLHYDB.js} +3 -3
- package/{chunk-BB2PII22.js → chunk-BKGNXJAM.js} +1 -1
- package/{chunk-P7GAHW32.js → chunk-BQECZ3Q4.js} +9 -9
- package/{chunk-A4MYG3TR.js → chunk-BT57QC5K.js} +2 -2
- package/{chunk-LBUTKV7S.js → chunk-C4DZRHFJ.js} +7 -7
- package/{chunk-Q2WC4KGQ.js → chunk-DS3VC4EA.js} +2 -2
- package/{chunk-ZJS64PZJ.js → chunk-FVVST32H.js} +1 -1
- package/{chunk-6OHYC4BY.js → chunk-FZ2G3I4B.js} +2 -1
- package/{chunk-6KRA6AWI.js → chunk-G7KM6BBZ.js} +1 -1
- package/{chunk-ZAUDEKML.js → chunk-GROGNZOA.js} +21 -12
- package/{chunk-RBCENBG7.js → chunk-IOQIOZNI.js} +8 -2
- package/{chunk-PTT6KSYQ.js → chunk-IPA2WQGY.js} +83 -30
- package/{chunk-DSNLHTP3.js → chunk-IYMGQ3TN.js} +9 -2
- package/{chunk-WESWWEVA.js → chunk-L76QNLGU.js} +1 -1
- package/{chunk-LJCH34R2.js → chunk-LE6JAIXE.js} +2 -2
- package/{chunk-5NYGMN4O.js → chunk-LRKEOCWY.js} +3 -3
- package/{chunk-KLOCUWKZ.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-RYMUT5JO.js → chunk-P2SPC3FT.js} +12 -8
- package/{chunk-4VA3UQRF.js → chunk-Q7S2ORXX.js} +3 -3
- package/{chunk-D55DXHXL.js → chunk-QWM7YWVT.js} +1 -1
- package/{chunk-AOKWJZ5N.js → chunk-S3UTETIC.js} +3 -2
- package/{chunk-EUN3SYY7.js → chunk-SBVUZC2E.js} +1 -1
- package/{chunk-O7VS7JLJ.js → chunk-VUEXKW6U.js} +1 -1
- package/{chunk-MIQOUMSN.js → chunk-WKQGZJVI.js} +1 -1
- package/{chunk-LFFATN2M.js → chunk-WM7P5OWZ.js} +18 -12
- package/{chunk-LW6FJFCT.js → chunk-WTBWWBSF.js} +122 -28
- package/{chunk-HAC6GPRE.js → chunk-WVS3GX3B.js} +2 -2
- package/chunk-Z3NEXVYE.js +33 -0
- package/{createAgentAutomationAction-DYQOGAVE.js → createAgentAutomationAction-GXZNLJZK.js} +6 -5
- package/{createDialogAction-ETB3KQQE.js → createDialogAction-KLW42ZGF.js} +7 -6
- package/{createPageAction-UF2RHA63.js → createPageAction-IBJHE6MH.js} +6 -5
- package/{dialogCommands-LYYC7XHF.js → dialogCommands-7O5PUZRU.js} +12 -12
- package/{dialogSlice-IFBZ4IT2.js → dialogSlice-GGV7PF53.js} +6 -5
- package/{docCreateCommands-I66OI374.js → docCreateCommands-7ZO2NQQF.js} +11 -11
- package/{docDeleteCommands-OVRBCHMF.js → docDeleteCommands-YKIXZYBR.js} +12 -12
- package/{docReadCommands-YLWUMEH7.js → docReadCommands-5UDONBUL.js} +11 -11
- package/{docStore-65WO7U36.js → docStore-VDWTATFH.js} +7 -6
- package/{docUpdateCommands-NSICS4IN.js → docUpdateCommands-EPZIIQMY.js} +11 -11
- package/{getPricing-7PUT44ZS.js → getPricing-6TOZXPAU.js} +3 -3
- package/{handleSendMessageAction-T76HEDOP.js → handleSendMessageAction-MMATC5V5.js} +6 -5
- package/index.js +36 -36
- package/{machineCommands-4HQY6UVZ.js → machineCommands-PTHPKSIZ.js} +21 -19
- package/{machineWsRunDispatch-7YW2M4FS.js → machineWsRunDispatch-M5L2NVWJ.js} +21 -19
- package/{models-MFXNI3TF.js → models-H524GH3U.js} +3 -2
- package/package.json +1 -1
- package/{readlineWorkspace-FLQWOAUR.js → readlineWorkspace-4NXMEOHP.js} +106 -48
- package/{runAgentClientLoop-IUV2TR3X.js → runAgentClientLoop-FGUYNGSA.js} +16 -14
- package/{spaceCommands-BDDAT4VU.js → spaceCommands-S3EB6TOS.js} +11 -11
- package/{spaceSlice-HH633ZA4.js → spaceSlice-RG2GSV7K.js} +6 -5
- package/{streamAgentChatTurn-UBZOVFKV.js → streamAgentChatTurn-X576C23M.js} +131 -31
- package/{tools-OQZ34KCU.js → tools-HURZ2N4O.js} +11 -9
- package/{tuiSummaryLlmCaller-42AEL3LL.js → tuiSummaryLlmCaller-DG2LBTBX.js} +4 -4
- package/{updateDialogTitleAction-A3OOMSDO.js → updateDialogTitleAction-62LVIAUZ.js} +6 -5
|
@@ -20,29 +20,32 @@ import {
|
|
|
20
20
|
sanitizeOutboundResponsesInput,
|
|
21
21
|
sendOpenAICompletionsRequest,
|
|
22
22
|
updateTotalUsage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P2SPC3FT.js";
|
|
24
24
|
import "./chunk-JEXVIMYZ.js";
|
|
25
25
|
import {
|
|
26
26
|
prepareTools
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WVS3GX3B.js";
|
|
28
28
|
import {
|
|
29
29
|
fetchReferenceContents,
|
|
30
30
|
generateRequestBody,
|
|
31
|
+
isResponsesConversationStateRejection,
|
|
31
32
|
mergeReferences,
|
|
32
33
|
performFetchRequest,
|
|
33
34
|
performServerProxyFetchWithRetry,
|
|
34
35
|
resolveAgentCallPlan,
|
|
35
36
|
resolveClientWire,
|
|
36
37
|
resolveReferenceAssets,
|
|
37
|
-
resolveToolsFromKeys
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
resolveToolsFromKeys,
|
|
39
|
+
selectResponsesConversationState,
|
|
40
|
+
updateResponsesConversationState
|
|
41
|
+
} from "./chunk-WTBWWBSF.js";
|
|
42
|
+
import "./chunk-QWM7YWVT.js";
|
|
40
43
|
import {
|
|
41
44
|
getFinalPrice,
|
|
42
45
|
getModelPricing,
|
|
43
46
|
getPrices,
|
|
44
47
|
hasExplicitAgentPricing
|
|
45
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-OCDEWRE2.js";
|
|
46
49
|
import {
|
|
47
50
|
getPublicImageAgentDefaultProfile,
|
|
48
51
|
getPublicImageAgentMode
|
|
@@ -55,8 +58,9 @@ 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
65
|
import "./chunk-2CVZSC5L.js";
|
|
62
66
|
import "./chunk-3LY4F7SV.js";
|
|
@@ -67,8 +71,8 @@ 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
77
|
import {
|
|
74
78
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
@@ -95,12 +99,12 @@ import {
|
|
|
95
99
|
selectTableRows,
|
|
96
100
|
selectViewMode,
|
|
97
101
|
updateTokens
|
|
98
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-GROGNZOA.js";
|
|
99
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,
|
|
@@ -129,7 +133,8 @@ import {
|
|
|
129
133
|
write
|
|
130
134
|
} from "./chunk-L3KWEH3V.js";
|
|
131
135
|
import "./chunk-AZPCASRE.js";
|
|
132
|
-
import "./chunk-
|
|
136
|
+
import "./chunk-IOQIOZNI.js";
|
|
137
|
+
import "./chunk-Z3NEXVYE.js";
|
|
133
138
|
import "./chunk-XENYHRUE.js";
|
|
134
139
|
import "./chunk-JTINRTBT.js";
|
|
135
140
|
import {
|
|
@@ -145,32 +150,32 @@ import {
|
|
|
145
150
|
} from "./chunk-YOCHZD7D.js";
|
|
146
151
|
import {
|
|
147
152
|
resolveAgentImageInputSupport
|
|
148
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-AISLHYDB.js";
|
|
149
154
|
import "./chunk-OPZYGHUC.js";
|
|
150
|
-
import "./chunk-
|
|
155
|
+
import "./chunk-G7KM6BBZ.js";
|
|
151
156
|
import {
|
|
152
157
|
extractImagePartsFromResponseOutput,
|
|
153
158
|
extractTextFromResponseOutput,
|
|
154
159
|
toResponsesTools
|
|
155
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-3HPUUWOR.js";
|
|
156
161
|
import {
|
|
157
162
|
canonicalizeToolNames,
|
|
158
163
|
prioritizeToolNames,
|
|
159
164
|
resolveRuntimeToolSurfaceForAgent
|
|
160
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-FZ2G3I4B.js";
|
|
161
166
|
import "./chunk-5MMAK75Q.js";
|
|
162
167
|
import {
|
|
163
168
|
getApiEndpoint,
|
|
164
169
|
getModelConfig,
|
|
165
170
|
getProviderByModelName
|
|
166
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-S3UTETIC.js";
|
|
167
172
|
import "./chunk-5CS33IBL.js";
|
|
168
173
|
import "./chunk-JZPBVBIY.js";
|
|
169
174
|
import "./chunk-BYXBJQAS.js";
|
|
170
175
|
import {
|
|
171
176
|
asRecordOrEmpty
|
|
172
177
|
} from "./chunk-KX6YBIHG.js";
|
|
173
|
-
import "./chunk-
|
|
178
|
+
import "./chunk-524BDL33.js";
|
|
174
179
|
import {
|
|
175
180
|
createDialogMessageKeyAndId,
|
|
176
181
|
dialogMessageKey
|
|
@@ -619,7 +624,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
619
624
|
dialogKey,
|
|
620
625
|
parentMessageId,
|
|
621
626
|
messageMetadata,
|
|
622
|
-
quickChatPerfStartedAt
|
|
627
|
+
quickChatPerfStartedAt,
|
|
628
|
+
fallbackBodyData
|
|
623
629
|
}) => {
|
|
624
630
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
625
631
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -653,7 +659,9 @@ var sendOpenAIResponseRequest = async ({
|
|
|
653
659
|
hasHandedOff,
|
|
654
660
|
finishReason,
|
|
655
661
|
messageId,
|
|
656
|
-
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 } : {}
|
|
657
665
|
});
|
|
658
666
|
const resetStateForRetry = () => {
|
|
659
667
|
state.content = "";
|
|
@@ -847,6 +855,7 @@ var sendOpenAIResponseRequest = async ({
|
|
|
847
855
|
return buildMeta(result.hasPendingInteraction, result.hasHandedOff, null);
|
|
848
856
|
};
|
|
849
857
|
let reader;
|
|
858
|
+
let responsesStateFallbackUsed = false;
|
|
850
859
|
try {
|
|
851
860
|
if (!parentMessageId) {
|
|
852
861
|
dispatch(
|
|
@@ -879,13 +888,17 @@ var sendOpenAIResponseRequest = async ({
|
|
|
879
888
|
}
|
|
880
889
|
] : []
|
|
881
890
|
];
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
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
|
+
};
|
|
888
899
|
};
|
|
900
|
+
let requestBody = buildRequestBody(bodyData);
|
|
901
|
+
const fallbackRequestBody = fallbackBodyData ? buildRequestBody(fallbackBodyData) : null;
|
|
889
902
|
const api = getApiEndpoint(agentConfig);
|
|
890
903
|
const token = selectIdentityToken(getState());
|
|
891
904
|
logQuickChatPerfStage(quickChatPerfStartedAt, "openai-response-fetch-starting", {
|
|
@@ -929,6 +942,17 @@ var sendOpenAIResponseRequest = async ({
|
|
|
929
942
|
);
|
|
930
943
|
}
|
|
931
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
|
+
}
|
|
932
956
|
const errorMessage = await parseApiError(response);
|
|
933
957
|
state.content = `[\u9519\u8BEF: ${errorMessage}]`;
|
|
934
958
|
await finalize();
|
|
@@ -1026,6 +1050,12 @@ var sendOpenAIResponseRequest = async ({
|
|
|
1026
1050
|
flush();
|
|
1027
1051
|
}
|
|
1028
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;
|
|
1029
1059
|
case "response.reasoning.done":
|
|
1030
1060
|
if (event.text) {
|
|
1031
1061
|
state.reasoning += event.text;
|
|
@@ -1084,6 +1114,9 @@ var sendOpenAIResponseRequest = async ({
|
|
|
1084
1114
|
}
|
|
1085
1115
|
case "response.completed":
|
|
1086
1116
|
state.completedResponse = event.response ?? null;
|
|
1117
|
+
if (responsesStateFallbackUsed) {
|
|
1118
|
+
state.responsesStateFallback = true;
|
|
1119
|
+
}
|
|
1087
1120
|
finishReason = event.response?.status === "completed" ? "stop" : event.response?.status ?? null;
|
|
1088
1121
|
if (event.response?.usage) {
|
|
1089
1122
|
state.usage = updateTotalUsage(state.usage, event.response.usage);
|
|
@@ -1711,8 +1744,8 @@ var trimMessagesWithSummary = (messages, contextWindow, summaryTokenCount) => {
|
|
|
1711
1744
|
}
|
|
1712
1745
|
let cutIndex = messages.length - keepCount;
|
|
1713
1746
|
if (cutIndex < 0) cutIndex = 0;
|
|
1714
|
-
while (cutIndex
|
|
1715
|
-
cutIndex
|
|
1747
|
+
while (cutIndex > 0 && messages[cutIndex]?.role === "tool") {
|
|
1748
|
+
cutIndex--;
|
|
1716
1749
|
}
|
|
1717
1750
|
return messages.slice(cutIndex);
|
|
1718
1751
|
};
|
|
@@ -2620,7 +2653,11 @@ async function consumeAgentRunStream(handlers) {
|
|
|
2620
2653
|
|
|
2621
2654
|
// packages/ai/llm/isResponseAPIModel.ts
|
|
2622
2655
|
var isResponseAPIModel = (agentConfig) => {
|
|
2623
|
-
|
|
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;
|
|
2624
2661
|
if (agentConfig.endpointKey === "responses") return true;
|
|
2625
2662
|
if (!agentConfig.model) return false;
|
|
2626
2663
|
try {
|
|
@@ -2921,6 +2958,12 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2921
2958
|
runtimeOptions.quickChatModelOverride
|
|
2922
2959
|
);
|
|
2923
2960
|
}
|
|
2961
|
+
if (runtimeOptions?.quickChatReasoningEffort && rawAgentConfig.model === "deepseek-v4-flash") {
|
|
2962
|
+
rawAgentConfig = {
|
|
2963
|
+
...rawAgentConfig,
|
|
2964
|
+
reasoning_effort: runtimeOptions.quickChatReasoningEffort
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2924
2967
|
if (isLiveAudioOnlyAgent(rawAgentConfig)) {
|
|
2925
2968
|
return rejectWithValue(
|
|
2926
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"
|
|
@@ -3799,6 +3842,11 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3799
3842
|
entrypoint: "chat-dialog",
|
|
3800
3843
|
capabilities: ["streaming", "dialog-ui", "tool-cards"]
|
|
3801
3844
|
},
|
|
3845
|
+
...runtimeOptions?.quickChatReasoningEffort ? {
|
|
3846
|
+
runtimeOptions: {
|
|
3847
|
+
quickChatReasoningEffort: runtimeOptions.quickChatReasoningEffort
|
|
3848
|
+
}
|
|
3849
|
+
} : {},
|
|
3802
3850
|
...currentDialog?.spaceId ? { spaceId: currentDialog.spaceId } : {}
|
|
3803
3851
|
});
|
|
3804
3852
|
const remoteRunUrl = `${explicitServerBase.replace(/\/+$/, "")}/api/agent/run`;
|
|
@@ -4020,6 +4068,19 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4020
4068
|
});
|
|
4021
4069
|
let appendTempUserInput2 = true;
|
|
4022
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
|
+
}
|
|
4023
4084
|
const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
4024
4085
|
if (w2) w2.__LOOP_STOP_REASON__ = null;
|
|
4025
4086
|
loopKey = `loop:${dialogId}`;
|
|
@@ -4164,8 +4225,17 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4164
4225
|
messages: dynamicMessages,
|
|
4165
4226
|
stableMessages,
|
|
4166
4227
|
userInput: userInputText,
|
|
4167
|
-
contexts
|
|
4228
|
+
contexts,
|
|
4229
|
+
responsesState
|
|
4168
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;
|
|
4169
4239
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-starting", {
|
|
4170
4240
|
responseApi: true,
|
|
4171
4241
|
dynamicMessageCount: dynamicMessages.length,
|
|
@@ -4179,7 +4249,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4179
4249
|
dialogKey,
|
|
4180
4250
|
parentMessageId: currentParentMessageId2,
|
|
4181
4251
|
messageMetadata: streamingMessageMetadata,
|
|
4182
|
-
quickChatPerfStartedAt
|
|
4252
|
+
quickChatPerfStartedAt,
|
|
4253
|
+
fallbackBodyData
|
|
4183
4254
|
});
|
|
4184
4255
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
|
|
4185
4256
|
responseApi: true,
|
|
@@ -4189,6 +4260,35 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4189
4260
|
});
|
|
4190
4261
|
appendTempUserInput2 = false;
|
|
4191
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
|
+
}
|
|
4192
4292
|
totalTurnUsage = updateTotalUsage(totalTurnUsage, meta.usage);
|
|
4193
4293
|
if (meta.hasHandedOff) {
|
|
4194
4294
|
if (!requestParentMessageId && meta.messageId) {
|
|
@@ -11,23 +11,24 @@ import {
|
|
|
11
11
|
toolQueryFunc,
|
|
12
12
|
toolQueryFunctionSchema,
|
|
13
13
|
toolRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IPA2WQGY.js";
|
|
15
15
|
import "./chunk-GAKEBQD6.js";
|
|
16
|
+
import "./chunk-6QFNUK2G.js";
|
|
16
17
|
import "./chunk-KQHGZWSV.js";
|
|
17
18
|
import "./chunk-2CVZSC5L.js";
|
|
18
19
|
import "./chunk-3LY4F7SV.js";
|
|
19
20
|
import "./chunk-VP4WJWKW.js";
|
|
20
21
|
import "./chunk-63W5N6P3.js";
|
|
21
22
|
import "./chunk-VF4K2QE6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-LE6JAIXE.js";
|
|
24
|
+
import "./chunk-BT57QC5K.js";
|
|
24
25
|
import "./chunk-VC6OZXO5.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-GROGNZOA.js";
|
|
26
27
|
import "./chunk-V2J635L5.js";
|
|
27
28
|
import "./chunk-MRC4Q34M.js";
|
|
28
29
|
import "./chunk-MTU75CZ2.js";
|
|
29
30
|
import "./chunk-CWMSB67P.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-Q7S2ORXX.js";
|
|
31
32
|
import "./chunk-LTH6AVG7.js";
|
|
32
33
|
import "./chunk-Z4NR32XR.js";
|
|
33
34
|
import "./chunk-M76ECQRD.js";
|
|
@@ -39,18 +40,19 @@ import "./chunk-BFDWXLFF.js";
|
|
|
39
40
|
import "./chunk-UAD2WT54.js";
|
|
40
41
|
import "./chunk-L3KWEH3V.js";
|
|
41
42
|
import "./chunk-AZPCASRE.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-IOQIOZNI.js";
|
|
44
|
+
import "./chunk-Z3NEXVYE.js";
|
|
43
45
|
import "./chunk-XENYHRUE.js";
|
|
44
46
|
import "./chunk-JTINRTBT.js";
|
|
45
47
|
import "./chunk-WZSRQNQG.js";
|
|
46
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-FZ2G3I4B.js";
|
|
47
49
|
import "./chunk-5MMAK75Q.js";
|
|
48
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-S3UTETIC.js";
|
|
49
51
|
import "./chunk-5CS33IBL.js";
|
|
50
52
|
import "./chunk-JZPBVBIY.js";
|
|
51
53
|
import "./chunk-BYXBJQAS.js";
|
|
52
54
|
import "./chunk-KX6YBIHG.js";
|
|
53
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-524BDL33.js";
|
|
54
56
|
import "./chunk-O4BU24WZ.js";
|
|
55
57
|
import "./chunk-I42VC5KR.js";
|
|
56
58
|
import "./chunk-WWC7I6TA.js";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
canUsePlatformChatProvider,
|
|
7
7
|
parsePlatformChatCompletionResponse,
|
|
8
8
|
resolvePlatformChatProviderConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3KGTFX3T.js";
|
|
10
10
|
import "./chunk-OPZYGHUC.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-3HPUUWOR.js";
|
|
12
|
+
import "./chunk-S3UTETIC.js";
|
|
13
13
|
import "./chunk-BYXBJQAS.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-524BDL33.js";
|
|
15
15
|
import "./chunk-I42VC5KR.js";
|
|
16
16
|
import "./chunk-QSJ3HFEF.js";
|
|
17
17
|
import "./chunk-3EUW3WEO.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
selectAllMsgs,
|
|
8
8
|
serializeMessageContent,
|
|
9
9
|
updateContentTitle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GROGNZOA.js";
|
|
11
11
|
import {
|
|
12
12
|
BUILTIN_TITLE_LLM_CONFIG
|
|
13
13
|
} from "./chunk-V2J635L5.js";
|
|
@@ -16,7 +16,7 @@ import "./chunk-MTU75CZ2.js";
|
|
|
16
16
|
import "./chunk-CWMSB67P.js";
|
|
17
17
|
import {
|
|
18
18
|
runLlm
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Q7S2ORXX.js";
|
|
20
20
|
import "./chunk-LTH6AVG7.js";
|
|
21
21
|
import "./chunk-Z4NR32XR.js";
|
|
22
22
|
import {
|
|
@@ -34,15 +34,16 @@ import {
|
|
|
34
34
|
selectById
|
|
35
35
|
} from "./chunk-L3KWEH3V.js";
|
|
36
36
|
import "./chunk-AZPCASRE.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-IOQIOZNI.js";
|
|
38
|
+
import "./chunk-Z3NEXVYE.js";
|
|
38
39
|
import "./chunk-JTINRTBT.js";
|
|
39
40
|
import "./chunk-5MMAK75Q.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-S3UTETIC.js";
|
|
41
42
|
import "./chunk-5CS33IBL.js";
|
|
42
43
|
import "./chunk-JZPBVBIY.js";
|
|
43
44
|
import "./chunk-BYXBJQAS.js";
|
|
44
45
|
import "./chunk-KX6YBIHG.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-524BDL33.js";
|
|
46
47
|
import "./chunk-O4BU24WZ.js";
|
|
47
48
|
import "./chunk-I42VC5KR.js";
|
|
48
49
|
import "./chunk-WWC7I6TA.js";
|