@google/gemini-cli 0.44.0 → 0.45.0-nightly.20260527.g41c9260ca

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 (70) hide show
  1. package/bundle/{chunk-FOOWNGAB.js → chunk-2RAPXSOV.js} +1 -1
  2. package/bundle/{chunk-TN4WXWFM.js → chunk-5SQYZFP6.js} +3 -3
  3. package/bundle/{chunk-BOYNQXWU.js → chunk-6SMPX7UU.js} +2 -2
  4. package/bundle/{chunk-QUZ62PY7.js → chunk-6VVFXG4V.js} +2 -2
  5. package/bundle/{chunk-DALZZYPQ.js → chunk-7EPRHON5.js} +1 -1
  6. package/bundle/{chunk-XTG4JBIR.js → chunk-AAGSPORB.js} +1 -1
  7. package/bundle/{chunk-BE42OOYM.js → chunk-EVYFBIGQ.js} +377 -297
  8. package/bundle/{chunk-5CABHQOE.js → chunk-FHQHQ6DS.js} +1 -1
  9. package/bundle/{chunk-ONQVFEHS.js → chunk-GIZR3U4X.js} +1 -1
  10. package/bundle/{chunk-CBT4PN4R.js → chunk-H4PA4O33.js} +8 -8
  11. package/bundle/{chunk-M3EDSAPV.js → chunk-I6UPFWEQ.js} +1 -1
  12. package/bundle/{chunk-TW47A6FW.js → chunk-IGGUR3YU.js} +7827 -14242
  13. package/bundle/{chunk-VUERI7WB.js → chunk-K4FVPC4T.js} +8 -8
  14. package/bundle/{chunk-EKUU3KNX.js → chunk-KSJ6OVGZ.js} +1 -1
  15. package/bundle/{chunk-OLBOCZ5F.js → chunk-P4IX67II.js} +68 -55
  16. package/bundle/{chunk-6W2Z7FTE.js → chunk-P4YCK66H.js} +3 -3
  17. package/bundle/{chunk-SIXPHUVZ.js → chunk-PN5LGMOT.js} +423 -330
  18. package/bundle/{chunk-N4SGO3W6.js → chunk-RJZUBUMQ.js} +2 -2
  19. package/bundle/{chunk-3K52543M.js → chunk-SJJUCWYW.js} +56 -2
  20. package/bundle/{chunk-G2L4VCSN.js → chunk-SS6WZNE5.js} +9 -8
  21. package/bundle/{chunk-LM6XTSWQ.js → chunk-T5BJFXUT.js} +56 -2
  22. package/bundle/chunk-TKOMYARC.js +81685 -0
  23. package/bundle/{chunk-OTLI6LZ3.js → chunk-TREYQA4O.js} +1 -1
  24. package/bundle/chunk-U3JK5HRW.js +394429 -0
  25. package/bundle/chunk-UHMKT6SK.js +154 -0
  26. package/bundle/chunk-UJJ75A5I.js +398 -0
  27. package/bundle/{chunk-7KIX5G5D.js → chunk-UMBPNYQU.js} +3 -3
  28. package/bundle/{chunk-7ZH745HC.js → chunk-VC3YLUFW.js} +63 -6
  29. package/bundle/chunk-VCSWELYF.js +512 -0
  30. package/bundle/chunk-VG6I25WK.js +1571 -0
  31. package/bundle/chunk-WU3YM7M5.js +118 -0
  32. package/bundle/chunk-YHUFSS4V.js +17320 -0
  33. package/bundle/{cleanup-PDT5ATZB.js → cleanup-DAEFNP5D.js} +2 -2
  34. package/bundle/{cleanup-SF7XW2P3.js → cleanup-QLHTBBSJ.js} +2 -2
  35. package/bundle/{cleanup-UW3DZLXP.js → cleanup-SWVNBESF.js} +2 -2
  36. package/bundle/cleanup-V5HN45VV.js +32 -0
  37. package/bundle/{core-LN2S4IOX.js → core-RLNQPUYW.js} +3 -7
  38. package/bundle/{devtoolsService-64QE2V7E.js → devtoolsService-F5XNH3LW.js} +2 -2
  39. package/bundle/{devtoolsService-ZC7E4R2A.js → devtoolsService-KSXJ7ZBM.js} +4 -3
  40. package/bundle/devtoolsService-N5XYKGOS.js +856 -0
  41. package/bundle/{devtoolsService-DUEWJW52.js → devtoolsService-Y4US3JKZ.js} +2 -2
  42. package/bundle/{dist-J4RONYVV.js → dist-CMC3RCEI.js} +3 -7
  43. package/bundle/{core-GW6VAL53.js → dist-XPJBSOYP.js} +3 -7
  44. package/bundle/dist-YCN22NGW.js +2134 -0
  45. package/bundle/docs/changelogs/index.md +15 -0
  46. package/bundle/docs/changelogs/latest.md +198 -262
  47. package/bundle/docs/changelogs/preview.md +202 -181
  48. package/bundle/docs/reference/configuration.md +24 -29
  49. package/bundle/{gemini-SSQIKHR2.js → gemini-3FB3K6RR.js} +41 -30
  50. package/bundle/{gemini-CMBH5YG6.js → gemini-AAR7OIGT.js} +239 -212
  51. package/bundle/{gemini-CSPRLMWN.js → gemini-BKWLRTMK.js} +41 -30
  52. package/bundle/gemini-JVLQYJ2G.js +16406 -0
  53. package/bundle/gemini.js +15 -10
  54. package/bundle/{interactiveCli-RDMZS6KL.js → interactiveCli-7AF74ES4.js} +33 -57
  55. package/bundle/{interactiveCli-TOEU7LIO.js → interactiveCli-LEZF6KPA.js} +33 -57
  56. package/bundle/{interactiveCli-Q2A2JFLA.js → interactiveCli-PCGUDXG4.js} +339 -344
  57. package/bundle/interactiveCli-QC3CJANH.js +34726 -0
  58. package/bundle/{liteRtServerManager-ASKAVAO7.js → liteRtServerManager-2ZSZW3IA.js} +4 -4
  59. package/bundle/{liteRtServerManager-6BWTXMUI.js → liteRtServerManager-A3Z4AS3V.js} +4 -4
  60. package/bundle/{liteRtServerManager-ZS3BCW53.js → liteRtServerManager-EDFTLOS6.js} +4 -4
  61. package/bundle/liteRtServerManager-YPEZDSGQ.js +65 -0
  62. package/bundle/{oauth2-provider-SYRZDGL5.js → oauth2-provider-5ZA5OIVB.js} +1 -1
  63. package/bundle/{oauth2-provider-FGI6QDEM.js → oauth2-provider-O4BUOOYR.js} +1 -1
  64. package/bundle/{oauth2-provider-7JOVY727.js → oauth2-provider-O635QVSF.js} +38 -72
  65. package/bundle/oauth2-provider-WIBCYDQG.js +235 -0
  66. package/bundle/{start-KJCIH3GX.js → start-7TRTTGGV.js} +6 -6
  67. package/bundle/{start-TU5WNP77.js → start-A4YSRLHR.js} +6 -6
  68. package/bundle/{start-47OYCVVA.js → start-HFZVWJGC.js} +6 -6
  69. package/bundle/start-KH23TWSE.js +18 -0
  70. package/package.json +1 -1
@@ -41,18 +41,18 @@ import {
41
41
  updateAllUpdatableExtensions,
42
42
  updateExtension,
43
43
  validateAuthMethod
44
- } from "./chunk-VUERI7WB.js";
44
+ } from "./chunk-K4FVPC4T.js";
45
45
  import {
46
46
  appEvents
47
47
  } from "./chunk-5PS3AYFU.js";
48
48
  import {
49
49
  startCommand,
50
50
  startServer
51
- } from "./chunk-6W2Z7FTE.js";
51
+ } from "./chunk-WU3YM7M5.js";
52
52
  import {
53
53
  exitCli,
54
54
  require_source
55
- } from "./chunk-FOOWNGAB.js";
55
+ } from "./chunk-2RAPXSOV.js";
56
56
  import {
57
57
  DEFAULT_PORT,
58
58
  GEMMA_MODEL_NAME,
@@ -86,11 +86,11 @@ import {
86
86
  readServerProcessInfo,
87
87
  resolveGemmaConfig,
88
88
  saveModelChange
89
- } from "./chunk-LM6XTSWQ.js";
89
+ } from "./chunk-T5BJFXUT.js";
90
90
  import {
91
91
  RELAUNCH_EXIT_CODE
92
- } from "./chunk-N4SGO3W6.js";
93
- import "./chunk-EKUU3KNX.js";
92
+ } from "./chunk-6VVFXG4V.js";
93
+ import "./chunk-SS6WZNE5.js";
94
94
  import {
95
95
  cleanupCheckpoints,
96
96
  registerCleanup,
@@ -99,7 +99,7 @@ import {
99
99
  runExitCleanup,
100
100
  runSyncCleanup,
101
101
  setupSignalHandlers
102
- } from "./chunk-DALZZYPQ.js";
102
+ } from "./chunk-FHQHQ6DS.js";
103
103
  import {
104
104
  ASK_USER_TOOL_NAME,
105
105
  ApprovalMode,
@@ -143,8 +143,8 @@ import {
143
143
  MessageBusType,
144
144
  OutputFormat,
145
145
  PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL,
146
- PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
147
146
  PREVIEW_GEMINI_3_1_MODEL,
147
+ PREVIEW_GEMINI_FLASH_LITE_MODEL,
148
148
  PREVIEW_GEMINI_FLASH_MODEL,
149
149
  PREVIEW_GEMINI_MODEL,
150
150
  PolicyDecision,
@@ -247,7 +247,7 @@ import {
247
247
  updatePolicy,
248
248
  writeToStderr,
249
249
  writeToStdout
250
- } from "./chunk-BE42OOYM.js";
250
+ } from "./chunk-U3JK5HRW.js";
251
251
  import "./chunk-6HI7VNOG.js";
252
252
  import "./chunk-TUDYL3X4.js";
253
253
  import "./chunk-IUUIT4SU.js";
@@ -5433,12 +5433,12 @@ async function testMCPConnection(serverName, config, isTrusted, activeSettings)
5433
5433
  return MCPServerStatus.DISCONNECTED;
5434
5434
  }
5435
5435
  }
5436
- async function getServerStatus(serverName, server, isTrusted, activeSettings) {
5436
+ async function getServerStatus(serverName, server, isTrusted, activeSettings, consolidatedExcluded, consolidatedAllowed) {
5437
5437
  const mcpEnablementManager = McpServerEnablementManager.getInstance();
5438
5438
  const loadResult = await canLoadServer(serverName, {
5439
5439
  adminMcpEnabled: activeSettings.admin?.mcp?.enabled ?? true,
5440
- allowedList: activeSettings.mcp?.allowed,
5441
- excludedList: activeSettings.mcp?.excluded,
5440
+ allowedList: consolidatedAllowed,
5441
+ excludedList: consolidatedExcluded.length > 0 ? consolidatedExcluded : void 0,
5442
5442
  enablement: mcpEnablementManager.getEnablementCallbacks()
5443
5443
  });
5444
5444
  if (!loadResult.allowed) {
@@ -5478,6 +5478,8 @@ async function listMcpServers(loadedSettingsArg) {
5478
5478
  )
5479
5479
  );
5480
5480
  }
5481
+ const consolidatedExcluded = loadedSettings.getConsolidatedExcludedMcpServers();
5482
+ const consolidatedAllowed = loadedSettings.getConsolidatedAllowedMcpServers();
5481
5483
  debugLogger.log("Configured MCP servers:\n");
5482
5484
  for (const serverName of serverNames) {
5483
5485
  const server = mcpServers[serverName];
@@ -5485,7 +5487,9 @@ async function listMcpServers(loadedSettingsArg) {
5485
5487
  serverName,
5486
5488
  server,
5487
5489
  loadedSettings.isTrusted,
5488
- activeSettings
5490
+ activeSettings,
5491
+ consolidatedExcluded,
5492
+ consolidatedAllowed
5489
5493
  );
5490
5494
  let statusIndicator = "";
5491
5495
  let statusText = "";
@@ -7837,7 +7841,7 @@ async function loadSandboxConfig(settings, argv) {
7837
7841
  }
7838
7842
  const command2 = getSandboxCommand(sandboxValue);
7839
7843
  const packageJson = await getPackageJson(__dirname3);
7840
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.44.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7844
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.45.0-nightly.20260527.g41c9260ca" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7841
7845
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7842
7846
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7843
7847
  }
@@ -8252,7 +8256,12 @@ function isDebugMode(argv) {
8252
8256
  );
8253
8257
  }
8254
8258
  async function loadCliConfig(settings, sessionId, argv, options = {}) {
8255
- const { cwd = process3.cwd(), projectHooks, skipExtensions = false } = options;
8259
+ const {
8260
+ cwd = process3.cwd(),
8261
+ projectHooks,
8262
+ skipExtensions = false,
8263
+ loadedSettings
8264
+ } = options;
8256
8265
  const debugMode = isDebugMode(argv);
8257
8266
  const worktreeSettings = options.worktreeSettings ?? await resolveWorktreeSettings(cwd);
8258
8267
  if (argv.sandbox) {
@@ -8499,6 +8508,8 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8499
8508
  let profileSelector = void 0;
8500
8509
  if (settings.experimental?.stressTestProfile) {
8501
8510
  profileSelector = "stressTestProfile";
8511
+ } else if (settings.experimental?.powerUserProfile) {
8512
+ profileSelector = "powerUserProfile";
8502
8513
  } else if (settings.experimental?.generalistProfile || settings.experimental?.contextManagement) {
8503
8514
  profileSelector = "generalistProfile";
8504
8515
  }
@@ -8538,8 +8549,8 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8538
8549
  extensionsEnabled,
8539
8550
  agents: settings.agents,
8540
8551
  adminSkillsEnabled,
8541
- allowedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ?? settings.mcp?.allowed : void 0,
8542
- blockedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ? void 0 : settings.mcp?.excluded : void 0,
8552
+ allowedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ?? (loadedSettings ? loadedSettings.getConsolidatedAllowedMcpServers() : settings.mcp?.allowed) : void 0,
8553
+ blockedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ? void 0 : loadedSettings ? loadedSettings.getConsolidatedExcludedMcpServers() : settings.mcp?.excluded : void 0,
8543
8554
  blockedEnvironmentVariables: settings.security?.environmentVariableRedaction?.blocked,
8544
8555
  allowedEnvironmentVariables: settings.security?.environmentVariableRedaction?.allowed,
8545
8556
  enableEnvironmentVariableRedaction: settings.security?.environmentVariableRedaction?.enabled,
@@ -10238,7 +10249,7 @@ async function runNonInteractive({
10238
10249
  }
10239
10250
  });
10240
10251
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10241
- const { setupInitialActivityLogger } = await import("./devtoolsService-64QE2V7E.js");
10252
+ const { setupInitialActivityLogger } = await import("./devtoolsService-KSXJ7ZBM.js");
10242
10253
  setupInitialActivityLogger(config);
10243
10254
  }
10244
10255
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10709,7 +10720,7 @@ async function runNonInteractive2(params) {
10709
10720
  }
10710
10721
  });
10711
10722
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10712
- const { setupInitialActivityLogger } = await import("./devtoolsService-64QE2V7E.js");
10723
+ const { setupInitialActivityLogger } = await import("./devtoolsService-KSXJ7ZBM.js");
10713
10724
  setupInitialActivityLogger(config);
10714
10725
  }
10715
10726
  const { stdout: workingStdout } = createWorkingStdio();
@@ -13653,13 +13664,11 @@ function buildAvailableModels(config, settings) {
13653
13664
  const preferredModel = config.getModel() || GEMINI_MODEL_ALIAS_AUTO;
13654
13665
  const shouldShowPreviewModels = config.getHasAccessToPreviewModel();
13655
13666
  const useGemini31 = config.getGemini31LaunchedSync?.() ?? false;
13656
- const useGemini31FlashLite = config.getGemini31FlashLiteLaunchedSync?.() ?? false;
13657
13667
  const selectedAuthType = settings.merged.security.auth.selectedType;
13658
13668
  const useCustomToolModel = useGemini31 && selectedAuthType === AuthType.USE_GEMINI;
13659
13669
  if (config.getExperimentalDynamicModelConfiguration?.() === true && config.getModelConfigService) {
13660
13670
  const options = config.getModelConfigService().getAvailableModelOptions({
13661
13671
  useGemini3_1: useGemini31,
13662
- useGemini3_1FlashLite: useGemini31FlashLite,
13663
13672
  useCustomTools: useCustomToolModel,
13664
13673
  hasAccessToPreview: shouldShowPreviewModels
13665
13674
  });
@@ -13705,10 +13714,10 @@ function buildAvailableModels(config, settings) {
13705
13714
  title: getDisplayString(PREVIEW_GEMINI_FLASH_MODEL)
13706
13715
  }
13707
13716
  ];
13708
- if (useGemini31FlashLite) {
13717
+ if (PREVIEW_GEMINI_FLASH_LITE_MODEL !== "none") {
13709
13718
  previewOptions.push({
13710
- value: PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
13711
- title: getDisplayString(PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL)
13719
+ value: PREVIEW_GEMINI_FLASH_LITE_MODEL,
13720
+ title: getDisplayString(PREVIEW_GEMINI_FLASH_LITE_MODEL)
13712
13721
  });
13713
13722
  }
13714
13723
  manualOptions.unshift(...previewOptions);
@@ -15439,7 +15448,7 @@ async function relaunchOnExitCode(runner) {
15439
15448
  while (true) {
15440
15449
  try {
15441
15450
  const exitCode = await runner();
15442
- if (exitCode !== RELAUNCH_EXIT_CODE) {
15451
+ if (process.platform === "android" || exitCode !== RELAUNCH_EXIT_CODE) {
15443
15452
  process.exit(exitCode);
15444
15453
  }
15445
15454
  } catch (error) {
@@ -15899,7 +15908,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
15899
15908
  }
15900
15909
  }
15901
15910
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15902
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-RDMZS6KL.js");
15911
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-QC3CJANH.js");
15903
15912
  await doStartUI(
15904
15913
  config,
15905
15914
  settings,
@@ -16013,7 +16022,8 @@ async function main() {
16013
16022
  }
16014
16023
  const partialConfig = await loadCliConfig(settings.merged, sessionId, argv, {
16015
16024
  projectHooks: settings.workspace.settings.hooks,
16016
- skipExtensions: true
16025
+ skipExtensions: true,
16026
+ loadedSettings: settings
16017
16027
  });
16018
16028
  adminControlsListner.setConfig(partialConfig);
16019
16029
  let initialAuthFailed = false;
@@ -16100,13 +16110,14 @@ ${finalArgs[promptIndex + 1]}`;
16100
16110
  const loadConfigHandle = startupProfiler.start("load_cli_config");
16101
16111
  config = await loadCliConfig(settings.merged, sessionId, argv, {
16102
16112
  projectHooks: settings.workspace.settings.hooks,
16103
- worktreeSettings: worktreeInfo
16113
+ worktreeSettings: worktreeInfo,
16114
+ loadedSettings: settings
16104
16115
  });
16105
16116
  loadConfigHandle?.end();
16106
16117
  await config.storage.initialize();
16107
16118
  adminControlsListner.setConfig(config);
16108
16119
  if (config.isInteractive() && settings.merged.general.devtools) {
16109
- const { setupInitialActivityLogger } = await import("./devtoolsService-64QE2V7E.js");
16120
+ const { setupInitialActivityLogger } = await import("./devtoolsService-KSXJ7ZBM.js");
16110
16121
  setupInitialActivityLogger(config);
16111
16122
  }
16112
16123
  registerTelemetryConfig(config);
@@ -16165,7 +16176,7 @@ ${finalArgs[promptIndex + 1]}`;
16165
16176
  const initAppHandle = startupProfiler.start("initialize_app");
16166
16177
  const initializationResult = await initializeApp(config, settings);
16167
16178
  initAppHandle?.end();
16168
- import("./liteRtServerManager-6BWTXMUI.js").then(({ LiteRtServerManager }) => {
16179
+ import("./liteRtServerManager-2ZSZW3IA.js").then(({ LiteRtServerManager }) => {
16169
16180
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16170
16181
  if (!mergedGemma) return;
16171
16182
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;