@google/gemini-cli 0.57.0-preview.0 → 0.57.0-preview.1
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-ACDZS2RE.js → chunk-3BVBON3V.js} +1 -1
- package/bundle/{chunk-2UGGPOEV.js → chunk-3NPMAHLX.js} +1 -1
- package/bundle/{chunk-QVDXZMEX.js → chunk-4ALCU2HQ.js} +1 -1
- package/bundle/{chunk-NXS624CI.js → chunk-4SNEOO5E.js} +2 -2
- package/bundle/{chunk-73OHVDUZ.js → chunk-65C235NM.js} +7 -7
- package/bundle/{chunk-HKTHSWSS.js → chunk-AKCYXG7C.js} +7 -7
- package/bundle/{chunk-IKGOC5B6.js → chunk-ALVDOQNA.js} +1 -1
- package/bundle/{chunk-OFFEM74O.js → chunk-EAK33LFP.js} +1 -1
- package/bundle/{chunk-3C6JYNPC.js → chunk-FHDRG5U4.js} +67 -54
- package/bundle/{chunk-2UICYJMD.js → chunk-G65GW52B.js} +107 -21
- package/bundle/{chunk-WH63Z45A.js → chunk-GK7NUJ35.js} +8 -5
- package/bundle/{chunk-SHIJDXMN.js → chunk-GMQ6QNZB.js} +1 -1
- package/bundle/chunk-LNXGFWGZ.js +17332 -0
- package/bundle/{chunk-O3QB4SVS.js → chunk-MBWROXYM.js} +2 -2
- package/bundle/{chunk-W4CY7TCG.js → chunk-NMMXRZ53.js} +2 -2
- package/bundle/{chunk-R3JDAZVL.js → chunk-NPOI4K6X.js} +7771 -14363
- package/bundle/{chunk-QB46S6FV.js → chunk-NQ4RH42O.js} +9 -8
- package/bundle/{chunk-FWGOOSQK.js → chunk-O7SBKM7M.js} +112 -20
- package/bundle/{chunk-M6E5CLIH.js → chunk-Q73BPF7A.js} +1 -1
- package/bundle/{chunk-XDJMDRLM.js → chunk-QJP6CMLN.js} +3 -3
- package/bundle/{chunk-EBKNEOAO.js → chunk-RLDNUS35.js} +1 -1
- package/bundle/{chunk-H2URGA7U.js → chunk-S5UX3QS5.js} +3 -3
- package/bundle/{chunk-XZF4EZOQ.js → chunk-SCBVGZXH.js} +1 -1
- package/bundle/chunk-SWQAIZEQ.js +102506 -0
- package/bundle/{chunk-6S4UF4JM.js → chunk-UMQE7UC6.js} +3 -3
- package/bundle/{chunk-ZY7Z5W6K.js → chunk-VBK54QCZ.js} +1 -1
- package/bundle/chunk-VGGWKRAC.js +154 -0
- package/bundle/chunk-W23OOD2C.js +118 -0
- package/bundle/chunk-WDFSF5L4.js +397601 -0
- package/bundle/chunk-XESAM7IL.js +512 -0
- package/bundle/chunk-Y3APL4PE.js +1571 -0
- package/bundle/chunk-ZMPGHLGO.js +398 -0
- package/bundle/{cleanup-JP2FD3CQ.js → cleanup-2W5DPMY3.js} +2 -2
- package/bundle/{cleanup-YFIFTNZ6.js → cleanup-OTHE7RNU.js} +2 -2
- package/bundle/{cleanup-Z65H2CUW.js → cleanup-SM67K64R.js} +2 -2
- package/bundle/cleanup-XAUT5CMD.js +32 -0
- package/bundle/{core-UBOS4Q6R.js → core-US34OW5M.js} +7 -1
- package/bundle/{devtoolsService-A34WT2MQ.js → devtoolsService-5J53UK6Z.js} +2 -2
- package/bundle/{devtoolsService-ACKZ7HRR.js → devtoolsService-GU2GQSOF.js} +2 -2
- package/bundle/{devtoolsService-BHG3WQEY.js → devtoolsService-JBFUXTCT.js} +4 -3
- package/bundle/devtoolsService-V46GUHRF.js +4359 -0
- package/bundle/{dist-B7OLK6PK.js → dist-5TYMQVIZ.js} +7 -1
- package/bundle/{core-EKXLT2AG.js → dist-OWKHVWTR.js} +7 -1
- package/bundle/dist-V5VJYW6J.js +2180 -0
- package/bundle/{gemini-3U3DNSSI.js → gemini-3M22N2C3.js} +13 -13
- package/bundle/{gemini-NJXFBFVJ.js → gemini-LSMTDETS.js} +214 -198
- package/bundle/gemini-OZOYJF22.js +17091 -0
- package/bundle/{gemini-7Z3ODIIX.js → gemini-W2B6CLJC.js} +13 -13
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-FIWFPOOG.js → interactiveCli-D6H37PJQ.js} +40 -18
- package/bundle/{interactiveCli-DNV4GCM5.js → interactiveCli-L3ZXOVEV.js} +347 -306
- package/bundle/{interactiveCli-LMXAWUCU.js → interactiveCli-LQJM6LRE.js} +40 -18
- package/bundle/interactiveCli-RGOYDSMH.js +34984 -0
- package/bundle/{liteRtServerManager-P62A6ZVG.js → liteRtServerManager-3BY6TBHG.js} +4 -4
- package/bundle/{liteRtServerManager-VBKDVKLU.js → liteRtServerManager-C5WZRQUF.js} +4 -4
- package/bundle/{liteRtServerManager-LQMOE7JK.js → liteRtServerManager-IGKUGGP4.js} +4 -4
- package/bundle/liteRtServerManager-IJ4I2PZA.js +65 -0
- package/bundle/{oauth2-provider-FWKP5A4D.js → oauth2-provider-KSRLPOK3.js} +1 -1
- package/bundle/{oauth2-provider-BKNKX6FS.js → oauth2-provider-RWKTMYJF.js} +1 -1
- package/bundle/{oauth2-provider-UPRM4Y2J.js → oauth2-provider-VHNLCU4Y.js} +38 -72
- package/bundle/oauth2-provider-ZT4OFVMK.js +235 -0
- package/bundle/{start-DG3DHS3K.js → start-EXAQFM4Y.js} +6 -6
- package/bundle/{start-Y2JKSYXK.js → start-IPZF32E3.js} +6 -6
- package/bundle/{start-BMBCT2CF.js → start-SVNTSNHV.js} +6 -6
- package/bundle/start-ZXU5BFZY.js +18 -0
- 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-AKCYXG7C.js";
|
|
161
161
|
import {
|
|
162
162
|
require_source
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-SCBVGZXH.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-ALVDOQNA.js";
|
|
218
218
|
import {
|
|
219
219
|
handleAutoUpdate,
|
|
220
220
|
isDevelopment,
|
|
221
221
|
relaunchApp,
|
|
222
222
|
setUpdateHandler
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-4SNEOO5E.js";
|
|
224
224
|
import {
|
|
225
225
|
isTodoList,
|
|
226
226
|
mapCoreStatusToDisplayStatus,
|
|
227
227
|
require_react
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-VBK54QCZ.js";
|
|
229
229
|
import {
|
|
230
230
|
registerCleanup,
|
|
231
231
|
removeCleanup,
|
|
232
232
|
runExitCleanup,
|
|
233
233
|
setupTtyCheck
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-Q73BPF7A.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-O7SBKM7M.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-5J53UK6Z.js");
|
|
33928
33950
|
await toggleDevToolsPanel(
|
|
33929
33951
|
config,
|
|
33930
33952
|
showErrorDetails,
|