@google/gemini-cli-a2a-server 0.19.1 → 0.19.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.
@@ -307803,8 +307803,8 @@ var Float64Vector = import_vector.default.Float64Vector;
307803
307803
  var PointerVector = import_vector.default.PointerVector;
307804
307804
 
307805
307805
  // packages/core/dist/src/generated/git-commit.js
307806
- var GIT_COMMIT_INFO = "6169ef04b";
307807
- var CLI_VERSION = "0.19.1";
307806
+ var GIT_COMMIT_INFO = "ee6b01f9c";
307807
+ var CLI_VERSION = "0.19.3";
307808
307808
 
307809
307809
  // packages/core/dist/src/ide/detect-ide.js
307810
307810
  var IDE_DEFINITIONS = {
@@ -310731,7 +310731,7 @@ async function createContentGenerator(config3, gcConfig, sessionId2) {
310731
310731
  if (gcConfig.fakeResponses) {
310732
310732
  return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
310733
310733
  }
310734
- const version4 = "0.19.1";
310734
+ const version4 = "0.19.3";
310735
310735
  const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
310736
310736
  const userAgent = `GeminiCLI/${version4} (${process.platform}; ${process.arch})`;
310737
310737
  const customHeadersMap = parseCustomHeaders(customHeadersEnv);
@@ -354685,6 +354685,7 @@ function convertColorToHex(color, colorMode, defaultColor) {
354685
354685
  var { Terminal } = import_headless.default;
354686
354686
  var SIGKILL_TIMEOUT_MS = 200;
354687
354687
  var MAX_CHILD_PROCESS_BUFFER_SIZE = 16 * 1024 * 1024;
354688
+ var SCROLLBACK_LIMIT = 3e5;
354688
354689
  var BASH_SHOPT_OPTIONS = "promptvars nullglob extglob nocaseglob dotglob";
354689
354690
  var BASH_SHOPT_GUARD = `shopt -u ${BASH_SHOPT_OPTIONS};`;
354690
354691
  function ensurePromptvarsDisabled(command, shell) {
@@ -354702,10 +354703,27 @@ var getFullBufferText = (terminal) => {
354702
354703
  const lines = [];
354703
354704
  for (let i4 = 0; i4 < buffer.length; i4++) {
354704
354705
  const line = buffer.getLine(i4);
354705
- const lineContent = line ? line.translateToString() : "";
354706
- lines.push(lineContent);
354706
+ if (!line) {
354707
+ continue;
354708
+ }
354709
+ let trimRight = true;
354710
+ if (i4 + 1 < buffer.length) {
354711
+ const nextLine = buffer.getLine(i4 + 1);
354712
+ if (nextLine?.isWrapped) {
354713
+ trimRight = false;
354714
+ }
354715
+ }
354716
+ const lineContent = line.translateToString(trimRight);
354717
+ if (line.isWrapped && lines.length > 0) {
354718
+ lines[lines.length - 1] += lineContent;
354719
+ } else {
354720
+ lines.push(lineContent);
354721
+ }
354722
+ }
354723
+ while (lines.length > 0 && lines[lines.length - 1] === "") {
354724
+ lines.pop();
354707
354725
  }
354708
- return lines.join("\n").trimEnd();
354726
+ return lines.join("\n");
354709
354727
  };
354710
354728
  var ShellExecutionService = class {
354711
354729
  static activePtys = /* @__PURE__ */ new Map();
@@ -354940,7 +354958,8 @@ var ShellExecutionService = class {
354940
354958
  const headlessTerminal = new Terminal({
354941
354959
  allowProposedApi: true,
354942
354960
  cols,
354943
- rows
354961
+ rows,
354962
+ scrollback: shellExecutionConfig.scrollback ?? SCROLLBACK_LIMIT
354944
354963
  });
354945
354964
  headlessTerminal.scrollToTop();
354946
354965
  this.activePtys.set(ptyProcess.pid, { ptyProcess, headlessTerminal });
@@ -373914,7 +373933,7 @@ async function getClientMetadata() {
373914
373933
  clientMetadataPromise = (async () => ({
373915
373934
  ideName: "IDE_UNSPECIFIED",
373916
373935
  pluginType: "GEMINI",
373917
- ideVersion: "0.19.1",
373936
+ ideVersion: "0.19.3",
373918
373937
  platform: getPlatform(),
373919
373938
  updateChannel: await getReleaseChannel(__dirname5)
373920
373939
  }))();