@google/gemini-cli 0.44.0 → 0.45.0-nightly.20260528.g5cac7c10f

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-LM6XTSWQ.js → chunk-2H5DC5TA.js} +56 -2
  2. package/bundle/{chunk-CBT4PN4R.js → chunk-2RRZM3IR.js} +8 -8
  3. package/bundle/{chunk-FOOWNGAB.js → chunk-2SU33N7C.js} +1 -1
  4. package/bundle/{chunk-M3EDSAPV.js → chunk-4M3TG6ZU.js} +1 -1
  5. package/bundle/{chunk-TN4WXWFM.js → chunk-4TSRLQBZ.js} +3 -3
  6. package/bundle/{chunk-DALZZYPQ.js → chunk-767WVJKA.js} +1 -1
  7. package/bundle/{chunk-EKUU3KNX.js → chunk-B4GDSUR2.js} +1 -1
  8. package/bundle/{chunk-SIXPHUVZ.js → chunk-CWAXEILN.js} +423 -330
  9. package/bundle/{chunk-BE42OOYM.js → chunk-FBTNPKPG.js} +377 -297
  10. package/bundle/{chunk-3K52543M.js → chunk-GIXFMPPJ.js} +56 -2
  11. package/bundle/{chunk-TW47A6FW.js → chunk-GTQYFINA.js} +7827 -14242
  12. package/bundle/{chunk-6W2Z7FTE.js → chunk-HJCI56HE.js} +3 -3
  13. package/bundle/{chunk-5CABHQOE.js → chunk-HTTFLYNV.js} +1 -1
  14. package/bundle/{chunk-BOYNQXWU.js → chunk-HYC42UG2.js} +2 -2
  15. package/bundle/{chunk-G2L4VCSN.js → chunk-HYJ253BF.js} +9 -8
  16. package/bundle/{chunk-VUERI7WB.js → chunk-KETVRR7F.js} +8 -8
  17. package/bundle/{chunk-7ZH745HC.js → chunk-LM7IUUPG.js} +63 -6
  18. package/bundle/{chunk-QUZ62PY7.js → chunk-LUQGJPIY.js} +2 -2
  19. package/bundle/{chunk-N4SGO3W6.js → chunk-MGXTB4U2.js} +2 -2
  20. package/bundle/{chunk-ONQVFEHS.js → chunk-OY6QYVTR.js} +1 -1
  21. package/bundle/{chunk-7KIX5G5D.js → chunk-Q3UZDZZV.js} +3 -3
  22. package/bundle/{chunk-OLBOCZ5F.js → chunk-RL3BAOLP.js} +68 -55
  23. package/bundle/{chunk-OTLI6LZ3.js → chunk-RLOHM32C.js} +1 -1
  24. package/bundle/chunk-VONINEZL.js +512 -0
  25. package/bundle/chunk-WE2NPYLF.js +17320 -0
  26. package/bundle/{chunk-XTG4JBIR.js → chunk-WPCNMQ6J.js} +1 -1
  27. package/bundle/chunk-XBD7NYQK.js +398 -0
  28. package/bundle/chunk-XLNVYLTH.js +1571 -0
  29. package/bundle/chunk-XVJGS2PV.js +81685 -0
  30. package/bundle/chunk-YP6T4TTR.js +118 -0
  31. package/bundle/chunk-ZAP2IAMA.js +394429 -0
  32. package/bundle/chunk-ZQZFTBJB.js +154 -0
  33. package/bundle/{cleanup-PDT5ATZB.js → cleanup-7FHLTEXT.js} +2 -2
  34. package/bundle/{cleanup-SF7XW2P3.js → cleanup-OC2VH2NM.js} +2 -2
  35. package/bundle/{cleanup-UW3DZLXP.js → cleanup-QAYOZSYG.js} +2 -2
  36. package/bundle/cleanup-RSDKY26B.js +32 -0
  37. package/bundle/{core-LN2S4IOX.js → core-LD6MHGD6.js} +3 -7
  38. package/bundle/{devtoolsService-DUEWJW52.js → devtoolsService-4Y2RGEUE.js} +2 -2
  39. package/bundle/{devtoolsService-64QE2V7E.js → devtoolsService-72PYXNY7.js} +2 -2
  40. package/bundle/{devtoolsService-ZC7E4R2A.js → devtoolsService-A7GGCE5S.js} +4 -3
  41. package/bundle/devtoolsService-W6D2CBSD.js +856 -0
  42. package/bundle/{dist-J4RONYVV.js → dist-AWZHVQVU.js} +3 -7
  43. package/bundle/{core-GW6VAL53.js → dist-JIEO7BGB.js} +3 -7
  44. package/bundle/dist-NIOYWUBZ.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-5BI3CAHU.js} +41 -30
  50. package/bundle/{gemini-CSPRLMWN.js → gemini-5ZI322FJ.js} +41 -30
  51. package/bundle/{gemini-CMBH5YG6.js → gemini-VGWW5S4X.js} +239 -212
  52. package/bundle/gemini-WNFLKYIG.js +16406 -0
  53. package/bundle/gemini.js +15 -10
  54. package/bundle/{interactiveCli-RDMZS6KL.js → interactiveCli-HERACVWI.js} +34 -58
  55. package/bundle/{interactiveCli-Q2A2JFLA.js → interactiveCli-MK4KMRE5.js} +340 -345
  56. package/bundle/interactiveCli-MV4UI2QW.js +34726 -0
  57. package/bundle/{interactiveCli-TOEU7LIO.js → interactiveCli-XM5HDVD7.js} +34 -58
  58. package/bundle/{liteRtServerManager-ASKAVAO7.js → liteRtServerManager-6ABLEPRZ.js} +4 -4
  59. package/bundle/{liteRtServerManager-6BWTXMUI.js → liteRtServerManager-6N5DYDEQ.js} +4 -4
  60. package/bundle/{liteRtServerManager-ZS3BCW53.js → liteRtServerManager-PCEFUKXR.js} +4 -4
  61. package/bundle/liteRtServerManager-PRFP3VM3.js +65 -0
  62. package/bundle/{oauth2-provider-SYRZDGL5.js → oauth2-provider-RHC4TM2M.js} +1 -1
  63. package/bundle/{oauth2-provider-7JOVY727.js → oauth2-provider-S3GQDX6M.js} +38 -72
  64. package/bundle/{oauth2-provider-FGI6QDEM.js → oauth2-provider-WS7LUQ5V.js} +1 -1
  65. package/bundle/oauth2-provider-YDSFC443.js +235 -0
  66. package/bundle/{start-KJCIH3GX.js → start-6J7J6MU3.js} +6 -6
  67. package/bundle/{start-TU5WNP77.js → start-SVVJOUJH.js} +6 -6
  68. package/bundle/{start-47OYCVVA.js → start-XLIGOOW3.js} +6 -6
  69. package/bundle/start-Z3RQJJU3.js +18 -0
  70. 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
  exitCli,
4
4
  require_source
5
- } from "./chunk-FOOWNGAB.js";
5
+ } from "./chunk-XLNVYLTH.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-LM6XTSWQ.js";
17
+ } from "./chunk-LM7IUUPG.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-BE42OOYM.js";
20
+ } from "./chunk-FBTNPKPG.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-TW47A6FW.js";
8
+ } from "./chunk-FBTNPKPG.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,13 +1,13 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-5CABHQOE.js";
4
+ } from "./chunk-767WVJKA.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-TW47A6FW.js";
10
+ } from "./chunk-GTQYFINA.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -1,7 +1,8 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
+ CoreToolCallStatus,
3
4
  checkExhaustive
4
- } from "./chunk-TW47A6FW.js";
5
+ } from "./chunk-ZAP2IAMA.js";
5
6
  import {
6
7
  __commonJS,
7
8
  __toESM
@@ -464,19 +465,19 @@ var require_react = __commonJS({
464
465
  var import_react = __toESM(require_react(), 1);
465
466
  function mapCoreStatusToDisplayStatus(coreStatus) {
466
467
  switch (coreStatus) {
467
- case "validating" /* Validating */:
468
+ case CoreToolCallStatus.Validating:
468
469
  return "Pending" /* Pending */;
469
- case "awaiting_approval" /* AwaitingApproval */:
470
+ case CoreToolCallStatus.AwaitingApproval:
470
471
  return "Confirming" /* Confirming */;
471
- case "executing" /* Executing */:
472
+ case CoreToolCallStatus.Executing:
472
473
  return "Executing" /* Executing */;
473
- case "success" /* Success */:
474
+ case CoreToolCallStatus.Success:
474
475
  return "Success" /* Success */;
475
- case "cancelled" /* Cancelled */:
476
+ case CoreToolCallStatus.Cancelled:
476
477
  return "Canceled" /* Canceled */;
477
- case "error" /* Error */:
478
+ case CoreToolCallStatus.Error:
478
479
  return "Error" /* Error */;
479
- case "scheduled" /* Scheduled */:
480
+ case CoreToolCallStatus.Scheduled:
480
481
  return "Pending" /* Pending */;
481
482
  default:
482
483
  return checkExhaustive(coreStatus);
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-FOOWNGAB.js";
9
+ } from "./chunk-XLNVYLTH.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,14 +58,14 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-LM6XTSWQ.js";
61
+ } from "./chunk-LM7IUUPG.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-N4SGO3W6.js";
64
+ } from "./chunk-MGXTB4U2.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-EKUU3KNX.js";
68
+ } from "./chunk-VONINEZL.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
@@ -243,7 +243,7 @@ import {
243
243
  tokenLimit,
244
244
  uiTelemetryService,
245
245
  unescapePath
246
- } from "./chunk-BE42OOYM.js";
246
+ } from "./chunk-FBTNPKPG.js";
247
247
  import {
248
248
  require_src
249
249
  } from "./chunk-TUDYL3X4.js";
@@ -45605,7 +45605,7 @@ async function canLoadServer(serverId, config) {
45605
45605
  blockType: "admin"
45606
45606
  };
45607
45607
  }
45608
- if (config.allowedList && config.allowedList.length > 0) {
45608
+ if (config.allowedList !== void 0) {
45609
45609
  const { found, deprecationWarning } = isInSettingsList(
45610
45610
  normalizedId,
45611
45611
  config.allowedList
@@ -56514,7 +56514,7 @@ var authCommand = {
56514
56514
  import process28 from "node:process";
56515
56515
 
56516
56516
  // packages/cli/src/generated/git-commit.ts
56517
- var GIT_COMMIT_INFO = "1000b33d4";
56517
+ var GIT_COMMIT_INFO = "5cac7c10f";
56518
56518
 
56519
56519
  // packages/cli/src/ui/utils/historyExportUtils.ts
56520
56520
  import * as fsPromises from "node:fs/promises";
@@ -62275,7 +62275,7 @@ Use /mcp auth <server-name> to authenticate.`
62275
62275
  type: "info",
62276
62276
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62277
62277
  });
62278
- const { MCPOAuthProvider } = await import("./dist-J4RONYVV.js");
62278
+ const { MCPOAuthProvider } = await import("./dist-AWZHVQVU.js");
62279
62279
  let oauthConfig = server.oauth;
62280
62280
  if (!oauthConfig) {
62281
62281
  oauthConfig = { enabled: false };
@@ -1,6 +1,9 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  AuthProviderType,
4
+ AuthType,
5
+ CoreEvent,
6
+ CoreToolCallStatus,
4
7
  DEFAULT_MODEL_CONFIGS,
5
8
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
6
9
  EDITOR_OPTIONS,
@@ -29,7 +32,7 @@ import {
29
32
  require_strip_json_comments,
30
33
  sanitizeFilenamePart,
31
34
  stripAnsi
32
- } from "./chunk-TW47A6FW.js";
35
+ } from "./chunk-FBTNPKPG.js";
33
36
  import {
34
37
  __commonJS,
35
38
  __require,
@@ -10176,7 +10179,11 @@ function convertSessionToHistoryFormats(messages) {
10176
10179
  const displayContentString = msg.displayContent ? partListUnionToString(msg.displayContent) : void 0;
10177
10180
  const contentString = partListUnionToString(msg.content);
10178
10181
  const uiText = displayContentString || contentString;
10179
- if (uiText.trim()) {
10182
+ const trimmedText = uiText.trim();
10183
+ if (trimmedText.startsWith("<session_context>") || trimmedText.startsWith("<hook_context>")) {
10184
+ continue;
10185
+ }
10186
+ if (trimmedText) {
10180
10187
  let messageType;
10181
10188
  switch (msg.type) {
10182
10189
  case "user":
@@ -10213,7 +10220,7 @@ function convertSessionToHistoryFormats(messages) {
10213
10220
  args: tool.args,
10214
10221
  description: tool.description || "",
10215
10222
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10216
- status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10223
+ status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10217
10224
  resultDisplay: tool.resultDisplay,
10218
10225
  confirmationDetails: void 0
10219
10226
  }))
@@ -14551,6 +14558,15 @@ var SETTINGS_SCHEMA = {
14551
14558
  description: "Suitable for general coding and software development tasks.",
14552
14559
  showInDialog: true
14553
14560
  },
14561
+ powerUserProfile: {
14562
+ type: "boolean",
14563
+ label: "Use the power user profile to manage agent contexts.",
14564
+ category: "Experimental",
14565
+ requiresRestart: true,
14566
+ default: false,
14567
+ description: "Less cache friendly version of the generalist profile.",
14568
+ showInDialog: false
14569
+ },
14554
14570
  contextManagement: {
14555
14571
  type: "boolean",
14556
14572
  label: "Enable Context Management",
@@ -16265,8 +16281,8 @@ var LoadedSettings = class {
16265
16281
  // React will pass a listener fn into this subscribe fn
16266
16282
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16267
16283
  subscribe(listener) {
16268
- coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16269
- return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16284
+ coreEvents.on(CoreEvent.SettingsChanged, listener);
16285
+ return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16270
16286
  }
16271
16287
  getSnapshot() {
16272
16288
  return this._snapshot;
@@ -16327,6 +16343,47 @@ var LoadedSettings = class {
16327
16343
  this._remoteAdminSettings = { admin };
16328
16344
  this._merged = this.computeMergedSettings();
16329
16345
  }
16346
+ /**
16347
+ * Returns a consolidated list of excluded MCP servers across all settings files.
16348
+ */
16349
+ getConsolidatedExcludedMcpServers() {
16350
+ const scopes = [
16351
+ this.system,
16352
+ this.systemDefaults,
16353
+ this.user,
16354
+ this.workspace
16355
+ ];
16356
+ return scopes.flatMap((scope) => {
16357
+ const excluded = scope?.settings?.mcp?.excluded;
16358
+ return Array.isArray(excluded) ? excluded : [];
16359
+ });
16360
+ }
16361
+ /**
16362
+ * Returns a consolidated list of allowed MCP servers (via intersection of all defined lists).
16363
+ */
16364
+ getConsolidatedAllowedMcpServers() {
16365
+ const scopes = [
16366
+ this.system,
16367
+ this.systemDefaults,
16368
+ this.user,
16369
+ this.workspace
16370
+ ];
16371
+ const definedAllowlists = scopes.flatMap((scope) => {
16372
+ const allowed = scope?.settings?.mcp?.allowed;
16373
+ return Array.isArray(allowed) ? [allowed] : [];
16374
+ });
16375
+ if (definedAllowlists.length === 0) {
16376
+ return void 0;
16377
+ }
16378
+ return definedAllowlists.reduce((acc, current) => {
16379
+ const normalizedCurrent = new Set(
16380
+ current.map((item) => item.toLowerCase().trim())
16381
+ );
16382
+ return acc.filter(
16383
+ (item) => normalizedCurrent.has(item.toLowerCase().trim())
16384
+ );
16385
+ });
16386
+ }
16330
16387
  };
16331
16388
  function findEnvFile(startDir, isTrusted, ignoreLocalEnv) {
16332
16389
  let currentDir = path3.resolve(startDir);
@@ -16369,7 +16426,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
16369
16426
  }
16370
16427
  }
16371
16428
  let value = "cloudshell-gca";
16372
- if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
16429
+ if (selectedAuthType === AuthType.USE_VERTEX_AI) {
16373
16430
  value = process2.env[USER_GCP_PROJECT];
16374
16431
  }
16375
16432
  if (envFilePath && fs4.existsSync(envFilePath)) {
@@ -1,13 +1,13 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-ONQVFEHS.js";
4
+ } from "./chunk-OY6QYVTR.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-SIXPHUVZ.js";
10
+ } from "./chunk-CWAXEILN.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -1,13 +1,13 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-DALZZYPQ.js";
4
+ } from "./chunk-HTTFLYNV.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-BE42OOYM.js";
10
+ } from "./chunk-FBTNPKPG.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-SIXPHUVZ.js";
8
+ } from "./chunk-CWAXEILN.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  exitCli,
4
4
  require_source
5
- } from "./chunk-M3EDSAPV.js";
5
+ } from "./chunk-4M3TG6ZU.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-7ZH745HC.js";
17
+ } from "./chunk-GIXFMPPJ.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-TW47A6FW.js";
20
+ } from "./chunk-CWAXEILN.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";