@google/gemini-cli 0.44.0 → 0.45.0-preview.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 (54) hide show
  1. package/bundle/{chunk-BOYNQXWU.js → chunk-2O7YSVPU.js} +2 -2
  2. package/bundle/{chunk-CBT4PN4R.js → chunk-2RRZM3IR.js} +8 -8
  3. package/bundle/{chunk-BE42OOYM.js → chunk-4FNXKOEB.js} +377 -297
  4. package/bundle/{chunk-FOOWNGAB.js → chunk-4M3TG6ZU.js} +1 -1
  5. package/bundle/{chunk-XTG4JBIR.js → chunk-APSDEHHA.js} +1 -1
  6. package/bundle/{chunk-SIXPHUVZ.js → chunk-CWAXEILN.js} +423 -330
  7. package/bundle/{chunk-LM6XTSWQ.js → chunk-DMCSPKNM.js} +56 -2
  8. package/bundle/{chunk-M3EDSAPV.js → chunk-EZCW6IDX.js} +1 -1
  9. package/bundle/{chunk-3K52543M.js → chunk-GIXFMPPJ.js} +56 -2
  10. package/bundle/{chunk-TN4WXWFM.js → chunk-I7UI7NB6.js} +3 -3
  11. package/bundle/{chunk-OTLI6LZ3.js → chunk-IPQLMJS5.js} +1 -1
  12. package/bundle/{chunk-VUERI7WB.js → chunk-J4QUIOHJ.js} +8 -8
  13. package/bundle/{chunk-TW47A6FW.js → chunk-J7SEBVDD.js} +423 -330
  14. package/bundle/{chunk-QUZ62PY7.js → chunk-LUQGJPIY.js} +2 -2
  15. package/bundle/{chunk-N4SGO3W6.js → chunk-N4X4WHSW.js} +2 -2
  16. package/bundle/{chunk-EKUU3KNX.js → chunk-NOJPXYUJ.js} +1 -1
  17. package/bundle/{chunk-DALZZYPQ.js → chunk-OY6QYVTR.js} +1 -1
  18. package/bundle/{chunk-6W2Z7FTE.js → chunk-Q3UZDZZV.js} +3 -3
  19. package/bundle/{chunk-5CABHQOE.js → chunk-R5OZKB4U.js} +1 -1
  20. package/bundle/{chunk-7KIX5G5D.js → chunk-S4CJ6KAO.js} +3 -3
  21. package/bundle/{chunk-OLBOCZ5F.js → chunk-TH3OOWK4.js} +8 -8
  22. package/bundle/{chunk-7ZH745HC.js → chunk-VS2OY6HJ.js} +56 -2
  23. package/bundle/{chunk-G2L4VCSN.js → chunk-WPCNMQ6J.js} +1 -1
  24. package/bundle/{chunk-ONQVFEHS.js → chunk-Y5REX36P.js} +1 -1
  25. package/bundle/{cleanup-PDT5ATZB.js → cleanup-2WCUS5XU.js} +2 -2
  26. package/bundle/{cleanup-SF7XW2P3.js → cleanup-7FHLTEXT.js} +2 -2
  27. package/bundle/{cleanup-UW3DZLXP.js → cleanup-WGOZFAQJ.js} +2 -2
  28. package/bundle/{core-LN2S4IOX.js → core-LD6MHGD6.js} +3 -7
  29. package/bundle/{dist-J4RONYVV.js → core-SIRU2VWJ.js} +3 -7
  30. package/bundle/{devtoolsService-DUEWJW52.js → devtoolsService-4Y2RGEUE.js} +2 -2
  31. package/bundle/{devtoolsService-ZC7E4R2A.js → devtoolsService-F5XFL4BF.js} +2 -2
  32. package/bundle/{devtoolsService-64QE2V7E.js → devtoolsService-IANYOK3R.js} +2 -2
  33. package/bundle/{core-GW6VAL53.js → dist-67ZORME5.js} +3 -7
  34. package/bundle/docs/changelogs/index.md +15 -0
  35. package/bundle/docs/changelogs/latest.md +198 -262
  36. package/bundle/docs/changelogs/preview.md +202 -181
  37. package/bundle/docs/reference/configuration.md +24 -29
  38. package/bundle/{gemini-SSQIKHR2.js → gemini-24ENZ343.js} +41 -30
  39. package/bundle/{gemini-CMBH5YG6.js → gemini-5ZI322FJ.js} +41 -30
  40. package/bundle/{gemini-CSPRLMWN.js → gemini-74UML3PJ.js} +41 -30
  41. package/bundle/gemini.js +15 -10
  42. package/bundle/{interactiveCli-RDMZS6KL.js → interactiveCli-7GM3U7SA.js} +34 -58
  43. package/bundle/{interactiveCli-TOEU7LIO.js → interactiveCli-BVZLMTVC.js} +34 -58
  44. package/bundle/{interactiveCli-Q2A2JFLA.js → interactiveCli-XM5HDVD7.js} +34 -58
  45. package/bundle/{liteRtServerManager-ASKAVAO7.js → liteRtServerManager-3HS3VUPU.js} +4 -4
  46. package/bundle/{liteRtServerManager-6BWTXMUI.js → liteRtServerManager-6N5DYDEQ.js} +4 -4
  47. package/bundle/{liteRtServerManager-ZS3BCW53.js → liteRtServerManager-JVMDH3TN.js} +4 -4
  48. package/bundle/{oauth2-provider-SYRZDGL5.js → oauth2-provider-RUFABDNL.js} +1 -1
  49. package/bundle/{oauth2-provider-FGI6QDEM.js → oauth2-provider-U72EWZHQ.js} +1 -1
  50. package/bundle/{oauth2-provider-7JOVY727.js → oauth2-provider-WS7LUQ5V.js} +1 -1
  51. package/bundle/{start-KJCIH3GX.js → start-DJ6EBFEA.js} +6 -6
  52. package/bundle/{start-TU5WNP77.js → start-KOAGXRA2.js} +6 -6
  53. package/bundle/{start-47OYCVVA.js → start-XLIGOOW3.js} +6 -6
  54. package/package.json +1 -1
@@ -32,7 +32,7 @@ import {
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart,
34
34
  stripAnsi
35
- } from "./chunk-BE42OOYM.js";
35
+ } from "./chunk-4FNXKOEB.js";
36
36
  import {
37
37
  __commonJS,
38
38
  __require,
@@ -10179,7 +10179,11 @@ function convertSessionToHistoryFormats(messages) {
10179
10179
  const displayContentString = msg.displayContent ? partListUnionToString(msg.displayContent) : void 0;
10180
10180
  const contentString = partListUnionToString(msg.content);
10181
10181
  const uiText = displayContentString || contentString;
10182
- if (uiText.trim()) {
10182
+ const trimmedText = uiText.trim();
10183
+ if (trimmedText.startsWith("<session_context>") || trimmedText.startsWith("<hook_context>")) {
10184
+ continue;
10185
+ }
10186
+ if (trimmedText) {
10183
10187
  let messageType;
10184
10188
  switch (msg.type) {
10185
10189
  case "user":
@@ -14554,6 +14558,15 @@ var SETTINGS_SCHEMA = {
14554
14558
  description: "Suitable for general coding and software development tasks.",
14555
14559
  showInDialog: true
14556
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
+ },
14557
14570
  contextManagement: {
14558
14571
  type: "boolean",
14559
14572
  label: "Enable Context Management",
@@ -16330,6 +16343,47 @@ var LoadedSettings = class {
16330
16343
  this._remoteAdminSettings = { admin };
16331
16344
  this._merged = this.computeMergedSettings();
16332
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
+ }
16333
16387
  };
16334
16388
  function findEnvFile(startDir, isTrusted, ignoreLocalEnv) {
16335
16389
  let currentDir = path3.resolve(startDir);
@@ -1,7 +1,7 @@
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-R5OZKB4U.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -29,7 +29,7 @@ import {
29
29
  require_strip_json_comments,
30
30
  sanitizeFilenamePart,
31
31
  stripAnsi
32
- } from "./chunk-SIXPHUVZ.js";
32
+ } from "./chunk-CWAXEILN.js";
33
33
  import {
34
34
  __commonJS,
35
35
  __require,
@@ -10176,7 +10176,11 @@ function convertSessionToHistoryFormats(messages) {
10176
10176
  const displayContentString = msg.displayContent ? partListUnionToString(msg.displayContent) : void 0;
10177
10177
  const contentString = partListUnionToString(msg.content);
10178
10178
  const uiText = displayContentString || contentString;
10179
- if (uiText.trim()) {
10179
+ const trimmedText = uiText.trim();
10180
+ if (trimmedText.startsWith("<session_context>") || trimmedText.startsWith("<hook_context>")) {
10181
+ continue;
10182
+ }
10183
+ if (trimmedText) {
10180
10184
  let messageType;
10181
10185
  switch (msg.type) {
10182
10186
  case "user":
@@ -14551,6 +14555,15 @@ var SETTINGS_SCHEMA = {
14551
14555
  description: "Suitable for general coding and software development tasks.",
14552
14556
  showInDialog: true
14553
14557
  },
14558
+ powerUserProfile: {
14559
+ type: "boolean",
14560
+ label: "Use the power user profile to manage agent contexts.",
14561
+ category: "Experimental",
14562
+ requiresRestart: true,
14563
+ default: false,
14564
+ description: "Less cache friendly version of the generalist profile.",
14565
+ showInDialog: false
14566
+ },
14554
14567
  contextManagement: {
14555
14568
  type: "boolean",
14556
14569
  label: "Enable Context Management",
@@ -16327,6 +16340,47 @@ var LoadedSettings = class {
16327
16340
  this._remoteAdminSettings = { admin };
16328
16341
  this._merged = this.computeMergedSettings();
16329
16342
  }
16343
+ /**
16344
+ * Returns a consolidated list of excluded MCP servers across all settings files.
16345
+ */
16346
+ getConsolidatedExcludedMcpServers() {
16347
+ const scopes = [
16348
+ this.system,
16349
+ this.systemDefaults,
16350
+ this.user,
16351
+ this.workspace
16352
+ ];
16353
+ return scopes.flatMap((scope) => {
16354
+ const excluded = scope?.settings?.mcp?.excluded;
16355
+ return Array.isArray(excluded) ? excluded : [];
16356
+ });
16357
+ }
16358
+ /**
16359
+ * Returns a consolidated list of allowed MCP servers (via intersection of all defined lists).
16360
+ */
16361
+ getConsolidatedAllowedMcpServers() {
16362
+ const scopes = [
16363
+ this.system,
16364
+ this.systemDefaults,
16365
+ this.user,
16366
+ this.workspace
16367
+ ];
16368
+ const definedAllowlists = scopes.flatMap((scope) => {
16369
+ const allowed = scope?.settings?.mcp?.allowed;
16370
+ return Array.isArray(allowed) ? [allowed] : [];
16371
+ });
16372
+ if (definedAllowlists.length === 0) {
16373
+ return void 0;
16374
+ }
16375
+ return definedAllowlists.reduce((acc, current) => {
16376
+ const normalizedCurrent = new Set(
16377
+ current.map((item) => item.toLowerCase().trim())
16378
+ );
16379
+ return acc.filter(
16380
+ (item) => normalizedCurrent.has(item.toLowerCase().trim())
16381
+ );
16382
+ });
16383
+ }
16330
16384
  };
16331
16385
  function findEnvFile(startDir, isTrusted, ignoreLocalEnv) {
16332
16386
  let currentDir = path3.resolve(startDir);
@@ -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-OTLI6LZ3.js";
5
+ } from "./chunk-IPQLMJS5.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-3K52543M.js";
17
+ } from "./chunk-VS2OY6HJ.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-SIXPHUVZ.js";
20
+ } from "./chunk-J7SEBVDD.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -1,7 +1,7 @@
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-Y5REX36P.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-FOOWNGAB.js";
9
+ } from "./chunk-EZCW6IDX.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-DMCSPKNM.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-N4SGO3W6.js";
64
+ } from "./chunk-2O7YSVPU.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-EKUU3KNX.js";
68
+ } from "./chunk-NOJPXYUJ.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-4FNXKOEB.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 = "b545258c4";
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-67ZORME5.js");
62279
62279
  let oauthConfig = server.oauth;
62280
62280
  if (!oauthConfig) {
62281
62281
  oauthConfig = { enabled: false };