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

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.
@@ -211638,8 +211638,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
211638
211638
  var init_git_commit = __esm({
211639
211639
  "packages/core/dist/src/generated/git-commit.js"() {
211640
211640
  "use strict";
211641
- GIT_COMMIT_INFO = "5cac7c10f";
211642
- CLI_VERSION = "0.45.0-preview.0";
211641
+ GIT_COMMIT_INFO = "8acfe0c4a";
211642
+ CLI_VERSION = "0.45.0";
211643
211643
  }
211644
211644
  });
211645
211645
 
@@ -332664,7 +332664,7 @@ function getVersion() {
332664
332664
  }
332665
332665
  versionPromise = (async () => {
332666
332666
  const pkgJson = await getPackageJson(__dirname4);
332667
- return "0.45.0-preview.0";
332667
+ return "0.45.0";
332668
332668
  })();
332669
332669
  return versionPromise;
332670
332670
  }
@@ -353024,6 +353024,7 @@ var init_shellExecutionService = __esm({
353024
353024
  init_environmentSanitization();
353025
353025
  init_sandboxManager();
353026
353026
  init_process_utils2();
353027
+ init_errors2();
353027
353028
  init_executionLifecycleService();
353028
353029
  ({ Terminal } = import_headless2.default);
353029
353030
  MAX_CHILD_PROCESS_BUFFER_SIZE = 16 * 1024 * 1024;
@@ -353970,21 +353971,31 @@ ${truncated}`;
353970
353971
  return;
353971
353972
  }
353972
353973
  const activePty = this.activePtys.get(pid);
353973
- if (activePty) {
353974
+ if (!activePty) {
353975
+ return;
353976
+ }
353977
+ if (process.platform !== "win32") {
353974
353978
  try {
353975
- activePty.ptyProcess.resize(cols, rows);
353976
- activePty.headlessTerminal.resize(cols, rows);
353979
+ process.kill(pid, 0);
353977
353980
  } catch (e3) {
353978
- const err2 = e3;
353979
- const isEsrch = err2.code === "ESRCH";
353980
- const isEbadf = err2.code === "EBADF" || err2.message?.includes("EBADF");
353981
- const isWindowsPtyError = err2.message?.includes("Cannot resize a pty that has already exited");
353982
- if (isEsrch || isEbadf || isWindowsPtyError) {
353983
- } else {
353984
- throw e3;
353981
+ if (isNodeError(e3) && e3.code === "ESRCH") {
353982
+ return;
353985
353983
  }
353986
353984
  }
353987
353985
  }
353986
+ try {
353987
+ activePty.ptyProcess.resize(cols, rows);
353988
+ activePty.headlessTerminal.resize(cols, rows);
353989
+ } catch (e3) {
353990
+ const err2 = e3;
353991
+ const isEsrch = err2.code === "ESRCH";
353992
+ const isEbadf = err2.code === "EBADF" || err2.message?.includes("EBADF");
353993
+ const isWindowsPtyError = err2.message?.includes("Cannot resize a pty that has already exited");
353994
+ if (isEsrch || isEbadf || isWindowsPtyError) {
353995
+ } else {
353996
+ throw e3;
353997
+ }
353998
+ }
353988
353999
  if (activePty) {
353989
354000
  const endLine = activePty.headlessTerminal.buffer.active.length;
353990
354001
  const startLine = Math.max(0, endLine - (activePty.maxSerializedLines ?? 2e3));