@google/gemini-cli-a2a-server 0.20.0-preview.2 → 0.20.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.
@@ -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 = "f9997f92c";
307846
- var CLI_VERSION = "0.20.0-preview.2";
307845
+ var GIT_COMMIT_INFO = "d0ce3c4c5";
307846
+ var CLI_VERSION = "0.20.0";
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.2";
310904
+ const version4 = "0.20.0";
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);
@@ -354881,6 +354881,48 @@ var getFullBufferText = (terminal) => {
354881
354881
  }
354882
354882
  return lines.join("\n");
354883
354883
  };
354884
+ function getSanitizedEnv() {
354885
+ const isRunningInGithub = process.env["GITHUB_SHA"] || process.env["SURFACE"] === "Github";
354886
+ if (!isRunningInGithub) {
354887
+ return { ...process.env };
354888
+ }
354889
+ const env2 = {};
354890
+ const essentialVars = [
354891
+ // Cross-platform
354892
+ "PATH",
354893
+ // Windows specific
354894
+ "Path",
354895
+ "SYSTEMROOT",
354896
+ "SystemRoot",
354897
+ "COMSPEC",
354898
+ "ComSpec",
354899
+ "PATHEXT",
354900
+ "WINDIR",
354901
+ "TEMP",
354902
+ "TMP",
354903
+ "USERPROFILE",
354904
+ "SYSTEMDRIVE",
354905
+ "SystemDrive",
354906
+ // Unix/Linux/macOS specific
354907
+ "HOME",
354908
+ "LANG",
354909
+ "SHELL",
354910
+ "TMPDIR",
354911
+ "USER",
354912
+ "LOGNAME"
354913
+ ];
354914
+ for (const key of essentialVars) {
354915
+ if (process.env[key] !== void 0) {
354916
+ env2[key] = process.env[key];
354917
+ }
354918
+ }
354919
+ for (const key in process.env) {
354920
+ if (key.startsWith("GEMINI_CLI_TEST")) {
354921
+ env2[key] = process.env[key];
354922
+ }
354923
+ }
354924
+ return env2;
354925
+ }
354884
354926
  var ShellExecutionService = class {
354885
354927
  static activePtys = /* @__PURE__ */ new Map();
354886
354928
  /**
@@ -354935,7 +354977,7 @@ var ShellExecutionService = class {
354935
354977
  shell: false,
354936
354978
  detached: !isWindows5,
354937
354979
  env: {
354938
- ...process.env,
354980
+ ...getSanitizedEnv(),
354939
354981
  GEMINI_CLI: "1",
354940
354982
  TERM: "xterm-256color",
354941
354983
  PAGER: "cat",
@@ -355104,7 +355146,7 @@ var ShellExecutionService = class {
355104
355146
  cols,
355105
355147
  rows,
355106
355148
  env: {
355107
- ...process.env,
355149
+ ...getSanitizedEnv(),
355108
355150
  GEMINI_CLI: "1",
355109
355151
  TERM: "xterm-256color",
355110
355152
  PAGER: shellExecutionConfig.pager ?? "cat",
@@ -377529,7 +377571,7 @@ async function getClientMetadata() {
377529
377571
  clientMetadataPromise = (async () => ({
377530
377572
  ideName: "IDE_UNSPECIFIED",
377531
377573
  pluginType: "GEMINI",
377532
- ideVersion: "0.20.0-preview.2",
377574
+ ideVersion: "0.20.0",
377533
377575
  platform: getPlatform(),
377534
377576
  updateChannel: await getReleaseChannel(__dirname5)
377535
377577
  }))();