@google/gemini-cli 0.63.0-nightly.20260928.g2fe7c2d3f → 0.63.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 (66) hide show
  1. package/bundle/{chunk-QX7M3XMQ.js → chunk-2J6RC447.js} +3 -3
  2. package/bundle/{chunk-DEI3TS7C.js → chunk-2NCBQURB.js} +125 -47
  3. package/bundle/{chunk-C2KZGMGL.js → chunk-2P4ETAEG.js} +1 -1
  4. package/bundle/{chunk-QYTRARRL.js → chunk-5VYF5TVF.js} +30 -3
  5. package/bundle/{chunk-EATZTV2L.js → chunk-B2C7BQ4Z.js} +7 -7
  6. package/bundle/{chunk-2AXHER6I.js → chunk-BVDTRESW.js} +1 -1
  7. package/bundle/{chunk-I5ZBUXWS.js → chunk-CTL6DZSY.js} +1 -1
  8. package/bundle/{chunk-7ZCWMSGJ.js → chunk-EIMVJG2V.js} +1 -1
  9. package/bundle/{chunk-4SQTLFVK.js → chunk-EWEUWTBB.js} +58 -71
  10. package/bundle/{chunk-LNPKSDNP.js → chunk-GRSO6OI3.js} +7 -7
  11. package/bundle/{chunk-SJFSOFYJ.js → chunk-H4WLRV6U.js} +30 -3
  12. package/bundle/{chunk-ERMD62K5.js → chunk-HBZBBLAV.js} +14860 -7829
  13. package/bundle/{chunk-YZPLV23A.js → chunk-JEUVKR2X.js} +3 -3
  14. package/bundle/{chunk-KRI5JA76.js → chunk-KCB54UJ5.js} +73 -17
  15. package/bundle/{chunk-ZAM747AR.js → chunk-KPPDDNGJ.js} +1 -1
  16. package/bundle/{chunk-SZK5XAFL.js → chunk-NTWFJ2RF.js} +30 -3
  17. package/bundle/{chunk-B3EF23HT.js → chunk-NWSCUKK3.js} +70 -19
  18. package/bundle/{chunk-I7XQQVIO.js → chunk-R6Q6D3UA.js} +1 -1
  19. package/bundle/{chunk-RFR5KZGU.js → chunk-RC6VJ6FT.js} +126 -47
  20. package/bundle/{chunk-PGIM2K4Q.js → chunk-RXHIISMM.js} +1 -1
  21. package/bundle/{chunk-UOXIYBXB.js → chunk-SNGNFODQ.js} +1 -1
  22. package/bundle/{chunk-KSWUQTWU.js → chunk-UEOEM4H5.js} +3 -3
  23. package/bundle/{chunk-4PBNRKYJ.js → chunk-Z5RCAIV5.js} +129 -53
  24. package/bundle/{chunk-BRTA6WWG.js → chunk-ZDQYLJYN.js} +8 -9
  25. package/bundle/{cleanup-5PD3O5L7.js → cleanup-EX2L3L3E.js} +2 -2
  26. package/bundle/{cleanup-6IDD7Q3X.js → cleanup-IT7XR7KS.js} +2 -2
  27. package/bundle/{cleanup-7UL3PRLF.js → cleanup-WWLYKZIX.js} +2 -2
  28. package/bundle/{core-IIFMZU4H.js → core-D5D4MF5H.js} +3 -1
  29. package/bundle/{dist-5HHK4577.js → core-GAJB2LOX.js} +3 -1
  30. package/bundle/{devtoolsService-AK7UU2FI.js → devtoolsService-4YTFHHPN.js} +2 -2
  31. package/bundle/{devtoolsService-A7VWEFDQ.js → devtoolsService-S4ZTRGJL.js} +3 -4
  32. package/bundle/{devtoolsService-67KG4JD7.js → devtoolsService-TJPENQSW.js} +2 -2
  33. package/bundle/{dist-I74UZ4GA.js → dist-MTMOCTIW.js} +3 -1
  34. package/bundle/{gemini-OFIYPHV5.js → gemini-5T5BS7L7.js} +14 -14
  35. package/bundle/{gemini-PGIEQLQD.js → gemini-FHORRYHM.js} +13 -13
  36. package/bundle/{gemini-PLPMSDXJ.js → gemini-UQRS6TBE.js} +198 -214
  37. package/bundle/gemini.js +20 -11
  38. package/bundle/{interactiveCli-JLFFVRVY.js → interactiveCli-5YNYZTMK.js} +18 -10
  39. package/bundle/{interactiveCli-JF6LE6RN.js → interactiveCli-I5K7O5Z6.js} +18 -10
  40. package/bundle/{interactiveCli-OG4JE4CU.js → interactiveCli-WOM6QZHM.js} +302 -313
  41. package/bundle/{liteRtServerManager-4LVWWKUV.js → liteRtServerManager-3N5KI6YS.js} +4 -4
  42. package/bundle/{liteRtServerManager-DVDNFJNH.js → liteRtServerManager-EH2L2UVH.js} +4 -4
  43. package/bundle/{liteRtServerManager-G4WG2Q45.js → liteRtServerManager-ZLIHBLZP.js} +4 -4
  44. package/bundle/{oauth2-provider-KPLVYPVA.js → oauth2-provider-5GFYTXFU.js} +1 -1
  45. package/bundle/{oauth2-provider-IBKEWCFT.js → oauth2-provider-NGSH2JQK.js} +72 -38
  46. package/bundle/{oauth2-provider-CEQ4PAUC.js → oauth2-provider-TA2KRXWQ.js} +1 -1
  47. package/bundle/{start-2A3VVOAH.js → start-CWI6OP6N.js} +6 -6
  48. package/bundle/{start-6PINHVUA.js → start-M3IUNCYH.js} +6 -6
  49. package/bundle/{start-BZAGKSC2.js → start-MWDNIQUY.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-5G7FE6LZ.js +0 -102951
  52. package/bundle/chunk-EORMOPQX.js +0 -17368
  53. package/bundle/chunk-EYGY6SJV.js +0 -512
  54. package/bundle/chunk-KCZCDPS2.js +0 -398
  55. package/bundle/chunk-PAIQESPE.js +0 -118
  56. package/bundle/chunk-TXWIPUPY.js +0 -400484
  57. package/bundle/chunk-VAGYZO4R.js +0 -1571
  58. package/bundle/chunk-VNGBTT2C.js +0 -154
  59. package/bundle/cleanup-UTIIPF3A.js +0 -32
  60. package/bundle/devtoolsService-REQSIEPU.js +0 -4359
  61. package/bundle/dist-QMOHSH2B.js +0 -2248
  62. package/bundle/gemini-I47O5YI2.js +0 -17863
  63. package/bundle/interactiveCli-CJEDKYUL.js +0 -34907
  64. package/bundle/liteRtServerManager-MZO6JMNV.js +0 -65
  65. package/bundle/oauth2-provider-UHJTSOLD.js +0 -235
  66. package/bundle/start-ZRUVAD7P.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-KRI5JA76.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-PGIM2K4Q.js";
15
- import "./chunk-ERMD62K5.js";
16
- import "./chunk-664ZODQF.js";
17
- import "./chunk-IUUIT4SU.js";
18
- import "./chunk-L6PII3GR.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
- };