@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.
Files changed (50) hide show
  1. package/bundle/{chunk-XDJMDRLM.js → chunk-4H4K2RBL.js} +3 -3
  2. package/bundle/{chunk-2UICYJMD.js → chunk-7HKQGPWB.js} +108 -22
  3. package/bundle/{chunk-2UGGPOEV.js → chunk-7IKUWYZO.js} +1 -1
  4. package/bundle/{chunk-IKGOC5B6.js → chunk-7ZGWPQVZ.js} +1 -1
  5. package/bundle/{chunk-NXS624CI.js → chunk-AOE6E7MU.js} +2 -2
  6. package/bundle/{chunk-73OHVDUZ.js → chunk-ASZFEU6C.js} +7 -7
  7. package/bundle/{chunk-FWGOOSQK.js → chunk-DFPYJMVX.js} +114 -22
  8. package/bundle/{chunk-ZY7Z5W6K.js → chunk-FVC4WCSP.js} +1 -1
  9. package/bundle/{chunk-ACDZS2RE.js → chunk-FYAMITQ2.js} +1 -1
  10. package/bundle/{chunk-QVDXZMEX.js → chunk-GAROUUGQ.js} +1 -1
  11. package/bundle/{chunk-OFFEM74O.js → chunk-GAS2GAYB.js} +1 -1
  12. package/bundle/{chunk-WH63Z45A.js → chunk-GPOBVDAD.js} +1 -1
  13. package/bundle/{chunk-EBKNEOAO.js → chunk-HY6GN2F7.js} +1 -1
  14. package/bundle/{chunk-HKTHSWSS.js → chunk-IKHAM2LG.js} +7 -7
  15. package/bundle/{chunk-O3QB4SVS.js → chunk-ISXOUBN5.js} +2 -2
  16. package/bundle/{chunk-W4CY7TCG.js → chunk-LQJHQ4BU.js} +2 -2
  17. package/bundle/{chunk-H2URGA7U.js → chunk-MNBBUQQS.js} +3 -3
  18. package/bundle/{chunk-6S4UF4JM.js → chunk-O7TOZUUB.js} +3 -3
  19. package/bundle/{chunk-3C6JYNPC.js → chunk-QJ33O2NH.js} +7 -7
  20. package/bundle/{chunk-M6E5CLIH.js → chunk-RLDNVR77.js} +1 -1
  21. package/bundle/{chunk-R3JDAZVL.js → chunk-S3MXVTTY.js} +114 -22
  22. package/bundle/{chunk-QB46S6FV.js → chunk-TAWZWX2B.js} +1 -1
  23. package/bundle/{chunk-SHIJDXMN.js → chunk-XG56CL6B.js} +1 -1
  24. package/bundle/{chunk-XZF4EZOQ.js → chunk-YW7SDLZQ.js} +1 -1
  25. package/bundle/{cleanup-JP2FD3CQ.js → cleanup-2HUWGXK6.js} +2 -2
  26. package/bundle/{cleanup-YFIFTNZ6.js → cleanup-7N2HFE2E.js} +2 -2
  27. package/bundle/{cleanup-Z65H2CUW.js → cleanup-DA7OSZS5.js} +2 -2
  28. package/bundle/{core-UBOS4Q6R.js → core-2NMRPWUN.js} +7 -1
  29. package/bundle/{dist-B7OLK6PK.js → core-CFPIDJ4Z.js} +7 -1
  30. package/bundle/{devtoolsService-A34WT2MQ.js → devtoolsService-7YYOUGVF.js} +2 -2
  31. package/bundle/{devtoolsService-BHG3WQEY.js → devtoolsService-VQSLUOYF.js} +2 -2
  32. package/bundle/{devtoolsService-ACKZ7HRR.js → devtoolsService-WMEEEXY6.js} +2 -2
  33. package/bundle/{core-EKXLT2AG.js → dist-AMP5W5P2.js} +7 -1
  34. package/bundle/{gemini-NJXFBFVJ.js → gemini-5LF4JAP7.js} +14 -14
  35. package/bundle/{gemini-7Z3ODIIX.js → gemini-OYYGXMHL.js} +14 -14
  36. package/bundle/{gemini-3U3DNSSI.js → gemini-PSRJNVY5.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-LMXAWUCU.js → interactiveCli-5E2C3XOC.js} +40 -18
  39. package/bundle/{interactiveCli-FIWFPOOG.js → interactiveCli-5O6FZS57.js} +40 -18
  40. package/bundle/{interactiveCli-DNV4GCM5.js → interactiveCli-PP7WTUZL.js} +40 -18
  41. package/bundle/{liteRtServerManager-P62A6ZVG.js → liteRtServerManager-5QBFCLBK.js} +4 -4
  42. package/bundle/{liteRtServerManager-VBKDVKLU.js → liteRtServerManager-LK6HOSMO.js} +4 -4
  43. package/bundle/{liteRtServerManager-LQMOE7JK.js → liteRtServerManager-ZPDALIDY.js} +4 -4
  44. package/bundle/{oauth2-provider-FWKP5A4D.js → oauth2-provider-BGMEA7RS.js} +1 -1
  45. package/bundle/{oauth2-provider-BKNKX6FS.js → oauth2-provider-BYKBBEKI.js} +1 -1
  46. package/bundle/{oauth2-provider-UPRM4Y2J.js → oauth2-provider-CO22I6UM.js} +1 -1
  47. package/bundle/{start-DG3DHS3K.js → start-JRTTCV3K.js} +6 -6
  48. package/bundle/{start-Y2JKSYXK.js → start-KH6WSP5C.js} +6 -6
  49. package/bundle/{start-BMBCT2CF.js → start-O6LWZY6K.js} +6 -6
  50. package/package.json +1 -1
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  coreEvents,
4
4
  debugLogger
5
- } from "./chunk-R3JDAZVL.js";
5
+ } from "./chunk-DFPYJMVX.js";
6
6
  import "./chunk-664ZODQF.js";
7
7
  import "./chunk-IUUIT4SU.js";
8
8
  import "./chunk-TUDYL3X4.js";
@@ -4324,7 +4324,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
4324
4324
  return;
4325
4325
  }
4326
4326
  try {
4327
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-EKXLT2AG.js");
4327
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-2NMRPWUN.js");
4328
4328
  const url = await startDevToolsServer(config);
4329
4329
  if (shouldLaunchBrowser()) {
4330
4330
  try {
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  coreEvents,
4
4
  debugLogger
5
- } from "./chunk-FWGOOSQK.js";
5
+ } from "./chunk-S3MXVTTY.js";
6
6
  import "./chunk-664ZODQF.js";
7
7
  import "./chunk-IUUIT4SU.js";
8
8
  import "./chunk-TUDYL3X4.js";
@@ -4324,7 +4324,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
4324
4324
  return;
4325
4325
  }
4326
4326
  try {
4327
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-UBOS4Q6R.js");
4327
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-CFPIDJ4Z.js");
4328
4328
  const url = await startDevToolsServer(config);
4329
4329
  if (shouldLaunchBrowser()) {
4330
4330
  try {
@@ -3,7 +3,7 @@ import {
3
3
  CoreEvent,
4
4
  coreEvents,
5
5
  debugLogger
6
- } from "./chunk-2UICYJMD.js";
6
+ } from "./chunk-7HKQGPWB.js";
7
7
  import "./chunk-664ZODQF.js";
8
8
  import "./chunk-IUUIT4SU.js";
9
9
  import "./chunk-TUDYL3X4.js";
@@ -4325,7 +4325,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
4325
4325
  return;
4326
4326
  }
4327
4327
  try {
4328
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-B7OLK6PK.js");
4328
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-AMP5W5P2.js");
4329
4329
  const url = await startDevToolsServer(config);
4330
4330
  if (shouldLaunchBrowser()) {
4331
4331
  try {
@@ -337,6 +337,7 @@ import {
337
337
  ModelRouterService,
338
338
  ModelSlashCommandEvent,
339
339
  NO_EDITOR_AVAILABLE_ERROR,
340
+ NO_RESPONSE_TEXT_NUDGE_MESSAGE,
340
341
  NetworkRetryAttemptEvent,
341
342
  NodeType,
342
343
  NoopSandboxManager,
@@ -452,6 +453,7 @@ import {
452
453
  SubagentState,
453
454
  TASK_TYPE_LABELS,
454
455
  THINKING_ONLY_COMPRESS_SUGGESTION,
456
+ THINKING_ONLY_NUDGE_MESSAGE,
455
457
  TODOS_ITEM_PARAM_DESCRIPTION,
456
458
  TODOS_ITEM_PARAM_STATUS,
457
459
  TODOS_PARAM_TODOS,
@@ -539,6 +541,7 @@ import {
539
541
  applyInboxPatch,
540
542
  applyReplacement,
541
543
  applyRequiredServers,
544
+ applyRetryNudge,
542
545
  assertValidPathString,
543
546
  assumeExhaustive,
544
547
  authEvents,
@@ -1080,7 +1083,7 @@ import {
1080
1083
  wrapUntrusted,
1081
1084
  writeToStderr,
1082
1085
  writeToStdout
1083
- } from "./chunk-R3JDAZVL.js";
1086
+ } from "./chunk-7HKQGPWB.js";
1084
1087
  import "./chunk-664ZODQF.js";
1085
1088
  import {
1086
1089
  SpanStatusCode,
@@ -1426,6 +1429,7 @@ export {
1426
1429
  ModelRouterService,
1427
1430
  ModelSlashCommandEvent,
1428
1431
  NO_EDITOR_AVAILABLE_ERROR,
1432
+ NO_RESPONSE_TEXT_NUDGE_MESSAGE,
1429
1433
  NetworkRetryAttemptEvent,
1430
1434
  NodeType,
1431
1435
  NoopSandboxManager,
@@ -1542,6 +1546,7 @@ export {
1542
1546
  SubagentState,
1543
1547
  TASK_TYPE_LABELS,
1544
1548
  THINKING_ONLY_COMPRESS_SUGGESTION,
1549
+ THINKING_ONLY_NUDGE_MESSAGE,
1545
1550
  TODOS_ITEM_PARAM_DESCRIPTION,
1546
1551
  TODOS_ITEM_PARAM_STATUS,
1547
1552
  TODOS_PARAM_TODOS,
@@ -1630,6 +1635,7 @@ export {
1630
1635
  applyInboxPatch,
1631
1636
  applyReplacement,
1632
1637
  applyRequiredServers,
1638
+ applyRetryNudge,
1633
1639
  assertValidPathString,
1634
1640
  assumeExhaustive,
1635
1641
  authEvents,
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  startCommand,
4
4
  startServer
5
- } from "./chunk-H2URGA7U.js";
5
+ } from "./chunk-O7TOZUUB.js";
6
6
  import {
7
7
  BuiltinCommandLoader,
8
8
  CommandService,
@@ -45,11 +45,11 @@ import {
45
45
  updateAllUpdatableExtensions,
46
46
  updateExtension,
47
47
  validateAuthMethod
48
- } from "./chunk-HKTHSWSS.js";
48
+ } from "./chunk-QJ33O2NH.js";
49
49
  import {
50
50
  exitCli,
51
51
  require_source
52
- } from "./chunk-ACDZS2RE.js";
52
+ } from "./chunk-YW7SDLZQ.js";
53
53
  import {
54
54
  appEvents
55
55
  } from "./chunk-5PS3AYFU.js";
@@ -87,11 +87,11 @@ import {
87
87
  resolveGemmaConfig,
88
88
  saveModelChange,
89
89
  stripAnsi
90
- } from "./chunk-WH63Z45A.js";
90
+ } from "./chunk-7ZGWPQVZ.js";
91
91
  import {
92
92
  RELAUNCH_EXIT_CODE
93
- } from "./chunk-W4CY7TCG.js";
94
- import "./chunk-QB46S6FV.js";
93
+ } from "./chunk-AOE6E7MU.js";
94
+ import "./chunk-TAWZWX2B.js";
95
95
  import {
96
96
  cleanupCheckpoints,
97
97
  registerCleanup,
@@ -100,7 +100,7 @@ import {
100
100
  runExitCleanup,
101
101
  runSyncCleanup,
102
102
  setupSignalHandlers
103
- } from "./chunk-2UGGPOEV.js";
103
+ } from "./chunk-7IKUWYZO.js";
104
104
  import {
105
105
  ASK_USER_TOOL_NAME,
106
106
  AuthType,
@@ -238,7 +238,7 @@ import {
238
238
  updatePolicy,
239
239
  writeToStderr,
240
240
  writeToStdout
241
- } from "./chunk-R3JDAZVL.js";
241
+ } from "./chunk-S3MXVTTY.js";
242
242
  import "./chunk-664ZODQF.js";
243
243
  import "./chunk-IUUIT4SU.js";
244
244
  import "./chunk-TUDYL3X4.js";
@@ -7832,7 +7832,7 @@ async function loadSandboxConfig(settings, argv) {
7832
7832
  }
7833
7833
  const command2 = getSandboxCommand(sandboxValue);
7834
7834
  const packageJson = await getPackageJson(__dirname3);
7835
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.56.0-nightly.20260806.g761f604c1" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7835
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.57.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7836
7836
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7837
7837
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7838
7838
  }
@@ -10839,7 +10839,7 @@ async function runNonInteractive({
10839
10839
  }
10840
10840
  });
10841
10841
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10842
- const { setupInitialActivityLogger } = await import("./devtoolsService-A34WT2MQ.js");
10842
+ const { setupInitialActivityLogger } = await import("./devtoolsService-VQSLUOYF.js");
10843
10843
  setupInitialActivityLogger(config);
10844
10844
  }
10845
10845
  const { stdout: workingStdout } = createWorkingStdio();
@@ -11349,7 +11349,7 @@ async function runNonInteractive2(params) {
11349
11349
  }
11350
11350
  });
11351
11351
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
11352
- const { setupInitialActivityLogger } = await import("./devtoolsService-A34WT2MQ.js");
11352
+ const { setupInitialActivityLogger } = await import("./devtoolsService-VQSLUOYF.js");
11353
11353
  setupInitialActivityLogger(config);
11354
11354
  }
11355
11355
  const { stdout: workingStdout } = createWorkingStdio();
@@ -16559,7 +16559,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
16559
16559
  }
16560
16560
  }
16561
16561
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
16562
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-DNV4GCM5.js");
16562
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-PP7WTUZL.js");
16563
16563
  await doStartUI(
16564
16564
  config,
16565
16565
  settings,
@@ -16768,7 +16768,7 @@ ${finalArgs[promptIndex + 1]}`;
16768
16768
  await config.storage.initialize();
16769
16769
  adminControlsListner.setConfig(config);
16770
16770
  if (config.isInteractive() && settings.merged.general.devtools) {
16771
- const { setupInitialActivityLogger } = await import("./devtoolsService-A34WT2MQ.js");
16771
+ const { setupInitialActivityLogger } = await import("./devtoolsService-VQSLUOYF.js");
16772
16772
  setupInitialActivityLogger(config);
16773
16773
  }
16774
16774
  registerTelemetryConfig(config);
@@ -16827,7 +16827,7 @@ ${finalArgs[promptIndex + 1]}`;
16827
16827
  const initAppHandle = startupProfiler.start("initialize_app");
16828
16828
  const initializationResult = await initializeApp(config, settings);
16829
16829
  initAppHandle?.end();
16830
- import("./liteRtServerManager-LQMOE7JK.js").then(({ LiteRtServerManager }) => {
16830
+ import("./liteRtServerManager-ZPDALIDY.js").then(({ LiteRtServerManager }) => {
16831
16831
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16832
16832
  if (!mergedGemma) return;
16833
16833
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  startCommand,
4
4
  startServer
5
- } from "./chunk-XDJMDRLM.js";
5
+ } from "./chunk-4H4K2RBL.js";
6
6
  import {
7
7
  BuiltinCommandLoader,
8
8
  CommandService,
@@ -45,11 +45,11 @@ import {
45
45
  updateAllUpdatableExtensions,
46
46
  updateExtension,
47
47
  validateAuthMethod
48
- } from "./chunk-73OHVDUZ.js";
48
+ } from "./chunk-ASZFEU6C.js";
49
49
  import {
50
50
  exitCli,
51
51
  require_source
52
- } from "./chunk-XZF4EZOQ.js";
52
+ } from "./chunk-FYAMITQ2.js";
53
53
  import {
54
54
  appEvents
55
55
  } from "./chunk-5PS3AYFU.js";
@@ -87,11 +87,11 @@ import {
87
87
  resolveGemmaConfig,
88
88
  saveModelChange,
89
89
  stripAnsi
90
- } from "./chunk-QVDXZMEX.js";
90
+ } from "./chunk-GAROUUGQ.js";
91
91
  import {
92
92
  RELAUNCH_EXIT_CODE
93
- } from "./chunk-O3QB4SVS.js";
94
- import "./chunk-SHIJDXMN.js";
93
+ } from "./chunk-LQJHQ4BU.js";
94
+ import "./chunk-XG56CL6B.js";
95
95
  import {
96
96
  cleanupCheckpoints,
97
97
  registerCleanup,
@@ -100,7 +100,7 @@ import {
100
100
  runExitCleanup,
101
101
  runSyncCleanup,
102
102
  setupSignalHandlers
103
- } from "./chunk-M6E5CLIH.js";
103
+ } from "./chunk-GAS2GAYB.js";
104
104
  import {
105
105
  ASK_USER_TOOL_NAME,
106
106
  ApprovalMode,
@@ -254,7 +254,7 @@ import {
254
254
  updatePolicy,
255
255
  writeToStderr,
256
256
  writeToStdout
257
- } from "./chunk-2UICYJMD.js";
257
+ } from "./chunk-7HKQGPWB.js";
258
258
  import "./chunk-664ZODQF.js";
259
259
  import "./chunk-IUUIT4SU.js";
260
260
  import "./chunk-TUDYL3X4.js";
@@ -7848,7 +7848,7 @@ async function loadSandboxConfig(settings, argv) {
7848
7848
  }
7849
7849
  const command2 = getSandboxCommand(sandboxValue);
7850
7850
  const packageJson = await getPackageJson(__dirname3);
7851
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.57.0-preview.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7851
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.57.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7852
7852
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7853
7853
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7854
7854
  }
@@ -10855,7 +10855,7 @@ async function runNonInteractive({
10855
10855
  }
10856
10856
  });
10857
10857
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10858
- const { setupInitialActivityLogger } = await import("./devtoolsService-ACKZ7HRR.js");
10858
+ const { setupInitialActivityLogger } = await import("./devtoolsService-WMEEEXY6.js");
10859
10859
  setupInitialActivityLogger(config);
10860
10860
  }
10861
10861
  const { stdout: workingStdout } = createWorkingStdio();
@@ -11365,7 +11365,7 @@ async function runNonInteractive2(params) {
11365
11365
  }
11366
11366
  });
11367
11367
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
11368
- const { setupInitialActivityLogger } = await import("./devtoolsService-ACKZ7HRR.js");
11368
+ const { setupInitialActivityLogger } = await import("./devtoolsService-WMEEEXY6.js");
11369
11369
  setupInitialActivityLogger(config);
11370
11370
  }
11371
11371
  const { stdout: workingStdout } = createWorkingStdio();
@@ -16575,7 +16575,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
16575
16575
  }
16576
16576
  }
16577
16577
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
16578
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-FIWFPOOG.js");
16578
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-5O6FZS57.js");
16579
16579
  await doStartUI(
16580
16580
  config,
16581
16581
  settings,
@@ -16784,7 +16784,7 @@ ${finalArgs[promptIndex + 1]}`;
16784
16784
  await config.storage.initialize();
16785
16785
  adminControlsListner.setConfig(config);
16786
16786
  if (config.isInteractive() && settings.merged.general.devtools) {
16787
- const { setupInitialActivityLogger } = await import("./devtoolsService-ACKZ7HRR.js");
16787
+ const { setupInitialActivityLogger } = await import("./devtoolsService-WMEEEXY6.js");
16788
16788
  setupInitialActivityLogger(config);
16789
16789
  }
16790
16790
  registerTelemetryConfig(config);
@@ -16843,7 +16843,7 @@ ${finalArgs[promptIndex + 1]}`;
16843
16843
  const initAppHandle = startupProfiler.start("initialize_app");
16844
16844
  const initializationResult = await initializeApp(config, settings);
16845
16845
  initAppHandle?.end();
16846
- import("./liteRtServerManager-P62A6ZVG.js").then(({ LiteRtServerManager }) => {
16846
+ import("./liteRtServerManager-LK6HOSMO.js").then(({ LiteRtServerManager }) => {
16847
16847
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16848
16848
  if (!mergedGemma) return;
16849
16849
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  startCommand,
4
4
  startServer
5
- } from "./chunk-6S4UF4JM.js";
5
+ } from "./chunk-MNBBUQQS.js";
6
6
  import {
7
7
  BuiltinCommandLoader,
8
8
  CommandService,
@@ -45,11 +45,11 @@ import {
45
45
  updateAllUpdatableExtensions,
46
46
  updateExtension,
47
47
  validateAuthMethod
48
- } from "./chunk-3C6JYNPC.js";
48
+ } from "./chunk-IKHAM2LG.js";
49
49
  import {
50
50
  exitCli,
51
51
  require_source
52
- } from "./chunk-EBKNEOAO.js";
52
+ } from "./chunk-HY6GN2F7.js";
53
53
  import {
54
54
  appEvents
55
55
  } from "./chunk-5PS3AYFU.js";
@@ -87,11 +87,11 @@ import {
87
87
  resolveGemmaConfig,
88
88
  saveModelChange,
89
89
  stripAnsi
90
- } from "./chunk-IKGOC5B6.js";
90
+ } from "./chunk-GPOBVDAD.js";
91
91
  import {
92
92
  RELAUNCH_EXIT_CODE
93
- } from "./chunk-NXS624CI.js";
94
- import "./chunk-ZY7Z5W6K.js";
93
+ } from "./chunk-ISXOUBN5.js";
94
+ import "./chunk-FVC4WCSP.js";
95
95
  import {
96
96
  cleanupCheckpoints,
97
97
  registerCleanup,
@@ -100,7 +100,7 @@ import {
100
100
  runExitCleanup,
101
101
  runSyncCleanup,
102
102
  setupSignalHandlers
103
- } from "./chunk-OFFEM74O.js";
103
+ } from "./chunk-RLDNVR77.js";
104
104
  import {
105
105
  ASK_USER_TOOL_NAME,
106
106
  AuthType,
@@ -238,7 +238,7 @@ import {
238
238
  updatePolicy,
239
239
  writeToStderr,
240
240
  writeToStdout
241
- } from "./chunk-FWGOOSQK.js";
241
+ } from "./chunk-DFPYJMVX.js";
242
242
  import "./chunk-664ZODQF.js";
243
243
  import "./chunk-IUUIT4SU.js";
244
244
  import "./chunk-TUDYL3X4.js";
@@ -7832,7 +7832,7 @@ async function loadSandboxConfig(settings, argv) {
7832
7832
  }
7833
7833
  const command2 = getSandboxCommand(sandboxValue);
7834
7834
  const packageJson = await getPackageJson(__dirname3);
7835
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.57.0-preview.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7835
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.57.0-preview.1" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7836
7836
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7837
7837
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7838
7838
  }
@@ -10839,7 +10839,7 @@ async function runNonInteractive({
10839
10839
  }
10840
10840
  });
10841
10841
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10842
- const { setupInitialActivityLogger } = await import("./devtoolsService-BHG3WQEY.js");
10842
+ const { setupInitialActivityLogger } = await import("./devtoolsService-7YYOUGVF.js");
10843
10843
  setupInitialActivityLogger(config);
10844
10844
  }
10845
10845
  const { stdout: workingStdout } = createWorkingStdio();
@@ -11349,7 +11349,7 @@ async function runNonInteractive2(params) {
11349
11349
  }
11350
11350
  });
11351
11351
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
11352
- const { setupInitialActivityLogger } = await import("./devtoolsService-BHG3WQEY.js");
11352
+ const { setupInitialActivityLogger } = await import("./devtoolsService-7YYOUGVF.js");
11353
11353
  setupInitialActivityLogger(config);
11354
11354
  }
11355
11355
  const { stdout: workingStdout } = createWorkingStdio();
@@ -16559,7 +16559,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
16559
16559
  }
16560
16560
  }
16561
16561
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
16562
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-LMXAWUCU.js");
16562
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-5E2C3XOC.js");
16563
16563
  await doStartUI(
16564
16564
  config,
16565
16565
  settings,
@@ -16768,7 +16768,7 @@ ${finalArgs[promptIndex + 1]}`;
16768
16768
  await config.storage.initialize();
16769
16769
  adminControlsListner.setConfig(config);
16770
16770
  if (config.isInteractive() && settings.merged.general.devtools) {
16771
- const { setupInitialActivityLogger } = await import("./devtoolsService-BHG3WQEY.js");
16771
+ const { setupInitialActivityLogger } = await import("./devtoolsService-7YYOUGVF.js");
16772
16772
  setupInitialActivityLogger(config);
16773
16773
  }
16774
16774
  registerTelemetryConfig(config);
@@ -16827,7 +16827,7 @@ ${finalArgs[promptIndex + 1]}`;
16827
16827
  const initAppHandle = startupProfiler.start("initialize_app");
16828
16828
  const initializationResult = await initializeApp(config, settings);
16829
16829
  initAppHandle?.end();
16830
- import("./liteRtServerManager-VBKDVKLU.js").then(({ LiteRtServerManager }) => {
16830
+ import("./liteRtServerManager-5QBFCLBK.js").then(({ LiteRtServerManager }) => {
16831
16831
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16832
16832
  if (!mergedGemma) return;
16833
16833
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
package/bundle/gemini.js CHANGED
@@ -4,10 +4,10 @@ import {
4
4
  RELAUNCH_EXIT_CODE,
5
5
  getScriptArgs,
6
6
  getSpawnConfig
7
- } from "./chunk-O3QB4SVS.js";
8
- import "./chunk-SHIJDXMN.js";
9
- import "./chunk-M6E5CLIH.js";
10
- import "./chunk-2UICYJMD.js";
7
+ } from "./chunk-LQJHQ4BU.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";
@@ -115,9 +115,9 @@ ${error instanceof Error ? error.stack ?? error.message : String(error)}
115
115
  }
116
116
  }
117
117
  } else {
118
- const { main } = await import("./gemini-7Z3ODIIX.js");
119
- const { FatalError, writeToStderr } = await import("./dist-B7OLK6PK.js");
120
- const { runExitCleanup } = await import("./cleanup-YFIFTNZ6.js");
118
+ const { main } = await import("./gemini-OYYGXMHL.js");
119
+ const { FatalError, writeToStderr } = await import("./dist-AMP5W5P2.js");
120
+ const { runExitCleanup } = await import("./cleanup-DA7OSZS5.js");
121
121
  main().catch(async (error) => {
122
122
  const cleanupTimeout = setTimeout(() => {
123
123
  writeToStderr("Cleanup timed out, forcing exit...\n");
@@ -157,10 +157,10 @@ import {
157
157
  widestLineFromStyledChars,
158
158
  wordBreakStyledChars,
159
159
  wrapStyledChars
160
- } from "./chunk-3C6JYNPC.js";
160
+ } from "./chunk-IKHAM2LG.js";
161
161
  import {
162
162
  require_source
163
- } from "./chunk-EBKNEOAO.js";
163
+ } from "./chunk-HY6GN2F7.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-IKGOC5B6.js";
217
+ } from "./chunk-GPOBVDAD.js";
218
218
  import {
219
219
  handleAutoUpdate,
220
220
  isDevelopment,
221
221
  relaunchApp,
222
222
  setUpdateHandler
223
- } from "./chunk-NXS624CI.js";
223
+ } from "./chunk-ISXOUBN5.js";
224
224
  import {
225
225
  isTodoList,
226
226
  mapCoreStatusToDisplayStatus,
227
227
  require_react
228
- } from "./chunk-ZY7Z5W6K.js";
228
+ } from "./chunk-FVC4WCSP.js";
229
229
  import {
230
230
  registerCleanup,
231
231
  removeCleanup,
232
232
  runExitCleanup,
233
233
  setupTtyCheck
234
- } from "./chunk-OFFEM74O.js";
234
+ } from "./chunk-RLDNVR77.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-FWGOOSQK.js";
421
+ } from "./chunk-DFPYJMVX.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 combinedParts = geminiTools.flatMap(
28498
- (toolCall) => toolCall.response.responseParts
28499
- );
28500
- geminiClient.addHistory({
28501
- role: "user",
28502
- parts: combinedParts
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-BHG3WQEY.js");
33949
+ const { toggleDevToolsPanel } = await import("./devtoolsService-7YYOUGVF.js");
33928
33950
  await toggleDevToolsPanel(
33929
33951
  config,
33930
33952
  showErrorDetails,