@google/gemini-cli 0.71.0-preview.0 → 0.71.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 (74) hide show
  1. package/bundle/{chunk-3XHFESDF.js → chunk-2B7JJXKC.js} +1 -1
  2. package/bundle/{chunk-7UJSGYFD.js → chunk-2Z6OMQKM.js} +1 -1
  3. package/bundle/{chunk-VIXTMKUM.js → chunk-3SHFRERV.js} +1 -1
  4. package/bundle/{chunk-YQO7IBVQ.js → chunk-4UW3VJTT.js} +4 -4
  5. package/bundle/{chunk-DPAMHBTE.js → chunk-5E7G6JKU.js} +3 -3
  6. package/bundle/{chunk-IBD2PLWE.js → chunk-5XMSOGIG.js} +7 -7
  7. package/bundle/{chunk-Y6WF3A3Q.js → chunk-5Z6VX6CL.js} +2 -2
  8. package/bundle/{chunk-FUOK6VUJ.js → chunk-66MTKCNI.js} +3 -3
  9. package/bundle/{chunk-6E6XAAYL.js → chunk-7KLSV23C.js} +71 -58
  10. package/bundle/{chunk-JJNQ5PWH.js → chunk-EFTWPKUN.js} +8066 -15416
  11. package/bundle/{chunk-QQNZHLIF.js → chunk-ERWHYM4U.js} +2 -2
  12. package/bundle/{chunk-UTK4LRWO.js → chunk-EYFD4IXY.js} +1 -1
  13. package/bundle/{chunk-KSDBDSBI.js → chunk-GNADRXVJ.js} +9 -8
  14. package/bundle/chunk-H2UUYR57.js +60338 -0
  15. package/bundle/{chunk-AJZTZFAS.js → chunk-H3XZAPPM.js} +2 -2
  16. package/bundle/{chunk-NATMLC5X.js → chunk-JJQXJ4YW.js} +1 -1
  17. package/bundle/{chunk-532N7TZB.js → chunk-KPQSXIIX.js} +8 -6
  18. package/bundle/{chunk-NQGCTXGR.js → chunk-LMFXSDD5.js} +1 -1
  19. package/bundle/{chunk-W7J7YSH2.js → chunk-LUNZGYWH.js} +1 -1
  20. package/bundle/chunk-ME55Z6II.js +512 -0
  21. package/bundle/{chunk-LGRO4U3O.js → chunk-MTVMJTRD.js} +7 -7
  22. package/bundle/{chunk-5SC43MXU.js → chunk-NJ3UA7N7.js} +3 -3
  23. package/bundle/chunk-OGIQ2DJJ.js +420358 -0
  24. package/bundle/{chunk-AQXZKJST.js → chunk-PGIUSQYX.js} +1 -1
  25. package/bundle/{chunk-DCBU7GEJ.js → chunk-QE3A6WRI.js} +1 -1
  26. package/bundle/chunk-RQ4T6AK5.js +190 -0
  27. package/bundle/{chunk-EERY2AEY.js → chunk-RWAKAA62.js} +1 -1
  28. package/bundle/{chunk-BTH7KEMH.js → chunk-SVDAJM4G.js} +4 -4
  29. package/bundle/{chunk-NMOD2T37.js → chunk-TC4PBO7S.js} +2 -2
  30. package/bundle/{chunk-QGOT25K4.js → chunk-TGPYI6FY.js} +1 -1
  31. package/bundle/{chunk-7YXHVH7Y.js → chunk-TZEZ2BF4.js} +2 -2
  32. package/bundle/chunk-V3MODYYD.js +40024 -0
  33. package/bundle/chunk-V5OR34VL.js +1962 -0
  34. package/bundle/chunk-XERNHADV.js +118 -0
  35. package/bundle/chunk-XOCSGCT5.js +65 -0
  36. package/bundle/chunk-YTLUKDLU.js +1571 -0
  37. package/bundle/{cleanup-4WL7SSTL.js → cleanup-HZB3VIXG.js} +2 -2
  38. package/bundle/{cleanup-62ECCOLP.js → cleanup-QGMSGSQI.js} +2 -2
  39. package/bundle/{cleanup-JWSUGSQB.js → cleanup-SNOIOSXE.js} +2 -2
  40. package/bundle/cleanup-XOWU5YHP.js +34 -0
  41. package/bundle/{core-NP64K3HR.js → core-5NA633TR.js} +1 -1
  42. package/bundle/{devtoolsService-DWVXCWJ7.js → devtoolsService-AT3VY34P.js} +2 -2
  43. package/bundle/{devtoolsService-3G6P4EBB.js → devtoolsService-JK3QG6X7.js} +4 -3
  44. package/bundle/{devtoolsService-XMEVE7R4.js → devtoolsService-RIZXSVKI.js} +2 -2
  45. package/bundle/devtoolsService-ZAMC5JAO.js +919 -0
  46. package/bundle/{dist-AAGC2327.js → dist-JL5IFBA3.js} +1 -1
  47. package/bundle/{core-6V72TKM3.js → dist-RXWQJLEG.js} +1 -1
  48. package/bundle/dist-ZAHQGAAY.js +2372 -0
  49. package/bundle/{formatError-P6NGVTF2.js → formatError-2ZV7IU6M.js} +2 -2
  50. package/bundle/{formatError-QS36O76I.js → formatError-EGZMA6Z2.js} +2 -2
  51. package/bundle/{formatError-7YP6B7ZW.js → formatError-FYNWLWNA.js} +2 -2
  52. package/bundle/formatError-VALS3RAN.js +14 -0
  53. package/bundle/{gemini-TY6A5Q5C.js → gemini-7FHLRHNN.js} +15 -15
  54. package/bundle/{gemini-3VVVLE4J.js → gemini-FRYTBWBD.js} +224 -208
  55. package/bundle/{gemini-AC4RONBV.js → gemini-LBFFF5NZ.js} +15 -15
  56. package/bundle/gemini-SYSVTILL.js +20020 -0
  57. package/bundle/gemini.js +8 -8
  58. package/bundle/{interactiveCli-XULKUHW4.js → interactiveCli-FOKYJG6H.js} +8 -8
  59. package/bundle/{interactiveCli-BHEEEW2H.js → interactiveCli-LDT5NDQR.js} +319 -300
  60. package/bundle/{interactiveCli-AO75ICTD.js → interactiveCli-SJYVQK53.js} +8 -8
  61. package/bundle/interactiveCli-VXSDDOFP.js +36447 -0
  62. package/bundle/{liteRtServerManager-DRZ6V4ZL.js → liteRtServerManager-7EZCW25J.js} +4 -4
  63. package/bundle/{liteRtServerManager-7VEEHSC6.js → liteRtServerManager-QCOZHG7Q.js} +4 -4
  64. package/bundle/{liteRtServerManager-GFU4D3JF.js → liteRtServerManager-RWREZPJE.js} +4 -4
  65. package/bundle/liteRtServerManager-WTEPPKAQ.js +65 -0
  66. package/bundle/{oauth2-provider-S7DQJKA5.js → oauth2-provider-775ZBHR6.js} +1 -1
  67. package/bundle/{oauth2-provider-YZI5V6PH.js → oauth2-provider-FTL5RWC6.js} +1 -1
  68. package/bundle/{oauth2-provider-XYK3N74K.js → oauth2-provider-H5S5NJUW.js} +41 -79
  69. package/bundle/oauth2-provider-QC5SFA6N.js +273 -0
  70. package/bundle/{start-JGS6ZUFX.js → start-HCWYCRFJ.js} +6 -6
  71. package/bundle/{start-QQTZCWPJ.js → start-HYRJ4ARV.js} +6 -6
  72. package/bundle/{start-EMZSUYV6.js → start-S4SAAQ7Z.js} +6 -6
  73. package/bundle/start-SRLXJJA4.js +18 -0
  74. 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
  normalizeError,
4
4
  safeSerializeErrorValue
5
- } from "./chunk-BTH7KEMH.js";
5
+ } from "./chunk-OGIQ2DJJ.js";
6
6
 
7
7
  // packages/cli/src/utils/formatError.ts
8
8
  function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  normalizeError,
4
4
  safeSerializeErrorValue
5
- } from "./chunk-YQO7IBVQ.js";
5
+ } from "./chunk-4UW3VJTT.js";
6
6
 
7
7
  // packages/cli/src/utils/formatError.ts
8
8
  function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
@@ -0,0 +1,190 @@
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
+ ShellExecutionService,
5
+ Storage,
6
+ isTelemetrySdkInitialized,
7
+ resetBrowserSession,
8
+ shutdownTelemetry
9
+ } from "./chunk-OGIQ2DJJ.js";
10
+
11
+ // packages/cli/src/utils/cleanup.ts
12
+ import { promises as fs } from "node:fs";
13
+ import { join } from "node:path";
14
+ var cleanupFunctions = [];
15
+ var syncCleanupFunctions = [];
16
+ var configForTelemetry = null;
17
+ var isShuttingDown = false;
18
+ var CleanupState = /* @__PURE__ */ ((CleanupState2) => {
19
+ CleanupState2["IDLE"] = "IDLE";
20
+ CleanupState2["RUNNING"] = "RUNNING";
21
+ CleanupState2["COMPLETED"] = "COMPLETED";
22
+ return CleanupState2;
23
+ })(CleanupState || {});
24
+ var cleanupState = "IDLE" /* IDLE */;
25
+ var cleanupPromise = null;
26
+ function registerCleanup(fn) {
27
+ cleanupFunctions.push(fn);
28
+ }
29
+ function removeCleanup(fn) {
30
+ const index = cleanupFunctions.indexOf(fn);
31
+ if (index !== -1) {
32
+ cleanupFunctions.splice(index, 1);
33
+ }
34
+ }
35
+ function registerSyncCleanup(fn) {
36
+ syncCleanupFunctions.push(fn);
37
+ }
38
+ function removeSyncCleanup(fn) {
39
+ const index = syncCleanupFunctions.indexOf(fn);
40
+ if (index !== -1) {
41
+ syncCleanupFunctions.splice(index, 1);
42
+ }
43
+ }
44
+ function resetCleanupForTesting() {
45
+ cleanupFunctions.length = 0;
46
+ syncCleanupFunctions.length = 0;
47
+ configForTelemetry = null;
48
+ isShuttingDown = false;
49
+ cleanupState = "IDLE" /* IDLE */;
50
+ cleanupPromise = null;
51
+ }
52
+ function runSyncCleanup() {
53
+ for (const fn of syncCleanupFunctions) {
54
+ try {
55
+ fn();
56
+ } catch {
57
+ }
58
+ }
59
+ syncCleanupFunctions.length = 0;
60
+ }
61
+ function registerTelemetryConfig(config) {
62
+ configForTelemetry = config;
63
+ }
64
+ async function runExitCleanup() {
65
+ if (cleanupState === "COMPLETED" /* COMPLETED */) {
66
+ return;
67
+ }
68
+ if (cleanupState === "RUNNING" /* RUNNING */ && cleanupPromise) {
69
+ await cleanupPromise;
70
+ return;
71
+ }
72
+ cleanupState = "RUNNING" /* RUNNING */;
73
+ cleanupPromise = (async () => {
74
+ try {
75
+ try {
76
+ await drainStdin();
77
+ } catch {
78
+ }
79
+ runSyncCleanup();
80
+ for (const fn of cleanupFunctions) {
81
+ try {
82
+ await fn();
83
+ } catch {
84
+ }
85
+ }
86
+ cleanupFunctions.length = 0;
87
+ try {
88
+ await resetBrowserSession();
89
+ } catch {
90
+ }
91
+ try {
92
+ await ShellExecutionService.cleanupAllActiveProcesses();
93
+ } catch {
94
+ }
95
+ if (configForTelemetry) {
96
+ try {
97
+ await configForTelemetry.dispose();
98
+ } catch {
99
+ }
100
+ }
101
+ if (configForTelemetry && isTelemetrySdkInitialized()) {
102
+ try {
103
+ await shutdownTelemetry(configForTelemetry);
104
+ } catch {
105
+ }
106
+ }
107
+ } finally {
108
+ cleanupState = "COMPLETED" /* COMPLETED */;
109
+ cleanupPromise = null;
110
+ }
111
+ })();
112
+ await cleanupPromise;
113
+ }
114
+ async function drainStdin() {
115
+ if (!process.stdin?.isTTY) return;
116
+ process.stdin.resume().removeAllListeners("data").on("data", () => {
117
+ });
118
+ await new Promise((resolve) => setTimeout(resolve, 50));
119
+ }
120
+ async function gracefulShutdown(reason) {
121
+ if (isShuttingDown) {
122
+ return;
123
+ }
124
+ isShuttingDown = true;
125
+ await runExitCleanup();
126
+ const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : reason === "SIGHUP" ? 129 : ExitCodes.SUCCESS;
127
+ process.exit(exitCode);
128
+ }
129
+ function setupSignalHandlers() {
130
+ process.on("SIGHUP", () => gracefulShutdown("SIGHUP"));
131
+ process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
132
+ process.on("SIGINT", () => gracefulShutdown("SIGINT"));
133
+ }
134
+ function setupTtyCheck() {
135
+ let intervalId = null;
136
+ let isCheckingTty = false;
137
+ intervalId = setInterval(async () => {
138
+ if (isCheckingTty || isShuttingDown) {
139
+ return;
140
+ }
141
+ if (process.env["SANDBOX"]) {
142
+ return;
143
+ }
144
+ if (!process.stdin.isTTY && !process.stdout.isTTY) {
145
+ isCheckingTty = true;
146
+ if (intervalId) {
147
+ clearInterval(intervalId);
148
+ intervalId = null;
149
+ }
150
+ await gracefulShutdown("TTY loss");
151
+ }
152
+ }, 5e3);
153
+ intervalId.unref();
154
+ return () => {
155
+ if (intervalId) {
156
+ clearInterval(intervalId);
157
+ intervalId = null;
158
+ }
159
+ };
160
+ }
161
+ async function cleanupCheckpoints() {
162
+ const storage = new Storage(process.cwd());
163
+ await storage.initialize();
164
+ const tempDir = storage.getProjectTempDir();
165
+ const checkpointsDir = join(tempDir, "checkpoints");
166
+ try {
167
+ await fs.rm(checkpointsDir, { recursive: true, force: true });
168
+ } catch {
169
+ }
170
+ }
171
+
172
+ export {
173
+ CleanupState,
174
+ registerCleanup,
175
+ removeCleanup,
176
+ registerSyncCleanup,
177
+ removeSyncCleanup,
178
+ resetCleanupForTesting,
179
+ runSyncCleanup,
180
+ registerTelemetryConfig,
181
+ runExitCleanup,
182
+ setupSignalHandlers,
183
+ setupTtyCheck,
184
+ cleanupCheckpoints
185
+ };
186
+ /**
187
+ * @license
188
+ * Copyright 2025 Google LLC
189
+ * SPDX-License-Identifier: Apache-2.0
190
+ */
@@ -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
  checkExhaustive
4
- } from "./chunk-JJNQ5PWH.js";
4
+ } from "./chunk-SVDAJM4G.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM
@@ -295748,8 +295748,8 @@ function isValidToolName(name3, options = {}) {
295748
295748
  }
295749
295749
 
295750
295750
  // packages/core/src/generated/git-commit.ts
295751
- var GIT_COMMIT_INFO = "808199f5c";
295752
- var CLI_VERSION = "0.71.0-nightly.20261118.g615d6bc8c";
295751
+ var GIT_COMMIT_INFO = "1e9df3cac";
295752
+ var CLI_VERSION = "0.71.0";
295753
295753
 
295754
295754
  // packages/core/src/ide/detect-ide.ts
295755
295755
  var IDE_DEFINITIONS = {
@@ -328743,7 +328743,7 @@ function getVersion() {
328743
328743
  }
328744
328744
  versionPromise = (async () => {
328745
328745
  const pkgJson = await getPackageJson(__dirname4);
328746
- return "0.71.0-nightly.20261118.g615d6bc8c";
328746
+ return "0.71.0";
328747
328747
  })();
328748
328748
  return versionPromise;
328749
328749
  }
@@ -363798,7 +363798,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
363798
363798
  return provider;
363799
363799
  }
363800
363800
  case "oauth2": {
363801
- const { OAuth2AuthProvider } = await import("./oauth2-provider-YZI5V6PH.js");
363801
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-FTL5RWC6.js");
363802
363802
  const provider = new OAuth2AuthProvider(
363803
363803
  authConfig,
363804
363804
  options.agentName ?? "unknown",
@@ -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-3XHFESDF.js";
4
+ } from "./chunk-RQ4T6AK5.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
@@ -17,7 +17,7 @@ import {
17
17
  require_re,
18
18
  require_semver,
19
19
  require_valid
20
- } from "./chunk-YQO7IBVQ.js";
20
+ } from "./chunk-OGIQ2DJJ.js";
21
21
  import {
22
22
  __commonJS,
23
23
  __toESM
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  normalizeError,
4
4
  safeSerializeErrorValue
5
- } from "./chunk-JJNQ5PWH.js";
5
+ } from "./chunk-EFTWPKUN.js";
6
6
 
7
7
  // packages/cli/src/utils/formatError.ts
8
8
  function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
@@ -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
  require_react
4
- } from "./chunk-KSDBDSBI.js";
4
+ } from "./chunk-RWAKAA62.js";
5
5
  import {
6
6
  AuthProviderType,
7
7
  AuthType,
@@ -36,7 +36,7 @@ import {
36
36
  require_shell_quote,
37
37
  require_strip_json_comments,
38
38
  sanitizeFilenamePart
39
- } from "./chunk-BTH7KEMH.js";
39
+ } from "./chunk-SVDAJM4G.js";
40
40
  import {
41
41
  __commonJS,
42
42
  __export,