@google/gemini-cli 0.42.0-preview.0 → 0.42.0-preview.1

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-GFPE65Z3.js → chunk-47QC6PWE.js} +7 -7
  2. package/bundle/{chunk-CBWESCDG.js → chunk-5AFGMGVT.js} +7 -7
  3. package/bundle/{chunk-NOEPPT4R.js → chunk-5MQ5VMQK.js} +1 -1
  4. package/bundle/{chunk-6KCFSK2J.js → chunk-66C7JVNE.js} +2 -2
  5. package/bundle/{chunk-EW6BCPVC.js → chunk-6K3EFSDX.js} +1 -1
  6. package/bundle/{chunk-J3JE6HQX.js → chunk-7H3CQGS6.js} +1 -1
  7. package/bundle/{chunk-F7B6HX6S.js → chunk-7LOMS5HP.js} +2 -2
  8. package/bundle/{chunk-KILMJEVY.js → chunk-A3GDBSEI.js} +9 -8
  9. package/bundle/{chunk-NQ7WZMXX.js → chunk-A564QXJJ.js} +4 -5
  10. package/bundle/{chunk-M4GY7DCE.js → chunk-ARLWCFGI.js} +6834 -12733
  11. package/bundle/{chunk-VUENLVGO.js → chunk-AS4E6DX7.js} +3 -3
  12. package/bundle/{chunk-4LCWAZQL.js → chunk-BI5ZICGL.js} +1 -1
  13. package/bundle/{chunk-6QYD32J3.js → chunk-BUJZOWQ7.js} +9 -6
  14. package/bundle/chunk-BZZHETT5.js +512 -0
  15. package/bundle/{chunk-Y2QKRHXR.js → chunk-GZ4FSF4B.js} +2 -2
  16. package/bundle/{chunk-J6LCLN2Y.js → chunk-I5JMJ2LU.js} +1 -1
  17. package/bundle/chunk-IBIKJW2L.js +17230 -0
  18. package/bundle/{chunk-HSZC7H6N.js → chunk-KSNNZBTV.js} +2 -2
  19. package/bundle/{chunk-6BMBSK77.js → chunk-L6GBKGQX.js} +3 -3
  20. package/bundle/chunk-L7GACEVA.js +118 -0
  21. package/bundle/chunk-LCB7VVYS.js +356008 -0
  22. package/bundle/{chunk-WSLK3AUT.js → chunk-LK7LIPO6.js} +1 -1
  23. package/bundle/{chunk-CLT3IJGB.js → chunk-NHDN46IK.js} +1 -1
  24. package/bundle/chunk-OGZGOFAJ.js +1571 -0
  25. package/bundle/{chunk-N3W3RYXN.js → chunk-PBD26LJQ.js} +68 -55
  26. package/bundle/{chunk-IGYW5IPQ.js → chunk-QZ2JZRLK.js} +3 -4
  27. package/bundle/chunk-UKCYYERR.js +391 -0
  28. package/bundle/{chunk-ETRUTVTR.js → chunk-UVBJHP26.js} +1 -1
  29. package/bundle/{chunk-UO7OO22U.js → chunk-UZZVXATH.js} +1 -1
  30. package/bundle/chunk-VERP26KN.js +81544 -0
  31. package/bundle/{chunk-QMK75Y7E.js → chunk-WX6CHISQ.js} +2 -2
  32. package/bundle/chunk-YDSDSLSO.js +156 -0
  33. package/bundle/{cleanup-T2HYKF7I.js → cleanup-6PVHIK4C.js} +2 -2
  34. package/bundle/{cleanup-LH7RU457.js → cleanup-FRS7FPOS.js} +2 -2
  35. package/bundle/{cleanup-ZBHF7PUC.js → cleanup-NDTUQVOW.js} +3 -3
  36. package/bundle/cleanup-O4IDJYU2.js +33 -0
  37. package/bundle/{core-QH4PNJQ3.js → core-RZFMBCSX.js} +1 -1
  38. package/bundle/{devtoolsService-NXXQULSB.js → devtoolsService-6D355RSX.js} +2 -2
  39. package/bundle/{devtoolsService-NIEGPNPT.js → devtoolsService-7SBW23VD.js} +5 -4
  40. package/bundle/devtoolsService-SPV43SGI.js +857 -0
  41. package/bundle/{devtoolsService-USWJ4OCC.js → devtoolsService-WER5PRLG.js} +2 -2
  42. package/bundle/{dist-P6VZ5KI4.js → dist-7BJPFNU7.js} +1 -1
  43. package/bundle/{core-IIB5TH4W.js → dist-DTPIOJ3P.js} +2 -2
  44. package/bundle/dist-ZZ5HEQGP.js +2096 -0
  45. package/bundle/{gemini-H26TLDOV.js → gemini-3NXWUDHV.js} +13 -13
  46. package/bundle/{gemini-NFPXCHZM.js → gemini-GLORNPU2.js} +200 -186
  47. package/bundle/gemini-HCJBP42A.js +16256 -0
  48. package/bundle/{gemini-U45ZMNQE.js → gemini-KMMF6AK3.js} +13 -13
  49. package/bundle/gemini.js +7 -7
  50. package/bundle/{interactiveCli-AT7D6KM5.js → interactiveCli-5UVCH7FM.js} +8 -8
  51. package/bundle/{interactiveCli-MMM7Z6CJ.js → interactiveCli-BNDKNCVJ.js} +294 -276
  52. package/bundle/{interactiveCli-O6EFASZD.js → interactiveCli-HBRMSAIT.js} +8 -8
  53. package/bundle/interactiveCli-TWDP2H52.js +34505 -0
  54. package/bundle/{liteRtServerManager-G5EHBOWM.js → liteRtServerManager-3YA2HL46.js} +4 -4
  55. package/bundle/{liteRtServerManager-QB74ZF32.js → liteRtServerManager-BYQVAM6Y.js} +4 -4
  56. package/bundle/{liteRtServerManager-JCITNPUM.js → liteRtServerManager-IQHHDTUM.js} +5 -5
  57. package/bundle/liteRtServerManager-RTBP2SLV.js +66 -0
  58. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  59. package/bundle/{oauth2-provider-V6ROFUMU.js → oauth2-provider-C66JRVDQ.js} +1 -1
  60. package/bundle/{oauth2-provider-K5IZHYDJ.js → oauth2-provider-OAXWX3Z3.js} +39 -73
  61. package/bundle/{oauth2-provider-ZKX2USIN.js → oauth2-provider-TUVQXNLY.js} +1 -1
  62. package/bundle/oauth2-provider-ZPJOR5SG.js +237 -0
  63. package/bundle/{start-WILIWWLN.js → start-ELTWFVNO.js} +6 -6
  64. package/bundle/{start-B4GKBYKT.js → start-HHZI73VV.js} +7 -7
  65. package/bundle/start-NCMR7HOQ.js +19 -0
  66. package/bundle/{start-SW3EMEQ2.js → start-S3TEO5BN.js} +6 -6
  67. package/package.json +1 -1
@@ -4,10 +4,10 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-M4GY7DCE.js";
7
+ } from "./chunk-LCB7VVYS.js";
8
8
  import {
9
9
  Storage
10
- } from "./chunk-ECNYAST2.js";
10
+ } from "./chunk-JEW7ZIWE.js";
11
11
 
12
12
  // packages/cli/src/utils/cleanup.ts
13
13
  import { promises as fs } from "node:fs";
@@ -0,0 +1,156 @@
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
+ isTelemetrySdkInitialized,
5
+ resetBrowserSession,
6
+ shutdownTelemetry
7
+ } from "./chunk-A564QXJJ.js";
8
+ import {
9
+ Storage
10
+ } from "./chunk-JEW7ZIWE.js";
11
+
12
+ // packages/cli/src/utils/cleanup.ts
13
+ import { promises as fs } from "node:fs";
14
+ import { join } from "node:path";
15
+ var cleanupFunctions = [];
16
+ var syncCleanupFunctions = [];
17
+ var configForTelemetry = null;
18
+ var isShuttingDown = false;
19
+ function registerCleanup(fn) {
20
+ cleanupFunctions.push(fn);
21
+ }
22
+ function removeCleanup(fn) {
23
+ const index = cleanupFunctions.indexOf(fn);
24
+ if (index !== -1) {
25
+ cleanupFunctions.splice(index, 1);
26
+ }
27
+ }
28
+ function registerSyncCleanup(fn) {
29
+ syncCleanupFunctions.push(fn);
30
+ }
31
+ function removeSyncCleanup(fn) {
32
+ const index = syncCleanupFunctions.indexOf(fn);
33
+ if (index !== -1) {
34
+ syncCleanupFunctions.splice(index, 1);
35
+ }
36
+ }
37
+ function resetCleanupForTesting() {
38
+ cleanupFunctions.length = 0;
39
+ syncCleanupFunctions.length = 0;
40
+ configForTelemetry = null;
41
+ isShuttingDown = false;
42
+ }
43
+ function runSyncCleanup() {
44
+ for (const fn of syncCleanupFunctions) {
45
+ try {
46
+ fn();
47
+ } catch {
48
+ }
49
+ }
50
+ syncCleanupFunctions.length = 0;
51
+ }
52
+ function registerTelemetryConfig(config) {
53
+ configForTelemetry = config;
54
+ }
55
+ async function runExitCleanup() {
56
+ await drainStdin();
57
+ runSyncCleanup();
58
+ for (const fn of cleanupFunctions) {
59
+ try {
60
+ await fn();
61
+ } catch {
62
+ }
63
+ }
64
+ cleanupFunctions.length = 0;
65
+ try {
66
+ await resetBrowserSession();
67
+ } catch {
68
+ }
69
+ if (configForTelemetry) {
70
+ try {
71
+ await configForTelemetry.dispose();
72
+ } catch {
73
+ }
74
+ }
75
+ if (configForTelemetry && isTelemetrySdkInitialized()) {
76
+ try {
77
+ await shutdownTelemetry(configForTelemetry);
78
+ } catch {
79
+ }
80
+ }
81
+ }
82
+ async function drainStdin() {
83
+ if (!process.stdin?.isTTY) return;
84
+ process.stdin.resume().removeAllListeners("data").on("data", () => {
85
+ });
86
+ await new Promise((resolve) => setTimeout(resolve, 50));
87
+ }
88
+ async function gracefulShutdown(_reason) {
89
+ if (isShuttingDown) {
90
+ return;
91
+ }
92
+ isShuttingDown = true;
93
+ await runExitCleanup();
94
+ process.exit(ExitCodes.SUCCESS);
95
+ }
96
+ function setupSignalHandlers() {
97
+ process.on("SIGHUP", () => gracefulShutdown("SIGHUP"));
98
+ process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
99
+ process.on("SIGINT", () => gracefulShutdown("SIGINT"));
100
+ }
101
+ function setupTtyCheck() {
102
+ let intervalId = null;
103
+ let isCheckingTty = false;
104
+ intervalId = setInterval(async () => {
105
+ if (isCheckingTty || isShuttingDown) {
106
+ return;
107
+ }
108
+ if (process.env["SANDBOX"]) {
109
+ return;
110
+ }
111
+ if (!process.stdin.isTTY && !process.stdout.isTTY) {
112
+ isCheckingTty = true;
113
+ if (intervalId) {
114
+ clearInterval(intervalId);
115
+ intervalId = null;
116
+ }
117
+ await gracefulShutdown("TTY loss");
118
+ }
119
+ }, 5e3);
120
+ intervalId.unref();
121
+ return () => {
122
+ if (intervalId) {
123
+ clearInterval(intervalId);
124
+ intervalId = null;
125
+ }
126
+ };
127
+ }
128
+ async function cleanupCheckpoints() {
129
+ const storage = new Storage(process.cwd());
130
+ await storage.initialize();
131
+ const tempDir = storage.getProjectTempDir();
132
+ const checkpointsDir = join(tempDir, "checkpoints");
133
+ try {
134
+ await fs.rm(checkpointsDir, { recursive: true, force: true });
135
+ } catch {
136
+ }
137
+ }
138
+
139
+ export {
140
+ registerCleanup,
141
+ removeCleanup,
142
+ registerSyncCleanup,
143
+ removeSyncCleanup,
144
+ resetCleanupForTesting,
145
+ runSyncCleanup,
146
+ registerTelemetryConfig,
147
+ runExitCleanup,
148
+ setupSignalHandlers,
149
+ setupTtyCheck,
150
+ cleanupCheckpoints
151
+ };
152
+ /**
153
+ * @license
154
+ * Copyright 2025 Google LLC
155
+ * SPDX-License-Identifier: Apache-2.0
156
+ */
@@ -11,8 +11,8 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-EW6BCPVC.js";
15
- import "./chunk-IGYW5IPQ.js";
14
+ } from "./chunk-6K3EFSDX.js";
15
+ import "./chunk-QZ2JZRLK.js";
16
16
  import "./chunk-ECNYAST2.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
@@ -11,8 +11,8 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-ETRUTVTR.js";
15
- import "./chunk-NQ7WZMXX.js";
14
+ } from "./chunk-YDSDSLSO.js";
15
+ import "./chunk-A564QXJJ.js";
16
16
  import "./chunk-JEW7ZIWE.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
@@ -11,9 +11,9 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-QMK75Y7E.js";
15
- import "./chunk-M4GY7DCE.js";
16
- import "./chunk-ECNYAST2.js";
14
+ } from "./chunk-WX6CHISQ.js";
15
+ import "./chunk-LCB7VVYS.js";
16
+ import "./chunk-JEW7ZIWE.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
19
19
  import "./chunk-IUUIT4SU.js";
@@ -0,0 +1,33 @@
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-UVBJHP26.js";
15
+ import "./chunk-ARLWCFGI.js";
16
+ import "./chunk-JEW7ZIWE.js";
17
+ import "./chunk-664ZODQF.js";
18
+ import "./chunk-RJTRUG2J.js";
19
+ import "./chunk-IUUIT4SU.js";
20
+ import "./chunk-34MYV7JD.js";
21
+ export {
22
+ cleanupCheckpoints,
23
+ registerCleanup,
24
+ registerSyncCleanup,
25
+ registerTelemetryConfig,
26
+ removeCleanup,
27
+ removeSyncCleanup,
28
+ resetCleanupForTesting,
29
+ runExitCleanup,
30
+ runSyncCleanup,
31
+ setupSignalHandlers,
32
+ setupTtyCheck
33
+ };
@@ -787,7 +787,7 @@ import {
787
787
  wrapInAccountChooser,
788
788
  writeToStderr,
789
789
  writeToStdout
790
- } from "./chunk-IGYW5IPQ.js";
790
+ } from "./chunk-QZ2JZRLK.js";
791
791
  import {
792
792
  ACTIVATE_SKILL_TOOL_NAME,
793
793
  AGENT_TOOL_NAME,
@@ -1,5 +1,5 @@
1
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 "./chunk-NQ7WZMXX.js";
2
+ import "./chunk-LCB7VVYS.js";
3
3
  import {
4
4
  CoreEvent,
5
5
  coreEvents,
@@ -823,7 +823,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
823
823
  return;
824
824
  }
825
825
  try {
826
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-P6VZ5KI4.js");
826
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-DTPIOJ3P.js");
827
827
  const url = await startDevToolsServer(config);
828
828
  if (shouldLaunchBrowser()) {
829
829
  try {
@@ -1,9 +1,10 @@
1
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 "./chunk-M4GY7DCE.js";
2
+ import "./chunk-A564QXJJ.js";
3
3
  import {
4
+ CoreEvent,
4
5
  coreEvents,
5
6
  debugLogger
6
- } from "./chunk-ECNYAST2.js";
7
+ } from "./chunk-JEW7ZIWE.js";
7
8
  import {
8
9
  wrapper_default
9
10
  } from "./chunk-664ZODQF.js";
@@ -671,7 +672,7 @@ var bridgeAttached = false;
671
672
  function bridgeCoreEvents(capture) {
672
673
  if (bridgeAttached) return;
673
674
  bridgeAttached = true;
674
- coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
675
+ coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
675
676
  capture.logConsole(payload);
676
677
  });
677
678
  }
@@ -822,7 +823,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
822
823
  return;
823
824
  }
824
825
  try {
825
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-IIB5TH4W.js");
826
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-ZZ5HEQGP.js");
826
827
  const url = await startDevToolsServer(config);
827
828
  if (shouldLaunchBrowser()) {
828
829
  try {