@google/gemini-cli 0.57.0-preview.0 → 0.57.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/bundle/{chunk-XDJMDRLM.js → chunk-4H4K2RBL.js} +3 -3
- package/bundle/{chunk-2UICYJMD.js → chunk-7HKQGPWB.js} +108 -22
- package/bundle/{chunk-2UGGPOEV.js → chunk-7IKUWYZO.js} +1 -1
- package/bundle/{chunk-IKGOC5B6.js → chunk-7ZGWPQVZ.js} +1 -1
- package/bundle/{chunk-NXS624CI.js → chunk-AOE6E7MU.js} +2 -2
- package/bundle/{chunk-73OHVDUZ.js → chunk-ASZFEU6C.js} +7 -7
- package/bundle/{chunk-FWGOOSQK.js → chunk-DFPYJMVX.js} +114 -22
- package/bundle/{chunk-ZY7Z5W6K.js → chunk-FVC4WCSP.js} +1 -1
- package/bundle/{chunk-ACDZS2RE.js → chunk-FYAMITQ2.js} +1 -1
- package/bundle/{chunk-QVDXZMEX.js → chunk-GAROUUGQ.js} +1 -1
- package/bundle/{chunk-OFFEM74O.js → chunk-GAS2GAYB.js} +1 -1
- package/bundle/{chunk-WH63Z45A.js → chunk-GPOBVDAD.js} +1 -1
- package/bundle/{chunk-EBKNEOAO.js → chunk-HY6GN2F7.js} +1 -1
- package/bundle/{chunk-HKTHSWSS.js → chunk-IKHAM2LG.js} +7 -7
- package/bundle/{chunk-O3QB4SVS.js → chunk-ISXOUBN5.js} +2 -2
- package/bundle/{chunk-W4CY7TCG.js → chunk-LQJHQ4BU.js} +2 -2
- package/bundle/{chunk-H2URGA7U.js → chunk-MNBBUQQS.js} +3 -3
- package/bundle/{chunk-6S4UF4JM.js → chunk-O7TOZUUB.js} +3 -3
- package/bundle/{chunk-3C6JYNPC.js → chunk-QJ33O2NH.js} +7 -7
- package/bundle/{chunk-M6E5CLIH.js → chunk-RLDNVR77.js} +1 -1
- package/bundle/{chunk-R3JDAZVL.js → chunk-S3MXVTTY.js} +114 -22
- package/bundle/{chunk-QB46S6FV.js → chunk-TAWZWX2B.js} +1 -1
- package/bundle/{chunk-SHIJDXMN.js → chunk-XG56CL6B.js} +1 -1
- package/bundle/{chunk-XZF4EZOQ.js → chunk-YW7SDLZQ.js} +1 -1
- package/bundle/{cleanup-JP2FD3CQ.js → cleanup-2HUWGXK6.js} +2 -2
- package/bundle/{cleanup-YFIFTNZ6.js → cleanup-7N2HFE2E.js} +2 -2
- package/bundle/{cleanup-Z65H2CUW.js → cleanup-DA7OSZS5.js} +2 -2
- package/bundle/{core-UBOS4Q6R.js → core-2NMRPWUN.js} +7 -1
- package/bundle/{dist-B7OLK6PK.js → core-CFPIDJ4Z.js} +7 -1
- package/bundle/{devtoolsService-A34WT2MQ.js → devtoolsService-7YYOUGVF.js} +2 -2
- package/bundle/{devtoolsService-BHG3WQEY.js → devtoolsService-VQSLUOYF.js} +2 -2
- package/bundle/{devtoolsService-ACKZ7HRR.js → devtoolsService-WMEEEXY6.js} +2 -2
- package/bundle/{core-EKXLT2AG.js → dist-AMP5W5P2.js} +7 -1
- package/bundle/{gemini-NJXFBFVJ.js → gemini-5LF4JAP7.js} +14 -14
- package/bundle/{gemini-7Z3ODIIX.js → gemini-OYYGXMHL.js} +14 -14
- package/bundle/{gemini-3U3DNSSI.js → gemini-PSRJNVY5.js} +14 -14
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-LMXAWUCU.js → interactiveCli-5E2C3XOC.js} +40 -18
- package/bundle/{interactiveCli-FIWFPOOG.js → interactiveCli-5O6FZS57.js} +40 -18
- package/bundle/{interactiveCli-DNV4GCM5.js → interactiveCli-PP7WTUZL.js} +40 -18
- package/bundle/{liteRtServerManager-P62A6ZVG.js → liteRtServerManager-5QBFCLBK.js} +4 -4
- package/bundle/{liteRtServerManager-VBKDVKLU.js → liteRtServerManager-LK6HOSMO.js} +4 -4
- package/bundle/{liteRtServerManager-LQMOE7JK.js → liteRtServerManager-ZPDALIDY.js} +4 -4
- package/bundle/{oauth2-provider-FWKP5A4D.js → oauth2-provider-BGMEA7RS.js} +1 -1
- package/bundle/{oauth2-provider-BKNKX6FS.js → oauth2-provider-BYKBBEKI.js} +1 -1
- package/bundle/{oauth2-provider-UPRM4Y2J.js → oauth2-provider-CO22I6UM.js} +1 -1
- package/bundle/{start-DG3DHS3K.js → start-JRTTCV3K.js} +6 -6
- package/bundle/{start-Y2JKSYXK.js → start-KH6WSP5C.js} +6 -6
- package/bundle/{start-BMBCT2CF.js → start-O6LWZY6K.js} +6 -6
- package/package.json +1 -1
|
@@ -157,10 +157,10 @@ import {
|
|
|
157
157
|
widestLineFromStyledChars,
|
|
158
158
|
wordBreakStyledChars,
|
|
159
159
|
wrapStyledChars
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-ASZFEU6C.js";
|
|
161
161
|
import {
|
|
162
162
|
require_source
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-FYAMITQ2.js";
|
|
164
164
|
import {
|
|
165
165
|
appEvents
|
|
166
166
|
} from "./chunk-5PS3AYFU.js";
|
|
@@ -214,24 +214,24 @@ import {
|
|
|
214
214
|
stripAnsi,
|
|
215
215
|
stripUnsafeCharacters,
|
|
216
216
|
toCodePoints
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-GAROUUGQ.js";
|
|
218
218
|
import {
|
|
219
219
|
handleAutoUpdate,
|
|
220
220
|
isDevelopment,
|
|
221
221
|
relaunchApp,
|
|
222
222
|
setUpdateHandler
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-LQJHQ4BU.js";
|
|
224
224
|
import {
|
|
225
225
|
isTodoList,
|
|
226
226
|
mapCoreStatusToDisplayStatus,
|
|
227
227
|
require_react
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-XG56CL6B.js";
|
|
229
229
|
import {
|
|
230
230
|
registerCleanup,
|
|
231
231
|
removeCleanup,
|
|
232
232
|
runExitCleanup,
|
|
233
233
|
setupTtyCheck
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-GAS2GAYB.js";
|
|
235
235
|
import {
|
|
236
236
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
237
237
|
AGENT_TOOL_NAME,
|
|
@@ -437,7 +437,7 @@ import {
|
|
|
437
437
|
validatePlanContent,
|
|
438
438
|
validatePlanPath,
|
|
439
439
|
writeToStdout
|
|
440
|
-
} from "./chunk-
|
|
440
|
+
} from "./chunk-7HKQGPWB.js";
|
|
441
441
|
import "./chunk-664ZODQF.js";
|
|
442
442
|
import "./chunk-IUUIT4SU.js";
|
|
443
443
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -27115,6 +27115,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
27115
27115
|
const abortControllerRef = (0, import_react99.useRef)(null);
|
|
27116
27116
|
const turnCancelledRef = (0, import_react99.useRef)(false);
|
|
27117
27117
|
const activeQueryIdRef = (0, import_react99.useRef)(null);
|
|
27118
|
+
const historyLengthAfterUserPromptRef = (0, import_react99.useRef)(void 0);
|
|
27118
27119
|
const previousApprovalModeRef = (0, import_react99.useRef)(
|
|
27119
27120
|
config.getApprovalMode()
|
|
27120
27121
|
);
|
|
@@ -27441,6 +27442,9 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
27441
27442
|
const lastQueryRef = (0, import_react99.useRef)(null);
|
|
27442
27443
|
const lastPromptIdRef = (0, import_react99.useRef)(null);
|
|
27443
27444
|
const loopDetectedRef = (0, import_react99.useRef)(false);
|
|
27445
|
+
const autoNudgeAttemptCountRef = (0, import_react99.useRef)(0);
|
|
27446
|
+
const MAX_AUTO_NUDGE_ATTEMPTS = 2;
|
|
27447
|
+
const submitQueryRef = (0, import_react99.useRef)(null);
|
|
27444
27448
|
const [
|
|
27445
27449
|
loopDetectionConfirmationRequest,
|
|
27446
27450
|
setLoopDetectionConfirmationRequest
|
|
@@ -28059,7 +28063,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28059
28063
|
]
|
|
28060
28064
|
);
|
|
28061
28065
|
const processGeminiStreamEvents = (0, import_react99.useCallback)(
|
|
28062
|
-
async (stream, userMessageTimestamp, signal) => {
|
|
28066
|
+
async (stream, userMessageTimestamp, signal, isContinuation, prompt_id) => {
|
|
28063
28067
|
let geminiMessageBuffer = "";
|
|
28064
28068
|
const toolCallRequests = [];
|
|
28065
28069
|
for await (const event of stream) {
|
|
@@ -28148,6 +28152,17 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28148
28152
|
setPendingHistoryItem(null);
|
|
28149
28153
|
}
|
|
28150
28154
|
await scheduleToolCalls(toolCallRequests, signal);
|
|
28155
|
+
} else {
|
|
28156
|
+
const hasVisibleText = geminiMessageBuffer.trim().length > 0;
|
|
28157
|
+
if (isContinuation && !hasVisibleText && autoNudgeAttemptCountRef.current < MAX_AUTO_NUDGE_ATTEMPTS) {
|
|
28158
|
+
autoNudgeAttemptCountRef.current += 1;
|
|
28159
|
+
const nudgeMessage = "[System: You successfully executed a tool but returned an empty response. Please analyze the tool output and explain your progress or final answer.]";
|
|
28160
|
+
submitQueryRef.current?.(
|
|
28161
|
+
[{ text: nudgeMessage }],
|
|
28162
|
+
{ isContinuation: true },
|
|
28163
|
+
prompt_id
|
|
28164
|
+
);
|
|
28165
|
+
}
|
|
28151
28166
|
}
|
|
28152
28167
|
return 0 /* Completed */;
|
|
28153
28168
|
},
|
|
@@ -28187,6 +28202,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28187
28202
|
activeQueryIdRef.current = queryId;
|
|
28188
28203
|
const userMessageTimestamp = Date.now();
|
|
28189
28204
|
if (!options?.isContinuation) {
|
|
28205
|
+
autoNudgeAttemptCountRef.current = 0;
|
|
28190
28206
|
setModelSwitchedFromQuotaError(false);
|
|
28191
28207
|
config.setQuotaErrorOccurred(false);
|
|
28192
28208
|
config.resetBillingTurnState(
|
|
@@ -28212,6 +28228,9 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28212
28228
|
if (!shouldProceed || queryToSend === null) {
|
|
28213
28229
|
return;
|
|
28214
28230
|
}
|
|
28231
|
+
if (geminiClient) {
|
|
28232
|
+
historyLengthAfterUserPromptRef.current = geminiClient.getHistory().length;
|
|
28233
|
+
}
|
|
28215
28234
|
if (!options?.isContinuation) {
|
|
28216
28235
|
if (typeof queryToSend === "string") {
|
|
28217
28236
|
const promptText = queryToSend;
|
|
@@ -28243,7 +28262,9 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28243
28262
|
const processingStatus = await processGeminiStreamEvents(
|
|
28244
28263
|
stream,
|
|
28245
28264
|
userMessageTimestamp,
|
|
28246
|
-
abortSignal
|
|
28265
|
+
abortSignal,
|
|
28266
|
+
options?.isContinuation,
|
|
28267
|
+
prompt_id
|
|
28247
28268
|
);
|
|
28248
28269
|
if (processingStatus === 1 /* UserCancelled */) {
|
|
28249
28270
|
return;
|
|
@@ -28334,6 +28355,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28334
28355
|
setIsResponding
|
|
28335
28356
|
]
|
|
28336
28357
|
);
|
|
28358
|
+
submitQueryRef.current = submitQuery;
|
|
28337
28359
|
const handleApprovalModeChange = (0, import_react99.useCallback)(
|
|
28338
28360
|
async (newApprovalMode) => {
|
|
28339
28361
|
if (previousApprovalModeRef.current === ApprovalMode.PLAN && newApprovalMode !== ApprovalMode.PLAN && streamingState === "idle" /* Idle */) {
|
|
@@ -28512,14 +28534,14 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28512
28534
|
});
|
|
28513
28535
|
}
|
|
28514
28536
|
setIsResponding(false);
|
|
28515
|
-
if (geminiClient) {
|
|
28516
|
-
const
|
|
28517
|
-
|
|
28518
|
-
|
|
28519
|
-
|
|
28520
|
-
|
|
28521
|
-
|
|
28522
|
-
|
|
28537
|
+
if (geminiClient && historyLengthAfterUserPromptRef.current !== void 0) {
|
|
28538
|
+
const targetLength = historyLengthAfterUserPromptRef.current;
|
|
28539
|
+
if (geminiClient.getHistory().length > targetLength) {
|
|
28540
|
+
geminiClient.setHistory(
|
|
28541
|
+
geminiClient.getHistory().slice(0, targetLength)
|
|
28542
|
+
);
|
|
28543
|
+
}
|
|
28544
|
+
historyLengthAfterUserPromptRef.current = void 0;
|
|
28523
28545
|
}
|
|
28524
28546
|
const callIdsToMarkAsSubmitted2 = geminiTools.map(
|
|
28525
28547
|
(toolCall) => toolCall.request.callId
|
|
@@ -33943,7 +33965,7 @@ ${queuedText}` : queuedText;
|
|
|
33943
33965
|
if (keyMatchers["app.showErrorDetails" /* SHOW_ERROR_DETAILS */](key)) {
|
|
33944
33966
|
if (settings.merged.general.devtools) {
|
|
33945
33967
|
void (async () => {
|
|
33946
|
-
const { toggleDevToolsPanel } = await import("./devtoolsService-
|
|
33968
|
+
const { toggleDevToolsPanel } = await import("./devtoolsService-WMEEEXY6.js");
|
|
33947
33969
|
await toggleDevToolsPanel(
|
|
33948
33970
|
config,
|
|
33949
33971
|
showErrorDetails,
|
|
@@ -157,10 +157,10 @@ import {
|
|
|
157
157
|
widestLineFromStyledChars,
|
|
158
158
|
wordBreakStyledChars,
|
|
159
159
|
wrapStyledChars
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-QJ33O2NH.js";
|
|
161
161
|
import {
|
|
162
162
|
require_source
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-YW7SDLZQ.js";
|
|
164
164
|
import {
|
|
165
165
|
appEvents
|
|
166
166
|
} from "./chunk-5PS3AYFU.js";
|
|
@@ -214,24 +214,24 @@ import {
|
|
|
214
214
|
stripAnsi,
|
|
215
215
|
stripUnsafeCharacters,
|
|
216
216
|
toCodePoints
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-7ZGWPQVZ.js";
|
|
218
218
|
import {
|
|
219
219
|
handleAutoUpdate,
|
|
220
220
|
isDevelopment,
|
|
221
221
|
relaunchApp,
|
|
222
222
|
setUpdateHandler
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-AOE6E7MU.js";
|
|
224
224
|
import {
|
|
225
225
|
isTodoList,
|
|
226
226
|
mapCoreStatusToDisplayStatus,
|
|
227
227
|
require_react
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-TAWZWX2B.js";
|
|
229
229
|
import {
|
|
230
230
|
registerCleanup,
|
|
231
231
|
removeCleanup,
|
|
232
232
|
runExitCleanup,
|
|
233
233
|
setupTtyCheck
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-7IKUWYZO.js";
|
|
235
235
|
import {
|
|
236
236
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
237
237
|
AGENT_TOOL_NAME,
|
|
@@ -418,7 +418,7 @@ import {
|
|
|
418
418
|
validatePlanContent,
|
|
419
419
|
validatePlanPath,
|
|
420
420
|
writeToStdout
|
|
421
|
-
} from "./chunk-
|
|
421
|
+
} from "./chunk-S3MXVTTY.js";
|
|
422
422
|
import "./chunk-664ZODQF.js";
|
|
423
423
|
import "./chunk-IUUIT4SU.js";
|
|
424
424
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -27096,6 +27096,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
27096
27096
|
const abortControllerRef = (0, import_react99.useRef)(null);
|
|
27097
27097
|
const turnCancelledRef = (0, import_react99.useRef)(false);
|
|
27098
27098
|
const activeQueryIdRef = (0, import_react99.useRef)(null);
|
|
27099
|
+
const historyLengthAfterUserPromptRef = (0, import_react99.useRef)(void 0);
|
|
27099
27100
|
const previousApprovalModeRef = (0, import_react99.useRef)(
|
|
27100
27101
|
config.getApprovalMode()
|
|
27101
27102
|
);
|
|
@@ -27422,6 +27423,9 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
27422
27423
|
const lastQueryRef = (0, import_react99.useRef)(null);
|
|
27423
27424
|
const lastPromptIdRef = (0, import_react99.useRef)(null);
|
|
27424
27425
|
const loopDetectedRef = (0, import_react99.useRef)(false);
|
|
27426
|
+
const autoNudgeAttemptCountRef = (0, import_react99.useRef)(0);
|
|
27427
|
+
const MAX_AUTO_NUDGE_ATTEMPTS = 2;
|
|
27428
|
+
const submitQueryRef = (0, import_react99.useRef)(null);
|
|
27425
27429
|
const [
|
|
27426
27430
|
loopDetectionConfirmationRequest,
|
|
27427
27431
|
setLoopDetectionConfirmationRequest
|
|
@@ -28040,7 +28044,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28040
28044
|
]
|
|
28041
28045
|
);
|
|
28042
28046
|
const processGeminiStreamEvents = (0, import_react99.useCallback)(
|
|
28043
|
-
async (stream, userMessageTimestamp, signal) => {
|
|
28047
|
+
async (stream, userMessageTimestamp, signal, isContinuation, prompt_id) => {
|
|
28044
28048
|
let geminiMessageBuffer = "";
|
|
28045
28049
|
const toolCallRequests = [];
|
|
28046
28050
|
for await (const event of stream) {
|
|
@@ -28129,6 +28133,17 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28129
28133
|
setPendingHistoryItem(null);
|
|
28130
28134
|
}
|
|
28131
28135
|
await scheduleToolCalls(toolCallRequests, signal);
|
|
28136
|
+
} else {
|
|
28137
|
+
const hasVisibleText = geminiMessageBuffer.trim().length > 0;
|
|
28138
|
+
if (isContinuation && !hasVisibleText && autoNudgeAttemptCountRef.current < MAX_AUTO_NUDGE_ATTEMPTS) {
|
|
28139
|
+
autoNudgeAttemptCountRef.current += 1;
|
|
28140
|
+
const nudgeMessage = "[System: You successfully executed a tool but returned an empty response. Please analyze the tool output and explain your progress or final answer.]";
|
|
28141
|
+
submitQueryRef.current?.(
|
|
28142
|
+
[{ text: nudgeMessage }],
|
|
28143
|
+
{ isContinuation: true },
|
|
28144
|
+
prompt_id
|
|
28145
|
+
);
|
|
28146
|
+
}
|
|
28132
28147
|
}
|
|
28133
28148
|
return 0 /* Completed */;
|
|
28134
28149
|
},
|
|
@@ -28168,6 +28183,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28168
28183
|
activeQueryIdRef.current = queryId;
|
|
28169
28184
|
const userMessageTimestamp = Date.now();
|
|
28170
28185
|
if (!options?.isContinuation) {
|
|
28186
|
+
autoNudgeAttemptCountRef.current = 0;
|
|
28171
28187
|
setModelSwitchedFromQuotaError(false);
|
|
28172
28188
|
config.setQuotaErrorOccurred(false);
|
|
28173
28189
|
config.resetBillingTurnState(
|
|
@@ -28193,6 +28209,9 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28193
28209
|
if (!shouldProceed || queryToSend === null) {
|
|
28194
28210
|
return;
|
|
28195
28211
|
}
|
|
28212
|
+
if (geminiClient) {
|
|
28213
|
+
historyLengthAfterUserPromptRef.current = geminiClient.getHistory().length;
|
|
28214
|
+
}
|
|
28196
28215
|
if (!options?.isContinuation) {
|
|
28197
28216
|
if (typeof queryToSend === "string") {
|
|
28198
28217
|
const promptText = queryToSend;
|
|
@@ -28224,7 +28243,9 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28224
28243
|
const processingStatus = await processGeminiStreamEvents(
|
|
28225
28244
|
stream,
|
|
28226
28245
|
userMessageTimestamp,
|
|
28227
|
-
abortSignal
|
|
28246
|
+
abortSignal,
|
|
28247
|
+
options?.isContinuation,
|
|
28248
|
+
prompt_id
|
|
28228
28249
|
);
|
|
28229
28250
|
if (processingStatus === 1 /* UserCancelled */) {
|
|
28230
28251
|
return;
|
|
@@ -28315,6 +28336,7 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28315
28336
|
setIsResponding
|
|
28316
28337
|
]
|
|
28317
28338
|
);
|
|
28339
|
+
submitQueryRef.current = submitQuery;
|
|
28318
28340
|
const handleApprovalModeChange = (0, import_react99.useCallback)(
|
|
28319
28341
|
async (newApprovalMode) => {
|
|
28320
28342
|
if (previousApprovalModeRef.current === "plan" /* PLAN */ && newApprovalMode !== "plan" /* PLAN */ && streamingState === "idle" /* Idle */) {
|
|
@@ -28493,14 +28515,14 @@ var useGeminiStream = (geminiClient, history, addItem, config, settings, onDebug
|
|
|
28493
28515
|
});
|
|
28494
28516
|
}
|
|
28495
28517
|
setIsResponding(false);
|
|
28496
|
-
if (geminiClient) {
|
|
28497
|
-
const
|
|
28498
|
-
|
|
28499
|
-
|
|
28500
|
-
|
|
28501
|
-
|
|
28502
|
-
|
|
28503
|
-
|
|
28518
|
+
if (geminiClient && historyLengthAfterUserPromptRef.current !== void 0) {
|
|
28519
|
+
const targetLength = historyLengthAfterUserPromptRef.current;
|
|
28520
|
+
if (geminiClient.getHistory().length > targetLength) {
|
|
28521
|
+
geminiClient.setHistory(
|
|
28522
|
+
geminiClient.getHistory().slice(0, targetLength)
|
|
28523
|
+
);
|
|
28524
|
+
}
|
|
28525
|
+
historyLengthAfterUserPromptRef.current = void 0;
|
|
28504
28526
|
}
|
|
28505
28527
|
const callIdsToMarkAsSubmitted2 = geminiTools.map(
|
|
28506
28528
|
(toolCall) => toolCall.request.callId
|
|
@@ -33924,7 +33946,7 @@ ${queuedText}` : queuedText;
|
|
|
33924
33946
|
if (keyMatchers["app.showErrorDetails" /* SHOW_ERROR_DETAILS */](key)) {
|
|
33925
33947
|
if (settings.merged.general.devtools) {
|
|
33926
33948
|
void (async () => {
|
|
33927
|
-
const { toggleDevToolsPanel } = await import("./devtoolsService-
|
|
33949
|
+
const { toggleDevToolsPanel } = await import("./devtoolsService-VQSLUOYF.js");
|
|
33928
33950
|
await toggleDevToolsPanel(
|
|
33929
33951
|
config,
|
|
33930
33952
|
showErrorDetails,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
DEFAULT_PORT,
|
|
4
4
|
getBinaryPath,
|
|
5
5
|
isServerRunning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-GPOBVDAD.js";
|
|
7
|
+
import "./chunk-FVC4WCSP.js";
|
|
8
8
|
import {
|
|
9
9
|
debugLogger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DFPYJMVX.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-IUUIT4SU.js";
|
|
13
13
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -41,7 +41,7 @@ var LiteRtServerManager = class {
|
|
|
41
41
|
`[LiteRtServerManager] Auto-starting LiteRT server on port ${port}...`
|
|
42
42
|
);
|
|
43
43
|
try {
|
|
44
|
-
const { startServer } = await import("./start-
|
|
44
|
+
const { startServer } = await import("./start-JRTTCV3K.js");
|
|
45
45
|
const started = await startServer(binaryPath, port);
|
|
46
46
|
if (started) {
|
|
47
47
|
debugLogger.log(`[LiteRtServerManager] Server started on port ${port}`);
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
DEFAULT_PORT,
|
|
4
4
|
getBinaryPath,
|
|
5
5
|
isServerRunning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-GAROUUGQ.js";
|
|
7
|
+
import "./chunk-XG56CL6B.js";
|
|
8
8
|
import {
|
|
9
9
|
debugLogger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7HKQGPWB.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-IUUIT4SU.js";
|
|
13
13
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -41,7 +41,7 @@ var LiteRtServerManager = class {
|
|
|
41
41
|
`[LiteRtServerManager] Auto-starting LiteRT server on port ${port}...`
|
|
42
42
|
);
|
|
43
43
|
try {
|
|
44
|
-
const { startServer } = await import("./start-
|
|
44
|
+
const { startServer } = await import("./start-O6LWZY6K.js");
|
|
45
45
|
const started = await startServer(binaryPath, port);
|
|
46
46
|
if (started) {
|
|
47
47
|
debugLogger.log(`[LiteRtServerManager] Server started on port ${port}`);
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
DEFAULT_PORT,
|
|
4
4
|
getBinaryPath,
|
|
5
5
|
isServerRunning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7ZGWPQVZ.js";
|
|
7
|
+
import "./chunk-TAWZWX2B.js";
|
|
8
8
|
import {
|
|
9
9
|
debugLogger
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S3MXVTTY.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-IUUIT4SU.js";
|
|
13
13
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -41,7 +41,7 @@ var LiteRtServerManager = class {
|
|
|
41
41
|
`[LiteRtServerManager] Auto-starting LiteRT server on port ${port}...`
|
|
42
42
|
);
|
|
43
43
|
try {
|
|
44
|
-
const { startServer } = await import("./start-
|
|
44
|
+
const { startServer } = await import("./start-KH6WSP5C.js");
|
|
45
45
|
const started = await startServer(binaryPath, port);
|
|
46
46
|
if (started) {
|
|
47
47
|
debugLogger.log(`[LiteRtServerManager] Server started on port ${port}`);
|
|
@@ -2,12 +2,12 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
startCommand,
|
|
4
4
|
startServer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MNBBUQQS.js";
|
|
6
|
+
import "./chunk-HY6GN2F7.js";
|
|
7
|
+
import "./chunk-GPOBVDAD.js";
|
|
8
|
+
import "./chunk-FVC4WCSP.js";
|
|
9
|
+
import "./chunk-RLDNVR77.js";
|
|
10
|
+
import "./chunk-DFPYJMVX.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-IUUIT4SU.js";
|
|
13
13
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -2,12 +2,12 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
startCommand,
|
|
4
4
|
startServer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-O7TOZUUB.js";
|
|
6
|
+
import "./chunk-YW7SDLZQ.js";
|
|
7
|
+
import "./chunk-7ZGWPQVZ.js";
|
|
8
|
+
import "./chunk-TAWZWX2B.js";
|
|
9
|
+
import "./chunk-7IKUWYZO.js";
|
|
10
|
+
import "./chunk-S3MXVTTY.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-IUUIT4SU.js";
|
|
13
13
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -2,12 +2,12 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
startCommand,
|
|
4
4
|
startServer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-4H4K2RBL.js";
|
|
6
|
+
import "./chunk-FYAMITQ2.js";
|
|
7
|
+
import "./chunk-GAROUUGQ.js";
|
|
8
|
+
import "./chunk-XG56CL6B.js";
|
|
9
|
+
import "./chunk-GAS2GAYB.js";
|
|
10
|
+
import "./chunk-7HKQGPWB.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-IUUIT4SU.js";
|
|
13
13
|
import "./chunk-TUDYL3X4.js";
|