@google/gemini-cli 0.61.0-preview.0 → 0.61.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-YJFCJUWN.js → chunk-34PFYALD.js} +1 -1
  2. package/bundle/{chunk-3KWHN3A7.js → chunk-4D7PRDBS.js} +1 -1
  3. package/bundle/{chunk-ZJHBR7W3.js → chunk-4YQFFXRN.js} +1 -1
  4. package/bundle/{chunk-OZG5CLDY.js → chunk-7HAUMOMS.js} +7 -7
  5. package/bundle/{chunk-FIYKTSCR.js → chunk-BFB2YEJY.js} +1 -1
  6. package/bundle/{chunk-AIMNGITH.js → chunk-BHKACUMI.js} +3 -3
  7. package/bundle/{chunk-WFZMFTEE.js → chunk-EM2O5AOZ.js} +3 -3
  8. package/bundle/{chunk-HGJ3LRCZ.js → chunk-EUZJSBKR.js} +1 -1
  9. package/bundle/{chunk-DO6WSZ5A.js → chunk-FSZD7V6N.js} +2 -2
  10. package/bundle/{chunk-DOJZLPDE.js → chunk-GOOJJ7ZQ.js} +1 -1
  11. package/bundle/{chunk-LDL5PSV7.js → chunk-H6SLDOAI.js} +2 -2
  12. package/bundle/{chunk-ACTC6X24.js → chunk-HDPU5WOJ.js} +291 -134
  13. package/bundle/{chunk-4WJNJ3DK.js → chunk-JKUZ4FYJ.js} +1 -1
  14. package/bundle/{chunk-ZOKIJ2CA.js → chunk-KXVODVLE.js} +67 -54
  15. package/bundle/{chunk-HQQJ2XNS.js → chunk-LZGP7KFI.js} +17 -2
  16. package/bundle/{chunk-UUSSUQWL.js → chunk-MNBKYFEY.js} +9 -8
  17. package/bundle/{chunk-XL4BRDNV.js → chunk-MXQQJJNZ.js} +7 -7
  18. package/bundle/{chunk-OANXWSAG.js → chunk-NQXTLK5U.js} +8027 -14705
  19. package/bundle/chunk-NXDIRTLT.js +512 -0
  20. package/bundle/{chunk-GLGFO33Y.js → chunk-O4KOWLVM.js} +17 -2
  21. package/bundle/chunk-OO7JC2QX.js +399635 -0
  22. package/bundle/{chunk-UCLFGIUA.js → chunk-OTWH6H2T.js} +2 -2
  23. package/bundle/{chunk-BCGPZKAR.js → chunk-PBNOO4UX.js} +1 -1
  24. package/bundle/{chunk-6HVPDYWM.js → chunk-SABJGE2G.js} +3 -3
  25. package/bundle/chunk-TFQNPQHU.js +154 -0
  26. package/bundle/{chunk-KUWKDEHW.js → chunk-UEKG6P2N.js} +24 -6
  27. package/bundle/chunk-UST2ZL7P.js +1571 -0
  28. package/bundle/chunk-VSZD56FP.js +102678 -0
  29. package/bundle/{chunk-FH2AJT7C.js → chunk-X63OLHR4.js} +325 -136
  30. package/bundle/chunk-YD7YFB3H.js +398 -0
  31. package/bundle/chunk-ZAUQFML4.js +118 -0
  32. package/bundle/chunk-ZXK7SZMG.js +17368 -0
  33. package/bundle/{cleanup-AM5TUWBB.js → cleanup-DGDWVDXX.js} +2 -2
  34. package/bundle/{cleanup-FLPPBDLV.js → cleanup-ILJI4AEW.js} +2 -2
  35. package/bundle/{cleanup-KI735Y45.js → cleanup-QW4EQ3QR.js} +2 -2
  36. package/bundle/cleanup-R6YFTONK.js +32 -0
  37. package/bundle/{core-R7CF7CQD.js → core-HFCJBVEU.js} +17 -1
  38. package/bundle/{devtoolsService-MA34M6Q7.js → devtoolsService-KXJDH42U.js} +2 -2
  39. package/bundle/{devtoolsService-UUGXHVTK.js → devtoolsService-LWSF6JIT.js} +2 -2
  40. package/bundle/{devtoolsService-WOA7VJLA.js → devtoolsService-N3A5BSJN.js} +4 -3
  41. package/bundle/devtoolsService-N4LL6WGD.js +4359 -0
  42. package/bundle/{dist-VH7RJCTA.js → dist-2BSGBE32.js} +17 -1
  43. package/bundle/{core-F6IWXMFD.js → dist-6YQ35ICZ.js} +17 -1
  44. package/bundle/dist-C4IKSTQN.js +2232 -0
  45. package/bundle/docs/reference/configuration.md +88 -25
  46. package/bundle/{gemini-SRSLV7D2.js → gemini-5UNXMZT3.js} +219 -201
  47. package/bundle/gemini-ATQ3WGVL.js +17764 -0
  48. package/bundle/{gemini-NLU2EPRF.js → gemini-G7D5KPQ2.js} +18 -16
  49. package/bundle/{gemini-N24ID3HC.js → gemini-RWMUQAJ6.js} +18 -16
  50. package/bundle/gemini.js +7 -7
  51. package/bundle/{interactiveCli-SOMGNC7U.js → interactiveCli-EAB7PSHJ.js} +19 -14
  52. package/bundle/{interactiveCli-DDJZ4B26.js → interactiveCli-JYJNFC5D.js} +326 -302
  53. package/bundle/interactiveCli-KQPTYHND.js +35029 -0
  54. package/bundle/{interactiveCli-PNXXOFIE.js → interactiveCli-WC6IXMOE.js} +19 -14
  55. package/bundle/{liteRtServerManager-HDIBGLHN.js → liteRtServerManager-27LLIZ3H.js} +4 -4
  56. package/bundle/{liteRtServerManager-XEOODEAA.js → liteRtServerManager-HB6JSWYM.js} +4 -4
  57. package/bundle/{liteRtServerManager-GW22Q7F4.js → liteRtServerManager-NSPOA7KV.js} +4 -4
  58. package/bundle/liteRtServerManager-WXCFUD52.js +65 -0
  59. package/bundle/{oauth2-provider-ZC45IIOS.js → oauth2-provider-5CXK7KFQ.js} +1 -1
  60. package/bundle/{oauth2-provider-SADAKLZ2.js → oauth2-provider-FYIOQREN.js} +1 -1
  61. package/bundle/{oauth2-provider-347DWYC5.js → oauth2-provider-N7JBWITO.js} +38 -72
  62. package/bundle/oauth2-provider-Z7WSYKBF.js +235 -0
  63. package/bundle/{start-IVH46CBG.js → start-4CI64D6Q.js} +6 -6
  64. package/bundle/{start-PRP35I6V.js → start-MHS6EQUA.js} +6 -6
  65. package/bundle/{start-H7F3LFFN.js → start-OO24SR5D.js} +6 -6
  66. package/bundle/start-WRVCTB7Z.js +18 -0
  67. package/package.json +1 -1
@@ -1,13 +1,13 @@
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
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-DOJZLPDE.js";
4
+ } from "./chunk-PBNOO4UX.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-FH2AJT7C.js";
10
+ } from "./chunk-X63OLHR4.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-ACTC6X24.js";
8
+ } from "./chunk-X63OLHR4.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  exitCli,
4
4
  require_source
5
- } from "./chunk-HGJ3LRCZ.js";
5
+ } from "./chunk-UST2ZL7P.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-GLGFO33Y.js";
17
+ } from "./chunk-ZXK7SZMG.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-FH2AJT7C.js";
20
+ } from "./chunk-OO7JC2QX.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -0,0 +1,154 @@
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-HDPU5WOJ.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,6 +1,9 @@
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
2
  import {
3
3
  AuthProviderType,
4
+ AuthType,
5
+ CoreEvent,
6
+ CoreToolCallStatus,
4
7
  DEFAULT_MODEL_CONFIGS,
5
8
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
6
9
  EDITOR_OPTIONS,
@@ -30,7 +33,7 @@ import {
30
33
  partListUnionToString,
31
34
  require_strip_json_comments,
32
35
  sanitizeFilenamePart
33
- } from "./chunk-OANXWSAG.js";
36
+ } from "./chunk-NQXTLK5U.js";
34
37
  import {
35
38
  __commonJS,
36
39
  __require,
@@ -10227,7 +10230,7 @@ function convertSessionToHistoryFormats(messages) {
10227
10230
  args: tool.args,
10228
10231
  description: tool.description || "",
10229
10232
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10230
- status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10233
+ status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10231
10234
  resultDisplay: tool.resultDisplay,
10232
10235
  confirmationDetails: void 0
10233
10236
  }))
@@ -15569,7 +15572,22 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
15569
15572
  type: "object",
15570
15573
  properties: {
15571
15574
  useGemini3_1: { type: "boolean" },
15572
- useGemini3_1FlashLite: { type: "boolean" },
15575
+ useLatestFlash: {
15576
+ type: "boolean",
15577
+ description: "Whether the latest GA Flash model (Gemini 3.8 Flash) is launched and active."
15578
+ },
15579
+ useLatestFlashLite: {
15580
+ type: "boolean",
15581
+ description: "Whether the latest GA Flash Lite model (Gemini 3.5 Flash Lite) is launched and active."
15582
+ },
15583
+ useGemini3_5Flash: {
15584
+ type: "boolean",
15585
+ description: "Deprecated alias for useLatestFlash."
15586
+ },
15587
+ useGemini3_1FlashLite: {
15588
+ type: "boolean",
15589
+ description: "Deprecated alias for useLatestFlashLite."
15590
+ },
15573
15591
  useCustomTools: { type: "boolean" },
15574
15592
  hasAccessToPreview: { type: "boolean" },
15575
15593
  requestedModels: {
@@ -16291,8 +16309,8 @@ var LoadedSettings = class {
16291
16309
  // React will pass a listener fn into this subscribe fn
16292
16310
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16293
16311
  subscribe(listener) {
16294
- coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16295
- return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16312
+ coreEvents.on(CoreEvent.SettingsChanged, listener);
16313
+ return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16296
16314
  }
16297
16315
  getSnapshot() {
16298
16316
  return this._snapshot;
@@ -16436,7 +16454,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
16436
16454
  }
16437
16455
  }
16438
16456
  let value = "cloudshell-gca";
16439
- if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
16457
+ if (selectedAuthType === AuthType.USE_VERTEX_AI) {
16440
16458
  value = process2.env[USER_GCP_PROJECT];
16441
16459
  }
16442
16460
  if (envFilePath && fs4.existsSync(envFilePath)) {