@google/gemini-cli 0.62.0-nightly.20260925.gbedef96ef → 0.62.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 (69) hide show
  1. package/bundle/{chunk-M4DUGOFW.js → chunk-2DHAEQE2.js} +90 -467
  2. package/bundle/{chunk-4JZM4J6T.js → chunk-2XM6DOWE.js} +2 -2
  3. package/bundle/{chunk-COHD3EAC.js → chunk-3VMO3WD7.js} +1 -1
  4. package/bundle/{chunk-TFNEL7HO.js → chunk-4GWDIIAP.js} +3 -3
  5. package/bundle/{chunk-LUG3MZLD.js → chunk-6DKHPDQ5.js} +1 -1
  6. package/bundle/{chunk-TYD74VXO.js → chunk-72GZSNV7.js} +14774 -8191
  7. package/bundle/{chunk-HBDPUOQW.js → chunk-7ETVC4KO.js} +1 -1
  8. package/bundle/{chunk-YIGDOMHJ.js → chunk-DML6Y2ZP.js} +2 -2
  9. package/bundle/{chunk-UFG6C5KE.js → chunk-DP2XO3WB.js} +1 -1
  10. package/bundle/{chunk-TNMENZTI.js → chunk-E2SRID3J.js} +1 -1
  11. package/bundle/{chunk-YZ6TLILF.js → chunk-F6RVU2CO.js} +1 -1
  12. package/bundle/{chunk-RETG7Z2C.js → chunk-GCL7X4WZ.js} +2 -2
  13. package/bundle/{chunk-QE6SEL5N.js → chunk-I47WLEEQ.js} +11 -45
  14. package/bundle/{chunk-AKMRRSMV.js → chunk-KCP45VUB.js} +1 -1
  15. package/bundle/{chunk-OF7DGARD.js → chunk-L5NOFB6M.js} +1 -1
  16. package/bundle/{chunk-H3SOW6BD.js → chunk-MLY4WQFO.js} +90 -421
  17. package/bundle/{chunk-MMWXIMUF.js → chunk-MNVEFU25.js} +3 -3
  18. package/bundle/{chunk-TKA3MSVK.js → chunk-OXDVMGJ3.js} +3 -3
  19. package/bundle/{chunk-GN6LRBHR.js → chunk-RWN52KQV.js} +5 -8
  20. package/bundle/{chunk-M5SV3LCW.js → chunk-T4GE6V5B.js} +8 -9
  21. package/bundle/{chunk-NZIIZAV3.js → chunk-TYBBTU4O.js} +1 -1
  22. package/bundle/{chunk-DOFIJ3YI.js → chunk-V43EQ7B6.js} +11 -45
  23. package/bundle/{chunk-R2TEKWUG.js → chunk-YOPBONYF.js} +1 -1
  24. package/bundle/{chunk-A3VAHJM3.js → chunk-ZRKGL4ZL.js} +62 -109
  25. package/bundle/{cleanup-HE7KYQAJ.js → cleanup-B2NP6ZJB.js} +2 -2
  26. package/bundle/{cleanup-INM5W2O2.js → cleanup-GJFEQLCV.js} +2 -2
  27. package/bundle/{cleanup-XSZILZES.js → cleanup-NYOWMRTL.js} +2 -2
  28. package/bundle/{core-PLITVDXB.js → core-4NPF436I.js} +1 -7
  29. package/bundle/{dist-5EPN333M.js → core-BXNHRQQE.js} +1 -7
  30. package/bundle/{devtoolsService-BUSRWWOS.js → devtoolsService-2TDRPBCW.js} +2 -2
  31. package/bundle/{devtoolsService-4D2QFII3.js → devtoolsService-47DUPCKM.js} +2 -2
  32. package/bundle/{devtoolsService-P7HLE6U4.js → devtoolsService-BIYZH2ME.js} +3 -4
  33. package/bundle/{dist-EBAUDX6K.js → dist-6S53KFXU.js} +1 -7
  34. package/bundle/docs/changelogs/index.md +0 -16
  35. package/bundle/docs/changelogs/latest.md +55 -34
  36. package/bundle/docs/changelogs/preview.md +3 -7
  37. package/bundle/{gemini-LJOD63ZZ.js → gemini-CGCV5XPN.js} +14 -14
  38. package/bundle/{gemini-E77OMSLO.js → gemini-J6X2T2ZI.js} +14 -14
  39. package/bundle/{gemini-III4I2TY.js → gemini-ZBM332DO.js} +198 -214
  40. package/bundle/gemini.js +7 -7
  41. package/bundle/{interactiveCli-GCRH54ZM.js → interactiveCli-HUDGOV74.js} +14 -31
  42. package/bundle/{interactiveCli-BJCS4WF5.js → interactiveCli-IDDEAOD5.js} +14 -31
  43. package/bundle/{interactiveCli-A3LNKRJV.js → interactiveCli-R4EMLFLM.js} +298 -334
  44. package/bundle/{liteRtServerManager-34QJA5UR.js → liteRtServerManager-A4B5FMXL.js} +4 -4
  45. package/bundle/{liteRtServerManager-PJMI7L5V.js → liteRtServerManager-QE27SHMQ.js} +4 -4
  46. package/bundle/{liteRtServerManager-TPFCEVH7.js → liteRtServerManager-WXCXUPDQ.js} +4 -4
  47. package/bundle/{oauth2-provider-HIFZ2YSU.js → oauth2-provider-3F6FOWLR.js} +1 -1
  48. package/bundle/{oauth2-provider-4IJXZY2A.js → oauth2-provider-43ANEHLB.js} +1 -1
  49. package/bundle/{oauth2-provider-65ESWRXC.js → oauth2-provider-MWRLM45J.js} +72 -38
  50. package/bundle/{start-6ET4IGUD.js → start-SQ2SPNQL.js} +6 -6
  51. package/bundle/{start-HKFTMESR.js → start-W7O4IWQ7.js} +6 -6
  52. package/bundle/{start-IYXWZL5M.js → start-ZMLXZ4VX.js} +6 -6
  53. package/package.json +1 -1
  54. package/bundle/chunk-BZNLCS4I.js +0 -398
  55. package/bundle/chunk-FW6KQPO4.js +0 -102951
  56. package/bundle/chunk-HM4SUAV7.js +0 -17368
  57. package/bundle/chunk-QPGOBA6C.js +0 -118
  58. package/bundle/chunk-X4QSELXY.js +0 -400361
  59. package/bundle/chunk-X63LZNK3.js +0 -1571
  60. package/bundle/chunk-YNCGLYYB.js +0 -154
  61. package/bundle/chunk-YUTWSGVZ.js +0 -512
  62. package/bundle/cleanup-ZZ2TESXC.js +0 -32
  63. package/bundle/devtoolsService-YD7ORPBB.js +0 -4359
  64. package/bundle/dist-SYCD6I6K.js +0 -2244
  65. package/bundle/gemini-46IOIZQR.js +0 -17863
  66. package/bundle/interactiveCli-XDQJSJNE.js +0 -34907
  67. package/bundle/liteRtServerManager-YPMJZLFF.js +0 -65
  68. package/bundle/oauth2-provider-KTV4RAAH.js +0 -235
  69. package/bundle/start-TIGZXUOM.js +0 -18
@@ -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-X63LZNK3.js";
5
+ } from "./chunk-6DKHPDQ5.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-COHD3EAC.js";
17
+ } from "./chunk-KCP45VUB.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-TYD74VXO.js";
20
+ } from "./chunk-2DHAEQE2.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -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-R2TEKWUG.js";
5
+ } from "./chunk-YOPBONYF.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-HM4SUAV7.js";
17
+ } from "./chunk-3VMO3WD7.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-H3SOW6BD.js";
20
+ } from "./chunk-MLY4WQFO.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -1,9 +1,6 @@
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
  AuthProviderType,
4
- AuthType,
5
- CoreEvent,
6
- CoreToolCallStatus,
7
4
  DEFAULT_MODEL_CONFIGS,
8
5
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
9
6
  EDITOR_OPTIONS,
@@ -33,7 +30,7 @@ import {
33
30
  partListUnionToString,
34
31
  require_strip_json_comments,
35
32
  sanitizeFilenamePart
36
- } from "./chunk-X4QSELXY.js";
33
+ } from "./chunk-72GZSNV7.js";
37
34
  import {
38
35
  __commonJS,
39
36
  __require,
@@ -10230,7 +10227,7 @@ function convertSessionToHistoryFormats(messages) {
10230
10227
  args: tool.args,
10231
10228
  description: tool.description || "",
10232
10229
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10233
- status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10230
+ status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10234
10231
  resultDisplay: tool.resultDisplay,
10235
10232
  confirmationDetails: void 0
10236
10233
  }))
@@ -16309,8 +16306,8 @@ var LoadedSettings = class {
16309
16306
  // React will pass a listener fn into this subscribe fn
16310
16307
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16311
16308
  subscribe(listener) {
16312
- coreEvents.on(CoreEvent.SettingsChanged, listener);
16313
- return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16309
+ coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16310
+ return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16314
16311
  }
16315
16312
  getSnapshot() {
16316
16313
  return this._snapshot;
@@ -16454,7 +16451,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
16454
16451
  }
16455
16452
  }
16456
16453
  let value = "cloudshell-gca";
16457
- if (selectedAuthType === AuthType.USE_VERTEX_AI) {
16454
+ if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
16458
16455
  value = process2.env[USER_GCP_PROJECT];
16459
16456
  }
16460
16457
  if (envFilePath && fs4.existsSync(envFilePath)) {
@@ -1,8 +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
- CoreToolCallStatus,
4
3
  checkExhaustive
5
- } from "./chunk-H3SOW6BD.js";
4
+ } from "./chunk-72GZSNV7.js";
6
5
  import {
7
6
  __commonJS,
8
7
  __toESM
@@ -465,19 +464,19 @@ var require_react = __commonJS({
465
464
  var import_react = __toESM(require_react(), 1);
466
465
  function mapCoreStatusToDisplayStatus(coreStatus) {
467
466
  switch (coreStatus) {
468
- case CoreToolCallStatus.Validating:
467
+ case "validating" /* Validating */:
469
468
  return "Pending" /* Pending */;
470
- case CoreToolCallStatus.AwaitingApproval:
469
+ case "awaiting_approval" /* AwaitingApproval */:
471
470
  return "Confirming" /* Confirming */;
472
- case CoreToolCallStatus.Executing:
471
+ case "executing" /* Executing */:
473
472
  return "Executing" /* Executing */;
474
- case CoreToolCallStatus.Success:
473
+ case "success" /* Success */:
475
474
  return "Success" /* Success */;
476
- case CoreToolCallStatus.Cancelled:
475
+ case "cancelled" /* Cancelled */:
477
476
  return "Canceled" /* Canceled */;
478
- case CoreToolCallStatus.Error:
477
+ case "error" /* Error */:
479
478
  return "Error" /* Error */;
480
- case CoreToolCallStatus.Scheduled:
479
+ case "scheduled" /* Scheduled */:
481
480
  return "Pending" /* Pending */;
482
481
  default:
483
482
  return checkExhaustive(coreStatus);
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-X4QSELXY.js";
8
+ } from "./chunk-MLY4WQFO.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -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-OF7DGARD.js";
5
+ } from "./chunk-YOPBONYF.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-GN6LRBHR.js";
66
+ } from "./chunk-3VMO3WD7.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-4JZM4J6T.js";
69
+ } from "./chunk-DML6Y2ZP.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-UFG6C5KE.js";
74
+ } from "./chunk-DP2XO3WB.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -251,7 +251,7 @@ import {
251
251
  tokenLimit,
252
252
  uiTelemetryService,
253
253
  unescapePath
254
- } from "./chunk-X4QSELXY.js";
254
+ } from "./chunk-MLY4WQFO.js";
255
255
  import {
256
256
  require_src
257
257
  } from "./chunk-L6PII3GR.js";
@@ -55058,7 +55058,6 @@ var useFocus = () => {
55058
55058
  };
55059
55059
  stdout?.write(ENABLE_FOCUS_REPORTING);
55060
55060
  stdin?.on("data", handleData);
55061
- stdin?.resume?.();
55062
55061
  return () => {
55063
55062
  stdout?.write(DISABLE_FOCUS_REPORTING);
55064
55063
  stdin?.removeListener("data", handleData);
@@ -55196,7 +55195,6 @@ var TerminalCapabilityManager = class _TerminalCapabilityManager {
55196
55195
  process.on("SIGINT", cleanupTerminalOnExit);
55197
55196
  return new Promise((resolve9) => {
55198
55197
  const originalRawMode = process.stdin.isRaw;
55199
- const stdinWasFlowing = process.stdin.readableFlowing === true;
55200
55198
  if (!originalRawMode) {
55201
55199
  process.stdin.setRawMode(true);
55202
55200
  }
@@ -55212,9 +55210,6 @@ var TerminalCapabilityManager = class _TerminalCapabilityManager {
55212
55210
  clearTimeout(timeoutId);
55213
55211
  }
55214
55212
  process.stdin.removeListener("data", onData);
55215
- if (!stdinWasFlowing && process.stdin.listenerCount("data") === 0) {
55216
- process.stdin.pause?.();
55217
- }
55218
55213
  if (!originalRawMode) {
55219
55214
  process.stdin.setRawMode(false);
55220
55215
  }
@@ -55967,14 +55962,11 @@ function KeypressProvider({
55967
55962
  );
55968
55963
  (0, import_react30.useEffect)(() => {
55969
55964
  terminalCapabilityManager.enableSupportedModes();
55970
- if (!stdin) {
55971
- return;
55972
- }
55973
55965
  const wasRaw = stdin.isRaw;
55974
55966
  if (wasRaw === false) {
55975
55967
  setRawMode(true);
55976
55968
  }
55977
- stdin.setEncoding?.("utf8");
55969
+ process.stdin.setEncoding("utf8");
55978
55970
  let processor = nonKeyboardEventFilter(broadcast);
55979
55971
  if (!terminalCapabilityManager.isKittyProtocolEnabled()) {
55980
55972
  processor = bufferFastReturn(processor);
@@ -55992,7 +55984,6 @@ function KeypressProvider({
55992
55984
  };
55993
55985
  }
55994
55986
  stdin.on("data", dataListener);
55995
- stdin.resume?.();
55996
55987
  return () => {
55997
55988
  stdin.removeListener("data", dataListener);
55998
55989
  if (wasRaw === false) {
@@ -66490,13 +66481,9 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
66490
66481
  /**
66491
66482
  * Check if server is enabled in FILE (persistent config only).
66492
66483
  * Does NOT include session state.
66493
- * Fails closed (`false`) if the config file exists on disk but cannot be read or parsed.
66494
66484
  */
66495
66485
  async isFileEnabled(serverName) {
66496
66486
  const config = await this.readConfig();
66497
- if (!config) {
66498
- return false;
66499
- }
66500
66487
  const state = config[normalizeServerId(serverName)];
66501
66488
  return state?.enabled ?? true;
66502
66489
  }
@@ -66519,14 +66506,10 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
66519
66506
  /**
66520
66507
  * Enable a server persistently.
66521
66508
  * Removes the server from config file (defaults to enabled).
66522
- * Does not overwrite the config file if existing contents cannot be read or parsed.
66523
66509
  */
66524
66510
  async enable(serverName) {
66525
66511
  const normalizedName = normalizeServerId(serverName);
66526
66512
  const config = await this.readConfig();
66527
- if (!config) {
66528
- return;
66529
- }
66530
66513
  if (normalizedName in config) {
66531
66514
  delete config[normalizedName];
66532
66515
  await this.writeConfig(config);
@@ -66535,13 +66518,9 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
66535
66518
  /**
66536
66519
  * Disable a server persistently.
66537
66520
  * Adds server to config file with enabled: false.
66538
- * Does not overwrite the config file if existing contents cannot be read or parsed.
66539
66521
  */
66540
66522
  async disable(serverName) {
66541
66523
  const config = await this.readConfig();
66542
- if (!config) {
66543
- return;
66544
- }
66545
66524
  config[normalizeServerId(serverName)] = { enabled: false };
66546
66525
  await this.writeConfig(config);
66547
66526
  }
@@ -66600,9 +66579,7 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
66600
66579
  let wasDisabled = false;
66601
66580
  if (state.isPersistentDisabled) {
66602
66581
  await this.enable(normalizedName);
66603
- if (await this.isFileEnabled(normalizedName)) {
66604
- wasDisabled = true;
66605
- }
66582
+ wasDisabled = true;
66606
66583
  }
66607
66584
  if (state.isSessionDisabled) {
66608
66585
  this.clearSessionDisable(normalizedName);
@@ -66616,22 +66593,11 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
66616
66593
  }
66617
66594
  /**
66618
66595
  * Read config from file asynchronously.
66619
- * Returns `{}` if the file does not exist (`ENOENT`), or `null` if the file
66620
- * cannot be read or parsed as a valid JSON object.
66621
66596
  */
66622
66597
  async readConfig() {
66623
66598
  try {
66624
66599
  const content = await fs17.readFile(this.configFilePath, "utf-8");
66625
- const parsed = JSON.parse(content);
66626
- if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
66627
- coreEvents.emitFeedback(
66628
- "error",
66629
- "Failed to read MCP server enablement config.",
66630
- new Error("MCP server enablement config must be a JSON object.")
66631
- );
66632
- return null;
66633
- }
66634
- return parsed;
66600
+ return JSON.parse(content);
66635
66601
  } catch (error) {
66636
66602
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
66637
66603
  return {};
@@ -66641,7 +66607,7 @@ var McpServerEnablementManager = class _McpServerEnablementManager {
66641
66607
  "Failed to read MCP server enablement config.",
66642
66608
  error
66643
66609
  );
66644
- return null;
66610
+ return {};
66645
66611
  }
66646
66612
  }
66647
66613
  /**
@@ -77594,7 +77560,7 @@ var authCommand = {
77594
77560
  import process29 from "node:process";
77595
77561
 
77596
77562
  // packages/cli/src/generated/git-commit.ts
77597
- var GIT_COMMIT_INFO = "ac64bdba7";
77563
+ var GIT_COMMIT_INFO = "b460678f3";
77598
77564
 
77599
77565
  // packages/cli/src/ui/utils/historyExportUtils.ts
77600
77566
  import * as fsPromises from "node:fs/promises";
@@ -83375,7 +83341,7 @@ Use /mcp auth <server-name> to authenticate.`
83375
83341
  type: "info",
83376
83342
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83377
83343
  });
83378
- const { MCPOAuthProvider } = await import("./dist-EBAUDX6K.js");
83344
+ const { MCPOAuthProvider } = await import("./dist-6S53KFXU.js");
83379
83345
  let oauthConfig = server.oauth;
83380
83346
  if (!oauthConfig) {
83381
83347
  oauthConfig = { enabled: false };
@@ -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-TNMENZTI.js";
4
+ } from "./chunk-TYBBTU4O.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require