@google/gemini-cli 0.48.0-nightly.20260612.g4e10a34be → 0.48.0-preview.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 (67) hide show
  1. package/bundle/{chunk-ZT5PXPGC.js → chunk-32OC6X7M.js} +2 -2
  2. package/bundle/{chunk-GWB6WHVI.js → chunk-4D6ZATMR.js} +125 -83
  3. package/bundle/{chunk-RWG2IKXK.js → chunk-4JHCXKYF.js} +3 -3
  4. package/bundle/{chunk-4FWMMTHD.js → chunk-76ONBIQT.js} +1 -1
  5. package/bundle/{chunk-25ZW2ZOF.js → chunk-7BRNIWQY.js} +1 -1
  6. package/bundle/{chunk-FFKNXGOH.js → chunk-BPCFUG3V.js} +66 -33
  7. package/bundle/{chunk-DV5H7HVO.js → chunk-C5HEG6L3.js} +1 -1
  8. package/bundle/{chunk-DR6M2CVX.js → chunk-F643LQAW.js} +2 -2
  9. package/bundle/{chunk-BG23KJOF.js → chunk-F754PAF2.js} +1 -1
  10. package/bundle/{chunk-57QJRHS6.js → chunk-FKMHT24L.js} +1 -1
  11. package/bundle/{chunk-5TAF74A7.js → chunk-FOP27KUG.js} +66 -33
  12. package/bundle/{chunk-HEBKVYVW.js → chunk-GOJGZJTT.js} +1 -1
  13. package/bundle/{chunk-GSKH763B.js → chunk-JFJQ6J4C.js} +123 -81
  14. package/bundle/{chunk-5OGSMQN5.js → chunk-KRCY6JZY.js} +5 -8
  15. package/bundle/{chunk-3P56CQDW.js → chunk-KXJA2W44.js} +113 -93
  16. package/bundle/{chunk-3BHPNRR5.js → chunk-LHJYE2I2.js} +1 -1
  17. package/bundle/{chunk-TRKBNK3S.js → chunk-MGTB4OGF.js} +3 -3
  18. package/bundle/{chunk-PD2ER6QH.js → chunk-NELP7HPM.js} +14221 -7634
  19. package/bundle/{chunk-FSFSH7N4.js → chunk-OAXLII52.js} +2 -2
  20. package/bundle/{chunk-NWC2JNOB.js → chunk-PIL3VMYY.js} +1 -1
  21. package/bundle/{chunk-RJVA7TEL.js → chunk-REQG2CDI.js} +1 -1
  22. package/bundle/{chunk-JQBYCLEO.js → chunk-WBAIIKUA.js} +3 -3
  23. package/bundle/{chunk-ERRTQLZ3.js → chunk-WLIX7UZL.js} +1 -1
  24. package/bundle/{chunk-ZACXIEK6.js → chunk-ZMBUTQOC.js} +8 -9
  25. package/bundle/{cleanup-EMSFFQXH.js → cleanup-HQASY4ZZ.js} +2 -2
  26. package/bundle/{cleanup-JUEQXYLN.js → cleanup-PIKPOR36.js} +2 -2
  27. package/bundle/{cleanup-OQN4S6N7.js → cleanup-TFU4O2QF.js} +2 -2
  28. package/bundle/{core-SBDR7NMV.js → core-2HID3ALL.js} +1 -1
  29. package/bundle/{dist-C77MM5UI.js → core-6YK2A6I7.js} +1 -1
  30. package/bundle/{devtoolsService-Q6RR5ONV.js → devtoolsService-IJQN3MM5.js} +2 -2
  31. package/bundle/{devtoolsService-6XIZFA3V.js → devtoolsService-UOC3OTQO.js} +3 -4
  32. package/bundle/{devtoolsService-4K4TUJGT.js → devtoolsService-VVO37S2U.js} +2 -2
  33. package/bundle/{dist-IZL4IUFR.js → dist-XJ5HWKG4.js} +1 -1
  34. package/bundle/docs/cli/enterprise.md +1 -1
  35. package/bundle/{gemini-22IJYAAK.js → gemini-FNT3QJRS.js} +15 -15
  36. package/bundle/{gemini-BU4XIO7C.js → gemini-K7TA557G.js} +197 -213
  37. package/bundle/{gemini-EXF7WM5I.js → gemini-KE6MEJUV.js} +14 -14
  38. package/bundle/gemini.js +7 -7
  39. package/bundle/{interactiveCli-WP4PF4B4.js → interactiveCli-42SRPV5K.js} +8 -8
  40. package/bundle/{interactiveCli-AYRCP2YE.js → interactiveCli-KHHF6YZS.js} +295 -314
  41. package/bundle/{interactiveCli-3XP7ZWTR.js → interactiveCli-LXYWEYTS.js} +8 -8
  42. package/bundle/{liteRtServerManager-BKMP23GM.js → liteRtServerManager-4P66NNGG.js} +4 -4
  43. package/bundle/{liteRtServerManager-BRKTTSTY.js → liteRtServerManager-MMZKQRWI.js} +4 -4
  44. package/bundle/{liteRtServerManager-EXA5HOJY.js → liteRtServerManager-OBHUWV37.js} +4 -4
  45. package/bundle/{oauth2-provider-R3XNUJCY.js → oauth2-provider-OJZ3YJZH.js} +1 -1
  46. package/bundle/{oauth2-provider-AOLL6E73.js → oauth2-provider-TBT32VYL.js} +1 -1
  47. package/bundle/{oauth2-provider-J7GSQ3D3.js → oauth2-provider-YIPV4CI4.js} +72 -38
  48. package/bundle/{start-FAIQQIZB.js → start-QX77TWOS.js} +6 -6
  49. package/bundle/{start-T37M4GQC.js → start-RF5733GP.js} +6 -6
  50. package/bundle/{start-UEM457EB.js → start-SYDDMBXA.js} +6 -6
  51. package/package.json +1 -1
  52. package/bundle/chunk-47O5POZQ.js +0 -394678
  53. package/bundle/chunk-GUFPYIHD.js +0 -512
  54. package/bundle/chunk-I4UV4KA4.js +0 -398
  55. package/bundle/chunk-JNJOXQYJ.js +0 -1571
  56. package/bundle/chunk-M54YU4D6.js +0 -118
  57. package/bundle/chunk-OZYTM77K.js +0 -81736
  58. package/bundle/chunk-TMB2KDVR.js +0 -154
  59. package/bundle/chunk-WEPCSQ47.js +0 -17320
  60. package/bundle/cleanup-VI4MGW6W.js +0 -32
  61. package/bundle/devtoolsService-P7V47Y6U.js +0 -856
  62. package/bundle/dist-PNS3BBFZ.js +0 -2150
  63. package/bundle/gemini-GA3BOQUA.js +0 -16409
  64. package/bundle/interactiveCli-IK5ZIGXI.js +0 -34766
  65. package/bundle/liteRtServerManager-NPAIRQRP.js +0 -65
  66. package/bundle/oauth2-provider-O3JJBAIN.js +0 -235
  67. package/bundle/start-VUNII4BV.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-GSKH763B.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
- */