@google/gemini-cli-a2a-server 0.20.0-preview.0 → 0.20.0-preview.2

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.
@@ -304170,7 +304170,7 @@ function writeToStdout(...args2) {
304170
304170
  function writeToStderr(...args2) {
304171
304171
  return originalStderrWrite(...args2);
304172
304172
  }
304173
- function createInkStdio() {
304173
+ function createWorkingStdio() {
304174
304174
  const inkStdout = new Proxy(process.stdout, {
304175
304175
  get(target, prop, receiver) {
304176
304176
  if (prop === "write") {
@@ -304400,7 +304400,7 @@ async function authWithUserCode(client) {
304400
304400
  const code2 = await new Promise((resolve14, _) => {
304401
304401
  const rl = readline.createInterface({
304402
304402
  input: process.stdin,
304403
- output: createInkStdio().stdout,
304403
+ output: createWorkingStdio().stdout,
304404
304404
  terminal: true
304405
304405
  });
304406
304406
  rl.question("Enter the authorization code: ", (code3) => {
@@ -307842,8 +307842,8 @@ var Float64Vector = import_vector.default.Float64Vector;
307842
307842
  var PointerVector = import_vector.default.PointerVector;
307843
307843
 
307844
307844
  // packages/core/dist/src/generated/git-commit.js
307845
- var GIT_COMMIT_INFO = "2d935b379";
307846
- var CLI_VERSION = "0.20.0-preview.0";
307845
+ var GIT_COMMIT_INFO = "f9997f92c";
307846
+ var CLI_VERSION = "0.20.0-preview.2";
307847
307847
 
307848
307848
  // packages/core/dist/src/ide/detect-ide.js
307849
307849
  var IDE_DEFINITIONS = {
@@ -310901,7 +310901,7 @@ async function createContentGenerator(config3, gcConfig, sessionId2) {
310901
310901
  if (gcConfig.fakeResponses) {
310902
310902
  return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
310903
310903
  }
310904
- const version4 = "0.20.0-preview.0";
310904
+ const version4 = "0.20.0-preview.2";
310905
310905
  const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
310906
310906
  const userAgent = `GeminiCLI/${version4} (${process.platform}; ${process.arch})`;
310907
310907
  const customHeadersMap = parseCustomHeaders(customHeadersEnv);
@@ -354855,6 +354855,7 @@ function convertColorToHex(color, colorMode, defaultColor) {
354855
354855
  var { Terminal } = import_headless.default;
354856
354856
  var SIGKILL_TIMEOUT_MS = 200;
354857
354857
  var MAX_CHILD_PROCESS_BUFFER_SIZE = 16 * 1024 * 1024;
354858
+ var SCROLLBACK_LIMIT = 3e5;
354858
354859
  var BASH_SHOPT_OPTIONS = "promptvars nullglob extglob nocaseglob dotglob";
354859
354860
  var BASH_SHOPT_GUARD = `shopt -u ${BASH_SHOPT_OPTIONS};`;
354860
354861
  function ensurePromptvarsDisabled(command, shell) {
@@ -354872,10 +354873,13 @@ var getFullBufferText = (terminal) => {
354872
354873
  const lines = [];
354873
354874
  for (let i4 = 0; i4 < buffer.length; i4++) {
354874
354875
  const line = buffer.getLine(i4);
354875
- const lineContent = line ? line.translateToString() : "";
354876
+ const lineContent = line ? line.translateToString(true) : "";
354876
354877
  lines.push(lineContent);
354877
354878
  }
354878
- return lines.join("\n").trimEnd();
354879
+ while (lines.length > 0 && lines[lines.length - 1] === "") {
354880
+ lines.pop();
354881
+ }
354882
+ return lines.join("\n");
354879
354883
  };
354880
354884
  var ShellExecutionService = class {
354881
354885
  static activePtys = /* @__PURE__ */ new Map();
@@ -355112,7 +355116,8 @@ var ShellExecutionService = class {
355112
355116
  const headlessTerminal = new Terminal({
355113
355117
  allowProposedApi: true,
355114
355118
  cols,
355115
- rows
355119
+ rows,
355120
+ scrollback: shellExecutionConfig.scrollback ?? SCROLLBACK_LIMIT
355116
355121
  });
355117
355122
  headlessTerminal.scrollToTop();
355118
355123
  this.activePtys.set(ptyProcess.pid, { ptyProcess, headlessTerminal });
@@ -377524,7 +377529,7 @@ async function getClientMetadata() {
377524
377529
  clientMetadataPromise = (async () => ({
377525
377530
  ideName: "IDE_UNSPECIFIED",
377526
377531
  pluginType: "GEMINI",
377527
- ideVersion: "0.20.0-preview.0",
377532
+ ideVersion: "0.20.0-preview.2",
377528
377533
  platform: getPlatform(),
377529
377534
  updateChannel: await getReleaseChannel(__dirname5)
377530
377535
  }))();