@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-CBT4PN4R.js";
44
+ } from "./chunk-H4PA4O33.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-TN4WXWFM.js";
51
+ } from "./chunk-5SQYZFP6.js";
52
52
  import {
53
53
  exitCli,
54
54
  require_source
55
- } from "./chunk-OTLI6LZ3.js";
55
+ } from "./chunk-VG6I25WK.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-3K52543M.js";
89
+ } from "./chunk-SJJUCWYW.js";
90
90
  import {
91
91
  RELAUNCH_EXIT_CODE
92
- } from "./chunk-QUZ62PY7.js";
93
- import "./chunk-XTG4JBIR.js";
92
+ } from "./chunk-UJJ75A5I.js";
93
+ import "./chunk-AAGSPORB.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-ONQVFEHS.js";
102
+ } from "./chunk-UHMKT6SK.js";
103
103
  import {
104
104
  ASK_USER_TOOL_NAME,
105
105
  AuthType,
@@ -133,8 +133,8 @@ import {
133
133
  Logger,
134
134
  MCPServerConfig,
135
135
  PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL,
136
- PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
137
136
  PREVIEW_GEMINI_3_1_MODEL,
137
+ PREVIEW_GEMINI_FLASH_LITE_MODEL,
138
138
  PREVIEW_GEMINI_FLASH_MODEL,
139
139
  PREVIEW_GEMINI_MODEL,
140
140
  PolicyIntegrityManager,
@@ -231,7 +231,7 @@ import {
231
231
  updatePolicy,
232
232
  writeToStderr,
233
233
  writeToStdout
234
- } from "./chunk-SIXPHUVZ.js";
234
+ } from "./chunk-PN5LGMOT.js";
235
235
  import "./chunk-6HI7VNOG.js";
236
236
  import "./chunk-TUDYL3X4.js";
237
237
  import "./chunk-IUUIT4SU.js";
@@ -5417,12 +5417,12 @@ async function testMCPConnection(serverName, config, isTrusted, activeSettings)
5417
5417
  return "disconnected" /* DISCONNECTED */;
5418
5418
  }
5419
5419
  }
5420
- async function getServerStatus(serverName, server, isTrusted, activeSettings) {
5420
+ async function getServerStatus(serverName, server, isTrusted, activeSettings, consolidatedExcluded, consolidatedAllowed) {
5421
5421
  const mcpEnablementManager = McpServerEnablementManager.getInstance();
5422
5422
  const loadResult = await canLoadServer(serverName, {
5423
5423
  adminMcpEnabled: activeSettings.admin?.mcp?.enabled ?? true,
5424
- allowedList: activeSettings.mcp?.allowed,
5425
- excludedList: activeSettings.mcp?.excluded,
5424
+ allowedList: consolidatedAllowed,
5425
+ excludedList: consolidatedExcluded.length > 0 ? consolidatedExcluded : void 0,
5426
5426
  enablement: mcpEnablementManager.getEnablementCallbacks()
5427
5427
  });
5428
5428
  if (!loadResult.allowed) {
@@ -5462,6 +5462,8 @@ async function listMcpServers(loadedSettingsArg) {
5462
5462
  )
5463
5463
  );
5464
5464
  }
5465
+ const consolidatedExcluded = loadedSettings.getConsolidatedExcludedMcpServers();
5466
+ const consolidatedAllowed = loadedSettings.getConsolidatedAllowedMcpServers();
5465
5467
  debugLogger.log("Configured MCP servers:\n");
5466
5468
  for (const serverName of serverNames) {
5467
5469
  const server = mcpServers[serverName];
@@ -5469,7 +5471,9 @@ async function listMcpServers(loadedSettingsArg) {
5469
5471
  serverName,
5470
5472
  server,
5471
5473
  loadedSettings.isTrusted,
5472
- activeSettings
5474
+ activeSettings,
5475
+ consolidatedExcluded,
5476
+ consolidatedAllowed
5473
5477
  );
5474
5478
  let statusIndicator = "";
5475
5479
  let statusText = "";
@@ -7821,7 +7825,7 @@ async function loadSandboxConfig(settings, argv) {
7821
7825
  }
7822
7826
  const command2 = getSandboxCommand(sandboxValue);
7823
7827
  const packageJson = await getPackageJson(__dirname3);
7824
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.44.0-preview.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7828
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.45.0-nightly.20260521.g854f811be" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7825
7829
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7826
7830
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7827
7831
  }
@@ -8236,7 +8240,12 @@ function isDebugMode(argv) {
8236
8240
  );
8237
8241
  }
8238
8242
  async function loadCliConfig(settings, sessionId, argv, options = {}) {
8239
- const { cwd = process3.cwd(), projectHooks, skipExtensions = false } = options;
8243
+ const {
8244
+ cwd = process3.cwd(),
8245
+ projectHooks,
8246
+ skipExtensions = false,
8247
+ loadedSettings
8248
+ } = options;
8240
8249
  const debugMode = isDebugMode(argv);
8241
8250
  const worktreeSettings = options.worktreeSettings ?? await resolveWorktreeSettings(cwd);
8242
8251
  if (argv.sandbox) {
@@ -8483,6 +8492,8 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8483
8492
  let profileSelector = void 0;
8484
8493
  if (settings.experimental?.stressTestProfile) {
8485
8494
  profileSelector = "stressTestProfile";
8495
+ } else if (settings.experimental?.powerUserProfile) {
8496
+ profileSelector = "powerUserProfile";
8486
8497
  } else if (settings.experimental?.generalistProfile || settings.experimental?.contextManagement) {
8487
8498
  profileSelector = "generalistProfile";
8488
8499
  }
@@ -8522,8 +8533,8 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8522
8533
  extensionsEnabled,
8523
8534
  agents: settings.agents,
8524
8535
  adminSkillsEnabled,
8525
- allowedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ?? settings.mcp?.allowed : void 0,
8526
- blockedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ? void 0 : settings.mcp?.excluded : void 0,
8536
+ allowedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ?? (loadedSettings ? loadedSettings.getConsolidatedAllowedMcpServers() : settings.mcp?.allowed) : void 0,
8537
+ blockedMcpServers: mcpEnabled ? argv.allowedMcpServerNames ? void 0 : loadedSettings ? loadedSettings.getConsolidatedExcludedMcpServers() : settings.mcp?.excluded : void 0,
8527
8538
  blockedEnvironmentVariables: settings.security?.environmentVariableRedaction?.blocked,
8528
8539
  allowedEnvironmentVariables: settings.security?.environmentVariableRedaction?.allowed,
8529
8540
  enableEnvironmentVariableRedaction: settings.security?.environmentVariableRedaction?.enabled,
@@ -10222,7 +10233,7 @@ async function runNonInteractive({
10222
10233
  }
10223
10234
  });
10224
10235
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10225
- const { setupInitialActivityLogger } = await import("./devtoolsService-DUEWJW52.js");
10236
+ const { setupInitialActivityLogger } = await import("./devtoolsService-Y4US3JKZ.js");
10226
10237
  setupInitialActivityLogger(config);
10227
10238
  }
10228
10239
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10693,7 +10704,7 @@ async function runNonInteractive2(params) {
10693
10704
  }
10694
10705
  });
10695
10706
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10696
- const { setupInitialActivityLogger } = await import("./devtoolsService-DUEWJW52.js");
10707
+ const { setupInitialActivityLogger } = await import("./devtoolsService-Y4US3JKZ.js");
10697
10708
  setupInitialActivityLogger(config);
10698
10709
  }
10699
10710
  const { stdout: workingStdout } = createWorkingStdio();
@@ -13637,13 +13648,11 @@ function buildAvailableModels(config, settings) {
13637
13648
  const preferredModel = config.getModel() || GEMINI_MODEL_ALIAS_AUTO;
13638
13649
  const shouldShowPreviewModels = config.getHasAccessToPreviewModel();
13639
13650
  const useGemini31 = config.getGemini31LaunchedSync?.() ?? false;
13640
- const useGemini31FlashLite = config.getGemini31FlashLiteLaunchedSync?.() ?? false;
13641
13651
  const selectedAuthType = settings.merged.security.auth.selectedType;
13642
13652
  const useCustomToolModel = useGemini31 && selectedAuthType === "gemini-api-key" /* USE_GEMINI */;
13643
13653
  if (config.getExperimentalDynamicModelConfiguration?.() === true && config.getModelConfigService) {
13644
13654
  const options = config.getModelConfigService().getAvailableModelOptions({
13645
13655
  useGemini3_1: useGemini31,
13646
- useGemini3_1FlashLite: useGemini31FlashLite,
13647
13656
  useCustomTools: useCustomToolModel,
13648
13657
  hasAccessToPreview: shouldShowPreviewModels
13649
13658
  });
@@ -13689,10 +13698,10 @@ function buildAvailableModels(config, settings) {
13689
13698
  title: getDisplayString(PREVIEW_GEMINI_FLASH_MODEL)
13690
13699
  }
13691
13700
  ];
13692
- if (useGemini31FlashLite) {
13701
+ if (PREVIEW_GEMINI_FLASH_LITE_MODEL !== "none") {
13693
13702
  previewOptions.push({
13694
- value: PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
13695
- title: getDisplayString(PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL)
13703
+ value: PREVIEW_GEMINI_FLASH_LITE_MODEL,
13704
+ title: getDisplayString(PREVIEW_GEMINI_FLASH_LITE_MODEL)
13696
13705
  });
13697
13706
  }
13698
13707
  manualOptions.unshift(...previewOptions);
@@ -15423,7 +15432,7 @@ async function relaunchOnExitCode(runner) {
15423
15432
  while (true) {
15424
15433
  try {
15425
15434
  const exitCode = await runner();
15426
- if (exitCode !== RELAUNCH_EXIT_CODE) {
15435
+ if (process.platform === "android" || exitCode !== RELAUNCH_EXIT_CODE) {
15427
15436
  process.exit(exitCode);
15428
15437
  }
15429
15438
  } catch (error) {
@@ -15883,7 +15892,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
15883
15892
  }
15884
15893
  }
15885
15894
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15886
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-TOEU7LIO.js");
15895
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-LEZF6KPA.js");
15887
15896
  await doStartUI(
15888
15897
  config,
15889
15898
  settings,
@@ -15997,7 +16006,8 @@ async function main() {
15997
16006
  }
15998
16007
  const partialConfig = await loadCliConfig(settings.merged, sessionId, argv, {
15999
16008
  projectHooks: settings.workspace.settings.hooks,
16000
- skipExtensions: true
16009
+ skipExtensions: true,
16010
+ loadedSettings: settings
16001
16011
  });
16002
16012
  adminControlsListner.setConfig(partialConfig);
16003
16013
  let initialAuthFailed = false;
@@ -16084,13 +16094,14 @@ ${finalArgs[promptIndex + 1]}`;
16084
16094
  const loadConfigHandle = startupProfiler.start("load_cli_config");
16085
16095
  config = await loadCliConfig(settings.merged, sessionId, argv, {
16086
16096
  projectHooks: settings.workspace.settings.hooks,
16087
- worktreeSettings: worktreeInfo
16097
+ worktreeSettings: worktreeInfo,
16098
+ loadedSettings: settings
16088
16099
  });
16089
16100
  loadConfigHandle?.end();
16090
16101
  await config.storage.initialize();
16091
16102
  adminControlsListner.setConfig(config);
16092
16103
  if (config.isInteractive() && settings.merged.general.devtools) {
16093
- const { setupInitialActivityLogger } = await import("./devtoolsService-DUEWJW52.js");
16104
+ const { setupInitialActivityLogger } = await import("./devtoolsService-Y4US3JKZ.js");
16094
16105
  setupInitialActivityLogger(config);
16095
16106
  }
16096
16107
  registerTelemetryConfig(config);
@@ -16149,7 +16160,7 @@ ${finalArgs[promptIndex + 1]}`;
16149
16160
  const initAppHandle = startupProfiler.start("initialize_app");
16150
16161
  const initializationResult = await initializeApp(config, settings);
16151
16162
  initAppHandle?.end();
16152
- import("./liteRtServerManager-ASKAVAO7.js").then(({ LiteRtServerManager }) => {
16163
+ import("./liteRtServerManager-A3Z4AS3V.js").then(({ LiteRtServerManager }) => {
16153
16164
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16154
16165
  if (!mergedGemma) return;
16155
16166
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;