@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
@@ -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-7EPRHON5.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-IGGUR3YU.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -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-PN5LGMOT.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);
@@ -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-U3JK5HRW.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);
@@ -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-U3JK5HRW.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);