@google/gemini-cli 0.45.0 → 0.46.0-preview.1

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 (71) hide show
  1. package/bundle/{chunk-SG46YSQ3.js → chunk-24H54ISH.js} +7 -7
  2. package/bundle/{chunk-YI3KORH5.js → chunk-3EC3ZLRQ.js} +2 -2
  3. package/bundle/{chunk-EORX7LYI.js → chunk-3WW2LTMX.js} +1 -1
  4. package/bundle/{chunk-2ARYG3KE.js → chunk-4B7MDBUK.js} +1 -1
  5. package/bundle/{chunk-EUYIPFPA.js → chunk-5CWORGE3.js} +1 -1
  6. package/bundle/{chunk-K6WTIGVC.js → chunk-5IBYZHR7.js} +2 -2
  7. package/bundle/{chunk-TWSSMLUS.js → chunk-7Y6NU65D.js} +1 -1
  8. package/bundle/{chunk-4KOU3QNT.js → chunk-EG7USKV5.js} +8 -5
  9. package/bundle/{chunk-PNU4GACG.js → chunk-EZDKSTIF.js} +2 -2
  10. package/bundle/{chunk-THZMPVCN.js → chunk-GRD2P7HY.js} +1 -1
  11. package/bundle/chunk-HQNVDCXK.js +154 -0
  12. package/bundle/chunk-ILHDA6XU.js +17320 -0
  13. package/bundle/{chunk-6T7N6JF2.js → chunk-ITC7TFJU.js} +156 -50
  14. package/bundle/{chunk-53SRWMUU.js → chunk-JF6RJW53.js} +1 -1
  15. package/bundle/chunk-JPYTHGMI.js +398 -0
  16. package/bundle/{chunk-XV2YFH7B.js → chunk-KOJR46UO.js} +7654 -14056
  17. package/bundle/{chunk-4EBMYFID.js → chunk-KQ4V7ZN4.js} +67 -54
  18. package/bundle/chunk-O3UKVEBS.js +81685 -0
  19. package/bundle/{chunk-VL3FKVC7.js → chunk-ONUDATHO.js} +3 -3
  20. package/bundle/{chunk-N6QPQL7E.js → chunk-QEVRJ7HY.js} +183 -50
  21. package/bundle/{chunk-3TWZMAJU.js → chunk-QFWAILKU.js} +3 -3
  22. package/bundle/{chunk-GVEZJIV3.js → chunk-QMCEWHRR.js} +1 -1
  23. package/bundle/{chunk-IL7J46PP.js → chunk-R4LEIQZM.js} +3 -3
  24. package/bundle/{chunk-JLFE3KRS.js → chunk-RXYIE5L5.js} +1 -1
  25. package/bundle/{chunk-Z5F25543.js → chunk-UM53YDCH.js} +1 -1
  26. package/bundle/{chunk-PXEK5ENZ.js → chunk-VEHSYWQT.js} +9 -8
  27. package/bundle/chunk-VETILJQA.js +1571 -0
  28. package/bundle/chunk-VOFVOS4I.js +118 -0
  29. package/bundle/chunk-WRWCUHAM.js +512 -0
  30. package/bundle/chunk-XVDCGVTF.js +394545 -0
  31. package/bundle/{chunk-HFVEWB6N.js → chunk-YINW7YTJ.js} +1 -1
  32. package/bundle/{chunk-KSNTXH4E.js → chunk-YIOYXRDP.js} +7 -7
  33. package/bundle/{cleanup-3SMSXJJA.js → cleanup-4ZTB4WMN.js} +2 -2
  34. package/bundle/{cleanup-FNQ3LEWG.js → cleanup-7LLX4OFN.js} +2 -2
  35. package/bundle/{cleanup-I56KHTTC.js → cleanup-GI5426XS.js} +2 -2
  36. package/bundle/cleanup-ZBLVGXIK.js +32 -0
  37. package/bundle/{core-KGXBOJTX.js → core-3UQQYNJF.js} +7 -1
  38. package/bundle/{devtoolsService-EW3B2Y63.js → devtoolsService-GJWWZ2KK.js} +2 -2
  39. package/bundle/{devtoolsService-F7PHNBEQ.js → devtoolsService-UNQILSWI.js} +4 -3
  40. package/bundle/devtoolsService-Z2YXVMYF.js +856 -0
  41. package/bundle/{devtoolsService-VFEFRDYG.js → devtoolsService-ZYGDAPOV.js} +2 -2
  42. package/bundle/{dist-2G5KTD32.js → dist-4NVM6I2N.js} +7 -1
  43. package/bundle/{core-AQUUQTX2.js → dist-LIQULVXZ.js} +7 -1
  44. package/bundle/dist-XPP357J7.js +2140 -0
  45. package/bundle/docs/changelogs/index.md +14 -0
  46. package/bundle/docs/changelogs/latest.md +202 -199
  47. package/bundle/docs/changelogs/preview.md +44 -200
  48. package/bundle/docs/issue-and-pr-automation.md +29 -1
  49. package/bundle/docs/reference/configuration.md +71 -0
  50. package/bundle/{gemini-ORQHD633.js → gemini-5WY2YO7R.js} +18 -15
  51. package/bundle/{gemini-JMMBFICD.js → gemini-7GZVH4VW.js} +216 -197
  52. package/bundle/{gemini-4KS2EZX6.js → gemini-QDOVPRKF.js} +18 -15
  53. package/bundle/gemini-RBKWBGCC.js +16409 -0
  54. package/bundle/gemini.js +7 -7
  55. package/bundle/{interactiveCli-XUZZOZXX.js → interactiveCli-BMKHWEH4.js} +29 -13
  56. package/bundle/{interactiveCli-ESB66RW7.js → interactiveCli-OEFOYFJU.js} +335 -300
  57. package/bundle/interactiveCli-OGE5OTZB.js +34742 -0
  58. package/bundle/{interactiveCli-ZJXV4DW7.js → interactiveCli-W3CMLQIM.js} +29 -13
  59. package/bundle/{liteRtServerManager-HELKQKOZ.js → liteRtServerManager-3QOJEGNL.js} +4 -4
  60. package/bundle/{liteRtServerManager-RNNHEQJI.js → liteRtServerManager-HPVNUYFX.js} +4 -4
  61. package/bundle/{liteRtServerManager-DORIWEMR.js → liteRtServerManager-Q6LTEYH4.js} +4 -4
  62. package/bundle/liteRtServerManager-YL4YRHOA.js +65 -0
  63. package/bundle/{oauth2-provider-2IJNOFOO.js → oauth2-provider-3WXIASQA.js} +1 -1
  64. package/bundle/{oauth2-provider-7N4OFPTL.js → oauth2-provider-CTPS7JLT.js} +1 -1
  65. package/bundle/{oauth2-provider-YYLBPESU.js → oauth2-provider-K52EY6RG.js} +38 -72
  66. package/bundle/oauth2-provider-PJJE326A.js +235 -0
  67. package/bundle/{start-IGG6LDST.js → start-25W6VZG6.js} +6 -6
  68. package/bundle/{start-R7DTCFCN.js → start-JBJSIKIB.js} +6 -6
  69. package/bundle/{start-66KF6MVV.js → start-PK22QMBT.js} +6 -6
  70. package/bundle/start-XAEHV6FV.js +18 -0
  71. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-53SRWMUU.js";
9
+ } from "./chunk-QMCEWHRR.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,14 +58,14 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-EUYIPFPA.js";
61
+ } from "./chunk-EG7USKV5.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-K6WTIGVC.js";
64
+ } from "./chunk-EZDKSTIF.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-Z5F25543.js";
68
+ } from "./chunk-UM53YDCH.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
@@ -243,7 +243,7 @@ import {
243
243
  tokenLimit,
244
244
  uiTelemetryService,
245
245
  unescapePath
246
- } from "./chunk-6T7N6JF2.js";
246
+ } from "./chunk-KOJR46UO.js";
247
247
  import {
248
248
  require_src
249
249
  } from "./chunk-TUDYL3X4.js";
@@ -56514,7 +56514,7 @@ var authCommand = {
56514
56514
  import process28 from "node:process";
56515
56515
 
56516
56516
  // packages/cli/src/generated/git-commit.ts
56517
- var GIT_COMMIT_INFO = "0a11ce3e9";
56517
+ var GIT_COMMIT_INFO = "700c96118";
56518
56518
 
56519
56519
  // packages/cli/src/ui/utils/historyExportUtils.ts
56520
56520
  import * as fsPromises from "node:fs/promises";
@@ -62275,7 +62275,7 @@ Use /mcp auth <server-name> to authenticate.`
62275
62275
  type: "info",
62276
62276
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62277
62277
  });
62278
- const { MCPOAuthProvider } = await import("./dist-2G5KTD32.js");
62278
+ const { MCPOAuthProvider } = await import("./dist-4NVM6I2N.js");
62279
62279
  let oauthConfig = server.oauth;
62280
62280
  if (!oauthConfig) {
62281
62281
  oauthConfig = { enabled: false };
@@ -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-TWSSMLUS.js";
4
+ } from "./chunk-HQNVDCXK.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-N6QPQL7E.js";
10
+ } from "./chunk-QEVRJ7HY.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-6T7N6JF2.js";
8
+ } from "./chunk-KOJR46UO.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises 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-N6QPQL7E.js";
32
+ } from "./chunk-QEVRJ7HY.js";
33
33
  import {
34
34
  __commonJS,
35
35
  __require,
@@ -32,7 +32,7 @@ import {
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart,
34
34
  stripAnsi
35
- } from "./chunk-6T7N6JF2.js";
35
+ } from "./chunk-ITC7TFJU.js";
36
36
  import {
37
37
  __commonJS,
38
38
  __require,
@@ -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-EORX7LYI.js";
4
+ } from "./chunk-GRD2P7HY.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-6T7N6JF2.js";
10
+ } from "./chunk-XVDCGVTF.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-N6QPQL7E.js";
8
+ } from "./chunk-ITC7TFJU.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,6 +1,9 @@
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,
4
7
  DEFAULT_MODEL_CONFIGS,
5
8
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
6
9
  EDITOR_OPTIONS,
@@ -29,7 +32,7 @@ import {
29
32
  require_strip_json_comments,
30
33
  sanitizeFilenamePart,
31
34
  stripAnsi
32
- } from "./chunk-XV2YFH7B.js";
35
+ } from "./chunk-KOJR46UO.js";
33
36
  import {
34
37
  __commonJS,
35
38
  __require,
@@ -10217,7 +10220,7 @@ function convertSessionToHistoryFormats(messages) {
10217
10220
  args: tool.args,
10218
10221
  description: tool.description || "",
10219
10222
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10220
- status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10223
+ status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10221
10224
  resultDisplay: tool.resultDisplay,
10222
10225
  confirmationDetails: void 0
10223
10226
  }))
@@ -16278,8 +16281,8 @@ var LoadedSettings = class {
16278
16281
  // React will pass a listener fn into this subscribe fn
16279
16282
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16280
16283
  subscribe(listener) {
16281
- coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16282
- return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16284
+ coreEvents.on(CoreEvent.SettingsChanged, listener);
16285
+ return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16283
16286
  }
16284
16287
  getSnapshot() {
16285
16288
  return this._snapshot;
@@ -16423,7 +16426,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
16423
16426
  }
16424
16427
  }
16425
16428
  let value = "cloudshell-gca";
16426
- if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
16429
+ if (selectedAuthType === AuthType.USE_VERTEX_AI) {
16427
16430
  value = process2.env[USER_GCP_PROJECT];
16428
16431
  }
16429
16432
  if (envFilePath && fs4.existsSync(envFilePath)) {
@@ -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-THZMPVCN.js";
4
+ } from "./chunk-3WW2LTMX.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-XV2YFH7B.js";
10
+ } from "./chunk-KOJR46UO.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-XV2YFH7B.js";
8
+ } from "./chunk-XVDCGVTF.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -0,0 +1,154 @@
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
+ import {
3
+ ExitCodes,
4
+ Storage,
5
+ isTelemetrySdkInitialized,
6
+ resetBrowserSession,
7
+ shutdownTelemetry
8
+ } from "./chunk-QEVRJ7HY.js";
9
+
10
+ // packages/cli/src/utils/cleanup.ts
11
+ import { promises as fs } from "node:fs";
12
+ import { join } from "node:path";
13
+ var cleanupFunctions = [];
14
+ var syncCleanupFunctions = [];
15
+ var configForTelemetry = null;
16
+ var isShuttingDown = false;
17
+ function registerCleanup(fn) {
18
+ cleanupFunctions.push(fn);
19
+ }
20
+ function removeCleanup(fn) {
21
+ const index = cleanupFunctions.indexOf(fn);
22
+ if (index !== -1) {
23
+ cleanupFunctions.splice(index, 1);
24
+ }
25
+ }
26
+ function registerSyncCleanup(fn) {
27
+ syncCleanupFunctions.push(fn);
28
+ }
29
+ function removeSyncCleanup(fn) {
30
+ const index = syncCleanupFunctions.indexOf(fn);
31
+ if (index !== -1) {
32
+ syncCleanupFunctions.splice(index, 1);
33
+ }
34
+ }
35
+ function resetCleanupForTesting() {
36
+ cleanupFunctions.length = 0;
37
+ syncCleanupFunctions.length = 0;
38
+ configForTelemetry = null;
39
+ isShuttingDown = false;
40
+ }
41
+ function runSyncCleanup() {
42
+ for (const fn of syncCleanupFunctions) {
43
+ try {
44
+ fn();
45
+ } catch {
46
+ }
47
+ }
48
+ syncCleanupFunctions.length = 0;
49
+ }
50
+ function registerTelemetryConfig(config) {
51
+ configForTelemetry = config;
52
+ }
53
+ async function runExitCleanup() {
54
+ await drainStdin();
55
+ runSyncCleanup();
56
+ for (const fn of cleanupFunctions) {
57
+ try {
58
+ await fn();
59
+ } catch {
60
+ }
61
+ }
62
+ cleanupFunctions.length = 0;
63
+ try {
64
+ await resetBrowserSession();
65
+ } catch {
66
+ }
67
+ if (configForTelemetry) {
68
+ try {
69
+ await configForTelemetry.dispose();
70
+ } catch {
71
+ }
72
+ }
73
+ if (configForTelemetry && isTelemetrySdkInitialized()) {
74
+ try {
75
+ await shutdownTelemetry(configForTelemetry);
76
+ } catch {
77
+ }
78
+ }
79
+ }
80
+ async function drainStdin() {
81
+ if (!process.stdin?.isTTY) return;
82
+ process.stdin.resume().removeAllListeners("data").on("data", () => {
83
+ });
84
+ await new Promise((resolve) => setTimeout(resolve, 50));
85
+ }
86
+ async function gracefulShutdown(_reason) {
87
+ if (isShuttingDown) {
88
+ return;
89
+ }
90
+ isShuttingDown = true;
91
+ await runExitCleanup();
92
+ process.exit(ExitCodes.SUCCESS);
93
+ }
94
+ function setupSignalHandlers() {
95
+ process.on("SIGHUP", () => gracefulShutdown("SIGHUP"));
96
+ process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
97
+ process.on("SIGINT", () => gracefulShutdown("SIGINT"));
98
+ }
99
+ function setupTtyCheck() {
100
+ let intervalId = null;
101
+ let isCheckingTty = false;
102
+ intervalId = setInterval(async () => {
103
+ if (isCheckingTty || isShuttingDown) {
104
+ return;
105
+ }
106
+ if (process.env["SANDBOX"]) {
107
+ return;
108
+ }
109
+ if (!process.stdin.isTTY && !process.stdout.isTTY) {
110
+ isCheckingTty = true;
111
+ if (intervalId) {
112
+ clearInterval(intervalId);
113
+ intervalId = null;
114
+ }
115
+ await gracefulShutdown("TTY loss");
116
+ }
117
+ }, 5e3);
118
+ intervalId.unref();
119
+ return () => {
120
+ if (intervalId) {
121
+ clearInterval(intervalId);
122
+ intervalId = null;
123
+ }
124
+ };
125
+ }
126
+ async function cleanupCheckpoints() {
127
+ const storage = new Storage(process.cwd());
128
+ await storage.initialize();
129
+ const tempDir = storage.getProjectTempDir();
130
+ const checkpointsDir = join(tempDir, "checkpoints");
131
+ try {
132
+ await fs.rm(checkpointsDir, { recursive: true, force: true });
133
+ } catch {
134
+ }
135
+ }
136
+
137
+ export {
138
+ registerCleanup,
139
+ removeCleanup,
140
+ registerSyncCleanup,
141
+ removeSyncCleanup,
142
+ resetCleanupForTesting,
143
+ runSyncCleanup,
144
+ registerTelemetryConfig,
145
+ runExitCleanup,
146
+ setupSignalHandlers,
147
+ setupTtyCheck,
148
+ cleanupCheckpoints
149
+ };
150
+ /**
151
+ * @license
152
+ * Copyright 2025 Google LLC
153
+ * SPDX-License-Identifier: Apache-2.0
154
+ */