@google/gemini-cli-a2a-server 0.51.0-preview.0 → 0.52.0-nightly.20260710.ga4c91ce19

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.
@@ -27753,7 +27753,7 @@ var require_mime_types = __commonJS({
27753
27753
  "node_modules/mime-types/index.js"(exports2) {
27754
27754
  "use strict";
27755
27755
  var db = require_mime_db();
27756
- var extname2 = __require("path").extname;
27756
+ var extname3 = __require("path").extname;
27757
27757
  var mimeScore = require_mimeScore();
27758
27758
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
27759
27759
  var TEXT_TYPE_REGEXP = /^text\//i;
@@ -27809,7 +27809,7 @@ var require_mime_types = __commonJS({
27809
27809
  if (!path98 || typeof path98 !== "string") {
27810
27810
  return false;
27811
27811
  }
27812
- var extension2 = extname2("x." + path98).toLowerCase().slice(1);
27812
+ var extension2 = extname3("x." + path98).toLowerCase().slice(1);
27813
27813
  if (!extension2) {
27814
27814
  return false;
27815
27815
  }
@@ -31281,14 +31281,14 @@ var require_view = __commonJS({
31281
31281
  var fs88 = __require("node:fs");
31282
31282
  var dirname23 = path98.dirname;
31283
31283
  var basename12 = path98.basename;
31284
- var extname2 = path98.extname;
31284
+ var extname3 = path98.extname;
31285
31285
  var join40 = path98.join;
31286
31286
  var resolve23 = path98.resolve;
31287
31287
  module2.exports = View;
31288
31288
  function View(name3, options) {
31289
31289
  var opts = options || {};
31290
31290
  this.defaultEngine = opts.defaultEngine;
31291
- this.ext = extname2(name3);
31291
+ this.ext = extname3(name3);
31292
31292
  this.name = name3;
31293
31293
  this.root = opts.root;
31294
31294
  if (!this.ext && !this.defaultEngine) {
@@ -35007,7 +35007,7 @@ var require_send = __commonJS({
35007
35007
  var statuses = require_statuses();
35008
35008
  var Stream4 = __require("stream");
35009
35009
  var util5 = __require("util");
35010
- var extname2 = path98.extname;
35010
+ var extname3 = path98.extname;
35011
35011
  var join40 = path98.join;
35012
35012
  var normalize6 = path98.normalize;
35013
35013
  var resolve23 = path98.resolve;
@@ -35282,7 +35282,7 @@ var require_send = __commonJS({
35282
35282
  debug2('stat "%s"', path99);
35283
35283
  fs88.stat(path99, function onstat(err2, stat7) {
35284
35284
  var pathEndsWithSep = path99[path99.length - 1] === sep9;
35285
- if (err2 && err2.code === "ENOENT" && !extname2(path99) && !pathEndsWithSep) {
35285
+ if (err2 && err2.code === "ENOENT" && !extname3(path99) && !pathEndsWithSep) {
35286
35286
  return next(err2);
35287
35287
  }
35288
35288
  if (err2) return self2.onStatError(err2);
@@ -35345,7 +35345,7 @@ var require_send = __commonJS({
35345
35345
  SendStream.prototype.type = function type2(path99) {
35346
35346
  var res = this.res;
35347
35347
  if (res.getHeader("Content-Type")) return;
35348
- var ext2 = extname2(path99);
35348
+ var ext2 = extname3(path99);
35349
35349
  var type3 = mime3.contentType(ext2) || "application/octet-stream";
35350
35350
  debug2("content-type %s", type3);
35351
35351
  res.setHeader("Content-Type", type3);
@@ -35564,7 +35564,7 @@ var require_response = __commonJS({
35564
35564
  var setCharset = require_utils3().setCharset;
35565
35565
  var cookie = require_cookie();
35566
35566
  var send = require_send();
35567
- var extname2 = path98.extname;
35567
+ var extname3 = path98.extname;
35568
35568
  var resolve23 = path98.resolve;
35569
35569
  var vary = require_vary();
35570
35570
  var res = Object.create(http5.ServerResponse.prototype);
@@ -35801,7 +35801,7 @@ var require_response = __commonJS({
35801
35801
  };
35802
35802
  res.attachment = function attachment(filename) {
35803
35803
  if (filename) {
35804
- this.type(extname2(filename));
35804
+ this.type(extname3(filename));
35805
35805
  }
35806
35806
  this.set("Content-Disposition", contentDisposition(filename));
35807
35807
  return this;
@@ -216165,8 +216165,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
216165
216165
  var init_git_commit = __esm({
216166
216166
  "packages/core/dist/src/generated/git-commit.js"() {
216167
216167
  "use strict";
216168
- GIT_COMMIT_INFO = "27a3da3e8";
216169
- CLI_VERSION = "0.51.0-preview.0";
216168
+ GIT_COMMIT_INFO = "a4c91ce19";
216169
+ CLI_VERSION = "0.52.0-nightly.20260710.ga4c91ce19";
216170
216170
  }
216171
216171
  });
216172
216172
 
@@ -326084,7 +326084,7 @@ function getVersion() {
326084
326084
  }
326085
326085
  versionPromise = (async () => {
326086
326086
  const pkgJson = await getPackageJson(__dirname4);
326087
- return "0.51.0-preview.0";
326087
+ return "0.52.0-nightly.20260710.ga4c91ce19";
326088
326088
  })();
326089
326089
  return versionPromise;
326090
326090
  }
@@ -328896,7 +328896,9 @@ var init_edit = __esm({
328896
328896
  matchRanges: replacementResult.matchRanges
328897
328897
  };
328898
328898
  }
328899
- if (this.config.getDisableLLMCorrection()) {
328899
+ const fileExt = path42.extname(this.resolvedPath).toLowerCase();
328900
+ const isJsonOrIpynb = [".json", ".ipynb", ".jsonc", ".json5"].includes(fileExt);
328901
+ if (this.config.getDisableLLMCorrection() || isJsonOrIpynb) {
328900
328902
  return {
328901
328903
  currentContent,
328902
328904
  newContent: currentContent,
@@ -329466,10 +329468,14 @@ async function getCorrectedFileContent(config3, filePath, proposedContent, abort
329466
329468
  return { originalContent, correctedContent, fileExists: fileExists2, error: error2 };
329467
329469
  }
329468
329470
  }
329469
- const activeModel = config3.getActiveModel();
329470
- const resolvedModel = resolveModel(activeModel, false, false, true, config3);
329471
- const aggressiveUnescape = !isGemini3Model(resolvedModel, config3) && !isGemini2Model(resolvedModel) && !isCustomModel(resolvedModel, config3);
329472
- correctedContent = await ensureCorrectFileContent(proposedContent, config3.getBaseLlmClient(), abortSignal, config3.getDisableLLMCorrection(), aggressiveUnescape);
329471
+ const fileExt = path43.extname(filePath).toLowerCase();
329472
+ const isJsonOrIpynb = [".json", ".ipynb", ".jsonc", ".json5"].includes(fileExt);
329473
+ if (!isJsonOrIpynb) {
329474
+ const activeModel = config3.getActiveModel();
329475
+ const resolvedModel = resolveModel(activeModel, false, false, true, config3);
329476
+ const aggressiveUnescape = !isGemini3Model(resolvedModel, config3) && !isGemini2Model(resolvedModel) && !isCustomModel(resolvedModel, config3);
329477
+ correctedContent = await ensureCorrectFileContent(proposedContent, config3.getBaseLlmClient(), abortSignal, config3.getDisableLLMCorrection(), aggressiveUnescape);
329478
+ }
329473
329479
  return { originalContent, correctedContent, fileExists: fileExists2 };
329474
329480
  }
329475
329481
  var WriteFileToolInvocation, WriteFileTool;
@@ -370558,7 +370564,7 @@ var init_agentHistoryProvider = __esm({
370558
370564
  "Prior context was offloaded to maintain performance. Key highlights from the truncated history:"
370559
370565
  ];
370560
370566
  if (lastUserText) {
370561
- summaryParts.push(`- **Last User Intent:** "${lastUserText}"`);
370567
+ summaryParts.push(`- **Previous User Intent (Truncated):** "${lastUserText}"`);
370562
370568
  }
370563
370569
  if (actionPath) {
370564
370570
  summaryParts.push(`- **Action Path:** ${actionPath}`);
@@ -376243,7 +376249,13 @@ var init_workspaceContext = __esm({
376243
376249
  const segments = relative5.split(path72.sep);
376244
376250
  const hasBlockedSegment = segments.some((segment) => {
376245
376251
  const clean = trimTrailingSpacesAndDots(segment.split(":")[0]).toLowerCase();
376246
- return clean === ".git" || clean === ".env" || clean === "node_modules";
376252
+ if (clean === ".git" || clean === ".env" || clean === "node_modules") {
376253
+ return true;
376254
+ }
376255
+ if (clean.startsWith("gha-creds-") && clean.endsWith(".json")) {
376256
+ return true;
376257
+ }
376258
+ return false;
376247
376259
  });
376248
376260
  if (hasBlockedSegment) {
376249
376261
  return false;