@google/gemini-cli 0.60.0-nightly.20260908.g85aca163f → 0.60.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 (66) hide show
  1. package/bundle/{chunk-G4V32KTT.js → chunk-2CNCBL5E.js} +1 -1
  2. package/bundle/{chunk-3QU7MFQ7.js → chunk-2VRC3EDT.js} +8 -9
  3. package/bundle/{chunk-3CDPEGVA.js → chunk-32DXU4EF.js} +1 -1
  4. package/bundle/{chunk-TVCSMCKT.js → chunk-4IIDTAFR.js} +1 -1
  5. package/bundle/{chunk-FX53IMQ4.js → chunk-7QC7KWAE.js} +1 -1
  6. package/bundle/{chunk-L5DTYBPR.js → chunk-CMLALLX3.js} +7 -7
  7. package/bundle/{chunk-OSSPFBB5.js → chunk-D3BC6B5F.js} +1 -1
  8. package/bundle/{chunk-ACSEKHMC.js → chunk-E62PES2E.js} +2 -2
  9. package/bundle/{chunk-YMZA4EO3.js → chunk-GFHSA4BE.js} +1 -1
  10. package/bundle/{chunk-A6IXIFRW.js → chunk-GNCCSIBA.js} +7 -7
  11. package/bundle/{chunk-FYCX7S2H.js → chunk-JJLODN2F.js} +1 -1
  12. package/bundle/{chunk-VIXOL23X.js → chunk-KAXMFUK5.js} +1 -1
  13. package/bundle/{chunk-AXAX7FSE.js → chunk-M6NSK26M.js} +123 -104
  14. package/bundle/{chunk-FIESYQDV.js → chunk-MOYC3UGL.js} +127 -106
  15. package/bundle/{chunk-BOGYC66X.js → chunk-OCLZG6C5.js} +1 -1
  16. package/bundle/{chunk-OI5WY42W.js → chunk-P3SNRA43.js} +2 -2
  17. package/bundle/{chunk-XTLORUWQ.js → chunk-PJREBWY3.js} +2 -2
  18. package/bundle/{chunk-N7PUYZ2C.js → chunk-QRYVAS35.js} +3 -3
  19. package/bundle/{chunk-4YTSRQAI.js → chunk-RZALYEQN.js} +1 -1
  20. package/bundle/{chunk-J5XD2NH2.js → chunk-S7PDUHJI.js} +3 -3
  21. package/bundle/{chunk-JE7V5AAP.js → chunk-UEQMLKXK.js} +3 -3
  22. package/bundle/{chunk-GD2JGMGI.js → chunk-VCAJDPDX.js} +14699 -7842
  23. package/bundle/{chunk-CYA6LLPT.js → chunk-WRNJPSJG.js} +5 -8
  24. package/bundle/{chunk-AL25HEEO.js → chunk-XRNOQZLR.js} +54 -67
  25. package/bundle/{cleanup-4FION7X5.js → cleanup-HEQUL3UY.js} +2 -2
  26. package/bundle/{cleanup-GWIY2YES.js → cleanup-THNE7RD2.js} +2 -2
  27. package/bundle/{cleanup-SXOQFKSA.js → cleanup-XYVEFB7E.js} +2 -2
  28. package/bundle/{core-T6ZA3RPN.js → core-A6JH6DY6.js} +5 -1
  29. package/bundle/{dist-CUTV6FXO.js → core-PCNYIQML.js} +5 -1
  30. package/bundle/{devtoolsService-FPEN37GX.js → devtoolsService-J7SM2WQQ.js} +2 -2
  31. package/bundle/{devtoolsService-J5IMHON6.js → devtoolsService-TEWMGXKI.js} +2 -2
  32. package/bundle/{devtoolsService-HJR727UG.js → devtoolsService-YPPCMYGQ.js} +3 -4
  33. package/bundle/{dist-IYMU3MAT.js → dist-PD4ABRTS.js} +5 -1
  34. package/bundle/{gemini-RLSAAMB2.js → gemini-7INSUCPB.js} +318 -272
  35. package/bundle/{gemini-FPHQ6YA6.js → gemini-LUNNHKPJ.js} +134 -72
  36. package/bundle/{gemini-DM7UHG5I.js → gemini-ZTU7EMI3.js} +134 -72
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-BNCDBJK2.js → interactiveCli-COQJBPC2.js} +8 -8
  39. package/bundle/{interactiveCli-NC7ZBX74.js → interactiveCli-NQE3X2WY.js} +8 -8
  40. package/bundle/{interactiveCli-SWGF5F7W.js → interactiveCli-X63QLGIH.js} +296 -315
  41. package/bundle/{liteRtServerManager-6VWY6OO6.js → liteRtServerManager-5YXPHG3Q.js} +4 -4
  42. package/bundle/{liteRtServerManager-HE2FE4FH.js → liteRtServerManager-7W4APCRB.js} +4 -4
  43. package/bundle/{liteRtServerManager-JSW26OPJ.js → liteRtServerManager-PEAZFGHW.js} +4 -4
  44. package/bundle/{oauth2-provider-IGJGMQ4U.js → oauth2-provider-H2X6UMUS.js} +1 -1
  45. package/bundle/{oauth2-provider-I665TJQN.js → oauth2-provider-M3PIKLLI.js} +1 -1
  46. package/bundle/{oauth2-provider-T2HJJ7SP.js → oauth2-provider-WINJTB44.js} +72 -38
  47. package/bundle/{start-AA23VJDL.js → start-AH7HKN5D.js} +6 -6
  48. package/bundle/{start-EQIIZYZY.js → start-J5DOY6JW.js} +6 -6
  49. package/bundle/{start-QHU4R4ZE.js → start-QYNDA2U4.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-5AXHFT2M.js +0 -512
  52. package/bundle/chunk-JIOJKKRV.js +0 -1571
  53. package/bundle/chunk-JIXDRDKL.js +0 -17353
  54. package/bundle/chunk-M24MUPYL.js +0 -398992
  55. package/bundle/chunk-MI66NSWG.js +0 -154
  56. package/bundle/chunk-R55JHECT.js +0 -102670
  57. package/bundle/chunk-RRTGK7KM.js +0 -118
  58. package/bundle/chunk-WET7Q2Z2.js +0 -398
  59. package/bundle/cleanup-XSTC4XRT.js +0 -32
  60. package/bundle/devtoolsService-R3332TAT.js +0 -4359
  61. package/bundle/dist-VMLS7TDS.js +0 -2212
  62. package/bundle/gemini-ZT27CSNJ.js +0 -17370
  63. package/bundle/interactiveCli-WG2TABNS.js +0 -34983
  64. package/bundle/liteRtServerManager-Y7KT37QX.js +0 -65
  65. package/bundle/oauth2-provider-WUYROQ6O.js +0 -235
  66. package/bundle/start-WLQTESZU.js +0 -18
@@ -1,154 +0,0 @@
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-GD2JGMGI.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
- */