@google/gemini-cli-a2a-server 0.13.0-nightly.20251101.caf2ca14 → 0.13.0-nightly.20251102.d7243fb8

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.
@@ -289004,8 +289004,8 @@ var Float64Vector = import_vector.default.Float64Vector;
289004
289004
  var PointerVector = import_vector.default.PointerVector;
289005
289005
 
289006
289006
  // packages/core/dist/src/generated/git-commit.js
289007
- var GIT_COMMIT_INFO = "caf2ca14";
289008
- var CLI_VERSION = "0.13.0-nightly.20251101.caf2ca14";
289007
+ var GIT_COMMIT_INFO = "d7243fb8";
289008
+ var CLI_VERSION = "0.13.0-nightly.20251102.d7243fb8";
289009
289009
 
289010
289010
  // packages/core/dist/src/ide/detect-ide.js
289011
289011
  var IDE_DEFINITIONS = {
@@ -291765,7 +291765,7 @@ async function createContentGenerator(config2, gcConfig, sessionId2) {
291765
291765
  if (gcConfig.fakeResponses) {
291766
291766
  return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
291767
291767
  }
291768
- const version3 = "0.13.0-nightly.20251101.caf2ca14";
291768
+ const version3 = "0.13.0-nightly.20251102.d7243fb8";
291769
291769
  const userAgent = `GeminiCLI/${version3} (${process.platform}; ${process.arch})`;
291770
291770
  const baseHeaders = {
291771
291771
  "User-Agent": userAgent
@@ -341849,11 +341849,17 @@ var import_ignore3 = __toESM(require_ignore(), 1);
341849
341849
  import * as fs48 from "node:fs";
341850
341850
  import * as path50 from "node:path";
341851
341851
  var GitIgnoreParser = class {
341852
+ extraPatterns;
341852
341853
  projectRoot;
341853
341854
  cache = /* @__PURE__ */ new Map();
341854
341855
  globalPatterns;
341855
- constructor(projectRoot) {
341856
+ processedExtraPatterns = [];
341857
+ constructor(projectRoot, extraPatterns) {
341858
+ this.extraPatterns = extraPatterns;
341856
341859
  this.projectRoot = path50.resolve(projectRoot);
341860
+ if (this.extraPatterns) {
341861
+ this.processedExtraPatterns = this.processPatterns(this.extraPatterns, ".");
341862
+ }
341857
341863
  }
341858
341864
  loadPatternsForFile(patternsFilePath) {
341859
341865
  let content;
@@ -341864,7 +341870,11 @@ var GitIgnoreParser = class {
341864
341870
  }
341865
341871
  const isExcludeFile = patternsFilePath.endsWith(path50.join(".git", "info", "exclude"));
341866
341872
  const relativeBaseDir = isExcludeFile ? "." : path50.dirname(path50.relative(this.projectRoot, patternsFilePath)).split(path50.sep).join(path50.posix.sep);
341867
- return content.split("\n").map((p) => p.trimStart()).filter((p) => p !== "" && !p.startsWith("#")).map((p) => {
341873
+ const rawPatterns = content.split("\n");
341874
+ return this.processPatterns(rawPatterns, relativeBaseDir);
341875
+ }
341876
+ processPatterns(rawPatterns, relativeBaseDir) {
341877
+ return rawPatterns.map((p) => p.trimStart()).filter((p) => p !== "" && !p.startsWith("#")).map((p) => {
341868
341878
  const isNegative = p.startsWith("!");
341869
341879
  if (isNegative) {
341870
341880
  p = p.substring(1);
@@ -341931,7 +341941,8 @@ var GitIgnoreParser = class {
341931
341941
  const relativeDir = path50.relative(this.projectRoot, dir);
341932
341942
  if (relativeDir) {
341933
341943
  const normalizedRelativeDir = relativeDir.replace(/\\/g, "/");
341934
- if (ig.ignores(normalizedRelativeDir)) {
341944
+ const igPlusExtras = (0, import_ignore3.default)().add(ig).add(this.processedExtraPatterns);
341945
+ if (igPlusExtras.ignores(normalizedRelativeDir)) {
341935
341946
  break;
341936
341947
  }
341937
341948
  }
@@ -341951,6 +341962,9 @@ var GitIgnoreParser = class {
341951
341962
  }
341952
341963
  }
341953
341964
  }
341965
+ if (this.processedExtraPatterns.length > 0) {
341966
+ ig.add(this.processedExtraPatterns);
341967
+ }
341954
341968
  return ig.ignores(normalizedPath);
341955
341969
  } catch (_error) {
341956
341970
  return false;
@@ -342012,6 +342026,7 @@ import * as path52 from "node:path";
342012
342026
  var FileDiscoveryService = class {
342013
342027
  gitIgnoreFilter = null;
342014
342028
  geminiIgnoreFilter = null;
342029
+ combinedIgnoreFilter = null;
342015
342030
  projectRoot;
342016
342031
  constructor(projectRoot) {
342017
342032
  this.projectRoot = path52.resolve(projectRoot);
@@ -342019,6 +342034,10 @@ var FileDiscoveryService = class {
342019
342034
  this.gitIgnoreFilter = new GitIgnoreParser(this.projectRoot);
342020
342035
  }
342021
342036
  this.geminiIgnoreFilter = new GeminiIgnoreParser(this.projectRoot);
342037
+ if (this.gitIgnoreFilter) {
342038
+ const geminiPatterns = this.geminiIgnoreFilter.getPatterns();
342039
+ this.combinedIgnoreFilter = new GitIgnoreParser(this.projectRoot, geminiPatterns);
342040
+ }
342022
342041
  }
342023
342042
  /**
342024
342043
  * Filters a list of file paths based on git ignore rules
@@ -342026,6 +342045,9 @@ var FileDiscoveryService = class {
342026
342045
  filterFiles(filePaths, options2 = {}) {
342027
342046
  const { respectGitIgnore = true, respectGeminiIgnore = true } = options2;
342028
342047
  return filePaths.filter((filePath) => {
342048
+ if (respectGitIgnore && respectGeminiIgnore && this.combinedIgnoreFilter) {
342049
+ return !this.combinedIgnoreFilter.isIgnored(filePath);
342050
+ }
342029
342051
  if (respectGitIgnore && this.gitIgnoreFilter?.isIgnored(filePath)) {
342030
342052
  return false;
342031
342053
  }