@google/gemini-cli 0.64.0-preview.0 → 0.65.0-nightly.20261007.gef59c532f

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-EDVFNWRG.js → chunk-2QX7AFU2.js} +1 -1
  2. package/bundle/{chunk-EDYPRCAA.js → chunk-354KMHUX.js} +2 -2
  3. package/bundle/{chunk-UFQDAROY.js → chunk-3F7OA7UU.js} +1 -1
  4. package/bundle/{chunk-HN74ORTP.js → chunk-46A63GIT.js} +27 -4
  5. package/bundle/{chunk-ZQW7OGUO.js → chunk-6FH32SR7.js} +184 -45
  6. package/bundle/{chunk-SDWOC67Z.js → chunk-7NUXN3UV.js} +1 -1
  7. package/bundle/{chunk-Y2HXXBXI.js → chunk-ASQYH7O3.js} +1 -1
  8. package/bundle/{chunk-EBP6K2WG.js → chunk-BT4BJCGX.js} +32 -16
  9. package/bundle/{chunk-UBGF6JU5.js → chunk-CIKQQ32X.js} +1 -1
  10. package/bundle/chunk-DIMRHS5O.js +154 -0
  11. package/bundle/{chunk-NX7TO2DU.js → chunk-EIHDEZQ3.js} +1 -1
  12. package/bundle/{chunk-QUCRASYB.js → chunk-FE5UXCSL.js} +1 -1
  13. package/bundle/{chunk-EFX5XL6M.js → chunk-FTB4FVEK.js} +2 -2
  14. package/bundle/{chunk-A4TO2DY2.js → chunk-HYF74TEA.js} +8018 -14883
  15. package/bundle/{chunk-6OFXOGEG.js → chunk-JYWQ73Z5.js} +193 -47
  16. package/bundle/{chunk-HSZIYPL6.js → chunk-KHG7NKQK.js} +3 -3
  17. package/bundle/chunk-KTOZF7BG.js +401335 -0
  18. package/bundle/{chunk-2NQXIWQK.js → chunk-KV6RPWUP.js} +27 -4
  19. package/bundle/{chunk-KCCVXZ52.js → chunk-LNFN3PQL.js} +32 -16
  20. package/bundle/{chunk-MLSLNORV.js → chunk-LS355CSQ.js} +3 -3
  21. package/bundle/{chunk-2VN53SWW.js → chunk-NDVLWD4V.js} +9 -8
  22. package/bundle/{chunk-ZOHM7BPT.js → chunk-NUWDVBI7.js} +1 -1
  23. package/bundle/{chunk-VJYKQD5D.js → chunk-PYD373NJ.js} +3 -3
  24. package/bundle/{chunk-VBVCLWLA.js → chunk-QTGBWTWR.js} +2 -2
  25. package/bundle/chunk-U6ZQ2RUE.js +1571 -0
  26. package/bundle/chunk-UV4NDIKL.js +118 -0
  27. package/bundle/{chunk-U76XPSKR.js → chunk-VAONEIPY.js} +96 -67
  28. package/bundle/chunk-WGJZZTZY.js +425 -0
  29. package/bundle/{chunk-ZPLFLZQA.js → chunk-WXXOP3OP.js} +33 -8
  30. package/bundle/chunk-XOG2HJ3Y.js +17530 -0
  31. package/bundle/chunk-YSKY65XX.js +512 -0
  32. package/bundle/chunk-ZTPICUAP.js +103137 -0
  33. package/bundle/{cleanup-GGCB2LVD.js → cleanup-3V27AYOD.js} +2 -2
  34. package/bundle/{cleanup-JRDG3OTL.js → cleanup-4G3NPQT4.js} +2 -2
  35. package/bundle/{cleanup-SSW6IXTR.js → cleanup-5XQCOW5U.js} +2 -2
  36. package/bundle/cleanup-BBUUFPW4.js +32 -0
  37. package/bundle/{core-IUIZE6JW.js → core-AAGHH24E.js} +1 -1
  38. package/bundle/{devtoolsService-XZCKFZP5.js → devtoolsService-EVGTOLCK.js} +2 -2
  39. package/bundle/{devtoolsService-3SADPKKB.js → devtoolsService-J7VIMPHG.js} +2 -2
  40. package/bundle/{devtoolsService-MF6JKRUV.js → devtoolsService-PZBHHYCE.js} +4 -3
  41. package/bundle/devtoolsService-Z4ND55GM.js +4359 -0
  42. package/bundle/{dist-7L3BRW6V.js → dist-6PBUOORE.js} +1 -1
  43. package/bundle/{core-6HRWFQZW.js → dist-Q7B3BSZW.js} +1 -1
  44. package/bundle/dist-Z23CJKTC.js +2252 -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/tools/mcp-server.md +41 -12
  49. package/bundle/{gemini-JPMMQ3KA.js → gemini-2ZS4H5D5.js} +41 -21
  50. package/bundle/{gemini-QOQNG5VY.js → gemini-NHT6XRJ6.js} +241 -205
  51. package/bundle/gemini-ORQLMSXW.js +17954 -0
  52. package/bundle/{gemini-ZMMDUAQJ.js → gemini-YDK3BHCP.js} +41 -21
  53. package/bundle/gemini.js +7 -7
  54. package/bundle/{interactiveCli-R3P4A3FC.js → interactiveCli-22MUJI66.js} +23 -14
  55. package/bundle/{interactiveCli-UDWGRVJL.js → interactiveCli-2JNS4RJW.js} +23 -14
  56. package/bundle/{interactiveCli-3I4TG5SK.js → interactiveCli-EHUGFQPB.js} +327 -299
  57. package/bundle/interactiveCli-YANG53MI.js +34988 -0
  58. package/bundle/{liteRtServerManager-OVPUSK2T.js → liteRtServerManager-PGT3WQWS.js} +4 -4
  59. package/bundle/{liteRtServerManager-RAV63AGE.js → liteRtServerManager-TW45VSAX.js} +4 -4
  60. package/bundle/{liteRtServerManager-4MWCEVVM.js → liteRtServerManager-VCTOOEN4.js} +4 -4
  61. package/bundle/liteRtServerManager-Y2QFKZ5W.js +65 -0
  62. package/bundle/{oauth2-provider-XFP63FGJ.js → oauth2-provider-4AK74O2H.js} +1 -1
  63. package/bundle/{oauth2-provider-FVTRRJZR.js → oauth2-provider-IUYZ2A7H.js} +1 -1
  64. package/bundle/{oauth2-provider-EWOA64PR.js → oauth2-provider-JCJGEWMM.js} +38 -72
  65. package/bundle/oauth2-provider-QTTPZS6I.js +235 -0
  66. package/bundle/{start-DJAIXPPY.js → start-4O4IKUM4.js} +6 -6
  67. package/bundle/{start-VQQ2Q5KT.js → start-74BH6SEW.js} +6 -6
  68. package/bundle/{start-5O7TBK5L.js → start-EDAVUSEX.js} +6 -6
  69. package/bundle/start-Q6WRPG2O.js +18 -0
  70. 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-JYWQ73Z5.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",
@@ -16330,6 +16342,7 @@ function mergeSettings(system, systemDefaults, user, workspace, isTrusted) {
16330
16342
  system
16331
16343
  );
16332
16344
  }
16345
+ 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
16346
  var LoadedSettings = class {
16334
16347
  constructor(system, systemDefaults, user, workspace, isTrusted, errors = []) {
16335
16348
  this.system = system;
@@ -16376,7 +16389,8 @@ var LoadedSettings = class {
16376
16389
  return {
16377
16390
  ...workspace,
16378
16391
  settings: {},
16379
- originalSettings: {}
16392
+ originalSettings: {},
16393
+ readOnly: true
16380
16394
  };
16381
16395
  }
16382
16396
  computeMergedSettings(forceTrusted = false) {
@@ -16446,6 +16460,14 @@ var LoadedSettings = class {
16446
16460
  }
16447
16461
  setValue(scope, key, value) {
16448
16462
  const settingsFile = this.forScope(scope);
16463
+ if (scope === "Workspace" /* Workspace */ && !this.isPersistable(settingsFile)) {
16464
+ if (settingsFile.path === "" || settingsFile.path === this.user.path) {
16465
+ throw new Error(
16466
+ "Cannot modify workspace settings in the home directory. Please use user scope instead."
16467
+ );
16468
+ }
16469
+ throw new Error(UNTRUSTED_WORKSPACE_SETTINGS_ERROR);
16470
+ }
16449
16471
  const valueToSet = typeof value === "object" && value !== null ? structuredClone(value) : value;
16450
16472
  setNestedProperty(settingsFile.settings, key, valueToSet);
16451
16473
  if (this.isPersistable(settingsFile)) {
@@ -17459,6 +17481,7 @@ export {
17459
17481
  USER_SETTINGS_PATH,
17460
17482
  SettingScope,
17461
17483
  isLoadableSettingScope,
17484
+ UNTRUSTED_WORKSPACE_SETTINGS_ERROR,
17462
17485
  loadEnvironment,
17463
17486
  isWorktreeEnabled,
17464
17487
  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-EDVFNWRG.js";
5
+ } from "./chunk-FE5UXCSL.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-2NQXIWQK.js";
66
+ } from "./chunk-KV6RPWUP.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-EDYPRCAA.js";
69
+ } from "./chunk-354KMHUX.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-Y2HXXBXI.js";
74
+ } from "./chunk-ASQYH7O3.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-6OFXOGEG.js";
242
+ } from "./chunk-JYWQ73Z5.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 = "ef59c532f";
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;
@@ -83532,7 +83542,7 @@ Use /mcp auth <server-name> to authenticate.`
83532
83542
  type: "info",
83533
83543
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83534
83544
  });
83535
- const { MCPOAuthProvider } = await import("./core-6HRWFQZW.js");
83545
+ const { MCPOAuthProvider } = await import("./core-AAGHH24E.js");
83536
83546
  let oauthConfig = server.oauth;
83537
83547
  if (!oauthConfig) {
83538
83548
  oauthConfig = { enabled: false };
@@ -97489,10 +97499,16 @@ var MaxSizedBox = ({
97489
97499
  (0, import_react79.useEffect)(() => {
97490
97500
  if (totalHiddenLines > 0) {
97491
97501
  addOverflowingId?.(id);
97492
- } else {
97502
+ } else if (effectiveMaxHeight !== void 0) {
97493
97503
  removeOverflowingId?.(id);
97494
97504
  }
97495
- }, [id, totalHiddenLines, addOverflowingId, removeOverflowingId]);
97505
+ }, [
97506
+ id,
97507
+ totalHiddenLines,
97508
+ effectiveMaxHeight,
97509
+ addOverflowingId,
97510
+ removeOverflowingId
97511
+ ]);
97496
97512
  (0, import_react79.useEffect)(
97497
97513
  () => () => {
97498
97514
  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-ZOHM7BPT.js";
5
+ } from "./chunk-NUWDVBI7.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-HN74ORTP.js";
17
+ } from "./chunk-XOG2HJ3Y.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-ZQW7OGUO.js";
20
+ } from "./chunk-6FH32SR7.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -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-A4TO2DY2.js";
5
+ } from "./chunk-6FH32SR7.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);
@@ -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-UBGF6JU5.js";
4
+ } from "./chunk-3F7OA7UU.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -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-EDVFNWRG.js";
5
+ } from "./chunk-2QX7AFU2.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-2NQXIWQK.js";
17
+ } from "./chunk-46A63GIT.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-6OFXOGEG.js";
20
+ } from "./chunk-HYF74TEA.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -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-DIMRHS5O.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-HYF74TEA.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";