@google/gemini-cli 0.47.0-nightly.20260609.g0567b25a2 → 0.47.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/builtin/antigravity-support/SKILL.md +58 -0
  2. package/bundle/{chunk-2CIX5Q6A.js → chunk-2KWNCPLL.js} +2 -2
  3. package/bundle/{chunk-EMUTS6IK.js → chunk-2Q4476DN.js} +1 -1
  4. package/bundle/{chunk-WKBFPVMG.js → chunk-4GCG36AT.js} +1 -1
  5. package/bundle/{chunk-DCTGU54Z.js → chunk-6KE4CNFS.js} +1 -1
  6. package/bundle/{chunk-GCIN3SBW.js → chunk-6LT65VVT.js} +1 -1
  7. package/bundle/{chunk-2QJY5FON.js → chunk-BBNWCBRR.js} +1 -1
  8. package/bundle/{chunk-EHNTNNG7.js → chunk-CNIL75JT.js} +2 -2
  9. package/bundle/{chunk-UWRWOGGE.js → chunk-DXBHZ3TN.js} +8 -9
  10. package/bundle/{chunk-PL643LQI.js → chunk-FBADLP6O.js} +1 -1
  11. package/bundle/{chunk-AAUTETSH.js → chunk-FXI4U6PC.js} +2 -2
  12. package/bundle/{chunk-HP476PBA.js → chunk-HQ3WN6AK.js} +2 -2
  13. package/bundle/{chunk-I5A5X2DX.js → chunk-HR72IGHE.js} +165 -114
  14. package/bundle/{chunk-C6JF7KUM.js → chunk-JW7ZLS43.js} +474 -369
  15. package/bundle/{chunk-LUEQKTRO.js → chunk-L2MPIDNJ.js} +1 -1
  16. package/bundle/{chunk-LRU4AG5Z.js → chunk-LYEXSPQM.js} +6 -9
  17. package/bundle/{chunk-IZHHDHX6.js → chunk-M6POVUEU.js} +2 -2
  18. package/bundle/{chunk-BN4LGSIP.js → chunk-OF4FXFRD.js} +165 -114
  19. package/bundle/{chunk-QRLOGZOF.js → chunk-QIXRZAM6.js} +14529 -7889
  20. package/bundle/{chunk-AEYK5HWH.js → chunk-SBG6CUNK.js} +453 -355
  21. package/bundle/{chunk-4HDJHI5R.js → chunk-TG7JXYWL.js} +3 -3
  22. package/bundle/{chunk-IZ2I7Q2U.js → chunk-VIAOQQWI.js} +3 -3
  23. package/bundle/{chunk-2T3UO3GD.js → chunk-WSPZQ6DG.js} +212 -174
  24. package/bundle/{chunk-J3HLXOXQ.js → chunk-YYVEOJOI.js} +1 -1
  25. package/bundle/{chunk-BQBAQ2Q3.js → chunk-ZH37ZXAY.js} +3 -3
  26. package/bundle/{cleanup-FLYMRJHN.js → cleanup-3B3REU73.js} +2 -2
  27. package/bundle/{cleanup-MGYBYNJH.js → cleanup-GEKT3TY7.js} +2 -2
  28. package/bundle/{cleanup-Q3IUYRFR.js → cleanup-YLDEE5FO.js} +2 -2
  29. package/bundle/{core-HEUZ5HF5.js → core-HFORMEVY.js} +9 -1
  30. package/bundle/{dist-CE4H7NUW.js → core-ZX62TRQZ.js} +9 -1
  31. package/bundle/{devtoolsService-2HWL5NFR.js → devtoolsService-PHAD4RFS.js} +2 -2
  32. package/bundle/{devtoolsService-G6QHDK2R.js → devtoolsService-VQNGMCMU.js} +2 -2
  33. package/bundle/{devtoolsService-6L5OLG5H.js → devtoolsService-XFCKGUDN.js} +3 -4
  34. package/bundle/{dist-I7YW7PD5.js → dist-UINE5I5P.js} +9 -1
  35. package/bundle/{gemini-HILUTGAC.js → gemini-FOEJAXHE.js} +14 -14
  36. package/bundle/{gemini-COTZTFOT.js → gemini-PDNY7O5B.js} +14 -14
  37. package/bundle/{gemini-JJPFCGRS.js → gemini-VTIJURKH.js} +196 -212
  38. package/bundle/gemini.js +7 -7
  39. package/bundle/{interactiveCli-LZI7JXIK.js → interactiveCli-5LZR6JYR.js} +44 -20
  40. package/bundle/{interactiveCli-ZLNOSGX5.js → interactiveCli-EEVGQBIN.js} +44 -20
  41. package/bundle/{interactiveCli-4HTU7R6H.js → interactiveCli-ZHNRZVK3.js} +331 -326
  42. package/bundle/{liteRtServerManager-3E5GRFLO.js → liteRtServerManager-CCZNRFEE.js} +4 -4
  43. package/bundle/{liteRtServerManager-76QFKETH.js → liteRtServerManager-L63JEWQK.js} +4 -4
  44. package/bundle/{liteRtServerManager-OJD3HSWN.js → liteRtServerManager-QEGKNHBK.js} +4 -4
  45. package/bundle/{oauth2-provider-XWGCFTD2.js → oauth2-provider-7VJY4VWP.js} +1 -1
  46. package/bundle/{oauth2-provider-HPJFIAG6.js → oauth2-provider-D3K72R73.js} +1 -1
  47. package/bundle/{oauth2-provider-HWRKMSF7.js → oauth2-provider-NJB6EG2W.js} +72 -38
  48. package/bundle/{start-3DT6X44L.js → start-EDWM2AMD.js} +6 -6
  49. package/bundle/{start-BX2QHAEC.js → start-RGSZYXG3.js} +6 -6
  50. package/bundle/{start-Q4WEY7Z6.js → start-TZSG66O4.js} +6 -6
  51. package/package.json +1 -1
  52. package/bundle/chunk-3JPECJG6.js +0 -398
  53. package/bundle/chunk-DCUISZSY.js +0 -118
  54. package/bundle/chunk-H6BD5ZKD.js +0 -512
  55. package/bundle/chunk-MSM65VWS.js +0 -17320
  56. package/bundle/chunk-OT53DK2V.js +0 -154
  57. package/bundle/chunk-SO6BWWGF.js +0 -81685
  58. package/bundle/chunk-WVAJOJDO.js +0 -1571
  59. package/bundle/chunk-ZZMWIUE5.js +0 -394571
  60. package/bundle/cleanup-UN4WQ3DJ.js +0 -32
  61. package/bundle/devtoolsService-LPQTHDXY.js +0 -856
  62. package/bundle/dist-SYYTVWDP.js +0 -2140
  63. package/bundle/gemini-NQMNY7AW.js +0 -16409
  64. package/bundle/interactiveCli-6NPEXVAG.js +0 -34742
  65. package/bundle/liteRtServerManager-OXYRVBA4.js +0 -65
  66. package/bundle/oauth2-provider-WJGZJ73D.js +0 -235
  67. package/bundle/start-Z54XBIIY.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-AEYK5HWH.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
- */