@google/gemini-cli 0.59.0-nightly.20260902.g4963a4456 → 0.59.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 (68) hide show
  1. package/bundle/{chunk-Q5JIA6GT.js → chunk-5MBZBBH2.js} +1 -1
  2. package/bundle/{chunk-HLKUJQDM.js → chunk-AB5FS4AA.js} +3 -3
  3. package/bundle/{chunk-T7ZX2IIA.js → chunk-CFD5V7JP.js} +1 -1
  4. package/bundle/{chunk-CPY5OHHN.js → chunk-CUTHWG3H.js} +8 -8
  5. package/bundle/{chunk-KWV4AQUZ.js → chunk-EXIGMSNQ.js} +8 -8
  6. package/bundle/{chunk-C6ZWHKCF.js → chunk-EZCKZ4FP.js} +8 -9
  7. package/bundle/{chunk-UEJPTQC6.js → chunk-HWQPEGPU.js} +3 -3
  8. package/bundle/{chunk-IA7Q3KXH.js → chunk-LZ4UWPZ4.js} +1 -1
  9. package/bundle/{chunk-IJEAUNNQ.js → chunk-MBUPFP25.js} +1 -1
  10. package/bundle/{chunk-IWRJCZ6U.js → chunk-NBDWOAFH.js} +1 -1
  11. package/bundle/{chunk-NMQMMCVT.js → chunk-NNFB47JH.js} +1 -1
  12. package/bundle/{chunk-GSIUURFM.js → chunk-NWWZRJGH.js} +1 -1
  13. package/bundle/{chunk-JHQHEMVA.js → chunk-O4TDK2BP.js} +2 -2
  14. package/bundle/{chunk-3VZPRWHY.js → chunk-OXQLGDKV.js} +1 -1
  15. package/bundle/{chunk-KKCOXPHQ.js → chunk-PC2G646B.js} +5 -8
  16. package/bundle/{chunk-TZIBDTO2.js → chunk-QEMQJ5WC.js} +55 -68
  17. package/bundle/{chunk-V6Z4ITCV.js → chunk-QTWDMFI7.js} +2 -2
  18. package/bundle/{chunk-YUQC6NAA.js → chunk-RSFMNCZQ.js} +3 -3
  19. package/bundle/{chunk-DIOSE3BS.js → chunk-S4PJ76PA.js} +83 -232
  20. package/bundle/{chunk-IGCPJWUF.js → chunk-SM627E5R.js} +14467 -7859
  21. package/bundle/{chunk-DASQGJ7I.js → chunk-WQ6KAW5H.js} +2 -2
  22. package/bundle/{chunk-6GUIIVVA.js → chunk-YINIG2CS.js} +1 -1
  23. package/bundle/{chunk-ER2BMKIS.js → chunk-YSBB75DZ.js} +80 -208
  24. package/bundle/{chunk-7JLIYXNU.js → chunk-ZEWQGTD3.js} +1 -1
  25. package/bundle/{cleanup-25YS5RTX.js → cleanup-V6FPOSLQ.js} +2 -2
  26. package/bundle/{cleanup-6GCA4T3P.js → cleanup-XITK52PU.js} +2 -2
  27. package/bundle/{cleanup-LZUO77TQ.js → cleanup-XLXFAFOM.js} +2 -2
  28. package/bundle/{core-2TCJDOL6.js → core-3RU5PE2Y.js} +1 -9
  29. package/bundle/{dist-U5EX4CQJ.js → core-W643DPU2.js} +1 -9
  30. package/bundle/{devtoolsService-2IXJHCHW.js → devtoolsService-6HD2JXSA.js} +2 -2
  31. package/bundle/{devtoolsService-CU22AZND.js → devtoolsService-MHCZCWFY.js} +2 -2
  32. package/bundle/{devtoolsService-BJMUO2XL.js → devtoolsService-QCWLN43R.js} +3 -4
  33. package/bundle/{dist-VR7BVPAT.js → dist-LLWWE5PU.js} +1 -9
  34. package/bundle/docs/reference/tools.md +4 -4
  35. package/bundle/docs/tools/web-fetch.md +3 -7
  36. package/bundle/{gemini-636YD7YV.js → gemini-CQYKWDIK.js} +14 -14
  37. package/bundle/{gemini-K4CRJOXJ.js → gemini-LLTPU73C.js} +198 -214
  38. package/bundle/{gemini-4QZGW7SH.js → gemini-OENNDR6N.js} +14 -14
  39. package/bundle/gemini.js +7 -7
  40. package/bundle/{interactiveCli-CS35GNLK.js → interactiveCli-7H2PS7RG.js} +8 -8
  41. package/bundle/{interactiveCli-2DBA2EUZ.js → interactiveCli-HHIJH7BL.js} +8 -8
  42. package/bundle/{interactiveCli-3JQSLUI7.js → interactiveCli-RIVGDZH4.js} +296 -315
  43. package/bundle/{liteRtServerManager-3TZXC7UK.js → liteRtServerManager-3QXIGTR3.js} +4 -4
  44. package/bundle/{liteRtServerManager-ACIGCEO2.js → liteRtServerManager-ALSWB4ZD.js} +4 -4
  45. package/bundle/{liteRtServerManager-HSGAX7EP.js → liteRtServerManager-XQKFTZNQ.js} +4 -4
  46. package/bundle/{oauth2-provider-JRSE3A7L.js → oauth2-provider-JV5L5XL4.js} +1 -1
  47. package/bundle/{oauth2-provider-7VIOBXML.js → oauth2-provider-KT5RTHDD.js} +1 -1
  48. package/bundle/{oauth2-provider-PYJGQTFU.js → oauth2-provider-NJUM2T72.js} +72 -38
  49. package/bundle/{start-6Q4QBVPO.js → start-AGMWAQ3H.js} +6 -6
  50. package/bundle/{start-HU7I3QO3.js → start-EKWDEYRS.js} +6 -6
  51. package/bundle/{start-MHK6JBHQ.js → start-LY3VMFGC.js} +6 -6
  52. package/package.json +1 -1
  53. package/bundle/chunk-BOFHLQOG.js +0 -17332
  54. package/bundle/chunk-F5IP5MHL.js +0 -398
  55. package/bundle/chunk-I4Y2QIDJ.js +0 -102506
  56. package/bundle/chunk-JPE4HCHY.js +0 -398010
  57. package/bundle/chunk-OGVFULXC.js +0 -1571
  58. package/bundle/chunk-OXMZP3AS.js +0 -118
  59. package/bundle/chunk-VIH2NMBW.js +0 -512
  60. package/bundle/chunk-XIHG4K2H.js +0 -154
  61. package/bundle/cleanup-NCHJS2BY.js +0 -32
  62. package/bundle/devtoolsService-VC3YH4D2.js +0 -4359
  63. package/bundle/dist-YZRGVHWZ.js +0 -2196
  64. package/bundle/gemini-PXW4RELH.js +0 -17337
  65. package/bundle/interactiveCli-FBKOZYFH.js +0 -34983
  66. package/bundle/liteRtServerManager-IOJ5CIAG.js +0 -65
  67. package/bundle/oauth2-provider-QEEGBDTU.js +0 -235
  68. package/bundle/start-NIWCTDHI.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-IGCPJWUF.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
- */
@@ -1,32 +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
- cleanupCheckpoints,
4
- registerCleanup,
5
- registerSyncCleanup,
6
- registerTelemetryConfig,
7
- removeCleanup,
8
- removeSyncCleanup,
9
- resetCleanupForTesting,
10
- runExitCleanup,
11
- runSyncCleanup,
12
- setupSignalHandlers,
13
- setupTtyCheck
14
- } from "./chunk-NMQMMCVT.js";
15
- import "./chunk-JPE4HCHY.js";
16
- import "./chunk-664ZODQF.js";
17
- import "./chunk-IUUIT4SU.js";
18
- import "./chunk-TUDYL3X4.js";
19
- import "./chunk-34MYV7JD.js";
20
- export {
21
- cleanupCheckpoints,
22
- registerCleanup,
23
- registerSyncCleanup,
24
- registerTelemetryConfig,
25
- removeCleanup,
26
- removeSyncCleanup,
27
- resetCleanupForTesting,
28
- runExitCleanup,
29
- runSyncCleanup,
30
- setupSignalHandlers,
31
- setupTtyCheck
32
- };