@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
@@ -31,7 +31,7 @@ import {
31
31
  partListUnionToString,
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart
34
- } from "./chunk-6OFXOGEG.js";
34
+ } from "./chunk-XMBLOFHQ.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __require,
@@ -15246,7 +15246,13 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15246
15246
  oauth: {
15247
15247
  type: "object",
15248
15248
  description: "OAuth configuration for authenticating with the server.",
15249
- additionalProperties: true
15249
+ additionalProperties: true,
15250
+ properties: {
15251
+ authorizationResponseIssParameterSupported: {
15252
+ type: "boolean",
15253
+ 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.'
15254
+ }
15255
+ }
15250
15256
  },
15251
15257
  authProviderType: {
15252
15258
  type: "string",
@@ -15307,7 +15313,13 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15307
15313
  oauth: {
15308
15314
  type: "object",
15309
15315
  description: "OAuth configuration for authenticating with the server.",
15310
- additionalProperties: true
15316
+ additionalProperties: true,
15317
+ properties: {
15318
+ authorizationResponseIssParameterSupported: {
15319
+ type: "boolean",
15320
+ 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.'
15321
+ }
15322
+ }
15311
15323
  },
15312
15324
  authProviderType: {
15313
15325
  type: "string",
@@ -15346,6 +15358,11 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15346
15358
  description: "Protocol for OTLP exporters.",
15347
15359
  enum: ["grpc", "http"]
15348
15360
  },
15361
+ otlpHeaders: {
15362
+ type: "object",
15363
+ description: "Custom headers to send with OTLP exporter requests.",
15364
+ additionalProperties: { type: "string" }
15365
+ },
15349
15366
  traces: {
15350
15367
  type: "boolean",
15351
15368
  description: "Whether detailed traces with large attributes are captured."
@@ -16330,6 +16347,7 @@ function mergeSettings(system, systemDefaults, user, workspace, isTrusted) {
16330
16347
  system
16331
16348
  );
16332
16349
  }
16350
+ 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.";
16333
16351
  var LoadedSettings = class {
16334
16352
  constructor(system, systemDefaults, user, workspace, isTrusted, errors = []) {
16335
16353
  this.system = system;
@@ -16376,7 +16394,8 @@ var LoadedSettings = class {
16376
16394
  return {
16377
16395
  ...workspace,
16378
16396
  settings: {},
16379
- originalSettings: {}
16397
+ originalSettings: {},
16398
+ readOnly: true
16380
16399
  };
16381
16400
  }
16382
16401
  computeMergedSettings(forceTrusted = false) {
@@ -16446,6 +16465,14 @@ var LoadedSettings = class {
16446
16465
  }
16447
16466
  setValue(scope, key, value) {
16448
16467
  const settingsFile = this.forScope(scope);
16468
+ if (scope === "Workspace" /* Workspace */ && !this.isPersistable(settingsFile)) {
16469
+ if (settingsFile.path === "" || settingsFile.path === this.user.path) {
16470
+ throw new Error(
16471
+ "Cannot modify workspace settings in the home directory. Please use user scope instead."
16472
+ );
16473
+ }
16474
+ throw new Error(UNTRUSTED_WORKSPACE_SETTINGS_ERROR);
16475
+ }
16449
16476
  const valueToSet = typeof value === "object" && value !== null ? structuredClone(value) : value;
16450
16477
  setNestedProperty(settingsFile.settings, key, valueToSet);
16451
16478
  if (this.isPersistable(settingsFile)) {
@@ -17459,6 +17486,7 @@ export {
17459
17486
  USER_SETTINGS_PATH,
17460
17487
  SettingScope,
17461
17488
  isLoadableSettingScope,
17489
+ UNTRUSTED_WORKSPACE_SETTINGS_ERROR,
17462
17490
  loadEnvironment,
17463
17491
  isWorktreeEnabled,
17464
17492
  loadSettings,
@@ -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-ZOHM7BPT.js";
5
+ } from "./chunk-JPVUKQJ7.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-HN74ORTP.js";
66
+ } from "./chunk-EZGM7WCW.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-VBVCLWLA.js";
69
+ } from "./chunk-HN32MQMG.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-NX7TO2DU.js";
74
+ } from "./chunk-IUZHBNL5.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -252,7 +252,7 @@ import {
252
252
  tokenLimit,
253
253
  uiTelemetryService,
254
254
  unescapePath
255
- } from "./chunk-ZQW7OGUO.js";
255
+ } from "./chunk-IL5DA7Y5.js";
256
256
  import {
257
257
  require_src
258
258
  } from "./chunk-L6PII3GR.js";
@@ -77764,7 +77764,7 @@ var authCommand = {
77764
77764
  import process29 from "node:process";
77765
77765
 
77766
77766
  // packages/cli/src/generated/git-commit.ts
77767
- var GIT_COMMIT_INFO = "fdf63956c";
77767
+ var GIT_COMMIT_INFO = "44d764ee5";
77768
77768
 
77769
77769
  // packages/cli/src/ui/utils/historyExportUtils.ts
77770
77770
  import * as fsPromises from "node:fs/promises";
@@ -80895,18 +80895,22 @@ var import_react71 = __toESM(require_react(), 1);
80895
80895
  import process33 from "node:process";
80896
80896
  var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
80897
80897
  var MemoryUsageDisplay = ({ color = theme.text.primary, isActive = true }) => {
80898
- const [memoryUsage, setMemoryUsage] = (0, import_react71.useState)("");
80899
- const [memoryUsageColor, setMemoryUsageColor] = (0, import_react71.useState)(color);
80898
+ const [memoryUsage, setMemoryUsage] = (0, import_react71.useState)(
80899
+ () => formatBytes(process33.memoryUsage().rss)
80900
+ );
80901
+ const [memoryUsageColor, setMemoryUsageColor] = (0, import_react71.useState)(
80902
+ () => process33.memoryUsage().rss >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color
80903
+ );
80900
80904
  (0, import_react71.useEffect)(() => {
80901
80905
  if (!isActive) {
80902
80906
  return;
80903
80907
  }
80904
80908
  const updateMemory = () => {
80905
80909
  const usage = process33.memoryUsage().rss;
80906
- setMemoryUsage(formatBytes(usage));
80907
- setMemoryUsageColor(
80908
- usage >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color
80909
- );
80910
+ const formatted = formatBytes(usage);
80911
+ const nextColor = usage >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color;
80912
+ setMemoryUsage((prev) => prev === formatted ? prev : formatted);
80913
+ setMemoryUsageColor((prev) => prev === nextColor ? prev : nextColor);
80910
80914
  };
80911
80915
  const intervalId = setInterval(updateMemory, 2e3);
80912
80916
  updateMemory();
@@ -81400,7 +81404,13 @@ var Footer = () => {
81400
81404
  addCol(
81401
81405
  id,
81402
81406
  header,
81403
- () => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(MemoryUsageDisplay, { color: itemColor, isActive: !copyModeEnabled }),
81407
+ () => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
81408
+ MemoryUsageDisplay,
81409
+ {
81410
+ color: itemColor,
81411
+ isActive: !copyModeEnabled && uiState.constrainHeight
81412
+ }
81413
+ ),
81404
81414
  10
81405
81415
  );
81406
81416
  break;
@@ -81891,6 +81901,18 @@ var import_react74 = __toESM(require_react(), 1);
81891
81901
 
81892
81902
  // packages/cli/src/ui/utils/rewindFileOps.ts
81893
81903
  import fs32 from "node:fs/promises";
81904
+ function isPartWithKey(part, key) {
81905
+ return typeof part === "object" && part !== null && key in part;
81906
+ }
81907
+ function isToolResponseMessage(msg) {
81908
+ if (msg.type !== "user" || !Array.isArray(msg.content) || msg.content.length === 0) {
81909
+ return false;
81910
+ }
81911
+ const parts = msg.content;
81912
+ return parts.some((p2) => isPartWithKey(p2, "functionResponse")) && parts.every(
81913
+ (p2) => isPartWithKey(p2, "functionResponse") || isPartWithKey(p2, "inlineData") || isPartWithKey(p2, "fileData")
81914
+ );
81915
+ }
81894
81916
  function calculateTurnStats(conversation, userMessage) {
81895
81917
  const msgIndex = conversation.messages.indexOf(userMessage);
81896
81918
  if (msgIndex === -1) return null;
@@ -81900,7 +81922,9 @@ function calculateTurnStats(conversation, userMessage) {
81900
81922
  let hasEdits = false;
81901
81923
  for (let i = msgIndex + 1; i < conversation.messages.length; i++) {
81902
81924
  const msg = conversation.messages[i];
81903
- if (msg.type === "user") break;
81925
+ if (msg.type === "user" && !isToolResponseMessage(msg)) {
81926
+ break;
81927
+ }
81904
81928
  if (msg.type === "gemini" && msg.toolCalls) {
81905
81929
  for (const toolCall of msg.toolCalls) {
81906
81930
  const fileDiff = getFileDiffFromResultDisplay(toolCall.resultDisplay);
@@ -82259,7 +82283,9 @@ var RewindViewer = ({
82259
82283
  null
82260
82284
  );
82261
82285
  const interactions = (0, import_react76.useMemo)(
82262
- () => conversation.messages.filter((msg) => msg.type === "user"),
82286
+ () => conversation.messages.filter(
82287
+ (msg) => msg.type === "user" && !isToolResponseMessage(msg)
82288
+ ),
82263
82289
  [conversation.messages]
82264
82290
  );
82265
82291
  const items = (0, import_react76.useMemo)(() => {
@@ -83545,7 +83571,7 @@ Use /mcp auth <server-name> to authenticate.`
83545
83571
  type: "info",
83546
83572
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83547
83573
  });
83548
- const { MCPOAuthProvider } = await import("./dist-7L3BRW6V.js");
83574
+ const { MCPOAuthProvider } = await import("./dist-B6O7SDYJ.js");
83549
83575
  let oauthConfig = server.oauth;
83550
83576
  if (!oauthConfig) {
83551
83577
  oauthConfig = { enabled: false };
@@ -97502,10 +97528,16 @@ var MaxSizedBox = ({
97502
97528
  (0, import_react79.useEffect)(() => {
97503
97529
  if (totalHiddenLines > 0) {
97504
97530
  addOverflowingId?.(id);
97505
- } else {
97531
+ } else if (effectiveMaxHeight !== void 0) {
97506
97532
  removeOverflowingId?.(id);
97507
97533
  }
97508
- }, [id, totalHiddenLines, addOverflowingId, removeOverflowingId]);
97534
+ }, [
97535
+ id,
97536
+ totalHiddenLines,
97537
+ effectiveMaxHeight,
97538
+ addOverflowingId,
97539
+ removeOverflowingId
97540
+ ]);
97509
97541
  (0, import_react79.useEffect)(
97510
97542
  () => () => {
97511
97543
  removeOverflowingId?.(id);
@@ -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
  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-ZPLFLZQA.js";
17
+ } from "./chunk-3E6LR7PD.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-A4TO2DY2.js";
20
+ } from "./chunk-XMBLOFHQ.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";