@google/gemini-cli 0.64.0-preview.0 → 0.65.0-nightly.20261008.g44d764ee5

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 (72) hide show
  1. package/bundle/{chunk-2NQXIWQK.js → chunk-3E6LR7PD.js} +32 -4
  2. package/bundle/{chunk-EBP6K2WG.js → chunk-3HM2DUPL.js} +50 -18
  3. package/bundle/{chunk-HSZIYPL6.js → chunk-4YOFVKC3.js} +3 -3
  4. package/bundle/{chunk-KCCVXZ52.js → chunk-63N5Z55Y.js} +114 -69
  5. package/bundle/{chunk-UFQDAROY.js → chunk-7BGM6KG2.js} +1 -1
  6. package/bundle/{chunk-EDYPRCAA.js → chunk-7PODN7KW.js} +2 -2
  7. package/bundle/{chunk-ZQW7OGUO.js → chunk-ARJWMIGO.js} +628 -124
  8. package/bundle/{chunk-U76XPSKR.js → chunk-AUU7WOFW.js} +50 -18
  9. package/bundle/{chunk-SDWOC67Z.js → chunk-BA5YFKKS.js} +1 -1
  10. package/bundle/{chunk-UBGF6JU5.js → chunk-BIHX2DZB.js} +1 -1
  11. package/bundle/{chunk-HN74ORTP.js → chunk-EZGM7WCW.js} +32 -4
  12. package/bundle/{chunk-NX7TO2DU.js → chunk-G73R7Q4K.js} +1 -1
  13. package/bundle/{chunk-EFX5XL6M.js → chunk-HN32MQMG.js} +2 -2
  14. package/bundle/{chunk-VBVCLWLA.js → chunk-HRPULK65.js} +2 -2
  15. package/bundle/{chunk-A4TO2DY2.js → chunk-IL5DA7Y5.js} +8460 -14960
  16. package/bundle/{chunk-2VN53SWW.js → chunk-IUZHBNL5.js} +9 -8
  17. package/bundle/{chunk-EDVFNWRG.js → chunk-JPVUKQJ7.js} +1 -1
  18. package/bundle/{chunk-QUCRASYB.js → chunk-LGG27U7G.js} +1 -1
  19. package/bundle/{chunk-MLSLNORV.js → chunk-MV5ZEQKH.js} +3 -3
  20. package/bundle/chunk-PFU4B5QN.js +154 -0
  21. package/bundle/{chunk-ZPLFLZQA.js → chunk-PPUDMLP4.js} +38 -8
  22. package/bundle/{chunk-VJYKQD5D.js → chunk-Q2G3IFID.js} +3 -3
  23. package/bundle/chunk-Q6FM3IBA.js +512 -0
  24. package/bundle/chunk-RUV5VETL.js +17535 -0
  25. package/bundle/chunk-SQDLQBAY.js +118 -0
  26. package/bundle/chunk-UB5UMEXC.js +401700 -0
  27. package/bundle/{chunk-ZOHM7BPT.js → chunk-UCDMKAAW.js} +1 -1
  28. package/bundle/{chunk-Y2HXXBXI.js → chunk-XDI7ON7P.js} +1 -1
  29. package/bundle/{chunk-6OFXOGEG.js → chunk-XMBLOFHQ.js} +667 -128
  30. package/bundle/chunk-YMVWBWWO.js +1571 -0
  31. package/bundle/chunk-ZCMBTRVW.js +425 -0
  32. package/bundle/chunk-ZQB4PBVQ.js +103153 -0
  33. package/bundle/{cleanup-GGCB2LVD.js → cleanup-333PJ32W.js} +2 -2
  34. package/bundle/{cleanup-JRDG3OTL.js → cleanup-FAR6AR3H.js} +2 -2
  35. package/bundle/{cleanup-SSW6IXTR.js → cleanup-GL3Y6D27.js} +2 -2
  36. package/bundle/cleanup-JB3GTDPK.js +32 -0
  37. package/bundle/{core-IUIZE6JW.js → core-4FIJ3NBL.js} +13 -1
  38. package/bundle/{devtoolsService-3SADPKKB.js → devtoolsService-2WM4AKWJ.js} +2 -2
  39. package/bundle/{devtoolsService-XZCKFZP5.js → devtoolsService-3VV6G7M6.js} +2 -2
  40. package/bundle/{devtoolsService-MF6JKRUV.js → devtoolsService-4Q6IMJZW.js} +4 -3
  41. package/bundle/devtoolsService-MNAMTUTD.js +4359 -0
  42. package/bundle/{dist-7L3BRW6V.js → dist-B6O7SDYJ.js} +13 -1
  43. package/bundle/{core-6HRWFQZW.js → dist-BBUYPVDB.js} +13 -1
  44. package/bundle/dist-HG6AYV4Z.js +2264 -0
  45. package/bundle/docs/changelogs/index.md +14 -0
  46. package/bundle/docs/changelogs/latest.md +55 -34
  47. package/bundle/docs/changelogs/preview.md +59 -54
  48. package/bundle/docs/cli/telemetry.md +1 -0
  49. package/bundle/docs/reference/configuration.md +7 -0
  50. package/bundle/docs/tools/mcp-server.md +41 -12
  51. package/bundle/{gemini-JPMMQ3KA.js → gemini-3RQKEPRX.js} +41 -21
  52. package/bundle/{gemini-QOQNG5VY.js → gemini-O5W6WLU3.js} +241 -205
  53. package/bundle/gemini-PE5RKGLA.js +17954 -0
  54. package/bundle/{gemini-ZMMDUAQJ.js → gemini-TZNM5EXD.js} +41 -21
  55. package/bundle/gemini.js +7 -7
  56. package/bundle/{interactiveCli-UDWGRVJL.js → interactiveCli-EY52EA4C.js} +50 -32
  57. package/bundle/{interactiveCli-3I4TG5SK.js → interactiveCli-P4I2OMIO.js} +354 -317
  58. package/bundle/{interactiveCli-R3P4A3FC.js → interactiveCli-PGWKO5T6.js} +50 -32
  59. package/bundle/interactiveCli-T2TOLST3.js +34997 -0
  60. package/bundle/{liteRtServerManager-OVPUSK2T.js → liteRtServerManager-52LZHRIE.js} +4 -4
  61. package/bundle/{liteRtServerManager-RAV63AGE.js → liteRtServerManager-GG66IH7W.js} +4 -4
  62. package/bundle/{liteRtServerManager-4MWCEVVM.js → liteRtServerManager-TAPI266B.js} +4 -4
  63. package/bundle/liteRtServerManager-ZMK3WM5V.js +65 -0
  64. package/bundle/{oauth2-provider-FVTRRJZR.js → oauth2-provider-7PEUKPJH.js} +47 -9
  65. package/bundle/{oauth2-provider-XFP63FGJ.js → oauth2-provider-EU3BXPHB.js} +84 -80
  66. package/bundle/oauth2-provider-JB36DOZE.js +273 -0
  67. package/bundle/{oauth2-provider-EWOA64PR.js → oauth2-provider-W7KEN635.js} +51 -9
  68. package/bundle/{start-DJAIXPPY.js → start-2D4TOWA4.js} +6 -6
  69. package/bundle/{start-VQQ2Q5KT.js → start-G7MFP7R2.js} +6 -6
  70. package/bundle/{start-5O7TBK5L.js → start-VJAR6RFJ.js} +6 -6
  71. package/bundle/start-VWUPOWW5.js +18 -0
  72. 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-QUCRASYB.js";
5
+ } from "./chunk-YMVWBWWO.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,15 +63,15 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-ZPLFLZQA.js";
66
+ } from "./chunk-3E6LR7PD.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-EFX5XL6M.js";
69
+ } from "./chunk-HRPULK65.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-2VN53SWW.js";
74
+ } from "./chunk-XDI7ON7P.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -239,7 +239,7 @@ import {
239
239
  tokenLimit,
240
240
  uiTelemetryService,
241
241
  unescapePath
242
- } from "./chunk-A4TO2DY2.js";
242
+ } from "./chunk-XMBLOFHQ.js";
243
243
  import {
244
244
  require_src
245
245
  } from "./chunk-L6PII3GR.js";
@@ -77751,7 +77751,7 @@ var authCommand = {
77751
77751
  import process29 from "node:process";
77752
77752
 
77753
77753
  // packages/cli/src/generated/git-commit.ts
77754
- var GIT_COMMIT_INFO = "fb972b2f8";
77754
+ var GIT_COMMIT_INFO = "44d764ee5";
77755
77755
 
77756
77756
  // packages/cli/src/ui/utils/historyExportUtils.ts
77757
77757
  import * as fsPromises from "node:fs/promises";
@@ -80882,18 +80882,22 @@ var import_react71 = __toESM(require_react(), 1);
80882
80882
  import process33 from "node:process";
80883
80883
  var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
80884
80884
  var MemoryUsageDisplay = ({ color = theme.text.primary, isActive = true }) => {
80885
- const [memoryUsage, setMemoryUsage] = (0, import_react71.useState)("");
80886
- const [memoryUsageColor, setMemoryUsageColor] = (0, import_react71.useState)(color);
80885
+ const [memoryUsage, setMemoryUsage] = (0, import_react71.useState)(
80886
+ () => formatBytes(process33.memoryUsage().rss)
80887
+ );
80888
+ const [memoryUsageColor, setMemoryUsageColor] = (0, import_react71.useState)(
80889
+ () => process33.memoryUsage().rss >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color
80890
+ );
80887
80891
  (0, import_react71.useEffect)(() => {
80888
80892
  if (!isActive) {
80889
80893
  return;
80890
80894
  }
80891
80895
  const updateMemory = () => {
80892
80896
  const usage = process33.memoryUsage().rss;
80893
- setMemoryUsage(formatBytes(usage));
80894
- setMemoryUsageColor(
80895
- usage >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color
80896
- );
80897
+ const formatted = formatBytes(usage);
80898
+ const nextColor = usage >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color;
80899
+ setMemoryUsage((prev) => prev === formatted ? prev : formatted);
80900
+ setMemoryUsageColor((prev) => prev === nextColor ? prev : nextColor);
80897
80901
  };
80898
80902
  const intervalId = setInterval(updateMemory, 2e3);
80899
80903
  updateMemory();
@@ -81387,7 +81391,13 @@ var Footer = () => {
81387
81391
  addCol(
81388
81392
  id,
81389
81393
  header,
81390
- () => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(MemoryUsageDisplay, { color: itemColor, isActive: !copyModeEnabled }),
81394
+ () => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
81395
+ MemoryUsageDisplay,
81396
+ {
81397
+ color: itemColor,
81398
+ isActive: !copyModeEnabled && uiState.constrainHeight
81399
+ }
81400
+ ),
81391
81401
  10
81392
81402
  );
81393
81403
  break;
@@ -81878,6 +81888,18 @@ var import_react74 = __toESM(require_react(), 1);
81878
81888
 
81879
81889
  // packages/cli/src/ui/utils/rewindFileOps.ts
81880
81890
  import fs32 from "node:fs/promises";
81891
+ function isPartWithKey(part, key) {
81892
+ return typeof part === "object" && part !== null && key in part;
81893
+ }
81894
+ function isToolResponseMessage(msg) {
81895
+ if (msg.type !== "user" || !Array.isArray(msg.content) || msg.content.length === 0) {
81896
+ return false;
81897
+ }
81898
+ const parts = msg.content;
81899
+ return parts.some((p2) => isPartWithKey(p2, "functionResponse")) && parts.every(
81900
+ (p2) => isPartWithKey(p2, "functionResponse") || isPartWithKey(p2, "inlineData") || isPartWithKey(p2, "fileData")
81901
+ );
81902
+ }
81881
81903
  function calculateTurnStats(conversation, userMessage) {
81882
81904
  const msgIndex = conversation.messages.indexOf(userMessage);
81883
81905
  if (msgIndex === -1) return null;
@@ -81887,7 +81909,9 @@ function calculateTurnStats(conversation, userMessage) {
81887
81909
  let hasEdits = false;
81888
81910
  for (let i = msgIndex + 1; i < conversation.messages.length; i++) {
81889
81911
  const msg = conversation.messages[i];
81890
- if (msg.type === "user") break;
81912
+ if (msg.type === "user" && !isToolResponseMessage(msg)) {
81913
+ break;
81914
+ }
81891
81915
  if (msg.type === "gemini" && msg.toolCalls) {
81892
81916
  for (const toolCall of msg.toolCalls) {
81893
81917
  const fileDiff = getFileDiffFromResultDisplay(toolCall.resultDisplay);
@@ -82246,7 +82270,9 @@ var RewindViewer = ({
82246
82270
  null
82247
82271
  );
82248
82272
  const interactions = (0, import_react76.useMemo)(
82249
- () => conversation.messages.filter((msg) => msg.type === "user"),
82273
+ () => conversation.messages.filter(
82274
+ (msg) => msg.type === "user" && !isToolResponseMessage(msg)
82275
+ ),
82250
82276
  [conversation.messages]
82251
82277
  );
82252
82278
  const items = (0, import_react76.useMemo)(() => {
@@ -83532,7 +83558,7 @@ Use /mcp auth <server-name> to authenticate.`
83532
83558
  type: "info",
83533
83559
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83534
83560
  });
83535
- const { MCPOAuthProvider } = await import("./core-IUIZE6JW.js");
83561
+ const { MCPOAuthProvider } = await import("./core-4FIJ3NBL.js");
83536
83562
  let oauthConfig = server.oauth;
83537
83563
  if (!oauthConfig) {
83538
83564
  oauthConfig = { enabled: false };
@@ -97489,10 +97515,16 @@ var MaxSizedBox = ({
97489
97515
  (0, import_react79.useEffect)(() => {
97490
97516
  if (totalHiddenLines > 0) {
97491
97517
  addOverflowingId?.(id);
97492
- } else {
97518
+ } else if (effectiveMaxHeight !== void 0) {
97493
97519
  removeOverflowingId?.(id);
97494
97520
  }
97495
- }, [id, totalHiddenLines, addOverflowingId, removeOverflowingId]);
97521
+ }, [
97522
+ id,
97523
+ totalHiddenLines,
97524
+ effectiveMaxHeight,
97525
+ addOverflowingId,
97526
+ removeOverflowingId
97527
+ ]);
97496
97528
  (0, import_react79.useEffect)(
97497
97529
  () => () => {
97498
97530
  removeOverflowingId?.(id);
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-6OFXOGEG.js";
8
+ } from "./chunk-IL5DA7Y5.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-ZQW7OGUO.js";
8
+ } from "./chunk-XMBLOFHQ.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -33,7 +33,7 @@ import {
33
33
  partListUnionToString,
34
34
  require_strip_json_comments,
35
35
  sanitizeFilenamePart
36
- } from "./chunk-ZQW7OGUO.js";
36
+ } from "./chunk-IL5DA7Y5.js";
37
37
  import {
38
38
  __commonJS,
39
39
  __require,
@@ -15248,7 +15248,13 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15248
15248
  oauth: {
15249
15249
  type: "object",
15250
15250
  description: "OAuth configuration for authenticating with the server.",
15251
- additionalProperties: true
15251
+ additionalProperties: true,
15252
+ properties: {
15253
+ authorizationResponseIssParameterSupported: {
15254
+ type: "boolean",
15255
+ description: 'Whether the authorization server returns the "iss" parameter in the authorization response (RFC 9207). When true, callbacks without "iss" are rejected; when false, they are accepted. A provided "iss" is always validated. Overrides the "authorization_response_iss_parameter_supported" value discovered from server metadata.'
15256
+ }
15257
+ }
15252
15258
  },
15253
15259
  authProviderType: {
15254
15260
  type: "string",
@@ -15309,7 +15315,13 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15309
15315
  oauth: {
15310
15316
  type: "object",
15311
15317
  description: "OAuth configuration for authenticating with the server.",
15312
- additionalProperties: true
15318
+ additionalProperties: true,
15319
+ properties: {
15320
+ authorizationResponseIssParameterSupported: {
15321
+ type: "boolean",
15322
+ description: 'Whether the authorization server returns the "iss" parameter in the authorization response (RFC 9207). When true, callbacks without "iss" are rejected; when false, they are accepted. A provided "iss" is always validated. Overrides the "authorization_response_iss_parameter_supported" value discovered from server metadata.'
15323
+ }
15324
+ }
15313
15325
  },
15314
15326
  authProviderType: {
15315
15327
  type: "string",
@@ -15348,6 +15360,11 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15348
15360
  description: "Protocol for OTLP exporters.",
15349
15361
  enum: ["grpc", "http"]
15350
15362
  },
15363
+ otlpHeaders: {
15364
+ type: "object",
15365
+ description: "Custom headers to send with OTLP exporter requests.",
15366
+ additionalProperties: { type: "string" }
15367
+ },
15351
15368
  traces: {
15352
15369
  type: "boolean",
15353
15370
  description: "Whether detailed traces with large attributes are captured."
@@ -16332,6 +16349,7 @@ function mergeSettings(system, systemDefaults, user, workspace, isTrusted) {
16332
16349
  system
16333
16350
  );
16334
16351
  }
16352
+ var UNTRUSTED_WORKSPACE_SETTINGS_ERROR = "Cannot modify settings in an untrusted workspace. To enable this, verify the source of the repository and set GEMINI_CLI_TRUST_WORKSPACE=true or move your configuration to the global settings file.";
16335
16353
  var LoadedSettings = class {
16336
16354
  constructor(system, systemDefaults, user, workspace, isTrusted, errors = []) {
16337
16355
  this.system = system;
@@ -16378,7 +16396,8 @@ var LoadedSettings = class {
16378
16396
  return {
16379
16397
  ...workspace,
16380
16398
  settings: {},
16381
- originalSettings: {}
16399
+ originalSettings: {},
16400
+ readOnly: true
16382
16401
  };
16383
16402
  }
16384
16403
  computeMergedSettings(forceTrusted = false) {
@@ -16448,6 +16467,14 @@ var LoadedSettings = class {
16448
16467
  }
16449
16468
  setValue(scope, key, value) {
16450
16469
  const settingsFile = this.forScope(scope);
16470
+ if (scope === "Workspace" /* Workspace */ && !this.isPersistable(settingsFile)) {
16471
+ if (settingsFile.path === "" || settingsFile.path === this.user.path) {
16472
+ throw new Error(
16473
+ "Cannot modify workspace settings in the home directory. Please use user scope instead."
16474
+ );
16475
+ }
16476
+ throw new Error(UNTRUSTED_WORKSPACE_SETTINGS_ERROR);
16477
+ }
16451
16478
  const valueToSet = typeof value === "object" && value !== null ? structuredClone(value) : value;
16452
16479
  setNestedProperty(settingsFile.settings, key, valueToSet);
16453
16480
  if (this.isPersistable(settingsFile)) {
@@ -17461,6 +17488,7 @@ export {
17461
17488
  USER_SETTINGS_PATH,
17462
17489
  SettingScope,
17463
17490
  isLoadableSettingScope,
17491
+ UNTRUSTED_WORKSPACE_SETTINGS_ERROR,
17464
17492
  loadEnvironment,
17465
17493
  isWorktreeEnabled,
17466
17494
  loadSettings,
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-ZQW7OGUO.js";
5
+ } from "./chunk-UB5UMEXC.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -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-UFQDAROY.js";
4
+ } from "./chunk-BA5YFKKS.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-A4TO2DY2.js";
10
+ } from "./chunk-IL5DA7Y5.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-UBGF6JU5.js";
4
+ } from "./chunk-BIHX2DZB.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-ZQW7OGUO.js";
10
+ } from "./chunk-XMBLOFHQ.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";