@google/gemini-cli 0.35.0-preview.1 → 0.35.0-preview.3

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 (31) hide show
  1. package/bundle/{chunk-7JZWJYL2.js → chunk-5SBB3P4L.js} +4 -4
  2. package/bundle/{chunk-RIKAIXXN.js → chunk-BSHOJUT2.js} +7 -11
  3. package/bundle/{chunk-OK6A2T3J.js → chunk-C2LINL7G.js} +14 -12
  4. package/bundle/{chunk-OVO7PV7Z.js → chunk-GGMTXEJO.js} +7 -11
  5. package/bundle/{chunk-J7ZVHCWL.js → chunk-HC2FCDHO.js} +70 -58
  6. package/bundle/{chunk-FKGF3664.js → chunk-L5MOJUPU.js} +5316 -9979
  7. package/bundle/{chunk-FIQWQZVG.js → chunk-QO53VEHI.js} +15 -12
  8. package/bundle/{chunk-DHZSW3D5.js → chunk-UMBTJI7I.js} +4 -4
  9. package/bundle/chunk-UXRMEIL2.js +92840 -0
  10. package/bundle/chunk-YTK7AJUV.js +325889 -0
  11. package/bundle/{core-OSNLJAKB.js → core-LTXVJI4H.js} +2 -2
  12. package/bundle/{devtoolsService-UPY6AYM7.js → devtoolsService-442KPRIR.js} +3 -3
  13. package/bundle/{devtoolsService-YJFR2ZTU.js → devtoolsService-R5JE4MLS.js} +3 -3
  14. package/bundle/{devtoolsService-CH2PM4E2.js → devtoolsService-WKGY5DWT.js} +5 -4
  15. package/bundle/devtoolsService-WNWR6HYK.js +855 -0
  16. package/bundle/{core-YBLRHI5E.js → dist-56D2FMJJ.js} +2 -2
  17. package/bundle/{dist-PQCTLJ67.js → dist-GL2LLCWF.js} +2 -2
  18. package/bundle/dist-PMCRGIU3.js +1781 -0
  19. package/bundle/gemini.js +7 -7
  20. package/bundle/{interactiveCli-SIJB4G3Q.js → interactiveCli-6Z6IFUTV.js} +4 -4
  21. package/bundle/{interactiveCli-AKIKCHLF.js → interactiveCli-7XKQ7W7K.js} +239 -222
  22. package/bundle/{interactiveCli-3JVKXF42.js → interactiveCli-PZEQS2Z6.js} +4 -4
  23. package/bundle/interactiveCli-ZWXGL7LQ.js +48702 -0
  24. package/bundle/{memoryDiscovery-2RH76CMO.js → memoryDiscovery-7LUUOJNM.js} +1 -1
  25. package/bundle/{memoryDiscovery-P6SEGMWA.js → memoryDiscovery-RRX6QF4Y.js} +1 -1
  26. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  27. package/bundle/{oauth2-provider-ZZIJ6OXB.js → oauth2-provider-32N4SW2N.js} +2 -2
  28. package/bundle/{oauth2-provider-G4RXUPFH.js → oauth2-provider-7CBBPEZS.js} +2 -2
  29. package/bundle/{oauth2-provider-N6KBVMX3.js → oauth2-provider-L2WMQ3QS.js} +39 -73
  30. package/bundle/oauth2-provider-V2ZMYLUK.js +238 -0
  31. package/package.json +1 -1
@@ -161,7 +161,7 @@ import {
161
161
  tokenLimit,
162
162
  uiTelemetryService,
163
163
  yellowBright
164
- } from "./chunk-RIKAIXXN.js";
164
+ } from "./chunk-YTK7AJUV.js";
165
165
  import {
166
166
  require_undici
167
167
  } from "./chunk-37ZTTFQF.js";
@@ -193,7 +193,7 @@ import {
193
193
  shortenPath,
194
194
  tildeifyPath,
195
195
  unescapePath
196
- } from "./chunk-OK6A2T3J.js";
196
+ } from "./chunk-C2LINL7G.js";
197
197
  import {
198
198
  __commonJS,
199
199
  __export,
@@ -82775,7 +82775,7 @@ var authCommand = {
82775
82775
  import process29 from "node:process";
82776
82776
 
82777
82777
  // packages/cli/src/generated/git-commit.ts
82778
- var GIT_COMMIT_INFO = "4b4794ad2";
82778
+ var GIT_COMMIT_INFO = "d1de82c46";
82779
82779
 
82780
82780
  // packages/cli/src/ui/utils/historyExportUtils.ts
82781
82781
  import * as fsPromises2 from "node:fs/promises";
@@ -88108,7 +88108,7 @@ Use /mcp auth <server-name> to authenticate.`
88108
88108
  type: "info",
88109
88109
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
88110
88110
  });
88111
- const { MCPOAuthProvider } = await import("./dist-PQCTLJ67.js");
88111
+ const { MCPOAuthProvider } = await import("./dist-56D2FMJJ.js");
88112
88112
  let oauthConfig = server.oauth;
88113
88113
  if (!oauthConfig) {
88114
88114
  oauthConfig = { enabled: false };
@@ -190,7 +190,7 @@ import {
190
190
  toFriendlyError,
191
191
  unescapePath,
192
192
  zodToJsonSchema
193
- } from "./chunk-OK6A2T3J.js";
193
+ } from "./chunk-C2LINL7G.js";
194
194
  import {
195
195
  require_dist,
196
196
  require_src
@@ -218180,8 +218180,8 @@ var Float64Vector = import_vector.default.Float64Vector;
218180
218180
  var PointerVector = import_vector.default.PointerVector;
218181
218181
 
218182
218182
  // packages/core/dist/src/generated/git-commit.js
218183
- var GIT_COMMIT_INFO = "2f90b4653";
218184
- var CLI_VERSION = "0.35.0-preview.1";
218183
+ var GIT_COMMIT_INFO = "d1de82c46";
218184
+ var CLI_VERSION = "0.35.0-preview.3";
218185
218185
 
218186
218186
  // packages/core/dist/src/ide/detect-ide.js
218187
218187
  var IDE_DEFINITIONS = {
@@ -225986,11 +225986,7 @@ function normalizeCommandName(raw) {
225986
225986
  return raw.slice(1, -1);
225987
225987
  }
225988
225988
  }
225989
- const trimmed2 = raw.trim();
225990
- if (!trimmed2) {
225991
- return trimmed2;
225992
- }
225993
- return trimmed2.split(/[\\/]/).pop() ?? trimmed2;
225989
+ return raw.trim();
225994
225990
  }
225995
225991
  function extractNameFromNode(node) {
225996
225992
  switch (node.type) {
@@ -251277,7 +251273,7 @@ function getVersion() {
251277
251273
  }
251278
251274
  versionPromise = (async () => {
251279
251275
  const pkgJson = await getPackageJson(__dirname3);
251280
- return "0.35.0-preview.1";
251276
+ return "0.35.0-preview.3";
251281
251277
  })();
251282
251278
  return versionPromise;
251283
251279
  }
@@ -309295,7 +309291,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
309295
309291
  return provider;
309296
309292
  }
309297
309293
  case "oauth2": {
309298
- const { OAuth2AuthProvider } = await import("./oauth2-provider-ZZIJ6OXB.js");
309294
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-32N4SW2N.js");
309299
309295
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
309300
309296
  await provider.initialize();
309301
309297
  return provider;
@@ -320141,7 +320137,7 @@ var Config = class {
320141
320137
  if (this.experimentalJitContext && this.contextManager) {
320142
320138
  await this.contextManager.refresh();
320143
320139
  } else {
320144
- const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-2RH76CMO.js");
320140
+ const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-7LUUOJNM.js");
320145
320141
  await refreshServerHierarchicalMemory2(this);
320146
320142
  }
320147
320143
  if (this._geminiClient?.isInitialized()) {
@@ -21271,7 +21271,7 @@ var require_filesubjecttokensupplier = __commonJS({
21271
21271
  }));
21272
21272
  var realpath2 = (0, util_1.promisify)(fs11.realpath ?? (() => {
21273
21273
  }));
21274
- var lstat3 = (0, util_1.promisify)(fs11.lstat ?? (() => {
21274
+ var lstat2 = (0, util_1.promisify)(fs11.lstat ?? (() => {
21275
21275
  }));
21276
21276
  var FileSubjectTokenSupplier = class {
21277
21277
  filePath;
@@ -21297,7 +21297,7 @@ var require_filesubjecttokensupplier = __commonJS({
21297
21297
  let parsedFilePath = this.filePath;
21298
21298
  try {
21299
21299
  parsedFilePath = await realpath2(parsedFilePath);
21300
- if (!(await lstat3(parsedFilePath)).isFile()) {
21300
+ if (!(await lstat2(parsedFilePath)).isFile()) {
21301
21301
  throw new Error();
21302
21302
  }
21303
21303
  } catch (err) {
@@ -51274,10 +51274,8 @@ async function findProjectRoot2(startDir) {
51274
51274
  while (true) {
51275
51275
  const gitPath = path9.join(currentDir, ".git");
51276
51276
  try {
51277
- const stats = await fs10.lstat(gitPath);
51278
- if (stats.isDirectory()) {
51279
- return currentDir;
51280
- }
51277
+ await fs10.access(gitPath);
51278
+ return currentDir;
51281
51279
  } catch (error) {
51282
51280
  const isENOENT = typeof error === "object" && error !== null && "code" in error && // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
51283
51281
  error.code === "ENOENT";
@@ -51285,9 +51283,9 @@ async function findProjectRoot2(startDir) {
51285
51283
  if (!isENOENT && !isTestEnv) {
51286
51284
  if (typeof error === "object" && error !== null && "code" in error) {
51287
51285
  const fsError = error;
51288
- logger3.warn(`Error checking for .git directory at ${gitPath}: ${fsError.message}`);
51286
+ logger3.warn(`Error checking for .git at ${gitPath}: ${fsError.message}`);
51289
51287
  } else {
51290
- logger3.warn(`Non-standard error checking for .git directory at ${gitPath}: ${String(error)}`);
51288
+ logger3.warn(`Non-standard error checking for .git at ${gitPath}: ${String(error)}`);
51291
51289
  }
51292
51290
  }
51293
51291
  }
@@ -51457,8 +51455,10 @@ async function getEnvironmentMemoryPaths(trustedRoots) {
51457
51455
  const allPaths = /* @__PURE__ */ new Set();
51458
51456
  const traversalPromises = trustedRoots.map(async (root) => {
51459
51457
  const resolvedRoot = normalizePath(root);
51460
- debugLogger.debug("[DEBUG] [MemoryDiscovery] Loading environment memory for trusted root:", resolvedRoot, "(Stopping exactly here)");
51461
- return findUpwardGeminiFiles(resolvedRoot, resolvedRoot);
51458
+ const gitRoot = await findProjectRoot2(resolvedRoot);
51459
+ const ceiling = gitRoot ? normalizePath(gitRoot) : resolvedRoot;
51460
+ debugLogger.debug("[DEBUG] [MemoryDiscovery] Loading environment memory for trusted root:", resolvedRoot, "(Stopping at", gitRoot ? `git root: ${ceiling})` : `trusted root: ${ceiling} \u2014 no git root found)`);
51461
+ return findUpwardGeminiFiles(resolvedRoot, ceiling);
51462
51462
  });
51463
51463
  const pathArrays = await Promise.all(traversalPromises);
51464
51464
  pathArrays.flat().forEach((p) => allPaths.add(p));
@@ -51577,7 +51577,9 @@ async function loadJitSubdirectoryMemory(targetPath, trustedRoots, alreadyLoaded
51577
51577
  debugLogger.debug("[DEBUG] [MemoryDiscovery] JIT memory skipped:", resolvedTarget, "is not in any trusted root.");
51578
51578
  return { files: [], fileIdentities: [] };
51579
51579
  }
51580
- debugLogger.debug("[DEBUG] [MemoryDiscovery] Loading JIT memory for", resolvedTarget, `(Trusted root: ${bestRoot})`);
51580
+ const gitRoot = await findProjectRoot2(bestRoot);
51581
+ const resolvedCeiling = gitRoot ? normalizePath(gitRoot) : bestRoot;
51582
+ debugLogger.debug("[DEBUG] [MemoryDiscovery] Loading JIT memory for", resolvedTarget, `(Trusted root: ${bestRoot}, Ceiling: ${resolvedCeiling}${gitRoot ? " [git root]" : " [trusted root, no git]"})`);
51581
51583
  let startDir = resolvedTarget;
51582
51584
  try {
51583
51585
  const stat3 = await fs10.stat(resolvedTarget);
@@ -51587,7 +51589,7 @@ async function loadJitSubdirectoryMemory(targetPath, trustedRoots, alreadyLoaded
51587
51589
  } catch {
51588
51590
  startDir = normalizePath(path9.dirname(resolvedTarget));
51589
51591
  }
51590
- const potentialPaths = await findUpwardGeminiFiles(startDir, bestRoot);
51592
+ const potentialPaths = await findUpwardGeminiFiles(startDir, resolvedCeiling);
51591
51593
  if (potentialPaths.length === 0) {
51592
51594
  return { files: [], fileIdentities: [] };
51593
51595
  }
@@ -184,7 +184,7 @@ import {
184
184
  toFriendlyError,
185
185
  unescapePath,
186
186
  zodToJsonSchema
187
- } from "./chunk-FIQWQZVG.js";
187
+ } from "./chunk-QO53VEHI.js";
188
188
  import {
189
189
  require_dist,
190
190
  require_src
@@ -218119,8 +218119,8 @@ var Float64Vector = import_vector.default.Float64Vector;
218119
218119
  var PointerVector = import_vector.default.PointerVector;
218120
218120
 
218121
218121
  // packages/core/src/generated/git-commit.ts
218122
- var GIT_COMMIT_INFO = "2f90b4653";
218123
- var CLI_VERSION = "0.35.0-preview.1";
218122
+ var GIT_COMMIT_INFO = "d1de82c46";
218123
+ var CLI_VERSION = "0.35.0-preview.2";
218124
218124
 
218125
218125
  // packages/core/src/ide/detect-ide.ts
218126
218126
  var IDE_DEFINITIONS = {
@@ -226036,11 +226036,7 @@ function normalizeCommandName(raw) {
226036
226036
  return raw.slice(1, -1);
226037
226037
  }
226038
226038
  }
226039
- const trimmed2 = raw.trim();
226040
- if (!trimmed2) {
226041
- return trimmed2;
226042
- }
226043
- return trimmed2.split(/[\\/]/).pop() ?? trimmed2;
226039
+ return raw.trim();
226044
226040
  }
226045
226041
  function extractNameFromNode(node) {
226046
226042
  switch (node.type) {
@@ -252239,7 +252235,7 @@ function getVersion() {
252239
252235
  }
252240
252236
  versionPromise = (async () => {
252241
252237
  const pkgJson = await getPackageJson(__dirname3);
252242
- return "0.35.0-preview.1";
252238
+ return "0.35.0-preview.2";
252243
252239
  })();
252244
252240
  return versionPromise;
252245
252241
  }
@@ -312188,7 +312184,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
312188
312184
  return provider;
312189
312185
  }
312190
312186
  case "oauth2": {
312191
- const { OAuth2AuthProvider } = await import("./oauth2-provider-G4RXUPFH.js");
312187
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-7CBBPEZS.js");
312192
312188
  const provider = new OAuth2AuthProvider(
312193
312189
  authConfig,
312194
312190
  options.agentName ?? "unknown",
@@ -324455,7 +324451,7 @@ var Config = class {
324455
324451
  if (this.experimentalJitContext && this.contextManager) {
324456
324452
  await this.contextManager.refresh();
324457
324453
  } else {
324458
- const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-P6SEGMWA.js");
324454
+ const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-RRX6QF4Y.js");
324459
324455
  await refreshServerHierarchicalMemory2(this);
324460
324456
  }
324461
324457
  if (this._geminiClient?.isInitialized()) {