@google/gemini-cli-a2a-server 0.44.0 → 0.44.1

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.
@@ -211651,8 +211651,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
211651
211651
  var init_git_commit = __esm({
211652
211652
  "packages/core/dist/src/generated/git-commit.js"() {
211653
211653
  "use strict";
211654
- GIT_COMMIT_INFO = "b82ca5f8d";
211655
- CLI_VERSION = "0.44.0";
211654
+ GIT_COMMIT_INFO = "73421e3b6";
211655
+ CLI_VERSION = "0.44.1";
211656
211656
  }
211657
211657
  });
211658
211658
 
@@ -332677,7 +332677,7 @@ function getVersion() {
332677
332677
  }
332678
332678
  versionPromise = (async () => {
332679
332679
  const pkgJson = await getPackageJson(__dirname4);
332680
- return "0.44.0";
332680
+ return "0.44.1";
332681
332681
  })();
332682
332682
  return versionPromise;
332683
332683
  }
@@ -353052,6 +353052,7 @@ var init_shellExecutionService = __esm({
353052
353052
  init_environmentSanitization();
353053
353053
  init_sandboxManager();
353054
353054
  init_process_utils2();
353055
+ init_errors2();
353055
353056
  init_executionLifecycleService();
353056
353057
  ({ Terminal } = import_headless2.default);
353057
353058
  MAX_CHILD_PROCESS_BUFFER_SIZE = 16 * 1024 * 1024;
@@ -353999,20 +354000,31 @@ ${truncated}`;
353999
354000
  return;
354000
354001
  }
354001
354002
  const activePty = this.activePtys.get(pid);
354002
- if (activePty) {
354003
+ if (!activePty) {
354004
+ return;
354005
+ }
354006
+ if (process.platform !== "win32") {
354003
354007
  try {
354004
- activePty.ptyProcess.resize(cols, rows);
354005
- activePty.headlessTerminal.resize(cols, rows);
354008
+ process.kill(pid, 0);
354006
354009
  } catch (e3) {
354007
- const err2 = e3;
354008
- const isEsrch = err2.code === "ESRCH";
354009
- const isWindowsPtyError = err2.message?.includes("Cannot resize a pty that has already exited");
354010
- if (isEsrch || isWindowsPtyError) {
354011
- } else {
354012
- throw e3;
354010
+ if (isNodeError(e3) && e3.code === "ESRCH") {
354011
+ return;
354013
354012
  }
354014
354013
  }
354015
354014
  }
354015
+ try {
354016
+ activePty.ptyProcess.resize(cols, rows);
354017
+ activePty.headlessTerminal.resize(cols, rows);
354018
+ } catch (e3) {
354019
+ const err2 = e3;
354020
+ const isEsrch = err2.code === "ESRCH";
354021
+ const isEbadf = err2.code === "EBADF" || err2.message?.includes("EBADF");
354022
+ const isWindowsPtyError = err2.message?.includes("Cannot resize a pty that has already exited");
354023
+ if (isEsrch || isEbadf || isWindowsPtyError) {
354024
+ } else {
354025
+ throw e3;
354026
+ }
354027
+ }
354016
354028
  if (activePty) {
354017
354029
  const endLine = activePty.headlessTerminal.buffer.active.length;
354018
354030
  const startLine = Math.max(0, endLine - (activePty.maxSerializedLines ?? 2e3));