@google/gemini-cli 0.61.0-preview.0 → 0.62.0-nightly.20260917.g6a466a7e2

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 (69) hide show
  1. package/bundle/{chunk-HQQJ2XNS.js → chunk-2TMMVNOE.js} +1 -1
  2. package/bundle/{chunk-YJFCJUWN.js → chunk-3ZF5XZOW.js} +1 -1
  3. package/bundle/{chunk-UUSSUQWL.js → chunk-5WSRRFVH.js} +9 -8
  4. package/bundle/{chunk-KUWKDEHW.js → chunk-6MRHUUCE.js} +8 -5
  5. package/bundle/{chunk-AIMNGITH.js → chunk-A2H7KTL6.js} +3 -3
  6. package/bundle/{chunk-3KWHN3A7.js → chunk-A7UWNGLN.js} +1 -1
  7. package/bundle/{chunk-GLGFO33Y.js → chunk-CITNSBTB.js} +1 -1
  8. package/bundle/{chunk-DO6WSZ5A.js → chunk-CLN3AE74.js} +2 -2
  9. package/bundle/chunk-D6CZRIXL.js +512 -0
  10. package/bundle/{chunk-WFZMFTEE.js → chunk-DZD5OCWY.js} +3 -3
  11. package/bundle/{chunk-LDL5PSV7.js → chunk-E7PZYN2A.js} +2 -2
  12. package/bundle/chunk-FQQZQKPJ.js +17353 -0
  13. package/bundle/{chunk-FIYKTSCR.js → chunk-GDZZYEDB.js} +1 -1
  14. package/bundle/{chunk-DOJZLPDE.js → chunk-GGPWDDFF.js} +1 -1
  15. package/bundle/{chunk-4WJNJ3DK.js → chunk-HDSCCQMH.js} +1 -1
  16. package/bundle/{chunk-ACTC6X24.js → chunk-K3NKSX2H.js} +94 -20
  17. package/bundle/{chunk-6HVPDYWM.js → chunk-K4AORAJT.js} +3 -3
  18. package/bundle/chunk-KEX2M7LY.js +118 -0
  19. package/bundle/{chunk-OANXWSAG.js → chunk-LCP6W7OE.js} +7849 -14610
  20. package/bundle/{chunk-HGJ3LRCZ.js → chunk-LRE7RNQM.js} +1 -1
  21. package/bundle/{chunk-FH2AJT7C.js → chunk-NSC3QBEC.js} +110 -20
  22. package/bundle/{chunk-BCGPZKAR.js → chunk-OGTVBT3K.js} +1 -1
  23. package/bundle/chunk-OKRWB4BV.js +154 -0
  24. package/bundle/chunk-OOQPFL3D.js +1571 -0
  25. package/bundle/{chunk-OZG5CLDY.js → chunk-R2NSHNMX.js} +7 -7
  26. package/bundle/chunk-RWMOTXNW.js +399552 -0
  27. package/bundle/{chunk-UCLFGIUA.js → chunk-SEUCOV6F.js} +2 -2
  28. package/bundle/{chunk-XL4BRDNV.js → chunk-UUUOULJ2.js} +7 -7
  29. package/bundle/chunk-VJTRCRRE.js +398 -0
  30. package/bundle/{chunk-ZOKIJ2CA.js → chunk-VRV77ZWV.js} +67 -54
  31. package/bundle/{chunk-ZJHBR7W3.js → chunk-XQ7FVW42.js} +1 -1
  32. package/bundle/chunk-ZSPN4JUH.js +102678 -0
  33. package/bundle/{cleanup-AM5TUWBB.js → cleanup-BQVBD7FP.js} +2 -2
  34. package/bundle/{cleanup-FLPPBDLV.js → cleanup-DIILMXEW.js} +2 -2
  35. package/bundle/{cleanup-KI735Y45.js → cleanup-HEOQHGM6.js} +2 -2
  36. package/bundle/cleanup-TFF46WPZ.js +32 -0
  37. package/bundle/{core-R7CF7CQD.js → core-4DHKTWZ2.js} +7 -1
  38. package/bundle/{devtoolsService-UUGXHVTK.js → devtoolsService-3RY5PM2Z.js} +2 -2
  39. package/bundle/{devtoolsService-WOA7VJLA.js → devtoolsService-DNJNJQZM.js} +4 -3
  40. package/bundle/{devtoolsService-MA34M6Q7.js → devtoolsService-QJHOMSYF.js} +2 -2
  41. package/bundle/devtoolsService-ZIP35XF5.js +4359 -0
  42. package/bundle/{dist-VH7RJCTA.js → dist-56CPDJ4S.js} +7 -1
  43. package/bundle/{core-F6IWXMFD.js → dist-7FYHIT6B.js} +7 -1
  44. package/bundle/dist-ZH5RL5SW.js +2222 -0
  45. package/bundle/docs/changelogs/index.md +14 -0
  46. package/bundle/docs/changelogs/latest.md +55 -21
  47. package/bundle/docs/changelogs/preview.md +30 -54
  48. package/bundle/{gemini-N24ID3HC.js → gemini-4CJ3SSKF.js} +18 -17
  49. package/bundle/{gemini-SRSLV7D2.js → gemini-DK47V65B.js} +218 -201
  50. package/bundle/{gemini-NLU2EPRF.js → gemini-DLBDVVA3.js} +18 -17
  51. package/bundle/gemini-WEMSASPO.js +17763 -0
  52. package/bundle/gemini.js +7 -7
  53. package/bundle/{interactiveCli-SOMGNC7U.js → interactiveCli-4PM25PCZ.js} +8 -8
  54. package/bundle/{interactiveCli-DDJZ4B26.js → interactiveCli-HQILQ7YP.js} +315 -296
  55. package/bundle/interactiveCli-LHN6WWUZ.js +35024 -0
  56. package/bundle/{interactiveCli-PNXXOFIE.js → interactiveCli-TUXEPH5P.js} +8 -8
  57. package/bundle/{liteRtServerManager-HDIBGLHN.js → liteRtServerManager-D62XYX4N.js} +4 -4
  58. package/bundle/{liteRtServerManager-XEOODEAA.js → liteRtServerManager-ISZAREVH.js} +4 -4
  59. package/bundle/{liteRtServerManager-GW22Q7F4.js → liteRtServerManager-SNXJPNND.js} +4 -4
  60. package/bundle/liteRtServerManager-WIM3YWCR.js +65 -0
  61. package/bundle/{oauth2-provider-SADAKLZ2.js → oauth2-provider-5EU7U6FM.js} +1 -1
  62. package/bundle/{oauth2-provider-ZC45IIOS.js → oauth2-provider-6C2WVQI4.js} +1 -1
  63. package/bundle/{oauth2-provider-347DWYC5.js → oauth2-provider-NKYLHBYL.js} +38 -72
  64. package/bundle/oauth2-provider-OHYS7A6V.js +235 -0
  65. package/bundle/{start-IVH46CBG.js → start-6IM4YLMK.js} +6 -6
  66. package/bundle/{start-PRP35I6V.js → start-7YML3ZO4.js} +6 -6
  67. package/bundle/{start-H7F3LFFN.js → start-JJUNWR7U.js} +6 -6
  68. package/bundle/start-JMS3GDG2.js +18 -0
  69. package/package.json +1 -1
@@ -1,7 +1,7 @@
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-OKRWB4BV.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -274867,6 +274867,87 @@ function isMcpToolAnnotation(annotation) {
274867
274867
  const serverName = record2["_serverName"];
274868
274868
  return typeof serverName === "string";
274869
274869
  }
274870
+ var CONVERSATIONAL_PARAM_KEYS = /* @__PURE__ */ new Set([
274871
+ "description",
274872
+ "explanation",
274873
+ "reason",
274874
+ "thought"
274875
+ ]);
274876
+ function formatParamValue(value) {
274877
+ if (value === null || value === void 0) {
274878
+ return String(value);
274879
+ }
274880
+ if (typeof value === "string") {
274881
+ return value;
274882
+ }
274883
+ if (typeof value === "number" || typeof value === "boolean" || typeof value === "bigint") {
274884
+ return String(value);
274885
+ }
274886
+ if (Array.isArray(value)) {
274887
+ return `[${value.map(formatParamValue).join(", ")}]`;
274888
+ }
274889
+ if (typeof value === "object") {
274890
+ const entries = Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => `${k}: ${formatParamValue(v)}`);
274891
+ return `(${entries.join(", ")})`;
274892
+ }
274893
+ return String(value);
274894
+ }
274895
+ function formatToolDescription(toolName, fallbackDisplayName, params) {
274896
+ const functionalEntries = Object.entries(params).filter(
274897
+ ([key, val]) => !CONVERSATIONAL_PARAM_KEYS.has(key.toLowerCase()) && val !== void 0
274898
+ );
274899
+ const command = params["command"];
274900
+ if (typeof command === "string" && functionalEntries.length === 1 && functionalEntries[0]?.[0] === "command") {
274901
+ return command;
274902
+ }
274903
+ if (functionalEntries.length === 0) {
274904
+ return fallbackDisplayName || toolName;
274905
+ }
274906
+ const formattedArgs = functionalEntries.map(([key, val]) => `${key}: ${formatParamValue(val)}`).join(", ");
274907
+ return `${toolName}(${formattedArgs})`;
274908
+ }
274909
+ function formatToolDisplayTitle(toolName, fallbackDisplayName, params) {
274910
+ const command = params["command"];
274911
+ if (typeof command === "string" && command.trim().length > 0) {
274912
+ return command;
274913
+ }
274914
+ return formatToolDescription(toolName, fallbackDisplayName, params);
274915
+ }
274916
+ function extractToolExplanation(params) {
274917
+ const MAX_EXPLANATION_LENGTH = 500;
274918
+ const parts2 = [];
274919
+ const command = params["command"];
274920
+ const hasCommand = typeof command === "string" && command.trim().length > 0;
274921
+ if (hasCommand) {
274922
+ const contextEntries = Object.entries(params).filter(
274923
+ ([key, val]) => key !== "command" && !CONVERSATIONAL_PARAM_KEYS.has(key.toLowerCase()) && val !== void 0
274924
+ );
274925
+ if (contextEntries.length > 0) {
274926
+ const formattedContext = contextEntries.map(([key, val]) => `${key}: ${formatParamValue(val)}`).join(", ");
274927
+ if (formattedContext.length > MAX_EXPLANATION_LENGTH) {
274928
+ const keys = Object.keys(params);
274929
+ const displayedKeys = keys.slice(0, 5);
274930
+ const keysDesc = displayedKeys.length > 0 ? ` with parameters: ${displayedKeys.join(", ")}${keys.length > 5 ? ", ..." : ""}` : "";
274931
+ parts2.push(`[Payload omitted due to length${keysDesc}]`);
274932
+ } else {
274933
+ parts2.push(`[${formattedContext}]`);
274934
+ }
274935
+ }
274936
+ }
274937
+ for (const [key, val] of Object.entries(params)) {
274938
+ if (CONVERSATIONAL_PARAM_KEYS.has(key.toLowerCase()) && typeof val === "string" && val.trim().length > 0) {
274939
+ parts2.push(val.trim());
274940
+ }
274941
+ }
274942
+ if (parts2.length === 0) {
274943
+ return "";
274944
+ }
274945
+ const combined = parts2.join(" ");
274946
+ if (combined.length > MAX_EXPLANATION_LENGTH) {
274947
+ return `${combined.slice(0, MAX_EXPLANATION_LENGTH)}...`;
274948
+ }
274949
+ return combined;
274950
+ }
274870
274951
  var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends BaseToolInvocation {
274871
274952
  constructor(mcpTool, serverName, serverToolName, displayName, messageBus, trust, params = {}, cliConfig, toolDescription, toolParameterSchema, toolAnnotationsData) {
274872
274953
  super(
@@ -274999,25 +275080,21 @@ var DiscoveredMCPToolInvocation = class _DiscoveredMCPToolInvocation extends Bas
274999
275080
  };
275000
275081
  }
275001
275082
  getDescription() {
275002
- return safeJsonStringify(this.params);
275083
+ return formatToolDescription(
275084
+ this.serverToolName,
275085
+ this.displayName,
275086
+ this.params
275087
+ );
275003
275088
  }
275004
275089
  getDisplayTitle() {
275005
- const command = this.params["command"];
275006
- if (typeof command === "string") {
275007
- return command;
275008
- }
275009
- return this.displayName || this.serverToolName;
275090
+ return formatToolDisplayTitle(
275091
+ this.serverToolName,
275092
+ this.displayName,
275093
+ this.params
275094
+ );
275010
275095
  }
275011
275096
  getExplanation() {
275012
- const MAX_EXPLANATION_LENGTH = 500;
275013
- const stringified = safeJsonStringify(this.params);
275014
- if (stringified.length > MAX_EXPLANATION_LENGTH) {
275015
- const keys = Object.keys(this.params);
275016
- const displayedKeys = keys.slice(0, 5);
275017
- const keysDesc = displayedKeys.length > 0 ? ` with parameters: ${displayedKeys.join(", ")}${keys.length > 5 ? ", ..." : ""}` : "";
275018
- return `[Payload omitted due to length${keysDesc}]`;
275019
- }
275020
- return stringified;
275097
+ return extractToolExplanation(this.params);
275021
275098
  }
275022
275099
  };
275023
275100
  var DiscoveredMCPTool = class extends BaseDeclarativeTool {
@@ -283525,8 +283602,8 @@ function isValidToolName(name3, options = {}) {
283525
283602
  }
283526
283603
 
283527
283604
  // packages/core/src/generated/git-commit.ts
283528
- var GIT_COMMIT_INFO = "ae28844fb";
283529
- var CLI_VERSION = "0.61.0-preview.0";
283605
+ var GIT_COMMIT_INFO = "6a466a7e2";
283606
+ var CLI_VERSION = "0.62.0-nightly.20260915.gae28844fb";
283530
283607
 
283531
283608
  // packages/core/src/ide/detect-ide.ts
283532
283609
  var IDE_DEFINITIONS = {
@@ -307146,7 +307223,7 @@ function getVersion() {
307146
307223
  }
307147
307224
  versionPromise = (async () => {
307148
307225
  const pkgJson = await getPackageJson(__dirname4);
307149
- return "0.61.0-preview.0";
307226
+ return "0.62.0-nightly.20260915.gae28844fb";
307150
307227
  })();
307151
307228
  return versionPromise;
307152
307229
  }
@@ -313649,7 +313726,17 @@ var DiscoveredToolInvocation = class extends BaseToolInvocation {
313649
313726
  this.originalToolName = originalToolName;
313650
313727
  }
313651
313728
  getDescription() {
313652
- return safeJsonStringify(this.params);
313729
+ return formatToolDescription(this.originalToolName, void 0, this.params);
313730
+ }
313731
+ getDisplayTitle() {
313732
+ return formatToolDisplayTitle(
313733
+ this.originalToolName,
313734
+ void 0,
313735
+ this.params
313736
+ );
313737
+ }
313738
+ getExplanation() {
313739
+ return extractToolExplanation(this.params);
313653
313740
  }
313654
313741
  async execute({
313655
313742
  abortSignal: _signal,
@@ -342859,7 +342946,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
342859
342946
  return provider;
342860
342947
  }
342861
342948
  case "oauth2": {
342862
- const { OAuth2AuthProvider } = await import("./oauth2-provider-347DWYC5.js");
342949
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-6C2WVQI4.js");
342863
342950
  const provider = new OAuth2AuthProvider(
342864
342951
  authConfig,
342865
342952
  options.agentName ?? "unknown",
@@ -404730,6 +404817,9 @@ export {
404730
404817
  parseMcpToolName,
404731
404818
  formatMcpToolName,
404732
404819
  isMcpToolAnnotation,
404820
+ formatToolDescription,
404821
+ formatToolDisplayTitle,
404822
+ extractToolExplanation,
404733
404823
  DiscoveredMCPToolInvocation,
404734
404824
  DiscoveredMCPTool,
404735
404825
  generateValidName,
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-ACTC6X24.js";
8
+ } from "./chunk-K3NKSX2H.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -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-LCP6W7OE.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
+ */